Commit | Line | Data |
---|---|---|
a09e091a JB |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.68 for xorg-server 1.15.1. | |
4 | # | |
5 | # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. | |
6 | # | |
7 | # | |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
10 | # Foundation, Inc. | |
11 | # | |
12 | # | |
13 | # This configure script is free software; the Free Software Foundation | |
14 | # gives unlimited permission to copy, distribute and modify it. | |
15 | ## -------------------- ## | |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
94 | as_myself= | |
95 | case $0 in #(( | |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 | done | |
104 | IFS=$as_save_IFS | |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
117 | ||
118 | # Unset variables that we do not need and which cause bugs (e.g. in | |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
131 | LC_ALL=C | |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
172 | test x\$exitcode = x0 || exit 1" | |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1 | |
178 | ||
179 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
180 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
181 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
182 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
183 | PATH=/empty FPATH=/empty; export PATH FPATH | |
184 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
185 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
186 | if (eval "$as_required") 2>/dev/null; then : | |
187 | as_have_required=yes | |
188 | else | |
189 | as_have_required=no | |
190 | fi | |
191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
192 | ||
193 | else | |
194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
195 | as_found=false | |
196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
197 | do | |
198 | IFS=$as_save_IFS | |
199 | test -z "$as_dir" && as_dir=. | |
200 | as_found=: | |
201 | case $as_dir in #( | |
202 | /*) | |
203 | for as_base in sh bash ksh sh5; do | |
204 | # Try only shells that exist, to save several forks. | |
205 | as_shell=$as_dir/$as_base | |
206 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$as_shell as_have_required=yes | |
209 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
210 | break 2 | |
211 | fi | |
212 | fi | |
213 | done;; | |
214 | esac | |
215 | as_found=false | |
216 | done | |
217 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
218 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
219 | CONFIG_SHELL=$SHELL as_have_required=yes | |
220 | fi; } | |
221 | IFS=$as_save_IFS | |
222 | ||
223 | ||
224 | if test "x$CONFIG_SHELL" != x; then : | |
225 | # We cannot yet assume a decent shell, so we have to provide a | |
226 | # neutralization value for shells without unset; and this also | |
227 | # works around shells that cannot unset nonexistent variables. | |
228 | # Preserve -v and -x to the replacement shell. | |
229 | BASH_ENV=/dev/null | |
230 | ENV=/dev/null | |
231 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
232 | export CONFIG_SHELL | |
233 | case $- in # (((( | |
234 | *v*x* | *x*v* ) as_opts=-vx ;; | |
235 | *v* ) as_opts=-v ;; | |
236 | *x* ) as_opts=-x ;; | |
237 | * ) as_opts= ;; | |
238 | esac | |
239 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
240 | fi | |
241 | ||
242 | if test x$as_have_required = xno; then : | |
243 | $as_echo "$0: This script requires a shell more modern than all" | |
244 | $as_echo "$0: the shells that I found on your system." | |
245 | if test x${ZSH_VERSION+set} = xset ; then | |
246 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
247 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
248 | else | |
249 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
250 | $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg | |
251 | $0: about your system, including any error possibly output | |
252 | $0: before this message. Then install a modern shell, or | |
253 | $0: manually run the script under such a shell if you do | |
254 | $0: have one." | |
255 | fi | |
256 | exit 1 | |
257 | fi | |
258 | fi | |
259 | fi | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | export SHELL | |
262 | # Unset more variables known to interfere with behavior of common tools. | |
263 | CLICOLOR_FORCE= GREP_OPTIONS= | |
264 | unset CLICOLOR_FORCE GREP_OPTIONS | |
265 | ||
266 | ## --------------------- ## | |
267 | ## M4sh Shell Functions. ## | |
268 | ## --------------------- ## | |
269 | # as_fn_unset VAR | |
270 | # --------------- | |
271 | # Portably unset VAR. | |
272 | as_fn_unset () | |
273 | { | |
274 | { eval $1=; unset $1;} | |
275 | } | |
276 | as_unset=as_fn_unset | |
277 | ||
278 | # as_fn_set_status STATUS | |
279 | # ----------------------- | |
280 | # Set $? to STATUS, without forking. | |
281 | as_fn_set_status () | |
282 | { | |
283 | return $1 | |
284 | } # as_fn_set_status | |
285 | ||
286 | # as_fn_exit STATUS | |
287 | # ----------------- | |
288 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
289 | as_fn_exit () | |
290 | { | |
291 | set +e | |
292 | as_fn_set_status $1 | |
293 | exit $1 | |
294 | } # as_fn_exit | |
295 | ||
296 | # as_fn_mkdir_p | |
297 | # ------------- | |
298 | # Create "$as_dir" as a directory, including parents if necessary. | |
299 | as_fn_mkdir_p () | |
300 | { | |
301 | ||
302 | case $as_dir in #( | |
303 | -*) as_dir=./$as_dir;; | |
304 | esac | |
305 | test -d "$as_dir" || eval $as_mkdir_p || { | |
306 | as_dirs= | |
307 | while :; do | |
308 | case $as_dir in #( | |
309 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
310 | *) as_qdir=$as_dir;; | |
311 | esac | |
312 | as_dirs="'$as_qdir' $as_dirs" | |
313 | as_dir=`$as_dirname -- "$as_dir" || | |
314 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
315 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
316 | X"$as_dir" : 'X\(//\)$' \| \ | |
317 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
318 | $as_echo X"$as_dir" | | |
319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
320 | s//\1/ | |
321 | q | |
322 | } | |
323 | /^X\(\/\/\)[^/].*/{ | |
324 | s//\1/ | |
325 | q | |
326 | } | |
327 | /^X\(\/\/\)$/{ | |
328 | s//\1/ | |
329 | q | |
330 | } | |
331 | /^X\(\/\).*/{ | |
332 | s//\1/ | |
333 | q | |
334 | } | |
335 | s/.*/./; q'` | |
336 | test -d "$as_dir" && break | |
337 | done | |
338 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
339 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
340 | ||
341 | ||
342 | } # as_fn_mkdir_p | |
343 | # as_fn_append VAR VALUE | |
344 | # ---------------------- | |
345 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
346 | # advantage of any shell optimizations that allow amortized linear growth over | |
347 | # repeated appends, instead of the typical quadratic growth present in naive | |
348 | # implementations. | |
349 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
350 | eval 'as_fn_append () | |
351 | { | |
352 | eval $1+=\$2 | |
353 | }' | |
354 | else | |
355 | as_fn_append () | |
356 | { | |
357 | eval $1=\$$1\$2 | |
358 | } | |
359 | fi # as_fn_append | |
360 | ||
361 | # as_fn_arith ARG... | |
362 | # ------------------ | |
363 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
364 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
365 | # must be portable across $(()) and expr. | |
366 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
367 | eval 'as_fn_arith () | |
368 | { | |
369 | as_val=$(( $* )) | |
370 | }' | |
371 | else | |
372 | as_fn_arith () | |
373 | { | |
374 | as_val=`expr "$@" || test $? -eq 1` | |
375 | } | |
376 | fi # as_fn_arith | |
377 | ||
378 | ||
379 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
380 | # ---------------------------------------- | |
381 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
382 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
383 | # script with STATUS, using 1 if that was 0. | |
384 | as_fn_error () | |
385 | { | |
386 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
387 | if test "$4"; then | |
388 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
389 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
390 | fi | |
391 | $as_echo "$as_me: error: $2" >&2 | |
392 | as_fn_exit $as_status | |
393 | } # as_fn_error | |
394 | ||
395 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
396 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
397 | as_expr=expr | |
398 | else | |
399 | as_expr=false | |
400 | fi | |
401 | ||
402 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
403 | as_basename=basename | |
404 | else | |
405 | as_basename=false | |
406 | fi | |
407 | ||
408 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
409 | as_dirname=dirname | |
410 | else | |
411 | as_dirname=false | |
412 | fi | |
413 | ||
414 | as_me=`$as_basename -- "$0" || | |
415 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
416 | X"$0" : 'X\(//\)$' \| \ | |
417 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
418 | $as_echo X/"$0" | | |
419 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
420 | s//\1/ | |
421 | q | |
422 | } | |
423 | /^X\/\(\/\/\)$/{ | |
424 | s//\1/ | |
425 | q | |
426 | } | |
427 | /^X\/\(\/\).*/{ | |
428 | s//\1/ | |
429 | q | |
430 | } | |
431 | s/.*/./; q'` | |
432 | ||
433 | # Avoid depending upon Character Ranges. | |
434 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
435 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
436 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
437 | as_cr_digits='0123456789' | |
438 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
439 | ||
440 | ||
441 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
442 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
443 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
444 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
445 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
446 | sed -n ' | |
447 | p | |
448 | /[$]LINENO/= | |
449 | ' <$as_myself | | |
450 | sed ' | |
451 | s/[$]LINENO.*/&-/ | |
452 | t lineno | |
453 | b | |
454 | :lineno | |
455 | N | |
456 | :loop | |
457 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
458 | t loop | |
459 | s/-\n.*// | |
460 | ' >$as_me.lineno && | |
461 | chmod +x "$as_me.lineno" || | |
462 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
463 | ||
464 | # Don't try to exec as it changes $[0], causing all sort of problems | |
465 | # (the dirname of $[0] is not the place where we might find the | |
466 | # original and so on. Autoconf is especially sensitive to this). | |
467 | . "./$as_me.lineno" | |
468 | # Exit status is that of the last command. | |
469 | exit | |
470 | } | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in #((((( | |
474 | -n*) | |
475 | case `echo 'xy\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | xy) ECHO_C='\c';; | |
478 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
479 | ECHO_T=' ';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
483 | esac | |
484 | ||
485 | rm -f conf$$ conf$$.exe conf$$.file | |
486 | if test -d conf$$.dir; then | |
487 | rm -f conf$$.dir/conf$$.file | |
488 | else | |
489 | rm -f conf$$.dir | |
490 | mkdir conf$$.dir 2>/dev/null | |
491 | fi | |
492 | if (echo >conf$$.file) 2>/dev/null; then | |
493 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
494 | as_ln_s='ln -s' | |
495 | # ... but there are two gotchas: | |
496 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
497 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
498 | # In both cases, we have to default to `cp -p'. | |
499 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
500 | as_ln_s='cp -p' | |
501 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
502 | as_ln_s=ln | |
503 | else | |
504 | as_ln_s='cp -p' | |
505 | fi | |
506 | else | |
507 | as_ln_s='cp -p' | |
508 | fi | |
509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
510 | rmdir conf$$.dir 2>/dev/null | |
511 | ||
512 | if mkdir -p . 2>/dev/null; then | |
513 | as_mkdir_p='mkdir -p "$as_dir"' | |
514 | else | |
515 | test -d ./-p && rmdir ./-p | |
516 | as_mkdir_p=false | |
517 | fi | |
518 | ||
519 | if test -x / >/dev/null 2>&1; then | |
520 | as_test_x='test -x' | |
521 | else | |
522 | if ls -dL / >/dev/null 2>&1; then | |
523 | as_ls_L_option=L | |
524 | else | |
525 | as_ls_L_option= | |
526 | fi | |
527 | as_test_x=' | |
528 | eval sh -c '\'' | |
529 | if test -d "$1"; then | |
530 | test -d "$1/."; | |
531 | else | |
532 | case $1 in #( | |
533 | -*)set "./$1";; | |
534 | esac; | |
535 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
536 | ???[sx]*):;;*)false;;esac;fi | |
537 | '\'' sh | |
538 | ' | |
539 | fi | |
540 | as_executable_p=$as_test_x | |
541 | ||
542 | # Sed expression to map a string onto a valid CPP name. | |
543 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
544 | ||
545 | # Sed expression to map a string onto a valid variable name. | |
546 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
547 | ||
548 | as_awk_strverscmp=' | |
549 | # Use only awk features that work with 7th edition Unix awk (1978). | |
550 | # My, what an old awk you have, Mr. Solaris! | |
551 | END { | |
552 | while (length(v1) && length(v2)) { | |
553 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
554 | # Normally this is a single character, but if v1 and v2 contain digits, | |
555 | # compare them as integers and fractions as strverscmp does. | |
556 | if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { | |
557 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
558 | # and advance v1 and v2 past the leading digit strings. | |
559 | for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue | |
560 | for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue | |
561 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
562 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
563 | if (d1 ~ /^0/) { | |
564 | if (d2 ~ /^0/) { | |
565 | # Compare two fractions. | |
566 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
567 | d1 = substr(d1, 2); len1-- | |
568 | d2 = substr(d2, 2); len2-- | |
569 | } | |
570 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
571 | # The two components differ in length, and the common prefix | |
572 | # contains only leading zeros. Consider the longer to be less. | |
573 | d1 = -len1 | |
574 | d2 = -len2 | |
575 | } else { | |
576 | # Otherwise, compare as strings. | |
577 | d1 = "x" d1 | |
578 | d2 = "x" d2 | |
579 | } | |
580 | } else { | |
581 | # A fraction is less than an integer. | |
582 | exit 1 | |
583 | } | |
584 | } else { | |
585 | if (d2 ~ /^0/) { | |
586 | # An integer is greater than a fraction. | |
587 | exit 2 | |
588 | } else { | |
589 | # Compare two integers. | |
590 | d1 += 0 | |
591 | d2 += 0 | |
592 | } | |
593 | } | |
594 | } else { | |
595 | # The normal case, without worrying about digits. | |
596 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
597 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
598 | } | |
599 | if (d1 < d2) exit 1 | |
600 | if (d1 > d2) exit 2 | |
601 | } | |
602 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
603 | # which mishandles some comparisons of empty strings to integers. | |
604 | if (length(v2)) exit 1 | |
605 | if (length(v1)) exit 2 | |
606 | } | |
607 | ' | |
608 | SHELL=${CONFIG_SHELL-/bin/sh} | |
609 | ||
610 | ||
611 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
612 | exec 6>&1 | |
613 | ||
614 | # Name of the host. | |
615 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
616 | # so uname gets run too. | |
617 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
618 | ||
619 | # | |
620 | # Initializations. | |
621 | # | |
622 | ac_default_prefix=/usr/local | |
623 | ac_clean_files= | |
624 | ac_config_libobj_dir=. | |
625 | LIBOBJS= | |
626 | cross_compiling=no | |
627 | subdirs= | |
628 | MFLAGS= | |
629 | MAKEFLAGS= | |
630 | ||
631 | # Identity of this package. | |
632 | PACKAGE_NAME='xorg-server' | |
633 | PACKAGE_TARNAME='xorg-server' | |
634 | PACKAGE_VERSION='1.15.1' | |
635 | PACKAGE_STRING='xorg-server 1.15.1' | |
636 | PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' | |
637 | PACKAGE_URL='' | |
638 | ||
639 | ac_unique_file="Makefile.am" | |
640 | # Factoring default headers for most tests. | |
641 | ac_includes_default="\ | |
642 | #include <stdio.h> | |
643 | #ifdef HAVE_SYS_TYPES_H | |
644 | # include <sys/types.h> | |
645 | #endif | |
646 | #ifdef HAVE_SYS_STAT_H | |
647 | # include <sys/stat.h> | |
648 | #endif | |
649 | #ifdef STDC_HEADERS | |
650 | # include <stdlib.h> | |
651 | # include <stddef.h> | |
652 | #else | |
653 | # ifdef HAVE_STDLIB_H | |
654 | # include <stdlib.h> | |
655 | # endif | |
656 | #endif | |
657 | #ifdef HAVE_STRING_H | |
658 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
659 | # include <memory.h> | |
660 | # endif | |
661 | # include <string.h> | |
662 | #endif | |
663 | #ifdef HAVE_STRINGS_H | |
664 | # include <strings.h> | |
665 | #endif | |
666 | #ifdef HAVE_INTTYPES_H | |
667 | # include <inttypes.h> | |
668 | #endif | |
669 | #ifdef HAVE_STDINT_H | |
670 | # include <stdint.h> | |
671 | #endif | |
672 | #ifdef HAVE_UNISTD_H | |
673 | # include <unistd.h> | |
674 | #endif" | |
675 | ||
676 | ac_subst_vars='am__EXEEXT_FALSE | |
677 | am__EXEEXT_TRUE | |
678 | LTLIBOBJS | |
679 | DIX_CFLAGS | |
680 | BUILD_TIME | |
681 | BUILD_DATE | |
682 | RELEASE_DATE | |
683 | PROJECTROOT | |
684 | XFAKESERVER_FALSE | |
685 | XFAKESERVER_TRUE | |
686 | BUILD_KDRIVEFBDEVLIB_FALSE | |
687 | BUILD_KDRIVEFBDEVLIB_TRUE | |
688 | XEPHYR_FALSE | |
689 | XEPHYR_TRUE | |
690 | KDRIVEFBDEV_FALSE | |
691 | KDRIVEFBDEV_TRUE | |
692 | TSLIB_FALSE | |
693 | TSLIB_TRUE | |
694 | KDRIVE_MOUSE_FALSE | |
695 | KDRIVE_MOUSE_TRUE | |
696 | KDRIVE_KBD_FALSE | |
697 | KDRIVE_KBD_TRUE | |
698 | KDRIVE_EVDEV_FALSE | |
699 | KDRIVE_EVDEV_TRUE | |
700 | KDRIVELINUX_FALSE | |
701 | KDRIVELINUX_TRUE | |
702 | KDRIVE_LIBS | |
703 | KDRIVE_LOCAL_LIBS | |
704 | KDRIVE_PURE_LIBS | |
705 | KDRIVE_CFLAGS | |
706 | KDRIVE_PURE_INCS | |
707 | KDRIVE_INCS | |
708 | XEPHYR_INCS | |
709 | XEPHYR_LIBS | |
710 | XEPHYR_CFLAGS | |
711 | TSLIB_LIBS | |
712 | TSLIB_CFLAGS | |
713 | KDRIVE_FALSE | |
714 | KDRIVE_TRUE | |
715 | DMX_BUILD_USB_FALSE | |
716 | DMX_BUILD_USB_TRUE | |
717 | DMX_BUILD_LNX_FALSE | |
718 | DMX_BUILD_LNX_TRUE | |
719 | X11EXAMPLES_DEP_LIBS | |
720 | X11EXAMPLES_DEP_CFLAGS | |
721 | XRESEXAMPLES_DEP_LIBS | |
722 | XRESEXAMPLES_DEP_CFLAGS | |
723 | XTSTEXAMPLES_DEP_LIBS | |
724 | XTSTEXAMPLES_DEP_CFLAGS | |
725 | DMXXIEXAMPLES_DEP_LIBS | |
726 | DMXXIEXAMPLES_DEP_CFLAGS | |
727 | DMXXMUEXAMPLES_DEP_LIBS | |
728 | DMXXMUEXAMPLES_DEP_CFLAGS | |
729 | DMXEXAMPLES_DEP_LIBS | |
730 | DMXEXAMPLES_DEP_CFLAGS | |
731 | XDMX_SYS_LIBS | |
732 | XDMX_LIBS | |
733 | XDMX_CFLAGS | |
734 | DMX_FALSE | |
735 | DMX_TRUE | |
736 | XDMXCONFIG_DEP_LIBS | |
737 | XDMXCONFIG_DEP_CFLAGS | |
738 | DMXMODULES_LIBS | |
739 | DMXMODULES_CFLAGS | |
740 | STANDALONE_XPBPROXY_FALSE | |
741 | STANDALONE_XPBPROXY_TRUE | |
742 | XQUARTZ_SPARKLE_FALSE | |
743 | XQUARTZ_SPARKLE_TRUE | |
744 | XQUARTZ_FALSE | |
745 | XQUARTZ_TRUE | |
746 | am__fastdepOBJC_FALSE | |
747 | am__fastdepOBJC_TRUE | |
748 | OBJCDEPMODE | |
749 | OBJCFLAGS | |
750 | OBJCLINK | |
751 | OBJCCLD | |
752 | OBJC | |
753 | XPBPROXY_LIBS | |
754 | XPBPROXY_CFLAGS | |
755 | XQUARTZ_LIBS | |
756 | XWIN_XV_FALSE | |
757 | XWIN_XV_TRUE | |
758 | XWIN_RANDR_FALSE | |
759 | XWIN_RANDR_TRUE | |
760 | XWIN_PRIMARYFB_FALSE | |
761 | XWIN_PRIMARYFB_TRUE | |
762 | XWIN_NATIVEGDI_FALSE | |
763 | XWIN_NATIVEGDI_TRUE | |
764 | XWIN_GLX_WINDOWS_FALSE | |
765 | XWIN_GLX_WINDOWS_TRUE | |
766 | XWIN_CLIPBOARD_FALSE | |
767 | XWIN_CLIPBOARD_TRUE | |
768 | XWIN_MULTIWINDOWEXTWM_FALSE | |
769 | XWIN_MULTIWINDOWEXTWM_TRUE | |
770 | XWIN_MULTIWINDOW_FALSE | |
771 | XWIN_MULTIWINDOW_TRUE | |
772 | XWIN_FALSE | |
773 | XWIN_TRUE | |
774 | KHRONOS_SPEC_DIR | |
775 | KHRONOS_OPENGL_REGISTRY_LIBS | |
776 | KHRONOS_OPENGL_REGISTRY_CFLAGS | |
777 | PYTHON3 | |
778 | XWIN_SYS_LIBS | |
779 | XWIN_SERVER_NAME | |
780 | XWIN_LIBS | |
781 | WINDOWSWM_LIBS | |
782 | WINDOWSWM_CFLAGS | |
783 | XWINMODULES_LIBS | |
784 | XWINMODULES_CFLAGS | |
785 | WINDRES | |
786 | DEFAULT_LOGDIR | |
787 | SYSCONFDIR | |
788 | XORG_BUS_PLATFORM_FALSE | |
789 | XORG_BUS_PLATFORM_TRUE | |
790 | XF86VIDMODE_FALSE | |
791 | XF86VIDMODE_TRUE | |
792 | DGA_FALSE | |
793 | DGA_TRUE | |
794 | SOLARIS_VT_FALSE | |
795 | SOLARIS_VT_TRUE | |
796 | LNXAPM_FALSE | |
797 | LNXAPM_TRUE | |
798 | LNXACPI_FALSE | |
799 | LNXACPI_TRUE | |
800 | LINUX_ALPHA_FALSE | |
801 | LINUX_ALPHA_TRUE | |
802 | XORG_BUS_SPARC_FALSE | |
803 | XORG_BUS_SPARC_TRUE | |
804 | XORG_BUS_BSDPCI_FALSE | |
805 | XORG_BUS_BSDPCI_TRUE | |
806 | XORG_BUS_PCI_FALSE | |
807 | XORG_BUS_PCI_TRUE | |
808 | XORG_FALSE | |
809 | XORG_TRUE | |
810 | abi_extension | |
811 | abi_xinput | |
812 | abi_videodrv | |
813 | abi_ansic | |
814 | logdir | |
815 | sysconfigdir | |
816 | extdir | |
817 | sdkdir | |
818 | driverdir | |
819 | moduledir | |
820 | DEFAULT_LOGPREFIX | |
821 | DEFAULT_LIBRARY_PATH | |
822 | DEFAULT_MODULE_PATH | |
823 | __XCONFIGDIR__ | |
824 | XF86CONFIGFILE | |
825 | __XCONFIGFILE__ | |
826 | XF86CONFIGDIR | |
827 | XORG_CFLAGS | |
828 | XORG_OS_SUBDIR | |
829 | XORG_INCS | |
830 | XORG_SYS_LIBS | |
831 | XORG_LIBS | |
832 | XORG_MODULES_LIBS | |
833 | XORG_MODULES_CFLAGS | |
834 | XF86VIDMODE_LIBS | |
835 | XF86VIDMODE_CFLAGS | |
836 | DGA_LIBS | |
837 | DGA_CFLAGS | |
838 | SOLARIS_INOUT_ARCH | |
839 | PCI_TXT_IDS_PATH | |
840 | PCIACCESS_LIBS | |
841 | PCIACCESS_CFLAGS | |
842 | symbol_visibility | |
843 | XNEST_SYS_LIBS | |
844 | XNEST_LIBS | |
845 | XNEST_FALSE | |
846 | XNEST_TRUE | |
847 | XNESTMODULES_LIBS | |
848 | XNESTMODULES_CFLAGS | |
849 | XVFB_SYS_LIBS | |
850 | XVFB_LIBS | |
851 | XVFB_FALSE | |
852 | XVFB_TRUE | |
853 | NO_UNDEFINED_FALSE | |
854 | NO_UNDEFINED_TRUE | |
855 | CYGWIN_FALSE | |
856 | CYGWIN_TRUE | |
857 | XORG_DRIVER_LIBS | |
858 | LD_NO_UNDEFINED_FLAG | |
859 | LD_EXPORT_SYMBOLS_FLAG | |
860 | UTILS_SYS_LIBS | |
861 | XSERVER_SYS_LIBS | |
862 | XSERVER_LIBS | |
863 | HAVE_LIBUNWIND_FALSE | |
864 | HAVE_LIBUNWIND_TRUE | |
865 | LIBUNWIND_LIBS | |
866 | LIBUNWIND_CFLAGS | |
867 | XSERVERLIBS_LIBS | |
868 | XSERVERLIBS_CFLAGS | |
869 | XSERVERCFLAGS_LIBS | |
870 | XSERVERCFLAGS_CFLAGS | |
871 | SHA1_CFLAGS | |
872 | SHA1_LIBS | |
873 | OPENSSL_LIBS | |
874 | OPENSSL_CFLAGS | |
875 | LIBSHA1_LIBS | |
876 | LIBSHA1_CFLAGS | |
877 | MAIN_LIB | |
878 | OS_LIB | |
879 | DIX_LIB | |
880 | DEBUG_FALSE | |
881 | DEBUG_TRUE | |
882 | VENDOR_NAME_SHORT | |
883 | DRI_DRIVER_PATH | |
884 | BASE_FONT_PATH | |
885 | SERVER_MISC_CONFIG_PATH | |
886 | COMPILEDDEFAULTFONTPATH | |
887 | XDMAUTH_FALSE | |
888 | XDMAUTH_TRUE | |
889 | XDMCP_FALSE | |
890 | XDMCP_TRUE | |
891 | XDMCP_LIBS | |
892 | XDMCP_CFLAGS | |
893 | XKB_DFLT_OPTIONS | |
894 | XKB_DFLT_VARIANT | |
895 | XKB_DFLT_LAYOUT | |
896 | XKB_DFLT_MODEL | |
897 | XKB_DFLT_RULES | |
898 | XKB_COMPILED_DIR | |
899 | XKM_OUTPUT_DIR | |
900 | XKB_BIN_DIRECTORY | |
901 | XKB_BASE_DIRECTORY | |
902 | INT10MODULE_FALSE | |
903 | INT10MODULE_TRUE | |
904 | VBE_FALSE | |
905 | VBE_TRUE | |
906 | VGAHW_FALSE | |
907 | VGAHW_TRUE | |
908 | XF86UTILS_FALSE | |
909 | XF86UTILS_TRUE | |
910 | DPMSExtension_FALSE | |
911 | DPMSExtension_TRUE | |
912 | XF86BIGFONT_FALSE | |
913 | XF86BIGFONT_TRUE | |
914 | DBE_FALSE | |
915 | DBE_TRUE | |
916 | XCSECURITY_FALSE | |
917 | XCSECURITY_TRUE | |
918 | SELINUX_LIBS | |
919 | SELINUX_CFLAGS | |
920 | XSELINUX_FALSE | |
921 | XSELINUX_TRUE | |
922 | XACE_FALSE | |
923 | XACE_TRUE | |
924 | XINERAMA_FALSE | |
925 | XINERAMA_TRUE | |
926 | PRESENT_FALSE | |
927 | PRESENT_TRUE | |
928 | GLX_SYS_LIBS | |
929 | GLX_DEFINES | |
930 | AIGLX_DRI_LOADER_FALSE | |
931 | AIGLX_DRI_LOADER_TRUE | |
932 | GLX_FALSE | |
933 | GLX_TRUE | |
934 | GL_LIBS | |
935 | GL_CFLAGS | |
936 | XLIB_LIBS | |
937 | XLIB_CFLAGS | |
938 | DRI2_AIGLX_FALSE | |
939 | DRI2_AIGLX_TRUE | |
940 | LIBDRM_LIBS | |
941 | LIBDRM_CFLAGS | |
942 | DRI3_FALSE | |
943 | DRI3_TRUE | |
944 | XSHMFENCE_FALSE | |
945 | XSHMFENCE_TRUE | |
946 | XSHMFENCE_LIBS | |
947 | XSHMFENCE_CFLAGS | |
948 | BUSFAULT_FALSE | |
949 | BUSFAULT_TRUE | |
950 | DRI3PROTO_LIBS | |
951 | DRI3PROTO_CFLAGS | |
952 | DRI2_FALSE | |
953 | DRI2_TRUE | |
954 | DRI2PROTO_LIBS | |
955 | DRI2PROTO_CFLAGS | |
956 | DRI_FALSE | |
957 | DRI_TRUE | |
958 | CLIENTIDS_FALSE | |
959 | CLIENTIDS_TRUE | |
960 | RES_FALSE | |
961 | RES_TRUE | |
962 | SCREENSAVER_FALSE | |
963 | SCREENSAVER_TRUE | |
964 | RECORD_FALSE | |
965 | RECORD_TRUE | |
966 | MITSHM_FALSE | |
967 | MITSHM_TRUE | |
968 | COMPOSITE_FALSE | |
969 | COMPOSITE_TRUE | |
970 | XREGISTRY_FALSE | |
971 | XREGISTRY_TRUE | |
972 | XVMC_FALSE | |
973 | XVMC_TRUE | |
974 | XV_FALSE | |
975 | XV_TRUE | |
976 | CONFIG_WSCONS_FALSE | |
977 | CONFIG_WSCONS_TRUE | |
978 | CONFIG_NEED_DBUS_FALSE | |
979 | CONFIG_NEED_DBUS_TRUE | |
980 | CONFIG_HAL_FALSE | |
981 | CONFIG_HAL_TRUE | |
982 | HAL_LIBS | |
983 | HAL_CFLAGS | |
984 | CONFIG_DBUS_API_FALSE | |
985 | CONFIG_DBUS_API_TRUE | |
986 | HAVE_DBUS_FALSE | |
987 | HAVE_DBUS_TRUE | |
988 | DBUS_LIBS | |
989 | DBUS_CFLAGS | |
990 | CONFIG_UDEV_KMS_FALSE | |
991 | CONFIG_UDEV_KMS_TRUE | |
992 | CONFIG_UDEV_FALSE | |
993 | CONFIG_UDEV_TRUE | |
994 | UDEV_LIBS | |
995 | UDEV_CFLAGS | |
996 | SDK_REQUIRED_MODULES | |
997 | PIXMAN_LIBS | |
998 | PIXMAN_CFLAGS | |
999 | INSTALL_LIBXF86CONFIG_FALSE | |
1000 | INSTALL_LIBXF86CONFIG_TRUE | |
1001 | INT10_STUB_FALSE | |
1002 | INT10_STUB_TRUE | |
1003 | INT10_X86EMU_FALSE | |
1004 | INT10_X86EMU_TRUE | |
1005 | INT10_VM86_FALSE | |
1006 | INT10_VM86_TRUE | |
1007 | SECURE_RPC_FALSE | |
1008 | SECURE_RPC_TRUE | |
1009 | INSTALL_SETUID_FALSE | |
1010 | INSTALL_SETUID_TRUE | |
1011 | GLX_TLS | |
1012 | XQUARTZ_SPARKLE | |
1013 | BUNDLE_ID_PREFIX | |
1014 | APPLE_APPLICATION_NAME | |
1015 | APPLE_APPLICATIONS_DIR | |
1016 | FONT100DPIDIR | |
1017 | FONT75DPIDIR | |
1018 | FONTTYPE1DIR | |
1019 | FONTTTFDIR | |
1020 | FONTOTFDIR | |
1021 | FONTMISCDIR | |
1022 | FONTROOTDIR | |
1023 | SPARC64_VIDEO_FALSE | |
1024 | SPARC64_VIDEO_TRUE | |
1025 | PPC_VIDEO_FALSE | |
1026 | PPC_VIDEO_TRUE | |
1027 | I386_VIDEO_FALSE | |
1028 | I386_VIDEO_TRUE | |
1029 | ARM_VIDEO_FALSE | |
1030 | ARM_VIDEO_TRUE | |
1031 | ALPHA_VIDEO_FALSE | |
1032 | ALPHA_VIDEO_TRUE | |
1033 | GLX_ARCH_DEFINES | |
1034 | BSD_KQUEUE_APM_FALSE | |
1035 | BSD_KQUEUE_APM_TRUE | |
1036 | BSD_APM_FALSE | |
1037 | BSD_APM_TRUE | |
1038 | FREEBSD_KLDLOAD_FALSE | |
1039 | FREEBSD_KLDLOAD_TRUE | |
1040 | FBDEVHW_FALSE | |
1041 | FBDEVHW_TRUE | |
1042 | AGP_FALSE | |
1043 | AGP_TRUE | |
1044 | LIBOBJS | |
1045 | DLOPEN_LIBS | |
1046 | SPECIAL_DTRACE_OBJECTS_FALSE | |
1047 | SPECIAL_DTRACE_OBJECTS_TRUE | |
1048 | XSERVER_DTRACE_FALSE | |
1049 | XSERVER_DTRACE_TRUE | |
1050 | DTRACE | |
1051 | RAWCPPFLAGS | |
1052 | RAWCPP | |
1053 | YFLAGS | |
1054 | YACC | |
1055 | LEXLIB | |
1056 | LEX_OUTPUT_ROOT | |
1057 | LEX | |
1058 | OTOOL64 | |
1059 | OTOOL | |
1060 | LIPO | |
1061 | NMEDIT | |
1062 | DSYMUTIL | |
1063 | MANIFEST_TOOL | |
1064 | RANLIB | |
1065 | ac_ct_AR | |
1066 | AR | |
1067 | NM | |
1068 | ac_ct_DUMPBIN | |
1069 | DUMPBIN | |
1070 | LD | |
1071 | FGREP | |
1072 | LIBTOOL | |
1073 | OBJDUMP | |
1074 | DLLTOOL | |
1075 | AS | |
1076 | LN_S | |
1077 | am__fastdepCCAS_FALSE | |
1078 | am__fastdepCCAS_TRUE | |
1079 | CCASDEPMODE | |
1080 | CCASFLAGS | |
1081 | CCAS | |
1082 | HAVE_LD_WRAP_FALSE | |
1083 | HAVE_LD_WRAP_TRUE | |
1084 | ENABLE_UNIT_TESTS_FALSE | |
1085 | ENABLE_UNIT_TESTS_TRUE | |
1086 | XORG_MALLOC_DEBUG_ENV | |
1087 | HAVE_XSLTPROC_FALSE | |
1088 | HAVE_XSLTPROC_TRUE | |
1089 | XSLTPROC | |
1090 | HAVE_FOP_FALSE | |
1091 | HAVE_FOP_TRUE | |
1092 | FOP | |
1093 | HAVE_XMLTO_FALSE | |
1094 | HAVE_XMLTO_TRUE | |
1095 | HAVE_XMLTO_TEXT_FALSE | |
1096 | HAVE_XMLTO_TEXT_TRUE | |
1097 | XMLTO | |
1098 | ENABLE_DEVEL_DOCS_FALSE | |
1099 | ENABLE_DEVEL_DOCS_TRUE | |
1100 | ENABLE_DOCS_FALSE | |
1101 | ENABLE_DOCS_TRUE | |
1102 | HAVE_STYLESHEETS_FALSE | |
1103 | HAVE_STYLESHEETS_TRUE | |
1104 | XSL_STYLESHEET | |
1105 | STYLESHEET_SRCDIR | |
1106 | XORG_SGML_PATH | |
1107 | HAVE_DOXYGEN_FALSE | |
1108 | HAVE_DOXYGEN_TRUE | |
1109 | HAVE_DOT_FALSE | |
1110 | HAVE_DOT_TRUE | |
1111 | HAVE_DOT | |
1112 | DOT | |
1113 | DOXYGEN | |
1114 | AM_BACKSLASH | |
1115 | AM_DEFAULT_VERBOSITY | |
1116 | AM_DEFAULT_V | |
1117 | AM_V | |
1118 | MAN_SUBSTS | |
1119 | XORG_MAN_PAGE | |
1120 | ADMIN_MAN_DIR | |
1121 | DRIVER_MAN_DIR | |
1122 | MISC_MAN_DIR | |
1123 | FILE_MAN_DIR | |
1124 | LIB_MAN_DIR | |
1125 | APP_MAN_DIR | |
1126 | ADMIN_MAN_SUFFIX | |
1127 | DRIVER_MAN_SUFFIX | |
1128 | MISC_MAN_SUFFIX | |
1129 | FILE_MAN_SUFFIX | |
1130 | LIB_MAN_SUFFIX | |
1131 | APP_MAN_SUFFIX | |
1132 | SED | |
1133 | host_os | |
1134 | host_vendor | |
1135 | host_cpu | |
1136 | host | |
1137 | build_os | |
1138 | build_vendor | |
1139 | build_cpu | |
1140 | build | |
1141 | INSTALL_CMD | |
1142 | PKG_CONFIG_LIBDIR | |
1143 | PKG_CONFIG_PATH | |
1144 | PKG_CONFIG | |
1145 | CHANGELOG_CMD | |
1146 | STRICT_CFLAGS | |
1147 | CWARNFLAGS | |
1148 | BASE_CFLAGS | |
1149 | EGREP | |
1150 | GREP | |
1151 | CPP | |
1152 | am__fastdepCC_FALSE | |
1153 | am__fastdepCC_TRUE | |
1154 | CCDEPMODE | |
1155 | am__nodep | |
1156 | AMDEPBACKSLASH | |
1157 | AMDEP_FALSE | |
1158 | AMDEP_TRUE | |
1159 | am__quote | |
1160 | am__include | |
1161 | DEPDIR | |
1162 | OBJEXT | |
1163 | EXEEXT | |
1164 | ac_ct_CC | |
1165 | CPPFLAGS | |
1166 | LDFLAGS | |
1167 | CFLAGS | |
1168 | CC | |
1169 | am__untar | |
1170 | am__tar | |
1171 | AMTAR | |
1172 | am__leading_dot | |
1173 | SET_MAKE | |
1174 | AWK | |
1175 | mkdir_p | |
1176 | MKDIR_P | |
1177 | INSTALL_STRIP_PROGRAM | |
1178 | STRIP | |
1179 | install_sh | |
1180 | MAKEINFO | |
1181 | AUTOHEADER | |
1182 | AUTOMAKE | |
1183 | AUTOCONF | |
1184 | ACLOCAL | |
1185 | VERSION | |
1186 | PACKAGE | |
1187 | CYGPATH_W | |
1188 | am__isrc | |
1189 | INSTALL_DATA | |
1190 | INSTALL_SCRIPT | |
1191 | INSTALL_PROGRAM | |
1192 | target_alias | |
1193 | host_alias | |
1194 | build_alias | |
1195 | LIBS | |
1196 | ECHO_T | |
1197 | ECHO_N | |
1198 | ECHO_C | |
1199 | DEFS | |
1200 | mandir | |
1201 | localedir | |
1202 | libdir | |
1203 | psdir | |
1204 | pdfdir | |
1205 | dvidir | |
1206 | htmldir | |
1207 | infodir | |
1208 | docdir | |
1209 | oldincludedir | |
1210 | includedir | |
1211 | localstatedir | |
1212 | sharedstatedir | |
1213 | sysconfdir | |
1214 | datadir | |
1215 | datarootdir | |
1216 | libexecdir | |
1217 | sbindir | |
1218 | bindir | |
1219 | program_transform_name | |
1220 | prefix | |
1221 | exec_prefix | |
1222 | PACKAGE_URL | |
1223 | PACKAGE_BUGREPORT | |
1224 | PACKAGE_STRING | |
1225 | PACKAGE_VERSION | |
1226 | PACKAGE_TARNAME | |
1227 | PACKAGE_NAME | |
1228 | PATH_SEPARATOR | |
1229 | SHELL' | |
1230 | ac_subst_files='' | |
1231 | ac_user_opts=' | |
1232 | enable_option_checking | |
1233 | enable_dependency_tracking | |
1234 | enable_selective_werror | |
1235 | enable_strict_compilation | |
1236 | enable_silent_rules | |
1237 | with_doxygen | |
1238 | enable_docs | |
1239 | enable_devel_docs | |
1240 | with_xmlto | |
1241 | with_fop | |
1242 | with_xsltproc | |
1243 | enable_unit_tests | |
1244 | enable_static | |
1245 | enable_shared | |
1246 | with_pic | |
1247 | enable_fast_install | |
1248 | with_gnu_ld | |
1249 | with_sysroot | |
1250 | enable_libtool_lock | |
1251 | enable_largefile | |
1252 | with_dtrace | |
1253 | enable_werror | |
1254 | enable_debug | |
1255 | enable_use_sigio_by_default | |
1256 | with_int10 | |
1257 | with_vendor_name | |
1258 | with_vendor_name_short | |
1259 | with_vendor_web | |
1260 | with_module_dir | |
1261 | with_log_dir | |
1262 | with_builder_addr | |
1263 | with_os_name | |
1264 | with_os_vendor | |
1265 | with_builderstring | |
1266 | with_fontrootdir | |
1267 | with_fontmiscdir | |
1268 | with_fontotfdir | |
1269 | with_fontttfdir | |
1270 | with_fonttype1dir | |
1271 | with_font75dpidir | |
1272 | with_font100dpidir | |
1273 | with_default_font_path | |
1274 | with_xkb_path | |
1275 | with_xkb_output | |
1276 | with_default_xkb_rules | |
1277 | with_default_xkb_model | |
1278 | with_default_xkb_layout | |
1279 | with_default_xkb_variant | |
1280 | with_default_xkb_options | |
1281 | with_serverconfig_path | |
1282 | with_apple_applications_dir | |
1283 | with_apple_application_name | |
1284 | with_launchd_id_prefix | |
1285 | with_bundle_id_prefix | |
1286 | enable_sparkle | |
1287 | enable_install_libxf86config | |
1288 | enable_visibility | |
1289 | enable_aiglx | |
1290 | enable_glx_tls | |
1291 | with_khronos_spec_dir | |
1292 | enable_registry | |
1293 | enable_composite | |
1294 | enable_mitshm | |
1295 | enable_xres | |
1296 | enable_record | |
1297 | enable_xv | |
1298 | enable_xvmc | |
1299 | enable_dga | |
1300 | enable_screensaver | |
1301 | enable_xdmcp | |
1302 | enable_xdm_auth_1 | |
1303 | enable_glx | |
1304 | enable_dri | |
1305 | enable_dri2 | |
1306 | enable_dri3 | |
1307 | enable_present | |
1308 | enable_xinerama | |
1309 | enable_xf86vidmode | |
1310 | enable_xace | |
1311 | enable_xselinux | |
1312 | enable_xcsecurity | |
1313 | enable_tslib | |
1314 | enable_dbe | |
1315 | enable_xf86bigfont | |
1316 | enable_dpms | |
1317 | enable_config_udev | |
1318 | enable_config_udev_kms | |
1319 | enable_config_dbus | |
1320 | enable_config_hal | |
1321 | enable_config_wscons | |
1322 | enable_xfree86_utils | |
1323 | enable_vgahw | |
1324 | enable_vbe | |
1325 | enable_int10_module | |
1326 | enable_windowswm | |
1327 | enable_libdrm | |
1328 | enable_clientids | |
1329 | enable_pciaccess | |
1330 | enable_linux_acpi | |
1331 | enable_linux_apm | |
1332 | enable_xorg | |
1333 | enable_dmx | |
1334 | enable_xvfb | |
1335 | enable_xnest | |
1336 | enable_xquartz | |
1337 | enable_standalone_xpbproxy | |
1338 | enable_xwin | |
1339 | enable_kdrive | |
1340 | enable_xephyr | |
1341 | enable_xfake | |
1342 | enable_xfbdev | |
1343 | enable_kdrive_kbd | |
1344 | enable_kdrive_mouse | |
1345 | enable_kdrive_evdev | |
1346 | enable_libunwind | |
1347 | enable_install_setuid | |
1348 | enable_unix_transport | |
1349 | enable_tcp_transport | |
1350 | enable_ipv6 | |
1351 | enable_local_transport | |
1352 | enable_secure_rpc | |
1353 | with_shared_memory_dir | |
1354 | enable_xtrans_send_fds | |
1355 | with_xkb_bin_directory | |
1356 | with_sha1 | |
1357 | ' | |
1358 | ac_precious_vars='build_alias | |
1359 | host_alias | |
1360 | target_alias | |
1361 | CC | |
1362 | CFLAGS | |
1363 | LDFLAGS | |
1364 | LIBS | |
1365 | CPPFLAGS | |
1366 | CPP | |
1367 | PKG_CONFIG | |
1368 | PKG_CONFIG_PATH | |
1369 | PKG_CONFIG_LIBDIR | |
1370 | DOXYGEN | |
1371 | DOT | |
1372 | XMLTO | |
1373 | FOP | |
1374 | XSLTPROC | |
1375 | XORG_MALLOC_DEBUG_ENV | |
1376 | CCAS | |
1377 | CCASFLAGS | |
1378 | YACC | |
1379 | YFLAGS | |
1380 | PIXMAN_CFLAGS | |
1381 | PIXMAN_LIBS | |
1382 | UDEV_CFLAGS | |
1383 | UDEV_LIBS | |
1384 | DBUS_CFLAGS | |
1385 | DBUS_LIBS | |
1386 | HAL_CFLAGS | |
1387 | HAL_LIBS | |
1388 | DRI2PROTO_CFLAGS | |
1389 | DRI2PROTO_LIBS | |
1390 | DRI3PROTO_CFLAGS | |
1391 | DRI3PROTO_LIBS | |
1392 | XSHMFENCE_CFLAGS | |
1393 | XSHMFENCE_LIBS | |
1394 | LIBDRM_CFLAGS | |
1395 | LIBDRM_LIBS | |
1396 | XLIB_CFLAGS | |
1397 | XLIB_LIBS | |
1398 | GL_CFLAGS | |
1399 | GL_LIBS | |
1400 | SELINUX_CFLAGS | |
1401 | SELINUX_LIBS | |
1402 | XDMCP_CFLAGS | |
1403 | XDMCP_LIBS | |
1404 | LIBSHA1_CFLAGS | |
1405 | LIBSHA1_LIBS | |
1406 | OPENSSL_CFLAGS | |
1407 | OPENSSL_LIBS | |
1408 | XSERVERCFLAGS_CFLAGS | |
1409 | XSERVERCFLAGS_LIBS | |
1410 | XSERVERLIBS_CFLAGS | |
1411 | XSERVERLIBS_LIBS | |
1412 | LIBUNWIND_CFLAGS | |
1413 | LIBUNWIND_LIBS | |
1414 | XNESTMODULES_CFLAGS | |
1415 | XNESTMODULES_LIBS | |
1416 | PCIACCESS_CFLAGS | |
1417 | PCIACCESS_LIBS | |
1418 | DGA_CFLAGS | |
1419 | DGA_LIBS | |
1420 | XF86VIDMODE_CFLAGS | |
1421 | XF86VIDMODE_LIBS | |
1422 | XORG_MODULES_CFLAGS | |
1423 | XORG_MODULES_LIBS | |
1424 | XWINMODULES_CFLAGS | |
1425 | XWINMODULES_LIBS | |
1426 | WINDOWSWM_CFLAGS | |
1427 | WINDOWSWM_LIBS | |
1428 | KHRONOS_OPENGL_REGISTRY_CFLAGS | |
1429 | KHRONOS_OPENGL_REGISTRY_LIBS | |
1430 | XPBPROXY_CFLAGS | |
1431 | XPBPROXY_LIBS | |
1432 | DMXMODULES_CFLAGS | |
1433 | DMXMODULES_LIBS | |
1434 | XDMXCONFIG_DEP_CFLAGS | |
1435 | XDMXCONFIG_DEP_LIBS | |
1436 | DMXEXAMPLES_DEP_CFLAGS | |
1437 | DMXEXAMPLES_DEP_LIBS | |
1438 | DMXXMUEXAMPLES_DEP_CFLAGS | |
1439 | DMXXMUEXAMPLES_DEP_LIBS | |
1440 | DMXXIEXAMPLES_DEP_CFLAGS | |
1441 | DMXXIEXAMPLES_DEP_LIBS | |
1442 | XTSTEXAMPLES_DEP_CFLAGS | |
1443 | XTSTEXAMPLES_DEP_LIBS | |
1444 | XRESEXAMPLES_DEP_CFLAGS | |
1445 | XRESEXAMPLES_DEP_LIBS | |
1446 | X11EXAMPLES_DEP_CFLAGS | |
1447 | X11EXAMPLES_DEP_LIBS | |
1448 | TSLIB_CFLAGS | |
1449 | TSLIB_LIBS | |
1450 | XEPHYR_CFLAGS | |
1451 | XEPHYR_LIBS' | |
1452 | ||
1453 | ||
1454 | # Initialize some variables set by options. | |
1455 | ac_init_help= | |
1456 | ac_init_version=false | |
1457 | ac_unrecognized_opts= | |
1458 | ac_unrecognized_sep= | |
1459 | # The variables have the same names as the options, with | |
1460 | # dashes changed to underlines. | |
1461 | cache_file=/dev/null | |
1462 | exec_prefix=NONE | |
1463 | no_create= | |
1464 | no_recursion= | |
1465 | prefix=NONE | |
1466 | program_prefix=NONE | |
1467 | program_suffix=NONE | |
1468 | program_transform_name=s,x,x, | |
1469 | silent= | |
1470 | site= | |
1471 | srcdir= | |
1472 | verbose= | |
1473 | x_includes=NONE | |
1474 | x_libraries=NONE | |
1475 | ||
1476 | # Installation directory options. | |
1477 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1478 | # and all the variables that are supposed to be based on exec_prefix | |
1479 | # by default will actually change. | |
1480 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
1481 | # (The list follows the same order as the GNU Coding Standards.) | |
1482 | bindir='${exec_prefix}/bin' | |
1483 | sbindir='${exec_prefix}/sbin' | |
1484 | libexecdir='${exec_prefix}/libexec' | |
1485 | datarootdir='${prefix}/share' | |
1486 | datadir='${datarootdir}' | |
1487 | sysconfdir='${prefix}/etc' | |
1488 | sharedstatedir='${prefix}/com' | |
1489 | localstatedir='${prefix}/var' | |
1490 | includedir='${prefix}/include' | |
1491 | oldincludedir='/usr/include' | |
1492 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
1493 | infodir='${datarootdir}/info' | |
1494 | htmldir='${docdir}' | |
1495 | dvidir='${docdir}' | |
1496 | pdfdir='${docdir}' | |
1497 | psdir='${docdir}' | |
1498 | libdir='${exec_prefix}/lib' | |
1499 | localedir='${datarootdir}/locale' | |
1500 | mandir='${datarootdir}/man' | |
1501 | ||
1502 | ac_prev= | |
1503 | ac_dashdash= | |
1504 | for ac_option | |
1505 | do | |
1506 | # If the previous option needs an argument, assign it. | |
1507 | if test -n "$ac_prev"; then | |
1508 | eval $ac_prev=\$ac_option | |
1509 | ac_prev= | |
1510 | continue | |
1511 | fi | |
1512 | ||
1513 | case $ac_option in | |
1514 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1515 | *=) ac_optarg= ;; | |
1516 | *) ac_optarg=yes ;; | |
1517 | esac | |
1518 | ||
1519 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1520 | ||
1521 | case $ac_dashdash$ac_option in | |
1522 | --) | |
1523 | ac_dashdash=yes ;; | |
1524 | ||
1525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1526 | ac_prev=bindir ;; | |
1527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1528 | bindir=$ac_optarg ;; | |
1529 | ||
1530 | -build | --build | --buil | --bui | --bu) | |
1531 | ac_prev=build_alias ;; | |
1532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1533 | build_alias=$ac_optarg ;; | |
1534 | ||
1535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1537 | ac_prev=cache_file ;; | |
1538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1540 | cache_file=$ac_optarg ;; | |
1541 | ||
1542 | --config-cache | -C) | |
1543 | cache_file=config.cache ;; | |
1544 | ||
1545 | -datadir | --datadir | --datadi | --datad) | |
1546 | ac_prev=datadir ;; | |
1547 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1548 | datadir=$ac_optarg ;; | |
1549 | ||
1550 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1551 | | --dataroo | --dataro | --datar) | |
1552 | ac_prev=datarootdir ;; | |
1553 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1554 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1555 | datarootdir=$ac_optarg ;; | |
1556 | ||
1557 | -disable-* | --disable-*) | |
1558 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1559 | # Reject names that are not valid shell variable names. | |
1560 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1561 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1562 | ac_useropt_orig=$ac_useropt | |
1563 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1564 | case $ac_user_opts in | |
1565 | *" | |
1566 | "enable_$ac_useropt" | |
1567 | "*) ;; | |
1568 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1569 | ac_unrecognized_sep=', ';; | |
1570 | esac | |
1571 | eval enable_$ac_useropt=no ;; | |
1572 | ||
1573 | -docdir | --docdir | --docdi | --doc | --do) | |
1574 | ac_prev=docdir ;; | |
1575 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1576 | docdir=$ac_optarg ;; | |
1577 | ||
1578 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1579 | ac_prev=dvidir ;; | |
1580 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1581 | dvidir=$ac_optarg ;; | |
1582 | ||
1583 | -enable-* | --enable-*) | |
1584 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1585 | # Reject names that are not valid shell variable names. | |
1586 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1587 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1588 | ac_useropt_orig=$ac_useropt | |
1589 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1590 | case $ac_user_opts in | |
1591 | *" | |
1592 | "enable_$ac_useropt" | |
1593 | "*) ;; | |
1594 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1595 | ac_unrecognized_sep=', ';; | |
1596 | esac | |
1597 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1598 | ||
1599 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1600 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1601 | | --exec | --exe | --ex) | |
1602 | ac_prev=exec_prefix ;; | |
1603 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1604 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1605 | | --exec=* | --exe=* | --ex=*) | |
1606 | exec_prefix=$ac_optarg ;; | |
1607 | ||
1608 | -gas | --gas | --ga | --g) | |
1609 | # Obsolete; use --with-gas. | |
1610 | with_gas=yes ;; | |
1611 | ||
1612 | -help | --help | --hel | --he | -h) | |
1613 | ac_init_help=long ;; | |
1614 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1615 | ac_init_help=recursive ;; | |
1616 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1617 | ac_init_help=short ;; | |
1618 | ||
1619 | -host | --host | --hos | --ho) | |
1620 | ac_prev=host_alias ;; | |
1621 | -host=* | --host=* | --hos=* | --ho=*) | |
1622 | host_alias=$ac_optarg ;; | |
1623 | ||
1624 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1625 | ac_prev=htmldir ;; | |
1626 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1627 | | --ht=*) | |
1628 | htmldir=$ac_optarg ;; | |
1629 | ||
1630 | -includedir | --includedir | --includedi | --included | --include \ | |
1631 | | --includ | --inclu | --incl | --inc) | |
1632 | ac_prev=includedir ;; | |
1633 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1634 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1635 | includedir=$ac_optarg ;; | |
1636 | ||
1637 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1638 | ac_prev=infodir ;; | |
1639 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1640 | infodir=$ac_optarg ;; | |
1641 | ||
1642 | -libdir | --libdir | --libdi | --libd) | |
1643 | ac_prev=libdir ;; | |
1644 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1645 | libdir=$ac_optarg ;; | |
1646 | ||
1647 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1648 | | --libexe | --libex | --libe) | |
1649 | ac_prev=libexecdir ;; | |
1650 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1651 | | --libexe=* | --libex=* | --libe=*) | |
1652 | libexecdir=$ac_optarg ;; | |
1653 | ||
1654 | -localedir | --localedir | --localedi | --localed | --locale) | |
1655 | ac_prev=localedir ;; | |
1656 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1657 | localedir=$ac_optarg ;; | |
1658 | ||
1659 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1660 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1661 | ac_prev=localstatedir ;; | |
1662 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1663 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1664 | localstatedir=$ac_optarg ;; | |
1665 | ||
1666 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1667 | ac_prev=mandir ;; | |
1668 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1669 | mandir=$ac_optarg ;; | |
1670 | ||
1671 | -nfp | --nfp | --nf) | |
1672 | # Obsolete; use --without-fp. | |
1673 | with_fp=no ;; | |
1674 | ||
1675 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1676 | | --no-cr | --no-c | -n) | |
1677 | no_create=yes ;; | |
1678 | ||
1679 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1680 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1681 | no_recursion=yes ;; | |
1682 | ||
1683 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1684 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1685 | | --oldin | --oldi | --old | --ol | --o) | |
1686 | ac_prev=oldincludedir ;; | |
1687 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1688 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1689 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1690 | oldincludedir=$ac_optarg ;; | |
1691 | ||
1692 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1693 | ac_prev=prefix ;; | |
1694 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1695 | prefix=$ac_optarg ;; | |
1696 | ||
1697 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1698 | | --program-pre | --program-pr | --program-p) | |
1699 | ac_prev=program_prefix ;; | |
1700 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1701 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1702 | program_prefix=$ac_optarg ;; | |
1703 | ||
1704 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1705 | | --program-suf | --program-su | --program-s) | |
1706 | ac_prev=program_suffix ;; | |
1707 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1708 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1709 | program_suffix=$ac_optarg ;; | |
1710 | ||
1711 | -program-transform-name | --program-transform-name \ | |
1712 | | --program-transform-nam | --program-transform-na \ | |
1713 | | --program-transform-n | --program-transform- \ | |
1714 | | --program-transform | --program-transfor \ | |
1715 | | --program-transfo | --program-transf \ | |
1716 | | --program-trans | --program-tran \ | |
1717 | | --progr-tra | --program-tr | --program-t) | |
1718 | ac_prev=program_transform_name ;; | |
1719 | -program-transform-name=* | --program-transform-name=* \ | |
1720 | | --program-transform-nam=* | --program-transform-na=* \ | |
1721 | | --program-transform-n=* | --program-transform-=* \ | |
1722 | | --program-transform=* | --program-transfor=* \ | |
1723 | | --program-transfo=* | --program-transf=* \ | |
1724 | | --program-trans=* | --program-tran=* \ | |
1725 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1726 | program_transform_name=$ac_optarg ;; | |
1727 | ||
1728 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1729 | ac_prev=pdfdir ;; | |
1730 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1731 | pdfdir=$ac_optarg ;; | |
1732 | ||
1733 | -psdir | --psdir | --psdi | --psd | --ps) | |
1734 | ac_prev=psdir ;; | |
1735 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1736 | psdir=$ac_optarg ;; | |
1737 | ||
1738 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1739 | | -silent | --silent | --silen | --sile | --sil) | |
1740 | silent=yes ;; | |
1741 | ||
1742 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1743 | ac_prev=sbindir ;; | |
1744 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1745 | | --sbi=* | --sb=*) | |
1746 | sbindir=$ac_optarg ;; | |
1747 | ||
1748 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1749 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1750 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1751 | | --sha | --sh) | |
1752 | ac_prev=sharedstatedir ;; | |
1753 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1754 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1755 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1756 | | --sha=* | --sh=*) | |
1757 | sharedstatedir=$ac_optarg ;; | |
1758 | ||
1759 | -site | --site | --sit) | |
1760 | ac_prev=site ;; | |
1761 | -site=* | --site=* | --sit=*) | |
1762 | site=$ac_optarg ;; | |
1763 | ||
1764 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1765 | ac_prev=srcdir ;; | |
1766 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1767 | srcdir=$ac_optarg ;; | |
1768 | ||
1769 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1770 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1771 | ac_prev=sysconfdir ;; | |
1772 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1773 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1774 | sysconfdir=$ac_optarg ;; | |
1775 | ||
1776 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1777 | ac_prev=target_alias ;; | |
1778 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1779 | target_alias=$ac_optarg ;; | |
1780 | ||
1781 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1782 | verbose=yes ;; | |
1783 | ||
1784 | -version | --version | --versio | --versi | --vers | -V) | |
1785 | ac_init_version=: ;; | |
1786 | ||
1787 | -with-* | --with-*) | |
1788 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1789 | # Reject names that are not valid shell variable names. | |
1790 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1791 | as_fn_error $? "invalid package name: $ac_useropt" | |
1792 | ac_useropt_orig=$ac_useropt | |
1793 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1794 | case $ac_user_opts in | |
1795 | *" | |
1796 | "with_$ac_useropt" | |
1797 | "*) ;; | |
1798 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1799 | ac_unrecognized_sep=', ';; | |
1800 | esac | |
1801 | eval with_$ac_useropt=\$ac_optarg ;; | |
1802 | ||
1803 | -without-* | --without-*) | |
1804 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1805 | # Reject names that are not valid shell variable names. | |
1806 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1807 | as_fn_error $? "invalid package name: $ac_useropt" | |
1808 | ac_useropt_orig=$ac_useropt | |
1809 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1810 | case $ac_user_opts in | |
1811 | *" | |
1812 | "with_$ac_useropt" | |
1813 | "*) ;; | |
1814 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1815 | ac_unrecognized_sep=', ';; | |
1816 | esac | |
1817 | eval with_$ac_useropt=no ;; | |
1818 | ||
1819 | --x) | |
1820 | # Obsolete; use --with-x. | |
1821 | with_x=yes ;; | |
1822 | ||
1823 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1824 | | --x-incl | --x-inc | --x-in | --x-i) | |
1825 | ac_prev=x_includes ;; | |
1826 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1827 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1828 | x_includes=$ac_optarg ;; | |
1829 | ||
1830 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1831 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1832 | ac_prev=x_libraries ;; | |
1833 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1834 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1835 | x_libraries=$ac_optarg ;; | |
1836 | ||
1837 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1838 | Try \`$0 --help' for more information" | |
1839 | ;; | |
1840 | ||
1841 | *=*) | |
1842 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1843 | # Reject names that are not valid shell variable names. | |
1844 | case $ac_envvar in #( | |
1845 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1846 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1847 | esac | |
1848 | eval $ac_envvar=\$ac_optarg | |
1849 | export $ac_envvar ;; | |
1850 | ||
1851 | *) | |
1852 | # FIXME: should be removed in autoconf 3.0. | |
1853 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1854 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1855 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1856 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1857 | ;; | |
1858 | ||
1859 | esac | |
1860 | done | |
1861 | ||
1862 | if test -n "$ac_prev"; then | |
1863 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1864 | as_fn_error $? "missing argument to $ac_option" | |
1865 | fi | |
1866 | ||
1867 | if test -n "$ac_unrecognized_opts"; then | |
1868 | case $enable_option_checking in | |
1869 | no) ;; | |
1870 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1871 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1872 | esac | |
1873 | fi | |
1874 | ||
1875 | # Check all directory arguments for consistency. | |
1876 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1877 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1878 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1879 | libdir localedir mandir | |
1880 | do | |
1881 | eval ac_val=\$$ac_var | |
1882 | # Remove trailing slashes. | |
1883 | case $ac_val in | |
1884 | */ ) | |
1885 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1886 | eval $ac_var=\$ac_val;; | |
1887 | esac | |
1888 | # Be sure to have absolute directory names. | |
1889 | case $ac_val in | |
1890 | [\\/$]* | ?:[\\/]* ) continue;; | |
1891 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1892 | esac | |
1893 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1894 | done | |
1895 | ||
1896 | # There might be people who depend on the old broken behavior: `$host' | |
1897 | # used to hold the argument of --host etc. | |
1898 | # FIXME: To remove some day. | |
1899 | build=$build_alias | |
1900 | host=$host_alias | |
1901 | target=$target_alias | |
1902 | ||
1903 | # FIXME: To remove some day. | |
1904 | if test "x$host_alias" != x; then | |
1905 | if test "x$build_alias" = x; then | |
1906 | cross_compiling=maybe | |
1907 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1908 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
1909 | elif test "x$build_alias" != "x$host_alias"; then | |
1910 | cross_compiling=yes | |
1911 | fi | |
1912 | fi | |
1913 | ||
1914 | ac_tool_prefix= | |
1915 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1916 | ||
1917 | test "$silent" = yes && exec 6>/dev/null | |
1918 | ||
1919 | ||
1920 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1921 | ac_ls_di=`ls -di .` && | |
1922 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1923 | as_fn_error $? "working directory cannot be determined" | |
1924 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1925 | as_fn_error $? "pwd does not report name of working directory" | |
1926 | ||
1927 | ||
1928 | # Find the source files, if location was not specified. | |
1929 | if test -z "$srcdir"; then | |
1930 | ac_srcdir_defaulted=yes | |
1931 | # Try the directory containing this script, then the parent directory. | |
1932 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1933 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1934 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1935 | X"$as_myself" : 'X\(//\)$' \| \ | |
1936 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1937 | $as_echo X"$as_myself" | | |
1938 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1939 | s//\1/ | |
1940 | q | |
1941 | } | |
1942 | /^X\(\/\/\)[^/].*/{ | |
1943 | s//\1/ | |
1944 | q | |
1945 | } | |
1946 | /^X\(\/\/\)$/{ | |
1947 | s//\1/ | |
1948 | q | |
1949 | } | |
1950 | /^X\(\/\).*/{ | |
1951 | s//\1/ | |
1952 | q | |
1953 | } | |
1954 | s/.*/./; q'` | |
1955 | srcdir=$ac_confdir | |
1956 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1957 | srcdir=.. | |
1958 | fi | |
1959 | else | |
1960 | ac_srcdir_defaulted=no | |
1961 | fi | |
1962 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1963 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1964 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1965 | fi | |
1966 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1967 | ac_abs_confdir=`( | |
1968 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1969 | pwd)` | |
1970 | # When building in place, set srcdir=. | |
1971 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1972 | srcdir=. | |
1973 | fi | |
1974 | # Remove unnecessary trailing slashes from srcdir. | |
1975 | # Double slashes in file names in object file debugging info | |
1976 | # mess up M-x gdb in Emacs. | |
1977 | case $srcdir in | |
1978 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1979 | esac | |
1980 | for ac_var in $ac_precious_vars; do | |
1981 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1982 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1983 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1984 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1985 | done | |
1986 | ||
1987 | # | |
1988 | # Report the --help message. | |
1989 | # | |
1990 | if test "$ac_init_help" = "long"; then | |
1991 | # Omit some internal or obsolete options to make the list less imposing. | |
1992 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1993 | cat <<_ACEOF | |
1994 | \`configure' configures xorg-server 1.15.1 to adapt to many kinds of systems. | |
1995 | ||
1996 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1997 | ||
1998 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1999 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
2000 | ||
2001 | Defaults for the options are specified in brackets. | |
2002 | ||
2003 | Configuration: | |
2004 | -h, --help display this help and exit | |
2005 | --help=short display options specific to this package | |
2006 | --help=recursive display the short help of all the included packages | |
2007 | -V, --version display version information and exit | |
2008 | -q, --quiet, --silent do not print \`checking ...' messages | |
2009 | --cache-file=FILE cache test results in FILE [disabled] | |
2010 | -C, --config-cache alias for \`--cache-file=config.cache' | |
2011 | -n, --no-create do not create output files | |
2012 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
2013 | ||
2014 | Installation directories: | |
2015 | --prefix=PREFIX install architecture-independent files in PREFIX | |
2016 | [$ac_default_prefix] | |
2017 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
2018 | [PREFIX] | |
2019 | ||
2020 | By default, \`make install' will install all the files in | |
2021 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
2022 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
2023 | for instance \`--prefix=\$HOME'. | |
2024 | ||
2025 | For better control, use the options below. | |
2026 | ||
2027 | Fine tuning of the installation directories: | |
2028 | --bindir=DIR user executables [EPREFIX/bin] | |
2029 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
2030 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
2031 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
2032 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
2033 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
2034 | --libdir=DIR object code libraries [EPREFIX/lib] | |
2035 | --includedir=DIR C header files [PREFIX/include] | |
2036 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
2037 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
2038 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
2039 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
2040 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
2041 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2042 | --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] | |
2043 | --htmldir=DIR html documentation [DOCDIR] | |
2044 | --dvidir=DIR dvi documentation [DOCDIR] | |
2045 | --pdfdir=DIR pdf documentation [DOCDIR] | |
2046 | --psdir=DIR ps documentation [DOCDIR] | |
2047 | _ACEOF | |
2048 | ||
2049 | cat <<\_ACEOF | |
2050 | ||
2051 | Program names: | |
2052 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
2053 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
2054 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
2055 | ||
2056 | System types: | |
2057 | --build=BUILD configure for building on BUILD [guessed] | |
2058 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
2059 | _ACEOF | |
2060 | fi | |
2061 | ||
2062 | if test -n "$ac_init_help"; then | |
2063 | case $ac_init_help in | |
2064 | short | recursive ) echo "Configuration of xorg-server 1.15.1:";; | |
2065 | esac | |
2066 | cat <<\_ACEOF | |
2067 | ||
2068 | Optional Features: | |
2069 | --disable-option-checking ignore unrecognized --enable/--with options | |
2070 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
2071 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
2072 | --disable-dependency-tracking speeds up one-time build | |
2073 | --enable-dependency-tracking do not reject slow dependency extractors | |
2074 | --disable-selective-werror | |
2075 | Turn off selective compiler errors. (default: | |
2076 | enabled) | |
2077 | --enable-strict-compilation | |
2078 | Enable all warnings from compiler and make them | |
2079 | errors (default: disabled) | |
2080 | --enable-silent-rules less verbose build output (undo: `make V=1') | |
2081 | --disable-silent-rules verbose build output (undo: `make V=0') | |
2082 | --enable-docs Enable building the documentation (default: yes) | |
2083 | --enable-devel-docs Enable building the developer documentation | |
2084 | (default: yes) | |
2085 | --enable-unit-tests Enable building unit test cases (default: auto) | |
2086 | --enable-static[=PKGS] build static libraries [default=no] | |
2087 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
2088 | --enable-fast-install[=PKGS] | |
2089 | optimize for fast installation [default=yes] | |
2090 | --disable-libtool-lock avoid locking (might break parallel builds) | |
2091 | --disable-largefile omit support for large files | |
2092 | --enable-werror Obsolete - use --enable-strict-compilation instead | |
2093 | --enable-debug Enable debugging (default: disabled) | |
2094 | --enable-use-sigio-by-default | |
2095 | Enable SIGIO input handlers by default (default: $USE_SIGIO_BY_DEFAULT) | |
2096 | ||
2097 | --enable-sparkle Enable updating of X11.app using the Sparkle | |
2098 | Framework (default: disabled) | |
2099 | --enable-install-libxf86config | |
2100 | Install libxf86config (default: disabled) | |
2101 | --enable-visibility Enable symbol visibility (default: auto) | |
2102 | --enable-aiglx Build accelerated indirect GLX (default: enabled) | |
2103 | --enable-glx-tls Build GLX with TLS support (default: auto) | |
2104 | --disable-registry Build string registry module (default: enabled) | |
2105 | --disable-composite Build Composite extension (default: enabled) | |
2106 | --disable-mitshm Build SHM extension (default: auto) | |
2107 | --disable-xres Build XRes extension (default: enabled) | |
2108 | --disable-record Build Record extension (default: enabled) | |
2109 | --disable-xv Build Xv extension (default: enabled) | |
2110 | --disable-xvmc Build XvMC extension (default: enabled) | |
2111 | --disable-dga Build DGA extension (default: auto) | |
2112 | --disable-screensaver Build ScreenSaver extension (default: enabled) | |
2113 | --disable-xdmcp Build XDMCP extension (default: auto) | |
2114 | --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) | |
2115 | --disable-glx Build GLX extension (default: enabled) | |
2116 | --enable-dri Build DRI extension (default: auto) | |
2117 | --enable-dri2 Build DRI2 extension (default: auto) | |
2118 | --enable-dri3 Build DRI3 extension (default: auto) | |
2119 | --disable-present Build Present extension (default: enabled) | |
2120 | --disable-xinerama Build Xinerama extension (default: enabled) | |
2121 | --disable-xf86vidmode Build XF86VidMode extension (default: auto) | |
2122 | --disable-xace Build X-ACE extension (default: enabled) | |
2123 | --enable-xselinux Build SELinux extension (default: disabled) | |
2124 | --enable-xcsecurity Build Security extension (default: disabled) | |
2125 | --enable-tslib Build kdrive tslib touchscreen support (default: | |
2126 | disabled) | |
2127 | --disable-dbe Build DBE extension (default: enabled) | |
2128 | --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) | |
2129 | --disable-dpms Build DPMS extension (default: enabled) | |
2130 | --enable-config-udev Build udev support (default: auto) | |
2131 | --enable-config-udev-kms | |
2132 | Build udev kms support (default: auto) | |
2133 | --enable-config-dbus Build D-BUS API support (default: no) | |
2134 | --disable-config-hal Build HAL support (default: auto) | |
2135 | --enable-config-wscons Build wscons config support (default: auto) | |
2136 | --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) | |
2137 | --enable-vgahw Build Xorg with vga access (default: enabled) | |
2138 | --enable-vbe Build Xorg with VBE module (default: enabled) | |
2139 | --enable-int10-module Build Xorg with int10 module (default: enabled) | |
2140 | --enable-windowswm Build XWin with WindowsWM extension (default: no) | |
2141 | --enable-libdrm Build Xorg with libdrm support (default: enabled) | |
2142 | --disable-clientids Build Xorg with client ID tracking (default: | |
2143 | enabled) | |
2144 | --enable-pciaccess Build Xorg with pciaccess library (default: enabled) | |
2145 | --disable-linux-acpi Disable building ACPI support on Linux (if | |
2146 | available). | |
2147 | --disable-linux-apm Disable building APM support on Linux (if | |
2148 | available). | |
2149 | --enable-xorg Build Xorg server (default: auto) | |
2150 | --enable-dmx Build DMX server (default: auto) | |
2151 | --enable-xvfb Build Xvfb server (default: yes) | |
2152 | --enable-xnest Build Xnest server (default: auto) | |
2153 | --enable-xquartz Build Xquartz server for OS-X (default: auto) | |
2154 | --enable-standalone-xpbproxy | |
2155 | Build a standalone xpbproxy (in addition to the one | |
2156 | integrated into Xquartz as a separate thread) | |
2157 | (default: no) | |
2158 | --enable-xwin Build XWin server (default: auto) | |
2159 | --enable-kdrive Build kdrive servers (default: no) | |
2160 | --enable-xephyr Build the kdrive Xephyr server (default: auto) | |
2161 | --enable-xfake Build the kdrive 'fake' server (default: auto) | |
2162 | --enable-xfbdev Build the kdrive framebuffer device server (default: | |
2163 | auto) | |
2164 | --enable-kdrive-kbd Build kbd driver for kdrive (default: auto) | |
2165 | --enable-kdrive-mouse Build mouse driver for kdrive (default: auto) | |
2166 | --enable-kdrive-evdev Build evdev driver for kdrive (default: auto) | |
2167 | --enable-libunwind Use libunwind for backtracing (default: auto) | |
2168 | --enable-install-setuid Install Xorg server as owned by root with setuid bit | |
2169 | (default: auto) | |
2170 | --enable-unix-transport Enable UNIX domain socket transport | |
2171 | --enable-tcp-transport Enable TCP socket transport | |
2172 | --enable-ipv6 Enable IPv6 support | |
2173 | --enable-local-transport | |
2174 | Enable os-specific local transport | |
2175 | --enable-secure-rpc Enable Secure RPC | |
2176 | --disable-xtrans-send-fds | |
2177 | Use Xtrans support for fd passing (default: auto) | |
2178 | ||
2179 | Optional Packages: | |
2180 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
2181 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
2182 | --with-doxygen Use doxygen to regenerate documentation (default: | |
2183 | auto) | |
2184 | --with-xmlto Use xmlto to regenerate documentation (default: | |
2185 | auto) | |
2186 | --with-fop Use fop to regenerate documentation (default: auto) | |
2187 | --with-xsltproc Use xsltproc for the transformation of XML documents | |
2188 | (default: auto) | |
2189 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
2190 | both] | |
2191 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
2192 | --with-sysroot=DIR Search for dependent libraries within DIR | |
2193 | (or the compiler's sysroot if not specified). | |
2194 | --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace | |
2195 | found) | |
2196 | --with-int10=BACKEND int10 backend: vm86, x86emu or stub | |
2197 | --with-vendor-name=VENDOR | |
2198 | Vendor string reported by the server | |
2199 | --with-vendor-name-short=VENDOR | |
2200 | Short version of vendor string reported by the | |
2201 | server | |
2202 | --with-vendor-web=URL Vendor web address reported by the server | |
2203 | --with-module-dir=DIR Directory where modules are installed (default: | |
2204 | $libdir/xorg/modules) | |
2205 | --with-log-dir=DIR Directory where log files are kept (default: | |
2206 | $localstatedir/log) | |
2207 | --with-builder-addr=ADDRESS | |
2208 | Builder address (default: | |
2209 | xorg@lists.freedesktop.org) | |
2210 | --with-os-name=OSNAME Name of OS (default: output of "uname -srm") | |
2211 | --with-os-vendor=OSVENDOR | |
2212 | Name of OS vendor | |
2213 | --with-builderstring=BUILDERSTRING | |
2214 | Additional builder string | |
2215 | --with-fontrootdir=DIR Path to root directory for font files | |
2216 | --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] | |
2217 | --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] | |
2218 | --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] | |
2219 | --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] | |
2220 | --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] | |
2221 | --with-font100dpidir=DIR | |
2222 | Path to 100dpi files [FONTROOTDIR/100dpi] | |
2223 | --with-default-font-path=PATH | |
2224 | Comma separated list of font dirs | |
2225 | --with-xkb-path=PATH Path to XKB base dir (default: ${datadir}/X11/xkb) | |
2226 | --with-xkb-output=PATH Path to XKB output dir (default: | |
2227 | ${datadir}/X11/xkb/compiled) | |
2228 | --with-default-xkb-rules=RULES | |
2229 | Keyboard ruleset (default: base/evdev) | |
2230 | --with-default-xkb-model=MODEL | |
2231 | Keyboard model (default: pc105) | |
2232 | --with-default-xkb-layout=LAYOUT | |
2233 | Keyboard layout (default: us) | |
2234 | --with-default-xkb-variant=VARIANT | |
2235 | Keyboard variant (default: (none)) | |
2236 | --with-default-xkb-options=OPTIONS | |
2237 | Keyboard layout options (default: (none)) | |
2238 | --with-serverconfig-path=PATH | |
2239 | Directory where ancillary server config files are | |
2240 | installed (default: ${libdir}/xorg) | |
2241 | --with-apple-applications-dir=PATH | |
2242 | Path to the Applications directory (default: | |
2243 | /Applications/Utilities) | |
2244 | --with-apple-application-name=NAME | |
2245 | Name for the .app (default: X11) | |
2246 | --with-launchd-id-prefix=PATH | |
2247 | Deprecated: Use --with-bundle-id-prefix. | |
2248 | --with-bundle-id-prefix=PATH | |
2249 | Prefix to use for bundle identifiers (default: | |
2250 | org.x) | |
2251 | --with-khronos-spec-dir=PATH | |
2252 | Path to Khronos OpenGL registry database files | |
2253 | (default: auto) | |
2254 | --with-shared-memory-dir=PATH | |
2255 | Path to directory in a world-writable temporary | |
2256 | directory for anonymous shared memory (default: | |
2257 | auto) | |
2258 | --with-xkb-bin-directory=DIR | |
2259 | Directory containing xkbcomp program | |
2260 | --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI | |
2261 | choose SHA1 implementation | |
2262 | ||
2263 | Some influential environment variables: | |
2264 | CC C compiler command | |
2265 | CFLAGS C compiler flags | |
2266 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
2267 | nonstandard directory <lib dir> | |
2268 | LIBS libraries to pass to the linker, e.g. -l<library> | |
2269 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
2270 | you have headers in a nonstandard directory <include dir> | |
2271 | CPP C preprocessor | |
2272 | PKG_CONFIG path to pkg-config utility | |
2273 | PKG_CONFIG_PATH | |
2274 | directories to add to pkg-config's search path | |
2275 | PKG_CONFIG_LIBDIR | |
2276 | path overriding pkg-config's built-in search path | |
2277 | DOXYGEN Path to doxygen command | |
2278 | DOT Path to the dot graphics utility | |
2279 | XMLTO Path to xmlto command | |
2280 | FOP Path to fop command | |
2281 | XSLTPROC Path to xsltproc command | |
2282 | XORG_MALLOC_DEBUG_ENV | |
2283 | Environment variables to enable memory checking in tests | |
2284 | CCAS assembler compiler command (defaults to CC) | |
2285 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
2286 | YACC The `Yet Another Compiler Compiler' implementation to use. | |
2287 | Defaults to the first program found out of: `bison -y', `byacc', | |
2288 | `yacc'. | |
2289 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
2290 | This script will default YFLAGS to the empty string to avoid a | |
2291 | default value of `-d' given by some make applications. | |
2292 | PIXMAN_CFLAGS | |
2293 | C compiler flags for PIXMAN, overriding pkg-config | |
2294 | PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config | |
2295 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config | |
2296 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
2297 | DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config | |
2298 | DBUS_LIBS linker flags for DBUS, overriding pkg-config | |
2299 | HAL_CFLAGS C compiler flags for HAL, overriding pkg-config | |
2300 | HAL_LIBS linker flags for HAL, overriding pkg-config | |
2301 | DRI2PROTO_CFLAGS | |
2302 | C compiler flags for DRI2PROTO, overriding pkg-config | |
2303 | DRI2PROTO_LIBS | |
2304 | linker flags for DRI2PROTO, overriding pkg-config | |
2305 | DRI3PROTO_CFLAGS | |
2306 | C compiler flags for DRI3PROTO, overriding pkg-config | |
2307 | DRI3PROTO_LIBS | |
2308 | linker flags for DRI3PROTO, overriding pkg-config | |
2309 | XSHMFENCE_CFLAGS | |
2310 | C compiler flags for XSHMFENCE, overriding pkg-config | |
2311 | XSHMFENCE_LIBS | |
2312 | linker flags for XSHMFENCE, overriding pkg-config | |
2313 | LIBDRM_CFLAGS | |
2314 | C compiler flags for LIBDRM, overriding pkg-config | |
2315 | LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config | |
2316 | XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config | |
2317 | XLIB_LIBS linker flags for XLIB, overriding pkg-config | |
2318 | GL_CFLAGS C compiler flags for GL, overriding pkg-config | |
2319 | GL_LIBS linker flags for GL, overriding pkg-config | |
2320 | SELINUX_CFLAGS | |
2321 | C compiler flags for SELINUX, overriding pkg-config | |
2322 | SELINUX_LIBS | |
2323 | linker flags for SELINUX, overriding pkg-config | |
2324 | XDMCP_CFLAGS | |
2325 | C compiler flags for XDMCP, overriding pkg-config | |
2326 | XDMCP_LIBS linker flags for XDMCP, overriding pkg-config | |
2327 | LIBSHA1_CFLAGS | |
2328 | C compiler flags for LIBSHA1, overriding pkg-config | |
2329 | LIBSHA1_LIBS | |
2330 | linker flags for LIBSHA1, overriding pkg-config | |
2331 | OPENSSL_CFLAGS | |
2332 | C compiler flags for OPENSSL, overriding pkg-config | |
2333 | OPENSSL_LIBS | |
2334 | linker flags for OPENSSL, overriding pkg-config | |
2335 | XSERVERCFLAGS_CFLAGS | |
2336 | C compiler flags for XSERVERCFLAGS, overriding pkg-config | |
2337 | XSERVERCFLAGS_LIBS | |
2338 | linker flags for XSERVERCFLAGS, overriding pkg-config | |
2339 | XSERVERLIBS_CFLAGS | |
2340 | C compiler flags for XSERVERLIBS, overriding pkg-config | |
2341 | XSERVERLIBS_LIBS | |
2342 | linker flags for XSERVERLIBS, overriding pkg-config | |
2343 | LIBUNWIND_CFLAGS | |
2344 | C compiler flags for LIBUNWIND, overriding pkg-config | |
2345 | LIBUNWIND_LIBS | |
2346 | linker flags for LIBUNWIND, overriding pkg-config | |
2347 | XNESTMODULES_CFLAGS | |
2348 | C compiler flags for XNESTMODULES, overriding pkg-config | |
2349 | XNESTMODULES_LIBS | |
2350 | linker flags for XNESTMODULES, overriding pkg-config | |
2351 | PCIACCESS_CFLAGS | |
2352 | C compiler flags for PCIACCESS, overriding pkg-config | |
2353 | PCIACCESS_LIBS | |
2354 | linker flags for PCIACCESS, overriding pkg-config | |
2355 | DGA_CFLAGS C compiler flags for DGA, overriding pkg-config | |
2356 | DGA_LIBS linker flags for DGA, overriding pkg-config | |
2357 | XF86VIDMODE_CFLAGS | |
2358 | C compiler flags for XF86VIDMODE, overriding pkg-config | |
2359 | XF86VIDMODE_LIBS | |
2360 | linker flags for XF86VIDMODE, overriding pkg-config | |
2361 | XORG_MODULES_CFLAGS | |
2362 | C compiler flags for XORG_MODULES, overriding pkg-config | |
2363 | XORG_MODULES_LIBS | |
2364 | linker flags for XORG_MODULES, overriding pkg-config | |
2365 | XWINMODULES_CFLAGS | |
2366 | C compiler flags for XWINMODULES, overriding pkg-config | |
2367 | XWINMODULES_LIBS | |
2368 | linker flags for XWINMODULES, overriding pkg-config | |
2369 | WINDOWSWM_CFLAGS | |
2370 | C compiler flags for WINDOWSWM, overriding pkg-config | |
2371 | WINDOWSWM_LIBS | |
2372 | linker flags for WINDOWSWM, overriding pkg-config | |
2373 | KHRONOS_OPENGL_REGISTRY_CFLAGS | |
2374 | C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding | |
2375 | pkg-config | |
2376 | KHRONOS_OPENGL_REGISTRY_LIBS | |
2377 | linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config | |
2378 | XPBPROXY_CFLAGS | |
2379 | C compiler flags for XPBPROXY, overriding pkg-config | |
2380 | XPBPROXY_LIBS | |
2381 | linker flags for XPBPROXY, overriding pkg-config | |
2382 | DMXMODULES_CFLAGS | |
2383 | C compiler flags for DMXMODULES, overriding pkg-config | |
2384 | DMXMODULES_LIBS | |
2385 | linker flags for DMXMODULES, overriding pkg-config | |
2386 | XDMXCONFIG_DEP_CFLAGS | |
2387 | C compiler flags for XDMXCONFIG_DEP, overriding pkg-config | |
2388 | XDMXCONFIG_DEP_LIBS | |
2389 | linker flags for XDMXCONFIG_DEP, overriding pkg-config | |
2390 | DMXEXAMPLES_DEP_CFLAGS | |
2391 | C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config | |
2392 | DMXEXAMPLES_DEP_LIBS | |
2393 | linker flags for DMXEXAMPLES_DEP, overriding pkg-config | |
2394 | DMXXMUEXAMPLES_DEP_CFLAGS | |
2395 | C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config | |
2396 | DMXXMUEXAMPLES_DEP_LIBS | |
2397 | linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config | |
2398 | DMXXIEXAMPLES_DEP_CFLAGS | |
2399 | C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config | |
2400 | DMXXIEXAMPLES_DEP_LIBS | |
2401 | linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config | |
2402 | XTSTEXAMPLES_DEP_CFLAGS | |
2403 | C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config | |
2404 | XTSTEXAMPLES_DEP_LIBS | |
2405 | linker flags for XTSTEXAMPLES_DEP, overriding pkg-config | |
2406 | XRESEXAMPLES_DEP_CFLAGS | |
2407 | C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config | |
2408 | XRESEXAMPLES_DEP_LIBS | |
2409 | linker flags for XRESEXAMPLES_DEP, overriding pkg-config | |
2410 | X11EXAMPLES_DEP_CFLAGS | |
2411 | C compiler flags for X11EXAMPLES_DEP, overriding pkg-config | |
2412 | X11EXAMPLES_DEP_LIBS | |
2413 | linker flags for X11EXAMPLES_DEP, overriding pkg-config | |
2414 | TSLIB_CFLAGS | |
2415 | C compiler flags for TSLIB, overriding pkg-config | |
2416 | TSLIB_LIBS linker flags for TSLIB, overriding pkg-config | |
2417 | XEPHYR_CFLAGS | |
2418 | C compiler flags for XEPHYR, overriding pkg-config | |
2419 | XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config | |
2420 | ||
2421 | Use these variables to override the choices made by `configure' or to help | |
2422 | it to find libraries and programs with nonstandard names/locations. | |
2423 | ||
2424 | Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. | |
2425 | _ACEOF | |
2426 | ac_status=$? | |
2427 | fi | |
2428 | ||
2429 | if test "$ac_init_help" = "recursive"; then | |
2430 | # If there are subdirs, report their specific --help. | |
2431 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
2432 | test -d "$ac_dir" || | |
2433 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
2434 | continue | |
2435 | ac_builddir=. | |
2436 | ||
2437 | case "$ac_dir" in | |
2438 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2439 | *) | |
2440 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
2441 | # A ".." for each directory in $ac_dir_suffix. | |
2442 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
2443 | case $ac_top_builddir_sub in | |
2444 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2445 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
2446 | esac ;; | |
2447 | esac | |
2448 | ac_abs_top_builddir=$ac_pwd | |
2449 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
2450 | # for backward compatibility: | |
2451 | ac_top_builddir=$ac_top_build_prefix | |
2452 | ||
2453 | case $srcdir in | |
2454 | .) # We are building in place. | |
2455 | ac_srcdir=. | |
2456 | ac_top_srcdir=$ac_top_builddir_sub | |
2457 | ac_abs_top_srcdir=$ac_pwd ;; | |
2458 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2459 | ac_srcdir=$srcdir$ac_dir_suffix; | |
2460 | ac_top_srcdir=$srcdir | |
2461 | ac_abs_top_srcdir=$srcdir ;; | |
2462 | *) # Relative name. | |
2463 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
2464 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
2465 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2466 | esac | |
2467 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
2468 | ||
2469 | cd "$ac_dir" || { ac_status=$?; continue; } | |
2470 | # Check for guested configure. | |
2471 | if test -f "$ac_srcdir/configure.gnu"; then | |
2472 | echo && | |
2473 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
2474 | elif test -f "$ac_srcdir/configure"; then | |
2475 | echo && | |
2476 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2477 | else | |
2478 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
2479 | fi || ac_status=$? | |
2480 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2481 | done | |
2482 | fi | |
2483 | ||
2484 | test -n "$ac_init_help" && exit $ac_status | |
2485 | if $ac_init_version; then | |
2486 | cat <<\_ACEOF | |
2487 | xorg-server configure 1.15.1 | |
2488 | generated by GNU Autoconf 2.68 | |
2489 | ||
2490 | Copyright (C) 2010 Free Software Foundation, Inc. | |
2491 | This configure script is free software; the Free Software Foundation | |
2492 | gives unlimited permission to copy, distribute and modify it. | |
2493 | _ACEOF | |
2494 | exit | |
2495 | fi | |
2496 | ||
2497 | ## ------------------------ ## | |
2498 | ## Autoconf initialization. ## | |
2499 | ## ------------------------ ## | |
2500 | ||
2501 | # ac_fn_c_try_compile LINENO | |
2502 | # -------------------------- | |
2503 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2504 | ac_fn_c_try_compile () | |
2505 | { | |
2506 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2507 | rm -f conftest.$ac_objext | |
2508 | if { { ac_try="$ac_compile" | |
2509 | case "(($ac_try" in | |
2510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2511 | *) ac_try_echo=$ac_try;; | |
2512 | esac | |
2513 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2514 | $as_echo "$ac_try_echo"; } >&5 | |
2515 | (eval "$ac_compile") 2>conftest.err | |
2516 | ac_status=$? | |
2517 | if test -s conftest.err; then | |
2518 | grep -v '^ *+' conftest.err >conftest.er1 | |
2519 | cat conftest.er1 >&5 | |
2520 | mv -f conftest.er1 conftest.err | |
2521 | fi | |
2522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2523 | test $ac_status = 0; } && { | |
2524 | test -z "$ac_c_werror_flag" || | |
2525 | test ! -s conftest.err | |
2526 | } && test -s conftest.$ac_objext; then : | |
2527 | ac_retval=0 | |
2528 | else | |
2529 | $as_echo "$as_me: failed program was:" >&5 | |
2530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2531 | ||
2532 | ac_retval=1 | |
2533 | fi | |
2534 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2535 | as_fn_set_status $ac_retval | |
2536 | ||
2537 | } # ac_fn_c_try_compile | |
2538 | ||
2539 | # ac_fn_c_try_cpp LINENO | |
2540 | # ---------------------- | |
2541 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2542 | ac_fn_c_try_cpp () | |
2543 | { | |
2544 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2545 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2546 | case "(($ac_try" in | |
2547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2548 | *) ac_try_echo=$ac_try;; | |
2549 | esac | |
2550 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2551 | $as_echo "$ac_try_echo"; } >&5 | |
2552 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2553 | ac_status=$? | |
2554 | if test -s conftest.err; then | |
2555 | grep -v '^ *+' conftest.err >conftest.er1 | |
2556 | cat conftest.er1 >&5 | |
2557 | mv -f conftest.er1 conftest.err | |
2558 | fi | |
2559 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2560 | test $ac_status = 0; } > conftest.i && { | |
2561 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2562 | test ! -s conftest.err | |
2563 | }; then : | |
2564 | ac_retval=0 | |
2565 | else | |
2566 | $as_echo "$as_me: failed program was:" >&5 | |
2567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2568 | ||
2569 | ac_retval=1 | |
2570 | fi | |
2571 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2572 | as_fn_set_status $ac_retval | |
2573 | ||
2574 | } # ac_fn_c_try_cpp | |
2575 | ||
2576 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2577 | # ------------------------------------------------------- | |
2578 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2579 | # the include files in INCLUDES and setting the cache variable VAR | |
2580 | # accordingly. | |
2581 | ac_fn_c_check_header_mongrel () | |
2582 | { | |
2583 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2584 | if eval \${$3+:} false; then : | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2586 | $as_echo_n "checking for $2... " >&6; } | |
2587 | if eval \${$3+:} false; then : | |
2588 | $as_echo_n "(cached) " >&6 | |
2589 | fi | |
2590 | eval ac_res=\$$3 | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2592 | $as_echo "$ac_res" >&6; } | |
2593 | else | |
2594 | # Is the header compilable? | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2596 | $as_echo_n "checking $2 usability... " >&6; } | |
2597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2598 | /* end confdefs.h. */ | |
2599 | $4 | |
2600 | #include <$2> | |
2601 | _ACEOF | |
2602 | if ac_fn_c_try_compile "$LINENO"; then : | |
2603 | ac_header_compiler=yes | |
2604 | else | |
2605 | ac_header_compiler=no | |
2606 | fi | |
2607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2609 | $as_echo "$ac_header_compiler" >&6; } | |
2610 | ||
2611 | # Is the header present? | |
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2613 | $as_echo_n "checking $2 presence... " >&6; } | |
2614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2615 | /* end confdefs.h. */ | |
2616 | #include <$2> | |
2617 | _ACEOF | |
2618 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2619 | ac_header_preproc=yes | |
2620 | else | |
2621 | ac_header_preproc=no | |
2622 | fi | |
2623 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2625 | $as_echo "$ac_header_preproc" >&6; } | |
2626 | ||
2627 | # So? What about this header? | |
2628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2629 | yes:no: ) | |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2631 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2633 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2634 | ;; | |
2635 | no:yes:* ) | |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2637 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2639 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2641 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2643 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2645 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2646 | ( $as_echo "## ---------------------------------------------------------------------- ## | |
2647 | ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## | |
2648 | ## ---------------------------------------------------------------------- ##" | |
2649 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2650 | ;; | |
2651 | esac | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2653 | $as_echo_n "checking for $2... " >&6; } | |
2654 | if eval \${$3+:} false; then : | |
2655 | $as_echo_n "(cached) " >&6 | |
2656 | else | |
2657 | eval "$3=\$ac_header_compiler" | |
2658 | fi | |
2659 | eval ac_res=\$$3 | |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2661 | $as_echo "$ac_res" >&6; } | |
2662 | fi | |
2663 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2664 | ||
2665 | } # ac_fn_c_check_header_mongrel | |
2666 | ||
2667 | # ac_fn_c_try_run LINENO | |
2668 | # ---------------------- | |
2669 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
2670 | # that executables *can* be run. | |
2671 | ac_fn_c_try_run () | |
2672 | { | |
2673 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2674 | if { { ac_try="$ac_link" | |
2675 | case "(($ac_try" in | |
2676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2677 | *) ac_try_echo=$ac_try;; | |
2678 | esac | |
2679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2680 | $as_echo "$ac_try_echo"; } >&5 | |
2681 | (eval "$ac_link") 2>&5 | |
2682 | ac_status=$? | |
2683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2684 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2685 | { { case "(($ac_try" in | |
2686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2687 | *) ac_try_echo=$ac_try;; | |
2688 | esac | |
2689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2690 | $as_echo "$ac_try_echo"; } >&5 | |
2691 | (eval "$ac_try") 2>&5 | |
2692 | ac_status=$? | |
2693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2694 | test $ac_status = 0; }; }; then : | |
2695 | ac_retval=0 | |
2696 | else | |
2697 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
2698 | $as_echo "$as_me: failed program was:" >&5 | |
2699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2700 | ||
2701 | ac_retval=$ac_status | |
2702 | fi | |
2703 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2704 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2705 | as_fn_set_status $ac_retval | |
2706 | ||
2707 | } # ac_fn_c_try_run | |
2708 | ||
2709 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2710 | # ------------------------------------------------------- | |
2711 | # Tests whether HEADER exists and can be compiled using the include files in | |
2712 | # INCLUDES, setting the cache variable VAR accordingly. | |
2713 | ac_fn_c_check_header_compile () | |
2714 | { | |
2715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2717 | $as_echo_n "checking for $2... " >&6; } | |
2718 | if eval \${$3+:} false; then : | |
2719 | $as_echo_n "(cached) " >&6 | |
2720 | else | |
2721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2722 | /* end confdefs.h. */ | |
2723 | $4 | |
2724 | #include <$2> | |
2725 | _ACEOF | |
2726 | if ac_fn_c_try_compile "$LINENO"; then : | |
2727 | eval "$3=yes" | |
2728 | else | |
2729 | eval "$3=no" | |
2730 | fi | |
2731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2732 | fi | |
2733 | eval ac_res=\$$3 | |
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2735 | $as_echo "$ac_res" >&6; } | |
2736 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2737 | ||
2738 | } # ac_fn_c_check_header_compile | |
2739 | ||
2740 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2741 | # --------------------------------------------- | |
2742 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2743 | # accordingly. | |
2744 | ac_fn_c_check_decl () | |
2745 | { | |
2746 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2747 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2748 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2750 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2751 | if eval \${$3+:} false; then : | |
2752 | $as_echo_n "(cached) " >&6 | |
2753 | else | |
2754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2755 | /* end confdefs.h. */ | |
2756 | $4 | |
2757 | int | |
2758 | main () | |
2759 | { | |
2760 | #ifndef $as_decl_name | |
2761 | #ifdef __cplusplus | |
2762 | (void) $as_decl_use; | |
2763 | #else | |
2764 | (void) $as_decl_name; | |
2765 | #endif | |
2766 | #endif | |
2767 | ||
2768 | ; | |
2769 | return 0; | |
2770 | } | |
2771 | _ACEOF | |
2772 | if ac_fn_c_try_compile "$LINENO"; then : | |
2773 | eval "$3=yes" | |
2774 | else | |
2775 | eval "$3=no" | |
2776 | fi | |
2777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2778 | fi | |
2779 | eval ac_res=\$$3 | |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2781 | $as_echo "$ac_res" >&6; } | |
2782 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2783 | ||
2784 | } # ac_fn_c_check_decl | |
2785 | ||
2786 | # ac_fn_c_try_link LINENO | |
2787 | # ----------------------- | |
2788 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2789 | ac_fn_c_try_link () | |
2790 | { | |
2791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2793 | if { { ac_try="$ac_link" | |
2794 | case "(($ac_try" in | |
2795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2796 | *) ac_try_echo=$ac_try;; | |
2797 | esac | |
2798 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2799 | $as_echo "$ac_try_echo"; } >&5 | |
2800 | (eval "$ac_link") 2>conftest.err | |
2801 | ac_status=$? | |
2802 | if test -s conftest.err; then | |
2803 | grep -v '^ *+' conftest.err >conftest.er1 | |
2804 | cat conftest.er1 >&5 | |
2805 | mv -f conftest.er1 conftest.err | |
2806 | fi | |
2807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2808 | test $ac_status = 0; } && { | |
2809 | test -z "$ac_c_werror_flag" || | |
2810 | test ! -s conftest.err | |
2811 | } && test -s conftest$ac_exeext && { | |
2812 | test "$cross_compiling" = yes || | |
2813 | $as_test_x conftest$ac_exeext | |
2814 | }; then : | |
2815 | ac_retval=0 | |
2816 | else | |
2817 | $as_echo "$as_me: failed program was:" >&5 | |
2818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2819 | ||
2820 | ac_retval=1 | |
2821 | fi | |
2822 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2823 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2824 | # interfere with the next link command; also delete a directory that is | |
2825 | # left behind by Apple's compiler. We do this before executing the actions. | |
2826 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2827 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2828 | as_fn_set_status $ac_retval | |
2829 | ||
2830 | } # ac_fn_c_try_link | |
2831 | ||
2832 | # ac_fn_c_check_func LINENO FUNC VAR | |
2833 | # ---------------------------------- | |
2834 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2835 | ac_fn_c_check_func () | |
2836 | { | |
2837 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2839 | $as_echo_n "checking for $2... " >&6; } | |
2840 | if eval \${$3+:} false; then : | |
2841 | $as_echo_n "(cached) " >&6 | |
2842 | else | |
2843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2844 | /* end confdefs.h. */ | |
2845 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2847 | #define $2 innocuous_$2 | |
2848 | ||
2849 | /* System header to define __stub macros and hopefully few prototypes, | |
2850 | which can conflict with char $2 (); below. | |
2851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2852 | <limits.h> exists even on freestanding compilers. */ | |
2853 | ||
2854 | #ifdef __STDC__ | |
2855 | # include <limits.h> | |
2856 | #else | |
2857 | # include <assert.h> | |
2858 | #endif | |
2859 | ||
2860 | #undef $2 | |
2861 | ||
2862 | /* Override any GCC internal prototype to avoid an error. | |
2863 | Use char because int might match the return type of a GCC | |
2864 | builtin and then its argument prototype would still apply. */ | |
2865 | #ifdef __cplusplus | |
2866 | extern "C" | |
2867 | #endif | |
2868 | char $2 (); | |
2869 | /* The GNU C library defines this for functions which it implements | |
2870 | to always fail with ENOSYS. Some functions are actually named | |
2871 | something starting with __ and the normal name is an alias. */ | |
2872 | #if defined __stub_$2 || defined __stub___$2 | |
2873 | choke me | |
2874 | #endif | |
2875 | ||
2876 | int | |
2877 | main () | |
2878 | { | |
2879 | return $2 (); | |
2880 | ; | |
2881 | return 0; | |
2882 | } | |
2883 | _ACEOF | |
2884 | if ac_fn_c_try_link "$LINENO"; then : | |
2885 | eval "$3=yes" | |
2886 | else | |
2887 | eval "$3=no" | |
2888 | fi | |
2889 | rm -f core conftest.err conftest.$ac_objext \ | |
2890 | conftest$ac_exeext conftest.$ac_ext | |
2891 | fi | |
2892 | eval ac_res=\$$3 | |
2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2894 | $as_echo "$ac_res" >&6; } | |
2895 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2896 | ||
2897 | } # ac_fn_c_check_func | |
2898 | ||
2899 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2900 | # -------------------------------------------- | |
2901 | # Tries to find the compile-time value of EXPR in a program that includes | |
2902 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2903 | # computed | |
2904 | ac_fn_c_compute_int () | |
2905 | { | |
2906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2907 | if test "$cross_compiling" = yes; then | |
2908 | # Depending upon the size, compute the lo and hi bounds. | |
2909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2910 | /* end confdefs.h. */ | |
2911 | $4 | |
2912 | int | |
2913 | main () | |
2914 | { | |
2915 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2916 | test_array [0] = 0 | |
2917 | ||
2918 | ; | |
2919 | return 0; | |
2920 | } | |
2921 | _ACEOF | |
2922 | if ac_fn_c_try_compile "$LINENO"; then : | |
2923 | ac_lo=0 ac_mid=0 | |
2924 | while :; do | |
2925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2926 | /* end confdefs.h. */ | |
2927 | $4 | |
2928 | int | |
2929 | main () | |
2930 | { | |
2931 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2932 | test_array [0] = 0 | |
2933 | ||
2934 | ; | |
2935 | return 0; | |
2936 | } | |
2937 | _ACEOF | |
2938 | if ac_fn_c_try_compile "$LINENO"; then : | |
2939 | ac_hi=$ac_mid; break | |
2940 | else | |
2941 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2942 | if test $ac_lo -le $ac_mid; then | |
2943 | ac_lo= ac_hi= | |
2944 | break | |
2945 | fi | |
2946 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2947 | fi | |
2948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2949 | done | |
2950 | else | |
2951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2952 | /* end confdefs.h. */ | |
2953 | $4 | |
2954 | int | |
2955 | main () | |
2956 | { | |
2957 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2958 | test_array [0] = 0 | |
2959 | ||
2960 | ; | |
2961 | return 0; | |
2962 | } | |
2963 | _ACEOF | |
2964 | if ac_fn_c_try_compile "$LINENO"; then : | |
2965 | ac_hi=-1 ac_mid=-1 | |
2966 | while :; do | |
2967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2968 | /* end confdefs.h. */ | |
2969 | $4 | |
2970 | int | |
2971 | main () | |
2972 | { | |
2973 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2974 | test_array [0] = 0 | |
2975 | ||
2976 | ; | |
2977 | return 0; | |
2978 | } | |
2979 | _ACEOF | |
2980 | if ac_fn_c_try_compile "$LINENO"; then : | |
2981 | ac_lo=$ac_mid; break | |
2982 | else | |
2983 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2984 | if test $ac_mid -le $ac_hi; then | |
2985 | ac_lo= ac_hi= | |
2986 | break | |
2987 | fi | |
2988 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2989 | fi | |
2990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2991 | done | |
2992 | else | |
2993 | ac_lo= ac_hi= | |
2994 | fi | |
2995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2996 | fi | |
2997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2998 | # Binary search between lo and hi bounds. | |
2999 | while test "x$ac_lo" != "x$ac_hi"; do | |
3000 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
3001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3002 | /* end confdefs.h. */ | |
3003 | $4 | |
3004 | int | |
3005 | main () | |
3006 | { | |
3007 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
3008 | test_array [0] = 0 | |
3009 | ||
3010 | ; | |
3011 | return 0; | |
3012 | } | |
3013 | _ACEOF | |
3014 | if ac_fn_c_try_compile "$LINENO"; then : | |
3015 | ac_hi=$ac_mid | |
3016 | else | |
3017 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
3018 | fi | |
3019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3020 | done | |
3021 | case $ac_lo in #(( | |
3022 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
3023 | '') ac_retval=1 ;; | |
3024 | esac | |
3025 | else | |
3026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3027 | /* end confdefs.h. */ | |
3028 | $4 | |
3029 | static long int longval () { return $2; } | |
3030 | static unsigned long int ulongval () { return $2; } | |
3031 | #include <stdio.h> | |
3032 | #include <stdlib.h> | |
3033 | int | |
3034 | main () | |
3035 | { | |
3036 | ||
3037 | FILE *f = fopen ("conftest.val", "w"); | |
3038 | if (! f) | |
3039 | return 1; | |
3040 | if (($2) < 0) | |
3041 | { | |
3042 | long int i = longval (); | |
3043 | if (i != ($2)) | |
3044 | return 1; | |
3045 | fprintf (f, "%ld", i); | |
3046 | } | |
3047 | else | |
3048 | { | |
3049 | unsigned long int i = ulongval (); | |
3050 | if (i != ($2)) | |
3051 | return 1; | |
3052 | fprintf (f, "%lu", i); | |
3053 | } | |
3054 | /* Do not output a trailing newline, as this causes \r\n confusion | |
3055 | on some platforms. */ | |
3056 | return ferror (f) || fclose (f) != 0; | |
3057 | ||
3058 | ; | |
3059 | return 0; | |
3060 | } | |
3061 | _ACEOF | |
3062 | if ac_fn_c_try_run "$LINENO"; then : | |
3063 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
3064 | else | |
3065 | ac_retval=1 | |
3066 | fi | |
3067 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3068 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3069 | rm -f conftest.val | |
3070 | ||
3071 | fi | |
3072 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
3073 | as_fn_set_status $ac_retval | |
3074 | ||
3075 | } # ac_fn_c_compute_int | |
3076 | ||
3077 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
3078 | # ------------------------------------------- | |
3079 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
3080 | # variable VAR accordingly. | |
3081 | ac_fn_c_check_type () | |
3082 | { | |
3083 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
3085 | $as_echo_n "checking for $2... " >&6; } | |
3086 | if eval \${$3+:} false; then : | |
3087 | $as_echo_n "(cached) " >&6 | |
3088 | else | |
3089 | eval "$3=no" | |
3090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3091 | /* end confdefs.h. */ | |
3092 | $4 | |
3093 | int | |
3094 | main () | |
3095 | { | |
3096 | if (sizeof ($2)) | |
3097 | return 0; | |
3098 | ; | |
3099 | return 0; | |
3100 | } | |
3101 | _ACEOF | |
3102 | if ac_fn_c_try_compile "$LINENO"; then : | |
3103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3104 | /* end confdefs.h. */ | |
3105 | $4 | |
3106 | int | |
3107 | main () | |
3108 | { | |
3109 | if (sizeof (($2))) | |
3110 | return 0; | |
3111 | ; | |
3112 | return 0; | |
3113 | } | |
3114 | _ACEOF | |
3115 | if ac_fn_c_try_compile "$LINENO"; then : | |
3116 | ||
3117 | else | |
3118 | eval "$3=yes" | |
3119 | fi | |
3120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3121 | fi | |
3122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3123 | fi | |
3124 | eval ac_res=\$$3 | |
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3126 | $as_echo "$ac_res" >&6; } | |
3127 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
3128 | ||
3129 | } # ac_fn_c_check_type | |
3130 | ||
3131 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
3132 | # ---------------------------------------------------- | |
3133 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
3134 | # INCLUDES, setting cache variable VAR accordingly. | |
3135 | ac_fn_c_check_member () | |
3136 | { | |
3137 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
3139 | $as_echo_n "checking for $2.$3... " >&6; } | |
3140 | if eval \${$4+:} false; then : | |
3141 | $as_echo_n "(cached) " >&6 | |
3142 | else | |
3143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3144 | /* end confdefs.h. */ | |
3145 | $5 | |
3146 | int | |
3147 | main () | |
3148 | { | |
3149 | static $2 ac_aggr; | |
3150 | if (ac_aggr.$3) | |
3151 | return 0; | |
3152 | ; | |
3153 | return 0; | |
3154 | } | |
3155 | _ACEOF | |
3156 | if ac_fn_c_try_compile "$LINENO"; then : | |
3157 | eval "$4=yes" | |
3158 | else | |
3159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3160 | /* end confdefs.h. */ | |
3161 | $5 | |
3162 | int | |
3163 | main () | |
3164 | { | |
3165 | static $2 ac_aggr; | |
3166 | if (sizeof ac_aggr.$3) | |
3167 | return 0; | |
3168 | ; | |
3169 | return 0; | |
3170 | } | |
3171 | _ACEOF | |
3172 | if ac_fn_c_try_compile "$LINENO"; then : | |
3173 | eval "$4=yes" | |
3174 | else | |
3175 | eval "$4=no" | |
3176 | fi | |
3177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3178 | fi | |
3179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3180 | fi | |
3181 | eval ac_res=\$$4 | |
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3183 | $as_echo "$ac_res" >&6; } | |
3184 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
3185 | ||
3186 | } # ac_fn_c_check_member | |
3187 | cat >config.log <<_ACEOF | |
3188 | This file contains any messages produced by compilers while | |
3189 | running configure, to aid debugging if configure makes a mistake. | |
3190 | ||
3191 | It was created by xorg-server $as_me 1.15.1, which was | |
3192 | generated by GNU Autoconf 2.68. Invocation command line was | |
3193 | ||
3194 | $ $0 $@ | |
3195 | ||
3196 | _ACEOF | |
3197 | exec 5>>config.log | |
3198 | { | |
3199 | cat <<_ASUNAME | |
3200 | ## --------- ## | |
3201 | ## Platform. ## | |
3202 | ## --------- ## | |
3203 | ||
3204 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3205 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
3206 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
3207 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
3208 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
3209 | ||
3210 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
3211 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
3212 | ||
3213 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
3214 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
3215 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
3216 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
3217 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
3218 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
3219 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
3220 | ||
3221 | _ASUNAME | |
3222 | ||
3223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3224 | for as_dir in $PATH | |
3225 | do | |
3226 | IFS=$as_save_IFS | |
3227 | test -z "$as_dir" && as_dir=. | |
3228 | $as_echo "PATH: $as_dir" | |
3229 | done | |
3230 | IFS=$as_save_IFS | |
3231 | ||
3232 | } >&5 | |
3233 | ||
3234 | cat >&5 <<_ACEOF | |
3235 | ||
3236 | ||
3237 | ## ----------- ## | |
3238 | ## Core tests. ## | |
3239 | ## ----------- ## | |
3240 | ||
3241 | _ACEOF | |
3242 | ||
3243 | ||
3244 | # Keep a trace of the command line. | |
3245 | # Strip out --no-create and --no-recursion so they do not pile up. | |
3246 | # Strip out --silent because we don't want to record it for future runs. | |
3247 | # Also quote any args containing shell meta-characters. | |
3248 | # Make two passes to allow for proper duplicate-argument suppression. | |
3249 | ac_configure_args= | |
3250 | ac_configure_args0= | |
3251 | ac_configure_args1= | |
3252 | ac_must_keep_next=false | |
3253 | for ac_pass in 1 2 | |
3254 | do | |
3255 | for ac_arg | |
3256 | do | |
3257 | case $ac_arg in | |
3258 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
3259 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3260 | | -silent | --silent | --silen | --sile | --sil) | |
3261 | continue ;; | |
3262 | *\'*) | |
3263 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3264 | esac | |
3265 | case $ac_pass in | |
3266 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
3267 | 2) | |
3268 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
3269 | if test $ac_must_keep_next = true; then | |
3270 | ac_must_keep_next=false # Got value, back to normal. | |
3271 | else | |
3272 | case $ac_arg in | |
3273 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
3274 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
3275 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
3276 | | -with-* | --with-* | -without-* | --without-* | --x) | |
3277 | case "$ac_configure_args0 " in | |
3278 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
3279 | esac | |
3280 | ;; | |
3281 | -* ) ac_must_keep_next=true ;; | |
3282 | esac | |
3283 | fi | |
3284 | as_fn_append ac_configure_args " '$ac_arg'" | |
3285 | ;; | |
3286 | esac | |
3287 | done | |
3288 | done | |
3289 | { ac_configure_args0=; unset ac_configure_args0;} | |
3290 | { ac_configure_args1=; unset ac_configure_args1;} | |
3291 | ||
3292 | # When interrupted or exit'd, cleanup temporary files, and complete | |
3293 | # config.log. We remove comments because anyway the quotes in there | |
3294 | # would cause problems or look ugly. | |
3295 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
3296 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
3297 | trap 'exit_status=$? | |
3298 | # Save into config.log some information that might help in debugging. | |
3299 | { | |
3300 | echo | |
3301 | ||
3302 | $as_echo "## ---------------- ## | |
3303 | ## Cache variables. ## | |
3304 | ## ---------------- ##" | |
3305 | echo | |
3306 | # The following way of writing the cache mishandles newlines in values, | |
3307 | ( | |
3308 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
3309 | eval ac_val=\$$ac_var | |
3310 | case $ac_val in #( | |
3311 | *${as_nl}*) | |
3312 | case $ac_var in #( | |
3313 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
3314 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3315 | esac | |
3316 | case $ac_var in #( | |
3317 | _ | IFS | as_nl) ;; #( | |
3318 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3319 | *) { eval $ac_var=; unset $ac_var;} ;; | |
3320 | esac ;; | |
3321 | esac | |
3322 | done | |
3323 | (set) 2>&1 | | |
3324 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
3325 | *${as_nl}ac_space=\ *) | |
3326 | sed -n \ | |
3327 | "s/'\''/'\''\\\\'\'''\''/g; | |
3328 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
3329 | ;; #( | |
3330 | *) | |
3331 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
3332 | ;; | |
3333 | esac | | |
3334 | sort | |
3335 | ) | |
3336 | echo | |
3337 | ||
3338 | $as_echo "## ----------------- ## | |
3339 | ## Output variables. ## | |
3340 | ## ----------------- ##" | |
3341 | echo | |
3342 | for ac_var in $ac_subst_vars | |
3343 | do | |
3344 | eval ac_val=\$$ac_var | |
3345 | case $ac_val in | |
3346 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
3347 | esac | |
3348 | $as_echo "$ac_var='\''$ac_val'\''" | |
3349 | done | sort | |
3350 | echo | |
3351 | ||
3352 | if test -n "$ac_subst_files"; then | |
3353 | $as_echo "## ------------------- ## | |
3354 | ## File substitutions. ## | |
3355 | ## ------------------- ##" | |
3356 | echo | |
3357 | for ac_var in $ac_subst_files | |
3358 | do | |
3359 | eval ac_val=\$$ac_var | |
3360 | case $ac_val in | |
3361 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
3362 | esac | |
3363 | $as_echo "$ac_var='\''$ac_val'\''" | |
3364 | done | sort | |
3365 | echo | |
3366 | fi | |
3367 | ||
3368 | if test -s confdefs.h; then | |
3369 | $as_echo "## ----------- ## | |
3370 | ## confdefs.h. ## | |
3371 | ## ----------- ##" | |
3372 | echo | |
3373 | cat confdefs.h | |
3374 | echo | |
3375 | fi | |
3376 | test "$ac_signal" != 0 && | |
3377 | $as_echo "$as_me: caught signal $ac_signal" | |
3378 | $as_echo "$as_me: exit $exit_status" | |
3379 | } >&5 | |
3380 | rm -f core *.core core.conftest.* && | |
3381 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
3382 | exit $exit_status | |
3383 | ' 0 | |
3384 | for ac_signal in 1 2 13 15; do | |
3385 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
3386 | done | |
3387 | ac_signal=0 | |
3388 | ||
3389 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
3390 | rm -f -r conftest* confdefs.h | |
3391 | ||
3392 | $as_echo "/* confdefs.h */" > confdefs.h | |
3393 | ||
3394 | # Predefined preprocessor variables. | |
3395 | ||
3396 | cat >>confdefs.h <<_ACEOF | |
3397 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
3398 | _ACEOF | |
3399 | ||
3400 | cat >>confdefs.h <<_ACEOF | |
3401 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
3402 | _ACEOF | |
3403 | ||
3404 | cat >>confdefs.h <<_ACEOF | |
3405 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
3406 | _ACEOF | |
3407 | ||
3408 | cat >>confdefs.h <<_ACEOF | |
3409 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
3410 | _ACEOF | |
3411 | ||
3412 | cat >>confdefs.h <<_ACEOF | |
3413 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
3414 | _ACEOF | |
3415 | ||
3416 | cat >>confdefs.h <<_ACEOF | |
3417 | #define PACKAGE_URL "$PACKAGE_URL" | |
3418 | _ACEOF | |
3419 | ||
3420 | ||
3421 | # Let the site file select an alternate cache file if it wants to. | |
3422 | # Prefer an explicitly selected file to automatically selected ones. | |
3423 | ac_site_file1=NONE | |
3424 | ac_site_file2=NONE | |
3425 | if test -n "$CONFIG_SITE"; then | |
3426 | # We do not want a PATH search for config.site. | |
3427 | case $CONFIG_SITE in #(( | |
3428 | -*) ac_site_file1=./$CONFIG_SITE;; | |
3429 | */*) ac_site_file1=$CONFIG_SITE;; | |
3430 | *) ac_site_file1=./$CONFIG_SITE;; | |
3431 | esac | |
3432 | elif test "x$prefix" != xNONE; then | |
3433 | ac_site_file1=$prefix/share/config.site | |
3434 | ac_site_file2=$prefix/etc/config.site | |
3435 | else | |
3436 | ac_site_file1=$ac_default_prefix/share/config.site | |
3437 | ac_site_file2=$ac_default_prefix/etc/config.site | |
3438 | fi | |
3439 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
3440 | do | |
3441 | test "x$ac_site_file" = xNONE && continue | |
3442 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
3444 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
3445 | sed 's/^/| /' "$ac_site_file" >&5 | |
3446 | . "$ac_site_file" \ | |
3447 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3448 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3449 | as_fn_error $? "failed to load site script $ac_site_file | |
3450 | See \`config.log' for more details" "$LINENO" 5; } | |
3451 | fi | |
3452 | done | |
3453 | ||
3454 | if test -r "$cache_file"; then | |
3455 | # Some versions of bash will fail to source /dev/null (special files | |
3456 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
3457 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
3459 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
3460 | case $cache_file in | |
3461 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
3462 | *) . "./$cache_file";; | |
3463 | esac | |
3464 | fi | |
3465 | else | |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
3467 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
3468 | >$cache_file | |
3469 | fi | |
3470 | ||
3471 | # Check that the precious variables saved in the cache have kept the same | |
3472 | # value. | |
3473 | ac_cache_corrupted=false | |
3474 | for ac_var in $ac_precious_vars; do | |
3475 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
3476 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3477 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
3478 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3479 | case $ac_old_set,$ac_new_set in | |
3480 | set,) | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
3482 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
3483 | ac_cache_corrupted=: ;; | |
3484 | ,set) | |
3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
3486 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
3487 | ac_cache_corrupted=: ;; | |
3488 | ,);; | |
3489 | *) | |
3490 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3491 | # differences in whitespace do not lead to failure. | |
3492 | ac_old_val_w=`echo x $ac_old_val` | |
3493 | ac_new_val_w=`echo x $ac_new_val` | |
3494 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
3496 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3497 | ac_cache_corrupted=: | |
3498 | else | |
3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3500 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3501 | eval $ac_var=\$ac_old_val | |
3502 | fi | |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3504 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3506 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
3507 | fi;; | |
3508 | esac | |
3509 | # Pass precious variables to config.status. | |
3510 | if test "$ac_new_set" = set; then | |
3511 | case $ac_new_val in | |
3512 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3513 | *) ac_arg=$ac_var=$ac_new_val ;; | |
3514 | esac | |
3515 | case " $ac_configure_args " in | |
3516 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
3517 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
3518 | esac | |
3519 | fi | |
3520 | done | |
3521 | if $ac_cache_corrupted; then | |
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3525 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
3526 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
3527 | fi | |
3528 | ## -------------------- ## | |
3529 | ## Main body of script. ## | |
3530 | ## -------------------- ## | |
3531 | ||
3532 | ac_ext=c | |
3533 | ac_cpp='$CPP $CPPFLAGS' | |
3534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3537 | ||
3538 | ||
3539 | RELEASE_DATE="2014-04-13" | |
3540 | RELEASE_NAME="Heart Candy" | |
3541 | ||
3542 | am__api_version='1.11' | |
3543 | ||
3544 | ac_aux_dir= | |
3545 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3546 | if test -f "$ac_dir/install-sh"; then | |
3547 | ac_aux_dir=$ac_dir | |
3548 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3549 | break | |
3550 | elif test -f "$ac_dir/install.sh"; then | |
3551 | ac_aux_dir=$ac_dir | |
3552 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3553 | break | |
3554 | elif test -f "$ac_dir/shtool"; then | |
3555 | ac_aux_dir=$ac_dir | |
3556 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3557 | break | |
3558 | fi | |
3559 | done | |
3560 | if test -z "$ac_aux_dir"; then | |
3561 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3562 | fi | |
3563 | ||
3564 | # These three variables are undocumented and unsupported, | |
3565 | # and are intended to be withdrawn in a future Autoconf release. | |
3566 | # They can cause serious problems if a builder's source tree is in a directory | |
3567 | # whose full name contains unusual characters. | |
3568 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3569 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3570 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3571 | ||
3572 | ||
3573 | # Find a good install program. We prefer a C program (faster), | |
3574 | # so one script is as good as another. But avoid the broken or | |
3575 | # incompatible versions: | |
3576 | # SysV /etc/install, /usr/sbin/install | |
3577 | # SunOS /usr/etc/install | |
3578 | # IRIX /sbin/install | |
3579 | # AIX /bin/install | |
3580 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3581 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3582 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3583 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3584 | # OS/2's system install, which has a completely different semantic | |
3585 | # ./install, which can be erroneously created by make from ./install.sh. | |
3586 | # Reject install programs that cannot install multiple files. | |
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3588 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3589 | if test -z "$INSTALL"; then | |
3590 | if ${ac_cv_path_install+:} false; then : | |
3591 | $as_echo_n "(cached) " >&6 | |
3592 | else | |
3593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3594 | for as_dir in $PATH | |
3595 | do | |
3596 | IFS=$as_save_IFS | |
3597 | test -z "$as_dir" && as_dir=. | |
3598 | # Account for people who put trailing slashes in PATH elements. | |
3599 | case $as_dir/ in #(( | |
3600 | ./ | .// | /[cC]/* | \ | |
3601 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3602 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3603 | /usr/ucb/* ) ;; | |
3604 | *) | |
3605 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3606 | # Don't use installbsd from OSF since it installs stuff as root | |
3607 | # by default. | |
3608 | for ac_prog in ginstall scoinst install; do | |
3609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3610 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3611 | if test $ac_prog = install && | |
3612 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3613 | # AIX install. It has an incompatible calling convention. | |
3614 | : | |
3615 | elif test $ac_prog = install && | |
3616 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3617 | # program-specific install script used by HP pwplus--don't use. | |
3618 | : | |
3619 | else | |
3620 | rm -rf conftest.one conftest.two conftest.dir | |
3621 | echo one > conftest.one | |
3622 | echo two > conftest.two | |
3623 | mkdir conftest.dir | |
3624 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3625 | test -s conftest.one && test -s conftest.two && | |
3626 | test -s conftest.dir/conftest.one && | |
3627 | test -s conftest.dir/conftest.two | |
3628 | then | |
3629 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3630 | break 3 | |
3631 | fi | |
3632 | fi | |
3633 | fi | |
3634 | done | |
3635 | done | |
3636 | ;; | |
3637 | esac | |
3638 | ||
3639 | done | |
3640 | IFS=$as_save_IFS | |
3641 | ||
3642 | rm -rf conftest.one conftest.two conftest.dir | |
3643 | ||
3644 | fi | |
3645 | if test "${ac_cv_path_install+set}" = set; then | |
3646 | INSTALL=$ac_cv_path_install | |
3647 | else | |
3648 | # As a last resort, use the slow shell script. Don't cache a | |
3649 | # value for INSTALL within a source directory, because that will | |
3650 | # break other packages using the cache if that directory is | |
3651 | # removed, or if the value is a relative name. | |
3652 | INSTALL=$ac_install_sh | |
3653 | fi | |
3654 | fi | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3656 | $as_echo "$INSTALL" >&6; } | |
3657 | ||
3658 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3659 | # It thinks the first close brace ends the variable substitution. | |
3660 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3661 | ||
3662 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3663 | ||
3664 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3665 | ||
3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
3667 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
3668 | # Just in case | |
3669 | sleep 1 | |
3670 | echo timestamp > conftest.file | |
3671 | # Reject unsafe characters in $srcdir or the absolute working directory | |
3672 | # name. Accept space and tab only in the latter. | |
3673 | am_lf=' | |
3674 | ' | |
3675 | case `pwd` in | |
3676 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3677 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
3678 | esac | |
3679 | case $srcdir in | |
3680 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3681 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3682 | esac | |
3683 | ||
3684 | # Do `set' in a subshell so we don't clobber the current shell's | |
3685 | # arguments. Must try -L first in case configure is actually a | |
3686 | # symlink; some systems play weird games with the mod time of symlinks | |
3687 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3688 | # directory). | |
3689 | if ( | |
3690 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3691 | if test "$*" = "X"; then | |
3692 | # -L didn't work. | |
3693 | set X `ls -t "$srcdir/configure" conftest.file` | |
3694 | fi | |
3695 | rm -f conftest.file | |
3696 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3697 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3698 | ||
3699 | # If neither matched, then we have a broken ls. This can happen | |
3700 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3701 | # broken ls alias from the environment. This has actually | |
3702 | # happened. Such a system could not be considered "sane". | |
3703 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3704 | alias in your environment" "$LINENO" 5 | |
3705 | fi | |
3706 | ||
3707 | test "$2" = conftest.file | |
3708 | ) | |
3709 | then | |
3710 | # Ok. | |
3711 | : | |
3712 | else | |
3713 | as_fn_error $? "newly created file is older than distributed files! | |
3714 | Check your system clock" "$LINENO" 5 | |
3715 | fi | |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3717 | $as_echo "yes" >&6; } | |
3718 | test "$program_prefix" != NONE && | |
3719 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3720 | # Use a double $ so make ignores it. | |
3721 | test "$program_suffix" != NONE && | |
3722 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3723 | # Double any \ or $. | |
3724 | # By default was `s,x,x', remove it if useless. | |
3725 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3726 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3727 | ||
3728 | # expand $ac_aux_dir to an absolute path | |
3729 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3730 | ||
3731 | if test x"${MISSING+set}" != xset; then | |
3732 | case $am_aux_dir in | |
3733 | *\ * | *\ *) | |
3734 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3735 | *) | |
3736 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3737 | esac | |
3738 | fi | |
3739 | # Use eval to expand $SHELL | |
3740 | if eval "$MISSING --run true"; then | |
3741 | am_missing_run="$MISSING --run " | |
3742 | else | |
3743 | am_missing_run= | |
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
3745 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3746 | fi | |
3747 | ||
3748 | if test x"${install_sh}" != xset; then | |
3749 | case $am_aux_dir in | |
3750 | *\ * | *\ *) | |
3751 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3752 | *) | |
3753 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3754 | esac | |
3755 | fi | |
3756 | ||
3757 | # Installed binaries are usually stripped using `strip' when the user | |
3758 | # run `make install-strip'. However `strip' might not be the right | |
3759 | # tool to use in cross-compilation environments, therefore Automake | |
3760 | # will honor the `STRIP' environment variable to overrule this program. | |
3761 | if test "$cross_compiling" != no; then | |
3762 | if test -n "$ac_tool_prefix"; then | |
3763 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3764 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3766 | $as_echo_n "checking for $ac_word... " >&6; } | |
3767 | if ${ac_cv_prog_STRIP+:} false; then : | |
3768 | $as_echo_n "(cached) " >&6 | |
3769 | else | |
3770 | if test -n "$STRIP"; then | |
3771 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3772 | else | |
3773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3774 | for as_dir in $PATH | |
3775 | do | |
3776 | IFS=$as_save_IFS | |
3777 | test -z "$as_dir" && as_dir=. | |
3778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3780 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3782 | break 2 | |
3783 | fi | |
3784 | done | |
3785 | done | |
3786 | IFS=$as_save_IFS | |
3787 | ||
3788 | fi | |
3789 | fi | |
3790 | STRIP=$ac_cv_prog_STRIP | |
3791 | if test -n "$STRIP"; then | |
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3793 | $as_echo "$STRIP" >&6; } | |
3794 | else | |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3796 | $as_echo "no" >&6; } | |
3797 | fi | |
3798 | ||
3799 | ||
3800 | fi | |
3801 | if test -z "$ac_cv_prog_STRIP"; then | |
3802 | ac_ct_STRIP=$STRIP | |
3803 | # Extract the first word of "strip", so it can be a program name with args. | |
3804 | set dummy strip; ac_word=$2 | |
3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3806 | $as_echo_n "checking for $ac_word... " >&6; } | |
3807 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
3808 | $as_echo_n "(cached) " >&6 | |
3809 | else | |
3810 | if test -n "$ac_ct_STRIP"; then | |
3811 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3812 | else | |
3813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3814 | for as_dir in $PATH | |
3815 | do | |
3816 | IFS=$as_save_IFS | |
3817 | test -z "$as_dir" && as_dir=. | |
3818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3820 | ac_cv_prog_ac_ct_STRIP="strip" | |
3821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3822 | break 2 | |
3823 | fi | |
3824 | done | |
3825 | done | |
3826 | IFS=$as_save_IFS | |
3827 | ||
3828 | fi | |
3829 | fi | |
3830 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3831 | if test -n "$ac_ct_STRIP"; then | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3833 | $as_echo "$ac_ct_STRIP" >&6; } | |
3834 | else | |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3836 | $as_echo "no" >&6; } | |
3837 | fi | |
3838 | ||
3839 | if test "x$ac_ct_STRIP" = x; then | |
3840 | STRIP=":" | |
3841 | else | |
3842 | case $cross_compiling:$ac_tool_warned in | |
3843 | yes:) | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3845 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3846 | ac_tool_warned=yes ;; | |
3847 | esac | |
3848 | STRIP=$ac_ct_STRIP | |
3849 | fi | |
3850 | else | |
3851 | STRIP="$ac_cv_prog_STRIP" | |
3852 | fi | |
3853 | ||
3854 | fi | |
3855 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3856 | ||
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3858 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3859 | if test -z "$MKDIR_P"; then | |
3860 | if ${ac_cv_path_mkdir+:} false; then : | |
3861 | $as_echo_n "(cached) " >&6 | |
3862 | else | |
3863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3864 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3865 | do | |
3866 | IFS=$as_save_IFS | |
3867 | test -z "$as_dir" && as_dir=. | |
3868 | for ac_prog in mkdir gmkdir; do | |
3869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3870 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3871 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3872 | 'mkdir (GNU coreutils) '* | \ | |
3873 | 'mkdir (coreutils) '* | \ | |
3874 | 'mkdir (fileutils) '4.1*) | |
3875 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3876 | break 3;; | |
3877 | esac | |
3878 | done | |
3879 | done | |
3880 | done | |
3881 | IFS=$as_save_IFS | |
3882 | ||
3883 | fi | |
3884 | ||
3885 | test -d ./--version && rmdir ./--version | |
3886 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3887 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3888 | else | |
3889 | # As a last resort, use the slow shell script. Don't cache a | |
3890 | # value for MKDIR_P within a source directory, because that will | |
3891 | # break other packages using the cache if that directory is | |
3892 | # removed, or if the value is a relative name. | |
3893 | MKDIR_P="$ac_install_sh -d" | |
3894 | fi | |
3895 | fi | |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3897 | $as_echo "$MKDIR_P" >&6; } | |
3898 | ||
3899 | mkdir_p="$MKDIR_P" | |
3900 | case $mkdir_p in | |
3901 | [\\/$]* | ?:[\\/]*) ;; | |
3902 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3903 | esac | |
3904 | ||
3905 | for ac_prog in gawk mawk nawk awk | |
3906 | do | |
3907 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3908 | set dummy $ac_prog; ac_word=$2 | |
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3910 | $as_echo_n "checking for $ac_word... " >&6; } | |
3911 | if ${ac_cv_prog_AWK+:} false; then : | |
3912 | $as_echo_n "(cached) " >&6 | |
3913 | else | |
3914 | if test -n "$AWK"; then | |
3915 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3916 | else | |
3917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3918 | for as_dir in $PATH | |
3919 | do | |
3920 | IFS=$as_save_IFS | |
3921 | test -z "$as_dir" && as_dir=. | |
3922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3924 | ac_cv_prog_AWK="$ac_prog" | |
3925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3926 | break 2 | |
3927 | fi | |
3928 | done | |
3929 | done | |
3930 | IFS=$as_save_IFS | |
3931 | ||
3932 | fi | |
3933 | fi | |
3934 | AWK=$ac_cv_prog_AWK | |
3935 | if test -n "$AWK"; then | |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3937 | $as_echo "$AWK" >&6; } | |
3938 | else | |
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3940 | $as_echo "no" >&6; } | |
3941 | fi | |
3942 | ||
3943 | ||
3944 | test -n "$AWK" && break | |
3945 | done | |
3946 | ||
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3948 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3949 | set x ${MAKE-make} | |
3950 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3951 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3952 | $as_echo_n "(cached) " >&6 | |
3953 | else | |
3954 | cat >conftest.make <<\_ACEOF | |
3955 | SHELL = /bin/sh | |
3956 | all: | |
3957 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3958 | _ACEOF | |
3959 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3960 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3961 | *@@@%%%=?*=@@@%%%*) | |
3962 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3963 | *) | |
3964 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3965 | esac | |
3966 | rm -f conftest.make | |
3967 | fi | |
3968 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3970 | $as_echo "yes" >&6; } | |
3971 | SET_MAKE= | |
3972 | else | |
3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3974 | $as_echo "no" >&6; } | |
3975 | SET_MAKE="MAKE=${MAKE-make}" | |
3976 | fi | |
3977 | ||
3978 | rm -rf .tst 2>/dev/null | |
3979 | mkdir .tst 2>/dev/null | |
3980 | if test -d .tst; then | |
3981 | am__leading_dot=. | |
3982 | else | |
3983 | am__leading_dot=_ | |
3984 | fi | |
3985 | rmdir .tst 2>/dev/null | |
3986 | ||
3987 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3988 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3989 | # is not polluted with repeated "-I." | |
3990 | am__isrc=' -I$(srcdir)' | |
3991 | # test to see if srcdir already configured | |
3992 | if test -f $srcdir/config.status; then | |
3993 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3994 | fi | |
3995 | fi | |
3996 | ||
3997 | # test whether we have cygpath | |
3998 | if test -z "$CYGPATH_W"; then | |
3999 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4000 | CYGPATH_W='cygpath -w' | |
4001 | else | |
4002 | CYGPATH_W=echo | |
4003 | fi | |
4004 | fi | |
4005 | ||
4006 | ||
4007 | # Define the identity of the package. | |
4008 | PACKAGE='xorg-server' | |
4009 | VERSION='1.15.1' | |
4010 | ||
4011 | ||
4012 | cat >>confdefs.h <<_ACEOF | |
4013 | #define PACKAGE "$PACKAGE" | |
4014 | _ACEOF | |
4015 | ||
4016 | ||
4017 | cat >>confdefs.h <<_ACEOF | |
4018 | #define VERSION "$VERSION" | |
4019 | _ACEOF | |
4020 | ||
4021 | # Some tools Automake needs. | |
4022 | ||
4023 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4024 | ||
4025 | ||
4026 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4027 | ||
4028 | ||
4029 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4030 | ||
4031 | ||
4032 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4033 | ||
4034 | ||
4035 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4036 | ||
4037 | # We need awk for the "check" target. The system "awk" is bad on | |
4038 | # some platforms. | |
4039 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4040 | # in the wild :-( We should find a proper way to deprecate it ... | |
4041 | AMTAR='$${TAR-tar}' | |
4042 | ||
4043 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
4044 | ||
4045 | ||
4046 | ||
4047 | ||
4048 | ||
4049 | DEPDIR="${am__leading_dot}deps" | |
4050 | ||
4051 | ac_config_commands="$ac_config_commands depfiles" | |
4052 | ||
4053 | ||
4054 | am_make=${MAKE-make} | |
4055 | cat > confinc << 'END' | |
4056 | am__doit: | |
4057 | @echo this is the am__doit target | |
4058 | .PHONY: am__doit | |
4059 | END | |
4060 | # If we don't find an include directive, just comment out the code. | |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4062 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4063 | am__include="#" | |
4064 | am__quote= | |
4065 | _am_result=none | |
4066 | # First try GNU make style include. | |
4067 | echo "include confinc" > confmf | |
4068 | # Ignore all kinds of additional output from `make'. | |
4069 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4070 | *the\ am__doit\ target*) | |
4071 | am__include=include | |
4072 | am__quote= | |
4073 | _am_result=GNU | |
4074 | ;; | |
4075 | esac | |
4076 | # Now try BSD make style include. | |
4077 | if test "$am__include" = "#"; then | |
4078 | echo '.include "confinc"' > confmf | |
4079 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4080 | *the\ am__doit\ target*) | |
4081 | am__include=.include | |
4082 | am__quote="\"" | |
4083 | _am_result=BSD | |
4084 | ;; | |
4085 | esac | |
4086 | fi | |
4087 | ||
4088 | ||
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4090 | $as_echo "$_am_result" >&6; } | |
4091 | rm -f confinc confmf | |
4092 | ||
4093 | # Check whether --enable-dependency-tracking was given. | |
4094 | if test "${enable_dependency_tracking+set}" = set; then : | |
4095 | enableval=$enable_dependency_tracking; | |
4096 | fi | |
4097 | ||
4098 | if test "x$enable_dependency_tracking" != xno; then | |
4099 | am_depcomp="$ac_aux_dir/depcomp" | |
4100 | AMDEPBACKSLASH='\' | |
4101 | am__nodep='_no' | |
4102 | fi | |
4103 | if test "x$enable_dependency_tracking" != xno; then | |
4104 | AMDEP_TRUE= | |
4105 | AMDEP_FALSE='#' | |
4106 | else | |
4107 | AMDEP_TRUE='#' | |
4108 | AMDEP_FALSE= | |
4109 | fi | |
4110 | ||
4111 | ||
4112 | ac_ext=c | |
4113 | ac_cpp='$CPP $CPPFLAGS' | |
4114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4117 | if test -n "$ac_tool_prefix"; then | |
4118 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4119 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4121 | $as_echo_n "checking for $ac_word... " >&6; } | |
4122 | if ${ac_cv_prog_CC+:} false; then : | |
4123 | $as_echo_n "(cached) " >&6 | |
4124 | else | |
4125 | if test -n "$CC"; then | |
4126 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4127 | else | |
4128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4129 | for as_dir in $PATH | |
4130 | do | |
4131 | IFS=$as_save_IFS | |
4132 | test -z "$as_dir" && as_dir=. | |
4133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4135 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4137 | break 2 | |
4138 | fi | |
4139 | done | |
4140 | done | |
4141 | IFS=$as_save_IFS | |
4142 | ||
4143 | fi | |
4144 | fi | |
4145 | CC=$ac_cv_prog_CC | |
4146 | if test -n "$CC"; then | |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4148 | $as_echo "$CC" >&6; } | |
4149 | else | |
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4151 | $as_echo "no" >&6; } | |
4152 | fi | |
4153 | ||
4154 | ||
4155 | fi | |
4156 | if test -z "$ac_cv_prog_CC"; then | |
4157 | ac_ct_CC=$CC | |
4158 | # Extract the first word of "gcc", so it can be a program name with args. | |
4159 | set dummy gcc; ac_word=$2 | |
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4161 | $as_echo_n "checking for $ac_word... " >&6; } | |
4162 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4163 | $as_echo_n "(cached) " >&6 | |
4164 | else | |
4165 | if test -n "$ac_ct_CC"; then | |
4166 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4167 | else | |
4168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4169 | for as_dir in $PATH | |
4170 | do | |
4171 | IFS=$as_save_IFS | |
4172 | test -z "$as_dir" && as_dir=. | |
4173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4175 | ac_cv_prog_ac_ct_CC="gcc" | |
4176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4177 | break 2 | |
4178 | fi | |
4179 | done | |
4180 | done | |
4181 | IFS=$as_save_IFS | |
4182 | ||
4183 | fi | |
4184 | fi | |
4185 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4186 | if test -n "$ac_ct_CC"; then | |
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4188 | $as_echo "$ac_ct_CC" >&6; } | |
4189 | else | |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4191 | $as_echo "no" >&6; } | |
4192 | fi | |
4193 | ||
4194 | if test "x$ac_ct_CC" = x; then | |
4195 | CC="" | |
4196 | else | |
4197 | case $cross_compiling:$ac_tool_warned in | |
4198 | yes:) | |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4200 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4201 | ac_tool_warned=yes ;; | |
4202 | esac | |
4203 | CC=$ac_ct_CC | |
4204 | fi | |
4205 | else | |
4206 | CC="$ac_cv_prog_CC" | |
4207 | fi | |
4208 | ||
4209 | if test -z "$CC"; then | |
4210 | if test -n "$ac_tool_prefix"; then | |
4211 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4212 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4214 | $as_echo_n "checking for $ac_word... " >&6; } | |
4215 | if ${ac_cv_prog_CC+:} false; then : | |
4216 | $as_echo_n "(cached) " >&6 | |
4217 | else | |
4218 | if test -n "$CC"; then | |
4219 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4220 | else | |
4221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4222 | for as_dir in $PATH | |
4223 | do | |
4224 | IFS=$as_save_IFS | |
4225 | test -z "$as_dir" && as_dir=. | |
4226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4228 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4230 | break 2 | |
4231 | fi | |
4232 | done | |
4233 | done | |
4234 | IFS=$as_save_IFS | |
4235 | ||
4236 | fi | |
4237 | fi | |
4238 | CC=$ac_cv_prog_CC | |
4239 | if test -n "$CC"; then | |
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4241 | $as_echo "$CC" >&6; } | |
4242 | else | |
4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4244 | $as_echo "no" >&6; } | |
4245 | fi | |
4246 | ||
4247 | ||
4248 | fi | |
4249 | fi | |
4250 | if test -z "$CC"; then | |
4251 | # Extract the first word of "cc", so it can be a program name with args. | |
4252 | set dummy cc; ac_word=$2 | |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4254 | $as_echo_n "checking for $ac_word... " >&6; } | |
4255 | if ${ac_cv_prog_CC+:} false; then : | |
4256 | $as_echo_n "(cached) " >&6 | |
4257 | else | |
4258 | if test -n "$CC"; then | |
4259 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4260 | else | |
4261 | ac_prog_rejected=no | |
4262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4263 | for as_dir in $PATH | |
4264 | do | |
4265 | IFS=$as_save_IFS | |
4266 | test -z "$as_dir" && as_dir=. | |
4267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4269 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4270 | ac_prog_rejected=yes | |
4271 | continue | |
4272 | fi | |
4273 | ac_cv_prog_CC="cc" | |
4274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4275 | break 2 | |
4276 | fi | |
4277 | done | |
4278 | done | |
4279 | IFS=$as_save_IFS | |
4280 | ||
4281 | if test $ac_prog_rejected = yes; then | |
4282 | # We found a bogon in the path, so make sure we never use it. | |
4283 | set dummy $ac_cv_prog_CC | |
4284 | shift | |
4285 | if test $# != 0; then | |
4286 | # We chose a different compiler from the bogus one. | |
4287 | # However, it has the same basename, so the bogon will be chosen | |
4288 | # first if we set CC to just the basename; use the full file name. | |
4289 | shift | |
4290 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4291 | fi | |
4292 | fi | |
4293 | fi | |
4294 | fi | |
4295 | CC=$ac_cv_prog_CC | |
4296 | if test -n "$CC"; then | |
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4298 | $as_echo "$CC" >&6; } | |
4299 | else | |
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4301 | $as_echo "no" >&6; } | |
4302 | fi | |
4303 | ||
4304 | ||
4305 | fi | |
4306 | if test -z "$CC"; then | |
4307 | if test -n "$ac_tool_prefix"; then | |
4308 | for ac_prog in cl.exe | |
4309 | do | |
4310 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4311 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4313 | $as_echo_n "checking for $ac_word... " >&6; } | |
4314 | if ${ac_cv_prog_CC+:} false; then : | |
4315 | $as_echo_n "(cached) " >&6 | |
4316 | else | |
4317 | if test -n "$CC"; then | |
4318 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4319 | else | |
4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4321 | for as_dir in $PATH | |
4322 | do | |
4323 | IFS=$as_save_IFS | |
4324 | test -z "$as_dir" && as_dir=. | |
4325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4327 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4329 | break 2 | |
4330 | fi | |
4331 | done | |
4332 | done | |
4333 | IFS=$as_save_IFS | |
4334 | ||
4335 | fi | |
4336 | fi | |
4337 | CC=$ac_cv_prog_CC | |
4338 | if test -n "$CC"; then | |
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4340 | $as_echo "$CC" >&6; } | |
4341 | else | |
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4343 | $as_echo "no" >&6; } | |
4344 | fi | |
4345 | ||
4346 | ||
4347 | test -n "$CC" && break | |
4348 | done | |
4349 | fi | |
4350 | if test -z "$CC"; then | |
4351 | ac_ct_CC=$CC | |
4352 | for ac_prog in cl.exe | |
4353 | do | |
4354 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4355 | set dummy $ac_prog; ac_word=$2 | |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4357 | $as_echo_n "checking for $ac_word... " >&6; } | |
4358 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4359 | $as_echo_n "(cached) " >&6 | |
4360 | else | |
4361 | if test -n "$ac_ct_CC"; then | |
4362 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4363 | else | |
4364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4365 | for as_dir in $PATH | |
4366 | do | |
4367 | IFS=$as_save_IFS | |
4368 | test -z "$as_dir" && as_dir=. | |
4369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4371 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4373 | break 2 | |
4374 | fi | |
4375 | done | |
4376 | done | |
4377 | IFS=$as_save_IFS | |
4378 | ||
4379 | fi | |
4380 | fi | |
4381 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4382 | if test -n "$ac_ct_CC"; then | |
4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4384 | $as_echo "$ac_ct_CC" >&6; } | |
4385 | else | |
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4387 | $as_echo "no" >&6; } | |
4388 | fi | |
4389 | ||
4390 | ||
4391 | test -n "$ac_ct_CC" && break | |
4392 | done | |
4393 | ||
4394 | if test "x$ac_ct_CC" = x; then | |
4395 | CC="" | |
4396 | else | |
4397 | case $cross_compiling:$ac_tool_warned in | |
4398 | yes:) | |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4400 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4401 | ac_tool_warned=yes ;; | |
4402 | esac | |
4403 | CC=$ac_ct_CC | |
4404 | fi | |
4405 | fi | |
4406 | ||
4407 | fi | |
4408 | ||
4409 | ||
4410 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4411 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4412 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4413 | See \`config.log' for more details" "$LINENO" 5; } | |
4414 | ||
4415 | # Provide some information about the compiler. | |
4416 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4417 | set X $ac_compile | |
4418 | ac_compiler=$2 | |
4419 | for ac_option in --version -v -V -qversion; do | |
4420 | { { ac_try="$ac_compiler $ac_option >&5" | |
4421 | case "(($ac_try" in | |
4422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4423 | *) ac_try_echo=$ac_try;; | |
4424 | esac | |
4425 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4426 | $as_echo "$ac_try_echo"; } >&5 | |
4427 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4428 | ac_status=$? | |
4429 | if test -s conftest.err; then | |
4430 | sed '10a\ | |
4431 | ... rest of stderr output deleted ... | |
4432 | 10q' conftest.err >conftest.er1 | |
4433 | cat conftest.er1 >&5 | |
4434 | fi | |
4435 | rm -f conftest.er1 conftest.err | |
4436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4437 | test $ac_status = 0; } | |
4438 | done | |
4439 | ||
4440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4441 | /* end confdefs.h. */ | |
4442 | ||
4443 | int | |
4444 | main () | |
4445 | { | |
4446 | ||
4447 | ; | |
4448 | return 0; | |
4449 | } | |
4450 | _ACEOF | |
4451 | ac_clean_files_save=$ac_clean_files | |
4452 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
4453 | # Try to create an executable without -o first, disregard a.out. | |
4454 | # It will help us diagnose broken compilers, and finding out an intuition | |
4455 | # of exeext. | |
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4457 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4458 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4459 | ||
4460 | # The possible output files: | |
4461 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4462 | ||
4463 | ac_rmfiles= | |
4464 | for ac_file in $ac_files | |
4465 | do | |
4466 | case $ac_file in | |
4467 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4468 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4469 | esac | |
4470 | done | |
4471 | rm -f $ac_rmfiles | |
4472 | ||
4473 | if { { ac_try="$ac_link_default" | |
4474 | case "(($ac_try" in | |
4475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4476 | *) ac_try_echo=$ac_try;; | |
4477 | esac | |
4478 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4479 | $as_echo "$ac_try_echo"; } >&5 | |
4480 | (eval "$ac_link_default") 2>&5 | |
4481 | ac_status=$? | |
4482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4483 | test $ac_status = 0; }; then : | |
4484 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4485 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4486 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4487 | # so that the user can short-circuit this test for compilers unknown to | |
4488 | # Autoconf. | |
4489 | for ac_file in $ac_files '' | |
4490 | do | |
4491 | test -f "$ac_file" || continue | |
4492 | case $ac_file in | |
4493 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4494 | ;; | |
4495 | [ab].out ) | |
4496 | # We found the default executable, but exeext='' is most | |
4497 | # certainly right. | |
4498 | break;; | |
4499 | *.* ) | |
4500 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4501 | then :; else | |
4502 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4503 | fi | |
4504 | # We set ac_cv_exeext here because the later test for it is not | |
4505 | # safe: cross compilers may not add the suffix if given an `-o' | |
4506 | # argument, so we may need to know it at that point already. | |
4507 | # Even if this section looks crufty: it has the advantage of | |
4508 | # actually working. | |
4509 | break;; | |
4510 | * ) | |
4511 | break;; | |
4512 | esac | |
4513 | done | |
4514 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4515 | ||
4516 | else | |
4517 | ac_file='' | |
4518 | fi | |
4519 | if test -z "$ac_file"; then : | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4521 | $as_echo "no" >&6; } | |
4522 | $as_echo "$as_me: failed program was:" >&5 | |
4523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4524 | ||
4525 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4526 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4527 | as_fn_error 77 "C compiler cannot create executables | |
4528 | See \`config.log' for more details" "$LINENO" 5; } | |
4529 | else | |
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4531 | $as_echo "yes" >&6; } | |
4532 | fi | |
4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4534 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4536 | $as_echo "$ac_file" >&6; } | |
4537 | ac_exeext=$ac_cv_exeext | |
4538 | ||
4539 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
4540 | ac_clean_files=$ac_clean_files_save | |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4542 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4543 | if { { ac_try="$ac_link" | |
4544 | case "(($ac_try" in | |
4545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4546 | *) ac_try_echo=$ac_try;; | |
4547 | esac | |
4548 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4549 | $as_echo "$ac_try_echo"; } >&5 | |
4550 | (eval "$ac_link") 2>&5 | |
4551 | ac_status=$? | |
4552 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4553 | test $ac_status = 0; }; then : | |
4554 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4555 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4556 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4557 | # `rm'. | |
4558 | for ac_file in conftest.exe conftest conftest.*; do | |
4559 | test -f "$ac_file" || continue | |
4560 | case $ac_file in | |
4561 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4562 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4563 | break;; | |
4564 | * ) break;; | |
4565 | esac | |
4566 | done | |
4567 | else | |
4568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4569 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4570 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
4571 | See \`config.log' for more details" "$LINENO" 5; } | |
4572 | fi | |
4573 | rm -f conftest conftest$ac_cv_exeext | |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4575 | $as_echo "$ac_cv_exeext" >&6; } | |
4576 | ||
4577 | rm -f conftest.$ac_ext | |
4578 | EXEEXT=$ac_cv_exeext | |
4579 | ac_exeext=$EXEEXT | |
4580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4581 | /* end confdefs.h. */ | |
4582 | #include <stdio.h> | |
4583 | int | |
4584 | main () | |
4585 | { | |
4586 | FILE *f = fopen ("conftest.out", "w"); | |
4587 | return ferror (f) || fclose (f) != 0; | |
4588 | ||
4589 | ; | |
4590 | return 0; | |
4591 | } | |
4592 | _ACEOF | |
4593 | ac_clean_files="$ac_clean_files conftest.out" | |
4594 | # Check that the compiler produces executables we can run. If not, either | |
4595 | # the compiler is broken, or we cross compile. | |
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4597 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4598 | if test "$cross_compiling" != yes; then | |
4599 | { { ac_try="$ac_link" | |
4600 | case "(($ac_try" in | |
4601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4602 | *) ac_try_echo=$ac_try;; | |
4603 | esac | |
4604 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4605 | $as_echo "$ac_try_echo"; } >&5 | |
4606 | (eval "$ac_link") 2>&5 | |
4607 | ac_status=$? | |
4608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4609 | test $ac_status = 0; } | |
4610 | if { ac_try='./conftest$ac_cv_exeext' | |
4611 | { { case "(($ac_try" in | |
4612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4613 | *) ac_try_echo=$ac_try;; | |
4614 | esac | |
4615 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4616 | $as_echo "$ac_try_echo"; } >&5 | |
4617 | (eval "$ac_try") 2>&5 | |
4618 | ac_status=$? | |
4619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4620 | test $ac_status = 0; }; }; then | |
4621 | cross_compiling=no | |
4622 | else | |
4623 | if test "$cross_compiling" = maybe; then | |
4624 | cross_compiling=yes | |
4625 | else | |
4626 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4627 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4628 | as_fn_error $? "cannot run C compiled programs. | |
4629 | If you meant to cross compile, use \`--host'. | |
4630 | See \`config.log' for more details" "$LINENO" 5; } | |
4631 | fi | |
4632 | fi | |
4633 | fi | |
4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4635 | $as_echo "$cross_compiling" >&6; } | |
4636 | ||
4637 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4638 | ac_clean_files=$ac_clean_files_save | |
4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4640 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4641 | if ${ac_cv_objext+:} false; then : | |
4642 | $as_echo_n "(cached) " >&6 | |
4643 | else | |
4644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4645 | /* end confdefs.h. */ | |
4646 | ||
4647 | int | |
4648 | main () | |
4649 | { | |
4650 | ||
4651 | ; | |
4652 | return 0; | |
4653 | } | |
4654 | _ACEOF | |
4655 | rm -f conftest.o conftest.obj | |
4656 | if { { ac_try="$ac_compile" | |
4657 | case "(($ac_try" in | |
4658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4659 | *) ac_try_echo=$ac_try;; | |
4660 | esac | |
4661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4662 | $as_echo "$ac_try_echo"; } >&5 | |
4663 | (eval "$ac_compile") 2>&5 | |
4664 | ac_status=$? | |
4665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4666 | test $ac_status = 0; }; then : | |
4667 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4668 | test -f "$ac_file" || continue; | |
4669 | case $ac_file in | |
4670 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4671 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4672 | break;; | |
4673 | esac | |
4674 | done | |
4675 | else | |
4676 | $as_echo "$as_me: failed program was:" >&5 | |
4677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4678 | ||
4679 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4680 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4681 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
4682 | See \`config.log' for more details" "$LINENO" 5; } | |
4683 | fi | |
4684 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4685 | fi | |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4687 | $as_echo "$ac_cv_objext" >&6; } | |
4688 | OBJEXT=$ac_cv_objext | |
4689 | ac_objext=$OBJEXT | |
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4691 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4692 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4693 | $as_echo_n "(cached) " >&6 | |
4694 | else | |
4695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4696 | /* end confdefs.h. */ | |
4697 | ||
4698 | int | |
4699 | main () | |
4700 | { | |
4701 | #ifndef __GNUC__ | |
4702 | choke me | |
4703 | #endif | |
4704 | ||
4705 | ; | |
4706 | return 0; | |
4707 | } | |
4708 | _ACEOF | |
4709 | if ac_fn_c_try_compile "$LINENO"; then : | |
4710 | ac_compiler_gnu=yes | |
4711 | else | |
4712 | ac_compiler_gnu=no | |
4713 | fi | |
4714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4715 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4716 | ||
4717 | fi | |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4719 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4720 | if test $ac_compiler_gnu = yes; then | |
4721 | GCC=yes | |
4722 | else | |
4723 | GCC= | |
4724 | fi | |
4725 | ac_test_CFLAGS=${CFLAGS+set} | |
4726 | ac_save_CFLAGS=$CFLAGS | |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4728 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4729 | if ${ac_cv_prog_cc_g+:} false; then : | |
4730 | $as_echo_n "(cached) " >&6 | |
4731 | else | |
4732 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4733 | ac_c_werror_flag=yes | |
4734 | ac_cv_prog_cc_g=no | |
4735 | CFLAGS="-g" | |
4736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4737 | /* end confdefs.h. */ | |
4738 | ||
4739 | int | |
4740 | main () | |
4741 | { | |
4742 | ||
4743 | ; | |
4744 | return 0; | |
4745 | } | |
4746 | _ACEOF | |
4747 | if ac_fn_c_try_compile "$LINENO"; then : | |
4748 | ac_cv_prog_cc_g=yes | |
4749 | else | |
4750 | CFLAGS="" | |
4751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4752 | /* end confdefs.h. */ | |
4753 | ||
4754 | int | |
4755 | main () | |
4756 | { | |
4757 | ||
4758 | ; | |
4759 | return 0; | |
4760 | } | |
4761 | _ACEOF | |
4762 | if ac_fn_c_try_compile "$LINENO"; then : | |
4763 | ||
4764 | else | |
4765 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4766 | CFLAGS="-g" | |
4767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4768 | /* end confdefs.h. */ | |
4769 | ||
4770 | int | |
4771 | main () | |
4772 | { | |
4773 | ||
4774 | ; | |
4775 | return 0; | |
4776 | } | |
4777 | _ACEOF | |
4778 | if ac_fn_c_try_compile "$LINENO"; then : | |
4779 | ac_cv_prog_cc_g=yes | |
4780 | fi | |
4781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4782 | fi | |
4783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4784 | fi | |
4785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4786 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4787 | fi | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4789 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4790 | if test "$ac_test_CFLAGS" = set; then | |
4791 | CFLAGS=$ac_save_CFLAGS | |
4792 | elif test $ac_cv_prog_cc_g = yes; then | |
4793 | if test "$GCC" = yes; then | |
4794 | CFLAGS="-g -O2" | |
4795 | else | |
4796 | CFLAGS="-g" | |
4797 | fi | |
4798 | else | |
4799 | if test "$GCC" = yes; then | |
4800 | CFLAGS="-O2" | |
4801 | else | |
4802 | CFLAGS= | |
4803 | fi | |
4804 | fi | |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4806 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4807 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4808 | $as_echo_n "(cached) " >&6 | |
4809 | else | |
4810 | ac_cv_prog_cc_c89=no | |
4811 | ac_save_CC=$CC | |
4812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4813 | /* end confdefs.h. */ | |
4814 | #include <stdarg.h> | |
4815 | #include <stdio.h> | |
4816 | #include <sys/types.h> | |
4817 | #include <sys/stat.h> | |
4818 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4819 | struct buf { int x; }; | |
4820 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4821 | static char *e (p, i) | |
4822 | char **p; | |
4823 | int i; | |
4824 | { | |
4825 | return p[i]; | |
4826 | } | |
4827 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4828 | { | |
4829 | char *s; | |
4830 | va_list v; | |
4831 | va_start (v,p); | |
4832 | s = g (p, va_arg (v,int)); | |
4833 | va_end (v); | |
4834 | return s; | |
4835 | } | |
4836 | ||
4837 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4838 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4839 | These don't provoke an error unfortunately, instead are silently treated | |
4840 | as 'x'. The following induces an error, until -std is added to get | |
4841 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4842 | array size at least. It's necessary to write '\x00'==0 to get something | |
4843 | that's true only with -std. */ | |
4844 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4845 | ||
4846 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4847 | inside strings and character constants. */ | |
4848 | #define FOO(x) 'x' | |
4849 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4850 | ||
4851 | int test (int i, double x); | |
4852 | struct s1 {int (*f) (int a);}; | |
4853 | struct s2 {int (*f) (double a);}; | |
4854 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4855 | int argc; | |
4856 | char **argv; | |
4857 | int | |
4858 | main () | |
4859 | { | |
4860 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4861 | ; | |
4862 | return 0; | |
4863 | } | |
4864 | _ACEOF | |
4865 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4866 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4867 | do | |
4868 | CC="$ac_save_CC $ac_arg" | |
4869 | if ac_fn_c_try_compile "$LINENO"; then : | |
4870 | ac_cv_prog_cc_c89=$ac_arg | |
4871 | fi | |
4872 | rm -f core conftest.err conftest.$ac_objext | |
4873 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4874 | done | |
4875 | rm -f conftest.$ac_ext | |
4876 | CC=$ac_save_CC | |
4877 | ||
4878 | fi | |
4879 | # AC_CACHE_VAL | |
4880 | case "x$ac_cv_prog_cc_c89" in | |
4881 | x) | |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4883 | $as_echo "none needed" >&6; } ;; | |
4884 | xno) | |
4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4886 | $as_echo "unsupported" >&6; } ;; | |
4887 | *) | |
4888 | CC="$CC $ac_cv_prog_cc_c89" | |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4890 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4891 | esac | |
4892 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4893 | ||
4894 | fi | |
4895 | ||
4896 | ac_ext=c | |
4897 | ac_cpp='$CPP $CPPFLAGS' | |
4898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4901 | ||
4902 | depcc="$CC" am_compiler_list= | |
4903 | ||
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4905 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4906 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4907 | $as_echo_n "(cached) " >&6 | |
4908 | else | |
4909 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4910 | # We make a subdir and do the tests there. Otherwise we can end up | |
4911 | # making bogus files that we don't know about and never remove. For | |
4912 | # instance it was reported that on HP-UX the gcc test will end up | |
4913 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4914 | # in D'. | |
4915 | rm -rf conftest.dir | |
4916 | mkdir conftest.dir | |
4917 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4918 | # using a relative directory. | |
4919 | cp "$am_depcomp" conftest.dir | |
4920 | cd conftest.dir | |
4921 | # We will build objects and dependencies in a subdirectory because | |
4922 | # it helps to detect inapplicable dependency modes. For instance | |
4923 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4924 | # side effect of compilation, but ICC will put the dependencies in | |
4925 | # the current directory while Tru64 will put them in the object | |
4926 | # directory. | |
4927 | mkdir sub | |
4928 | ||
4929 | am_cv_CC_dependencies_compiler_type=none | |
4930 | if test "$am_compiler_list" = ""; then | |
4931 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4932 | fi | |
4933 | am__universal=false | |
4934 | case " $depcc " in #( | |
4935 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4936 | esac | |
4937 | ||
4938 | for depmode in $am_compiler_list; do | |
4939 | # Setup a source with many dependencies, because some compilers | |
4940 | # like to wrap large dependency lists on column 80 (with \), and | |
4941 | # we should not choose a depcomp mode which is confused by this. | |
4942 | # | |
4943 | # We need to recreate these files for each test, as the compiler may | |
4944 | # overwrite some of them when testing with obscure command lines. | |
4945 | # This happens at least with the AIX C compiler. | |
4946 | : > sub/conftest.c | |
4947 | for i in 1 2 3 4 5 6; do | |
4948 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4949 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4950 | # Solaris 8's {/usr,}/bin/sh. | |
4951 | touch sub/conftst$i.h | |
4952 | done | |
4953 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4954 | ||
4955 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4956 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4957 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4958 | # versions had trouble with output in subdirs | |
4959 | am__obj=sub/conftest.${OBJEXT-o} | |
4960 | am__minus_obj="-o $am__obj" | |
4961 | case $depmode in | |
4962 | gcc) | |
4963 | # This depmode causes a compiler race in universal mode. | |
4964 | test "$am__universal" = false || continue | |
4965 | ;; | |
4966 | nosideeffect) | |
4967 | # after this tag, mechanisms are not by side-effect, so they'll | |
4968 | # only be used when explicitly requested | |
4969 | if test "x$enable_dependency_tracking" = xyes; then | |
4970 | continue | |
4971 | else | |
4972 | break | |
4973 | fi | |
4974 | ;; | |
4975 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4976 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4977 | # not run yet. These depmodes are late enough in the game, and | |
4978 | # so weak that their functioning should not be impacted. | |
4979 | am__obj=conftest.${OBJEXT-o} | |
4980 | am__minus_obj= | |
4981 | ;; | |
4982 | none) break ;; | |
4983 | esac | |
4984 | if depmode=$depmode \ | |
4985 | source=sub/conftest.c object=$am__obj \ | |
4986 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4987 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4988 | >/dev/null 2>conftest.err && | |
4989 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4990 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4991 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4992 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4993 | # icc doesn't choke on unknown options, it will just issue warnings | |
4994 | # or remarks (even with -Werror). So we grep stderr for any message | |
4995 | # that says an option was ignored or not supported. | |
4996 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4997 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4998 | # The diagnosis changed in icc 8.0: | |
4999 | # icc: Command line remark: option '-MP' not supported | |
5000 | if (grep 'ignoring option' conftest.err || | |
5001 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5002 | am_cv_CC_dependencies_compiler_type=$depmode | |
5003 | break | |
5004 | fi | |
5005 | fi | |
5006 | done | |
5007 | ||
5008 | cd .. | |
5009 | rm -rf conftest.dir | |
5010 | else | |
5011 | am_cv_CC_dependencies_compiler_type=none | |
5012 | fi | |
5013 | ||
5014 | fi | |
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5016 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5017 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5018 | ||
5019 | if | |
5020 | test "x$enable_dependency_tracking" != xno \ | |
5021 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5022 | am__fastdepCC_TRUE= | |
5023 | am__fastdepCC_FALSE='#' | |
5024 | else | |
5025 | am__fastdepCC_TRUE='#' | |
5026 | am__fastdepCC_FALSE= | |
5027 | fi | |
5028 | ||
5029 | ||
5030 | ||
5031 | ac_ext=c | |
5032 | ac_cpp='$CPP $CPPFLAGS' | |
5033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5037 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5038 | # On Suns, sometimes $CPP names a directory. | |
5039 | if test -n "$CPP" && test -d "$CPP"; then | |
5040 | CPP= | |
5041 | fi | |
5042 | if test -z "$CPP"; then | |
5043 | if ${ac_cv_prog_CPP+:} false; then : | |
5044 | $as_echo_n "(cached) " >&6 | |
5045 | else | |
5046 | # Double quotes because CPP needs to be expanded | |
5047 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5048 | do | |
5049 | ac_preproc_ok=false | |
5050 | for ac_c_preproc_warn_flag in '' yes | |
5051 | do | |
5052 | # Use a header file that comes with gcc, so configuring glibc | |
5053 | # with a fresh cross-compiler works. | |
5054 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5055 | # <limits.h> exists even on freestanding compilers. | |
5056 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5057 | # not just through cpp. "Syntax error" is here to catch this case. | |
5058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5059 | /* end confdefs.h. */ | |
5060 | #ifdef __STDC__ | |
5061 | # include <limits.h> | |
5062 | #else | |
5063 | # include <assert.h> | |
5064 | #endif | |
5065 | Syntax error | |
5066 | _ACEOF | |
5067 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5068 | ||
5069 | else | |
5070 | # Broken: fails on valid input. | |
5071 | continue | |
5072 | fi | |
5073 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5074 | ||
5075 | # OK, works on sane cases. Now check whether nonexistent headers | |
5076 | # can be detected and how. | |
5077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5078 | /* end confdefs.h. */ | |
5079 | #include <ac_nonexistent.h> | |
5080 | _ACEOF | |
5081 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5082 | # Broken: success on invalid input. | |
5083 | continue | |
5084 | else | |
5085 | # Passes both tests. | |
5086 | ac_preproc_ok=: | |
5087 | break | |
5088 | fi | |
5089 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5090 | ||
5091 | done | |
5092 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5093 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5094 | if $ac_preproc_ok; then : | |
5095 | break | |
5096 | fi | |
5097 | ||
5098 | done | |
5099 | ac_cv_prog_CPP=$CPP | |
5100 | ||
5101 | fi | |
5102 | CPP=$ac_cv_prog_CPP | |
5103 | else | |
5104 | ac_cv_prog_CPP=$CPP | |
5105 | fi | |
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5107 | $as_echo "$CPP" >&6; } | |
5108 | ac_preproc_ok=false | |
5109 | for ac_c_preproc_warn_flag in '' yes | |
5110 | do | |
5111 | # Use a header file that comes with gcc, so configuring glibc | |
5112 | # with a fresh cross-compiler works. | |
5113 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5114 | # <limits.h> exists even on freestanding compilers. | |
5115 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5116 | # not just through cpp. "Syntax error" is here to catch this case. | |
5117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5118 | /* end confdefs.h. */ | |
5119 | #ifdef __STDC__ | |
5120 | # include <limits.h> | |
5121 | #else | |
5122 | # include <assert.h> | |
5123 | #endif | |
5124 | Syntax error | |
5125 | _ACEOF | |
5126 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5127 | ||
5128 | else | |
5129 | # Broken: fails on valid input. | |
5130 | continue | |
5131 | fi | |
5132 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5133 | ||
5134 | # OK, works on sane cases. Now check whether nonexistent headers | |
5135 | # can be detected and how. | |
5136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5137 | /* end confdefs.h. */ | |
5138 | #include <ac_nonexistent.h> | |
5139 | _ACEOF | |
5140 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5141 | # Broken: success on invalid input. | |
5142 | continue | |
5143 | else | |
5144 | # Passes both tests. | |
5145 | ac_preproc_ok=: | |
5146 | break | |
5147 | fi | |
5148 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5149 | ||
5150 | done | |
5151 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5152 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5153 | if $ac_preproc_ok; then : | |
5154 | ||
5155 | else | |
5156 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5157 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5158 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
5159 | See \`config.log' for more details" "$LINENO" 5; } | |
5160 | fi | |
5161 | ||
5162 | ac_ext=c | |
5163 | ac_cpp='$CPP $CPPFLAGS' | |
5164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5167 | ||
5168 | ||
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5170 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5171 | if ${ac_cv_path_GREP+:} false; then : | |
5172 | $as_echo_n "(cached) " >&6 | |
5173 | else | |
5174 | if test -z "$GREP"; then | |
5175 | ac_path_GREP_found=false | |
5176 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5178 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5179 | do | |
5180 | IFS=$as_save_IFS | |
5181 | test -z "$as_dir" && as_dir=. | |
5182 | for ac_prog in grep ggrep; do | |
5183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5184 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5185 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5186 | # Check for GNU ac_path_GREP and select it if it is found. | |
5187 | # Check for GNU $ac_path_GREP | |
5188 | case `"$ac_path_GREP" --version 2>&1` in | |
5189 | *GNU*) | |
5190 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5191 | *) | |
5192 | ac_count=0 | |
5193 | $as_echo_n 0123456789 >"conftest.in" | |
5194 | while : | |
5195 | do | |
5196 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5197 | mv "conftest.tmp" "conftest.in" | |
5198 | cp "conftest.in" "conftest.nl" | |
5199 | $as_echo 'GREP' >> "conftest.nl" | |
5200 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5201 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5202 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5203 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5204 | # Best one so far, save it but keep looking for a better one | |
5205 | ac_cv_path_GREP="$ac_path_GREP" | |
5206 | ac_path_GREP_max=$ac_count | |
5207 | fi | |
5208 | # 10*(2^10) chars as input seems more than enough | |
5209 | test $ac_count -gt 10 && break | |
5210 | done | |
5211 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5212 | esac | |
5213 | ||
5214 | $ac_path_GREP_found && break 3 | |
5215 | done | |
5216 | done | |
5217 | done | |
5218 | IFS=$as_save_IFS | |
5219 | if test -z "$ac_cv_path_GREP"; then | |
5220 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5221 | fi | |
5222 | else | |
5223 | ac_cv_path_GREP=$GREP | |
5224 | fi | |
5225 | ||
5226 | fi | |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5228 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5229 | GREP="$ac_cv_path_GREP" | |
5230 | ||
5231 | ||
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5233 | $as_echo_n "checking for egrep... " >&6; } | |
5234 | if ${ac_cv_path_EGREP+:} false; then : | |
5235 | $as_echo_n "(cached) " >&6 | |
5236 | else | |
5237 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5238 | then ac_cv_path_EGREP="$GREP -E" | |
5239 | else | |
5240 | if test -z "$EGREP"; then | |
5241 | ac_path_EGREP_found=false | |
5242 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5244 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5245 | do | |
5246 | IFS=$as_save_IFS | |
5247 | test -z "$as_dir" && as_dir=. | |
5248 | for ac_prog in egrep; do | |
5249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5250 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5251 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5252 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5253 | # Check for GNU $ac_path_EGREP | |
5254 | case `"$ac_path_EGREP" --version 2>&1` in | |
5255 | *GNU*) | |
5256 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5257 | *) | |
5258 | ac_count=0 | |
5259 | $as_echo_n 0123456789 >"conftest.in" | |
5260 | while : | |
5261 | do | |
5262 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5263 | mv "conftest.tmp" "conftest.in" | |
5264 | cp "conftest.in" "conftest.nl" | |
5265 | $as_echo 'EGREP' >> "conftest.nl" | |
5266 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5267 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5268 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5269 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5270 | # Best one so far, save it but keep looking for a better one | |
5271 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5272 | ac_path_EGREP_max=$ac_count | |
5273 | fi | |
5274 | # 10*(2^10) chars as input seems more than enough | |
5275 | test $ac_count -gt 10 && break | |
5276 | done | |
5277 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5278 | esac | |
5279 | ||
5280 | $ac_path_EGREP_found && break 3 | |
5281 | done | |
5282 | done | |
5283 | done | |
5284 | IFS=$as_save_IFS | |
5285 | if test -z "$ac_cv_path_EGREP"; then | |
5286 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5287 | fi | |
5288 | else | |
5289 | ac_cv_path_EGREP=$EGREP | |
5290 | fi | |
5291 | ||
5292 | fi | |
5293 | fi | |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5295 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5296 | EGREP="$ac_cv_path_EGREP" | |
5297 | ||
5298 | ||
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5300 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5301 | if ${ac_cv_header_stdc+:} false; then : | |
5302 | $as_echo_n "(cached) " >&6 | |
5303 | else | |
5304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5305 | /* end confdefs.h. */ | |
5306 | #include <stdlib.h> | |
5307 | #include <stdarg.h> | |
5308 | #include <string.h> | |
5309 | #include <float.h> | |
5310 | ||
5311 | int | |
5312 | main () | |
5313 | { | |
5314 | ||
5315 | ; | |
5316 | return 0; | |
5317 | } | |
5318 | _ACEOF | |
5319 | if ac_fn_c_try_compile "$LINENO"; then : | |
5320 | ac_cv_header_stdc=yes | |
5321 | else | |
5322 | ac_cv_header_stdc=no | |
5323 | fi | |
5324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5325 | ||
5326 | if test $ac_cv_header_stdc = yes; then | |
5327 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5329 | /* end confdefs.h. */ | |
5330 | #include <string.h> | |
5331 | ||
5332 | _ACEOF | |
5333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5334 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5335 | ||
5336 | else | |
5337 | ac_cv_header_stdc=no | |
5338 | fi | |
5339 | rm -f conftest* | |
5340 | ||
5341 | fi | |
5342 | ||
5343 | if test $ac_cv_header_stdc = yes; then | |
5344 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5346 | /* end confdefs.h. */ | |
5347 | #include <stdlib.h> | |
5348 | ||
5349 | _ACEOF | |
5350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5351 | $EGREP "free" >/dev/null 2>&1; then : | |
5352 | ||
5353 | else | |
5354 | ac_cv_header_stdc=no | |
5355 | fi | |
5356 | rm -f conftest* | |
5357 | ||
5358 | fi | |
5359 | ||
5360 | if test $ac_cv_header_stdc = yes; then | |
5361 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5362 | if test "$cross_compiling" = yes; then : | |
5363 | : | |
5364 | else | |
5365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5366 | /* end confdefs.h. */ | |
5367 | #include <ctype.h> | |
5368 | #include <stdlib.h> | |
5369 | #if ((' ' & 0x0FF) == 0x020) | |
5370 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5371 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5372 | #else | |
5373 | # define ISLOWER(c) \ | |
5374 | (('a' <= (c) && (c) <= 'i') \ | |
5375 | || ('j' <= (c) && (c) <= 'r') \ | |
5376 | || ('s' <= (c) && (c) <= 'z')) | |
5377 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5378 | #endif | |
5379 | ||
5380 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5381 | int | |
5382 | main () | |
5383 | { | |
5384 | int i; | |
5385 | for (i = 0; i < 256; i++) | |
5386 | if (XOR (islower (i), ISLOWER (i)) | |
5387 | || toupper (i) != TOUPPER (i)) | |
5388 | return 2; | |
5389 | return 0; | |
5390 | } | |
5391 | _ACEOF | |
5392 | if ac_fn_c_try_run "$LINENO"; then : | |
5393 | ||
5394 | else | |
5395 | ac_cv_header_stdc=no | |
5396 | fi | |
5397 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5398 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5399 | fi | |
5400 | ||
5401 | fi | |
5402 | fi | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5404 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5405 | if test $ac_cv_header_stdc = yes; then | |
5406 | ||
5407 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5408 | ||
5409 | fi | |
5410 | ||
5411 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5412 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5413 | inttypes.h stdint.h unistd.h | |
5414 | do : | |
5415 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5416 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5417 | " | |
5418 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5419 | cat >>confdefs.h <<_ACEOF | |
5420 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5421 | _ACEOF | |
5422 | ||
5423 | fi | |
5424 | ||
5425 | done | |
5426 | ||
5427 | ||
5428 | ||
5429 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
5430 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
5431 | MINIX=yes | |
5432 | else | |
5433 | MINIX= | |
5434 | fi | |
5435 | ||
5436 | ||
5437 | if test "$MINIX" = yes; then | |
5438 | ||
5439 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5440 | ||
5441 | ||
5442 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5443 | ||
5444 | ||
5445 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5446 | ||
5447 | fi | |
5448 | ||
5449 | ||
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5451 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5452 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
5453 | $as_echo_n "(cached) " >&6 | |
5454 | else | |
5455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5456 | /* end confdefs.h. */ | |
5457 | ||
5458 | # define __EXTENSIONS__ 1 | |
5459 | $ac_includes_default | |
5460 | int | |
5461 | main () | |
5462 | { | |
5463 | ||
5464 | ; | |
5465 | return 0; | |
5466 | } | |
5467 | _ACEOF | |
5468 | if ac_fn_c_try_compile "$LINENO"; then : | |
5469 | ac_cv_safe_to_define___extensions__=yes | |
5470 | else | |
5471 | ac_cv_safe_to_define___extensions__=no | |
5472 | fi | |
5473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5474 | fi | |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5476 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5477 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5478 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5479 | ||
5480 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5481 | ||
5482 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5483 | ||
5484 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5485 | ||
5486 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5487 | ||
5488 | ||
5489 | ||
5490 | # Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS | |
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | ||
5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | |
5503 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
5504 | if ${ac_cv_prog_cc_c99+:} false; then : | |
5505 | $as_echo_n "(cached) " >&6 | |
5506 | else | |
5507 | ac_cv_prog_cc_c99=no | |
5508 | ac_save_CC=$CC | |
5509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5510 | /* end confdefs.h. */ | |
5511 | #include <stdarg.h> | |
5512 | #include <stdbool.h> | |
5513 | #include <stdlib.h> | |
5514 | #include <wchar.h> | |
5515 | #include <stdio.h> | |
5516 | ||
5517 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
5518 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
5519 | #define showlist(...) puts (#__VA_ARGS__) | |
5520 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
5521 | static void | |
5522 | test_varargs_macros (void) | |
5523 | { | |
5524 | int x = 1234; | |
5525 | int y = 5678; | |
5526 | debug ("Flag"); | |
5527 | debug ("X = %d\n", x); | |
5528 | showlist (The first, second, and third items.); | |
5529 | report (x>y, "x is %d but y is %d", x, y); | |
5530 | } | |
5531 | ||
5532 | // Check long long types. | |
5533 | #define BIG64 18446744073709551615ull | |
5534 | #define BIG32 4294967295ul | |
5535 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
5536 | #if !BIG_OK | |
5537 | your preprocessor is broken; | |
5538 | #endif | |
5539 | #if BIG_OK | |
5540 | #else | |
5541 | your preprocessor is broken; | |
5542 | #endif | |
5543 | static long long int bignum = -9223372036854775807LL; | |
5544 | static unsigned long long int ubignum = BIG64; | |
5545 | ||
5546 | struct incomplete_array | |
5547 | { | |
5548 | int datasize; | |
5549 | double data[]; | |
5550 | }; | |
5551 | ||
5552 | struct named_init { | |
5553 | int number; | |
5554 | const wchar_t *name; | |
5555 | double average; | |
5556 | }; | |
5557 | ||
5558 | typedef const char *ccp; | |
5559 | ||
5560 | static inline int | |
5561 | test_restrict (ccp restrict text) | |
5562 | { | |
5563 | // See if C++-style comments work. | |
5564 | // Iterate through items via the restricted pointer. | |
5565 | // Also check for declarations in for loops. | |
5566 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
5567 | continue; | |
5568 | return 0; | |
5569 | } | |
5570 | ||
5571 | // Check varargs and va_copy. | |
5572 | static void | |
5573 | test_varargs (const char *format, ...) | |
5574 | { | |
5575 | va_list args; | |
5576 | va_start (args, format); | |
5577 | va_list args_copy; | |
5578 | va_copy (args_copy, args); | |
5579 | ||
5580 | const char *str; | |
5581 | int number; | |
5582 | float fnumber; | |
5583 | ||
5584 | while (*format) | |
5585 | { | |
5586 | switch (*format++) | |
5587 | { | |
5588 | case 's': // string | |
5589 | str = va_arg (args_copy, const char *); | |
5590 | break; | |
5591 | case 'd': // int | |
5592 | number = va_arg (args_copy, int); | |
5593 | break; | |
5594 | case 'f': // float | |
5595 | fnumber = va_arg (args_copy, double); | |
5596 | break; | |
5597 | default: | |
5598 | break; | |
5599 | } | |
5600 | } | |
5601 | va_end (args_copy); | |
5602 | va_end (args); | |
5603 | } | |
5604 | ||
5605 | int | |
5606 | main () | |
5607 | { | |
5608 | ||
5609 | // Check bool. | |
5610 | _Bool success = false; | |
5611 | ||
5612 | // Check restrict. | |
5613 | if (test_restrict ("String literal") == 0) | |
5614 | success = true; | |
5615 | char *restrict newvar = "Another string"; | |
5616 | ||
5617 | // Check varargs. | |
5618 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5619 | test_varargs_macros (); | |
5620 | ||
5621 | // Check flexible array members. | |
5622 | struct incomplete_array *ia = | |
5623 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5624 | ia->datasize = 10; | |
5625 | for (int i = 0; i < ia->datasize; ++i) | |
5626 | ia->data[i] = i * 1.234; | |
5627 | ||
5628 | // Check named initializers. | |
5629 | struct named_init ni = { | |
5630 | .number = 34, | |
5631 | .name = L"Test wide string", | |
5632 | .average = 543.34343, | |
5633 | }; | |
5634 | ||
5635 | ni.number = 58; | |
5636 | ||
5637 | int dynamic_array[ni.number]; | |
5638 | dynamic_array[ni.number - 1] = 543; | |
5639 | ||
5640 | // work around unused variable warnings | |
5641 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5642 | || dynamic_array[ni.number - 1] != 543); | |
5643 | ||
5644 | ; | |
5645 | return 0; | |
5646 | } | |
5647 | _ACEOF | |
5648 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | |
5649 | do | |
5650 | CC="$ac_save_CC $ac_arg" | |
5651 | if ac_fn_c_try_compile "$LINENO"; then : | |
5652 | ac_cv_prog_cc_c99=$ac_arg | |
5653 | fi | |
5654 | rm -f core conftest.err conftest.$ac_objext | |
5655 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5656 | done | |
5657 | rm -f conftest.$ac_ext | |
5658 | CC=$ac_save_CC | |
5659 | ||
5660 | fi | |
5661 | # AC_CACHE_VAL | |
5662 | case "x$ac_cv_prog_cc_c99" in | |
5663 | x) | |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5665 | $as_echo "none needed" >&6; } ;; | |
5666 | xno) | |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5668 | $as_echo "unsupported" >&6; } ;; | |
5669 | *) | |
5670 | CC="$CC $ac_cv_prog_cc_c99" | |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5672 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5673 | esac | |
5674 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5675 | ||
5676 | fi | |
5677 | ||
5678 | ||
5679 | ||
5680 | ||
5681 | ||
5682 | ||
5683 | ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" | |
5684 | if test "x$ac_cv_have_decl___clang__" = xyes; then : | |
5685 | CLANGCC="yes" | |
5686 | else | |
5687 | CLANGCC="no" | |
5688 | fi | |
5689 | ||
5690 | ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" | |
5691 | if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : | |
5692 | INTELCC="yes" | |
5693 | else | |
5694 | INTELCC="no" | |
5695 | fi | |
5696 | ||
5697 | ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" | |
5698 | if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : | |
5699 | SUNCC="yes" | |
5700 | else | |
5701 | SUNCC="no" | |
5702 | fi | |
5703 | ||
5704 | ||
5705 | ||
5706 | ||
5707 | ||
5708 | ||
5709 | ||
5710 | ||
5711 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5712 | if test -n "$ac_tool_prefix"; then | |
5713 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5714 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5716 | $as_echo_n "checking for $ac_word... " >&6; } | |
5717 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
5718 | $as_echo_n "(cached) " >&6 | |
5719 | else | |
5720 | case $PKG_CONFIG in | |
5721 | [\\/]* | ?:[\\/]*) | |
5722 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5723 | ;; | |
5724 | *) | |
5725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5726 | for as_dir in $PATH | |
5727 | do | |
5728 | IFS=$as_save_IFS | |
5729 | test -z "$as_dir" && as_dir=. | |
5730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5732 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5734 | break 2 | |
5735 | fi | |
5736 | done | |
5737 | done | |
5738 | IFS=$as_save_IFS | |
5739 | ||
5740 | ;; | |
5741 | esac | |
5742 | fi | |
5743 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5744 | if test -n "$PKG_CONFIG"; then | |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5746 | $as_echo "$PKG_CONFIG" >&6; } | |
5747 | else | |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5749 | $as_echo "no" >&6; } | |
5750 | fi | |
5751 | ||
5752 | ||
5753 | fi | |
5754 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5755 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5756 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5757 | set dummy pkg-config; ac_word=$2 | |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5759 | $as_echo_n "checking for $ac_word... " >&6; } | |
5760 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
5761 | $as_echo_n "(cached) " >&6 | |
5762 | else | |
5763 | case $ac_pt_PKG_CONFIG in | |
5764 | [\\/]* | ?:[\\/]*) | |
5765 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5766 | ;; | |
5767 | *) | |
5768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5769 | for as_dir in $PATH | |
5770 | do | |
5771 | IFS=$as_save_IFS | |
5772 | test -z "$as_dir" && as_dir=. | |
5773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5775 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5777 | break 2 | |
5778 | fi | |
5779 | done | |
5780 | done | |
5781 | IFS=$as_save_IFS | |
5782 | ||
5783 | ;; | |
5784 | esac | |
5785 | fi | |
5786 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5787 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5789 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5790 | else | |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5792 | $as_echo "no" >&6; } | |
5793 | fi | |
5794 | ||
5795 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
5796 | PKG_CONFIG="" | |
5797 | else | |
5798 | case $cross_compiling:$ac_tool_warned in | |
5799 | yes:) | |
5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5801 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5802 | ac_tool_warned=yes ;; | |
5803 | esac | |
5804 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
5805 | fi | |
5806 | else | |
5807 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5808 | fi | |
5809 | ||
5810 | fi | |
5811 | if test -n "$PKG_CONFIG"; then | |
5812 | _pkg_min_version=0.9.0 | |
5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
5814 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
5815 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5817 | $as_echo "yes" >&6; } | |
5818 | else | |
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5820 | $as_echo "no" >&6; } | |
5821 | PKG_CONFIG="" | |
5822 | fi | |
5823 | fi | |
5824 | # Make sure we can run config.sub. | |
5825 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5826 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
5827 | ||
5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
5829 | $as_echo_n "checking build system type... " >&6; } | |
5830 | if ${ac_cv_build+:} false; then : | |
5831 | $as_echo_n "(cached) " >&6 | |
5832 | else | |
5833 | ac_build_alias=$build_alias | |
5834 | test "x$ac_build_alias" = x && | |
5835 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5836 | test "x$ac_build_alias" = x && | |
5837 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5838 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5839 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
5840 | ||
5841 | fi | |
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5843 | $as_echo "$ac_cv_build" >&6; } | |
5844 | case $ac_cv_build in | |
5845 | *-*-*) ;; | |
5846 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5847 | esac | |
5848 | build=$ac_cv_build | |
5849 | ac_save_IFS=$IFS; IFS='-' | |
5850 | set x $ac_cv_build | |
5851 | shift | |
5852 | build_cpu=$1 | |
5853 | build_vendor=$2 | |
5854 | shift; shift | |
5855 | # Remember, the first character of IFS is used to create $*, | |
5856 | # except with old shells: | |
5857 | build_os=$* | |
5858 | IFS=$ac_save_IFS | |
5859 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5860 | ||
5861 | ||
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
5863 | $as_echo_n "checking host system type... " >&6; } | |
5864 | if ${ac_cv_host+:} false; then : | |
5865 | $as_echo_n "(cached) " >&6 | |
5866 | else | |
5867 | if test "x$host_alias" = x; then | |
5868 | ac_cv_host=$ac_cv_build | |
5869 | else | |
5870 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5871 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5872 | fi | |
5873 | ||
5874 | fi | |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5876 | $as_echo "$ac_cv_host" >&6; } | |
5877 | case $ac_cv_host in | |
5878 | *-*-*) ;; | |
5879 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5880 | esac | |
5881 | host=$ac_cv_host | |
5882 | ac_save_IFS=$IFS; IFS='-' | |
5883 | set x $ac_cv_host | |
5884 | shift | |
5885 | host_cpu=$1 | |
5886 | host_vendor=$2 | |
5887 | shift; shift | |
5888 | # Remember, the first character of IFS is used to create $*, | |
5889 | # except with old shells: | |
5890 | host_os=$* | |
5891 | IFS=$ac_save_IFS | |
5892 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5893 | ||
5894 | ||
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5896 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5897 | if ${ac_cv_path_SED+:} false; then : | |
5898 | $as_echo_n "(cached) " >&6 | |
5899 | else | |
5900 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5901 | for ac_i in 1 2 3 4 5 6 7; do | |
5902 | ac_script="$ac_script$as_nl$ac_script" | |
5903 | done | |
5904 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5905 | { ac_script=; unset ac_script;} | |
5906 | if test -z "$SED"; then | |
5907 | ac_path_SED_found=false | |
5908 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5910 | for as_dir in $PATH | |
5911 | do | |
5912 | IFS=$as_save_IFS | |
5913 | test -z "$as_dir" && as_dir=. | |
5914 | for ac_prog in sed gsed; do | |
5915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5916 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5917 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5918 | # Check for GNU ac_path_SED and select it if it is found. | |
5919 | # Check for GNU $ac_path_SED | |
5920 | case `"$ac_path_SED" --version 2>&1` in | |
5921 | *GNU*) | |
5922 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5923 | *) | |
5924 | ac_count=0 | |
5925 | $as_echo_n 0123456789 >"conftest.in" | |
5926 | while : | |
5927 | do | |
5928 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5929 | mv "conftest.tmp" "conftest.in" | |
5930 | cp "conftest.in" "conftest.nl" | |
5931 | $as_echo '' >> "conftest.nl" | |
5932 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5933 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5934 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5935 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5936 | # Best one so far, save it but keep looking for a better one | |
5937 | ac_cv_path_SED="$ac_path_SED" | |
5938 | ac_path_SED_max=$ac_count | |
5939 | fi | |
5940 | # 10*(2^10) chars as input seems more than enough | |
5941 | test $ac_count -gt 10 && break | |
5942 | done | |
5943 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5944 | esac | |
5945 | ||
5946 | $ac_path_SED_found && break 3 | |
5947 | done | |
5948 | done | |
5949 | done | |
5950 | IFS=$as_save_IFS | |
5951 | if test -z "$ac_cv_path_SED"; then | |
5952 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5953 | fi | |
5954 | else | |
5955 | ac_cv_path_SED=$SED | |
5956 | fi | |
5957 | ||
5958 | fi | |
5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5960 | $as_echo "$ac_cv_path_SED" >&6; } | |
5961 | SED="$ac_cv_path_SED" | |
5962 | rm -f conftest.sed | |
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | ||
5969 | # Check whether --enable-selective-werror was given. | |
5970 | if test "${enable_selective_werror+set}" = set; then : | |
5971 | enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval | |
5972 | else | |
5973 | SELECTIVE_WERROR=yes | |
5974 | fi | |
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | # -v is too short to test reliably with XORG_TESTSET_CFLAG | |
5981 | if test "x$SUNCC" = "xyes"; then | |
5982 | BASE_CFLAGS="-v" | |
5983 | else | |
5984 | BASE_CFLAGS="" | |
5985 | fi | |
5986 | ||
5987 | # This chunk of warnings were those that existed in the legacy CWARNFLAGS | |
5988 | ||
5989 | ||
5990 | ||
5991 | ||
5992 | ||
5993 | ||
5994 | ||
5995 | ||
5996 | ||
5997 | ||
5998 | ||
5999 | ||
6000 | ||
6001 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6002 | ||
6003 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6004 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
6006 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
6007 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
6008 | $as_echo_n "(cached) " >&6 | |
6009 | else | |
6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6011 | /* end confdefs.h. */ | |
6012 | int i; | |
6013 | _ACEOF | |
6014 | if ac_fn_c_try_compile "$LINENO"; then : | |
6015 | xorg_cv_cc_flag_unknown_warning_option=yes | |
6016 | else | |
6017 | xorg_cv_cc_flag_unknown_warning_option=no | |
6018 | fi | |
6019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6020 | fi | |
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
6022 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
6023 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
6024 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6025 | fi | |
6026 | ||
6027 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
6028 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6029 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6030 | fi | |
6031 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
6033 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
6034 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
6035 | $as_echo_n "(cached) " >&6 | |
6036 | else | |
6037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6038 | /* end confdefs.h. */ | |
6039 | int i; | |
6040 | _ACEOF | |
6041 | if ac_fn_c_try_compile "$LINENO"; then : | |
6042 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
6043 | else | |
6044 | xorg_cv_cc_flag_unused_command_line_argument=no | |
6045 | fi | |
6046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6047 | fi | |
6048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
6049 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
6050 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
6051 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6052 | fi | |
6053 | ||
6054 | found="no" | |
6055 | ||
6056 | if test $found = "no" ; then | |
6057 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6058 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6059 | fi | |
6060 | ||
6061 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6062 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6063 | fi | |
6064 | ||
6065 | CFLAGS="$CFLAGS -Wall" | |
6066 | ||
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 | |
6068 | $as_echo_n "checking if $CC supports -Wall... " >&6; } | |
6069 | cacheid=xorg_cv_cc_flag__Wall | |
6070 | if eval \${$cacheid+:} false; then : | |
6071 | $as_echo_n "(cached) " >&6 | |
6072 | else | |
6073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6074 | /* end confdefs.h. */ | |
6075 | int i; | |
6076 | int | |
6077 | main () | |
6078 | { | |
6079 | ||
6080 | ; | |
6081 | return 0; | |
6082 | } | |
6083 | _ACEOF | |
6084 | if ac_fn_c_try_link "$LINENO"; then : | |
6085 | eval $cacheid=yes | |
6086 | else | |
6087 | eval $cacheid=no | |
6088 | fi | |
6089 | rm -f core conftest.err conftest.$ac_objext \ | |
6090 | conftest$ac_exeext conftest.$ac_ext | |
6091 | fi | |
6092 | ||
6093 | ||
6094 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6095 | ||
6096 | eval supported=\$$cacheid | |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6098 | $as_echo "$supported" >&6; } | |
6099 | if test "$supported" = "yes" ; then | |
6100 | BASE_CFLAGS="$BASE_CFLAGS -Wall" | |
6101 | found="yes" | |
6102 | fi | |
6103 | fi | |
6104 | ||
6105 | ||
6106 | ||
6107 | ||
6108 | ||
6109 | ||
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | ||
6118 | ||
6119 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6120 | ||
6121 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6122 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
6124 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
6125 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
6126 | $as_echo_n "(cached) " >&6 | |
6127 | else | |
6128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6129 | /* end confdefs.h. */ | |
6130 | int i; | |
6131 | _ACEOF | |
6132 | if ac_fn_c_try_compile "$LINENO"; then : | |
6133 | xorg_cv_cc_flag_unknown_warning_option=yes | |
6134 | else | |
6135 | xorg_cv_cc_flag_unknown_warning_option=no | |
6136 | fi | |
6137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6138 | fi | |
6139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
6140 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
6141 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
6142 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6143 | fi | |
6144 | ||
6145 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
6146 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6147 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6148 | fi | |
6149 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
6151 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
6152 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
6153 | $as_echo_n "(cached) " >&6 | |
6154 | else | |
6155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6156 | /* end confdefs.h. */ | |
6157 | int i; | |
6158 | _ACEOF | |
6159 | if ac_fn_c_try_compile "$LINENO"; then : | |
6160 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
6161 | else | |
6162 | xorg_cv_cc_flag_unused_command_line_argument=no | |
6163 | fi | |
6164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6165 | fi | |
6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
6167 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
6168 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
6169 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6170 | fi | |
6171 | ||
6172 | found="no" | |
6173 | ||
6174 | if test $found = "no" ; then | |
6175 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6176 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6177 | fi | |
6178 | ||
6179 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6180 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6181 | fi | |
6182 | ||
6183 | CFLAGS="$CFLAGS -Wpointer-arith" | |
6184 | ||
6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 | |
6186 | $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } | |
6187 | cacheid=xorg_cv_cc_flag__Wpointer_arith | |
6188 | if eval \${$cacheid+:} false; then : | |
6189 | $as_echo_n "(cached) " >&6 | |
6190 | else | |
6191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6192 | /* end confdefs.h. */ | |
6193 | int i; | |
6194 | int | |
6195 | main () | |
6196 | { | |
6197 | ||
6198 | ; | |
6199 | return 0; | |
6200 | } | |
6201 | _ACEOF | |
6202 | if ac_fn_c_try_link "$LINENO"; then : | |
6203 | eval $cacheid=yes | |
6204 | else | |
6205 | eval $cacheid=no | |
6206 | fi | |
6207 | rm -f core conftest.err conftest.$ac_objext \ | |
6208 | conftest$ac_exeext conftest.$ac_ext | |
6209 | fi | |
6210 | ||
6211 | ||
6212 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6213 | ||
6214 | eval supported=\$$cacheid | |
6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6216 | $as_echo "$supported" >&6; } | |
6217 | if test "$supported" = "yes" ; then | |
6218 | BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" | |
6219 | found="yes" | |
6220 | fi | |
6221 | fi | |
6222 | ||
6223 | ||
6224 | ||
6225 | ||
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | ||
6233 | ||
6234 | ||
6235 | ||
6236 | ||
6237 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6238 | ||
6239 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6240 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
6242 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
6243 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
6244 | $as_echo_n "(cached) " >&6 | |
6245 | else | |
6246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6247 | /* end confdefs.h. */ | |
6248 | int i; | |
6249 | _ACEOF | |
6250 | if ac_fn_c_try_compile "$LINENO"; then : | |
6251 | xorg_cv_cc_flag_unknown_warning_option=yes | |
6252 | else | |
6253 | xorg_cv_cc_flag_unknown_warning_option=no | |
6254 | fi | |
6255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6256 | fi | |
6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
6258 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
6259 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
6260 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6261 | fi | |
6262 | ||
6263 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
6264 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6265 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6266 | fi | |
6267 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
6269 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
6270 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
6271 | $as_echo_n "(cached) " >&6 | |
6272 | else | |
6273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6274 | /* end confdefs.h. */ | |
6275 | int i; | |
6276 | _ACEOF | |
6277 | if ac_fn_c_try_compile "$LINENO"; then : | |
6278 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
6279 | else | |
6280 | xorg_cv_cc_flag_unused_command_line_argument=no | |
6281 | fi | |
6282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6283 | fi | |
6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
6285 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
6286 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
6287 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6288 | fi | |
6289 | ||
6290 | found="no" | |
6291 | ||
6292 | if test $found = "no" ; then | |
6293 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6294 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6295 | fi | |
6296 | ||
6297 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6298 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6299 | fi | |
6300 | ||
6301 | CFLAGS="$CFLAGS -Wmissing-declarations" | |
6302 | ||
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 | |
6304 | $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } | |
6305 | cacheid=xorg_cv_cc_flag__Wmissing_declarations | |
6306 | if eval \${$cacheid+:} false; then : | |
6307 | $as_echo_n "(cached) " >&6 | |
6308 | else | |
6309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6310 | /* end confdefs.h. */ | |
6311 | int i; | |
6312 | int | |
6313 | main () | |
6314 | { | |
6315 | ||
6316 | ; | |
6317 | return 0; | |
6318 | } | |
6319 | _ACEOF | |
6320 | if ac_fn_c_try_link "$LINENO"; then : | |
6321 | eval $cacheid=yes | |
6322 | else | |
6323 | eval $cacheid=no | |
6324 | fi | |
6325 | rm -f core conftest.err conftest.$ac_objext \ | |
6326 | conftest$ac_exeext conftest.$ac_ext | |
6327 | fi | |
6328 | ||
6329 | ||
6330 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6331 | ||
6332 | eval supported=\$$cacheid | |
6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6334 | $as_echo "$supported" >&6; } | |
6335 | if test "$supported" = "yes" ; then | |
6336 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" | |
6337 | found="yes" | |
6338 | fi | |
6339 | fi | |
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | ||
6348 | ||
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6356 | ||
6357 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6358 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
6360 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
6361 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
6362 | $as_echo_n "(cached) " >&6 | |
6363 | else | |
6364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6365 | /* end confdefs.h. */ | |
6366 | int i; | |
6367 | _ACEOF | |
6368 | if ac_fn_c_try_compile "$LINENO"; then : | |
6369 | xorg_cv_cc_flag_unknown_warning_option=yes | |
6370 | else | |
6371 | xorg_cv_cc_flag_unknown_warning_option=no | |
6372 | fi | |
6373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6374 | fi | |
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
6376 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
6377 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
6378 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6379 | fi | |
6380 | ||
6381 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
6382 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6383 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6384 | fi | |
6385 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
6387 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
6388 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
6389 | $as_echo_n "(cached) " >&6 | |
6390 | else | |
6391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6392 | /* end confdefs.h. */ | |
6393 | int i; | |
6394 | _ACEOF | |
6395 | if ac_fn_c_try_compile "$LINENO"; then : | |
6396 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
6397 | else | |
6398 | xorg_cv_cc_flag_unused_command_line_argument=no | |
6399 | fi | |
6400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6401 | fi | |
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
6403 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
6404 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
6405 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6406 | fi | |
6407 | ||
6408 | found="no" | |
6409 | ||
6410 | if test $found = "no" ; then | |
6411 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6412 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6413 | fi | |
6414 | ||
6415 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6416 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6417 | fi | |
6418 | ||
6419 | CFLAGS="$CFLAGS -Wformat=2" | |
6420 | ||
6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 | |
6422 | $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } | |
6423 | cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` | |
6424 | if eval \${$cacheid+:} false; then : | |
6425 | $as_echo_n "(cached) " >&6 | |
6426 | else | |
6427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6428 | /* end confdefs.h. */ | |
6429 | int i; | |
6430 | int | |
6431 | main () | |
6432 | { | |
6433 | ||
6434 | ; | |
6435 | return 0; | |
6436 | } | |
6437 | _ACEOF | |
6438 | if ac_fn_c_try_link "$LINENO"; then : | |
6439 | eval $cacheid=yes | |
6440 | else | |
6441 | eval $cacheid=no | |
6442 | fi | |
6443 | rm -f core conftest.err conftest.$ac_objext \ | |
6444 | conftest$ac_exeext conftest.$ac_ext | |
6445 | fi | |
6446 | ||
6447 | ||
6448 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6449 | ||
6450 | eval supported=\$$cacheid | |
6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6452 | $as_echo "$supported" >&6; } | |
6453 | if test "$supported" = "yes" ; then | |
6454 | BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" | |
6455 | found="yes" | |
6456 | fi | |
6457 | fi | |
6458 | ||
6459 | if test $found = "no" ; then | |
6460 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6461 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6462 | fi | |
6463 | ||
6464 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6465 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6466 | fi | |
6467 | ||
6468 | CFLAGS="$CFLAGS -Wformat" | |
6469 | ||
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 | |
6471 | $as_echo_n "checking if $CC supports -Wformat... " >&6; } | |
6472 | cacheid=xorg_cv_cc_flag__Wformat | |
6473 | if eval \${$cacheid+:} false; then : | |
6474 | $as_echo_n "(cached) " >&6 | |
6475 | else | |
6476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6477 | /* end confdefs.h. */ | |
6478 | int i; | |
6479 | int | |
6480 | main () | |
6481 | { | |
6482 | ||
6483 | ; | |
6484 | return 0; | |
6485 | } | |
6486 | _ACEOF | |
6487 | if ac_fn_c_try_link "$LINENO"; then : | |
6488 | eval $cacheid=yes | |
6489 | else | |
6490 | eval $cacheid=no | |
6491 | fi | |
6492 | rm -f core conftest.err conftest.$ac_objext \ | |
6493 | conftest$ac_exeext conftest.$ac_ext | |
6494 | fi | |
6495 | ||
6496 | ||
6497 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6498 | ||
6499 | eval supported=\$$cacheid | |
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6501 | $as_echo "$supported" >&6; } | |
6502 | if test "$supported" = "yes" ; then | |
6503 | BASE_CFLAGS="$BASE_CFLAGS -Wformat" | |
6504 | found="yes" | |
6505 | fi | |
6506 | fi | |
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | ||
6524 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6525 | ||
6526 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6527 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
6529 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
6530 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
6531 | $as_echo_n "(cached) " >&6 | |
6532 | else | |
6533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6534 | /* end confdefs.h. */ | |
6535 | int i; | |
6536 | _ACEOF | |
6537 | if ac_fn_c_try_compile "$LINENO"; then : | |
6538 | xorg_cv_cc_flag_unknown_warning_option=yes | |
6539 | else | |
6540 | xorg_cv_cc_flag_unknown_warning_option=no | |
6541 | fi | |
6542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6543 | fi | |
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
6545 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
6546 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
6547 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6548 | fi | |
6549 | ||
6550 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
6551 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6552 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6553 | fi | |
6554 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
6556 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
6557 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
6558 | $as_echo_n "(cached) " >&6 | |
6559 | else | |
6560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6561 | /* end confdefs.h. */ | |
6562 | int i; | |
6563 | _ACEOF | |
6564 | if ac_fn_c_try_compile "$LINENO"; then : | |
6565 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
6566 | else | |
6567 | xorg_cv_cc_flag_unused_command_line_argument=no | |
6568 | fi | |
6569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6570 | fi | |
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
6572 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
6573 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
6574 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6575 | fi | |
6576 | ||
6577 | found="no" | |
6578 | ||
6579 | if test $found = "no" ; then | |
6580 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6581 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6582 | fi | |
6583 | ||
6584 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6585 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6586 | fi | |
6587 | ||
6588 | CFLAGS="$CFLAGS -Wstrict-prototypes" | |
6589 | ||
6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 | |
6591 | $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } | |
6592 | cacheid=xorg_cv_cc_flag__Wstrict_prototypes | |
6593 | if eval \${$cacheid+:} false; then : | |
6594 | $as_echo_n "(cached) " >&6 | |
6595 | else | |
6596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6597 | /* end confdefs.h. */ | |
6598 | int i; | |
6599 | int | |
6600 | main () | |
6601 | { | |
6602 | ||
6603 | ; | |
6604 | return 0; | |
6605 | } | |
6606 | _ACEOF | |
6607 | if ac_fn_c_try_link "$LINENO"; then : | |
6608 | eval $cacheid=yes | |
6609 | else | |
6610 | eval $cacheid=no | |
6611 | fi | |
6612 | rm -f core conftest.err conftest.$ac_objext \ | |
6613 | conftest$ac_exeext conftest.$ac_ext | |
6614 | fi | |
6615 | ||
6616 | ||
6617 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6618 | ||
6619 | eval supported=\$$cacheid | |
6620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6621 | $as_echo "$supported" >&6; } | |
6622 | if test "$supported" = "yes" ; then | |
6623 | BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" | |
6624 | found="yes" | |
6625 | fi | |
6626 | fi | |
6627 | ||
6628 | ||
6629 | ||
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
6635 | ||
6636 | ||
6637 | ||
6638 | ||
6639 | ||
6640 | ||
6641 | ||
6642 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6643 | ||
6644 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6645 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
6647 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
6648 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
6649 | $as_echo_n "(cached) " >&6 | |
6650 | else | |
6651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6652 | /* end confdefs.h. */ | |
6653 | int i; | |
6654 | _ACEOF | |
6655 | if ac_fn_c_try_compile "$LINENO"; then : | |
6656 | xorg_cv_cc_flag_unknown_warning_option=yes | |
6657 | else | |
6658 | xorg_cv_cc_flag_unknown_warning_option=no | |
6659 | fi | |
6660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6661 | fi | |
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
6663 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
6664 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
6665 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6666 | fi | |
6667 | ||
6668 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
6669 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6670 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6671 | fi | |
6672 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
6674 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
6675 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
6676 | $as_echo_n "(cached) " >&6 | |
6677 | else | |
6678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6679 | /* end confdefs.h. */ | |
6680 | int i; | |
6681 | _ACEOF | |
6682 | if ac_fn_c_try_compile "$LINENO"; then : | |
6683 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
6684 | else | |
6685 | xorg_cv_cc_flag_unused_command_line_argument=no | |
6686 | fi | |
6687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6688 | fi | |
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
6690 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
6691 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
6692 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6693 | fi | |
6694 | ||
6695 | found="no" | |
6696 | ||
6697 | if test $found = "no" ; then | |
6698 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6699 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6700 | fi | |
6701 | ||
6702 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6703 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6704 | fi | |
6705 | ||
6706 | CFLAGS="$CFLAGS -Wmissing-prototypes" | |
6707 | ||
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 | |
6709 | $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } | |
6710 | cacheid=xorg_cv_cc_flag__Wmissing_prototypes | |
6711 | if eval \${$cacheid+:} false; then : | |
6712 | $as_echo_n "(cached) " >&6 | |
6713 | else | |
6714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6715 | /* end confdefs.h. */ | |
6716 | int i; | |
6717 | int | |
6718 | main () | |
6719 | { | |
6720 | ||
6721 | ; | |
6722 | return 0; | |
6723 | } | |
6724 | _ACEOF | |
6725 | if ac_fn_c_try_link "$LINENO"; then : | |
6726 | eval $cacheid=yes | |
6727 | else | |
6728 | eval $cacheid=no | |
6729 | fi | |
6730 | rm -f core conftest.err conftest.$ac_objext \ | |
6731 | conftest$ac_exeext conftest.$ac_ext | |
6732 | fi | |
6733 | ||
6734 | ||
6735 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6736 | ||
6737 | eval supported=\$$cacheid | |
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6739 | $as_echo "$supported" >&6; } | |
6740 | if test "$supported" = "yes" ; then | |
6741 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" | |
6742 | found="yes" | |
6743 | fi | |
6744 | fi | |
6745 | ||
6746 | ||
6747 | ||
6748 | ||
6749 | ||
6750 | ||
6751 | ||
6752 | ||
6753 | ||
6754 | ||
6755 | ||
6756 | ||
6757 | ||
6758 | ||
6759 | ||
6760 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6761 | ||
6762 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6763 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
6765 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
6766 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
6767 | $as_echo_n "(cached) " >&6 | |
6768 | else | |
6769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6770 | /* end confdefs.h. */ | |
6771 | int i; | |
6772 | _ACEOF | |
6773 | if ac_fn_c_try_compile "$LINENO"; then : | |
6774 | xorg_cv_cc_flag_unknown_warning_option=yes | |
6775 | else | |
6776 | xorg_cv_cc_flag_unknown_warning_option=no | |
6777 | fi | |
6778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6779 | fi | |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
6781 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
6782 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
6783 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6784 | fi | |
6785 | ||
6786 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
6787 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6788 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6789 | fi | |
6790 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
6792 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
6793 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
6794 | $as_echo_n "(cached) " >&6 | |
6795 | else | |
6796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6797 | /* end confdefs.h. */ | |
6798 | int i; | |
6799 | _ACEOF | |
6800 | if ac_fn_c_try_compile "$LINENO"; then : | |
6801 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
6802 | else | |
6803 | xorg_cv_cc_flag_unused_command_line_argument=no | |
6804 | fi | |
6805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6806 | fi | |
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
6808 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
6809 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
6810 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6811 | fi | |
6812 | ||
6813 | found="no" | |
6814 | ||
6815 | if test $found = "no" ; then | |
6816 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6817 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6818 | fi | |
6819 | ||
6820 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6821 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6822 | fi | |
6823 | ||
6824 | CFLAGS="$CFLAGS -Wnested-externs" | |
6825 | ||
6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 | |
6827 | $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } | |
6828 | cacheid=xorg_cv_cc_flag__Wnested_externs | |
6829 | if eval \${$cacheid+:} false; then : | |
6830 | $as_echo_n "(cached) " >&6 | |
6831 | else | |
6832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6833 | /* end confdefs.h. */ | |
6834 | int i; | |
6835 | int | |
6836 | main () | |
6837 | { | |
6838 | ||
6839 | ; | |
6840 | return 0; | |
6841 | } | |
6842 | _ACEOF | |
6843 | if ac_fn_c_try_link "$LINENO"; then : | |
6844 | eval $cacheid=yes | |
6845 | else | |
6846 | eval $cacheid=no | |
6847 | fi | |
6848 | rm -f core conftest.err conftest.$ac_objext \ | |
6849 | conftest$ac_exeext conftest.$ac_ext | |
6850 | fi | |
6851 | ||
6852 | ||
6853 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6854 | ||
6855 | eval supported=\$$cacheid | |
6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6857 | $as_echo "$supported" >&6; } | |
6858 | if test "$supported" = "yes" ; then | |
6859 | BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" | |
6860 | found="yes" | |
6861 | fi | |
6862 | fi | |
6863 | ||
6864 | ||
6865 | ||
6866 | ||
6867 | ||
6868 | ||
6869 | ||
6870 | ||
6871 | ||
6872 | ||
6873 | ||
6874 | ||
6875 | ||
6876 | ||
6877 | ||
6878 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6879 | ||
6880 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6881 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
6883 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
6884 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
6885 | $as_echo_n "(cached) " >&6 | |
6886 | else | |
6887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6888 | /* end confdefs.h. */ | |
6889 | int i; | |
6890 | _ACEOF | |
6891 | if ac_fn_c_try_compile "$LINENO"; then : | |
6892 | xorg_cv_cc_flag_unknown_warning_option=yes | |
6893 | else | |
6894 | xorg_cv_cc_flag_unknown_warning_option=no | |
6895 | fi | |
6896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6897 | fi | |
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
6899 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
6900 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
6901 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6902 | fi | |
6903 | ||
6904 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
6905 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6906 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6907 | fi | |
6908 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
6910 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
6911 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
6912 | $as_echo_n "(cached) " >&6 | |
6913 | else | |
6914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6915 | /* end confdefs.h. */ | |
6916 | int i; | |
6917 | _ACEOF | |
6918 | if ac_fn_c_try_compile "$LINENO"; then : | |
6919 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
6920 | else | |
6921 | xorg_cv_cc_flag_unused_command_line_argument=no | |
6922 | fi | |
6923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6924 | fi | |
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
6926 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
6927 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
6928 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6929 | fi | |
6930 | ||
6931 | found="no" | |
6932 | ||
6933 | if test $found = "no" ; then | |
6934 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
6935 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
6936 | fi | |
6937 | ||
6938 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
6939 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
6940 | fi | |
6941 | ||
6942 | CFLAGS="$CFLAGS -Wbad-function-cast" | |
6943 | ||
6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 | |
6945 | $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } | |
6946 | cacheid=xorg_cv_cc_flag__Wbad_function_cast | |
6947 | if eval \${$cacheid+:} false; then : | |
6948 | $as_echo_n "(cached) " >&6 | |
6949 | else | |
6950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6951 | /* end confdefs.h. */ | |
6952 | int i; | |
6953 | int | |
6954 | main () | |
6955 | { | |
6956 | ||
6957 | ; | |
6958 | return 0; | |
6959 | } | |
6960 | _ACEOF | |
6961 | if ac_fn_c_try_link "$LINENO"; then : | |
6962 | eval $cacheid=yes | |
6963 | else | |
6964 | eval $cacheid=no | |
6965 | fi | |
6966 | rm -f core conftest.err conftest.$ac_objext \ | |
6967 | conftest$ac_exeext conftest.$ac_ext | |
6968 | fi | |
6969 | ||
6970 | ||
6971 | CFLAGS="$xorg_testset_save_CFLAGS" | |
6972 | ||
6973 | eval supported=\$$cacheid | |
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
6975 | $as_echo "$supported" >&6; } | |
6976 | if test "$supported" = "yes" ; then | |
6977 | BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" | |
6978 | found="yes" | |
6979 | fi | |
6980 | fi | |
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | ||
6986 | ||
6987 | ||
6988 | ||
6989 | ||
6990 | ||
6991 | ||
6992 | ||
6993 | ||
6994 | ||
6995 | ||
6996 | xorg_testset_save_CFLAGS="$CFLAGS" | |
6997 | ||
6998 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
6999 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7001 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7002 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
7003 | $as_echo_n "(cached) " >&6 | |
7004 | else | |
7005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7006 | /* end confdefs.h. */ | |
7007 | int i; | |
7008 | _ACEOF | |
7009 | if ac_fn_c_try_compile "$LINENO"; then : | |
7010 | xorg_cv_cc_flag_unknown_warning_option=yes | |
7011 | else | |
7012 | xorg_cv_cc_flag_unknown_warning_option=no | |
7013 | fi | |
7014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7015 | fi | |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
7017 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
7018 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
7019 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7020 | fi | |
7021 | ||
7022 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
7023 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7024 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7025 | fi | |
7026 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
7028 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
7029 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
7030 | $as_echo_n "(cached) " >&6 | |
7031 | else | |
7032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7033 | /* end confdefs.h. */ | |
7034 | int i; | |
7035 | _ACEOF | |
7036 | if ac_fn_c_try_compile "$LINENO"; then : | |
7037 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
7038 | else | |
7039 | xorg_cv_cc_flag_unused_command_line_argument=no | |
7040 | fi | |
7041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7042 | fi | |
7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
7044 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
7045 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
7046 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7047 | fi | |
7048 | ||
7049 | found="no" | |
7050 | ||
7051 | if test $found = "no" ; then | |
7052 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7053 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7054 | fi | |
7055 | ||
7056 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7057 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7058 | fi | |
7059 | ||
7060 | CFLAGS="$CFLAGS -Wold-style-definition" | |
7061 | ||
7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 | |
7063 | $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } | |
7064 | cacheid=xorg_cv_cc_flag__Wold_style_definition | |
7065 | if eval \${$cacheid+:} false; then : | |
7066 | $as_echo_n "(cached) " >&6 | |
7067 | else | |
7068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7069 | /* end confdefs.h. */ | |
7070 | int i; | |
7071 | int | |
7072 | main () | |
7073 | { | |
7074 | ||
7075 | ; | |
7076 | return 0; | |
7077 | } | |
7078 | _ACEOF | |
7079 | if ac_fn_c_try_link "$LINENO"; then : | |
7080 | eval $cacheid=yes | |
7081 | else | |
7082 | eval $cacheid=no | |
7083 | fi | |
7084 | rm -f core conftest.err conftest.$ac_objext \ | |
7085 | conftest$ac_exeext conftest.$ac_ext | |
7086 | fi | |
7087 | ||
7088 | ||
7089 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7090 | ||
7091 | eval supported=\$$cacheid | |
7092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7093 | $as_echo "$supported" >&6; } | |
7094 | if test "$supported" = "yes" ; then | |
7095 | BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" | |
7096 | found="yes" | |
7097 | fi | |
7098 | fi | |
7099 | ||
7100 | if test $found = "no" ; then | |
7101 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7102 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7103 | fi | |
7104 | ||
7105 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7106 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7107 | fi | |
7108 | ||
7109 | CFLAGS="$CFLAGS -fd" | |
7110 | ||
7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 | |
7112 | $as_echo_n "checking if $CC supports -fd... " >&6; } | |
7113 | cacheid=xorg_cv_cc_flag__fd | |
7114 | if eval \${$cacheid+:} false; then : | |
7115 | $as_echo_n "(cached) " >&6 | |
7116 | else | |
7117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7118 | /* end confdefs.h. */ | |
7119 | int i; | |
7120 | int | |
7121 | main () | |
7122 | { | |
7123 | ||
7124 | ; | |
7125 | return 0; | |
7126 | } | |
7127 | _ACEOF | |
7128 | if ac_fn_c_try_link "$LINENO"; then : | |
7129 | eval $cacheid=yes | |
7130 | else | |
7131 | eval $cacheid=no | |
7132 | fi | |
7133 | rm -f core conftest.err conftest.$ac_objext \ | |
7134 | conftest$ac_exeext conftest.$ac_ext | |
7135 | fi | |
7136 | ||
7137 | ||
7138 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7139 | ||
7140 | eval supported=\$$cacheid | |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7142 | $as_echo "$supported" >&6; } | |
7143 | if test "$supported" = "yes" ; then | |
7144 | BASE_CFLAGS="$BASE_CFLAGS -fd" | |
7145 | found="yes" | |
7146 | fi | |
7147 | fi | |
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | ||
7153 | ||
7154 | ||
7155 | ||
7156 | ||
7157 | ||
7158 | ||
7159 | ||
7160 | ||
7161 | ||
7162 | ||
7163 | xorg_testset_save_CFLAGS="$CFLAGS" | |
7164 | ||
7165 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
7166 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7168 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7169 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
7170 | $as_echo_n "(cached) " >&6 | |
7171 | else | |
7172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7173 | /* end confdefs.h. */ | |
7174 | int i; | |
7175 | _ACEOF | |
7176 | if ac_fn_c_try_compile "$LINENO"; then : | |
7177 | xorg_cv_cc_flag_unknown_warning_option=yes | |
7178 | else | |
7179 | xorg_cv_cc_flag_unknown_warning_option=no | |
7180 | fi | |
7181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7182 | fi | |
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
7184 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
7185 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
7186 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7187 | fi | |
7188 | ||
7189 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
7190 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7191 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7192 | fi | |
7193 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
7195 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
7196 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
7197 | $as_echo_n "(cached) " >&6 | |
7198 | else | |
7199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7200 | /* end confdefs.h. */ | |
7201 | int i; | |
7202 | _ACEOF | |
7203 | if ac_fn_c_try_compile "$LINENO"; then : | |
7204 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
7205 | else | |
7206 | xorg_cv_cc_flag_unused_command_line_argument=no | |
7207 | fi | |
7208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7209 | fi | |
7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
7211 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
7212 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
7213 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7214 | fi | |
7215 | ||
7216 | found="no" | |
7217 | ||
7218 | if test $found = "no" ; then | |
7219 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7220 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7221 | fi | |
7222 | ||
7223 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7224 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7225 | fi | |
7226 | ||
7227 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" | |
7228 | ||
7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 | |
7230 | $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } | |
7231 | cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement | |
7232 | if eval \${$cacheid+:} false; then : | |
7233 | $as_echo_n "(cached) " >&6 | |
7234 | else | |
7235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7236 | /* end confdefs.h. */ | |
7237 | int i; | |
7238 | int | |
7239 | main () | |
7240 | { | |
7241 | ||
7242 | ; | |
7243 | return 0; | |
7244 | } | |
7245 | _ACEOF | |
7246 | if ac_fn_c_try_link "$LINENO"; then : | |
7247 | eval $cacheid=yes | |
7248 | else | |
7249 | eval $cacheid=no | |
7250 | fi | |
7251 | rm -f core conftest.err conftest.$ac_objext \ | |
7252 | conftest$ac_exeext conftest.$ac_ext | |
7253 | fi | |
7254 | ||
7255 | ||
7256 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7257 | ||
7258 | eval supported=\$$cacheid | |
7259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7260 | $as_echo "$supported" >&6; } | |
7261 | if test "$supported" = "yes" ; then | |
7262 | BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" | |
7263 | found="yes" | |
7264 | fi | |
7265 | fi | |
7266 | ||
7267 | ||
7268 | ||
7269 | ||
7270 | ||
7271 | # This chunk adds additional warnings that could catch undesired effects. | |
7272 | ||
7273 | ||
7274 | ||
7275 | ||
7276 | ||
7277 | ||
7278 | ||
7279 | ||
7280 | ||
7281 | ||
7282 | ||
7283 | ||
7284 | ||
7285 | xorg_testset_save_CFLAGS="$CFLAGS" | |
7286 | ||
7287 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
7288 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7290 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7291 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
7292 | $as_echo_n "(cached) " >&6 | |
7293 | else | |
7294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7295 | /* end confdefs.h. */ | |
7296 | int i; | |
7297 | _ACEOF | |
7298 | if ac_fn_c_try_compile "$LINENO"; then : | |
7299 | xorg_cv_cc_flag_unknown_warning_option=yes | |
7300 | else | |
7301 | xorg_cv_cc_flag_unknown_warning_option=no | |
7302 | fi | |
7303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7304 | fi | |
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
7306 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
7307 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
7308 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7309 | fi | |
7310 | ||
7311 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
7312 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7313 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7314 | fi | |
7315 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
7317 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
7318 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
7319 | $as_echo_n "(cached) " >&6 | |
7320 | else | |
7321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7322 | /* end confdefs.h. */ | |
7323 | int i; | |
7324 | _ACEOF | |
7325 | if ac_fn_c_try_compile "$LINENO"; then : | |
7326 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
7327 | else | |
7328 | xorg_cv_cc_flag_unused_command_line_argument=no | |
7329 | fi | |
7330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7331 | fi | |
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
7333 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
7334 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
7335 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7336 | fi | |
7337 | ||
7338 | found="no" | |
7339 | ||
7340 | if test $found = "no" ; then | |
7341 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7342 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7343 | fi | |
7344 | ||
7345 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7346 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7347 | fi | |
7348 | ||
7349 | CFLAGS="$CFLAGS -Wunused" | |
7350 | ||
7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 | |
7352 | $as_echo_n "checking if $CC supports -Wunused... " >&6; } | |
7353 | cacheid=xorg_cv_cc_flag__Wunused | |
7354 | if eval \${$cacheid+:} false; then : | |
7355 | $as_echo_n "(cached) " >&6 | |
7356 | else | |
7357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7358 | /* end confdefs.h. */ | |
7359 | int i; | |
7360 | int | |
7361 | main () | |
7362 | { | |
7363 | ||
7364 | ; | |
7365 | return 0; | |
7366 | } | |
7367 | _ACEOF | |
7368 | if ac_fn_c_try_link "$LINENO"; then : | |
7369 | eval $cacheid=yes | |
7370 | else | |
7371 | eval $cacheid=no | |
7372 | fi | |
7373 | rm -f core conftest.err conftest.$ac_objext \ | |
7374 | conftest$ac_exeext conftest.$ac_ext | |
7375 | fi | |
7376 | ||
7377 | ||
7378 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7379 | ||
7380 | eval supported=\$$cacheid | |
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7382 | $as_echo "$supported" >&6; } | |
7383 | if test "$supported" = "yes" ; then | |
7384 | BASE_CFLAGS="$BASE_CFLAGS -Wunused" | |
7385 | found="yes" | |
7386 | fi | |
7387 | fi | |
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | ||
7394 | ||
7395 | ||
7396 | ||
7397 | ||
7398 | ||
7399 | ||
7400 | ||
7401 | ||
7402 | ||
7403 | xorg_testset_save_CFLAGS="$CFLAGS" | |
7404 | ||
7405 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
7406 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7408 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7409 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
7410 | $as_echo_n "(cached) " >&6 | |
7411 | else | |
7412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7413 | /* end confdefs.h. */ | |
7414 | int i; | |
7415 | _ACEOF | |
7416 | if ac_fn_c_try_compile "$LINENO"; then : | |
7417 | xorg_cv_cc_flag_unknown_warning_option=yes | |
7418 | else | |
7419 | xorg_cv_cc_flag_unknown_warning_option=no | |
7420 | fi | |
7421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7422 | fi | |
7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
7424 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
7425 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
7426 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7427 | fi | |
7428 | ||
7429 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
7430 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7431 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7432 | fi | |
7433 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
7435 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
7436 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
7437 | $as_echo_n "(cached) " >&6 | |
7438 | else | |
7439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7440 | /* end confdefs.h. */ | |
7441 | int i; | |
7442 | _ACEOF | |
7443 | if ac_fn_c_try_compile "$LINENO"; then : | |
7444 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
7445 | else | |
7446 | xorg_cv_cc_flag_unused_command_line_argument=no | |
7447 | fi | |
7448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7449 | fi | |
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
7451 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
7452 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
7453 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7454 | fi | |
7455 | ||
7456 | found="no" | |
7457 | ||
7458 | if test $found = "no" ; then | |
7459 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7460 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7461 | fi | |
7462 | ||
7463 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7464 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7465 | fi | |
7466 | ||
7467 | CFLAGS="$CFLAGS -Wuninitialized" | |
7468 | ||
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 | |
7470 | $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } | |
7471 | cacheid=xorg_cv_cc_flag__Wuninitialized | |
7472 | if eval \${$cacheid+:} false; then : | |
7473 | $as_echo_n "(cached) " >&6 | |
7474 | else | |
7475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7476 | /* end confdefs.h. */ | |
7477 | int i; | |
7478 | int | |
7479 | main () | |
7480 | { | |
7481 | ||
7482 | ; | |
7483 | return 0; | |
7484 | } | |
7485 | _ACEOF | |
7486 | if ac_fn_c_try_link "$LINENO"; then : | |
7487 | eval $cacheid=yes | |
7488 | else | |
7489 | eval $cacheid=no | |
7490 | fi | |
7491 | rm -f core conftest.err conftest.$ac_objext \ | |
7492 | conftest$ac_exeext conftest.$ac_ext | |
7493 | fi | |
7494 | ||
7495 | ||
7496 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7497 | ||
7498 | eval supported=\$$cacheid | |
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7500 | $as_echo "$supported" >&6; } | |
7501 | if test "$supported" = "yes" ; then | |
7502 | BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" | |
7503 | found="yes" | |
7504 | fi | |
7505 | fi | |
7506 | ||
7507 | ||
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | ||
7518 | ||
7519 | ||
7520 | ||
7521 | xorg_testset_save_CFLAGS="$CFLAGS" | |
7522 | ||
7523 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
7524 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7526 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7527 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
7528 | $as_echo_n "(cached) " >&6 | |
7529 | else | |
7530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7531 | /* end confdefs.h. */ | |
7532 | int i; | |
7533 | _ACEOF | |
7534 | if ac_fn_c_try_compile "$LINENO"; then : | |
7535 | xorg_cv_cc_flag_unknown_warning_option=yes | |
7536 | else | |
7537 | xorg_cv_cc_flag_unknown_warning_option=no | |
7538 | fi | |
7539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7540 | fi | |
7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
7542 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
7543 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
7544 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7545 | fi | |
7546 | ||
7547 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
7548 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7549 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7550 | fi | |
7551 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
7553 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
7554 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
7555 | $as_echo_n "(cached) " >&6 | |
7556 | else | |
7557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7558 | /* end confdefs.h. */ | |
7559 | int i; | |
7560 | _ACEOF | |
7561 | if ac_fn_c_try_compile "$LINENO"; then : | |
7562 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
7563 | else | |
7564 | xorg_cv_cc_flag_unused_command_line_argument=no | |
7565 | fi | |
7566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7567 | fi | |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
7569 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
7570 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
7571 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7572 | fi | |
7573 | ||
7574 | found="no" | |
7575 | ||
7576 | if test $found = "no" ; then | |
7577 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7578 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7579 | fi | |
7580 | ||
7581 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7582 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7583 | fi | |
7584 | ||
7585 | CFLAGS="$CFLAGS -Wshadow" | |
7586 | ||
7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 | |
7588 | $as_echo_n "checking if $CC supports -Wshadow... " >&6; } | |
7589 | cacheid=xorg_cv_cc_flag__Wshadow | |
7590 | if eval \${$cacheid+:} false; then : | |
7591 | $as_echo_n "(cached) " >&6 | |
7592 | else | |
7593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7594 | /* end confdefs.h. */ | |
7595 | int i; | |
7596 | int | |
7597 | main () | |
7598 | { | |
7599 | ||
7600 | ; | |
7601 | return 0; | |
7602 | } | |
7603 | _ACEOF | |
7604 | if ac_fn_c_try_link "$LINENO"; then : | |
7605 | eval $cacheid=yes | |
7606 | else | |
7607 | eval $cacheid=no | |
7608 | fi | |
7609 | rm -f core conftest.err conftest.$ac_objext \ | |
7610 | conftest$ac_exeext conftest.$ac_ext | |
7611 | fi | |
7612 | ||
7613 | ||
7614 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7615 | ||
7616 | eval supported=\$$cacheid | |
7617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7618 | $as_echo "$supported" >&6; } | |
7619 | if test "$supported" = "yes" ; then | |
7620 | BASE_CFLAGS="$BASE_CFLAGS -Wshadow" | |
7621 | found="yes" | |
7622 | fi | |
7623 | fi | |
7624 | ||
7625 | ||
7626 | ||
7627 | ||
7628 | ||
7629 | ||
7630 | ||
7631 | ||
7632 | ||
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | xorg_testset_save_CFLAGS="$CFLAGS" | |
7640 | ||
7641 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
7642 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7644 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7645 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
7646 | $as_echo_n "(cached) " >&6 | |
7647 | else | |
7648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7649 | /* end confdefs.h. */ | |
7650 | int i; | |
7651 | _ACEOF | |
7652 | if ac_fn_c_try_compile "$LINENO"; then : | |
7653 | xorg_cv_cc_flag_unknown_warning_option=yes | |
7654 | else | |
7655 | xorg_cv_cc_flag_unknown_warning_option=no | |
7656 | fi | |
7657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7658 | fi | |
7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
7660 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
7661 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
7662 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7663 | fi | |
7664 | ||
7665 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
7666 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7667 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7668 | fi | |
7669 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
7671 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
7672 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
7673 | $as_echo_n "(cached) " >&6 | |
7674 | else | |
7675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7676 | /* end confdefs.h. */ | |
7677 | int i; | |
7678 | _ACEOF | |
7679 | if ac_fn_c_try_compile "$LINENO"; then : | |
7680 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
7681 | else | |
7682 | xorg_cv_cc_flag_unused_command_line_argument=no | |
7683 | fi | |
7684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7685 | fi | |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
7687 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
7688 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
7689 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7690 | fi | |
7691 | ||
7692 | found="no" | |
7693 | ||
7694 | if test $found = "no" ; then | |
7695 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7696 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7697 | fi | |
7698 | ||
7699 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7700 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7701 | fi | |
7702 | ||
7703 | CFLAGS="$CFLAGS -Wmissing-noreturn" | |
7704 | ||
7705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 | |
7706 | $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } | |
7707 | cacheid=xorg_cv_cc_flag__Wmissing_noreturn | |
7708 | if eval \${$cacheid+:} false; then : | |
7709 | $as_echo_n "(cached) " >&6 | |
7710 | else | |
7711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7712 | /* end confdefs.h. */ | |
7713 | int i; | |
7714 | int | |
7715 | main () | |
7716 | { | |
7717 | ||
7718 | ; | |
7719 | return 0; | |
7720 | } | |
7721 | _ACEOF | |
7722 | if ac_fn_c_try_link "$LINENO"; then : | |
7723 | eval $cacheid=yes | |
7724 | else | |
7725 | eval $cacheid=no | |
7726 | fi | |
7727 | rm -f core conftest.err conftest.$ac_objext \ | |
7728 | conftest$ac_exeext conftest.$ac_ext | |
7729 | fi | |
7730 | ||
7731 | ||
7732 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7733 | ||
7734 | eval supported=\$$cacheid | |
7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7736 | $as_echo "$supported" >&6; } | |
7737 | if test "$supported" = "yes" ; then | |
7738 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" | |
7739 | found="yes" | |
7740 | fi | |
7741 | fi | |
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
7752 | ||
7753 | ||
7754 | ||
7755 | ||
7756 | ||
7757 | xorg_testset_save_CFLAGS="$CFLAGS" | |
7758 | ||
7759 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
7760 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7762 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7763 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
7764 | $as_echo_n "(cached) " >&6 | |
7765 | else | |
7766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7767 | /* end confdefs.h. */ | |
7768 | int i; | |
7769 | _ACEOF | |
7770 | if ac_fn_c_try_compile "$LINENO"; then : | |
7771 | xorg_cv_cc_flag_unknown_warning_option=yes | |
7772 | else | |
7773 | xorg_cv_cc_flag_unknown_warning_option=no | |
7774 | fi | |
7775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7776 | fi | |
7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
7778 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
7779 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
7780 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7781 | fi | |
7782 | ||
7783 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
7784 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7785 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7786 | fi | |
7787 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
7789 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
7790 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
7791 | $as_echo_n "(cached) " >&6 | |
7792 | else | |
7793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7794 | /* end confdefs.h. */ | |
7795 | int i; | |
7796 | _ACEOF | |
7797 | if ac_fn_c_try_compile "$LINENO"; then : | |
7798 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
7799 | else | |
7800 | xorg_cv_cc_flag_unused_command_line_argument=no | |
7801 | fi | |
7802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7803 | fi | |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
7805 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
7806 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
7807 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7808 | fi | |
7809 | ||
7810 | found="no" | |
7811 | ||
7812 | if test $found = "no" ; then | |
7813 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7814 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7815 | fi | |
7816 | ||
7817 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7818 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7819 | fi | |
7820 | ||
7821 | CFLAGS="$CFLAGS -Wmissing-format-attribute" | |
7822 | ||
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 | |
7824 | $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } | |
7825 | cacheid=xorg_cv_cc_flag__Wmissing_format_attribute | |
7826 | if eval \${$cacheid+:} false; then : | |
7827 | $as_echo_n "(cached) " >&6 | |
7828 | else | |
7829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7830 | /* end confdefs.h. */ | |
7831 | int i; | |
7832 | int | |
7833 | main () | |
7834 | { | |
7835 | ||
7836 | ; | |
7837 | return 0; | |
7838 | } | |
7839 | _ACEOF | |
7840 | if ac_fn_c_try_link "$LINENO"; then : | |
7841 | eval $cacheid=yes | |
7842 | else | |
7843 | eval $cacheid=no | |
7844 | fi | |
7845 | rm -f core conftest.err conftest.$ac_objext \ | |
7846 | conftest$ac_exeext conftest.$ac_ext | |
7847 | fi | |
7848 | ||
7849 | ||
7850 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7851 | ||
7852 | eval supported=\$$cacheid | |
7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7854 | $as_echo "$supported" >&6; } | |
7855 | if test "$supported" = "yes" ; then | |
7856 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" | |
7857 | found="yes" | |
7858 | fi | |
7859 | fi | |
7860 | ||
7861 | ||
7862 | ||
7863 | ||
7864 | ||
7865 | ||
7866 | ||
7867 | ||
7868 | ||
7869 | ||
7870 | ||
7871 | ||
7872 | ||
7873 | ||
7874 | ||
7875 | xorg_testset_save_CFLAGS="$CFLAGS" | |
7876 | ||
7877 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
7878 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7880 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7881 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
7882 | $as_echo_n "(cached) " >&6 | |
7883 | else | |
7884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7885 | /* end confdefs.h. */ | |
7886 | int i; | |
7887 | _ACEOF | |
7888 | if ac_fn_c_try_compile "$LINENO"; then : | |
7889 | xorg_cv_cc_flag_unknown_warning_option=yes | |
7890 | else | |
7891 | xorg_cv_cc_flag_unknown_warning_option=no | |
7892 | fi | |
7893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7894 | fi | |
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
7896 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
7897 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
7898 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7899 | fi | |
7900 | ||
7901 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
7902 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7903 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7904 | fi | |
7905 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
7907 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
7908 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
7909 | $as_echo_n "(cached) " >&6 | |
7910 | else | |
7911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7912 | /* end confdefs.h. */ | |
7913 | int i; | |
7914 | _ACEOF | |
7915 | if ac_fn_c_try_compile "$LINENO"; then : | |
7916 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
7917 | else | |
7918 | xorg_cv_cc_flag_unused_command_line_argument=no | |
7919 | fi | |
7920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7921 | fi | |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
7923 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
7924 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
7925 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7926 | fi | |
7927 | ||
7928 | found="no" | |
7929 | ||
7930 | if test $found = "no" ; then | |
7931 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
7932 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7933 | fi | |
7934 | ||
7935 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
7936 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
7937 | fi | |
7938 | ||
7939 | CFLAGS="$CFLAGS -Wredundant-decls" | |
7940 | ||
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 | |
7942 | $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } | |
7943 | cacheid=xorg_cv_cc_flag__Wredundant_decls | |
7944 | if eval \${$cacheid+:} false; then : | |
7945 | $as_echo_n "(cached) " >&6 | |
7946 | else | |
7947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7948 | /* end confdefs.h. */ | |
7949 | int i; | |
7950 | int | |
7951 | main () | |
7952 | { | |
7953 | ||
7954 | ; | |
7955 | return 0; | |
7956 | } | |
7957 | _ACEOF | |
7958 | if ac_fn_c_try_link "$LINENO"; then : | |
7959 | eval $cacheid=yes | |
7960 | else | |
7961 | eval $cacheid=no | |
7962 | fi | |
7963 | rm -f core conftest.err conftest.$ac_objext \ | |
7964 | conftest$ac_exeext conftest.$ac_ext | |
7965 | fi | |
7966 | ||
7967 | ||
7968 | CFLAGS="$xorg_testset_save_CFLAGS" | |
7969 | ||
7970 | eval supported=\$$cacheid | |
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
7972 | $as_echo "$supported" >&6; } | |
7973 | if test "$supported" = "yes" ; then | |
7974 | BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" | |
7975 | found="yes" | |
7976 | fi | |
7977 | fi | |
7978 | ||
7979 | ||
7980 | ||
7981 | ||
7982 | ||
7983 | ||
7984 | ||
7985 | ||
7986 | ||
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | xorg_testset_save_CFLAGS="$CFLAGS" | |
7994 | ||
7995 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
7996 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
7998 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
7999 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
8000 | $as_echo_n "(cached) " >&6 | |
8001 | else | |
8002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8003 | /* end confdefs.h. */ | |
8004 | int i; | |
8005 | _ACEOF | |
8006 | if ac_fn_c_try_compile "$LINENO"; then : | |
8007 | xorg_cv_cc_flag_unknown_warning_option=yes | |
8008 | else | |
8009 | xorg_cv_cc_flag_unknown_warning_option=no | |
8010 | fi | |
8011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8012 | fi | |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
8014 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
8015 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
8016 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8017 | fi | |
8018 | ||
8019 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
8020 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8021 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8022 | fi | |
8023 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
8025 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
8026 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
8027 | $as_echo_n "(cached) " >&6 | |
8028 | else | |
8029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8030 | /* end confdefs.h. */ | |
8031 | int i; | |
8032 | _ACEOF | |
8033 | if ac_fn_c_try_compile "$LINENO"; then : | |
8034 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
8035 | else | |
8036 | xorg_cv_cc_flag_unused_command_line_argument=no | |
8037 | fi | |
8038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8039 | fi | |
8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
8041 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
8042 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
8043 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8044 | fi | |
8045 | ||
8046 | found="no" | |
8047 | ||
8048 | if test $found = "no" ; then | |
8049 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8050 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8051 | fi | |
8052 | ||
8053 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8054 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8055 | fi | |
8056 | ||
8057 | CFLAGS="$CFLAGS -Wlogical-op" | |
8058 | ||
8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 | |
8060 | $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } | |
8061 | cacheid=xorg_cv_cc_flag__Wlogical_op | |
8062 | if eval \${$cacheid+:} false; then : | |
8063 | $as_echo_n "(cached) " >&6 | |
8064 | else | |
8065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8066 | /* end confdefs.h. */ | |
8067 | int i; | |
8068 | int | |
8069 | main () | |
8070 | { | |
8071 | ||
8072 | ; | |
8073 | return 0; | |
8074 | } | |
8075 | _ACEOF | |
8076 | if ac_fn_c_try_link "$LINENO"; then : | |
8077 | eval $cacheid=yes | |
8078 | else | |
8079 | eval $cacheid=no | |
8080 | fi | |
8081 | rm -f core conftest.err conftest.$ac_objext \ | |
8082 | conftest$ac_exeext conftest.$ac_ext | |
8083 | fi | |
8084 | ||
8085 | ||
8086 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8087 | ||
8088 | eval supported=\$$cacheid | |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8090 | $as_echo "$supported" >&6; } | |
8091 | if test "$supported" = "yes" ; then | |
8092 | BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" | |
8093 | found="yes" | |
8094 | fi | |
8095 | fi | |
8096 | ||
8097 | ||
8098 | ||
8099 | # These are currently disabled because they are noisy. They will be enabled | |
8100 | # in the future once the codebase is sufficiently modernized to silence | |
8101 | # them. For now, I don't want them to drown out the other warnings. | |
8102 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) | |
8103 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) | |
8104 | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) | |
8105 | ||
8106 | # Turn some warnings into errors, so we don't accidently get successful builds | |
8107 | # when there are problems that should be fixed. | |
8108 | ||
8109 | if test "x$SELECTIVE_WERROR" = "xyes" ; then | |
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | ||
8119 | ||
8120 | ||
8121 | ||
8122 | ||
8123 | xorg_testset_save_CFLAGS="$CFLAGS" | |
8124 | ||
8125 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
8126 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
8128 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
8129 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
8130 | $as_echo_n "(cached) " >&6 | |
8131 | else | |
8132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8133 | /* end confdefs.h. */ | |
8134 | int i; | |
8135 | _ACEOF | |
8136 | if ac_fn_c_try_compile "$LINENO"; then : | |
8137 | xorg_cv_cc_flag_unknown_warning_option=yes | |
8138 | else | |
8139 | xorg_cv_cc_flag_unknown_warning_option=no | |
8140 | fi | |
8141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8142 | fi | |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
8144 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
8145 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
8146 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8147 | fi | |
8148 | ||
8149 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
8150 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8151 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8152 | fi | |
8153 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
8155 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
8156 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
8157 | $as_echo_n "(cached) " >&6 | |
8158 | else | |
8159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8160 | /* end confdefs.h. */ | |
8161 | int i; | |
8162 | _ACEOF | |
8163 | if ac_fn_c_try_compile "$LINENO"; then : | |
8164 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
8165 | else | |
8166 | xorg_cv_cc_flag_unused_command_line_argument=no | |
8167 | fi | |
8168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8169 | fi | |
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
8171 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
8172 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
8173 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8174 | fi | |
8175 | ||
8176 | found="no" | |
8177 | ||
8178 | if test $found = "no" ; then | |
8179 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8180 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8181 | fi | |
8182 | ||
8183 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8184 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8185 | fi | |
8186 | ||
8187 | CFLAGS="$CFLAGS -Werror=implicit" | |
8188 | ||
8189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 | |
8190 | $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } | |
8191 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` | |
8192 | if eval \${$cacheid+:} false; then : | |
8193 | $as_echo_n "(cached) " >&6 | |
8194 | else | |
8195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8196 | /* end confdefs.h. */ | |
8197 | int i; | |
8198 | int | |
8199 | main () | |
8200 | { | |
8201 | ||
8202 | ; | |
8203 | return 0; | |
8204 | } | |
8205 | _ACEOF | |
8206 | if ac_fn_c_try_link "$LINENO"; then : | |
8207 | eval $cacheid=yes | |
8208 | else | |
8209 | eval $cacheid=no | |
8210 | fi | |
8211 | rm -f core conftest.err conftest.$ac_objext \ | |
8212 | conftest$ac_exeext conftest.$ac_ext | |
8213 | fi | |
8214 | ||
8215 | ||
8216 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8217 | ||
8218 | eval supported=\$$cacheid | |
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8220 | $as_echo "$supported" >&6; } | |
8221 | if test "$supported" = "yes" ; then | |
8222 | BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" | |
8223 | found="yes" | |
8224 | fi | |
8225 | fi | |
8226 | ||
8227 | if test $found = "no" ; then | |
8228 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8229 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8230 | fi | |
8231 | ||
8232 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8233 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8234 | fi | |
8235 | ||
8236 | CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | |
8237 | ||
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 | |
8239 | $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } | |
8240 | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` | |
8241 | if eval \${$cacheid+:} false; then : | |
8242 | $as_echo_n "(cached) " >&6 | |
8243 | else | |
8244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8245 | /* end confdefs.h. */ | |
8246 | int i; | |
8247 | int | |
8248 | main () | |
8249 | { | |
8250 | ||
8251 | ; | |
8252 | return 0; | |
8253 | } | |
8254 | _ACEOF | |
8255 | if ac_fn_c_try_link "$LINENO"; then : | |
8256 | eval $cacheid=yes | |
8257 | else | |
8258 | eval $cacheid=no | |
8259 | fi | |
8260 | rm -f core conftest.err conftest.$ac_objext \ | |
8261 | conftest$ac_exeext conftest.$ac_ext | |
8262 | fi | |
8263 | ||
8264 | ||
8265 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8266 | ||
8267 | eval supported=\$$cacheid | |
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8269 | $as_echo "$supported" >&6; } | |
8270 | if test "$supported" = "yes" ; then | |
8271 | BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | |
8272 | found="yes" | |
8273 | fi | |
8274 | fi | |
8275 | ||
8276 | ||
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | ||
8282 | ||
8283 | ||
8284 | ||
8285 | ||
8286 | ||
8287 | ||
8288 | ||
8289 | ||
8290 | xorg_testset_save_CFLAGS="$CFLAGS" | |
8291 | ||
8292 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
8293 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
8295 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
8296 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
8297 | $as_echo_n "(cached) " >&6 | |
8298 | else | |
8299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8300 | /* end confdefs.h. */ | |
8301 | int i; | |
8302 | _ACEOF | |
8303 | if ac_fn_c_try_compile "$LINENO"; then : | |
8304 | xorg_cv_cc_flag_unknown_warning_option=yes | |
8305 | else | |
8306 | xorg_cv_cc_flag_unknown_warning_option=no | |
8307 | fi | |
8308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8309 | fi | |
8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
8311 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
8312 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
8313 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8314 | fi | |
8315 | ||
8316 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
8317 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8318 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8319 | fi | |
8320 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
8322 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
8323 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
8324 | $as_echo_n "(cached) " >&6 | |
8325 | else | |
8326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8327 | /* end confdefs.h. */ | |
8328 | int i; | |
8329 | _ACEOF | |
8330 | if ac_fn_c_try_compile "$LINENO"; then : | |
8331 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
8332 | else | |
8333 | xorg_cv_cc_flag_unused_command_line_argument=no | |
8334 | fi | |
8335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8336 | fi | |
8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
8338 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
8339 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
8340 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8341 | fi | |
8342 | ||
8343 | found="no" | |
8344 | ||
8345 | if test $found = "no" ; then | |
8346 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8347 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8348 | fi | |
8349 | ||
8350 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8351 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8352 | fi | |
8353 | ||
8354 | CFLAGS="$CFLAGS -Werror=nonnull" | |
8355 | ||
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 | |
8357 | $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } | |
8358 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` | |
8359 | if eval \${$cacheid+:} false; then : | |
8360 | $as_echo_n "(cached) " >&6 | |
8361 | else | |
8362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8363 | /* end confdefs.h. */ | |
8364 | int i; | |
8365 | int | |
8366 | main () | |
8367 | { | |
8368 | ||
8369 | ; | |
8370 | return 0; | |
8371 | } | |
8372 | _ACEOF | |
8373 | if ac_fn_c_try_link "$LINENO"; then : | |
8374 | eval $cacheid=yes | |
8375 | else | |
8376 | eval $cacheid=no | |
8377 | fi | |
8378 | rm -f core conftest.err conftest.$ac_objext \ | |
8379 | conftest$ac_exeext conftest.$ac_ext | |
8380 | fi | |
8381 | ||
8382 | ||
8383 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8384 | ||
8385 | eval supported=\$$cacheid | |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8387 | $as_echo "$supported" >&6; } | |
8388 | if test "$supported" = "yes" ; then | |
8389 | BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" | |
8390 | found="yes" | |
8391 | fi | |
8392 | fi | |
8393 | ||
8394 | ||
8395 | ||
8396 | ||
8397 | ||
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | ||
8403 | ||
8404 | ||
8405 | ||
8406 | ||
8407 | ||
8408 | xorg_testset_save_CFLAGS="$CFLAGS" | |
8409 | ||
8410 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
8411 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
8413 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
8414 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
8415 | $as_echo_n "(cached) " >&6 | |
8416 | else | |
8417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8418 | /* end confdefs.h. */ | |
8419 | int i; | |
8420 | _ACEOF | |
8421 | if ac_fn_c_try_compile "$LINENO"; then : | |
8422 | xorg_cv_cc_flag_unknown_warning_option=yes | |
8423 | else | |
8424 | xorg_cv_cc_flag_unknown_warning_option=no | |
8425 | fi | |
8426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8427 | fi | |
8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
8429 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
8430 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
8431 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8432 | fi | |
8433 | ||
8434 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
8435 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8436 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8437 | fi | |
8438 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
8440 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
8441 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
8442 | $as_echo_n "(cached) " >&6 | |
8443 | else | |
8444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8445 | /* end confdefs.h. */ | |
8446 | int i; | |
8447 | _ACEOF | |
8448 | if ac_fn_c_try_compile "$LINENO"; then : | |
8449 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
8450 | else | |
8451 | xorg_cv_cc_flag_unused_command_line_argument=no | |
8452 | fi | |
8453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8454 | fi | |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
8456 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
8457 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
8458 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8459 | fi | |
8460 | ||
8461 | found="no" | |
8462 | ||
8463 | if test $found = "no" ; then | |
8464 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8465 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8466 | fi | |
8467 | ||
8468 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8469 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8470 | fi | |
8471 | ||
8472 | CFLAGS="$CFLAGS -Werror=init-self" | |
8473 | ||
8474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 | |
8475 | $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } | |
8476 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` | |
8477 | if eval \${$cacheid+:} false; then : | |
8478 | $as_echo_n "(cached) " >&6 | |
8479 | else | |
8480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8481 | /* end confdefs.h. */ | |
8482 | int i; | |
8483 | int | |
8484 | main () | |
8485 | { | |
8486 | ||
8487 | ; | |
8488 | return 0; | |
8489 | } | |
8490 | _ACEOF | |
8491 | if ac_fn_c_try_link "$LINENO"; then : | |
8492 | eval $cacheid=yes | |
8493 | else | |
8494 | eval $cacheid=no | |
8495 | fi | |
8496 | rm -f core conftest.err conftest.$ac_objext \ | |
8497 | conftest$ac_exeext conftest.$ac_ext | |
8498 | fi | |
8499 | ||
8500 | ||
8501 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8502 | ||
8503 | eval supported=\$$cacheid | |
8504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8505 | $as_echo "$supported" >&6; } | |
8506 | if test "$supported" = "yes" ; then | |
8507 | BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" | |
8508 | found="yes" | |
8509 | fi | |
8510 | fi | |
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | xorg_testset_save_CFLAGS="$CFLAGS" | |
8527 | ||
8528 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
8529 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
8531 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
8532 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
8533 | $as_echo_n "(cached) " >&6 | |
8534 | else | |
8535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8536 | /* end confdefs.h. */ | |
8537 | int i; | |
8538 | _ACEOF | |
8539 | if ac_fn_c_try_compile "$LINENO"; then : | |
8540 | xorg_cv_cc_flag_unknown_warning_option=yes | |
8541 | else | |
8542 | xorg_cv_cc_flag_unknown_warning_option=no | |
8543 | fi | |
8544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8545 | fi | |
8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
8547 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
8548 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
8549 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8550 | fi | |
8551 | ||
8552 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
8553 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8554 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8555 | fi | |
8556 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
8558 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
8559 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
8560 | $as_echo_n "(cached) " >&6 | |
8561 | else | |
8562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8563 | /* end confdefs.h. */ | |
8564 | int i; | |
8565 | _ACEOF | |
8566 | if ac_fn_c_try_compile "$LINENO"; then : | |
8567 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
8568 | else | |
8569 | xorg_cv_cc_flag_unused_command_line_argument=no | |
8570 | fi | |
8571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8572 | fi | |
8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
8574 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
8575 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
8576 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8577 | fi | |
8578 | ||
8579 | found="no" | |
8580 | ||
8581 | if test $found = "no" ; then | |
8582 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8583 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8584 | fi | |
8585 | ||
8586 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8587 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8588 | fi | |
8589 | ||
8590 | CFLAGS="$CFLAGS -Werror=main" | |
8591 | ||
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 | |
8593 | $as_echo_n "checking if $CC supports -Werror=main... " >&6; } | |
8594 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` | |
8595 | if eval \${$cacheid+:} false; then : | |
8596 | $as_echo_n "(cached) " >&6 | |
8597 | else | |
8598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8599 | /* end confdefs.h. */ | |
8600 | int i; | |
8601 | int | |
8602 | main () | |
8603 | { | |
8604 | ||
8605 | ; | |
8606 | return 0; | |
8607 | } | |
8608 | _ACEOF | |
8609 | if ac_fn_c_try_link "$LINENO"; then : | |
8610 | eval $cacheid=yes | |
8611 | else | |
8612 | eval $cacheid=no | |
8613 | fi | |
8614 | rm -f core conftest.err conftest.$ac_objext \ | |
8615 | conftest$ac_exeext conftest.$ac_ext | |
8616 | fi | |
8617 | ||
8618 | ||
8619 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8620 | ||
8621 | eval supported=\$$cacheid | |
8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8623 | $as_echo "$supported" >&6; } | |
8624 | if test "$supported" = "yes" ; then | |
8625 | BASE_CFLAGS="$BASE_CFLAGS -Werror=main" | |
8626 | found="yes" | |
8627 | fi | |
8628 | fi | |
8629 | ||
8630 | ||
8631 | ||
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | ||
8638 | ||
8639 | ||
8640 | ||
8641 | ||
8642 | ||
8643 | ||
8644 | xorg_testset_save_CFLAGS="$CFLAGS" | |
8645 | ||
8646 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
8647 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
8649 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
8650 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
8651 | $as_echo_n "(cached) " >&6 | |
8652 | else | |
8653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8654 | /* end confdefs.h. */ | |
8655 | int i; | |
8656 | _ACEOF | |
8657 | if ac_fn_c_try_compile "$LINENO"; then : | |
8658 | xorg_cv_cc_flag_unknown_warning_option=yes | |
8659 | else | |
8660 | xorg_cv_cc_flag_unknown_warning_option=no | |
8661 | fi | |
8662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8663 | fi | |
8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
8665 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
8666 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
8667 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8668 | fi | |
8669 | ||
8670 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
8671 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8672 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8673 | fi | |
8674 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
8676 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
8677 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
8678 | $as_echo_n "(cached) " >&6 | |
8679 | else | |
8680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8681 | /* end confdefs.h. */ | |
8682 | int i; | |
8683 | _ACEOF | |
8684 | if ac_fn_c_try_compile "$LINENO"; then : | |
8685 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
8686 | else | |
8687 | xorg_cv_cc_flag_unused_command_line_argument=no | |
8688 | fi | |
8689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8690 | fi | |
8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
8692 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
8693 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
8694 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8695 | fi | |
8696 | ||
8697 | found="no" | |
8698 | ||
8699 | if test $found = "no" ; then | |
8700 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8701 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8702 | fi | |
8703 | ||
8704 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8705 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8706 | fi | |
8707 | ||
8708 | CFLAGS="$CFLAGS -Werror=missing-braces" | |
8709 | ||
8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 | |
8711 | $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } | |
8712 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` | |
8713 | if eval \${$cacheid+:} false; then : | |
8714 | $as_echo_n "(cached) " >&6 | |
8715 | else | |
8716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8717 | /* end confdefs.h. */ | |
8718 | int i; | |
8719 | int | |
8720 | main () | |
8721 | { | |
8722 | ||
8723 | ; | |
8724 | return 0; | |
8725 | } | |
8726 | _ACEOF | |
8727 | if ac_fn_c_try_link "$LINENO"; then : | |
8728 | eval $cacheid=yes | |
8729 | else | |
8730 | eval $cacheid=no | |
8731 | fi | |
8732 | rm -f core conftest.err conftest.$ac_objext \ | |
8733 | conftest$ac_exeext conftest.$ac_ext | |
8734 | fi | |
8735 | ||
8736 | ||
8737 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8738 | ||
8739 | eval supported=\$$cacheid | |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8741 | $as_echo "$supported" >&6; } | |
8742 | if test "$supported" = "yes" ; then | |
8743 | BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" | |
8744 | found="yes" | |
8745 | fi | |
8746 | fi | |
8747 | ||
8748 | ||
8749 | ||
8750 | ||
8751 | ||
8752 | ||
8753 | ||
8754 | ||
8755 | ||
8756 | ||
8757 | ||
8758 | ||
8759 | ||
8760 | ||
8761 | ||
8762 | xorg_testset_save_CFLAGS="$CFLAGS" | |
8763 | ||
8764 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
8765 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
8767 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
8768 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
8769 | $as_echo_n "(cached) " >&6 | |
8770 | else | |
8771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8772 | /* end confdefs.h. */ | |
8773 | int i; | |
8774 | _ACEOF | |
8775 | if ac_fn_c_try_compile "$LINENO"; then : | |
8776 | xorg_cv_cc_flag_unknown_warning_option=yes | |
8777 | else | |
8778 | xorg_cv_cc_flag_unknown_warning_option=no | |
8779 | fi | |
8780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8781 | fi | |
8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
8783 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
8784 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
8785 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8786 | fi | |
8787 | ||
8788 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
8789 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8790 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8791 | fi | |
8792 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
8794 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
8795 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
8796 | $as_echo_n "(cached) " >&6 | |
8797 | else | |
8798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8799 | /* end confdefs.h. */ | |
8800 | int i; | |
8801 | _ACEOF | |
8802 | if ac_fn_c_try_compile "$LINENO"; then : | |
8803 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
8804 | else | |
8805 | xorg_cv_cc_flag_unused_command_line_argument=no | |
8806 | fi | |
8807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8808 | fi | |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
8810 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
8811 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
8812 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8813 | fi | |
8814 | ||
8815 | found="no" | |
8816 | ||
8817 | if test $found = "no" ; then | |
8818 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8819 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8820 | fi | |
8821 | ||
8822 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8823 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8824 | fi | |
8825 | ||
8826 | CFLAGS="$CFLAGS -Werror=sequence-point" | |
8827 | ||
8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 | |
8829 | $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } | |
8830 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` | |
8831 | if eval \${$cacheid+:} false; then : | |
8832 | $as_echo_n "(cached) " >&6 | |
8833 | else | |
8834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8835 | /* end confdefs.h. */ | |
8836 | int i; | |
8837 | int | |
8838 | main () | |
8839 | { | |
8840 | ||
8841 | ; | |
8842 | return 0; | |
8843 | } | |
8844 | _ACEOF | |
8845 | if ac_fn_c_try_link "$LINENO"; then : | |
8846 | eval $cacheid=yes | |
8847 | else | |
8848 | eval $cacheid=no | |
8849 | fi | |
8850 | rm -f core conftest.err conftest.$ac_objext \ | |
8851 | conftest$ac_exeext conftest.$ac_ext | |
8852 | fi | |
8853 | ||
8854 | ||
8855 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8856 | ||
8857 | eval supported=\$$cacheid | |
8858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8859 | $as_echo "$supported" >&6; } | |
8860 | if test "$supported" = "yes" ; then | |
8861 | BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" | |
8862 | found="yes" | |
8863 | fi | |
8864 | fi | |
8865 | ||
8866 | ||
8867 | ||
8868 | ||
8869 | ||
8870 | ||
8871 | ||
8872 | ||
8873 | ||
8874 | ||
8875 | ||
8876 | ||
8877 | ||
8878 | ||
8879 | ||
8880 | xorg_testset_save_CFLAGS="$CFLAGS" | |
8881 | ||
8882 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
8883 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
8885 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
8886 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
8887 | $as_echo_n "(cached) " >&6 | |
8888 | else | |
8889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8890 | /* end confdefs.h. */ | |
8891 | int i; | |
8892 | _ACEOF | |
8893 | if ac_fn_c_try_compile "$LINENO"; then : | |
8894 | xorg_cv_cc_flag_unknown_warning_option=yes | |
8895 | else | |
8896 | xorg_cv_cc_flag_unknown_warning_option=no | |
8897 | fi | |
8898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8899 | fi | |
8900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
8901 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
8902 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
8903 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8904 | fi | |
8905 | ||
8906 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
8907 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8908 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8909 | fi | |
8910 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
8912 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
8913 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
8914 | $as_echo_n "(cached) " >&6 | |
8915 | else | |
8916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8917 | /* end confdefs.h. */ | |
8918 | int i; | |
8919 | _ACEOF | |
8920 | if ac_fn_c_try_compile "$LINENO"; then : | |
8921 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
8922 | else | |
8923 | xorg_cv_cc_flag_unused_command_line_argument=no | |
8924 | fi | |
8925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8926 | fi | |
8927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
8928 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
8929 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
8930 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8931 | fi | |
8932 | ||
8933 | found="no" | |
8934 | ||
8935 | if test $found = "no" ; then | |
8936 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8937 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8938 | fi | |
8939 | ||
8940 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8941 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8942 | fi | |
8943 | ||
8944 | CFLAGS="$CFLAGS -Werror=return-type" | |
8945 | ||
8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 | |
8947 | $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } | |
8948 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` | |
8949 | if eval \${$cacheid+:} false; then : | |
8950 | $as_echo_n "(cached) " >&6 | |
8951 | else | |
8952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8953 | /* end confdefs.h. */ | |
8954 | int i; | |
8955 | int | |
8956 | main () | |
8957 | { | |
8958 | ||
8959 | ; | |
8960 | return 0; | |
8961 | } | |
8962 | _ACEOF | |
8963 | if ac_fn_c_try_link "$LINENO"; then : | |
8964 | eval $cacheid=yes | |
8965 | else | |
8966 | eval $cacheid=no | |
8967 | fi | |
8968 | rm -f core conftest.err conftest.$ac_objext \ | |
8969 | conftest$ac_exeext conftest.$ac_ext | |
8970 | fi | |
8971 | ||
8972 | ||
8973 | CFLAGS="$xorg_testset_save_CFLAGS" | |
8974 | ||
8975 | eval supported=\$$cacheid | |
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
8977 | $as_echo "$supported" >&6; } | |
8978 | if test "$supported" = "yes" ; then | |
8979 | BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" | |
8980 | found="yes" | |
8981 | fi | |
8982 | fi | |
8983 | ||
8984 | if test $found = "no" ; then | |
8985 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
8986 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
8987 | fi | |
8988 | ||
8989 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
8990 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
8991 | fi | |
8992 | ||
8993 | CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" | |
8994 | ||
8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 | |
8996 | $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } | |
8997 | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` | |
8998 | if eval \${$cacheid+:} false; then : | |
8999 | $as_echo_n "(cached) " >&6 | |
9000 | else | |
9001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9002 | /* end confdefs.h. */ | |
9003 | int i; | |
9004 | int | |
9005 | main () | |
9006 | { | |
9007 | ||
9008 | ; | |
9009 | return 0; | |
9010 | } | |
9011 | _ACEOF | |
9012 | if ac_fn_c_try_link "$LINENO"; then : | |
9013 | eval $cacheid=yes | |
9014 | else | |
9015 | eval $cacheid=no | |
9016 | fi | |
9017 | rm -f core conftest.err conftest.$ac_objext \ | |
9018 | conftest$ac_exeext conftest.$ac_ext | |
9019 | fi | |
9020 | ||
9021 | ||
9022 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9023 | ||
9024 | eval supported=\$$cacheid | |
9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9026 | $as_echo "$supported" >&6; } | |
9027 | if test "$supported" = "yes" ; then | |
9028 | BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" | |
9029 | found="yes" | |
9030 | fi | |
9031 | fi | |
9032 | ||
9033 | ||
9034 | ||
9035 | ||
9036 | ||
9037 | ||
9038 | ||
9039 | ||
9040 | ||
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | ||
9046 | ||
9047 | xorg_testset_save_CFLAGS="$CFLAGS" | |
9048 | ||
9049 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
9050 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
9052 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
9053 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
9054 | $as_echo_n "(cached) " >&6 | |
9055 | else | |
9056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9057 | /* end confdefs.h. */ | |
9058 | int i; | |
9059 | _ACEOF | |
9060 | if ac_fn_c_try_compile "$LINENO"; then : | |
9061 | xorg_cv_cc_flag_unknown_warning_option=yes | |
9062 | else | |
9063 | xorg_cv_cc_flag_unknown_warning_option=no | |
9064 | fi | |
9065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9066 | fi | |
9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
9068 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
9069 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
9070 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9071 | fi | |
9072 | ||
9073 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
9074 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9075 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9076 | fi | |
9077 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
9079 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
9080 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
9081 | $as_echo_n "(cached) " >&6 | |
9082 | else | |
9083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9084 | /* end confdefs.h. */ | |
9085 | int i; | |
9086 | _ACEOF | |
9087 | if ac_fn_c_try_compile "$LINENO"; then : | |
9088 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
9089 | else | |
9090 | xorg_cv_cc_flag_unused_command_line_argument=no | |
9091 | fi | |
9092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9093 | fi | |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
9095 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
9096 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
9097 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9098 | fi | |
9099 | ||
9100 | found="no" | |
9101 | ||
9102 | if test $found = "no" ; then | |
9103 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9104 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9105 | fi | |
9106 | ||
9107 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9108 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9109 | fi | |
9110 | ||
9111 | CFLAGS="$CFLAGS -Werror=trigraphs" | |
9112 | ||
9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 | |
9114 | $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } | |
9115 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` | |
9116 | if eval \${$cacheid+:} false; then : | |
9117 | $as_echo_n "(cached) " >&6 | |
9118 | else | |
9119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9120 | /* end confdefs.h. */ | |
9121 | int i; | |
9122 | int | |
9123 | main () | |
9124 | { | |
9125 | ||
9126 | ; | |
9127 | return 0; | |
9128 | } | |
9129 | _ACEOF | |
9130 | if ac_fn_c_try_link "$LINENO"; then : | |
9131 | eval $cacheid=yes | |
9132 | else | |
9133 | eval $cacheid=no | |
9134 | fi | |
9135 | rm -f core conftest.err conftest.$ac_objext \ | |
9136 | conftest$ac_exeext conftest.$ac_ext | |
9137 | fi | |
9138 | ||
9139 | ||
9140 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9141 | ||
9142 | eval supported=\$$cacheid | |
9143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9144 | $as_echo "$supported" >&6; } | |
9145 | if test "$supported" = "yes" ; then | |
9146 | BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" | |
9147 | found="yes" | |
9148 | fi | |
9149 | fi | |
9150 | ||
9151 | ||
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | ||
9162 | ||
9163 | ||
9164 | ||
9165 | xorg_testset_save_CFLAGS="$CFLAGS" | |
9166 | ||
9167 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
9168 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
9170 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
9171 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
9172 | $as_echo_n "(cached) " >&6 | |
9173 | else | |
9174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9175 | /* end confdefs.h. */ | |
9176 | int i; | |
9177 | _ACEOF | |
9178 | if ac_fn_c_try_compile "$LINENO"; then : | |
9179 | xorg_cv_cc_flag_unknown_warning_option=yes | |
9180 | else | |
9181 | xorg_cv_cc_flag_unknown_warning_option=no | |
9182 | fi | |
9183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9184 | fi | |
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
9186 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
9187 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
9188 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9189 | fi | |
9190 | ||
9191 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
9192 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9193 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9194 | fi | |
9195 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
9197 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
9198 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
9199 | $as_echo_n "(cached) " >&6 | |
9200 | else | |
9201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9202 | /* end confdefs.h. */ | |
9203 | int i; | |
9204 | _ACEOF | |
9205 | if ac_fn_c_try_compile "$LINENO"; then : | |
9206 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
9207 | else | |
9208 | xorg_cv_cc_flag_unused_command_line_argument=no | |
9209 | fi | |
9210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9211 | fi | |
9212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
9213 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
9214 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
9215 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9216 | fi | |
9217 | ||
9218 | found="no" | |
9219 | ||
9220 | if test $found = "no" ; then | |
9221 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9222 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9223 | fi | |
9224 | ||
9225 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9226 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9227 | fi | |
9228 | ||
9229 | CFLAGS="$CFLAGS -Werror=array-bounds" | |
9230 | ||
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 | |
9232 | $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } | |
9233 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` | |
9234 | if eval \${$cacheid+:} false; then : | |
9235 | $as_echo_n "(cached) " >&6 | |
9236 | else | |
9237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9238 | /* end confdefs.h. */ | |
9239 | int i; | |
9240 | int | |
9241 | main () | |
9242 | { | |
9243 | ||
9244 | ; | |
9245 | return 0; | |
9246 | } | |
9247 | _ACEOF | |
9248 | if ac_fn_c_try_link "$LINENO"; then : | |
9249 | eval $cacheid=yes | |
9250 | else | |
9251 | eval $cacheid=no | |
9252 | fi | |
9253 | rm -f core conftest.err conftest.$ac_objext \ | |
9254 | conftest$ac_exeext conftest.$ac_ext | |
9255 | fi | |
9256 | ||
9257 | ||
9258 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9259 | ||
9260 | eval supported=\$$cacheid | |
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9262 | $as_echo "$supported" >&6; } | |
9263 | if test "$supported" = "yes" ; then | |
9264 | BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" | |
9265 | found="yes" | |
9266 | fi | |
9267 | fi | |
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | xorg_testset_save_CFLAGS="$CFLAGS" | |
9284 | ||
9285 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
9286 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
9288 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
9289 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
9290 | $as_echo_n "(cached) " >&6 | |
9291 | else | |
9292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9293 | /* end confdefs.h. */ | |
9294 | int i; | |
9295 | _ACEOF | |
9296 | if ac_fn_c_try_compile "$LINENO"; then : | |
9297 | xorg_cv_cc_flag_unknown_warning_option=yes | |
9298 | else | |
9299 | xorg_cv_cc_flag_unknown_warning_option=no | |
9300 | fi | |
9301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9302 | fi | |
9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
9304 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
9305 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
9306 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9307 | fi | |
9308 | ||
9309 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
9310 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9311 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9312 | fi | |
9313 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
9315 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
9316 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
9317 | $as_echo_n "(cached) " >&6 | |
9318 | else | |
9319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9320 | /* end confdefs.h. */ | |
9321 | int i; | |
9322 | _ACEOF | |
9323 | if ac_fn_c_try_compile "$LINENO"; then : | |
9324 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
9325 | else | |
9326 | xorg_cv_cc_flag_unused_command_line_argument=no | |
9327 | fi | |
9328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9329 | fi | |
9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
9331 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
9332 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
9333 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9334 | fi | |
9335 | ||
9336 | found="no" | |
9337 | ||
9338 | if test $found = "no" ; then | |
9339 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9340 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9341 | fi | |
9342 | ||
9343 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9344 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9345 | fi | |
9346 | ||
9347 | CFLAGS="$CFLAGS -Werror=write-strings" | |
9348 | ||
9349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 | |
9350 | $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } | |
9351 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` | |
9352 | if eval \${$cacheid+:} false; then : | |
9353 | $as_echo_n "(cached) " >&6 | |
9354 | else | |
9355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9356 | /* end confdefs.h. */ | |
9357 | int i; | |
9358 | int | |
9359 | main () | |
9360 | { | |
9361 | ||
9362 | ; | |
9363 | return 0; | |
9364 | } | |
9365 | _ACEOF | |
9366 | if ac_fn_c_try_link "$LINENO"; then : | |
9367 | eval $cacheid=yes | |
9368 | else | |
9369 | eval $cacheid=no | |
9370 | fi | |
9371 | rm -f core conftest.err conftest.$ac_objext \ | |
9372 | conftest$ac_exeext conftest.$ac_ext | |
9373 | fi | |
9374 | ||
9375 | ||
9376 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9377 | ||
9378 | eval supported=\$$cacheid | |
9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9380 | $as_echo "$supported" >&6; } | |
9381 | if test "$supported" = "yes" ; then | |
9382 | BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" | |
9383 | found="yes" | |
9384 | fi | |
9385 | fi | |
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | xorg_testset_save_CFLAGS="$CFLAGS" | |
9402 | ||
9403 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
9404 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
9406 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
9407 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
9408 | $as_echo_n "(cached) " >&6 | |
9409 | else | |
9410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9411 | /* end confdefs.h. */ | |
9412 | int i; | |
9413 | _ACEOF | |
9414 | if ac_fn_c_try_compile "$LINENO"; then : | |
9415 | xorg_cv_cc_flag_unknown_warning_option=yes | |
9416 | else | |
9417 | xorg_cv_cc_flag_unknown_warning_option=no | |
9418 | fi | |
9419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9420 | fi | |
9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
9422 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
9423 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
9424 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9425 | fi | |
9426 | ||
9427 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
9428 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9429 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9430 | fi | |
9431 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
9433 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
9434 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
9435 | $as_echo_n "(cached) " >&6 | |
9436 | else | |
9437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9438 | /* end confdefs.h. */ | |
9439 | int i; | |
9440 | _ACEOF | |
9441 | if ac_fn_c_try_compile "$LINENO"; then : | |
9442 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
9443 | else | |
9444 | xorg_cv_cc_flag_unused_command_line_argument=no | |
9445 | fi | |
9446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9447 | fi | |
9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
9449 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
9450 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
9451 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9452 | fi | |
9453 | ||
9454 | found="no" | |
9455 | ||
9456 | if test $found = "no" ; then | |
9457 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9458 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9459 | fi | |
9460 | ||
9461 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9462 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9463 | fi | |
9464 | ||
9465 | CFLAGS="$CFLAGS -Werror=address" | |
9466 | ||
9467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 | |
9468 | $as_echo_n "checking if $CC supports -Werror=address... " >&6; } | |
9469 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` | |
9470 | if eval \${$cacheid+:} false; then : | |
9471 | $as_echo_n "(cached) " >&6 | |
9472 | else | |
9473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9474 | /* end confdefs.h. */ | |
9475 | int i; | |
9476 | int | |
9477 | main () | |
9478 | { | |
9479 | ||
9480 | ; | |
9481 | return 0; | |
9482 | } | |
9483 | _ACEOF | |
9484 | if ac_fn_c_try_link "$LINENO"; then : | |
9485 | eval $cacheid=yes | |
9486 | else | |
9487 | eval $cacheid=no | |
9488 | fi | |
9489 | rm -f core conftest.err conftest.$ac_objext \ | |
9490 | conftest$ac_exeext conftest.$ac_ext | |
9491 | fi | |
9492 | ||
9493 | ||
9494 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9495 | ||
9496 | eval supported=\$$cacheid | |
9497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9498 | $as_echo "$supported" >&6; } | |
9499 | if test "$supported" = "yes" ; then | |
9500 | BASE_CFLAGS="$BASE_CFLAGS -Werror=address" | |
9501 | found="yes" | |
9502 | fi | |
9503 | fi | |
9504 | ||
9505 | ||
9506 | ||
9507 | ||
9508 | ||
9509 | ||
9510 | ||
9511 | ||
9512 | ||
9513 | ||
9514 | ||
9515 | ||
9516 | ||
9517 | ||
9518 | ||
9519 | xorg_testset_save_CFLAGS="$CFLAGS" | |
9520 | ||
9521 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
9522 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
9524 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
9525 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
9526 | $as_echo_n "(cached) " >&6 | |
9527 | else | |
9528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9529 | /* end confdefs.h. */ | |
9530 | int i; | |
9531 | _ACEOF | |
9532 | if ac_fn_c_try_compile "$LINENO"; then : | |
9533 | xorg_cv_cc_flag_unknown_warning_option=yes | |
9534 | else | |
9535 | xorg_cv_cc_flag_unknown_warning_option=no | |
9536 | fi | |
9537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9538 | fi | |
9539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
9540 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
9541 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
9542 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9543 | fi | |
9544 | ||
9545 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
9546 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9547 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9548 | fi | |
9549 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
9551 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
9552 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
9553 | $as_echo_n "(cached) " >&6 | |
9554 | else | |
9555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9556 | /* end confdefs.h. */ | |
9557 | int i; | |
9558 | _ACEOF | |
9559 | if ac_fn_c_try_compile "$LINENO"; then : | |
9560 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
9561 | else | |
9562 | xorg_cv_cc_flag_unused_command_line_argument=no | |
9563 | fi | |
9564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9565 | fi | |
9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
9567 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
9568 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
9569 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9570 | fi | |
9571 | ||
9572 | found="no" | |
9573 | ||
9574 | if test $found = "no" ; then | |
9575 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9576 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9577 | fi | |
9578 | ||
9579 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9580 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9581 | fi | |
9582 | ||
9583 | CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" | |
9584 | ||
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 | |
9586 | $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } | |
9587 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` | |
9588 | if eval \${$cacheid+:} false; then : | |
9589 | $as_echo_n "(cached) " >&6 | |
9590 | else | |
9591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9592 | /* end confdefs.h. */ | |
9593 | int i; | |
9594 | int | |
9595 | main () | |
9596 | { | |
9597 | ||
9598 | ; | |
9599 | return 0; | |
9600 | } | |
9601 | _ACEOF | |
9602 | if ac_fn_c_try_link "$LINENO"; then : | |
9603 | eval $cacheid=yes | |
9604 | else | |
9605 | eval $cacheid=no | |
9606 | fi | |
9607 | rm -f core conftest.err conftest.$ac_objext \ | |
9608 | conftest$ac_exeext conftest.$ac_ext | |
9609 | fi | |
9610 | ||
9611 | ||
9612 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9613 | ||
9614 | eval supported=\$$cacheid | |
9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9616 | $as_echo "$supported" >&6; } | |
9617 | if test "$supported" = "yes" ; then | |
9618 | BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" | |
9619 | found="yes" | |
9620 | fi | |
9621 | fi | |
9622 | ||
9623 | if test $found = "no" ; then | |
9624 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9625 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9626 | fi | |
9627 | ||
9628 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9629 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9630 | fi | |
9631 | ||
9632 | CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" | |
9633 | ||
9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 | |
9635 | $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } | |
9636 | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` | |
9637 | if eval \${$cacheid+:} false; then : | |
9638 | $as_echo_n "(cached) " >&6 | |
9639 | else | |
9640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9641 | /* end confdefs.h. */ | |
9642 | int i; | |
9643 | int | |
9644 | main () | |
9645 | { | |
9646 | ||
9647 | ; | |
9648 | return 0; | |
9649 | } | |
9650 | _ACEOF | |
9651 | if ac_fn_c_try_link "$LINENO"; then : | |
9652 | eval $cacheid=yes | |
9653 | else | |
9654 | eval $cacheid=no | |
9655 | fi | |
9656 | rm -f core conftest.err conftest.$ac_objext \ | |
9657 | conftest$ac_exeext conftest.$ac_ext | |
9658 | fi | |
9659 | ||
9660 | ||
9661 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9662 | ||
9663 | eval supported=\$$cacheid | |
9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9665 | $as_echo "$supported" >&6; } | |
9666 | if test "$supported" = "yes" ; then | |
9667 | BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" | |
9668 | found="yes" | |
9669 | fi | |
9670 | fi | |
9671 | ||
9672 | ||
9673 | ||
9674 | ||
9675 | ||
9676 | ||
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | ||
9682 | ||
9683 | ||
9684 | ||
9685 | ||
9686 | xorg_testset_save_CFLAGS="$CFLAGS" | |
9687 | ||
9688 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
9689 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
9691 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
9692 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
9693 | $as_echo_n "(cached) " >&6 | |
9694 | else | |
9695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9696 | /* end confdefs.h. */ | |
9697 | int i; | |
9698 | _ACEOF | |
9699 | if ac_fn_c_try_compile "$LINENO"; then : | |
9700 | xorg_cv_cc_flag_unknown_warning_option=yes | |
9701 | else | |
9702 | xorg_cv_cc_flag_unknown_warning_option=no | |
9703 | fi | |
9704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9705 | fi | |
9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
9707 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
9708 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
9709 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9710 | fi | |
9711 | ||
9712 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
9713 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9714 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9715 | fi | |
9716 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
9718 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
9719 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
9720 | $as_echo_n "(cached) " >&6 | |
9721 | else | |
9722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9723 | /* end confdefs.h. */ | |
9724 | int i; | |
9725 | _ACEOF | |
9726 | if ac_fn_c_try_compile "$LINENO"; then : | |
9727 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
9728 | else | |
9729 | xorg_cv_cc_flag_unused_command_line_argument=no | |
9730 | fi | |
9731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9732 | fi | |
9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
9734 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
9735 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
9736 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9737 | fi | |
9738 | ||
9739 | found="no" | |
9740 | ||
9741 | if test $found = "no" ; then | |
9742 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9743 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9744 | fi | |
9745 | ||
9746 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9747 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9748 | fi | |
9749 | ||
9750 | CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" | |
9751 | ||
9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 | |
9753 | $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } | |
9754 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` | |
9755 | if eval \${$cacheid+:} false; then : | |
9756 | $as_echo_n "(cached) " >&6 | |
9757 | else | |
9758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9759 | /* end confdefs.h. */ | |
9760 | int i; | |
9761 | int | |
9762 | main () | |
9763 | { | |
9764 | ||
9765 | ; | |
9766 | return 0; | |
9767 | } | |
9768 | _ACEOF | |
9769 | if ac_fn_c_try_link "$LINENO"; then : | |
9770 | eval $cacheid=yes | |
9771 | else | |
9772 | eval $cacheid=no | |
9773 | fi | |
9774 | rm -f core conftest.err conftest.$ac_objext \ | |
9775 | conftest$ac_exeext conftest.$ac_ext | |
9776 | fi | |
9777 | ||
9778 | ||
9779 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9780 | ||
9781 | eval supported=\$$cacheid | |
9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9783 | $as_echo "$supported" >&6; } | |
9784 | if test "$supported" = "yes" ; then | |
9785 | BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" | |
9786 | found="yes" | |
9787 | fi | |
9788 | fi | |
9789 | ||
9790 | # Also -errwarn=E_BAD_PTR_INT_COMBINATION | |
9791 | else | |
9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 | |
9793 | $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} | |
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | xorg_testset_save_CFLAGS="$CFLAGS" | |
9808 | ||
9809 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
9810 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
9812 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
9813 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
9814 | $as_echo_n "(cached) " >&6 | |
9815 | else | |
9816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9817 | /* end confdefs.h. */ | |
9818 | int i; | |
9819 | _ACEOF | |
9820 | if ac_fn_c_try_compile "$LINENO"; then : | |
9821 | xorg_cv_cc_flag_unknown_warning_option=yes | |
9822 | else | |
9823 | xorg_cv_cc_flag_unknown_warning_option=no | |
9824 | fi | |
9825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9826 | fi | |
9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
9828 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
9829 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
9830 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9831 | fi | |
9832 | ||
9833 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
9834 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9835 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9836 | fi | |
9837 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
9839 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
9840 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
9841 | $as_echo_n "(cached) " >&6 | |
9842 | else | |
9843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9844 | /* end confdefs.h. */ | |
9845 | int i; | |
9846 | _ACEOF | |
9847 | if ac_fn_c_try_compile "$LINENO"; then : | |
9848 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
9849 | else | |
9850 | xorg_cv_cc_flag_unused_command_line_argument=no | |
9851 | fi | |
9852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9853 | fi | |
9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
9855 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
9856 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
9857 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9858 | fi | |
9859 | ||
9860 | found="no" | |
9861 | ||
9862 | if test $found = "no" ; then | |
9863 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9864 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9865 | fi | |
9866 | ||
9867 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9868 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9869 | fi | |
9870 | ||
9871 | CFLAGS="$CFLAGS -Wimplicit" | |
9872 | ||
9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 | |
9874 | $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } | |
9875 | cacheid=xorg_cv_cc_flag__Wimplicit | |
9876 | if eval \${$cacheid+:} false; then : | |
9877 | $as_echo_n "(cached) " >&6 | |
9878 | else | |
9879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9880 | /* end confdefs.h. */ | |
9881 | int i; | |
9882 | int | |
9883 | main () | |
9884 | { | |
9885 | ||
9886 | ; | |
9887 | return 0; | |
9888 | } | |
9889 | _ACEOF | |
9890 | if ac_fn_c_try_link "$LINENO"; then : | |
9891 | eval $cacheid=yes | |
9892 | else | |
9893 | eval $cacheid=no | |
9894 | fi | |
9895 | rm -f core conftest.err conftest.$ac_objext \ | |
9896 | conftest$ac_exeext conftest.$ac_ext | |
9897 | fi | |
9898 | ||
9899 | ||
9900 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9901 | ||
9902 | eval supported=\$$cacheid | |
9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
9904 | $as_echo "$supported" >&6; } | |
9905 | if test "$supported" = "yes" ; then | |
9906 | BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" | |
9907 | found="yes" | |
9908 | fi | |
9909 | fi | |
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | xorg_testset_save_CFLAGS="$CFLAGS" | |
9926 | ||
9927 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
9928 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
9930 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
9931 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
9932 | $as_echo_n "(cached) " >&6 | |
9933 | else | |
9934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9935 | /* end confdefs.h. */ | |
9936 | int i; | |
9937 | _ACEOF | |
9938 | if ac_fn_c_try_compile "$LINENO"; then : | |
9939 | xorg_cv_cc_flag_unknown_warning_option=yes | |
9940 | else | |
9941 | xorg_cv_cc_flag_unknown_warning_option=no | |
9942 | fi | |
9943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9944 | fi | |
9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
9946 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
9947 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
9948 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9949 | fi | |
9950 | ||
9951 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
9952 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9953 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9954 | fi | |
9955 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
9957 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
9958 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
9959 | $as_echo_n "(cached) " >&6 | |
9960 | else | |
9961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9962 | /* end confdefs.h. */ | |
9963 | int i; | |
9964 | _ACEOF | |
9965 | if ac_fn_c_try_compile "$LINENO"; then : | |
9966 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
9967 | else | |
9968 | xorg_cv_cc_flag_unused_command_line_argument=no | |
9969 | fi | |
9970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9971 | fi | |
9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
9973 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
9974 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
9975 | CFLAGS="$xorg_testset_save_CFLAGS" | |
9976 | fi | |
9977 | ||
9978 | found="no" | |
9979 | ||
9980 | if test $found = "no" ; then | |
9981 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
9982 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
9983 | fi | |
9984 | ||
9985 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
9986 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
9987 | fi | |
9988 | ||
9989 | CFLAGS="$CFLAGS -Wnonnull" | |
9990 | ||
9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 | |
9992 | $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } | |
9993 | cacheid=xorg_cv_cc_flag__Wnonnull | |
9994 | if eval \${$cacheid+:} false; then : | |
9995 | $as_echo_n "(cached) " >&6 | |
9996 | else | |
9997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9998 | /* end confdefs.h. */ | |
9999 | int i; | |
10000 | int | |
10001 | main () | |
10002 | { | |
10003 | ||
10004 | ; | |
10005 | return 0; | |
10006 | } | |
10007 | _ACEOF | |
10008 | if ac_fn_c_try_link "$LINENO"; then : | |
10009 | eval $cacheid=yes | |
10010 | else | |
10011 | eval $cacheid=no | |
10012 | fi | |
10013 | rm -f core conftest.err conftest.$ac_objext \ | |
10014 | conftest$ac_exeext conftest.$ac_ext | |
10015 | fi | |
10016 | ||
10017 | ||
10018 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10019 | ||
10020 | eval supported=\$$cacheid | |
10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10022 | $as_echo "$supported" >&6; } | |
10023 | if test "$supported" = "yes" ; then | |
10024 | BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" | |
10025 | found="yes" | |
10026 | fi | |
10027 | fi | |
10028 | ||
10029 | ||
10030 | ||
10031 | ||
10032 | ||
10033 | ||
10034 | ||
10035 | ||
10036 | ||
10037 | ||
10038 | ||
10039 | ||
10040 | ||
10041 | ||
10042 | ||
10043 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10044 | ||
10045 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10046 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10048 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10049 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10050 | $as_echo_n "(cached) " >&6 | |
10051 | else | |
10052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10053 | /* end confdefs.h. */ | |
10054 | int i; | |
10055 | _ACEOF | |
10056 | if ac_fn_c_try_compile "$LINENO"; then : | |
10057 | xorg_cv_cc_flag_unknown_warning_option=yes | |
10058 | else | |
10059 | xorg_cv_cc_flag_unknown_warning_option=no | |
10060 | fi | |
10061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10062 | fi | |
10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
10064 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
10065 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
10066 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10067 | fi | |
10068 | ||
10069 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
10070 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10071 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10072 | fi | |
10073 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
10075 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
10076 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
10077 | $as_echo_n "(cached) " >&6 | |
10078 | else | |
10079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10080 | /* end confdefs.h. */ | |
10081 | int i; | |
10082 | _ACEOF | |
10083 | if ac_fn_c_try_compile "$LINENO"; then : | |
10084 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
10085 | else | |
10086 | xorg_cv_cc_flag_unused_command_line_argument=no | |
10087 | fi | |
10088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10089 | fi | |
10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
10091 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
10092 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
10093 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10094 | fi | |
10095 | ||
10096 | found="no" | |
10097 | ||
10098 | if test $found = "no" ; then | |
10099 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10100 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10101 | fi | |
10102 | ||
10103 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10104 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10105 | fi | |
10106 | ||
10107 | CFLAGS="$CFLAGS -Winit-self" | |
10108 | ||
10109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 | |
10110 | $as_echo_n "checking if $CC supports -Winit-self... " >&6; } | |
10111 | cacheid=xorg_cv_cc_flag__Winit_self | |
10112 | if eval \${$cacheid+:} false; then : | |
10113 | $as_echo_n "(cached) " >&6 | |
10114 | else | |
10115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10116 | /* end confdefs.h. */ | |
10117 | int i; | |
10118 | int | |
10119 | main () | |
10120 | { | |
10121 | ||
10122 | ; | |
10123 | return 0; | |
10124 | } | |
10125 | _ACEOF | |
10126 | if ac_fn_c_try_link "$LINENO"; then : | |
10127 | eval $cacheid=yes | |
10128 | else | |
10129 | eval $cacheid=no | |
10130 | fi | |
10131 | rm -f core conftest.err conftest.$ac_objext \ | |
10132 | conftest$ac_exeext conftest.$ac_ext | |
10133 | fi | |
10134 | ||
10135 | ||
10136 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10137 | ||
10138 | eval supported=\$$cacheid | |
10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10140 | $as_echo "$supported" >&6; } | |
10141 | if test "$supported" = "yes" ; then | |
10142 | BASE_CFLAGS="$BASE_CFLAGS -Winit-self" | |
10143 | found="yes" | |
10144 | fi | |
10145 | fi | |
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10162 | ||
10163 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10164 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10166 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10167 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10168 | $as_echo_n "(cached) " >&6 | |
10169 | else | |
10170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10171 | /* end confdefs.h. */ | |
10172 | int i; | |
10173 | _ACEOF | |
10174 | if ac_fn_c_try_compile "$LINENO"; then : | |
10175 | xorg_cv_cc_flag_unknown_warning_option=yes | |
10176 | else | |
10177 | xorg_cv_cc_flag_unknown_warning_option=no | |
10178 | fi | |
10179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10180 | fi | |
10181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
10182 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
10183 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
10184 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10185 | fi | |
10186 | ||
10187 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
10188 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10189 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10190 | fi | |
10191 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
10193 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
10194 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
10195 | $as_echo_n "(cached) " >&6 | |
10196 | else | |
10197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10198 | /* end confdefs.h. */ | |
10199 | int i; | |
10200 | _ACEOF | |
10201 | if ac_fn_c_try_compile "$LINENO"; then : | |
10202 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
10203 | else | |
10204 | xorg_cv_cc_flag_unused_command_line_argument=no | |
10205 | fi | |
10206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10207 | fi | |
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
10209 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
10210 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
10211 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10212 | fi | |
10213 | ||
10214 | found="no" | |
10215 | ||
10216 | if test $found = "no" ; then | |
10217 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10218 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10219 | fi | |
10220 | ||
10221 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10222 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10223 | fi | |
10224 | ||
10225 | CFLAGS="$CFLAGS -Wmain" | |
10226 | ||
10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 | |
10228 | $as_echo_n "checking if $CC supports -Wmain... " >&6; } | |
10229 | cacheid=xorg_cv_cc_flag__Wmain | |
10230 | if eval \${$cacheid+:} false; then : | |
10231 | $as_echo_n "(cached) " >&6 | |
10232 | else | |
10233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10234 | /* end confdefs.h. */ | |
10235 | int i; | |
10236 | int | |
10237 | main () | |
10238 | { | |
10239 | ||
10240 | ; | |
10241 | return 0; | |
10242 | } | |
10243 | _ACEOF | |
10244 | if ac_fn_c_try_link "$LINENO"; then : | |
10245 | eval $cacheid=yes | |
10246 | else | |
10247 | eval $cacheid=no | |
10248 | fi | |
10249 | rm -f core conftest.err conftest.$ac_objext \ | |
10250 | conftest$ac_exeext conftest.$ac_ext | |
10251 | fi | |
10252 | ||
10253 | ||
10254 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10255 | ||
10256 | eval supported=\$$cacheid | |
10257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10258 | $as_echo "$supported" >&6; } | |
10259 | if test "$supported" = "yes" ; then | |
10260 | BASE_CFLAGS="$BASE_CFLAGS -Wmain" | |
10261 | found="yes" | |
10262 | fi | |
10263 | fi | |
10264 | ||
10265 | ||
10266 | ||
10267 | ||
10268 | ||
10269 | ||
10270 | ||
10271 | ||
10272 | ||
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10280 | ||
10281 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10282 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10284 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10285 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10286 | $as_echo_n "(cached) " >&6 | |
10287 | else | |
10288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10289 | /* end confdefs.h. */ | |
10290 | int i; | |
10291 | _ACEOF | |
10292 | if ac_fn_c_try_compile "$LINENO"; then : | |
10293 | xorg_cv_cc_flag_unknown_warning_option=yes | |
10294 | else | |
10295 | xorg_cv_cc_flag_unknown_warning_option=no | |
10296 | fi | |
10297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10298 | fi | |
10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
10300 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
10301 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
10302 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10303 | fi | |
10304 | ||
10305 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
10306 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10307 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10308 | fi | |
10309 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
10311 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
10312 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
10313 | $as_echo_n "(cached) " >&6 | |
10314 | else | |
10315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10316 | /* end confdefs.h. */ | |
10317 | int i; | |
10318 | _ACEOF | |
10319 | if ac_fn_c_try_compile "$LINENO"; then : | |
10320 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
10321 | else | |
10322 | xorg_cv_cc_flag_unused_command_line_argument=no | |
10323 | fi | |
10324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10325 | fi | |
10326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
10327 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
10328 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
10329 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10330 | fi | |
10331 | ||
10332 | found="no" | |
10333 | ||
10334 | if test $found = "no" ; then | |
10335 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10336 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10337 | fi | |
10338 | ||
10339 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10340 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10341 | fi | |
10342 | ||
10343 | CFLAGS="$CFLAGS -Wmissing-braces" | |
10344 | ||
10345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 | |
10346 | $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } | |
10347 | cacheid=xorg_cv_cc_flag__Wmissing_braces | |
10348 | if eval \${$cacheid+:} false; then : | |
10349 | $as_echo_n "(cached) " >&6 | |
10350 | else | |
10351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10352 | /* end confdefs.h. */ | |
10353 | int i; | |
10354 | int | |
10355 | main () | |
10356 | { | |
10357 | ||
10358 | ; | |
10359 | return 0; | |
10360 | } | |
10361 | _ACEOF | |
10362 | if ac_fn_c_try_link "$LINENO"; then : | |
10363 | eval $cacheid=yes | |
10364 | else | |
10365 | eval $cacheid=no | |
10366 | fi | |
10367 | rm -f core conftest.err conftest.$ac_objext \ | |
10368 | conftest$ac_exeext conftest.$ac_ext | |
10369 | fi | |
10370 | ||
10371 | ||
10372 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10373 | ||
10374 | eval supported=\$$cacheid | |
10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10376 | $as_echo "$supported" >&6; } | |
10377 | if test "$supported" = "yes" ; then | |
10378 | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" | |
10379 | found="yes" | |
10380 | fi | |
10381 | fi | |
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10398 | ||
10399 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10400 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10402 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10403 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10404 | $as_echo_n "(cached) " >&6 | |
10405 | else | |
10406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10407 | /* end confdefs.h. */ | |
10408 | int i; | |
10409 | _ACEOF | |
10410 | if ac_fn_c_try_compile "$LINENO"; then : | |
10411 | xorg_cv_cc_flag_unknown_warning_option=yes | |
10412 | else | |
10413 | xorg_cv_cc_flag_unknown_warning_option=no | |
10414 | fi | |
10415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10416 | fi | |
10417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
10418 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
10419 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
10420 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10421 | fi | |
10422 | ||
10423 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
10424 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10425 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10426 | fi | |
10427 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
10429 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
10430 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
10431 | $as_echo_n "(cached) " >&6 | |
10432 | else | |
10433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10434 | /* end confdefs.h. */ | |
10435 | int i; | |
10436 | _ACEOF | |
10437 | if ac_fn_c_try_compile "$LINENO"; then : | |
10438 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
10439 | else | |
10440 | xorg_cv_cc_flag_unused_command_line_argument=no | |
10441 | fi | |
10442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10443 | fi | |
10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
10445 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
10446 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
10447 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10448 | fi | |
10449 | ||
10450 | found="no" | |
10451 | ||
10452 | if test $found = "no" ; then | |
10453 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10454 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10455 | fi | |
10456 | ||
10457 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10458 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10459 | fi | |
10460 | ||
10461 | CFLAGS="$CFLAGS -Wsequence-point" | |
10462 | ||
10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 | |
10464 | $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } | |
10465 | cacheid=xorg_cv_cc_flag__Wsequence_point | |
10466 | if eval \${$cacheid+:} false; then : | |
10467 | $as_echo_n "(cached) " >&6 | |
10468 | else | |
10469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10470 | /* end confdefs.h. */ | |
10471 | int i; | |
10472 | int | |
10473 | main () | |
10474 | { | |
10475 | ||
10476 | ; | |
10477 | return 0; | |
10478 | } | |
10479 | _ACEOF | |
10480 | if ac_fn_c_try_link "$LINENO"; then : | |
10481 | eval $cacheid=yes | |
10482 | else | |
10483 | eval $cacheid=no | |
10484 | fi | |
10485 | rm -f core conftest.err conftest.$ac_objext \ | |
10486 | conftest$ac_exeext conftest.$ac_ext | |
10487 | fi | |
10488 | ||
10489 | ||
10490 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10491 | ||
10492 | eval supported=\$$cacheid | |
10493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10494 | $as_echo "$supported" >&6; } | |
10495 | if test "$supported" = "yes" ; then | |
10496 | BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" | |
10497 | found="yes" | |
10498 | fi | |
10499 | fi | |
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
10515 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10516 | ||
10517 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10518 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10520 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10521 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10522 | $as_echo_n "(cached) " >&6 | |
10523 | else | |
10524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10525 | /* end confdefs.h. */ | |
10526 | int i; | |
10527 | _ACEOF | |
10528 | if ac_fn_c_try_compile "$LINENO"; then : | |
10529 | xorg_cv_cc_flag_unknown_warning_option=yes | |
10530 | else | |
10531 | xorg_cv_cc_flag_unknown_warning_option=no | |
10532 | fi | |
10533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10534 | fi | |
10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
10536 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
10537 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
10538 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10539 | fi | |
10540 | ||
10541 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
10542 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10543 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10544 | fi | |
10545 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
10547 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
10548 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
10549 | $as_echo_n "(cached) " >&6 | |
10550 | else | |
10551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10552 | /* end confdefs.h. */ | |
10553 | int i; | |
10554 | _ACEOF | |
10555 | if ac_fn_c_try_compile "$LINENO"; then : | |
10556 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
10557 | else | |
10558 | xorg_cv_cc_flag_unused_command_line_argument=no | |
10559 | fi | |
10560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10561 | fi | |
10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
10563 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
10564 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
10565 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10566 | fi | |
10567 | ||
10568 | found="no" | |
10569 | ||
10570 | if test $found = "no" ; then | |
10571 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10572 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10573 | fi | |
10574 | ||
10575 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10576 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10577 | fi | |
10578 | ||
10579 | CFLAGS="$CFLAGS -Wreturn-type" | |
10580 | ||
10581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 | |
10582 | $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } | |
10583 | cacheid=xorg_cv_cc_flag__Wreturn_type | |
10584 | if eval \${$cacheid+:} false; then : | |
10585 | $as_echo_n "(cached) " >&6 | |
10586 | else | |
10587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10588 | /* end confdefs.h. */ | |
10589 | int i; | |
10590 | int | |
10591 | main () | |
10592 | { | |
10593 | ||
10594 | ; | |
10595 | return 0; | |
10596 | } | |
10597 | _ACEOF | |
10598 | if ac_fn_c_try_link "$LINENO"; then : | |
10599 | eval $cacheid=yes | |
10600 | else | |
10601 | eval $cacheid=no | |
10602 | fi | |
10603 | rm -f core conftest.err conftest.$ac_objext \ | |
10604 | conftest$ac_exeext conftest.$ac_ext | |
10605 | fi | |
10606 | ||
10607 | ||
10608 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10609 | ||
10610 | eval supported=\$$cacheid | |
10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10612 | $as_echo "$supported" >&6; } | |
10613 | if test "$supported" = "yes" ; then | |
10614 | BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" | |
10615 | found="yes" | |
10616 | fi | |
10617 | fi | |
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10634 | ||
10635 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10636 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10638 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10639 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10640 | $as_echo_n "(cached) " >&6 | |
10641 | else | |
10642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10643 | /* end confdefs.h. */ | |
10644 | int i; | |
10645 | _ACEOF | |
10646 | if ac_fn_c_try_compile "$LINENO"; then : | |
10647 | xorg_cv_cc_flag_unknown_warning_option=yes | |
10648 | else | |
10649 | xorg_cv_cc_flag_unknown_warning_option=no | |
10650 | fi | |
10651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10652 | fi | |
10653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
10654 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
10655 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
10656 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10657 | fi | |
10658 | ||
10659 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
10660 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10661 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10662 | fi | |
10663 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
10665 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
10666 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
10667 | $as_echo_n "(cached) " >&6 | |
10668 | else | |
10669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10670 | /* end confdefs.h. */ | |
10671 | int i; | |
10672 | _ACEOF | |
10673 | if ac_fn_c_try_compile "$LINENO"; then : | |
10674 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
10675 | else | |
10676 | xorg_cv_cc_flag_unused_command_line_argument=no | |
10677 | fi | |
10678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10679 | fi | |
10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
10681 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
10682 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
10683 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10684 | fi | |
10685 | ||
10686 | found="no" | |
10687 | ||
10688 | if test $found = "no" ; then | |
10689 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10690 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10691 | fi | |
10692 | ||
10693 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10694 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10695 | fi | |
10696 | ||
10697 | CFLAGS="$CFLAGS -Wtrigraphs" | |
10698 | ||
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 | |
10700 | $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } | |
10701 | cacheid=xorg_cv_cc_flag__Wtrigraphs | |
10702 | if eval \${$cacheid+:} false; then : | |
10703 | $as_echo_n "(cached) " >&6 | |
10704 | else | |
10705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10706 | /* end confdefs.h. */ | |
10707 | int i; | |
10708 | int | |
10709 | main () | |
10710 | { | |
10711 | ||
10712 | ; | |
10713 | return 0; | |
10714 | } | |
10715 | _ACEOF | |
10716 | if ac_fn_c_try_link "$LINENO"; then : | |
10717 | eval $cacheid=yes | |
10718 | else | |
10719 | eval $cacheid=no | |
10720 | fi | |
10721 | rm -f core conftest.err conftest.$ac_objext \ | |
10722 | conftest$ac_exeext conftest.$ac_ext | |
10723 | fi | |
10724 | ||
10725 | ||
10726 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10727 | ||
10728 | eval supported=\$$cacheid | |
10729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10730 | $as_echo "$supported" >&6; } | |
10731 | if test "$supported" = "yes" ; then | |
10732 | BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" | |
10733 | found="yes" | |
10734 | fi | |
10735 | fi | |
10736 | ||
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10752 | ||
10753 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10754 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10756 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10757 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10758 | $as_echo_n "(cached) " >&6 | |
10759 | else | |
10760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10761 | /* end confdefs.h. */ | |
10762 | int i; | |
10763 | _ACEOF | |
10764 | if ac_fn_c_try_compile "$LINENO"; then : | |
10765 | xorg_cv_cc_flag_unknown_warning_option=yes | |
10766 | else | |
10767 | xorg_cv_cc_flag_unknown_warning_option=no | |
10768 | fi | |
10769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10770 | fi | |
10771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
10772 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
10773 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
10774 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10775 | fi | |
10776 | ||
10777 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
10778 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10779 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10780 | fi | |
10781 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
10783 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
10784 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
10785 | $as_echo_n "(cached) " >&6 | |
10786 | else | |
10787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10788 | /* end confdefs.h. */ | |
10789 | int i; | |
10790 | _ACEOF | |
10791 | if ac_fn_c_try_compile "$LINENO"; then : | |
10792 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
10793 | else | |
10794 | xorg_cv_cc_flag_unused_command_line_argument=no | |
10795 | fi | |
10796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10797 | fi | |
10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
10799 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
10800 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
10801 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10802 | fi | |
10803 | ||
10804 | found="no" | |
10805 | ||
10806 | if test $found = "no" ; then | |
10807 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10808 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10809 | fi | |
10810 | ||
10811 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10812 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10813 | fi | |
10814 | ||
10815 | CFLAGS="$CFLAGS -Warray-bounds" | |
10816 | ||
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 | |
10818 | $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } | |
10819 | cacheid=xorg_cv_cc_flag__Warray_bounds | |
10820 | if eval \${$cacheid+:} false; then : | |
10821 | $as_echo_n "(cached) " >&6 | |
10822 | else | |
10823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10824 | /* end confdefs.h. */ | |
10825 | int i; | |
10826 | int | |
10827 | main () | |
10828 | { | |
10829 | ||
10830 | ; | |
10831 | return 0; | |
10832 | } | |
10833 | _ACEOF | |
10834 | if ac_fn_c_try_link "$LINENO"; then : | |
10835 | eval $cacheid=yes | |
10836 | else | |
10837 | eval $cacheid=no | |
10838 | fi | |
10839 | rm -f core conftest.err conftest.$ac_objext \ | |
10840 | conftest$ac_exeext conftest.$ac_ext | |
10841 | fi | |
10842 | ||
10843 | ||
10844 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10845 | ||
10846 | eval supported=\$$cacheid | |
10847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10848 | $as_echo "$supported" >&6; } | |
10849 | if test "$supported" = "yes" ; then | |
10850 | BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" | |
10851 | found="yes" | |
10852 | fi | |
10853 | fi | |
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10870 | ||
10871 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10872 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10874 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10875 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10876 | $as_echo_n "(cached) " >&6 | |
10877 | else | |
10878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10879 | /* end confdefs.h. */ | |
10880 | int i; | |
10881 | _ACEOF | |
10882 | if ac_fn_c_try_compile "$LINENO"; then : | |
10883 | xorg_cv_cc_flag_unknown_warning_option=yes | |
10884 | else | |
10885 | xorg_cv_cc_flag_unknown_warning_option=no | |
10886 | fi | |
10887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10888 | fi | |
10889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
10890 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
10891 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
10892 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10893 | fi | |
10894 | ||
10895 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
10896 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10897 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10898 | fi | |
10899 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
10901 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
10902 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
10903 | $as_echo_n "(cached) " >&6 | |
10904 | else | |
10905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10906 | /* end confdefs.h. */ | |
10907 | int i; | |
10908 | _ACEOF | |
10909 | if ac_fn_c_try_compile "$LINENO"; then : | |
10910 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
10911 | else | |
10912 | xorg_cv_cc_flag_unused_command_line_argument=no | |
10913 | fi | |
10914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10915 | fi | |
10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
10917 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
10918 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
10919 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10920 | fi | |
10921 | ||
10922 | found="no" | |
10923 | ||
10924 | if test $found = "no" ; then | |
10925 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
10926 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10927 | fi | |
10928 | ||
10929 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
10930 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
10931 | fi | |
10932 | ||
10933 | CFLAGS="$CFLAGS -Wwrite-strings" | |
10934 | ||
10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 | |
10936 | $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } | |
10937 | cacheid=xorg_cv_cc_flag__Wwrite_strings | |
10938 | if eval \${$cacheid+:} false; then : | |
10939 | $as_echo_n "(cached) " >&6 | |
10940 | else | |
10941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10942 | /* end confdefs.h. */ | |
10943 | int i; | |
10944 | int | |
10945 | main () | |
10946 | { | |
10947 | ||
10948 | ; | |
10949 | return 0; | |
10950 | } | |
10951 | _ACEOF | |
10952 | if ac_fn_c_try_link "$LINENO"; then : | |
10953 | eval $cacheid=yes | |
10954 | else | |
10955 | eval $cacheid=no | |
10956 | fi | |
10957 | rm -f core conftest.err conftest.$ac_objext \ | |
10958 | conftest$ac_exeext conftest.$ac_ext | |
10959 | fi | |
10960 | ||
10961 | ||
10962 | CFLAGS="$xorg_testset_save_CFLAGS" | |
10963 | ||
10964 | eval supported=\$$cacheid | |
10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
10966 | $as_echo "$supported" >&6; } | |
10967 | if test "$supported" = "yes" ; then | |
10968 | BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" | |
10969 | found="yes" | |
10970 | fi | |
10971 | fi | |
10972 | ||
10973 | ||
10974 | ||
10975 | ||
10976 | ||
10977 | ||
10978 | ||
10979 | ||
10980 | ||
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | xorg_testset_save_CFLAGS="$CFLAGS" | |
10988 | ||
10989 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
10990 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
10992 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
10993 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
10994 | $as_echo_n "(cached) " >&6 | |
10995 | else | |
10996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10997 | /* end confdefs.h. */ | |
10998 | int i; | |
10999 | _ACEOF | |
11000 | if ac_fn_c_try_compile "$LINENO"; then : | |
11001 | xorg_cv_cc_flag_unknown_warning_option=yes | |
11002 | else | |
11003 | xorg_cv_cc_flag_unknown_warning_option=no | |
11004 | fi | |
11005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11006 | fi | |
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
11008 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
11009 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
11010 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11011 | fi | |
11012 | ||
11013 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
11014 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11015 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11016 | fi | |
11017 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
11019 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
11020 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
11021 | $as_echo_n "(cached) " >&6 | |
11022 | else | |
11023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11024 | /* end confdefs.h. */ | |
11025 | int i; | |
11026 | _ACEOF | |
11027 | if ac_fn_c_try_compile "$LINENO"; then : | |
11028 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
11029 | else | |
11030 | xorg_cv_cc_flag_unused_command_line_argument=no | |
11031 | fi | |
11032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11033 | fi | |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
11035 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
11036 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
11037 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11038 | fi | |
11039 | ||
11040 | found="no" | |
11041 | ||
11042 | if test $found = "no" ; then | |
11043 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11044 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11045 | fi | |
11046 | ||
11047 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
11048 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11049 | fi | |
11050 | ||
11051 | CFLAGS="$CFLAGS -Waddress" | |
11052 | ||
11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 | |
11054 | $as_echo_n "checking if $CC supports -Waddress... " >&6; } | |
11055 | cacheid=xorg_cv_cc_flag__Waddress | |
11056 | if eval \${$cacheid+:} false; then : | |
11057 | $as_echo_n "(cached) " >&6 | |
11058 | else | |
11059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11060 | /* end confdefs.h. */ | |
11061 | int i; | |
11062 | int | |
11063 | main () | |
11064 | { | |
11065 | ||
11066 | ; | |
11067 | return 0; | |
11068 | } | |
11069 | _ACEOF | |
11070 | if ac_fn_c_try_link "$LINENO"; then : | |
11071 | eval $cacheid=yes | |
11072 | else | |
11073 | eval $cacheid=no | |
11074 | fi | |
11075 | rm -f core conftest.err conftest.$ac_objext \ | |
11076 | conftest$ac_exeext conftest.$ac_ext | |
11077 | fi | |
11078 | ||
11079 | ||
11080 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11081 | ||
11082 | eval supported=\$$cacheid | |
11083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
11084 | $as_echo "$supported" >&6; } | |
11085 | if test "$supported" = "yes" ; then | |
11086 | BASE_CFLAGS="$BASE_CFLAGS -Waddress" | |
11087 | found="yes" | |
11088 | fi | |
11089 | fi | |
11090 | ||
11091 | ||
11092 | ||
11093 | ||
11094 | ||
11095 | ||
11096 | ||
11097 | ||
11098 | ||
11099 | ||
11100 | ||
11101 | ||
11102 | ||
11103 | ||
11104 | ||
11105 | xorg_testset_save_CFLAGS="$CFLAGS" | |
11106 | ||
11107 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
11108 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
11110 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
11111 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
11112 | $as_echo_n "(cached) " >&6 | |
11113 | else | |
11114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11115 | /* end confdefs.h. */ | |
11116 | int i; | |
11117 | _ACEOF | |
11118 | if ac_fn_c_try_compile "$LINENO"; then : | |
11119 | xorg_cv_cc_flag_unknown_warning_option=yes | |
11120 | else | |
11121 | xorg_cv_cc_flag_unknown_warning_option=no | |
11122 | fi | |
11123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11124 | fi | |
11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
11126 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
11127 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
11128 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11129 | fi | |
11130 | ||
11131 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
11132 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11133 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11134 | fi | |
11135 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
11137 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
11138 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
11139 | $as_echo_n "(cached) " >&6 | |
11140 | else | |
11141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11142 | /* end confdefs.h. */ | |
11143 | int i; | |
11144 | _ACEOF | |
11145 | if ac_fn_c_try_compile "$LINENO"; then : | |
11146 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
11147 | else | |
11148 | xorg_cv_cc_flag_unused_command_line_argument=no | |
11149 | fi | |
11150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11151 | fi | |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
11153 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
11154 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
11155 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11156 | fi | |
11157 | ||
11158 | found="no" | |
11159 | ||
11160 | if test $found = "no" ; then | |
11161 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11162 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11163 | fi | |
11164 | ||
11165 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
11166 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11167 | fi | |
11168 | ||
11169 | CFLAGS="$CFLAGS -Wint-to-pointer-cast" | |
11170 | ||
11171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 | |
11172 | $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } | |
11173 | cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast | |
11174 | if eval \${$cacheid+:} false; then : | |
11175 | $as_echo_n "(cached) " >&6 | |
11176 | else | |
11177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11178 | /* end confdefs.h. */ | |
11179 | int i; | |
11180 | int | |
11181 | main () | |
11182 | { | |
11183 | ||
11184 | ; | |
11185 | return 0; | |
11186 | } | |
11187 | _ACEOF | |
11188 | if ac_fn_c_try_link "$LINENO"; then : | |
11189 | eval $cacheid=yes | |
11190 | else | |
11191 | eval $cacheid=no | |
11192 | fi | |
11193 | rm -f core conftest.err conftest.$ac_objext \ | |
11194 | conftest$ac_exeext conftest.$ac_ext | |
11195 | fi | |
11196 | ||
11197 | ||
11198 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11199 | ||
11200 | eval supported=\$$cacheid | |
11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
11202 | $as_echo "$supported" >&6; } | |
11203 | if test "$supported" = "yes" ; then | |
11204 | BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" | |
11205 | found="yes" | |
11206 | fi | |
11207 | fi | |
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | xorg_testset_save_CFLAGS="$CFLAGS" | |
11224 | ||
11225 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
11226 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
11228 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
11229 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
11230 | $as_echo_n "(cached) " >&6 | |
11231 | else | |
11232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11233 | /* end confdefs.h. */ | |
11234 | int i; | |
11235 | _ACEOF | |
11236 | if ac_fn_c_try_compile "$LINENO"; then : | |
11237 | xorg_cv_cc_flag_unknown_warning_option=yes | |
11238 | else | |
11239 | xorg_cv_cc_flag_unknown_warning_option=no | |
11240 | fi | |
11241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11242 | fi | |
11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
11244 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
11245 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
11246 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11247 | fi | |
11248 | ||
11249 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
11250 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11251 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11252 | fi | |
11253 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
11255 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
11256 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
11257 | $as_echo_n "(cached) " >&6 | |
11258 | else | |
11259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11260 | /* end confdefs.h. */ | |
11261 | int i; | |
11262 | _ACEOF | |
11263 | if ac_fn_c_try_compile "$LINENO"; then : | |
11264 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
11265 | else | |
11266 | xorg_cv_cc_flag_unused_command_line_argument=no | |
11267 | fi | |
11268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11269 | fi | |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
11271 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
11272 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
11273 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11274 | fi | |
11275 | ||
11276 | found="no" | |
11277 | ||
11278 | if test $found = "no" ; then | |
11279 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11280 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11281 | fi | |
11282 | ||
11283 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
11284 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11285 | fi | |
11286 | ||
11287 | CFLAGS="$CFLAGS -Wpointer-to-int-cast" | |
11288 | ||
11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 | |
11290 | $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } | |
11291 | cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast | |
11292 | if eval \${$cacheid+:} false; then : | |
11293 | $as_echo_n "(cached) " >&6 | |
11294 | else | |
11295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11296 | /* end confdefs.h. */ | |
11297 | int i; | |
11298 | int | |
11299 | main () | |
11300 | { | |
11301 | ||
11302 | ; | |
11303 | return 0; | |
11304 | } | |
11305 | _ACEOF | |
11306 | if ac_fn_c_try_link "$LINENO"; then : | |
11307 | eval $cacheid=yes | |
11308 | else | |
11309 | eval $cacheid=no | |
11310 | fi | |
11311 | rm -f core conftest.err conftest.$ac_objext \ | |
11312 | conftest$ac_exeext conftest.$ac_ext | |
11313 | fi | |
11314 | ||
11315 | ||
11316 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11317 | ||
11318 | eval supported=\$$cacheid | |
11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
11320 | $as_echo "$supported" >&6; } | |
11321 | if test "$supported" = "yes" ; then | |
11322 | BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" | |
11323 | found="yes" | |
11324 | fi | |
11325 | fi | |
11326 | ||
11327 | ||
11328 | fi | |
11329 | ||
11330 | ||
11331 | ||
11332 | ||
11333 | ||
11334 | ||
11335 | ||
11336 | CWARNFLAGS="$BASE_CFLAGS" | |
11337 | if test "x$GCC" = xyes ; then | |
11338 | CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" | |
11339 | fi | |
11340 | ||
11341 | ||
11342 | ||
11343 | ||
11344 | ||
11345 | ||
11346 | ||
11347 | ||
11348 | # Check whether --enable-strict-compilation was given. | |
11349 | if test "${enable_strict_compilation+set}" = set; then : | |
11350 | enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval | |
11351 | else | |
11352 | STRICT_COMPILE=no | |
11353 | fi | |
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | STRICT_CFLAGS="" | |
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | xorg_testset_save_CFLAGS="$CFLAGS" | |
11375 | ||
11376 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
11377 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
11379 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
11380 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
11381 | $as_echo_n "(cached) " >&6 | |
11382 | else | |
11383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11384 | /* end confdefs.h. */ | |
11385 | int i; | |
11386 | _ACEOF | |
11387 | if ac_fn_c_try_compile "$LINENO"; then : | |
11388 | xorg_cv_cc_flag_unknown_warning_option=yes | |
11389 | else | |
11390 | xorg_cv_cc_flag_unknown_warning_option=no | |
11391 | fi | |
11392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11393 | fi | |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
11395 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
11396 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
11397 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11398 | fi | |
11399 | ||
11400 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
11401 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11402 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11403 | fi | |
11404 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
11406 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
11407 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
11408 | $as_echo_n "(cached) " >&6 | |
11409 | else | |
11410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11411 | /* end confdefs.h. */ | |
11412 | int i; | |
11413 | _ACEOF | |
11414 | if ac_fn_c_try_compile "$LINENO"; then : | |
11415 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
11416 | else | |
11417 | xorg_cv_cc_flag_unused_command_line_argument=no | |
11418 | fi | |
11419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11420 | fi | |
11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
11422 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
11423 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
11424 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11425 | fi | |
11426 | ||
11427 | found="no" | |
11428 | ||
11429 | if test $found = "no" ; then | |
11430 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11431 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11432 | fi | |
11433 | ||
11434 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
11435 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11436 | fi | |
11437 | ||
11438 | CFLAGS="$CFLAGS -pedantic" | |
11439 | ||
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 | |
11441 | $as_echo_n "checking if $CC supports -pedantic... " >&6; } | |
11442 | cacheid=xorg_cv_cc_flag__pedantic | |
11443 | if eval \${$cacheid+:} false; then : | |
11444 | $as_echo_n "(cached) " >&6 | |
11445 | else | |
11446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11447 | /* end confdefs.h. */ | |
11448 | int i; | |
11449 | int | |
11450 | main () | |
11451 | { | |
11452 | ||
11453 | ; | |
11454 | return 0; | |
11455 | } | |
11456 | _ACEOF | |
11457 | if ac_fn_c_try_link "$LINENO"; then : | |
11458 | eval $cacheid=yes | |
11459 | else | |
11460 | eval $cacheid=no | |
11461 | fi | |
11462 | rm -f core conftest.err conftest.$ac_objext \ | |
11463 | conftest$ac_exeext conftest.$ac_ext | |
11464 | fi | |
11465 | ||
11466 | ||
11467 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11468 | ||
11469 | eval supported=\$$cacheid | |
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
11471 | $as_echo "$supported" >&6; } | |
11472 | if test "$supported" = "yes" ; then | |
11473 | STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" | |
11474 | found="yes" | |
11475 | fi | |
11476 | fi | |
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | xorg_testset_save_CFLAGS="$CFLAGS" | |
11493 | ||
11494 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
11495 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
11497 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
11498 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
11499 | $as_echo_n "(cached) " >&6 | |
11500 | else | |
11501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11502 | /* end confdefs.h. */ | |
11503 | int i; | |
11504 | _ACEOF | |
11505 | if ac_fn_c_try_compile "$LINENO"; then : | |
11506 | xorg_cv_cc_flag_unknown_warning_option=yes | |
11507 | else | |
11508 | xorg_cv_cc_flag_unknown_warning_option=no | |
11509 | fi | |
11510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11511 | fi | |
11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
11513 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
11514 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
11515 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11516 | fi | |
11517 | ||
11518 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
11519 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11520 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11521 | fi | |
11522 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
11524 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
11525 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
11526 | $as_echo_n "(cached) " >&6 | |
11527 | else | |
11528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11529 | /* end confdefs.h. */ | |
11530 | int i; | |
11531 | _ACEOF | |
11532 | if ac_fn_c_try_compile "$LINENO"; then : | |
11533 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
11534 | else | |
11535 | xorg_cv_cc_flag_unused_command_line_argument=no | |
11536 | fi | |
11537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11538 | fi | |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
11540 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
11541 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
11542 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11543 | fi | |
11544 | ||
11545 | found="no" | |
11546 | ||
11547 | if test $found = "no" ; then | |
11548 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11549 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11550 | fi | |
11551 | ||
11552 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
11553 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11554 | fi | |
11555 | ||
11556 | CFLAGS="$CFLAGS -Werror" | |
11557 | ||
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 | |
11559 | $as_echo_n "checking if $CC supports -Werror... " >&6; } | |
11560 | cacheid=xorg_cv_cc_flag__Werror | |
11561 | if eval \${$cacheid+:} false; then : | |
11562 | $as_echo_n "(cached) " >&6 | |
11563 | else | |
11564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11565 | /* end confdefs.h. */ | |
11566 | int i; | |
11567 | int | |
11568 | main () | |
11569 | { | |
11570 | ||
11571 | ; | |
11572 | return 0; | |
11573 | } | |
11574 | _ACEOF | |
11575 | if ac_fn_c_try_link "$LINENO"; then : | |
11576 | eval $cacheid=yes | |
11577 | else | |
11578 | eval $cacheid=no | |
11579 | fi | |
11580 | rm -f core conftest.err conftest.$ac_objext \ | |
11581 | conftest$ac_exeext conftest.$ac_ext | |
11582 | fi | |
11583 | ||
11584 | ||
11585 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11586 | ||
11587 | eval supported=\$$cacheid | |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
11589 | $as_echo "$supported" >&6; } | |
11590 | if test "$supported" = "yes" ; then | |
11591 | STRICT_CFLAGS="$STRICT_CFLAGS -Werror" | |
11592 | found="yes" | |
11593 | fi | |
11594 | fi | |
11595 | ||
11596 | if test $found = "no" ; then | |
11597 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11598 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11599 | fi | |
11600 | ||
11601 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
11602 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11603 | fi | |
11604 | ||
11605 | CFLAGS="$CFLAGS -errwarn" | |
11606 | ||
11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 | |
11608 | $as_echo_n "checking if $CC supports -errwarn... " >&6; } | |
11609 | cacheid=xorg_cv_cc_flag__errwarn | |
11610 | if eval \${$cacheid+:} false; then : | |
11611 | $as_echo_n "(cached) " >&6 | |
11612 | else | |
11613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11614 | /* end confdefs.h. */ | |
11615 | int i; | |
11616 | int | |
11617 | main () | |
11618 | { | |
11619 | ||
11620 | ; | |
11621 | return 0; | |
11622 | } | |
11623 | _ACEOF | |
11624 | if ac_fn_c_try_link "$LINENO"; then : | |
11625 | eval $cacheid=yes | |
11626 | else | |
11627 | eval $cacheid=no | |
11628 | fi | |
11629 | rm -f core conftest.err conftest.$ac_objext \ | |
11630 | conftest$ac_exeext conftest.$ac_ext | |
11631 | fi | |
11632 | ||
11633 | ||
11634 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11635 | ||
11636 | eval supported=\$$cacheid | |
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
11638 | $as_echo "$supported" >&6; } | |
11639 | if test "$supported" = "yes" ; then | |
11640 | STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" | |
11641 | found="yes" | |
11642 | fi | |
11643 | fi | |
11644 | ||
11645 | ||
11646 | ||
11647 | # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not | |
11648 | # activate it with -Werror, so we add it here explicitly. | |
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | xorg_testset_save_CFLAGS="$CFLAGS" | |
11663 | ||
11664 | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |
11665 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 | |
11667 | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } | |
11668 | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |
11669 | $as_echo_n "(cached) " >&6 | |
11670 | else | |
11671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11672 | /* end confdefs.h. */ | |
11673 | int i; | |
11674 | _ACEOF | |
11675 | if ac_fn_c_try_compile "$LINENO"; then : | |
11676 | xorg_cv_cc_flag_unknown_warning_option=yes | |
11677 | else | |
11678 | xorg_cv_cc_flag_unknown_warning_option=no | |
11679 | fi | |
11680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11681 | fi | |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 | |
11683 | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |
11684 | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option | |
11685 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11686 | fi | |
11687 | ||
11688 | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |
11689 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11690 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11691 | fi | |
11692 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 | |
11694 | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } | |
11695 | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |
11696 | $as_echo_n "(cached) " >&6 | |
11697 | else | |
11698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11699 | /* end confdefs.h. */ | |
11700 | int i; | |
11701 | _ACEOF | |
11702 | if ac_fn_c_try_compile "$LINENO"; then : | |
11703 | xorg_cv_cc_flag_unused_command_line_argument=yes | |
11704 | else | |
11705 | xorg_cv_cc_flag_unused_command_line_argument=no | |
11706 | fi | |
11707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11708 | fi | |
11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 | |
11710 | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |
11711 | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument | |
11712 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11713 | fi | |
11714 | ||
11715 | found="no" | |
11716 | ||
11717 | if test $found = "no" ; then | |
11718 | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |
11719 | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |
11720 | fi | |
11721 | ||
11722 | if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then | |
11723 | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |
11724 | fi | |
11725 | ||
11726 | CFLAGS="$CFLAGS -Werror=attributes" | |
11727 | ||
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 | |
11729 | $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } | |
11730 | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` | |
11731 | if eval \${$cacheid+:} false; then : | |
11732 | $as_echo_n "(cached) " >&6 | |
11733 | else | |
11734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11735 | /* end confdefs.h. */ | |
11736 | int i; | |
11737 | int | |
11738 | main () | |
11739 | { | |
11740 | ||
11741 | ; | |
11742 | return 0; | |
11743 | } | |
11744 | _ACEOF | |
11745 | if ac_fn_c_try_link "$LINENO"; then : | |
11746 | eval $cacheid=yes | |
11747 | else | |
11748 | eval $cacheid=no | |
11749 | fi | |
11750 | rm -f core conftest.err conftest.$ac_objext \ | |
11751 | conftest$ac_exeext conftest.$ac_ext | |
11752 | fi | |
11753 | ||
11754 | ||
11755 | CFLAGS="$xorg_testset_save_CFLAGS" | |
11756 | ||
11757 | eval supported=\$$cacheid | |
11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |
11759 | $as_echo "$supported" >&6; } | |
11760 | if test "$supported" = "yes" ; then | |
11761 | STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" | |
11762 | found="yes" | |
11763 | fi | |
11764 | fi | |
11765 | ||
11766 | ||
11767 | ||
11768 | if test "x$STRICT_COMPILE" = "xyes"; then | |
11769 | BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" | |
11770 | CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" | |
11771 | fi | |
11772 | ||
11773 | ||
11774 | ||
11775 | ||
11776 | ||
11777 | ||
11778 | cat >>confdefs.h <<_ACEOF | |
11779 | #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` | |
11780 | _ACEOF | |
11781 | ||
11782 | PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` | |
11783 | if test "x$PVM" = "x"; then | |
11784 | PVM="0" | |
11785 | fi | |
11786 | ||
11787 | cat >>confdefs.h <<_ACEOF | |
11788 | #define PACKAGE_VERSION_MINOR $PVM | |
11789 | _ACEOF | |
11790 | ||
11791 | PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` | |
11792 | if test "x$PVP" = "x"; then | |
11793 | PVP="0" | |
11794 | fi | |
11795 | ||
11796 | cat >>confdefs.h <<_ACEOF | |
11797 | #define PACKAGE_VERSION_PATCHLEVEL $PVP | |
11798 | _ACEOF | |
11799 | ||
11800 | ||
11801 | ||
11802 | CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ | |
11803 | mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ | |
11804 | || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ | |
11805 | echo 'git directory not found: installing possibly empty changelog.' >&2)" | |
11806 | ||
11807 | ||
11808 | ||
11809 | ||
11810 | macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` | |
11811 | INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ | |
11812 | mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ | |
11813 | || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ | |
11814 | echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" | |
11815 | ||
11816 | ||
11817 | ||
11818 | ||
11819 | ||
11820 | ||
11821 | if test x$APP_MAN_SUFFIX = x ; then | |
11822 | APP_MAN_SUFFIX=1 | |
11823 | fi | |
11824 | if test x$APP_MAN_DIR = x ; then | |
11825 | APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' | |
11826 | fi | |
11827 | ||
11828 | if test x$LIB_MAN_SUFFIX = x ; then | |
11829 | LIB_MAN_SUFFIX=3 | |
11830 | fi | |
11831 | if test x$LIB_MAN_DIR = x ; then | |
11832 | LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' | |
11833 | fi | |
11834 | ||
11835 | if test x$FILE_MAN_SUFFIX = x ; then | |
11836 | case $host_os in | |
11837 | solaris*) FILE_MAN_SUFFIX=4 ;; | |
11838 | *) FILE_MAN_SUFFIX=5 ;; | |
11839 | esac | |
11840 | fi | |
11841 | if test x$FILE_MAN_DIR = x ; then | |
11842 | FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' | |
11843 | fi | |
11844 | ||
11845 | if test x$MISC_MAN_SUFFIX = x ; then | |
11846 | case $host_os in | |
11847 | solaris*) MISC_MAN_SUFFIX=5 ;; | |
11848 | *) MISC_MAN_SUFFIX=7 ;; | |
11849 | esac | |
11850 | fi | |
11851 | if test x$MISC_MAN_DIR = x ; then | |
11852 | MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' | |
11853 | fi | |
11854 | ||
11855 | if test x$DRIVER_MAN_SUFFIX = x ; then | |
11856 | case $host_os in | |
11857 | solaris*) DRIVER_MAN_SUFFIX=7 ;; | |
11858 | *) DRIVER_MAN_SUFFIX=4 ;; | |
11859 | esac | |
11860 | fi | |
11861 | if test x$DRIVER_MAN_DIR = x ; then | |
11862 | DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' | |
11863 | fi | |
11864 | ||
11865 | if test x$ADMIN_MAN_SUFFIX = x ; then | |
11866 | case $host_os in | |
11867 | solaris*) ADMIN_MAN_SUFFIX=1m ;; | |
11868 | *) ADMIN_MAN_SUFFIX=8 ;; | |
11869 | esac | |
11870 | fi | |
11871 | if test x$ADMIN_MAN_DIR = x ; then | |
11872 | ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' | |
11873 | fi | |
11874 | ||
11875 | ||
11876 | ||
11877 | ||
11878 | ||
11879 | ||
11880 | ||
11881 | ||
11882 | ||
11883 | ||
11884 | ||
11885 | ||
11886 | ||
11887 | ||
11888 | ||
11889 | XORG_MAN_PAGE="X Version 11" | |
11890 | ||
11891 | MAN_SUBSTS="\ | |
11892 | -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ | |
11893 | -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ | |
11894 | -e 's|__xservername__|Xorg|g' \ | |
11895 | -e 's|__xconfigfile__|xorg.conf|g' \ | |
11896 | -e 's|__projectroot__|\$(prefix)|g' \ | |
11897 | -e 's|__apploaddir__|\$(appdefaultdir)|g' \ | |
11898 | -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ | |
11899 | -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ | |
11900 | -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ | |
11901 | -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ | |
11902 | -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ | |
11903 | -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" | |
11904 | ||
11905 | ||
11906 | ||
11907 | # Check whether --enable-silent-rules was given. | |
11908 | if test "${enable_silent_rules+set}" = set; then : | |
11909 | enableval=$enable_silent_rules; | |
11910 | fi | |
11911 | ||
11912 | case $enable_silent_rules in | |
11913 | yes) AM_DEFAULT_VERBOSITY=0;; | |
11914 | no) AM_DEFAULT_VERBOSITY=1;; | |
11915 | *) AM_DEFAULT_VERBOSITY=0;; | |
11916 | esac | |
11917 | am_make=${MAKE-make} | |
11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
11919 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
11920 | if ${am_cv_make_support_nested_variables+:} false; then : | |
11921 | $as_echo_n "(cached) " >&6 | |
11922 | else | |
11923 | if $as_echo 'TRUE=$(BAR$(V)) | |
11924 | BAR0=false | |
11925 | BAR1=true | |
11926 | V=1 | |
11927 | am__doit: | |
11928 | @$(TRUE) | |
11929 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
11930 | am_cv_make_support_nested_variables=yes | |
11931 | else | |
11932 | am_cv_make_support_nested_variables=no | |
11933 | fi | |
11934 | fi | |
11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
11936 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
11937 | if test $am_cv_make_support_nested_variables = yes; then | |
11938 | AM_V='$(V)' | |
11939 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
11940 | else | |
11941 | AM_V=$AM_DEFAULT_VERBOSITY | |
11942 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
11943 | fi | |
11944 | AM_BACKSLASH='\' | |
11945 | ||
11946 | ||
11947 | ||
11948 | ||
11949 | ||
11950 | ||
11951 | ||
11952 | # Check whether --with-doxygen was given. | |
11953 | if test "${with_doxygen+set}" = set; then : | |
11954 | withval=$with_doxygen; use_doxygen=$withval | |
11955 | else | |
11956 | use_doxygen=auto | |
11957 | fi | |
11958 | ||
11959 | ||
11960 | ||
11961 | if test "x$use_doxygen" = x"auto"; then | |
11962 | # Extract the first word of "doxygen", so it can be a program name with args. | |
11963 | set dummy doxygen; ac_word=$2 | |
11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11965 | $as_echo_n "checking for $ac_word... " >&6; } | |
11966 | if ${ac_cv_path_DOXYGEN+:} false; then : | |
11967 | $as_echo_n "(cached) " >&6 | |
11968 | else | |
11969 | case $DOXYGEN in | |
11970 | [\\/]* | ?:[\\/]*) | |
11971 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | |
11972 | ;; | |
11973 | *) | |
11974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11975 | for as_dir in $PATH | |
11976 | do | |
11977 | IFS=$as_save_IFS | |
11978 | test -z "$as_dir" && as_dir=. | |
11979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11981 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | |
11982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11983 | break 2 | |
11984 | fi | |
11985 | done | |
11986 | done | |
11987 | IFS=$as_save_IFS | |
11988 | ||
11989 | ;; | |
11990 | esac | |
11991 | fi | |
11992 | DOXYGEN=$ac_cv_path_DOXYGEN | |
11993 | if test -n "$DOXYGEN"; then | |
11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 | |
11995 | $as_echo "$DOXYGEN" >&6; } | |
11996 | else | |
11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11998 | $as_echo "no" >&6; } | |
11999 | fi | |
12000 | ||
12001 | ||
12002 | if test "x$DOXYGEN" = "x"; then | |
12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 | |
12004 | $as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} | |
12005 | have_doxygen=no | |
12006 | else | |
12007 | have_doxygen=yes | |
12008 | fi | |
12009 | elif test "x$use_doxygen" = x"yes" ; then | |
12010 | # Extract the first word of "doxygen", so it can be a program name with args. | |
12011 | set dummy doxygen; ac_word=$2 | |
12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12013 | $as_echo_n "checking for $ac_word... " >&6; } | |
12014 | if ${ac_cv_path_DOXYGEN+:} false; then : | |
12015 | $as_echo_n "(cached) " >&6 | |
12016 | else | |
12017 | case $DOXYGEN in | |
12018 | [\\/]* | ?:[\\/]*) | |
12019 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | |
12020 | ;; | |
12021 | *) | |
12022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12023 | for as_dir in $PATH | |
12024 | do | |
12025 | IFS=$as_save_IFS | |
12026 | test -z "$as_dir" && as_dir=. | |
12027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12029 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | |
12030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12031 | break 2 | |
12032 | fi | |
12033 | done | |
12034 | done | |
12035 | IFS=$as_save_IFS | |
12036 | ||
12037 | ;; | |
12038 | esac | |
12039 | fi | |
12040 | DOXYGEN=$ac_cv_path_DOXYGEN | |
12041 | if test -n "$DOXYGEN"; then | |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 | |
12043 | $as_echo "$DOXYGEN" >&6; } | |
12044 | else | |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12046 | $as_echo "no" >&6; } | |
12047 | fi | |
12048 | ||
12049 | ||
12050 | if test "x$DOXYGEN" = "x"; then | |
12051 | as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 | |
12052 | fi | |
12053 | have_doxygen=yes | |
12054 | elif test "x$use_doxygen" = x"no" ; then | |
12055 | if test "x$DOXYGEN" != "x"; then | |
12056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 | |
12057 | $as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} | |
12058 | fi | |
12059 | have_doxygen=no | |
12060 | else | |
12061 | as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 | |
12062 | fi | |
12063 | if test "$have_doxygen" = yes; then | |
12064 | # scrape the doxygen version | |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 | |
12066 | $as_echo_n "checking the doxygen version... " >&6; } | |
12067 | doxygen_version=`$DOXYGEN --version 2>/dev/null` | |
12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 | |
12069 | $as_echo "$doxygen_version" >&6; } | |
12070 | as_arg_v1=$doxygen_version | |
12071 | as_arg_v2=1.6.1 | |
12072 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
12073 | case $? in #( | |
12074 | 1) : | |
12075 | if test "x$use_doxygen" = xauto; then | |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 | |
12077 | $as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} | |
12078 | have_doxygen=no | |
12079 | else | |
12080 | as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 | |
12081 | fi ;; #( | |
12082 | 0) : | |
12083 | ;; #( | |
12084 | 2) : | |
12085 | ;; #( | |
12086 | *) : | |
12087 | ;; | |
12088 | esac | |
12089 | fi | |
12090 | ||
12091 | HAVE_DOT=no | |
12092 | if test "x$have_doxygen" = "xyes"; then | |
12093 | # Extract the first word of "dot", so it can be a program name with args. | |
12094 | set dummy dot; ac_word=$2 | |
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12096 | $as_echo_n "checking for $ac_word... " >&6; } | |
12097 | if ${ac_cv_path_DOT+:} false; then : | |
12098 | $as_echo_n "(cached) " >&6 | |
12099 | else | |
12100 | case $DOT in | |
12101 | [\\/]* | ?:[\\/]*) | |
12102 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | |
12103 | ;; | |
12104 | *) | |
12105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12106 | for as_dir in $PATH | |
12107 | do | |
12108 | IFS=$as_save_IFS | |
12109 | test -z "$as_dir" && as_dir=. | |
12110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12112 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | |
12113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12114 | break 2 | |
12115 | fi | |
12116 | done | |
12117 | done | |
12118 | IFS=$as_save_IFS | |
12119 | ||
12120 | ;; | |
12121 | esac | |
12122 | fi | |
12123 | DOT=$ac_cv_path_DOT | |
12124 | if test -n "$DOT"; then | |
12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 | |
12126 | $as_echo "$DOT" >&6; } | |
12127 | else | |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12129 | $as_echo "no" >&6; } | |
12130 | fi | |
12131 | ||
12132 | ||
12133 | if test "x$DOT" != "x"; then | |
12134 | HAVE_DOT=yes | |
12135 | fi | |
12136 | fi | |
12137 | ||
12138 | ||
12139 | if test "$HAVE_DOT" = "yes"; then | |
12140 | HAVE_DOT_TRUE= | |
12141 | HAVE_DOT_FALSE='#' | |
12142 | else | |
12143 | HAVE_DOT_TRUE='#' | |
12144 | HAVE_DOT_FALSE= | |
12145 | fi | |
12146 | ||
12147 | if test "$have_doxygen" = yes; then | |
12148 | HAVE_DOXYGEN_TRUE= | |
12149 | HAVE_DOXYGEN_FALSE='#' | |
12150 | else | |
12151 | HAVE_DOXYGEN_TRUE='#' | |
12152 | HAVE_DOXYGEN_FALSE= | |
12153 | fi | |
12154 | ||
12155 | ||
12156 | ||
12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 | |
12158 | $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } | |
12159 | XORG_SGML_PATH= | |
12160 | if test -n "$PKG_CONFIG" && \ | |
12161 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 | |
12162 | ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 | |
12163 | ac_status=$? | |
12164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12165 | test $ac_status = 0; }; then | |
12166 | XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` | |
12167 | else | |
12168 | : | |
12169 | ||
12170 | fi | |
12171 | ||
12172 | # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing | |
12173 | # the path and the name of the doc stylesheet | |
12174 | if test "x$XORG_SGML_PATH" != "x" ; then | |
12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 | |
12176 | $as_echo "$XORG_SGML_PATH" >&6; } | |
12177 | STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 | |
12178 | XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl | |
12179 | else | |
12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12181 | $as_echo "no" >&6; } | |
12182 | fi | |
12183 | ||
12184 | ||
12185 | ||
12186 | ||
12187 | if test "x$XSL_STYLESHEET" != "x"; then | |
12188 | HAVE_STYLESHEETS_TRUE= | |
12189 | HAVE_STYLESHEETS_FALSE='#' | |
12190 | else | |
12191 | HAVE_STYLESHEETS_TRUE='#' | |
12192 | HAVE_STYLESHEETS_FALSE= | |
12193 | fi | |
12194 | ||
12195 | ||
12196 | ||
12197 | ||
12198 | # Check whether --enable-docs was given. | |
12199 | if test "${enable_docs+set}" = set; then : | |
12200 | enableval=$enable_docs; build_docs=$enableval | |
12201 | else | |
12202 | build_docs=yes | |
12203 | fi | |
12204 | ||
12205 | ||
12206 | if test x$build_docs = xyes; then | |
12207 | ENABLE_DOCS_TRUE= | |
12208 | ENABLE_DOCS_FALSE='#' | |
12209 | else | |
12210 | ENABLE_DOCS_TRUE='#' | |
12211 | ENABLE_DOCS_FALSE= | |
12212 | fi | |
12213 | ||
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | |
12215 | $as_echo_n "checking whether to build documentation... " >&6; } | |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 | |
12217 | $as_echo "$build_docs" >&6; } | |
12218 | ||
12219 | ||
12220 | ||
12221 | # Check whether --enable-devel-docs was given. | |
12222 | if test "${enable_devel_docs+set}" = set; then : | |
12223 | enableval=$enable_devel_docs; build_devel_docs=$enableval | |
12224 | else | |
12225 | build_devel_docs=yes | |
12226 | fi | |
12227 | ||
12228 | ||
12229 | if test x$build_devel_docs = xyes; then | |
12230 | ENABLE_DEVEL_DOCS_TRUE= | |
12231 | ENABLE_DEVEL_DOCS_FALSE='#' | |
12232 | else | |
12233 | ENABLE_DEVEL_DOCS_TRUE='#' | |
12234 | ENABLE_DEVEL_DOCS_FALSE= | |
12235 | fi | |
12236 | ||
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 | |
12238 | $as_echo_n "checking whether to build developer documentation... " >&6; } | |
12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 | |
12240 | $as_echo "$build_devel_docs" >&6; } | |
12241 | ||
12242 | ||
12243 | ||
12244 | ||
12245 | ||
12246 | # Check whether --with-xmlto was given. | |
12247 | if test "${with_xmlto+set}" = set; then : | |
12248 | withval=$with_xmlto; use_xmlto=$withval | |
12249 | else | |
12250 | use_xmlto=auto | |
12251 | fi | |
12252 | ||
12253 | ||
12254 | ||
12255 | if test "x$use_xmlto" = x"auto"; then | |
12256 | # Extract the first word of "xmlto", so it can be a program name with args. | |
12257 | set dummy xmlto; ac_word=$2 | |
12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12259 | $as_echo_n "checking for $ac_word... " >&6; } | |
12260 | if ${ac_cv_path_XMLTO+:} false; then : | |
12261 | $as_echo_n "(cached) " >&6 | |
12262 | else | |
12263 | case $XMLTO in | |
12264 | [\\/]* | ?:[\\/]*) | |
12265 | ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. | |
12266 | ;; | |
12267 | *) | |
12268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12269 | for as_dir in $PATH | |
12270 | do | |
12271 | IFS=$as_save_IFS | |
12272 | test -z "$as_dir" && as_dir=. | |
12273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12275 | ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" | |
12276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12277 | break 2 | |
12278 | fi | |
12279 | done | |
12280 | done | |
12281 | IFS=$as_save_IFS | |
12282 | ||
12283 | ;; | |
12284 | esac | |
12285 | fi | |
12286 | XMLTO=$ac_cv_path_XMLTO | |
12287 | if test -n "$XMLTO"; then | |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 | |
12289 | $as_echo "$XMLTO" >&6; } | |
12290 | else | |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12292 | $as_echo "no" >&6; } | |
12293 | fi | |
12294 | ||
12295 | ||
12296 | if test "x$XMLTO" = "x"; then | |
12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 | |
12298 | $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} | |
12299 | have_xmlto=no | |
12300 | else | |
12301 | have_xmlto=yes | |
12302 | fi | |
12303 | elif test "x$use_xmlto" = x"yes" ; then | |
12304 | # Extract the first word of "xmlto", so it can be a program name with args. | |
12305 | set dummy xmlto; ac_word=$2 | |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12307 | $as_echo_n "checking for $ac_word... " >&6; } | |
12308 | if ${ac_cv_path_XMLTO+:} false; then : | |
12309 | $as_echo_n "(cached) " >&6 | |
12310 | else | |
12311 | case $XMLTO in | |
12312 | [\\/]* | ?:[\\/]*) | |
12313 | ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. | |
12314 | ;; | |
12315 | *) | |
12316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12317 | for as_dir in $PATH | |
12318 | do | |
12319 | IFS=$as_save_IFS | |
12320 | test -z "$as_dir" && as_dir=. | |
12321 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12322 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12323 | ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" | |
12324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12325 | break 2 | |
12326 | fi | |
12327 | done | |
12328 | done | |
12329 | IFS=$as_save_IFS | |
12330 | ||
12331 | ;; | |
12332 | esac | |
12333 | fi | |
12334 | XMLTO=$ac_cv_path_XMLTO | |
12335 | if test -n "$XMLTO"; then | |
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 | |
12337 | $as_echo "$XMLTO" >&6; } | |
12338 | else | |
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12340 | $as_echo "no" >&6; } | |
12341 | fi | |
12342 | ||
12343 | ||
12344 | if test "x$XMLTO" = "x"; then | |
12345 | as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 | |
12346 | fi | |
12347 | have_xmlto=yes | |
12348 | elif test "x$use_xmlto" = x"no" ; then | |
12349 | if test "x$XMLTO" != "x"; then | |
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 | |
12351 | $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} | |
12352 | fi | |
12353 | have_xmlto=no | |
12354 | else | |
12355 | as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 | |
12356 | fi | |
12357 | ||
12358 | # Test for a minimum version of xmlto, if provided. | |
12359 | if test "$have_xmlto" = yes; then | |
12360 | # scrape the xmlto version | |
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 | |
12362 | $as_echo_n "checking the xmlto version... " >&6; } | |
12363 | xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` | |
12364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 | |
12365 | $as_echo "$xmlto_version" >&6; } | |
12366 | as_arg_v1=$xmlto_version | |
12367 | as_arg_v2=0.0.20 | |
12368 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
12369 | case $? in #( | |
12370 | 1) : | |
12371 | if test "x$use_xmlto" = xauto; then | |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 | |
12373 | $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} | |
12374 | have_xmlto=no | |
12375 | else | |
12376 | as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 | |
12377 | fi ;; #( | |
12378 | 0) : | |
12379 | ;; #( | |
12380 | 2) : | |
12381 | ;; #( | |
12382 | *) : | |
12383 | ;; | |
12384 | esac | |
12385 | fi | |
12386 | ||
12387 | # Test for the ability of xmlto to generate a text target | |
12388 | have_xmlto_text=no | |
12389 | cat > conftest.xml << "EOF" | |
12390 | EOF | |
12391 | if test "$have_xmlto" = yes; then : | |
12392 | if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : | |
12393 | have_xmlto_text=yes | |
12394 | else | |
12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 | |
12396 | $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} | |
12397 | fi | |
12398 | fi | |
12399 | rm -f conftest.xml | |
12400 | if test $have_xmlto_text = yes; then | |
12401 | HAVE_XMLTO_TEXT_TRUE= | |
12402 | HAVE_XMLTO_TEXT_FALSE='#' | |
12403 | else | |
12404 | HAVE_XMLTO_TEXT_TRUE='#' | |
12405 | HAVE_XMLTO_TEXT_FALSE= | |
12406 | fi | |
12407 | ||
12408 | if test "$have_xmlto" = yes; then | |
12409 | HAVE_XMLTO_TRUE= | |
12410 | HAVE_XMLTO_FALSE='#' | |
12411 | else | |
12412 | HAVE_XMLTO_TRUE='#' | |
12413 | HAVE_XMLTO_FALSE= | |
12414 | fi | |
12415 | ||
12416 | ||
12417 | ||
12418 | ||
12419 | ||
12420 | ||
12421 | # Check whether --with-fop was given. | |
12422 | if test "${with_fop+set}" = set; then : | |
12423 | withval=$with_fop; use_fop=$withval | |
12424 | else | |
12425 | use_fop=auto | |
12426 | fi | |
12427 | ||
12428 | ||
12429 | ||
12430 | if test "x$use_fop" = x"auto"; then | |
12431 | # Extract the first word of "fop", so it can be a program name with args. | |
12432 | set dummy fop; ac_word=$2 | |
12433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12434 | $as_echo_n "checking for $ac_word... " >&6; } | |
12435 | if ${ac_cv_path_FOP+:} false; then : | |
12436 | $as_echo_n "(cached) " >&6 | |
12437 | else | |
12438 | case $FOP in | |
12439 | [\\/]* | ?:[\\/]*) | |
12440 | ac_cv_path_FOP="$FOP" # Let the user override the test with a path. | |
12441 | ;; | |
12442 | *) | |
12443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12444 | for as_dir in $PATH | |
12445 | do | |
12446 | IFS=$as_save_IFS | |
12447 | test -z "$as_dir" && as_dir=. | |
12448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12450 | ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" | |
12451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12452 | break 2 | |
12453 | fi | |
12454 | done | |
12455 | done | |
12456 | IFS=$as_save_IFS | |
12457 | ||
12458 | ;; | |
12459 | esac | |
12460 | fi | |
12461 | FOP=$ac_cv_path_FOP | |
12462 | if test -n "$FOP"; then | |
12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 | |
12464 | $as_echo "$FOP" >&6; } | |
12465 | else | |
12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12467 | $as_echo "no" >&6; } | |
12468 | fi | |
12469 | ||
12470 | ||
12471 | if test "x$FOP" = "x"; then | |
12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 | |
12473 | $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} | |
12474 | have_fop=no | |
12475 | else | |
12476 | have_fop=yes | |
12477 | fi | |
12478 | elif test "x$use_fop" = x"yes" ; then | |
12479 | # Extract the first word of "fop", so it can be a program name with args. | |
12480 | set dummy fop; ac_word=$2 | |
12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12482 | $as_echo_n "checking for $ac_word... " >&6; } | |
12483 | if ${ac_cv_path_FOP+:} false; then : | |
12484 | $as_echo_n "(cached) " >&6 | |
12485 | else | |
12486 | case $FOP in | |
12487 | [\\/]* | ?:[\\/]*) | |
12488 | ac_cv_path_FOP="$FOP" # Let the user override the test with a path. | |
12489 | ;; | |
12490 | *) | |
12491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12492 | for as_dir in $PATH | |
12493 | do | |
12494 | IFS=$as_save_IFS | |
12495 | test -z "$as_dir" && as_dir=. | |
12496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12498 | ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" | |
12499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12500 | break 2 | |
12501 | fi | |
12502 | done | |
12503 | done | |
12504 | IFS=$as_save_IFS | |
12505 | ||
12506 | ;; | |
12507 | esac | |
12508 | fi | |
12509 | FOP=$ac_cv_path_FOP | |
12510 | if test -n "$FOP"; then | |
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 | |
12512 | $as_echo "$FOP" >&6; } | |
12513 | else | |
12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12515 | $as_echo "no" >&6; } | |
12516 | fi | |
12517 | ||
12518 | ||
12519 | if test "x$FOP" = "x"; then | |
12520 | as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 | |
12521 | fi | |
12522 | have_fop=yes | |
12523 | elif test "x$use_fop" = x"no" ; then | |
12524 | if test "x$FOP" != "x"; then | |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 | |
12526 | $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} | |
12527 | fi | |
12528 | have_fop=no | |
12529 | else | |
12530 | as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 | |
12531 | fi | |
12532 | ||
12533 | # Test for a minimum version of fop, if provided. | |
12534 | ||
12535 | if test "$have_fop" = yes; then | |
12536 | HAVE_FOP_TRUE= | |
12537 | HAVE_FOP_FALSE='#' | |
12538 | else | |
12539 | HAVE_FOP_TRUE='#' | |
12540 | HAVE_FOP_FALSE= | |
12541 | fi | |
12542 | ||
12543 | ||
12544 | ||
12545 | ||
12546 | # Preserves the interface, should it be implemented later | |
12547 | ||
12548 | ||
12549 | ||
12550 | # Check whether --with-xsltproc was given. | |
12551 | if test "${with_xsltproc+set}" = set; then : | |
12552 | withval=$with_xsltproc; use_xsltproc=$withval | |
12553 | else | |
12554 | use_xsltproc=auto | |
12555 | fi | |
12556 | ||
12557 | ||
12558 | ||
12559 | if test "x$use_xsltproc" = x"auto"; then | |
12560 | # Extract the first word of "xsltproc", so it can be a program name with args. | |
12561 | set dummy xsltproc; ac_word=$2 | |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12563 | $as_echo_n "checking for $ac_word... " >&6; } | |
12564 | if ${ac_cv_path_XSLTPROC+:} false; then : | |
12565 | $as_echo_n "(cached) " >&6 | |
12566 | else | |
12567 | case $XSLTPROC in | |
12568 | [\\/]* | ?:[\\/]*) | |
12569 | ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. | |
12570 | ;; | |
12571 | *) | |
12572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12573 | for as_dir in $PATH | |
12574 | do | |
12575 | IFS=$as_save_IFS | |
12576 | test -z "$as_dir" && as_dir=. | |
12577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12578 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12579 | ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" | |
12580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12581 | break 2 | |
12582 | fi | |
12583 | done | |
12584 | done | |
12585 | IFS=$as_save_IFS | |
12586 | ||
12587 | ;; | |
12588 | esac | |
12589 | fi | |
12590 | XSLTPROC=$ac_cv_path_XSLTPROC | |
12591 | if test -n "$XSLTPROC"; then | |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 | |
12593 | $as_echo "$XSLTPROC" >&6; } | |
12594 | else | |
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12596 | $as_echo "no" >&6; } | |
12597 | fi | |
12598 | ||
12599 | ||
12600 | if test "x$XSLTPROC" = "x"; then | |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 | |
12602 | $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} | |
12603 | have_xsltproc=no | |
12604 | else | |
12605 | have_xsltproc=yes | |
12606 | fi | |
12607 | elif test "x$use_xsltproc" = x"yes" ; then | |
12608 | # Extract the first word of "xsltproc", so it can be a program name with args. | |
12609 | set dummy xsltproc; ac_word=$2 | |
12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12611 | $as_echo_n "checking for $ac_word... " >&6; } | |
12612 | if ${ac_cv_path_XSLTPROC+:} false; then : | |
12613 | $as_echo_n "(cached) " >&6 | |
12614 | else | |
12615 | case $XSLTPROC in | |
12616 | [\\/]* | ?:[\\/]*) | |
12617 | ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. | |
12618 | ;; | |
12619 | *) | |
12620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12621 | for as_dir in $PATH | |
12622 | do | |
12623 | IFS=$as_save_IFS | |
12624 | test -z "$as_dir" && as_dir=. | |
12625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12627 | ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" | |
12628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12629 | break 2 | |
12630 | fi | |
12631 | done | |
12632 | done | |
12633 | IFS=$as_save_IFS | |
12634 | ||
12635 | ;; | |
12636 | esac | |
12637 | fi | |
12638 | XSLTPROC=$ac_cv_path_XSLTPROC | |
12639 | if test -n "$XSLTPROC"; then | |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 | |
12641 | $as_echo "$XSLTPROC" >&6; } | |
12642 | else | |
12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12644 | $as_echo "no" >&6; } | |
12645 | fi | |
12646 | ||
12647 | ||
12648 | if test "x$XSLTPROC" = "x"; then | |
12649 | as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 | |
12650 | fi | |
12651 | have_xsltproc=yes | |
12652 | elif test "x$use_xsltproc" = x"no" ; then | |
12653 | if test "x$XSLTPROC" != "x"; then | |
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 | |
12655 | $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} | |
12656 | fi | |
12657 | have_xsltproc=no | |
12658 | else | |
12659 | as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 | |
12660 | fi | |
12661 | ||
12662 | if test "$have_xsltproc" = yes; then | |
12663 | HAVE_XSLTPROC_TRUE= | |
12664 | HAVE_XSLTPROC_FALSE='#' | |
12665 | else | |
12666 | HAVE_XSLTPROC_TRUE='#' | |
12667 | HAVE_XSLTPROC_FALSE= | |
12668 | fi | |
12669 | ||
12670 | ||
12671 | ||
12672 | ||
12673 | ||
12674 | ||
12675 | ||
12676 | # Check for different types of support on different platforms | |
12677 | case $host_os in | |
12678 | solaris*) | |
12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 | |
12680 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } | |
12681 | if ${ac_cv_lib_umem_umem_alloc+:} false; then : | |
12682 | $as_echo_n "(cached) " >&6 | |
12683 | else | |
12684 | ac_check_lib_save_LIBS=$LIBS | |
12685 | LIBS="-lumem $LIBS" | |
12686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12687 | /* end confdefs.h. */ | |
12688 | ||
12689 | /* Override any GCC internal prototype to avoid an error. | |
12690 | Use char because int might match the return type of a GCC | |
12691 | builtin and then its argument prototype would still apply. */ | |
12692 | #ifdef __cplusplus | |
12693 | extern "C" | |
12694 | #endif | |
12695 | char umem_alloc (); | |
12696 | int | |
12697 | main () | |
12698 | { | |
12699 | return umem_alloc (); | |
12700 | ; | |
12701 | return 0; | |
12702 | } | |
12703 | _ACEOF | |
12704 | if ac_fn_c_try_link "$LINENO"; then : | |
12705 | ac_cv_lib_umem_umem_alloc=yes | |
12706 | else | |
12707 | ac_cv_lib_umem_umem_alloc=no | |
12708 | fi | |
12709 | rm -f core conftest.err conftest.$ac_objext \ | |
12710 | conftest$ac_exeext conftest.$ac_ext | |
12711 | LIBS=$ac_check_lib_save_LIBS | |
12712 | fi | |
12713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 | |
12714 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } | |
12715 | if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : | |
12716 | malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' | |
12717 | fi | |
12718 | ||
12719 | ;; | |
12720 | *-gnu*) # GNU libc - Value is used as a single byte bit pattern, | |
12721 | # both directly and inverted, so should not be 0 or 255. | |
12722 | malloc_debug_env='MALLOC_PERTURB_=15' | |
12723 | ;; | |
12724 | darwin*) | |
12725 | malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' | |
12726 | ;; | |
12727 | *bsd*) | |
12728 | malloc_debug_env='MallocPreScribble=1 MallocScribble=1' | |
12729 | ;; | |
12730 | esac | |
12731 | ||
12732 | # User supplied flags override default flags | |
12733 | if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then | |
12734 | malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" | |
12735 | fi | |
12736 | ||
12737 | XORG_MALLOC_DEBUG_ENV=$malloc_debug_env | |
12738 | ||
12739 | ||
12740 | ||
12741 | ||
12742 | ||
12743 | ||
12744 | ||
12745 | # Check whether --enable-unit-tests was given. | |
12746 | if test "${enable_unit_tests+set}" = set; then : | |
12747 | enableval=$enable_unit_tests; enable_unit_tests=$enableval | |
12748 | else | |
12749 | enable_unit_tests=auto | |
12750 | fi | |
12751 | ||
12752 | ||
12753 | if test "x$enable_unit_tests" != xno; then | |
12754 | ENABLE_UNIT_TESTS_TRUE= | |
12755 | ENABLE_UNIT_TESTS_FALSE='#' | |
12756 | else | |
12757 | ENABLE_UNIT_TESTS_TRUE='#' | |
12758 | ENABLE_UNIT_TESTS_FALSE= | |
12759 | fi | |
12760 | ||
12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 | |
12762 | $as_echo_n "checking whether to build unit test cases... " >&6; } | |
12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 | |
12764 | $as_echo "$enable_unit_tests" >&6; } | |
12765 | ||
12766 | ||
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 | |
12768 | $as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } | |
12769 | if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then : | |
12770 | $as_echo_n "(cached) " >&6 | |
12771 | else | |
12772 | ||
12773 | ax_save_FLAGS=$LDFLAGS | |
12774 | LDFLAGS="-Wl,-wrap,exit" | |
12775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12776 | /* end confdefs.h. */ | |
12777 | #include <stdlib.h> | |
12778 | void __wrap_exit(int status) { return; } | |
12779 | int | |
12780 | main () | |
12781 | { | |
12782 | exit(0); | |
12783 | ; | |
12784 | return 0; | |
12785 | } | |
12786 | _ACEOF | |
12787 | if ac_fn_c_try_link "$LINENO"; then : | |
12788 | xorg_cv_linker_flags__Wl__wrap_exit=yes | |
12789 | else | |
12790 | xorg_cv_linker_flags__Wl__wrap_exit=no | |
12791 | fi | |
12792 | rm -f core conftest.err conftest.$ac_objext \ | |
12793 | conftest$ac_exeext conftest.$ac_ext | |
12794 | LDFLAGS=$ax_save_FLAGS | |
12795 | fi | |
12796 | ||
12797 | eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit | |
12798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 | |
12799 | $as_echo "$xorg_check_linker_flags" >&6; } | |
12800 | if test "x$xorg_check_linker_flags" = xyes; then | |
12801 | have_ld_wrap=yes | |
12802 | else | |
12803 | have_ld_wrap=no | |
12804 | fi | |
12805 | ||
12806 | # Not having ld wrap when unit testing has been explicitly requested is an error | |
12807 | if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then | |
12808 | if test "x$have_ld_wrap" = x"no"; then | |
12809 | as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 | |
12810 | fi | |
12811 | fi | |
12812 | if test "$have_ld_wrap" = yes; then | |
12813 | HAVE_LD_WRAP_TRUE= | |
12814 | HAVE_LD_WRAP_FALSE='#' | |
12815 | else | |
12816 | HAVE_LD_WRAP_TRUE='#' | |
12817 | HAVE_LD_WRAP_FALSE= | |
12818 | fi | |
12819 | ||
12820 | # | |
12821 | ||
12822 | ||
12823 | ||
12824 | ||
12825 | ||
12826 | ||
12827 | ||
12828 | ||
12829 | ||
12830 | ||
12831 | ||
12832 | ||
12833 | ||
12834 | ||
12835 | ac_config_headers="$ac_config_headers include/do-not-use-config.h" | |
12836 | ||
12837 | ac_config_headers="$ac_config_headers include/xorg-server.h" | |
12838 | ||
12839 | ac_config_headers="$ac_config_headers include/dix-config.h" | |
12840 | ||
12841 | ac_config_headers="$ac_config_headers include/xorg-config.h" | |
12842 | ||
12843 | ac_config_headers="$ac_config_headers include/xkb-config.h" | |
12844 | ||
12845 | ac_config_headers="$ac_config_headers include/xwin-config.h" | |
12846 | ||
12847 | ac_config_headers="$ac_config_headers include/kdrive-config.h" | |
12848 | ||
12849 | ac_config_headers="$ac_config_headers include/version-config.h" | |
12850 | ||
12851 | ||
12852 | # By default we simply use the C compiler to build assembly code. | |
12853 | ||
12854 | test "${CCAS+set}" = set || CCAS=$CC | |
12855 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
12856 | ||
12857 | ||
12858 | ||
12859 | depcc="$CCAS" am_compiler_list= | |
12860 | ||
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
12862 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
12863 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : | |
12864 | $as_echo_n "(cached) " >&6 | |
12865 | else | |
12866 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
12867 | # We make a subdir and do the tests there. Otherwise we can end up | |
12868 | # making bogus files that we don't know about and never remove. For | |
12869 | # instance it was reported that on HP-UX the gcc test will end up | |
12870 | # making a dummy file named `D' -- because `-MD' means `put the output | |
12871 | # in D'. | |
12872 | rm -rf conftest.dir | |
12873 | mkdir conftest.dir | |
12874 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
12875 | # using a relative directory. | |
12876 | cp "$am_depcomp" conftest.dir | |
12877 | cd conftest.dir | |
12878 | # We will build objects and dependencies in a subdirectory because | |
12879 | # it helps to detect inapplicable dependency modes. For instance | |
12880 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
12881 | # side effect of compilation, but ICC will put the dependencies in | |
12882 | # the current directory while Tru64 will put them in the object | |
12883 | # directory. | |
12884 | mkdir sub | |
12885 | ||
12886 | am_cv_CCAS_dependencies_compiler_type=none | |
12887 | if test "$am_compiler_list" = ""; then | |
12888 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
12889 | fi | |
12890 | am__universal=false | |
12891 | ||
12892 | ||
12893 | for depmode in $am_compiler_list; do | |
12894 | # Setup a source with many dependencies, because some compilers | |
12895 | # like to wrap large dependency lists on column 80 (with \), and | |
12896 | # we should not choose a depcomp mode which is confused by this. | |
12897 | # | |
12898 | # We need to recreate these files for each test, as the compiler may | |
12899 | # overwrite some of them when testing with obscure command lines. | |
12900 | # This happens at least with the AIX C compiler. | |
12901 | : > sub/conftest.c | |
12902 | for i in 1 2 3 4 5 6; do | |
12903 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
12904 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
12905 | # Solaris 8's {/usr,}/bin/sh. | |
12906 | touch sub/conftst$i.h | |
12907 | done | |
12908 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
12909 | ||
12910 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
12911 | # mode. It turns out that the SunPro C++ compiler does not properly | |
12912 | # handle `-M -o', and we need to detect this. Also, some Intel | |
12913 | # versions had trouble with output in subdirs | |
12914 | am__obj=sub/conftest.${OBJEXT-o} | |
12915 | am__minus_obj="-o $am__obj" | |
12916 | case $depmode in | |
12917 | gcc) | |
12918 | # This depmode causes a compiler race in universal mode. | |
12919 | test "$am__universal" = false || continue | |
12920 | ;; | |
12921 | nosideeffect) | |
12922 | # after this tag, mechanisms are not by side-effect, so they'll | |
12923 | # only be used when explicitly requested | |
12924 | if test "x$enable_dependency_tracking" = xyes; then | |
12925 | continue | |
12926 | else | |
12927 | break | |
12928 | fi | |
12929 | ;; | |
12930 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
12931 | # This compiler won't grok `-c -o', but also, the minuso test has | |
12932 | # not run yet. These depmodes are late enough in the game, and | |
12933 | # so weak that their functioning should not be impacted. | |
12934 | am__obj=conftest.${OBJEXT-o} | |
12935 | am__minus_obj= | |
12936 | ;; | |
12937 | none) break ;; | |
12938 | esac | |
12939 | if depmode=$depmode \ | |
12940 | source=sub/conftest.c object=$am__obj \ | |
12941 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
12942 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
12943 | >/dev/null 2>conftest.err && | |
12944 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
12945 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
12946 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
12947 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
12948 | # icc doesn't choke on unknown options, it will just issue warnings | |
12949 | # or remarks (even with -Werror). So we grep stderr for any message | |
12950 | # that says an option was ignored or not supported. | |
12951 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
12952 | # icc: Command line warning: ignoring option '-M'; no argument required | |
12953 | # The diagnosis changed in icc 8.0: | |
12954 | # icc: Command line remark: option '-MP' not supported | |
12955 | if (grep 'ignoring option' conftest.err || | |
12956 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
12957 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
12958 | break | |
12959 | fi | |
12960 | fi | |
12961 | done | |
12962 | ||
12963 | cd .. | |
12964 | rm -rf conftest.dir | |
12965 | else | |
12966 | am_cv_CCAS_dependencies_compiler_type=none | |
12967 | fi | |
12968 | ||
12969 | fi | |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
12971 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
12972 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
12973 | ||
12974 | if | |
12975 | test "x$enable_dependency_tracking" != xno \ | |
12976 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
12977 | am__fastdepCCAS_TRUE= | |
12978 | am__fastdepCCAS_FALSE='#' | |
12979 | else | |
12980 | am__fastdepCCAS_TRUE='#' | |
12981 | am__fastdepCCAS_FALSE= | |
12982 | fi | |
12983 | ||
12984 | ||
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
12986 | $as_echo_n "checking whether ln -s works... " >&6; } | |
12987 | LN_S=$as_ln_s | |
12988 | if test "$LN_S" = "ln -s"; then | |
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12990 | $as_echo "yes" >&6; } | |
12991 | else | |
12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
12993 | $as_echo "no, using $LN_S" >&6; } | |
12994 | fi | |
12995 | ||
12996 | enable_win32_dll=yes | |
12997 | ||
12998 | case $host in | |
12999 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
13000 | if test -n "$ac_tool_prefix"; then | |
13001 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
13002 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13004 | $as_echo_n "checking for $ac_word... " >&6; } | |
13005 | if ${ac_cv_prog_AS+:} false; then : | |
13006 | $as_echo_n "(cached) " >&6 | |
13007 | else | |
13008 | if test -n "$AS"; then | |
13009 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
13010 | else | |
13011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13012 | for as_dir in $PATH | |
13013 | do | |
13014 | IFS=$as_save_IFS | |
13015 | test -z "$as_dir" && as_dir=. | |
13016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13018 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
13019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13020 | break 2 | |
13021 | fi | |
13022 | done | |
13023 | done | |
13024 | IFS=$as_save_IFS | |
13025 | ||
13026 | fi | |
13027 | fi | |
13028 | AS=$ac_cv_prog_AS | |
13029 | if test -n "$AS"; then | |
13030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
13031 | $as_echo "$AS" >&6; } | |
13032 | else | |
13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13034 | $as_echo "no" >&6; } | |
13035 | fi | |
13036 | ||
13037 | ||
13038 | fi | |
13039 | if test -z "$ac_cv_prog_AS"; then | |
13040 | ac_ct_AS=$AS | |
13041 | # Extract the first word of "as", so it can be a program name with args. | |
13042 | set dummy as; ac_word=$2 | |
13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13044 | $as_echo_n "checking for $ac_word... " >&6; } | |
13045 | if ${ac_cv_prog_ac_ct_AS+:} false; then : | |
13046 | $as_echo_n "(cached) " >&6 | |
13047 | else | |
13048 | if test -n "$ac_ct_AS"; then | |
13049 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
13050 | else | |
13051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13052 | for as_dir in $PATH | |
13053 | do | |
13054 | IFS=$as_save_IFS | |
13055 | test -z "$as_dir" && as_dir=. | |
13056 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13058 | ac_cv_prog_ac_ct_AS="as" | |
13059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13060 | break 2 | |
13061 | fi | |
13062 | done | |
13063 | done | |
13064 | IFS=$as_save_IFS | |
13065 | ||
13066 | fi | |
13067 | fi | |
13068 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
13069 | if test -n "$ac_ct_AS"; then | |
13070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
13071 | $as_echo "$ac_ct_AS" >&6; } | |
13072 | else | |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13074 | $as_echo "no" >&6; } | |
13075 | fi | |
13076 | ||
13077 | if test "x$ac_ct_AS" = x; then | |
13078 | AS="false" | |
13079 | else | |
13080 | case $cross_compiling:$ac_tool_warned in | |
13081 | yes:) | |
13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13083 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13084 | ac_tool_warned=yes ;; | |
13085 | esac | |
13086 | AS=$ac_ct_AS | |
13087 | fi | |
13088 | else | |
13089 | AS="$ac_cv_prog_AS" | |
13090 | fi | |
13091 | ||
13092 | if test -n "$ac_tool_prefix"; then | |
13093 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
13094 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13096 | $as_echo_n "checking for $ac_word... " >&6; } | |
13097 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
13098 | $as_echo_n "(cached) " >&6 | |
13099 | else | |
13100 | if test -n "$DLLTOOL"; then | |
13101 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
13102 | else | |
13103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13104 | for as_dir in $PATH | |
13105 | do | |
13106 | IFS=$as_save_IFS | |
13107 | test -z "$as_dir" && as_dir=. | |
13108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13110 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
13111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13112 | break 2 | |
13113 | fi | |
13114 | done | |
13115 | done | |
13116 | IFS=$as_save_IFS | |
13117 | ||
13118 | fi | |
13119 | fi | |
13120 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
13121 | if test -n "$DLLTOOL"; then | |
13122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
13123 | $as_echo "$DLLTOOL" >&6; } | |
13124 | else | |
13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13126 | $as_echo "no" >&6; } | |
13127 | fi | |
13128 | ||
13129 | ||
13130 | fi | |
13131 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
13132 | ac_ct_DLLTOOL=$DLLTOOL | |
13133 | # Extract the first word of "dlltool", so it can be a program name with args. | |
13134 | set dummy dlltool; ac_word=$2 | |
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13136 | $as_echo_n "checking for $ac_word... " >&6; } | |
13137 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
13138 | $as_echo_n "(cached) " >&6 | |
13139 | else | |
13140 | if test -n "$ac_ct_DLLTOOL"; then | |
13141 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
13142 | else | |
13143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13144 | for as_dir in $PATH | |
13145 | do | |
13146 | IFS=$as_save_IFS | |
13147 | test -z "$as_dir" && as_dir=. | |
13148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13150 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
13151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13152 | break 2 | |
13153 | fi | |
13154 | done | |
13155 | done | |
13156 | IFS=$as_save_IFS | |
13157 | ||
13158 | fi | |
13159 | fi | |
13160 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
13161 | if test -n "$ac_ct_DLLTOOL"; then | |
13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
13163 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
13164 | else | |
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13166 | $as_echo "no" >&6; } | |
13167 | fi | |
13168 | ||
13169 | if test "x$ac_ct_DLLTOOL" = x; then | |
13170 | DLLTOOL="false" | |
13171 | else | |
13172 | case $cross_compiling:$ac_tool_warned in | |
13173 | yes:) | |
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13175 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13176 | ac_tool_warned=yes ;; | |
13177 | esac | |
13178 | DLLTOOL=$ac_ct_DLLTOOL | |
13179 | fi | |
13180 | else | |
13181 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
13182 | fi | |
13183 | ||
13184 | if test -n "$ac_tool_prefix"; then | |
13185 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
13186 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
13187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13188 | $as_echo_n "checking for $ac_word... " >&6; } | |
13189 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
13190 | $as_echo_n "(cached) " >&6 | |
13191 | else | |
13192 | if test -n "$OBJDUMP"; then | |
13193 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
13194 | else | |
13195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13196 | for as_dir in $PATH | |
13197 | do | |
13198 | IFS=$as_save_IFS | |
13199 | test -z "$as_dir" && as_dir=. | |
13200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13202 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
13203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13204 | break 2 | |
13205 | fi | |
13206 | done | |
13207 | done | |
13208 | IFS=$as_save_IFS | |
13209 | ||
13210 | fi | |
13211 | fi | |
13212 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
13213 | if test -n "$OBJDUMP"; then | |
13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
13215 | $as_echo "$OBJDUMP" >&6; } | |
13216 | else | |
13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13218 | $as_echo "no" >&6; } | |
13219 | fi | |
13220 | ||
13221 | ||
13222 | fi | |
13223 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
13224 | ac_ct_OBJDUMP=$OBJDUMP | |
13225 | # Extract the first word of "objdump", so it can be a program name with args. | |
13226 | set dummy objdump; ac_word=$2 | |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13228 | $as_echo_n "checking for $ac_word... " >&6; } | |
13229 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
13230 | $as_echo_n "(cached) " >&6 | |
13231 | else | |
13232 | if test -n "$ac_ct_OBJDUMP"; then | |
13233 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
13234 | else | |
13235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13236 | for as_dir in $PATH | |
13237 | do | |
13238 | IFS=$as_save_IFS | |
13239 | test -z "$as_dir" && as_dir=. | |
13240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13242 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
13243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13244 | break 2 | |
13245 | fi | |
13246 | done | |
13247 | done | |
13248 | IFS=$as_save_IFS | |
13249 | ||
13250 | fi | |
13251 | fi | |
13252 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
13253 | if test -n "$ac_ct_OBJDUMP"; then | |
13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
13255 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
13256 | else | |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13258 | $as_echo "no" >&6; } | |
13259 | fi | |
13260 | ||
13261 | if test "x$ac_ct_OBJDUMP" = x; then | |
13262 | OBJDUMP="false" | |
13263 | else | |
13264 | case $cross_compiling:$ac_tool_warned in | |
13265 | yes:) | |
13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13267 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13268 | ac_tool_warned=yes ;; | |
13269 | esac | |
13270 | OBJDUMP=$ac_ct_OBJDUMP | |
13271 | fi | |
13272 | else | |
13273 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
13274 | fi | |
13275 | ||
13276 | ;; | |
13277 | esac | |
13278 | ||
13279 | test -z "$AS" && AS=as | |
13280 | ||
13281 | ||
13282 | ||
13283 | ||
13284 | ||
13285 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
13286 | ||
13287 | ||
13288 | ||
13289 | ||
13290 | ||
13291 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
13292 | ||
13293 | ||
13294 | ||
13295 | ||
13296 | ||
13297 | ||
13298 | ||
13299 | # Check whether --enable-static was given. | |
13300 | if test "${enable_static+set}" = set; then : | |
13301 | enableval=$enable_static; p=${PACKAGE-default} | |
13302 | case $enableval in | |
13303 | yes) enable_static=yes ;; | |
13304 | no) enable_static=no ;; | |
13305 | *) | |
13306 | enable_static=no | |
13307 | # Look at the argument we got. We use all the common list separators. | |
13308 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
13309 | for pkg in $enableval; do | |
13310 | IFS="$lt_save_ifs" | |
13311 | if test "X$pkg" = "X$p"; then | |
13312 | enable_static=yes | |
13313 | fi | |
13314 | done | |
13315 | IFS="$lt_save_ifs" | |
13316 | ;; | |
13317 | esac | |
13318 | else | |
13319 | enable_static=no | |
13320 | fi | |
13321 | ||
13322 | ||
13323 | ||
13324 | ||
13325 | ||
13326 | ||
13327 | ||
13328 | ||
13329 | ||
13330 | case `pwd` in | |
13331 | *\ * | *\ *) | |
13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
13333 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
13334 | esac | |
13335 | ||
13336 | ||
13337 | ||
13338 | macro_version='2.4.2' | |
13339 | macro_revision='1.3337' | |
13340 | ||
13341 | ||
13342 | ||
13343 | ||
13344 | ||
13345 | ||
13346 | ||
13347 | ||
13348 | ||
13349 | ||
13350 | ||
13351 | ||
13352 | ||
13353 | ltmain="$ac_aux_dir/ltmain.sh" | |
13354 | ||
13355 | # Backslashify metacharacters that are still active within | |
13356 | # double-quoted strings. | |
13357 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
13358 | ||
13359 | # Same as above, but do not quote variable references. | |
13360 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
13361 | ||
13362 | # Sed substitution to delay expansion of an escaped shell variable in a | |
13363 | # double_quote_subst'ed string. | |
13364 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
13365 | ||
13366 | # Sed substitution to delay expansion of an escaped single quote. | |
13367 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
13368 | ||
13369 | # Sed substitution to avoid accidental globbing in evaled expressions | |
13370 | no_glob_subst='s/\*/\\\*/g' | |
13371 | ||
13372 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13373 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
13374 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
13375 | ||
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
13377 | $as_echo_n "checking how to print strings... " >&6; } | |
13378 | # Test print first, because it will be a builtin if present. | |
13379 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
13380 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
13381 | ECHO='print -r --' | |
13382 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
13383 | ECHO='printf %s\n' | |
13384 | else | |
13385 | # Use this function as a fallback that always works. | |
13386 | func_fallback_echo () | |
13387 | { | |
13388 | eval 'cat <<_LTECHO_EOF | |
13389 | $1 | |
13390 | _LTECHO_EOF' | |
13391 | } | |
13392 | ECHO='func_fallback_echo' | |
13393 | fi | |
13394 | ||
13395 | # func_echo_all arg... | |
13396 | # Invoke $ECHO with all args, space-separated. | |
13397 | func_echo_all () | |
13398 | { | |
13399 | $ECHO "" | |
13400 | } | |
13401 | ||
13402 | case "$ECHO" in | |
13403 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
13404 | $as_echo "printf" >&6; } ;; | |
13405 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
13406 | $as_echo "print -r" >&6; } ;; | |
13407 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
13408 | $as_echo "cat" >&6; } ;; | |
13409 | esac | |
13410 | ||
13411 | ||
13412 | ||
13413 | ||
13414 | ||
13415 | ||
13416 | ||
13417 | ||
13418 | ||
13419 | ||
13420 | ||
13421 | ||
13422 | ||
13423 | ||
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
13425 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
13426 | if ${ac_cv_path_SED+:} false; then : | |
13427 | $as_echo_n "(cached) " >&6 | |
13428 | else | |
13429 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
13430 | for ac_i in 1 2 3 4 5 6 7; do | |
13431 | ac_script="$ac_script$as_nl$ac_script" | |
13432 | done | |
13433 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
13434 | { ac_script=; unset ac_script;} | |
13435 | if test -z "$SED"; then | |
13436 | ac_path_SED_found=false | |
13437 | # Loop through the user's path and test for each of PROGNAME-LIST | |
13438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13439 | for as_dir in $PATH | |
13440 | do | |
13441 | IFS=$as_save_IFS | |
13442 | test -z "$as_dir" && as_dir=. | |
13443 | for ac_prog in sed gsed; do | |
13444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13445 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
13446 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
13447 | # Check for GNU ac_path_SED and select it if it is found. | |
13448 | # Check for GNU $ac_path_SED | |
13449 | case `"$ac_path_SED" --version 2>&1` in | |
13450 | *GNU*) | |
13451 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
13452 | *) | |
13453 | ac_count=0 | |
13454 | $as_echo_n 0123456789 >"conftest.in" | |
13455 | while : | |
13456 | do | |
13457 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
13458 | mv "conftest.tmp" "conftest.in" | |
13459 | cp "conftest.in" "conftest.nl" | |
13460 | $as_echo '' >> "conftest.nl" | |
13461 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
13462 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
13463 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
13464 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
13465 | # Best one so far, save it but keep looking for a better one | |
13466 | ac_cv_path_SED="$ac_path_SED" | |
13467 | ac_path_SED_max=$ac_count | |
13468 | fi | |
13469 | # 10*(2^10) chars as input seems more than enough | |
13470 | test $ac_count -gt 10 && break | |
13471 | done | |
13472 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
13473 | esac | |
13474 | ||
13475 | $ac_path_SED_found && break 3 | |
13476 | done | |
13477 | done | |
13478 | done | |
13479 | IFS=$as_save_IFS | |
13480 | if test -z "$ac_cv_path_SED"; then | |
13481 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
13482 | fi | |
13483 | else | |
13484 | ac_cv_path_SED=$SED | |
13485 | fi | |
13486 | ||
13487 | fi | |
13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
13489 | $as_echo "$ac_cv_path_SED" >&6; } | |
13490 | SED="$ac_cv_path_SED" | |
13491 | rm -f conftest.sed | |
13492 | ||
13493 | test -z "$SED" && SED=sed | |
13494 | Xsed="$SED -e 1s/^X//" | |
13495 | ||
13496 | ||
13497 | ||
13498 | ||
13499 | ||
13500 | ||
13501 | ||
13502 | ||
13503 | ||
13504 | ||
13505 | ||
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
13507 | $as_echo_n "checking for fgrep... " >&6; } | |
13508 | if ${ac_cv_path_FGREP+:} false; then : | |
13509 | $as_echo_n "(cached) " >&6 | |
13510 | else | |
13511 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
13512 | then ac_cv_path_FGREP="$GREP -F" | |
13513 | else | |
13514 | if test -z "$FGREP"; then | |
13515 | ac_path_FGREP_found=false | |
13516 | # Loop through the user's path and test for each of PROGNAME-LIST | |
13517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13518 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
13519 | do | |
13520 | IFS=$as_save_IFS | |
13521 | test -z "$as_dir" && as_dir=. | |
13522 | for ac_prog in fgrep; do | |
13523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13524 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
13525 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
13526 | # Check for GNU ac_path_FGREP and select it if it is found. | |
13527 | # Check for GNU $ac_path_FGREP | |
13528 | case `"$ac_path_FGREP" --version 2>&1` in | |
13529 | *GNU*) | |
13530 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
13531 | *) | |
13532 | ac_count=0 | |
13533 | $as_echo_n 0123456789 >"conftest.in" | |
13534 | while : | |
13535 | do | |
13536 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
13537 | mv "conftest.tmp" "conftest.in" | |
13538 | cp "conftest.in" "conftest.nl" | |
13539 | $as_echo 'FGREP' >> "conftest.nl" | |
13540 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
13541 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
13542 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
13543 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
13544 | # Best one so far, save it but keep looking for a better one | |
13545 | ac_cv_path_FGREP="$ac_path_FGREP" | |
13546 | ac_path_FGREP_max=$ac_count | |
13547 | fi | |
13548 | # 10*(2^10) chars as input seems more than enough | |
13549 | test $ac_count -gt 10 && break | |
13550 | done | |
13551 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
13552 | esac | |
13553 | ||
13554 | $ac_path_FGREP_found && break 3 | |
13555 | done | |
13556 | done | |
13557 | done | |
13558 | IFS=$as_save_IFS | |
13559 | if test -z "$ac_cv_path_FGREP"; then | |
13560 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
13561 | fi | |
13562 | else | |
13563 | ac_cv_path_FGREP=$FGREP | |
13564 | fi | |
13565 | ||
13566 | fi | |
13567 | fi | |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
13569 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
13570 | FGREP="$ac_cv_path_FGREP" | |
13571 | ||
13572 | ||
13573 | test -z "$GREP" && GREP=grep | |
13574 | ||
13575 | ||
13576 | ||
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | ||
13583 | ||
13584 | ||
13585 | ||
13586 | ||
13587 | ||
13588 | ||
13589 | ||
13590 | ||
13591 | ||
13592 | ||
13593 | # Check whether --with-gnu-ld was given. | |
13594 | if test "${with_gnu_ld+set}" = set; then : | |
13595 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
13596 | else | |
13597 | with_gnu_ld=no | |
13598 | fi | |
13599 | ||
13600 | ac_prog=ld | |
13601 | if test "$GCC" = yes; then | |
13602 | # Check if gcc -print-prog-name=ld gives a path. | |
13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
13604 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
13605 | case $host in | |
13606 | *-*-mingw*) | |
13607 | # gcc leaves a trailing carriage return which upsets mingw | |
13608 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
13609 | *) | |
13610 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13611 | esac | |
13612 | case $ac_prog in | |
13613 | # Accept absolute paths. | |
13614 | [\\/]* | ?:[\\/]*) | |
13615 | re_direlt='/[^/][^/]*/\.\./' | |
13616 | # Canonicalize the pathname of ld | |
13617 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13618 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13619 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13620 | done | |
13621 | test -z "$LD" && LD="$ac_prog" | |
13622 | ;; | |
13623 | "") | |
13624 | # If it fails, then pretend we aren't using GCC. | |
13625 | ac_prog=ld | |
13626 | ;; | |
13627 | *) | |
13628 | # If it is relative, then search for the first ld in PATH. | |
13629 | with_gnu_ld=unknown | |
13630 | ;; | |
13631 | esac | |
13632 | elif test "$with_gnu_ld" = yes; then | |
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
13634 | $as_echo_n "checking for GNU ld... " >&6; } | |
13635 | else | |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13637 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
13638 | fi | |
13639 | if ${lt_cv_path_LD+:} false; then : | |
13640 | $as_echo_n "(cached) " >&6 | |
13641 | else | |
13642 | if test -z "$LD"; then | |
13643 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
13644 | for ac_dir in $PATH; do | |
13645 | IFS="$lt_save_ifs" | |
13646 | test -z "$ac_dir" && ac_dir=. | |
13647 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13648 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
13649 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13650 | # but apparently some variants of GNU ld only accept -v. | |
13651 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13652 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13653 | *GNU* | *'with BFD'*) | |
13654 | test "$with_gnu_ld" != no && break | |
13655 | ;; | |
13656 | *) | |
13657 | test "$with_gnu_ld" != yes && break | |
13658 | ;; | |
13659 | esac | |
13660 | fi | |
13661 | done | |
13662 | IFS="$lt_save_ifs" | |
13663 | else | |
13664 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
13665 | fi | |
13666 | fi | |
13667 | ||
13668 | LD="$lt_cv_path_LD" | |
13669 | if test -n "$LD"; then | |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13671 | $as_echo "$LD" >&6; } | |
13672 | else | |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13674 | $as_echo "no" >&6; } | |
13675 | fi | |
13676 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
13678 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
13679 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
13680 | $as_echo_n "(cached) " >&6 | |
13681 | else | |
13682 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13683 | case `$LD -v 2>&1 </dev/null` in | |
13684 | *GNU* | *'with BFD'*) | |
13685 | lt_cv_prog_gnu_ld=yes | |
13686 | ;; | |
13687 | *) | |
13688 | lt_cv_prog_gnu_ld=no | |
13689 | ;; | |
13690 | esac | |
13691 | fi | |
13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
13693 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13694 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
13695 | ||
13696 | ||
13697 | ||
13698 | ||
13699 | ||
13700 | ||
13701 | ||
13702 | ||
13703 | ||
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
13705 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
13706 | if ${lt_cv_path_NM+:} false; then : | |
13707 | $as_echo_n "(cached) " >&6 | |
13708 | else | |
13709 | if test -n "$NM"; then | |
13710 | # Let the user override the test. | |
13711 | lt_cv_path_NM="$NM" | |
13712 | else | |
13713 | lt_nm_to_check="${ac_tool_prefix}nm" | |
13714 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
13715 | lt_nm_to_check="$lt_nm_to_check nm" | |
13716 | fi | |
13717 | for lt_tmp_nm in $lt_nm_to_check; do | |
13718 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
13719 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
13720 | IFS="$lt_save_ifs" | |
13721 | test -z "$ac_dir" && ac_dir=. | |
13722 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
13723 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
13724 | # Check to see if the nm accepts a BSD-compat flag. | |
13725 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
13726 | # nm: unknown option "B" ignored | |
13727 | # Tru64's nm complains that /dev/null is an invalid object file | |
13728 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
13729 | */dev/null* | *'Invalid file or object type'*) | |
13730 | lt_cv_path_NM="$tmp_nm -B" | |
13731 | break | |
13732 | ;; | |
13733 | *) | |
13734 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
13735 | */dev/null*) | |
13736 | lt_cv_path_NM="$tmp_nm -p" | |
13737 | break | |
13738 | ;; | |
13739 | *) | |
13740 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
13741 | continue # so that we can try to find one that supports BSD flags | |
13742 | ;; | |
13743 | esac | |
13744 | ;; | |
13745 | esac | |
13746 | fi | |
13747 | done | |
13748 | IFS="$lt_save_ifs" | |
13749 | done | |
13750 | : ${lt_cv_path_NM=no} | |
13751 | fi | |
13752 | fi | |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
13754 | $as_echo "$lt_cv_path_NM" >&6; } | |
13755 | if test "$lt_cv_path_NM" != "no"; then | |
13756 | NM="$lt_cv_path_NM" | |
13757 | else | |
13758 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
13759 | if test -n "$DUMPBIN"; then : | |
13760 | # Let the user override the test. | |
13761 | else | |
13762 | if test -n "$ac_tool_prefix"; then | |
13763 | for ac_prog in dumpbin "link -dump" | |
13764 | do | |
13765 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13766 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13768 | $as_echo_n "checking for $ac_word... " >&6; } | |
13769 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
13770 | $as_echo_n "(cached) " >&6 | |
13771 | else | |
13772 | if test -n "$DUMPBIN"; then | |
13773 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
13774 | else | |
13775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13776 | for as_dir in $PATH | |
13777 | do | |
13778 | IFS=$as_save_IFS | |
13779 | test -z "$as_dir" && as_dir=. | |
13780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13782 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
13783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13784 | break 2 | |
13785 | fi | |
13786 | done | |
13787 | done | |
13788 | IFS=$as_save_IFS | |
13789 | ||
13790 | fi | |
13791 | fi | |
13792 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
13793 | if test -n "$DUMPBIN"; then | |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
13795 | $as_echo "$DUMPBIN" >&6; } | |
13796 | else | |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13798 | $as_echo "no" >&6; } | |
13799 | fi | |
13800 | ||
13801 | ||
13802 | test -n "$DUMPBIN" && break | |
13803 | done | |
13804 | fi | |
13805 | if test -z "$DUMPBIN"; then | |
13806 | ac_ct_DUMPBIN=$DUMPBIN | |
13807 | for ac_prog in dumpbin "link -dump" | |
13808 | do | |
13809 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13810 | set dummy $ac_prog; ac_word=$2 | |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13812 | $as_echo_n "checking for $ac_word... " >&6; } | |
13813 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
13814 | $as_echo_n "(cached) " >&6 | |
13815 | else | |
13816 | if test -n "$ac_ct_DUMPBIN"; then | |
13817 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
13818 | else | |
13819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13820 | for as_dir in $PATH | |
13821 | do | |
13822 | IFS=$as_save_IFS | |
13823 | test -z "$as_dir" && as_dir=. | |
13824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13826 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
13827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13828 | break 2 | |
13829 | fi | |
13830 | done | |
13831 | done | |
13832 | IFS=$as_save_IFS | |
13833 | ||
13834 | fi | |
13835 | fi | |
13836 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
13837 | if test -n "$ac_ct_DUMPBIN"; then | |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
13839 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
13840 | else | |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13842 | $as_echo "no" >&6; } | |
13843 | fi | |
13844 | ||
13845 | ||
13846 | test -n "$ac_ct_DUMPBIN" && break | |
13847 | done | |
13848 | ||
13849 | if test "x$ac_ct_DUMPBIN" = x; then | |
13850 | DUMPBIN=":" | |
13851 | else | |
13852 | case $cross_compiling:$ac_tool_warned in | |
13853 | yes:) | |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13856 | ac_tool_warned=yes ;; | |
13857 | esac | |
13858 | DUMPBIN=$ac_ct_DUMPBIN | |
13859 | fi | |
13860 | fi | |
13861 | ||
13862 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
13863 | *COFF*) | |
13864 | DUMPBIN="$DUMPBIN -symbols" | |
13865 | ;; | |
13866 | *) | |
13867 | DUMPBIN=: | |
13868 | ;; | |
13869 | esac | |
13870 | fi | |
13871 | ||
13872 | if test "$DUMPBIN" != ":"; then | |
13873 | NM="$DUMPBIN" | |
13874 | fi | |
13875 | fi | |
13876 | test -z "$NM" && NM=nm | |
13877 | ||
13878 | ||
13879 | ||
13880 | ||
13881 | ||
13882 | ||
13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
13884 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
13885 | if ${lt_cv_nm_interface+:} false; then : | |
13886 | $as_echo_n "(cached) " >&6 | |
13887 | else | |
13888 | lt_cv_nm_interface="BSD nm" | |
13889 | echo "int some_variable = 0;" > conftest.$ac_ext | |
13890 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
13891 | (eval "$ac_compile" 2>conftest.err) | |
13892 | cat conftest.err >&5 | |
13893 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
13894 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
13895 | cat conftest.err >&5 | |
13896 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
13897 | cat conftest.out >&5 | |
13898 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
13899 | lt_cv_nm_interface="MS dumpbin" | |
13900 | fi | |
13901 | rm -f conftest* | |
13902 | fi | |
13903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
13904 | $as_echo "$lt_cv_nm_interface" >&6; } | |
13905 | ||
13906 | # find the maximum length of command line arguments | |
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
13908 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
13909 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
13910 | $as_echo_n "(cached) " >&6 | |
13911 | else | |
13912 | i=0 | |
13913 | teststring="ABCD" | |
13914 | ||
13915 | case $build_os in | |
13916 | msdosdjgpp*) | |
13917 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
13918 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
13919 | # during glob expansion). Even if it were fixed, the result of this | |
13920 | # check would be larger than it should be. | |
13921 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
13922 | ;; | |
13923 | ||
13924 | gnu*) | |
13925 | # Under GNU Hurd, this test is not required because there is | |
13926 | # no limit to the length of command line arguments. | |
13927 | # Libtool will interpret -1 as no limit whatsoever | |
13928 | lt_cv_sys_max_cmd_len=-1; | |
13929 | ;; | |
13930 | ||
13931 | cygwin* | mingw* | cegcc*) | |
13932 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
13933 | # about 5 minutes as the teststring grows exponentially. | |
13934 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
13935 | # you end up with a "frozen" computer, even though with patience | |
13936 | # the test eventually succeeds (with a max line length of 256k). | |
13937 | # Instead, let's just punt: use the minimum linelength reported by | |
13938 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
13939 | lt_cv_sys_max_cmd_len=8192; | |
13940 | ;; | |
13941 | ||
13942 | mint*) | |
13943 | # On MiNT this can take a long time and run out of memory. | |
13944 | lt_cv_sys_max_cmd_len=8192; | |
13945 | ;; | |
13946 | ||
13947 | amigaos*) | |
13948 | # On AmigaOS with pdksh, this test takes hours, literally. | |
13949 | # So we just punt and use a minimum line length of 8192. | |
13950 | lt_cv_sys_max_cmd_len=8192; | |
13951 | ;; | |
13952 | ||
13953 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
13954 | # This has been around since 386BSD, at least. Likely further. | |
13955 | if test -x /sbin/sysctl; then | |
13956 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
13957 | elif test -x /usr/sbin/sysctl; then | |
13958 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
13959 | else | |
13960 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
13961 | fi | |
13962 | # And add a safety zone | |
13963 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
13964 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
13965 | ;; | |
13966 | ||
13967 | interix*) | |
13968 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
13969 | lt_cv_sys_max_cmd_len=196608 | |
13970 | ;; | |
13971 | ||
13972 | os2*) | |
13973 | # The test takes a long time on OS/2. | |
13974 | lt_cv_sys_max_cmd_len=8192 | |
13975 | ;; | |
13976 | ||
13977 | osf*) | |
13978 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
13979 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
13980 | # nice to cause kernel panics so lets avoid the loop below. | |
13981 | # First set a reasonable default. | |
13982 | lt_cv_sys_max_cmd_len=16384 | |
13983 | # | |
13984 | if test -x /sbin/sysconfig; then | |
13985 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
13986 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
13987 | esac | |
13988 | fi | |
13989 | ;; | |
13990 | sco3.2v5*) | |
13991 | lt_cv_sys_max_cmd_len=102400 | |
13992 | ;; | |
13993 | sysv5* | sco5v6* | sysv4.2uw2*) | |
13994 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
13995 | if test -n "$kargmax"; then | |
13996 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
13997 | else | |
13998 | lt_cv_sys_max_cmd_len=32768 | |
13999 | fi | |
14000 | ;; | |
14001 | *) | |
14002 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
14003 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
14004 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
14005 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
14006 | else | |
14007 | # Make teststring a little bigger before we do anything with it. | |
14008 | # a 1K string should be a reasonable start. | |
14009 | for i in 1 2 3 4 5 6 7 8 ; do | |
14010 | teststring=$teststring$teststring | |
14011 | done | |
14012 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
14013 | # If test is not a shell built-in, we'll probably end up computing a | |
14014 | # maximum length that is only half of the actual maximum length, but | |
14015 | # we can't tell. | |
14016 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
14017 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
14018 | test $i != 17 # 1/2 MB should be enough | |
14019 | do | |
14020 | i=`expr $i + 1` | |
14021 | teststring=$teststring$teststring | |
14022 | done | |
14023 | # Only check the string length outside the loop. | |
14024 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
14025 | teststring= | |
14026 | # Add a significant safety factor because C++ compilers can tack on | |
14027 | # massive amounts of additional arguments before passing them to the | |
14028 | # linker. It appears as though 1/2 is a usable value. | |
14029 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
14030 | fi | |
14031 | ;; | |
14032 | esac | |
14033 | ||
14034 | fi | |
14035 | ||
14036 | if test -n $lt_cv_sys_max_cmd_len ; then | |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
14038 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
14039 | else | |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
14041 | $as_echo "none" >&6; } | |
14042 | fi | |
14043 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
14044 | ||
14045 | ||
14046 | ||
14047 | ||
14048 | ||
14049 | ||
14050 | : ${CP="cp -f"} | |
14051 | : ${MV="mv -f"} | |
14052 | : ${RM="rm -f"} | |
14053 | ||
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
14055 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
14056 | # Try some XSI features | |
14057 | xsi_shell=no | |
14058 | ( _lt_dummy="a/b/c" | |
14059 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
14060 | = c,a/b,b/c, \ | |
14061 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
14062 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
14063 | && xsi_shell=yes | |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
14065 | $as_echo "$xsi_shell" >&6; } | |
14066 | ||
14067 | ||
14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
14069 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
14070 | lt_shell_append=no | |
14071 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
14072 | >/dev/null 2>&1 \ | |
14073 | && lt_shell_append=yes | |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
14075 | $as_echo "$lt_shell_append" >&6; } | |
14076 | ||
14077 | ||
14078 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14079 | lt_unset=unset | |
14080 | else | |
14081 | lt_unset=false | |
14082 | fi | |
14083 | ||
14084 | ||
14085 | ||
14086 | ||
14087 | ||
14088 | # test EBCDIC or ASCII | |
14089 | case `echo X|tr X '\101'` in | |
14090 | A) # ASCII based system | |
14091 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
14092 | lt_SP2NL='tr \040 \012' | |
14093 | lt_NL2SP='tr \015\012 \040\040' | |
14094 | ;; | |
14095 | *) # EBCDIC based system | |
14096 | lt_SP2NL='tr \100 \n' | |
14097 | lt_NL2SP='tr \r\n \100\100' | |
14098 | ;; | |
14099 | esac | |
14100 | ||
14101 | ||
14102 | ||
14103 | ||
14104 | ||
14105 | ||
14106 | ||
14107 | ||
14108 | ||
14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
14110 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
14111 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
14112 | $as_echo_n "(cached) " >&6 | |
14113 | else | |
14114 | case $host in | |
14115 | *-*-mingw* ) | |
14116 | case $build in | |
14117 | *-*-mingw* ) # actually msys | |
14118 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
14119 | ;; | |
14120 | *-*-cygwin* ) | |
14121 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
14122 | ;; | |
14123 | * ) # otherwise, assume *nix | |
14124 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
14125 | ;; | |
14126 | esac | |
14127 | ;; | |
14128 | *-*-cygwin* ) | |
14129 | case $build in | |
14130 | *-*-mingw* ) # actually msys | |
14131 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
14132 | ;; | |
14133 | *-*-cygwin* ) | |
14134 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
14135 | ;; | |
14136 | * ) # otherwise, assume *nix | |
14137 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
14138 | ;; | |
14139 | esac | |
14140 | ;; | |
14141 | * ) # unhandled hosts (and "normal" native builds) | |
14142 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
14143 | ;; | |
14144 | esac | |
14145 | ||
14146 | fi | |
14147 | ||
14148 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
14150 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
14151 | ||
14152 | ||
14153 | ||
14154 | ||
14155 | ||
14156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
14157 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
14158 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
14159 | $as_echo_n "(cached) " >&6 | |
14160 | else | |
14161 | #assume ordinary cross tools, or native build. | |
14162 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
14163 | case $host in | |
14164 | *-*-mingw* ) | |
14165 | case $build in | |
14166 | *-*-mingw* ) # actually msys | |
14167 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
14168 | ;; | |
14169 | esac | |
14170 | ;; | |
14171 | esac | |
14172 | ||
14173 | fi | |
14174 | ||
14175 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
14177 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
14178 | ||
14179 | ||
14180 | ||
14181 | ||
14182 | ||
14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
14184 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
14185 | if ${lt_cv_ld_reload_flag+:} false; then : | |
14186 | $as_echo_n "(cached) " >&6 | |
14187 | else | |
14188 | lt_cv_ld_reload_flag='-r' | |
14189 | fi | |
14190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
14191 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
14192 | reload_flag=$lt_cv_ld_reload_flag | |
14193 | case $reload_flag in | |
14194 | "" | " "*) ;; | |
14195 | *) reload_flag=" $reload_flag" ;; | |
14196 | esac | |
14197 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
14198 | case $host_os in | |
14199 | cygwin* | mingw* | pw32* | cegcc*) | |
14200 | if test "$GCC" != yes; then | |
14201 | reload_cmds=false | |
14202 | fi | |
14203 | ;; | |
14204 | darwin*) | |
14205 | if test "$GCC" = yes; then | |
14206 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
14207 | else | |
14208 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
14209 | fi | |
14210 | ;; | |
14211 | esac | |
14212 | ||
14213 | ||
14214 | ||
14215 | ||
14216 | ||
14217 | ||
14218 | ||
14219 | ||
14220 | ||
14221 | if test -n "$ac_tool_prefix"; then | |
14222 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
14223 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14225 | $as_echo_n "checking for $ac_word... " >&6; } | |
14226 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
14227 | $as_echo_n "(cached) " >&6 | |
14228 | else | |
14229 | if test -n "$OBJDUMP"; then | |
14230 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
14231 | else | |
14232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14233 | for as_dir in $PATH | |
14234 | do | |
14235 | IFS=$as_save_IFS | |
14236 | test -z "$as_dir" && as_dir=. | |
14237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14239 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
14240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14241 | break 2 | |
14242 | fi | |
14243 | done | |
14244 | done | |
14245 | IFS=$as_save_IFS | |
14246 | ||
14247 | fi | |
14248 | fi | |
14249 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
14250 | if test -n "$OBJDUMP"; then | |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
14252 | $as_echo "$OBJDUMP" >&6; } | |
14253 | else | |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14255 | $as_echo "no" >&6; } | |
14256 | fi | |
14257 | ||
14258 | ||
14259 | fi | |
14260 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
14261 | ac_ct_OBJDUMP=$OBJDUMP | |
14262 | # Extract the first word of "objdump", so it can be a program name with args. | |
14263 | set dummy objdump; ac_word=$2 | |
14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14265 | $as_echo_n "checking for $ac_word... " >&6; } | |
14266 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
14267 | $as_echo_n "(cached) " >&6 | |
14268 | else | |
14269 | if test -n "$ac_ct_OBJDUMP"; then | |
14270 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
14271 | else | |
14272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14273 | for as_dir in $PATH | |
14274 | do | |
14275 | IFS=$as_save_IFS | |
14276 | test -z "$as_dir" && as_dir=. | |
14277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14279 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
14280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14281 | break 2 | |
14282 | fi | |
14283 | done | |
14284 | done | |
14285 | IFS=$as_save_IFS | |
14286 | ||
14287 | fi | |
14288 | fi | |
14289 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
14290 | if test -n "$ac_ct_OBJDUMP"; then | |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
14292 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
14293 | else | |
14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14295 | $as_echo "no" >&6; } | |
14296 | fi | |
14297 | ||
14298 | if test "x$ac_ct_OBJDUMP" = x; then | |
14299 | OBJDUMP="false" | |
14300 | else | |
14301 | case $cross_compiling:$ac_tool_warned in | |
14302 | yes:) | |
14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14304 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14305 | ac_tool_warned=yes ;; | |
14306 | esac | |
14307 | OBJDUMP=$ac_ct_OBJDUMP | |
14308 | fi | |
14309 | else | |
14310 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
14311 | fi | |
14312 | ||
14313 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
14314 | ||
14315 | ||
14316 | ||
14317 | ||
14318 | ||
14319 | ||
14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
14321 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
14322 | if ${lt_cv_deplibs_check_method+:} false; then : | |
14323 | $as_echo_n "(cached) " >&6 | |
14324 | else | |
14325 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
14326 | lt_cv_file_magic_test_file= | |
14327 | lt_cv_deplibs_check_method='unknown' | |
14328 | # Need to set the preceding variable on all platforms that support | |
14329 | # interlibrary dependencies. | |
14330 | # 'none' -- dependencies not supported. | |
14331 | # `unknown' -- same as none, but documents that we really don't know. | |
14332 | # 'pass_all' -- all dependencies passed with no checks. | |
14333 | # 'test_compile' -- check by making test program. | |
14334 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
14335 | # which responds to the $file_magic_cmd with a given extended regex. | |
14336 | # If you have `file' or equivalent on your system and you're not sure | |
14337 | # whether `pass_all' will *always* work, you probably want this one. | |
14338 | ||
14339 | case $host_os in | |
14340 | aix[4-9]*) | |
14341 | lt_cv_deplibs_check_method=pass_all | |
14342 | ;; | |
14343 | ||
14344 | beos*) | |
14345 | lt_cv_deplibs_check_method=pass_all | |
14346 | ;; | |
14347 | ||
14348 | bsdi[45]*) | |
14349 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
14350 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
14351 | lt_cv_file_magic_test_file=/shlib/libc.so | |
14352 | ;; | |
14353 | ||
14354 | cygwin*) | |
14355 | # func_win32_libid is a shell function defined in ltmain.sh | |
14356 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
14357 | lt_cv_file_magic_cmd='func_win32_libid' | |
14358 | ;; | |
14359 | ||
14360 | mingw* | pw32*) | |
14361 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
14362 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
14363 | # unless we find 'file', for example because we are cross-compiling. | |
14364 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
14365 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
14366 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
14367 | lt_cv_file_magic_cmd='func_win32_libid' | |
14368 | else | |
14369 | # Keep this pattern in sync with the one in func_win32_libid. | |
14370 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
14371 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
14372 | fi | |
14373 | ;; | |
14374 | ||
14375 | cegcc*) | |
14376 | # use the weaker test based on 'objdump'. See mingw*. | |
14377 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
14378 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
14379 | ;; | |
14380 | ||
14381 | darwin* | rhapsody*) | |
14382 | lt_cv_deplibs_check_method=pass_all | |
14383 | ;; | |
14384 | ||
14385 | freebsd* | dragonfly*) | |
14386 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
14387 | case $host_cpu in | |
14388 | i*86 ) | |
14389 | # Not sure whether the presence of OpenBSD here was a mistake. | |
14390 | # Let's accept both of them until this is cleared up. | |
14391 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
14392 | lt_cv_file_magic_cmd=/usr/bin/file | |
14393 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
14394 | ;; | |
14395 | esac | |
14396 | else | |
14397 | lt_cv_deplibs_check_method=pass_all | |
14398 | fi | |
14399 | ;; | |
14400 | ||
14401 | gnu*) | |
14402 | lt_cv_deplibs_check_method=pass_all | |
14403 | ;; | |
14404 | ||
14405 | haiku*) | |
14406 | lt_cv_deplibs_check_method=pass_all | |
14407 | ;; | |
14408 | ||
14409 | hpux10.20* | hpux11*) | |
14410 | lt_cv_file_magic_cmd=/usr/bin/file | |
14411 | case $host_cpu in | |
14412 | ia64*) | |
14413 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
14414 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
14415 | ;; | |
14416 | hppa*64*) | |
14417 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
14418 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
14419 | ;; | |
14420 | *) | |
14421 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
14422 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
14423 | ;; | |
14424 | esac | |
14425 | ;; | |
14426 | ||
14427 | interix[3-9]*) | |
14428 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
14429 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
14430 | ;; | |
14431 | ||
14432 | irix5* | irix6* | nonstopux*) | |
14433 | case $LD in | |
14434 | *-32|*"-32 ") libmagic=32-bit;; | |
14435 | *-n32|*"-n32 ") libmagic=N32;; | |
14436 | *-64|*"-64 ") libmagic=64-bit;; | |
14437 | *) libmagic=never-match;; | |
14438 | esac | |
14439 | lt_cv_deplibs_check_method=pass_all | |
14440 | ;; | |
14441 | ||
14442 | # This must be glibc/ELF. | |
14443 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14444 | lt_cv_deplibs_check_method=pass_all | |
14445 | ;; | |
14446 | ||
14447 | netbsd*) | |
14448 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
14449 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
14450 | else | |
14451 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
14452 | fi | |
14453 | ;; | |
14454 | ||
14455 | newos6*) | |
14456 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
14457 | lt_cv_file_magic_cmd=/usr/bin/file | |
14458 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
14459 | ;; | |
14460 | ||
14461 | *nto* | *qnx*) | |
14462 | lt_cv_deplibs_check_method=pass_all | |
14463 | ;; | |
14464 | ||
14465 | openbsd*) | |
14466 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14467 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
14468 | else | |
14469 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
14470 | fi | |
14471 | ;; | |
14472 | ||
14473 | osf3* | osf4* | osf5*) | |
14474 | lt_cv_deplibs_check_method=pass_all | |
14475 | ;; | |
14476 | ||
14477 | rdos*) | |
14478 | lt_cv_deplibs_check_method=pass_all | |
14479 | ;; | |
14480 | ||
14481 | solaris*) | |
14482 | lt_cv_deplibs_check_method=pass_all | |
14483 | ;; | |
14484 | ||
14485 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14486 | lt_cv_deplibs_check_method=pass_all | |
14487 | ;; | |
14488 | ||
14489 | sysv4 | sysv4.3*) | |
14490 | case $host_vendor in | |
14491 | motorola) | |
14492 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
14493 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
14494 | ;; | |
14495 | ncr) | |
14496 | lt_cv_deplibs_check_method=pass_all | |
14497 | ;; | |
14498 | sequent) | |
14499 | lt_cv_file_magic_cmd='/bin/file' | |
14500 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
14501 | ;; | |
14502 | sni) | |
14503 | lt_cv_file_magic_cmd='/bin/file' | |
14504 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
14505 | lt_cv_file_magic_test_file=/lib/libc.so | |
14506 | ;; | |
14507 | siemens) | |
14508 | lt_cv_deplibs_check_method=pass_all | |
14509 | ;; | |
14510 | pc) | |
14511 | lt_cv_deplibs_check_method=pass_all | |
14512 | ;; | |
14513 | esac | |
14514 | ;; | |
14515 | ||
14516 | tpf*) | |
14517 | lt_cv_deplibs_check_method=pass_all | |
14518 | ;; | |
14519 | esac | |
14520 | ||
14521 | fi | |
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
14523 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
14524 | ||
14525 | file_magic_glob= | |
14526 | want_nocaseglob=no | |
14527 | if test "$build" = "$host"; then | |
14528 | case $host_os in | |
14529 | mingw* | pw32*) | |
14530 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
14531 | want_nocaseglob=yes | |
14532 | else | |
14533 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
14534 | fi | |
14535 | ;; | |
14536 | esac | |
14537 | fi | |
14538 | ||
14539 | file_magic_cmd=$lt_cv_file_magic_cmd | |
14540 | deplibs_check_method=$lt_cv_deplibs_check_method | |
14541 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
14542 | ||
14543 | ||
14544 | ||
14545 | ||
14546 | ||
14547 | ||
14548 | ||
14549 | ||
14550 | ||
14551 | ||
14552 | ||
14553 | ||
14554 | ||
14555 | ||
14556 | ||
14557 | ||
14558 | ||
14559 | ||
14560 | ||
14561 | ||
14562 | ||
14563 | ||
14564 | if test -n "$ac_tool_prefix"; then | |
14565 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
14566 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14568 | $as_echo_n "checking for $ac_word... " >&6; } | |
14569 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
14570 | $as_echo_n "(cached) " >&6 | |
14571 | else | |
14572 | if test -n "$DLLTOOL"; then | |
14573 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14574 | else | |
14575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14576 | for as_dir in $PATH | |
14577 | do | |
14578 | IFS=$as_save_IFS | |
14579 | test -z "$as_dir" && as_dir=. | |
14580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14582 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14584 | break 2 | |
14585 | fi | |
14586 | done | |
14587 | done | |
14588 | IFS=$as_save_IFS | |
14589 | ||
14590 | fi | |
14591 | fi | |
14592 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14593 | if test -n "$DLLTOOL"; then | |
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
14595 | $as_echo "$DLLTOOL" >&6; } | |
14596 | else | |
14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14598 | $as_echo "no" >&6; } | |
14599 | fi | |
14600 | ||
14601 | ||
14602 | fi | |
14603 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14604 | ac_ct_DLLTOOL=$DLLTOOL | |
14605 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14606 | set dummy dlltool; ac_word=$2 | |
14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14608 | $as_echo_n "checking for $ac_word... " >&6; } | |
14609 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
14610 | $as_echo_n "(cached) " >&6 | |
14611 | else | |
14612 | if test -n "$ac_ct_DLLTOOL"; then | |
14613 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14614 | else | |
14615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14616 | for as_dir in $PATH | |
14617 | do | |
14618 | IFS=$as_save_IFS | |
14619 | test -z "$as_dir" && as_dir=. | |
14620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14622 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14624 | break 2 | |
14625 | fi | |
14626 | done | |
14627 | done | |
14628 | IFS=$as_save_IFS | |
14629 | ||
14630 | fi | |
14631 | fi | |
14632 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14633 | if test -n "$ac_ct_DLLTOOL"; then | |
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
14635 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
14636 | else | |
14637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14638 | $as_echo "no" >&6; } | |
14639 | fi | |
14640 | ||
14641 | if test "x$ac_ct_DLLTOOL" = x; then | |
14642 | DLLTOOL="false" | |
14643 | else | |
14644 | case $cross_compiling:$ac_tool_warned in | |
14645 | yes:) | |
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14647 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14648 | ac_tool_warned=yes ;; | |
14649 | esac | |
14650 | DLLTOOL=$ac_ct_DLLTOOL | |
14651 | fi | |
14652 | else | |
14653 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14654 | fi | |
14655 | ||
14656 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
14657 | ||
14658 | ||
14659 | ||
14660 | ||
14661 | ||
14662 | ||
14663 | ||
14664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
14665 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
14666 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
14667 | $as_echo_n "(cached) " >&6 | |
14668 | else | |
14669 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
14670 | ||
14671 | case $host_os in | |
14672 | cygwin* | mingw* | pw32* | cegcc*) | |
14673 | # two different shell functions defined in ltmain.sh | |
14674 | # decide which to use based on capabilities of $DLLTOOL | |
14675 | case `$DLLTOOL --help 2>&1` in | |
14676 | *--identify-strict*) | |
14677 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
14678 | ;; | |
14679 | *) | |
14680 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
14681 | ;; | |
14682 | esac | |
14683 | ;; | |
14684 | *) | |
14685 | # fallback: assume linklib IS sharedlib | |
14686 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
14687 | ;; | |
14688 | esac | |
14689 | ||
14690 | fi | |
14691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
14692 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
14693 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
14694 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
14695 | ||
14696 | ||
14697 | ||
14698 | ||
14699 | ||
14700 | ||
14701 | ||
14702 | if test -n "$ac_tool_prefix"; then | |
14703 | for ac_prog in ar | |
14704 | do | |
14705 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
14706 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
14707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14708 | $as_echo_n "checking for $ac_word... " >&6; } | |
14709 | if ${ac_cv_prog_AR+:} false; then : | |
14710 | $as_echo_n "(cached) " >&6 | |
14711 | else | |
14712 | if test -n "$AR"; then | |
14713 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14714 | else | |
14715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14716 | for as_dir in $PATH | |
14717 | do | |
14718 | IFS=$as_save_IFS | |
14719 | test -z "$as_dir" && as_dir=. | |
14720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14722 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
14723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14724 | break 2 | |
14725 | fi | |
14726 | done | |
14727 | done | |
14728 | IFS=$as_save_IFS | |
14729 | ||
14730 | fi | |
14731 | fi | |
14732 | AR=$ac_cv_prog_AR | |
14733 | if test -n "$AR"; then | |
14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
14735 | $as_echo "$AR" >&6; } | |
14736 | else | |
14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14738 | $as_echo "no" >&6; } | |
14739 | fi | |
14740 | ||
14741 | ||
14742 | test -n "$AR" && break | |
14743 | done | |
14744 | fi | |
14745 | if test -z "$AR"; then | |
14746 | ac_ct_AR=$AR | |
14747 | for ac_prog in ar | |
14748 | do | |
14749 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14750 | set dummy $ac_prog; ac_word=$2 | |
14751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14752 | $as_echo_n "checking for $ac_word... " >&6; } | |
14753 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
14754 | $as_echo_n "(cached) " >&6 | |
14755 | else | |
14756 | if test -n "$ac_ct_AR"; then | |
14757 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14758 | else | |
14759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14760 | for as_dir in $PATH | |
14761 | do | |
14762 | IFS=$as_save_IFS | |
14763 | test -z "$as_dir" && as_dir=. | |
14764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14766 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
14767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14768 | break 2 | |
14769 | fi | |
14770 | done | |
14771 | done | |
14772 | IFS=$as_save_IFS | |
14773 | ||
14774 | fi | |
14775 | fi | |
14776 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14777 | if test -n "$ac_ct_AR"; then | |
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
14779 | $as_echo "$ac_ct_AR" >&6; } | |
14780 | else | |
14781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14782 | $as_echo "no" >&6; } | |
14783 | fi | |
14784 | ||
14785 | ||
14786 | test -n "$ac_ct_AR" && break | |
14787 | done | |
14788 | ||
14789 | if test "x$ac_ct_AR" = x; then | |
14790 | AR="false" | |
14791 | else | |
14792 | case $cross_compiling:$ac_tool_warned in | |
14793 | yes:) | |
14794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14795 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14796 | ac_tool_warned=yes ;; | |
14797 | esac | |
14798 | AR=$ac_ct_AR | |
14799 | fi | |
14800 | fi | |
14801 | ||
14802 | : ${AR=ar} | |
14803 | : ${AR_FLAGS=cru} | |
14804 | ||
14805 | ||
14806 | ||
14807 | ||
14808 | ||
14809 | ||
14810 | ||
14811 | ||
14812 | ||
14813 | ||
14814 | ||
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
14816 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
14817 | if ${lt_cv_ar_at_file+:} false; then : | |
14818 | $as_echo_n "(cached) " >&6 | |
14819 | else | |
14820 | lt_cv_ar_at_file=no | |
14821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14822 | /* end confdefs.h. */ | |
14823 | ||
14824 | int | |
14825 | main () | |
14826 | { | |
14827 | ||
14828 | ; | |
14829 | return 0; | |
14830 | } | |
14831 | _ACEOF | |
14832 | if ac_fn_c_try_compile "$LINENO"; then : | |
14833 | echo conftest.$ac_objext > conftest.lst | |
14834 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
14835 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
14836 | (eval $lt_ar_try) 2>&5 | |
14837 | ac_status=$? | |
14838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14839 | test $ac_status = 0; } | |
14840 | if test "$ac_status" -eq 0; then | |
14841 | # Ensure the archiver fails upon bogus file names. | |
14842 | rm -f conftest.$ac_objext libconftest.a | |
14843 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
14844 | (eval $lt_ar_try) 2>&5 | |
14845 | ac_status=$? | |
14846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14847 | test $ac_status = 0; } | |
14848 | if test "$ac_status" -ne 0; then | |
14849 | lt_cv_ar_at_file=@ | |
14850 | fi | |
14851 | fi | |
14852 | rm -f conftest.* libconftest.a | |
14853 | ||
14854 | fi | |
14855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14856 | ||
14857 | fi | |
14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
14859 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
14860 | ||
14861 | if test "x$lt_cv_ar_at_file" = xno; then | |
14862 | archiver_list_spec= | |
14863 | else | |
14864 | archiver_list_spec=$lt_cv_ar_at_file | |
14865 | fi | |
14866 | ||
14867 | ||
14868 | ||
14869 | ||
14870 | ||
14871 | ||
14872 | ||
14873 | if test -n "$ac_tool_prefix"; then | |
14874 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14875 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
14876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14877 | $as_echo_n "checking for $ac_word... " >&6; } | |
14878 | if ${ac_cv_prog_STRIP+:} false; then : | |
14879 | $as_echo_n "(cached) " >&6 | |
14880 | else | |
14881 | if test -n "$STRIP"; then | |
14882 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14883 | else | |
14884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14885 | for as_dir in $PATH | |
14886 | do | |
14887 | IFS=$as_save_IFS | |
14888 | test -z "$as_dir" && as_dir=. | |
14889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14891 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
14892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14893 | break 2 | |
14894 | fi | |
14895 | done | |
14896 | done | |
14897 | IFS=$as_save_IFS | |
14898 | ||
14899 | fi | |
14900 | fi | |
14901 | STRIP=$ac_cv_prog_STRIP | |
14902 | if test -n "$STRIP"; then | |
14903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
14904 | $as_echo "$STRIP" >&6; } | |
14905 | else | |
14906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14907 | $as_echo "no" >&6; } | |
14908 | fi | |
14909 | ||
14910 | ||
14911 | fi | |
14912 | if test -z "$ac_cv_prog_STRIP"; then | |
14913 | ac_ct_STRIP=$STRIP | |
14914 | # Extract the first word of "strip", so it can be a program name with args. | |
14915 | set dummy strip; ac_word=$2 | |
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14917 | $as_echo_n "checking for $ac_word... " >&6; } | |
14918 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
14919 | $as_echo_n "(cached) " >&6 | |
14920 | else | |
14921 | if test -n "$ac_ct_STRIP"; then | |
14922 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14923 | else | |
14924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14925 | for as_dir in $PATH | |
14926 | do | |
14927 | IFS=$as_save_IFS | |
14928 | test -z "$as_dir" && as_dir=. | |
14929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14931 | ac_cv_prog_ac_ct_STRIP="strip" | |
14932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14933 | break 2 | |
14934 | fi | |
14935 | done | |
14936 | done | |
14937 | IFS=$as_save_IFS | |
14938 | ||
14939 | fi | |
14940 | fi | |
14941 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14942 | if test -n "$ac_ct_STRIP"; then | |
14943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
14944 | $as_echo "$ac_ct_STRIP" >&6; } | |
14945 | else | |
14946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14947 | $as_echo "no" >&6; } | |
14948 | fi | |
14949 | ||
14950 | if test "x$ac_ct_STRIP" = x; then | |
14951 | STRIP=":" | |
14952 | else | |
14953 | case $cross_compiling:$ac_tool_warned in | |
14954 | yes:) | |
14955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14956 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14957 | ac_tool_warned=yes ;; | |
14958 | esac | |
14959 | STRIP=$ac_ct_STRIP | |
14960 | fi | |
14961 | else | |
14962 | STRIP="$ac_cv_prog_STRIP" | |
14963 | fi | |
14964 | ||
14965 | test -z "$STRIP" && STRIP=: | |
14966 | ||
14967 | ||
14968 | ||
14969 | ||
14970 | ||
14971 | ||
14972 | if test -n "$ac_tool_prefix"; then | |
14973 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14974 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14976 | $as_echo_n "checking for $ac_word... " >&6; } | |
14977 | if ${ac_cv_prog_RANLIB+:} false; then : | |
14978 | $as_echo_n "(cached) " >&6 | |
14979 | else | |
14980 | if test -n "$RANLIB"; then | |
14981 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14982 | else | |
14983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14984 | for as_dir in $PATH | |
14985 | do | |
14986 | IFS=$as_save_IFS | |
14987 | test -z "$as_dir" && as_dir=. | |
14988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14990 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14992 | break 2 | |
14993 | fi | |
14994 | done | |
14995 | done | |
14996 | IFS=$as_save_IFS | |
14997 | ||
14998 | fi | |
14999 | fi | |
15000 | RANLIB=$ac_cv_prog_RANLIB | |
15001 | if test -n "$RANLIB"; then | |
15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
15003 | $as_echo "$RANLIB" >&6; } | |
15004 | else | |
15005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15006 | $as_echo "no" >&6; } | |
15007 | fi | |
15008 | ||
15009 | ||
15010 | fi | |
15011 | if test -z "$ac_cv_prog_RANLIB"; then | |
15012 | ac_ct_RANLIB=$RANLIB | |
15013 | # Extract the first word of "ranlib", so it can be a program name with args. | |
15014 | set dummy ranlib; ac_word=$2 | |
15015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15016 | $as_echo_n "checking for $ac_word... " >&6; } | |
15017 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
15018 | $as_echo_n "(cached) " >&6 | |
15019 | else | |
15020 | if test -n "$ac_ct_RANLIB"; then | |
15021 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
15022 | else | |
15023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15024 | for as_dir in $PATH | |
15025 | do | |
15026 | IFS=$as_save_IFS | |
15027 | test -z "$as_dir" && as_dir=. | |
15028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15030 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
15031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15032 | break 2 | |
15033 | fi | |
15034 | done | |
15035 | done | |
15036 | IFS=$as_save_IFS | |
15037 | ||
15038 | fi | |
15039 | fi | |
15040 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
15041 | if test -n "$ac_ct_RANLIB"; then | |
15042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
15043 | $as_echo "$ac_ct_RANLIB" >&6; } | |
15044 | else | |
15045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15046 | $as_echo "no" >&6; } | |
15047 | fi | |
15048 | ||
15049 | if test "x$ac_ct_RANLIB" = x; then | |
15050 | RANLIB=":" | |
15051 | else | |
15052 | case $cross_compiling:$ac_tool_warned in | |
15053 | yes:) | |
15054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15055 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15056 | ac_tool_warned=yes ;; | |
15057 | esac | |
15058 | RANLIB=$ac_ct_RANLIB | |
15059 | fi | |
15060 | else | |
15061 | RANLIB="$ac_cv_prog_RANLIB" | |
15062 | fi | |
15063 | ||
15064 | test -z "$RANLIB" && RANLIB=: | |
15065 | ||
15066 | ||
15067 | ||
15068 | ||
15069 | ||
15070 | ||
15071 | # Determine commands to create old-style static archives. | |
15072 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
15073 | old_postinstall_cmds='chmod 644 $oldlib' | |
15074 | old_postuninstall_cmds= | |
15075 | ||
15076 | if test -n "$RANLIB"; then | |
15077 | case $host_os in | |
15078 | openbsd*) | |
15079 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
15080 | ;; | |
15081 | *) | |
15082 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
15083 | ;; | |
15084 | esac | |
15085 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
15086 | fi | |
15087 | ||
15088 | case $host_os in | |
15089 | darwin*) | |
15090 | lock_old_archive_extraction=yes ;; | |
15091 | *) | |
15092 | lock_old_archive_extraction=no ;; | |
15093 | esac | |
15094 | ||
15095 | ||
15096 | ||
15097 | ||
15098 | ||
15099 | ||
15100 | ||
15101 | ||
15102 | ||
15103 | ||
15104 | ||
15105 | ||
15106 | ||
15107 | ||
15108 | ||
15109 | ||
15110 | ||
15111 | ||
15112 | ||
15113 | ||
15114 | ||
15115 | ||
15116 | ||
15117 | ||
15118 | ||
15119 | ||
15120 | ||
15121 | ||
15122 | ||
15123 | ||
15124 | ||
15125 | ||
15126 | ||
15127 | ||
15128 | ||
15129 | ||
15130 | ||
15131 | ||
15132 | ||
15133 | # If no C compiler was specified, use CC. | |
15134 | LTCC=${LTCC-"$CC"} | |
15135 | ||
15136 | # If no C compiler flags were specified, use CFLAGS. | |
15137 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15138 | ||
15139 | # Allow CC to be a program name with arguments. | |
15140 | compiler=$CC | |
15141 | ||
15142 | ||
15143 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
15144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
15145 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
15146 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
15147 | $as_echo_n "(cached) " >&6 | |
15148 | else | |
15149 | ||
15150 | # These are sane defaults that work on at least a few old systems. | |
15151 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
15152 | ||
15153 | # Character class describing NM global symbol codes. | |
15154 | symcode='[BCDEGRST]' | |
15155 | ||
15156 | # Regexp to match symbols that can be accessed directly from C. | |
15157 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
15158 | ||
15159 | # Define system-specific variables. | |
15160 | case $host_os in | |
15161 | aix*) | |
15162 | symcode='[BCDT]' | |
15163 | ;; | |
15164 | cygwin* | mingw* | pw32* | cegcc*) | |
15165 | symcode='[ABCDGISTW]' | |
15166 | ;; | |
15167 | hpux*) | |
15168 | if test "$host_cpu" = ia64; then | |
15169 | symcode='[ABCDEGRST]' | |
15170 | fi | |
15171 | ;; | |
15172 | irix* | nonstopux*) | |
15173 | symcode='[BCDEGRST]' | |
15174 | ;; | |
15175 | osf*) | |
15176 | symcode='[BCDEGQRST]' | |
15177 | ;; | |
15178 | solaris*) | |
15179 | symcode='[BDRT]' | |
15180 | ;; | |
15181 | sco3.2v5*) | |
15182 | symcode='[DT]' | |
15183 | ;; | |
15184 | sysv4.2uw2*) | |
15185 | symcode='[DT]' | |
15186 | ;; | |
15187 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
15188 | symcode='[ABDT]' | |
15189 | ;; | |
15190 | sysv4) | |
15191 | symcode='[DFNSTU]' | |
15192 | ;; | |
15193 | esac | |
15194 | ||
15195 | # If we're using GNU nm, then use its standard symbol codes. | |
15196 | case `$NM -V 2>&1` in | |
15197 | *GNU* | *'with BFD'*) | |
15198 | symcode='[ABCDGIRSTW]' ;; | |
15199 | esac | |
15200 | ||
15201 | # Transform an extracted symbol line into a proper C declaration. | |
15202 | # Some systems (esp. on ia64) link data and code symbols differently, | |
15203 | # so use this general approach. | |
15204 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
15205 | ||
15206 | # Transform an extracted symbol line into symbol name and symbol address | |
15207 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
15208 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
15209 | ||
15210 | # Handle CRLF in mingw tool chain | |
15211 | opt_cr= | |
15212 | case $build_os in | |
15213 | mingw*) | |
15214 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
15215 | ;; | |
15216 | esac | |
15217 | ||
15218 | # Try without a prefix underscore, then with it. | |
15219 | for ac_symprfx in "" "_"; do | |
15220 | ||
15221 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
15222 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
15223 | ||
15224 | # Write the raw and C identifiers. | |
15225 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
15226 | # Fake it for dumpbin and say T for any non-static function | |
15227 | # and D for any global variable. | |
15228 | # Also find C++ and __fastcall symbols from MSVC++, | |
15229 | # which start with @ or ?. | |
15230 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
15231 | " {last_section=section; section=\$ 3};"\ | |
15232 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
15233 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
15234 | " \$ 0!~/External *\|/{next};"\ | |
15235 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
15236 | " {if(hide[section]) next};"\ | |
15237 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
15238 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
15239 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
15240 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
15241 | " ' prfx=^$ac_symprfx" | |
15242 | else | |
15243 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
15244 | fi | |
15245 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
15246 | ||
15247 | # Check to see that the pipe works correctly. | |
15248 | pipe_works=no | |
15249 | ||
15250 | rm -f conftest* | |
15251 | cat > conftest.$ac_ext <<_LT_EOF | |
15252 | #ifdef __cplusplus | |
15253 | extern "C" { | |
15254 | #endif | |
15255 | char nm_test_var; | |
15256 | void nm_test_func(void); | |
15257 | void nm_test_func(void){} | |
15258 | #ifdef __cplusplus | |
15259 | } | |
15260 | #endif | |
15261 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
15262 | _LT_EOF | |
15263 | ||
15264 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
15265 | (eval $ac_compile) 2>&5 | |
15266 | ac_status=$? | |
15267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15268 | test $ac_status = 0; }; then | |
15269 | # Now try to grab the symbols. | |
15270 | nlist=conftest.nm | |
15271 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
15272 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
15273 | ac_status=$? | |
15274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15275 | test $ac_status = 0; } && test -s "$nlist"; then | |
15276 | # Try sorting and uniquifying the output. | |
15277 | if sort "$nlist" | uniq > "$nlist"T; then | |
15278 | mv -f "$nlist"T "$nlist" | |
15279 | else | |
15280 | rm -f "$nlist"T | |
15281 | fi | |
15282 | ||
15283 | # Make sure that we snagged all the symbols we need. | |
15284 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
15285 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
15286 | cat <<_LT_EOF > conftest.$ac_ext | |
15287 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
15288 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
15289 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
15290 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
15291 | # define LT_DLSYM_CONST | |
15292 | #elif defined(__osf__) | |
15293 | /* This system does not cope well with relocations in const data. */ | |
15294 | # define LT_DLSYM_CONST | |
15295 | #else | |
15296 | # define LT_DLSYM_CONST const | |
15297 | #endif | |
15298 | ||
15299 | #ifdef __cplusplus | |
15300 | extern "C" { | |
15301 | #endif | |
15302 | ||
15303 | _LT_EOF | |
15304 | # Now generate the symbol file. | |
15305 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
15306 | ||
15307 | cat <<_LT_EOF >> conftest.$ac_ext | |
15308 | ||
15309 | /* The mapping between symbol names and symbols. */ | |
15310 | LT_DLSYM_CONST struct { | |
15311 | const char *name; | |
15312 | void *address; | |
15313 | } | |
15314 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
15315 | { | |
15316 | { "@PROGRAM@", (void *) 0 }, | |
15317 | _LT_EOF | |
15318 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
15319 | cat <<\_LT_EOF >> conftest.$ac_ext | |
15320 | {0, (void *) 0} | |
15321 | }; | |
15322 | ||
15323 | /* This works around a problem in FreeBSD linker */ | |
15324 | #ifdef FREEBSD_WORKAROUND | |
15325 | static const void *lt_preloaded_setup() { | |
15326 | return lt__PROGRAM__LTX_preloaded_symbols; | |
15327 | } | |
15328 | #endif | |
15329 | ||
15330 | #ifdef __cplusplus | |
15331 | } | |
15332 | #endif | |
15333 | _LT_EOF | |
15334 | # Now try linking the two files. | |
15335 | mv conftest.$ac_objext conftstm.$ac_objext | |
15336 | lt_globsym_save_LIBS=$LIBS | |
15337 | lt_globsym_save_CFLAGS=$CFLAGS | |
15338 | LIBS="conftstm.$ac_objext" | |
15339 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
15340 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
15341 | (eval $ac_link) 2>&5 | |
15342 | ac_status=$? | |
15343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15344 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
15345 | pipe_works=yes | |
15346 | fi | |
15347 | LIBS=$lt_globsym_save_LIBS | |
15348 | CFLAGS=$lt_globsym_save_CFLAGS | |
15349 | else | |
15350 | echo "cannot find nm_test_func in $nlist" >&5 | |
15351 | fi | |
15352 | else | |
15353 | echo "cannot find nm_test_var in $nlist" >&5 | |
15354 | fi | |
15355 | else | |
15356 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
15357 | fi | |
15358 | else | |
15359 | echo "$progname: failed program was:" >&5 | |
15360 | cat conftest.$ac_ext >&5 | |
15361 | fi | |
15362 | rm -rf conftest* conftst* | |
15363 | ||
15364 | # Do not use the global_symbol_pipe unless it works. | |
15365 | if test "$pipe_works" = yes; then | |
15366 | break | |
15367 | else | |
15368 | lt_cv_sys_global_symbol_pipe= | |
15369 | fi | |
15370 | done | |
15371 | ||
15372 | fi | |
15373 | ||
15374 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
15375 | lt_cv_sys_global_symbol_to_cdecl= | |
15376 | fi | |
15377 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
15379 | $as_echo "failed" >&6; } | |
15380 | else | |
15381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
15382 | $as_echo "ok" >&6; } | |
15383 | fi | |
15384 | ||
15385 | # Response file support. | |
15386 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
15387 | nm_file_list_spec='@' | |
15388 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
15389 | nm_file_list_spec='@' | |
15390 | fi | |
15391 | ||
15392 | ||
15393 | ||
15394 | ||
15395 | ||
15396 | ||
15397 | ||
15398 | ||
15399 | ||
15400 | ||
15401 | ||
15402 | ||
15403 | ||
15404 | ||
15405 | ||
15406 | ||
15407 | ||
15408 | ||
15409 | ||
15410 | ||
15411 | ||
15412 | ||
15413 | ||
15414 | ||
15415 | ||
15416 | ||
15417 | ||
15418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
15419 | $as_echo_n "checking for sysroot... " >&6; } | |
15420 | ||
15421 | # Check whether --with-sysroot was given. | |
15422 | if test "${with_sysroot+set}" = set; then : | |
15423 | withval=$with_sysroot; | |
15424 | else | |
15425 | with_sysroot=no | |
15426 | fi | |
15427 | ||
15428 | ||
15429 | lt_sysroot= | |
15430 | case ${with_sysroot} in #( | |
15431 | yes) | |
15432 | if test "$GCC" = yes; then | |
15433 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
15434 | fi | |
15435 | ;; #( | |
15436 | /*) | |
15437 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
15438 | ;; #( | |
15439 | no|'') | |
15440 | ;; #( | |
15441 | *) | |
15442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
15443 | $as_echo "${with_sysroot}" >&6; } | |
15444 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
15445 | ;; | |
15446 | esac | |
15447 | ||
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
15449 | $as_echo "${lt_sysroot:-no}" >&6; } | |
15450 | ||
15451 | ||
15452 | ||
15453 | ||
15454 | ||
15455 | # Check whether --enable-libtool-lock was given. | |
15456 | if test "${enable_libtool_lock+set}" = set; then : | |
15457 | enableval=$enable_libtool_lock; | |
15458 | fi | |
15459 | ||
15460 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
15461 | ||
15462 | # Some flags need to be propagated to the compiler or linker for good | |
15463 | # libtool support. | |
15464 | case $host in | |
15465 | ia64-*-hpux*) | |
15466 | # Find out which ABI we are using. | |
15467 | echo 'int i;' > conftest.$ac_ext | |
15468 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
15469 | (eval $ac_compile) 2>&5 | |
15470 | ac_status=$? | |
15471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15472 | test $ac_status = 0; }; then | |
15473 | case `/usr/bin/file conftest.$ac_objext` in | |
15474 | *ELF-32*) | |
15475 | HPUX_IA64_MODE="32" | |
15476 | ;; | |
15477 | *ELF-64*) | |
15478 | HPUX_IA64_MODE="64" | |
15479 | ;; | |
15480 | esac | |
15481 | fi | |
15482 | rm -rf conftest* | |
15483 | ;; | |
15484 | *-*-irix6*) | |
15485 | # Find out which ABI we are using. | |
15486 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
15487 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
15488 | (eval $ac_compile) 2>&5 | |
15489 | ac_status=$? | |
15490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15491 | test $ac_status = 0; }; then | |
15492 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15493 | case `/usr/bin/file conftest.$ac_objext` in | |
15494 | *32-bit*) | |
15495 | LD="${LD-ld} -melf32bsmip" | |
15496 | ;; | |
15497 | *N32*) | |
15498 | LD="${LD-ld} -melf32bmipn32" | |
15499 | ;; | |
15500 | *64-bit*) | |
15501 | LD="${LD-ld} -melf64bmip" | |
15502 | ;; | |
15503 | esac | |
15504 | else | |
15505 | case `/usr/bin/file conftest.$ac_objext` in | |
15506 | *32-bit*) | |
15507 | LD="${LD-ld} -32" | |
15508 | ;; | |
15509 | *N32*) | |
15510 | LD="${LD-ld} -n32" | |
15511 | ;; | |
15512 | *64-bit*) | |
15513 | LD="${LD-ld} -64" | |
15514 | ;; | |
15515 | esac | |
15516 | fi | |
15517 | fi | |
15518 | rm -rf conftest* | |
15519 | ;; | |
15520 | ||
15521 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
15522 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
15523 | # Find out which ABI we are using. | |
15524 | echo 'int i;' > conftest.$ac_ext | |
15525 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
15526 | (eval $ac_compile) 2>&5 | |
15527 | ac_status=$? | |
15528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15529 | test $ac_status = 0; }; then | |
15530 | case `/usr/bin/file conftest.o` in | |
15531 | *32-bit*) | |
15532 | case $host in | |
15533 | x86_64-*kfreebsd*-gnu) | |
15534 | LD="${LD-ld} -m elf_i386_fbsd" | |
15535 | ;; | |
15536 | x86_64-*linux*) | |
15537 | LD="${LD-ld} -m elf_i386" | |
15538 | ;; | |
15539 | ppc64-*linux*|powerpc64-*linux*) | |
15540 | LD="${LD-ld} -m elf32ppclinux" | |
15541 | ;; | |
15542 | s390x-*linux*) | |
15543 | LD="${LD-ld} -m elf_s390" | |
15544 | ;; | |
15545 | sparc64-*linux*) | |
15546 | LD="${LD-ld} -m elf32_sparc" | |
15547 | ;; | |
15548 | esac | |
15549 | ;; | |
15550 | *64-bit*) | |
15551 | case $host in | |
15552 | x86_64-*kfreebsd*-gnu) | |
15553 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
15554 | ;; | |
15555 | x86_64-*linux*) | |
15556 | LD="${LD-ld} -m elf_x86_64" | |
15557 | ;; | |
15558 | ppc*-*linux*|powerpc*-*linux*) | |
15559 | LD="${LD-ld} -m elf64ppc" | |
15560 | ;; | |
15561 | s390*-*linux*|s390*-*tpf*) | |
15562 | LD="${LD-ld} -m elf64_s390" | |
15563 | ;; | |
15564 | sparc*-*linux*) | |
15565 | LD="${LD-ld} -m elf64_sparc" | |
15566 | ;; | |
15567 | esac | |
15568 | ;; | |
15569 | esac | |
15570 | fi | |
15571 | rm -rf conftest* | |
15572 | ;; | |
15573 | ||
15574 | *-*-sco3.2v5*) | |
15575 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
15576 | SAVE_CFLAGS="$CFLAGS" | |
15577 | CFLAGS="$CFLAGS -belf" | |
15578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
15579 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
15580 | if ${lt_cv_cc_needs_belf+:} false; then : | |
15581 | $as_echo_n "(cached) " >&6 | |
15582 | else | |
15583 | ac_ext=c | |
15584 | ac_cpp='$CPP $CPPFLAGS' | |
15585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15588 | ||
15589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15590 | /* end confdefs.h. */ | |
15591 | ||
15592 | int | |
15593 | main () | |
15594 | { | |
15595 | ||
15596 | ; | |
15597 | return 0; | |
15598 | } | |
15599 | _ACEOF | |
15600 | if ac_fn_c_try_link "$LINENO"; then : | |
15601 | lt_cv_cc_needs_belf=yes | |
15602 | else | |
15603 | lt_cv_cc_needs_belf=no | |
15604 | fi | |
15605 | rm -f core conftest.err conftest.$ac_objext \ | |
15606 | conftest$ac_exeext conftest.$ac_ext | |
15607 | ac_ext=c | |
15608 | ac_cpp='$CPP $CPPFLAGS' | |
15609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15612 | ||
15613 | fi | |
15614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
15615 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
15616 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
15617 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
15618 | CFLAGS="$SAVE_CFLAGS" | |
15619 | fi | |
15620 | ;; | |
15621 | *-*solaris*) | |
15622 | # Find out which ABI we are using. | |
15623 | echo 'int i;' > conftest.$ac_ext | |
15624 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
15625 | (eval $ac_compile) 2>&5 | |
15626 | ac_status=$? | |
15627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15628 | test $ac_status = 0; }; then | |
15629 | case `/usr/bin/file conftest.o` in | |
15630 | *64-bit*) | |
15631 | case $lt_cv_prog_gnu_ld in | |
15632 | yes*) | |
15633 | case $host in | |
15634 | i?86-*-solaris*) | |
15635 | LD="${LD-ld} -m elf_x86_64" | |
15636 | ;; | |
15637 | sparc*-*-solaris*) | |
15638 | LD="${LD-ld} -m elf64_sparc" | |
15639 | ;; | |
15640 | esac | |
15641 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
15642 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
15643 | LD="${LD-ld}_sol2" | |
15644 | fi | |
15645 | ;; | |
15646 | *) | |
15647 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
15648 | LD="${LD-ld} -64" | |
15649 | fi | |
15650 | ;; | |
15651 | esac | |
15652 | ;; | |
15653 | esac | |
15654 | fi | |
15655 | rm -rf conftest* | |
15656 | ;; | |
15657 | esac | |
15658 | ||
15659 | need_locks="$enable_libtool_lock" | |
15660 | ||
15661 | if test -n "$ac_tool_prefix"; then | |
15662 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
15663 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
15664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15665 | $as_echo_n "checking for $ac_word... " >&6; } | |
15666 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
15667 | $as_echo_n "(cached) " >&6 | |
15668 | else | |
15669 | if test -n "$MANIFEST_TOOL"; then | |
15670 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
15671 | else | |
15672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15673 | for as_dir in $PATH | |
15674 | do | |
15675 | IFS=$as_save_IFS | |
15676 | test -z "$as_dir" && as_dir=. | |
15677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15679 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
15680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15681 | break 2 | |
15682 | fi | |
15683 | done | |
15684 | done | |
15685 | IFS=$as_save_IFS | |
15686 | ||
15687 | fi | |
15688 | fi | |
15689 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
15690 | if test -n "$MANIFEST_TOOL"; then | |
15691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
15692 | $as_echo "$MANIFEST_TOOL" >&6; } | |
15693 | else | |
15694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15695 | $as_echo "no" >&6; } | |
15696 | fi | |
15697 | ||
15698 | ||
15699 | fi | |
15700 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
15701 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
15702 | # Extract the first word of "mt", so it can be a program name with args. | |
15703 | set dummy mt; ac_word=$2 | |
15704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15705 | $as_echo_n "checking for $ac_word... " >&6; } | |
15706 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
15707 | $as_echo_n "(cached) " >&6 | |
15708 | else | |
15709 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
15710 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
15711 | else | |
15712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15713 | for as_dir in $PATH | |
15714 | do | |
15715 | IFS=$as_save_IFS | |
15716 | test -z "$as_dir" && as_dir=. | |
15717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15719 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
15720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15721 | break 2 | |
15722 | fi | |
15723 | done | |
15724 | done | |
15725 | IFS=$as_save_IFS | |
15726 | ||
15727 | fi | |
15728 | fi | |
15729 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
15730 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
15732 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
15733 | else | |
15734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15735 | $as_echo "no" >&6; } | |
15736 | fi | |
15737 | ||
15738 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
15739 | MANIFEST_TOOL=":" | |
15740 | else | |
15741 | case $cross_compiling:$ac_tool_warned in | |
15742 | yes:) | |
15743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15744 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15745 | ac_tool_warned=yes ;; | |
15746 | esac | |
15747 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
15748 | fi | |
15749 | else | |
15750 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
15751 | fi | |
15752 | ||
15753 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
15754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
15755 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
15756 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
15757 | $as_echo_n "(cached) " >&6 | |
15758 | else | |
15759 | lt_cv_path_mainfest_tool=no | |
15760 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
15761 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
15762 | cat conftest.err >&5 | |
15763 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
15764 | lt_cv_path_mainfest_tool=yes | |
15765 | fi | |
15766 | rm -f conftest* | |
15767 | fi | |
15768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
15769 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
15770 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
15771 | MANIFEST_TOOL=: | |
15772 | fi | |
15773 | ||
15774 | ||
15775 | ||
15776 | ||
15777 | ||
15778 | ||
15779 | case $host_os in | |
15780 | rhapsody* | darwin*) | |
15781 | if test -n "$ac_tool_prefix"; then | |
15782 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
15783 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
15784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15785 | $as_echo_n "checking for $ac_word... " >&6; } | |
15786 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
15787 | $as_echo_n "(cached) " >&6 | |
15788 | else | |
15789 | if test -n "$DSYMUTIL"; then | |
15790 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
15791 | else | |
15792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15793 | for as_dir in $PATH | |
15794 | do | |
15795 | IFS=$as_save_IFS | |
15796 | test -z "$as_dir" && as_dir=. | |
15797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15799 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
15800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15801 | break 2 | |
15802 | fi | |
15803 | done | |
15804 | done | |
15805 | IFS=$as_save_IFS | |
15806 | ||
15807 | fi | |
15808 | fi | |
15809 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
15810 | if test -n "$DSYMUTIL"; then | |
15811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
15812 | $as_echo "$DSYMUTIL" >&6; } | |
15813 | else | |
15814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15815 | $as_echo "no" >&6; } | |
15816 | fi | |
15817 | ||
15818 | ||
15819 | fi | |
15820 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
15821 | ac_ct_DSYMUTIL=$DSYMUTIL | |
15822 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
15823 | set dummy dsymutil; ac_word=$2 | |
15824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15825 | $as_echo_n "checking for $ac_word... " >&6; } | |
15826 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
15827 | $as_echo_n "(cached) " >&6 | |
15828 | else | |
15829 | if test -n "$ac_ct_DSYMUTIL"; then | |
15830 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
15831 | else | |
15832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15833 | for as_dir in $PATH | |
15834 | do | |
15835 | IFS=$as_save_IFS | |
15836 | test -z "$as_dir" && as_dir=. | |
15837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15839 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
15840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15841 | break 2 | |
15842 | fi | |
15843 | done | |
15844 | done | |
15845 | IFS=$as_save_IFS | |
15846 | ||
15847 | fi | |
15848 | fi | |
15849 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
15850 | if test -n "$ac_ct_DSYMUTIL"; then | |
15851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
15852 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
15853 | else | |
15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15855 | $as_echo "no" >&6; } | |
15856 | fi | |
15857 | ||
15858 | if test "x$ac_ct_DSYMUTIL" = x; then | |
15859 | DSYMUTIL=":" | |
15860 | else | |
15861 | case $cross_compiling:$ac_tool_warned in | |
15862 | yes:) | |
15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15864 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15865 | ac_tool_warned=yes ;; | |
15866 | esac | |
15867 | DSYMUTIL=$ac_ct_DSYMUTIL | |
15868 | fi | |
15869 | else | |
15870 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
15871 | fi | |
15872 | ||
15873 | if test -n "$ac_tool_prefix"; then | |
15874 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
15875 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15877 | $as_echo_n "checking for $ac_word... " >&6; } | |
15878 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
15879 | $as_echo_n "(cached) " >&6 | |
15880 | else | |
15881 | if test -n "$NMEDIT"; then | |
15882 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
15883 | else | |
15884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15885 | for as_dir in $PATH | |
15886 | do | |
15887 | IFS=$as_save_IFS | |
15888 | test -z "$as_dir" && as_dir=. | |
15889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15891 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
15892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15893 | break 2 | |
15894 | fi | |
15895 | done | |
15896 | done | |
15897 | IFS=$as_save_IFS | |
15898 | ||
15899 | fi | |
15900 | fi | |
15901 | NMEDIT=$ac_cv_prog_NMEDIT | |
15902 | if test -n "$NMEDIT"; then | |
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
15904 | $as_echo "$NMEDIT" >&6; } | |
15905 | else | |
15906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15907 | $as_echo "no" >&6; } | |
15908 | fi | |
15909 | ||
15910 | ||
15911 | fi | |
15912 | if test -z "$ac_cv_prog_NMEDIT"; then | |
15913 | ac_ct_NMEDIT=$NMEDIT | |
15914 | # Extract the first word of "nmedit", so it can be a program name with args. | |
15915 | set dummy nmedit; ac_word=$2 | |
15916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15917 | $as_echo_n "checking for $ac_word... " >&6; } | |
15918 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
15919 | $as_echo_n "(cached) " >&6 | |
15920 | else | |
15921 | if test -n "$ac_ct_NMEDIT"; then | |
15922 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
15923 | else | |
15924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15925 | for as_dir in $PATH | |
15926 | do | |
15927 | IFS=$as_save_IFS | |
15928 | test -z "$as_dir" && as_dir=. | |
15929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15931 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
15932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15933 | break 2 | |
15934 | fi | |
15935 | done | |
15936 | done | |
15937 | IFS=$as_save_IFS | |
15938 | ||
15939 | fi | |
15940 | fi | |
15941 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
15942 | if test -n "$ac_ct_NMEDIT"; then | |
15943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
15944 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
15945 | else | |
15946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15947 | $as_echo "no" >&6; } | |
15948 | fi | |
15949 | ||
15950 | if test "x$ac_ct_NMEDIT" = x; then | |
15951 | NMEDIT=":" | |
15952 | else | |
15953 | case $cross_compiling:$ac_tool_warned in | |
15954 | yes:) | |
15955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15956 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15957 | ac_tool_warned=yes ;; | |
15958 | esac | |
15959 | NMEDIT=$ac_ct_NMEDIT | |
15960 | fi | |
15961 | else | |
15962 | NMEDIT="$ac_cv_prog_NMEDIT" | |
15963 | fi | |
15964 | ||
15965 | if test -n "$ac_tool_prefix"; then | |
15966 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
15967 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
15968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15969 | $as_echo_n "checking for $ac_word... " >&6; } | |
15970 | if ${ac_cv_prog_LIPO+:} false; then : | |
15971 | $as_echo_n "(cached) " >&6 | |
15972 | else | |
15973 | if test -n "$LIPO"; then | |
15974 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
15975 | else | |
15976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15977 | for as_dir in $PATH | |
15978 | do | |
15979 | IFS=$as_save_IFS | |
15980 | test -z "$as_dir" && as_dir=. | |
15981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15983 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
15984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15985 | break 2 | |
15986 | fi | |
15987 | done | |
15988 | done | |
15989 | IFS=$as_save_IFS | |
15990 | ||
15991 | fi | |
15992 | fi | |
15993 | LIPO=$ac_cv_prog_LIPO | |
15994 | if test -n "$LIPO"; then | |
15995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
15996 | $as_echo "$LIPO" >&6; } | |
15997 | else | |
15998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15999 | $as_echo "no" >&6; } | |
16000 | fi | |
16001 | ||
16002 | ||
16003 | fi | |
16004 | if test -z "$ac_cv_prog_LIPO"; then | |
16005 | ac_ct_LIPO=$LIPO | |
16006 | # Extract the first word of "lipo", so it can be a program name with args. | |
16007 | set dummy lipo; ac_word=$2 | |
16008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16009 | $as_echo_n "checking for $ac_word... " >&6; } | |
16010 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
16011 | $as_echo_n "(cached) " >&6 | |
16012 | else | |
16013 | if test -n "$ac_ct_LIPO"; then | |
16014 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
16015 | else | |
16016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16017 | for as_dir in $PATH | |
16018 | do | |
16019 | IFS=$as_save_IFS | |
16020 | test -z "$as_dir" && as_dir=. | |
16021 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16023 | ac_cv_prog_ac_ct_LIPO="lipo" | |
16024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16025 | break 2 | |
16026 | fi | |
16027 | done | |
16028 | done | |
16029 | IFS=$as_save_IFS | |
16030 | ||
16031 | fi | |
16032 | fi | |
16033 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
16034 | if test -n "$ac_ct_LIPO"; then | |
16035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
16036 | $as_echo "$ac_ct_LIPO" >&6; } | |
16037 | else | |
16038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16039 | $as_echo "no" >&6; } | |
16040 | fi | |
16041 | ||
16042 | if test "x$ac_ct_LIPO" = x; then | |
16043 | LIPO=":" | |
16044 | else | |
16045 | case $cross_compiling:$ac_tool_warned in | |
16046 | yes:) | |
16047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16048 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16049 | ac_tool_warned=yes ;; | |
16050 | esac | |
16051 | LIPO=$ac_ct_LIPO | |
16052 | fi | |
16053 | else | |
16054 | LIPO="$ac_cv_prog_LIPO" | |
16055 | fi | |
16056 | ||
16057 | if test -n "$ac_tool_prefix"; then | |
16058 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
16059 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
16060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16061 | $as_echo_n "checking for $ac_word... " >&6; } | |
16062 | if ${ac_cv_prog_OTOOL+:} false; then : | |
16063 | $as_echo_n "(cached) " >&6 | |
16064 | else | |
16065 | if test -n "$OTOOL"; then | |
16066 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
16067 | else | |
16068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16069 | for as_dir in $PATH | |
16070 | do | |
16071 | IFS=$as_save_IFS | |
16072 | test -z "$as_dir" && as_dir=. | |
16073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16075 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
16076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16077 | break 2 | |
16078 | fi | |
16079 | done | |
16080 | done | |
16081 | IFS=$as_save_IFS | |
16082 | ||
16083 | fi | |
16084 | fi | |
16085 | OTOOL=$ac_cv_prog_OTOOL | |
16086 | if test -n "$OTOOL"; then | |
16087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
16088 | $as_echo "$OTOOL" >&6; } | |
16089 | else | |
16090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16091 | $as_echo "no" >&6; } | |
16092 | fi | |
16093 | ||
16094 | ||
16095 | fi | |
16096 | if test -z "$ac_cv_prog_OTOOL"; then | |
16097 | ac_ct_OTOOL=$OTOOL | |
16098 | # Extract the first word of "otool", so it can be a program name with args. | |
16099 | set dummy otool; ac_word=$2 | |
16100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16101 | $as_echo_n "checking for $ac_word... " >&6; } | |
16102 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
16103 | $as_echo_n "(cached) " >&6 | |
16104 | else | |
16105 | if test -n "$ac_ct_OTOOL"; then | |
16106 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
16107 | else | |
16108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16109 | for as_dir in $PATH | |
16110 | do | |
16111 | IFS=$as_save_IFS | |
16112 | test -z "$as_dir" && as_dir=. | |
16113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16115 | ac_cv_prog_ac_ct_OTOOL="otool" | |
16116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16117 | break 2 | |
16118 | fi | |
16119 | done | |
16120 | done | |
16121 | IFS=$as_save_IFS | |
16122 | ||
16123 | fi | |
16124 | fi | |
16125 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
16126 | if test -n "$ac_ct_OTOOL"; then | |
16127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
16128 | $as_echo "$ac_ct_OTOOL" >&6; } | |
16129 | else | |
16130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16131 | $as_echo "no" >&6; } | |
16132 | fi | |
16133 | ||
16134 | if test "x$ac_ct_OTOOL" = x; then | |
16135 | OTOOL=":" | |
16136 | else | |
16137 | case $cross_compiling:$ac_tool_warned in | |
16138 | yes:) | |
16139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16140 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16141 | ac_tool_warned=yes ;; | |
16142 | esac | |
16143 | OTOOL=$ac_ct_OTOOL | |
16144 | fi | |
16145 | else | |
16146 | OTOOL="$ac_cv_prog_OTOOL" | |
16147 | fi | |
16148 | ||
16149 | if test -n "$ac_tool_prefix"; then | |
16150 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
16151 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
16152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16153 | $as_echo_n "checking for $ac_word... " >&6; } | |
16154 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
16155 | $as_echo_n "(cached) " >&6 | |
16156 | else | |
16157 | if test -n "$OTOOL64"; then | |
16158 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
16159 | else | |
16160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16161 | for as_dir in $PATH | |
16162 | do | |
16163 | IFS=$as_save_IFS | |
16164 | test -z "$as_dir" && as_dir=. | |
16165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16167 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
16168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16169 | break 2 | |
16170 | fi | |
16171 | done | |
16172 | done | |
16173 | IFS=$as_save_IFS | |
16174 | ||
16175 | fi | |
16176 | fi | |
16177 | OTOOL64=$ac_cv_prog_OTOOL64 | |
16178 | if test -n "$OTOOL64"; then | |
16179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
16180 | $as_echo "$OTOOL64" >&6; } | |
16181 | else | |
16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16183 | $as_echo "no" >&6; } | |
16184 | fi | |
16185 | ||
16186 | ||
16187 | fi | |
16188 | if test -z "$ac_cv_prog_OTOOL64"; then | |
16189 | ac_ct_OTOOL64=$OTOOL64 | |
16190 | # Extract the first word of "otool64", so it can be a program name with args. | |
16191 | set dummy otool64; ac_word=$2 | |
16192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16193 | $as_echo_n "checking for $ac_word... " >&6; } | |
16194 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
16195 | $as_echo_n "(cached) " >&6 | |
16196 | else | |
16197 | if test -n "$ac_ct_OTOOL64"; then | |
16198 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
16199 | else | |
16200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16201 | for as_dir in $PATH | |
16202 | do | |
16203 | IFS=$as_save_IFS | |
16204 | test -z "$as_dir" && as_dir=. | |
16205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16207 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
16208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16209 | break 2 | |
16210 | fi | |
16211 | done | |
16212 | done | |
16213 | IFS=$as_save_IFS | |
16214 | ||
16215 | fi | |
16216 | fi | |
16217 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
16218 | if test -n "$ac_ct_OTOOL64"; then | |
16219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
16220 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
16221 | else | |
16222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16223 | $as_echo "no" >&6; } | |
16224 | fi | |
16225 | ||
16226 | if test "x$ac_ct_OTOOL64" = x; then | |
16227 | OTOOL64=":" | |
16228 | else | |
16229 | case $cross_compiling:$ac_tool_warned in | |
16230 | yes:) | |
16231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16232 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16233 | ac_tool_warned=yes ;; | |
16234 | esac | |
16235 | OTOOL64=$ac_ct_OTOOL64 | |
16236 | fi | |
16237 | else | |
16238 | OTOOL64="$ac_cv_prog_OTOOL64" | |
16239 | fi | |
16240 | ||
16241 | ||
16242 | ||
16243 | ||
16244 | ||
16245 | ||
16246 | ||
16247 | ||
16248 | ||
16249 | ||
16250 | ||
16251 | ||
16252 | ||
16253 | ||
16254 | ||
16255 | ||
16256 | ||
16257 | ||
16258 | ||
16259 | ||
16260 | ||
16261 | ||
16262 | ||
16263 | ||
16264 | ||
16265 | ||
16266 | ||
16267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
16268 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
16269 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
16270 | $as_echo_n "(cached) " >&6 | |
16271 | else | |
16272 | lt_cv_apple_cc_single_mod=no | |
16273 | if test -z "${LT_MULTI_MODULE}"; then | |
16274 | # By default we will add the -single_module flag. You can override | |
16275 | # by either setting the environment variable LT_MULTI_MODULE | |
16276 | # non-empty at configure time, or by adding -multi_module to the | |
16277 | # link flags. | |
16278 | rm -rf libconftest.dylib* | |
16279 | echo "int foo(void){return 1;}" > conftest.c | |
16280 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
16281 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
16282 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
16283 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
16284 | _lt_result=$? | |
16285 | # If there is a non-empty error log, and "single_module" | |
16286 | # appears in it, assume the flag caused a linker warning | |
16287 | if test -s conftest.err && $GREP single_module conftest.err; then | |
16288 | cat conftest.err >&5 | |
16289 | # Otherwise, if the output was created with a 0 exit code from | |
16290 | # the compiler, it worked. | |
16291 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
16292 | lt_cv_apple_cc_single_mod=yes | |
16293 | else | |
16294 | cat conftest.err >&5 | |
16295 | fi | |
16296 | rm -rf libconftest.dylib* | |
16297 | rm -f conftest.* | |
16298 | fi | |
16299 | fi | |
16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
16301 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
16302 | ||
16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
16304 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
16305 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
16306 | $as_echo_n "(cached) " >&6 | |
16307 | else | |
16308 | lt_cv_ld_exported_symbols_list=no | |
16309 | save_LDFLAGS=$LDFLAGS | |
16310 | echo "_main" > conftest.sym | |
16311 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
16312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16313 | /* end confdefs.h. */ | |
16314 | ||
16315 | int | |
16316 | main () | |
16317 | { | |
16318 | ||
16319 | ; | |
16320 | return 0; | |
16321 | } | |
16322 | _ACEOF | |
16323 | if ac_fn_c_try_link "$LINENO"; then : | |
16324 | lt_cv_ld_exported_symbols_list=yes | |
16325 | else | |
16326 | lt_cv_ld_exported_symbols_list=no | |
16327 | fi | |
16328 | rm -f core conftest.err conftest.$ac_objext \ | |
16329 | conftest$ac_exeext conftest.$ac_ext | |
16330 | LDFLAGS="$save_LDFLAGS" | |
16331 | ||
16332 | fi | |
16333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
16334 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
16335 | ||
16336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
16337 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
16338 | if ${lt_cv_ld_force_load+:} false; then : | |
16339 | $as_echo_n "(cached) " >&6 | |
16340 | else | |
16341 | lt_cv_ld_force_load=no | |
16342 | cat > conftest.c << _LT_EOF | |
16343 | int forced_loaded() { return 2;} | |
16344 | _LT_EOF | |
16345 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
16346 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
16347 | echo "$AR cru libconftest.a conftest.o" >&5 | |
16348 | $AR cru libconftest.a conftest.o 2>&5 | |
16349 | echo "$RANLIB libconftest.a" >&5 | |
16350 | $RANLIB libconftest.a 2>&5 | |
16351 | cat > conftest.c << _LT_EOF | |
16352 | int main() { return 0;} | |
16353 | _LT_EOF | |
16354 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
16355 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
16356 | _lt_result=$? | |
16357 | if test -s conftest.err && $GREP force_load conftest.err; then | |
16358 | cat conftest.err >&5 | |
16359 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
16360 | lt_cv_ld_force_load=yes | |
16361 | else | |
16362 | cat conftest.err >&5 | |
16363 | fi | |
16364 | rm -f conftest.err libconftest.a conftest conftest.c | |
16365 | rm -rf conftest.dSYM | |
16366 | ||
16367 | fi | |
16368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
16369 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
16370 | case $host_os in | |
16371 | rhapsody* | darwin1.[012]) | |
16372 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
16373 | darwin1.*) | |
16374 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
16375 | darwin*) # darwin 5.x on | |
16376 | # if running on 10.5 or later, the deployment target defaults | |
16377 | # to the OS version, if on x86, and 10.4, the deployment | |
16378 | # target defaults to 10.4. Don't you love it? | |
16379 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
16380 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
16381 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
16382 | 10.[012]*) | |
16383 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
16384 | 10.*) | |
16385 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
16386 | esac | |
16387 | ;; | |
16388 | esac | |
16389 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
16390 | _lt_dar_single_mod='$single_module' | |
16391 | fi | |
16392 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
16393 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
16394 | else | |
16395 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16396 | fi | |
16397 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
16398 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
16399 | else | |
16400 | _lt_dsymutil= | |
16401 | fi | |
16402 | ;; | |
16403 | esac | |
16404 | ||
16405 | for ac_header in dlfcn.h | |
16406 | do : | |
16407 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
16408 | " | |
16409 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
16410 | cat >>confdefs.h <<_ACEOF | |
16411 | #define HAVE_DLFCN_H 1 | |
16412 | _ACEOF | |
16413 | ||
16414 | fi | |
16415 | ||
16416 | done | |
16417 | ||
16418 | ||
16419 | ||
16420 | ||
16421 | ||
16422 | # Set options | |
16423 | ||
16424 | ||
16425 | ||
16426 | enable_dlopen=no | |
16427 | ||
16428 | ||
16429 | ||
16430 | # Check whether --enable-shared was given. | |
16431 | if test "${enable_shared+set}" = set; then : | |
16432 | enableval=$enable_shared; p=${PACKAGE-default} | |
16433 | case $enableval in | |
16434 | yes) enable_shared=yes ;; | |
16435 | no) enable_shared=no ;; | |
16436 | *) | |
16437 | enable_shared=no | |
16438 | # Look at the argument we got. We use all the common list separators. | |
16439 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
16440 | for pkg in $enableval; do | |
16441 | IFS="$lt_save_ifs" | |
16442 | if test "X$pkg" = "X$p"; then | |
16443 | enable_shared=yes | |
16444 | fi | |
16445 | done | |
16446 | IFS="$lt_save_ifs" | |
16447 | ;; | |
16448 | esac | |
16449 | else | |
16450 | enable_shared=yes | |
16451 | fi | |
16452 | ||
16453 | ||
16454 | ||
16455 | ||
16456 | ||
16457 | ||
16458 | ||
16459 | ||
16460 | ||
16461 | ||
16462 | ||
16463 | # Check whether --with-pic was given. | |
16464 | if test "${with_pic+set}" = set; then : | |
16465 | withval=$with_pic; lt_p=${PACKAGE-default} | |
16466 | case $withval in | |
16467 | yes|no) pic_mode=$withval ;; | |
16468 | *) | |
16469 | pic_mode=default | |
16470 | # Look at the argument we got. We use all the common list separators. | |
16471 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
16472 | for lt_pkg in $withval; do | |
16473 | IFS="$lt_save_ifs" | |
16474 | if test "X$lt_pkg" = "X$lt_p"; then | |
16475 | pic_mode=yes | |
16476 | fi | |
16477 | done | |
16478 | IFS="$lt_save_ifs" | |
16479 | ;; | |
16480 | esac | |
16481 | else | |
16482 | pic_mode=default | |
16483 | fi | |
16484 | ||
16485 | ||
16486 | test -z "$pic_mode" && pic_mode=default | |
16487 | ||
16488 | ||
16489 | ||
16490 | ||
16491 | ||
16492 | ||
16493 | ||
16494 | # Check whether --enable-fast-install was given. | |
16495 | if test "${enable_fast_install+set}" = set; then : | |
16496 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
16497 | case $enableval in | |
16498 | yes) enable_fast_install=yes ;; | |
16499 | no) enable_fast_install=no ;; | |
16500 | *) | |
16501 | enable_fast_install=no | |
16502 | # Look at the argument we got. We use all the common list separators. | |
16503 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
16504 | for pkg in $enableval; do | |
16505 | IFS="$lt_save_ifs" | |
16506 | if test "X$pkg" = "X$p"; then | |
16507 | enable_fast_install=yes | |
16508 | fi | |
16509 | done | |
16510 | IFS="$lt_save_ifs" | |
16511 | ;; | |
16512 | esac | |
16513 | else | |
16514 | enable_fast_install=yes | |
16515 | fi | |
16516 | ||
16517 | ||
16518 | ||
16519 | ||
16520 | ||
16521 | ||
16522 | ||
16523 | ||
16524 | ||
16525 | ||
16526 | ||
16527 | # This can be used to rebuild libtool when needed | |
16528 | LIBTOOL_DEPS="$ltmain" | |
16529 | ||
16530 | # Always use our own libtool. | |
16531 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
16532 | ||
16533 | ||
16534 | ||
16535 | ||
16536 | ||
16537 | ||
16538 | ||
16539 | ||
16540 | ||
16541 | ||
16542 | ||
16543 | ||
16544 | ||
16545 | ||
16546 | ||
16547 | ||
16548 | ||
16549 | ||
16550 | ||
16551 | ||
16552 | ||
16553 | ||
16554 | ||
16555 | ||
16556 | ||
16557 | ||
16558 | ||
16559 | ||
16560 | ||
16561 | ||
16562 | test -z "$LN_S" && LN_S="ln -s" | |
16563 | ||
16564 | ||
16565 | ||
16566 | ||
16567 | ||
16568 | ||
16569 | ||
16570 | ||
16571 | ||
16572 | ||
16573 | ||
16574 | ||
16575 | ||
16576 | ||
16577 | if test -n "${ZSH_VERSION+set}" ; then | |
16578 | setopt NO_GLOB_SUBST | |
16579 | fi | |
16580 | ||
16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
16582 | $as_echo_n "checking for objdir... " >&6; } | |
16583 | if ${lt_cv_objdir+:} false; then : | |
16584 | $as_echo_n "(cached) " >&6 | |
16585 | else | |
16586 | rm -f .libs 2>/dev/null | |
16587 | mkdir .libs 2>/dev/null | |
16588 | if test -d .libs; then | |
16589 | lt_cv_objdir=.libs | |
16590 | else | |
16591 | # MS-DOS does not allow filenames that begin with a dot. | |
16592 | lt_cv_objdir=_libs | |
16593 | fi | |
16594 | rmdir .libs 2>/dev/null | |
16595 | fi | |
16596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
16597 | $as_echo "$lt_cv_objdir" >&6; } | |
16598 | objdir=$lt_cv_objdir | |
16599 | ||
16600 | ||
16601 | ||
16602 | ||
16603 | ||
16604 | cat >>confdefs.h <<_ACEOF | |
16605 | #define LT_OBJDIR "$lt_cv_objdir/" | |
16606 | _ACEOF | |
16607 | ||
16608 | ||
16609 | ||
16610 | ||
16611 | case $host_os in | |
16612 | aix3*) | |
16613 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16614 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16615 | # vanish in a puff of smoke. | |
16616 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16617 | COLLECT_NAMES= | |
16618 | export COLLECT_NAMES | |
16619 | fi | |
16620 | ;; | |
16621 | esac | |
16622 | ||
16623 | # Global variables: | |
16624 | ofile=libtool | |
16625 | can_build_shared=yes | |
16626 | ||
16627 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
16628 | # which needs '.lib'). | |
16629 | libext=a | |
16630 | ||
16631 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
16632 | ||
16633 | old_CC="$CC" | |
16634 | old_CFLAGS="$CFLAGS" | |
16635 | ||
16636 | # Set sane defaults for various variables | |
16637 | test -z "$CC" && CC=cc | |
16638 | test -z "$LTCC" && LTCC=$CC | |
16639 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
16640 | test -z "$LD" && LD=ld | |
16641 | test -z "$ac_objext" && ac_objext=o | |
16642 | ||
16643 | for cc_temp in $compiler""; do | |
16644 | case $cc_temp in | |
16645 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16646 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16647 | \-*) ;; | |
16648 | *) break;; | |
16649 | esac | |
16650 | done | |
16651 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
16652 | ||
16653 | ||
16654 | # Only perform the check for file, if the check method requires it | |
16655 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
16656 | case $deplibs_check_method in | |
16657 | file_magic*) | |
16658 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
16659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
16660 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
16661 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
16662 | $as_echo_n "(cached) " >&6 | |
16663 | else | |
16664 | case $MAGIC_CMD in | |
16665 | [\\/*] | ?:[\\/]*) | |
16666 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
16667 | ;; | |
16668 | *) | |
16669 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
16670 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
16671 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
16672 | for ac_dir in $ac_dummy; do | |
16673 | IFS="$lt_save_ifs" | |
16674 | test -z "$ac_dir" && ac_dir=. | |
16675 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
16676 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
16677 | if test -n "$file_magic_test_file"; then | |
16678 | case $deplibs_check_method in | |
16679 | "file_magic "*) | |
16680 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
16681 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
16682 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
16683 | $EGREP "$file_magic_regex" > /dev/null; then | |
16684 | : | |
16685 | else | |
16686 | cat <<_LT_EOF 1>&2 | |
16687 | ||
16688 | *** Warning: the command libtool uses to detect shared libraries, | |
16689 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
16690 | *** The result is that libtool may fail to recognize shared libraries | |
16691 | *** as such. This will affect the creation of libtool libraries that | |
16692 | *** depend on shared libraries, but programs linked with such libtool | |
16693 | *** libraries will work regardless of this problem. Nevertheless, you | |
16694 | *** may want to report the problem to your system manager and/or to | |
16695 | *** bug-libtool@gnu.org | |
16696 | ||
16697 | _LT_EOF | |
16698 | fi ;; | |
16699 | esac | |
16700 | fi | |
16701 | break | |
16702 | fi | |
16703 | done | |
16704 | IFS="$lt_save_ifs" | |
16705 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
16706 | ;; | |
16707 | esac | |
16708 | fi | |
16709 | ||
16710 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
16711 | if test -n "$MAGIC_CMD"; then | |
16712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
16713 | $as_echo "$MAGIC_CMD" >&6; } | |
16714 | else | |
16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16716 | $as_echo "no" >&6; } | |
16717 | fi | |
16718 | ||
16719 | ||
16720 | ||
16721 | ||
16722 | ||
16723 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
16724 | if test -n "$ac_tool_prefix"; then | |
16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
16726 | $as_echo_n "checking for file... " >&6; } | |
16727 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
16728 | $as_echo_n "(cached) " >&6 | |
16729 | else | |
16730 | case $MAGIC_CMD in | |
16731 | [\\/*] | ?:[\\/]*) | |
16732 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
16733 | ;; | |
16734 | *) | |
16735 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
16736 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
16737 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
16738 | for ac_dir in $ac_dummy; do | |
16739 | IFS="$lt_save_ifs" | |
16740 | test -z "$ac_dir" && ac_dir=. | |
16741 | if test -f $ac_dir/file; then | |
16742 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
16743 | if test -n "$file_magic_test_file"; then | |
16744 | case $deplibs_check_method in | |
16745 | "file_magic "*) | |
16746 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
16747 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
16748 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
16749 | $EGREP "$file_magic_regex" > /dev/null; then | |
16750 | : | |
16751 | else | |
16752 | cat <<_LT_EOF 1>&2 | |
16753 | ||
16754 | *** Warning: the command libtool uses to detect shared libraries, | |
16755 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
16756 | *** The result is that libtool may fail to recognize shared libraries | |
16757 | *** as such. This will affect the creation of libtool libraries that | |
16758 | *** depend on shared libraries, but programs linked with such libtool | |
16759 | *** libraries will work regardless of this problem. Nevertheless, you | |
16760 | *** may want to report the problem to your system manager and/or to | |
16761 | *** bug-libtool@gnu.org | |
16762 | ||
16763 | _LT_EOF | |
16764 | fi ;; | |
16765 | esac | |
16766 | fi | |
16767 | break | |
16768 | fi | |
16769 | done | |
16770 | IFS="$lt_save_ifs" | |
16771 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
16772 | ;; | |
16773 | esac | |
16774 | fi | |
16775 | ||
16776 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
16777 | if test -n "$MAGIC_CMD"; then | |
16778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
16779 | $as_echo "$MAGIC_CMD" >&6; } | |
16780 | else | |
16781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16782 | $as_echo "no" >&6; } | |
16783 | fi | |
16784 | ||
16785 | ||
16786 | else | |
16787 | MAGIC_CMD=: | |
16788 | fi | |
16789 | fi | |
16790 | ||
16791 | fi | |
16792 | ;; | |
16793 | esac | |
16794 | ||
16795 | # Use C for the default configuration in the libtool script | |
16796 | ||
16797 | lt_save_CC="$CC" | |
16798 | ac_ext=c | |
16799 | ac_cpp='$CPP $CPPFLAGS' | |
16800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16803 | ||
16804 | ||
16805 | # Source file extension for C test sources. | |
16806 | ac_ext=c | |
16807 | ||
16808 | # Object file extension for compiled C test sources. | |
16809 | objext=o | |
16810 | objext=$objext | |
16811 | ||
16812 | # Code to be used in simple compile tests | |
16813 | lt_simple_compile_test_code="int some_variable = 0;" | |
16814 | ||
16815 | # Code to be used in simple link tests | |
16816 | lt_simple_link_test_code='int main(){return(0);}' | |
16817 | ||
16818 | ||
16819 | ||
16820 | ||
16821 | ||
16822 | ||
16823 | ||
16824 | # If no C compiler was specified, use CC. | |
16825 | LTCC=${LTCC-"$CC"} | |
16826 | ||
16827 | # If no C compiler flags were specified, use CFLAGS. | |
16828 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
16829 | ||
16830 | # Allow CC to be a program name with arguments. | |
16831 | compiler=$CC | |
16832 | ||
16833 | # Save the default compiler, since it gets overwritten when the other | |
16834 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
16835 | compiler_DEFAULT=$CC | |
16836 | ||
16837 | # save warnings/boilerplate of simple test code | |
16838 | ac_outfile=conftest.$ac_objext | |
16839 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
16840 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16841 | _lt_compiler_boilerplate=`cat conftest.err` | |
16842 | $RM conftest* | |
16843 | ||
16844 | ac_outfile=conftest.$ac_objext | |
16845 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
16846 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16847 | _lt_linker_boilerplate=`cat conftest.err` | |
16848 | $RM -r conftest* | |
16849 | ||
16850 | ||
16851 | ## CAVEAT EMPTOR: | |
16852 | ## There is no encapsulation within the following macros, do not change | |
16853 | ## the running order or otherwise move them around unless you know exactly | |
16854 | ## what you are doing... | |
16855 | if test -n "$compiler"; then | |
16856 | ||
16857 | lt_prog_compiler_no_builtin_flag= | |
16858 | ||
16859 | if test "$GCC" = yes; then | |
16860 | case $cc_basename in | |
16861 | nvcc*) | |
16862 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
16863 | *) | |
16864 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
16865 | esac | |
16866 | ||
16867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
16868 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
16869 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
16870 | $as_echo_n "(cached) " >&6 | |
16871 | else | |
16872 | lt_cv_prog_compiler_rtti_exceptions=no | |
16873 | ac_outfile=conftest.$ac_objext | |
16874 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16875 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
16876 | # Insert the option either (1) after the last *FLAGS variable, or | |
16877 | # (2) before a word containing "conftest.", or (3) at the end. | |
16878 | # Note that $ac_compile itself does not contain backslashes and begins | |
16879 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16880 | # The option is referenced via a variable to avoid confusing sed. | |
16881 | lt_compile=`echo "$ac_compile" | $SED \ | |
16882 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16883 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16884 | -e 's:$: $lt_compiler_flag:'` | |
16885 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
16886 | (eval "$lt_compile" 2>conftest.err) | |
16887 | ac_status=$? | |
16888 | cat conftest.err >&5 | |
16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16890 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
16891 | # The compiler can only warn and ignore the option if not recognized | |
16892 | # So say no if there are warnings other than the usual output. | |
16893 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
16894 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16895 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16896 | lt_cv_prog_compiler_rtti_exceptions=yes | |
16897 | fi | |
16898 | fi | |
16899 | $RM conftest* | |
16900 | ||
16901 | fi | |
16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
16903 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
16904 | ||
16905 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
16906 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
16907 | else | |
16908 | : | |
16909 | fi | |
16910 | ||
16911 | fi | |
16912 | ||
16913 | ||
16914 | ||
16915 | ||
16916 | ||
16917 | ||
16918 | lt_prog_compiler_wl= | |
16919 | lt_prog_compiler_pic= | |
16920 | lt_prog_compiler_static= | |
16921 | ||
16922 | ||
16923 | if test "$GCC" = yes; then | |
16924 | lt_prog_compiler_wl='-Wl,' | |
16925 | lt_prog_compiler_static='-static' | |
16926 | ||
16927 | case $host_os in | |
16928 | aix*) | |
16929 | # All AIX code is PIC. | |
16930 | if test "$host_cpu" = ia64; then | |
16931 | # AIX 5 now supports IA64 processor | |
16932 | lt_prog_compiler_static='-Bstatic' | |
16933 | fi | |
16934 | ;; | |
16935 | ||
16936 | amigaos*) | |
16937 | case $host_cpu in | |
16938 | powerpc) | |
16939 | # see comment about AmigaOS4 .so support | |
16940 | lt_prog_compiler_pic='-fPIC' | |
16941 | ;; | |
16942 | m68k) | |
16943 | # FIXME: we need at least 68020 code to build shared libraries, but | |
16944 | # adding the `-m68020' flag to GCC prevents building anything better, | |
16945 | # like `-m68040'. | |
16946 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
16947 | ;; | |
16948 | esac | |
16949 | ;; | |
16950 | ||
16951 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
16952 | # PIC is the default for these OSes. | |
16953 | ;; | |
16954 | ||
16955 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
16956 | # This hack is so that the source file can tell whether it is being | |
16957 | # built for inclusion in a dll (and should export symbols for example). | |
16958 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
16959 | # (--disable-auto-import) libraries | |
16960 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
16961 | ;; | |
16962 | ||
16963 | darwin* | rhapsody*) | |
16964 | # PIC is the default on this platform | |
16965 | # Common symbols not allowed in MH_DYLIB files | |
16966 | lt_prog_compiler_pic='-fno-common' | |
16967 | ;; | |
16968 | ||
16969 | haiku*) | |
16970 | # PIC is the default for Haiku. | |
16971 | # The "-static" flag exists, but is broken. | |
16972 | lt_prog_compiler_static= | |
16973 | ;; | |
16974 | ||
16975 | hpux*) | |
16976 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
16977 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
16978 | # sets the default TLS model and affects inlining. | |
16979 | case $host_cpu in | |
16980 | hppa*64*) | |
16981 | # +Z the default | |
16982 | ;; | |
16983 | *) | |
16984 | lt_prog_compiler_pic='-fPIC' | |
16985 | ;; | |
16986 | esac | |
16987 | ;; | |
16988 | ||
16989 | interix[3-9]*) | |
16990 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
16991 | # Instead, we relocate shared libraries at runtime. | |
16992 | ;; | |
16993 | ||
16994 | msdosdjgpp*) | |
16995 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
16996 | # on systems that don't support them. | |
16997 | lt_prog_compiler_can_build_shared=no | |
16998 | enable_shared=no | |
16999 | ;; | |
17000 | ||
17001 | *nto* | *qnx*) | |
17002 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
17003 | # it will coredump. | |
17004 | lt_prog_compiler_pic='-fPIC -shared' | |
17005 | ;; | |
17006 | ||
17007 | sysv4*MP*) | |
17008 | if test -d /usr/nec; then | |
17009 | lt_prog_compiler_pic=-Kconform_pic | |
17010 | fi | |
17011 | ;; | |
17012 | ||
17013 | *) | |
17014 | lt_prog_compiler_pic='-fPIC' | |
17015 | ;; | |
17016 | esac | |
17017 | ||
17018 | case $cc_basename in | |
17019 | nvcc*) # Cuda Compiler Driver 2.2 | |
17020 | lt_prog_compiler_wl='-Xlinker ' | |
17021 | if test -n "$lt_prog_compiler_pic"; then | |
17022 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
17023 | fi | |
17024 | ;; | |
17025 | esac | |
17026 | else | |
17027 | # PORTME Check for flag to pass linker flags through the system compiler. | |
17028 | case $host_os in | |
17029 | aix*) | |
17030 | lt_prog_compiler_wl='-Wl,' | |
17031 | if test "$host_cpu" = ia64; then | |
17032 | # AIX 5 now supports IA64 processor | |
17033 | lt_prog_compiler_static='-Bstatic' | |
17034 | else | |
17035 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
17036 | fi | |
17037 | ;; | |
17038 | ||
17039 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
17040 | # This hack is so that the source file can tell whether it is being | |
17041 | # built for inclusion in a dll (and should export symbols for example). | |
17042 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
17043 | ;; | |
17044 | ||
17045 | hpux9* | hpux10* | hpux11*) | |
17046 | lt_prog_compiler_wl='-Wl,' | |
17047 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
17048 | # not for PA HP-UX. | |
17049 | case $host_cpu in | |
17050 | hppa*64*|ia64*) | |
17051 | # +Z the default | |
17052 | ;; | |
17053 | *) | |
17054 | lt_prog_compiler_pic='+Z' | |
17055 | ;; | |
17056 | esac | |
17057 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
17058 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
17059 | ;; | |
17060 | ||
17061 | irix5* | irix6* | nonstopux*) | |
17062 | lt_prog_compiler_wl='-Wl,' | |
17063 | # PIC (with -KPIC) is the default. | |
17064 | lt_prog_compiler_static='-non_shared' | |
17065 | ;; | |
17066 | ||
17067 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
17068 | case $cc_basename in | |
17069 | # old Intel for x86_64 which still supported -KPIC. | |
17070 | ecc*) | |
17071 | lt_prog_compiler_wl='-Wl,' | |
17072 | lt_prog_compiler_pic='-KPIC' | |
17073 | lt_prog_compiler_static='-static' | |
17074 | ;; | |
17075 | # icc used to be incompatible with GCC. | |
17076 | # ICC 10 doesn't accept -KPIC any more. | |
17077 | icc* | ifort*) | |
17078 | lt_prog_compiler_wl='-Wl,' | |
17079 | lt_prog_compiler_pic='-fPIC' | |
17080 | lt_prog_compiler_static='-static' | |
17081 | ;; | |
17082 | # Lahey Fortran 8.1. | |
17083 | lf95*) | |
17084 | lt_prog_compiler_wl='-Wl,' | |
17085 | lt_prog_compiler_pic='--shared' | |
17086 | lt_prog_compiler_static='--static' | |
17087 | ;; | |
17088 | nagfor*) | |
17089 | # NAG Fortran compiler | |
17090 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
17091 | lt_prog_compiler_pic='-PIC' | |
17092 | lt_prog_compiler_static='-Bstatic' | |
17093 | ;; | |
17094 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
17095 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
17096 | # which looks to be a dead project) | |
17097 | lt_prog_compiler_wl='-Wl,' | |
17098 | lt_prog_compiler_pic='-fpic' | |
17099 | lt_prog_compiler_static='-Bstatic' | |
17100 | ;; | |
17101 | ccc*) | |
17102 | lt_prog_compiler_wl='-Wl,' | |
17103 | # All Alpha code is PIC. | |
17104 | lt_prog_compiler_static='-non_shared' | |
17105 | ;; | |
17106 | xl* | bgxl* | bgf* | mpixl*) | |
17107 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
17108 | lt_prog_compiler_wl='-Wl,' | |
17109 | lt_prog_compiler_pic='-qpic' | |
17110 | lt_prog_compiler_static='-qstaticlink' | |
17111 | ;; | |
17112 | *) | |
17113 | case `$CC -V 2>&1 | sed 5q` in | |
17114 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
17115 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
17116 | lt_prog_compiler_pic='-KPIC' | |
17117 | lt_prog_compiler_static='-Bstatic' | |
17118 | lt_prog_compiler_wl='' | |
17119 | ;; | |
17120 | *Sun\ F* | *Sun*Fortran*) | |
17121 | lt_prog_compiler_pic='-KPIC' | |
17122 | lt_prog_compiler_static='-Bstatic' | |
17123 | lt_prog_compiler_wl='-Qoption ld ' | |
17124 | ;; | |
17125 | *Sun\ C*) | |
17126 | # Sun C 5.9 | |
17127 | lt_prog_compiler_pic='-KPIC' | |
17128 | lt_prog_compiler_static='-Bstatic' | |
17129 | lt_prog_compiler_wl='-Wl,' | |
17130 | ;; | |
17131 | *Intel*\ [CF]*Compiler*) | |
17132 | lt_prog_compiler_wl='-Wl,' | |
17133 | lt_prog_compiler_pic='-fPIC' | |
17134 | lt_prog_compiler_static='-static' | |
17135 | ;; | |
17136 | *Portland\ Group*) | |
17137 | lt_prog_compiler_wl='-Wl,' | |
17138 | lt_prog_compiler_pic='-fpic' | |
17139 | lt_prog_compiler_static='-Bstatic' | |
17140 | ;; | |
17141 | esac | |
17142 | ;; | |
17143 | esac | |
17144 | ;; | |
17145 | ||
17146 | newsos6) | |
17147 | lt_prog_compiler_pic='-KPIC' | |
17148 | lt_prog_compiler_static='-Bstatic' | |
17149 | ;; | |
17150 | ||
17151 | *nto* | *qnx*) | |
17152 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
17153 | # it will coredump. | |
17154 | lt_prog_compiler_pic='-fPIC -shared' | |
17155 | ;; | |
17156 | ||
17157 | osf3* | osf4* | osf5*) | |
17158 | lt_prog_compiler_wl='-Wl,' | |
17159 | # All OSF/1 code is PIC. | |
17160 | lt_prog_compiler_static='-non_shared' | |
17161 | ;; | |
17162 | ||
17163 | rdos*) | |
17164 | lt_prog_compiler_static='-non_shared' | |
17165 | ;; | |
17166 | ||
17167 | solaris*) | |
17168 | lt_prog_compiler_pic='-KPIC' | |
17169 | lt_prog_compiler_static='-Bstatic' | |
17170 | case $cc_basename in | |
17171 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
17172 | lt_prog_compiler_wl='-Qoption ld ';; | |
17173 | *) | |
17174 | lt_prog_compiler_wl='-Wl,';; | |
17175 | esac | |
17176 | ;; | |
17177 | ||
17178 | sunos4*) | |
17179 | lt_prog_compiler_wl='-Qoption ld ' | |
17180 | lt_prog_compiler_pic='-PIC' | |
17181 | lt_prog_compiler_static='-Bstatic' | |
17182 | ;; | |
17183 | ||
17184 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
17185 | lt_prog_compiler_wl='-Wl,' | |
17186 | lt_prog_compiler_pic='-KPIC' | |
17187 | lt_prog_compiler_static='-Bstatic' | |
17188 | ;; | |
17189 | ||
17190 | sysv4*MP*) | |
17191 | if test -d /usr/nec ;then | |
17192 | lt_prog_compiler_pic='-Kconform_pic' | |
17193 | lt_prog_compiler_static='-Bstatic' | |
17194 | fi | |
17195 | ;; | |
17196 | ||
17197 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
17198 | lt_prog_compiler_wl='-Wl,' | |
17199 | lt_prog_compiler_pic='-KPIC' | |
17200 | lt_prog_compiler_static='-Bstatic' | |
17201 | ;; | |
17202 | ||
17203 | unicos*) | |
17204 | lt_prog_compiler_wl='-Wl,' | |
17205 | lt_prog_compiler_can_build_shared=no | |
17206 | ;; | |
17207 | ||
17208 | uts4*) | |
17209 | lt_prog_compiler_pic='-pic' | |
17210 | lt_prog_compiler_static='-Bstatic' | |
17211 | ;; | |
17212 | ||
17213 | *) | |
17214 | lt_prog_compiler_can_build_shared=no | |
17215 | ;; | |
17216 | esac | |
17217 | fi | |
17218 | ||
17219 | case $host_os in | |
17220 | # For platforms which do not support PIC, -DPIC is meaningless: | |
17221 | *djgpp*) | |
17222 | lt_prog_compiler_pic= | |
17223 | ;; | |
17224 | *) | |
17225 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
17226 | ;; | |
17227 | esac | |
17228 | ||
17229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
17230 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
17231 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
17232 | $as_echo_n "(cached) " >&6 | |
17233 | else | |
17234 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
17235 | fi | |
17236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
17237 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
17238 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
17239 | ||
17240 | # | |
17241 | # Check to make sure the PIC flag actually works. | |
17242 | # | |
17243 | if test -n "$lt_prog_compiler_pic"; then | |
17244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
17245 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
17246 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
17247 | $as_echo_n "(cached) " >&6 | |
17248 | else | |
17249 | lt_cv_prog_compiler_pic_works=no | |
17250 | ac_outfile=conftest.$ac_objext | |
17251 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17252 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
17253 | # Insert the option either (1) after the last *FLAGS variable, or | |
17254 | # (2) before a word containing "conftest.", or (3) at the end. | |
17255 | # Note that $ac_compile itself does not contain backslashes and begins | |
17256 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17257 | # The option is referenced via a variable to avoid confusing sed. | |
17258 | lt_compile=`echo "$ac_compile" | $SED \ | |
17259 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17260 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17261 | -e 's:$: $lt_compiler_flag:'` | |
17262 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
17263 | (eval "$lt_compile" 2>conftest.err) | |
17264 | ac_status=$? | |
17265 | cat conftest.err >&5 | |
17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17267 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
17268 | # The compiler can only warn and ignore the option if not recognized | |
17269 | # So say no if there are warnings other than the usual output. | |
17270 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
17271 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
17272 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
17273 | lt_cv_prog_compiler_pic_works=yes | |
17274 | fi | |
17275 | fi | |
17276 | $RM conftest* | |
17277 | ||
17278 | fi | |
17279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
17280 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
17281 | ||
17282 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
17283 | case $lt_prog_compiler_pic in | |
17284 | "" | " "*) ;; | |
17285 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
17286 | esac | |
17287 | else | |
17288 | lt_prog_compiler_pic= | |
17289 | lt_prog_compiler_can_build_shared=no | |
17290 | fi | |
17291 | ||
17292 | fi | |
17293 | ||
17294 | ||
17295 | ||
17296 | ||
17297 | ||
17298 | ||
17299 | ||
17300 | ||
17301 | ||
17302 | ||
17303 | ||
17304 | # | |
17305 | # Check to make sure the static flag actually works. | |
17306 | # | |
17307 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
17308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
17309 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
17310 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
17311 | $as_echo_n "(cached) " >&6 | |
17312 | else | |
17313 | lt_cv_prog_compiler_static_works=no | |
17314 | save_LDFLAGS="$LDFLAGS" | |
17315 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
17316 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
17317 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
17318 | # The linker can only warn and ignore the option if not recognized | |
17319 | # So say no if there are warnings | |
17320 | if test -s conftest.err; then | |
17321 | # Append any errors to the config.log. | |
17322 | cat conftest.err 1>&5 | |
17323 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
17324 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
17325 | if diff conftest.exp conftest.er2 >/dev/null; then | |
17326 | lt_cv_prog_compiler_static_works=yes | |
17327 | fi | |
17328 | else | |
17329 | lt_cv_prog_compiler_static_works=yes | |
17330 | fi | |
17331 | fi | |
17332 | $RM -r conftest* | |
17333 | LDFLAGS="$save_LDFLAGS" | |
17334 | ||
17335 | fi | |
17336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
17337 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
17338 | ||
17339 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
17340 | : | |
17341 | else | |
17342 | lt_prog_compiler_static= | |
17343 | fi | |
17344 | ||
17345 | ||
17346 | ||
17347 | ||
17348 | ||
17349 | ||
17350 | ||
17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
17352 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
17353 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
17354 | $as_echo_n "(cached) " >&6 | |
17355 | else | |
17356 | lt_cv_prog_compiler_c_o=no | |
17357 | $RM -r conftest 2>/dev/null | |
17358 | mkdir conftest | |
17359 | cd conftest | |
17360 | mkdir out | |
17361 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17362 | ||
17363 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
17364 | # Insert the option either (1) after the last *FLAGS variable, or | |
17365 | # (2) before a word containing "conftest.", or (3) at the end. | |
17366 | # Note that $ac_compile itself does not contain backslashes and begins | |
17367 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17368 | lt_compile=`echo "$ac_compile" | $SED \ | |
17369 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17370 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17371 | -e 's:$: $lt_compiler_flag:'` | |
17372 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
17373 | (eval "$lt_compile" 2>out/conftest.err) | |
17374 | ac_status=$? | |
17375 | cat out/conftest.err >&5 | |
17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17377 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
17378 | then | |
17379 | # The compiler can only warn and ignore the option if not recognized | |
17380 | # So say no if there are warnings | |
17381 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
17382 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
17383 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
17384 | lt_cv_prog_compiler_c_o=yes | |
17385 | fi | |
17386 | fi | |
17387 | chmod u+w . 2>&5 | |
17388 | $RM conftest* | |
17389 | # SGI C++ compiler will create directory out/ii_files/ for | |
17390 | # template instantiation | |
17391 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
17392 | $RM out/* && rmdir out | |
17393 | cd .. | |
17394 | $RM -r conftest | |
17395 | $RM conftest* | |
17396 | ||
17397 | fi | |
17398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
17399 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
17400 | ||
17401 | ||
17402 | ||
17403 | ||
17404 | ||
17405 | ||
17406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
17407 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
17408 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
17409 | $as_echo_n "(cached) " >&6 | |
17410 | else | |
17411 | lt_cv_prog_compiler_c_o=no | |
17412 | $RM -r conftest 2>/dev/null | |
17413 | mkdir conftest | |
17414 | cd conftest | |
17415 | mkdir out | |
17416 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17417 | ||
17418 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
17419 | # Insert the option either (1) after the last *FLAGS variable, or | |
17420 | # (2) before a word containing "conftest.", or (3) at the end. | |
17421 | # Note that $ac_compile itself does not contain backslashes and begins | |
17422 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17423 | lt_compile=`echo "$ac_compile" | $SED \ | |
17424 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17425 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17426 | -e 's:$: $lt_compiler_flag:'` | |
17427 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
17428 | (eval "$lt_compile" 2>out/conftest.err) | |
17429 | ac_status=$? | |
17430 | cat out/conftest.err >&5 | |
17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17432 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
17433 | then | |
17434 | # The compiler can only warn and ignore the option if not recognized | |
17435 | # So say no if there are warnings | |
17436 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
17437 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
17438 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
17439 | lt_cv_prog_compiler_c_o=yes | |
17440 | fi | |
17441 | fi | |
17442 | chmod u+w . 2>&5 | |
17443 | $RM conftest* | |
17444 | # SGI C++ compiler will create directory out/ii_files/ for | |
17445 | # template instantiation | |
17446 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
17447 | $RM out/* && rmdir out | |
17448 | cd .. | |
17449 | $RM -r conftest | |
17450 | $RM conftest* | |
17451 | ||
17452 | fi | |
17453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
17454 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
17455 | ||
17456 | ||
17457 | ||
17458 | ||
17459 | hard_links="nottested" | |
17460 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
17461 | # do not overwrite the value of need_locks provided by the user | |
17462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
17463 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
17464 | hard_links=yes | |
17465 | $RM conftest* | |
17466 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17467 | touch conftest.a | |
17468 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
17469 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
17471 | $as_echo "$hard_links" >&6; } | |
17472 | if test "$hard_links" = no; then | |
17473 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
17474 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
17475 | need_locks=warn | |
17476 | fi | |
17477 | else | |
17478 | need_locks=no | |
17479 | fi | |
17480 | ||
17481 | ||
17482 | ||
17483 | ||
17484 | ||
17485 | ||
17486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
17487 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
17488 | ||
17489 | runpath_var= | |
17490 | allow_undefined_flag= | |
17491 | always_export_symbols=no | |
17492 | archive_cmds= | |
17493 | archive_expsym_cmds= | |
17494 | compiler_needs_object=no | |
17495 | enable_shared_with_static_runtimes=no | |
17496 | export_dynamic_flag_spec= | |
17497 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
17498 | hardcode_automatic=no | |
17499 | hardcode_direct=no | |
17500 | hardcode_direct_absolute=no | |
17501 | hardcode_libdir_flag_spec= | |
17502 | hardcode_libdir_separator= | |
17503 | hardcode_minus_L=no | |
17504 | hardcode_shlibpath_var=unsupported | |
17505 | inherit_rpath=no | |
17506 | link_all_deplibs=unknown | |
17507 | module_cmds= | |
17508 | module_expsym_cmds= | |
17509 | old_archive_from_new_cmds= | |
17510 | old_archive_from_expsyms_cmds= | |
17511 | thread_safe_flag_spec= | |
17512 | whole_archive_flag_spec= | |
17513 | # include_expsyms should be a list of space-separated symbols to be *always* | |
17514 | # included in the symbol list | |
17515 | include_expsyms= | |
17516 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
17517 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
17518 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
17519 | # as well as any symbol that contains `d'. | |
17520 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
17521 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
17522 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
17523 | # the symbol is explicitly referenced. Since portable code cannot | |
17524 | # rely on this symbol name, it's probably fine to never include it in | |
17525 | # preloaded symbol tables. | |
17526 | # Exclude shared library initialization/finalization symbols. | |
17527 | extract_expsyms_cmds= | |
17528 | ||
17529 | case $host_os in | |
17530 | cygwin* | mingw* | pw32* | cegcc*) | |
17531 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
17532 | # When not using gcc, we currently assume that we are using | |
17533 | # Microsoft Visual C++. | |
17534 | if test "$GCC" != yes; then | |
17535 | with_gnu_ld=no | |
17536 | fi | |
17537 | ;; | |
17538 | interix*) | |
17539 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
17540 | with_gnu_ld=yes | |
17541 | ;; | |
17542 | openbsd*) | |
17543 | with_gnu_ld=no | |
17544 | ;; | |
17545 | esac | |
17546 | ||
17547 | ld_shlibs=yes | |
17548 | ||
17549 | # On some targets, GNU ld is compatible enough with the native linker | |
17550 | # that we're better off using the native interface for both. | |
17551 | lt_use_gnu_ld_interface=no | |
17552 | if test "$with_gnu_ld" = yes; then | |
17553 | case $host_os in | |
17554 | aix*) | |
17555 | # The AIX port of GNU ld has always aspired to compatibility | |
17556 | # with the native linker. However, as the warning in the GNU ld | |
17557 | # block says, versions before 2.19.5* couldn't really create working | |
17558 | # shared libraries, regardless of the interface used. | |
17559 | case `$LD -v 2>&1` in | |
17560 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
17561 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
17562 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
17563 | *) | |
17564 | lt_use_gnu_ld_interface=yes | |
17565 | ;; | |
17566 | esac | |
17567 | ;; | |
17568 | *) | |
17569 | lt_use_gnu_ld_interface=yes | |
17570 | ;; | |
17571 | esac | |
17572 | fi | |
17573 | ||
17574 | if test "$lt_use_gnu_ld_interface" = yes; then | |
17575 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
17576 | wlarc='${wl}' | |
17577 | ||
17578 | # Set some defaults for GNU ld with shared library support. These | |
17579 | # are reset later if shared libraries are not supported. Putting them | |
17580 | # here allows them to be overridden if necessary. | |
17581 | runpath_var=LD_RUN_PATH | |
17582 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
17583 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
17584 | # ancient GNU ld didn't support --whole-archive et. al. | |
17585 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
17586 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
17587 | else | |
17588 | whole_archive_flag_spec= | |
17589 | fi | |
17590 | supports_anon_versioning=no | |
17591 | case `$LD -v 2>&1` in | |
17592 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
17593 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
17594 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
17595 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
17596 | *\ 2.11.*) ;; # other 2.11 versions | |
17597 | *) supports_anon_versioning=yes ;; | |
17598 | esac | |
17599 | ||
17600 | # See if GNU ld supports shared libraries. | |
17601 | case $host_os in | |
17602 | aix[3-9]*) | |
17603 | # On AIX/PPC, the GNU linker is very broken | |
17604 | if test "$host_cpu" != ia64; then | |
17605 | ld_shlibs=no | |
17606 | cat <<_LT_EOF 1>&2 | |
17607 | ||
17608 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
17609 | *** to be unable to reliably create shared libraries on AIX. | |
17610 | *** Therefore, libtool is disabling shared libraries support. If you | |
17611 | *** really care for shared libraries, you may want to install binutils | |
17612 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
17613 | *** You will then need to restart the configuration process. | |
17614 | ||
17615 | _LT_EOF | |
17616 | fi | |
17617 | ;; | |
17618 | ||
17619 | amigaos*) | |
17620 | case $host_cpu in | |
17621 | powerpc) | |
17622 | # see comment about AmigaOS4 .so support | |
17623 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17624 | archive_expsym_cmds='' | |
17625 | ;; | |
17626 | m68k) | |
17627 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
17628 | hardcode_libdir_flag_spec='-L$libdir' | |
17629 | hardcode_minus_L=yes | |
17630 | ;; | |
17631 | esac | |
17632 | ;; | |
17633 | ||
17634 | beos*) | |
17635 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
17636 | allow_undefined_flag=unsupported | |
17637 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
17638 | # support --undefined. This deserves some investigation. FIXME | |
17639 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17640 | else | |
17641 | ld_shlibs=no | |
17642 | fi | |
17643 | ;; | |
17644 | ||
17645 | cygwin* | mingw* | pw32* | cegcc*) | |
17646 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
17647 | # as there is no search path for DLLs. | |
17648 | hardcode_libdir_flag_spec='-L$libdir' | |
17649 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
17650 | allow_undefined_flag=unsupported | |
17651 | always_export_symbols=no | |
17652 | enable_shared_with_static_runtimes=yes | |
17653 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
17654 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
17655 | ||
17656 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
17657 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
17658 | # If the export-symbols file already is a .def file (1st line | |
17659 | # is EXPORTS), use it as is; otherwise, prepend... | |
17660 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
17661 | cp $export_symbols $output_objdir/$soname.def; | |
17662 | else | |
17663 | echo EXPORTS > $output_objdir/$soname.def; | |
17664 | cat $export_symbols >> $output_objdir/$soname.def; | |
17665 | fi~ | |
17666 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
17667 | else | |
17668 | ld_shlibs=no | |
17669 | fi | |
17670 | ;; | |
17671 | ||
17672 | haiku*) | |
17673 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17674 | link_all_deplibs=yes | |
17675 | ;; | |
17676 | ||
17677 | interix[3-9]*) | |
17678 | hardcode_direct=no | |
17679 | hardcode_shlibpath_var=no | |
17680 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
17681 | export_dynamic_flag_spec='${wl}-E' | |
17682 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
17683 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
17684 | # default) and relocated if they conflict, which is a slow very memory | |
17685 | # consuming and fragmenting process. To avoid this, we pick a random, | |
17686 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
17687 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
17688 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
17689 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
17690 | ;; | |
17691 | ||
17692 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
17693 | tmp_diet=no | |
17694 | if test "$host_os" = linux-dietlibc; then | |
17695 | case $cc_basename in | |
17696 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
17697 | esac | |
17698 | fi | |
17699 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
17700 | && test "$tmp_diet" = no | |
17701 | then | |
17702 | tmp_addflag=' $pic_flag' | |
17703 | tmp_sharedflag='-shared' | |
17704 | case $cc_basename,$host_cpu in | |
17705 | pgcc*) # Portland Group C compiler | |
17706 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
17707 | tmp_addflag=' $pic_flag' | |
17708 | ;; | |
17709 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
17710 | # Portland Group f77 and f90 compilers | |
17711 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
17712 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
17713 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
17714 | tmp_addflag=' -i_dynamic' ;; | |
17715 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
17716 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
17717 | ifc* | ifort*) # Intel Fortran compiler | |
17718 | tmp_addflag=' -nofor_main' ;; | |
17719 | lf95*) # Lahey Fortran 8.1 | |
17720 | whole_archive_flag_spec= | |
17721 | tmp_sharedflag='--shared' ;; | |
17722 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
17723 | tmp_sharedflag='-qmkshrobj' | |
17724 | tmp_addflag= ;; | |
17725 | nvcc*) # Cuda Compiler Driver 2.2 | |
17726 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
17727 | compiler_needs_object=yes | |
17728 | ;; | |
17729 | esac | |
17730 | case `$CC -V 2>&1 | sed 5q` in | |
17731 | *Sun\ C*) # Sun C 5.9 | |
17732 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
17733 | compiler_needs_object=yes | |
17734 | tmp_sharedflag='-G' ;; | |
17735 | *Sun\ F*) # Sun Fortran 8.3 | |
17736 | tmp_sharedflag='-G' ;; | |
17737 | esac | |
17738 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17739 | ||
17740 | if test "x$supports_anon_versioning" = xyes; then | |
17741 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
17742 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
17743 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
17744 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
17745 | fi | |
17746 | ||
17747 | case $cc_basename in | |
17748 | xlf* | bgf* | bgxlf* | mpixlf*) | |
17749 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
17750 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
17751 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
17752 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
17753 | if test "x$supports_anon_versioning" = xyes; then | |
17754 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
17755 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
17756 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
17757 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
17758 | fi | |
17759 | ;; | |
17760 | esac | |
17761 | else | |
17762 | ld_shlibs=no | |
17763 | fi | |
17764 | ;; | |
17765 | ||
17766 | netbsd*) | |
17767 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
17768 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
17769 | wlarc= | |
17770 | else | |
17771 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17772 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17773 | fi | |
17774 | ;; | |
17775 | ||
17776 | solaris*) | |
17777 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
17778 | ld_shlibs=no | |
17779 | cat <<_LT_EOF 1>&2 | |
17780 | ||
17781 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
17782 | *** create shared libraries on Solaris systems. Therefore, libtool | |
17783 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
17784 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
17785 | *** your PATH or compiler configuration so that the native linker is | |
17786 | *** used, and then restart. | |
17787 | ||
17788 | _LT_EOF | |
17789 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
17790 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17791 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17792 | else | |
17793 | ld_shlibs=no | |
17794 | fi | |
17795 | ;; | |
17796 | ||
17797 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
17798 | case `$LD -v 2>&1` in | |
17799 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
17800 | ld_shlibs=no | |
17801 | cat <<_LT_EOF 1>&2 | |
17802 | ||
17803 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
17804 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
17805 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
17806 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
17807 | *** your PATH or compiler configuration so that the native linker is | |
17808 | *** used, and then restart. | |
17809 | ||
17810 | _LT_EOF | |
17811 | ;; | |
17812 | *) | |
17813 | # For security reasons, it is highly recommended that you always | |
17814 | # use absolute paths for naming shared libraries, and exclude the | |
17815 | # DT_RUNPATH tag from executables and libraries. But doing so | |
17816 | # requires that you compile everything twice, which is a pain. | |
17817 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
17818 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
17819 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17820 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17821 | else | |
17822 | ld_shlibs=no | |
17823 | fi | |
17824 | ;; | |
17825 | esac | |
17826 | ;; | |
17827 | ||
17828 | sunos4*) | |
17829 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17830 | wlarc= | |
17831 | hardcode_direct=yes | |
17832 | hardcode_shlibpath_var=no | |
17833 | ;; | |
17834 | ||
17835 | *) | |
17836 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
17837 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17838 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17839 | else | |
17840 | ld_shlibs=no | |
17841 | fi | |
17842 | ;; | |
17843 | esac | |
17844 | ||
17845 | if test "$ld_shlibs" = no; then | |
17846 | runpath_var= | |
17847 | hardcode_libdir_flag_spec= | |
17848 | export_dynamic_flag_spec= | |
17849 | whole_archive_flag_spec= | |
17850 | fi | |
17851 | else | |
17852 | # PORTME fill in a description of your system's linker (not GNU ld) | |
17853 | case $host_os in | |
17854 | aix3*) | |
17855 | allow_undefined_flag=unsupported | |
17856 | always_export_symbols=yes | |
17857 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
17858 | # Note: this linker hardcodes the directories in LIBPATH if there | |
17859 | # are no directories specified by -L. | |
17860 | hardcode_minus_L=yes | |
17861 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
17862 | # Neither direct hardcoding nor static linking is supported with a | |
17863 | # broken collect2. | |
17864 | hardcode_direct=unsupported | |
17865 | fi | |
17866 | ;; | |
17867 | ||
17868 | aix[4-9]*) | |
17869 | if test "$host_cpu" = ia64; then | |
17870 | # On IA64, the linker does run time linking by default, so we don't | |
17871 | # have to do anything special. | |
17872 | aix_use_runtimelinking=no | |
17873 | exp_sym_flag='-Bexport' | |
17874 | no_entry_flag="" | |
17875 | else | |
17876 | # If we're using GNU nm, then we don't want the "-C" option. | |
17877 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
17878 | # Also, AIX nm treats weak defined symbols like other global | |
17879 | # defined symbols, whereas GNU nm marks them as "W". | |
17880 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
17881 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
17882 | else | |
17883 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
17884 | fi | |
17885 | aix_use_runtimelinking=no | |
17886 | ||
17887 | # Test if we are trying to use run time linking or normal | |
17888 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
17889 | # need to do runtime linking. | |
17890 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
17891 | for ld_flag in $LDFLAGS; do | |
17892 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
17893 | aix_use_runtimelinking=yes | |
17894 | break | |
17895 | fi | |
17896 | done | |
17897 | ;; | |
17898 | esac | |
17899 | ||
17900 | exp_sym_flag='-bexport' | |
17901 | no_entry_flag='-bnoentry' | |
17902 | fi | |
17903 | ||
17904 | # When large executables or shared objects are built, AIX ld can | |
17905 | # have problems creating the table of contents. If linking a library | |
17906 | # or program results in "error TOC overflow" add -mminimal-toc to | |
17907 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
17908 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
17909 | ||
17910 | archive_cmds='' | |
17911 | hardcode_direct=yes | |
17912 | hardcode_direct_absolute=yes | |
17913 | hardcode_libdir_separator=':' | |
17914 | link_all_deplibs=yes | |
17915 | file_list_spec='${wl}-f,' | |
17916 | ||
17917 | if test "$GCC" = yes; then | |
17918 | case $host_os in aix4.[012]|aix4.[012].*) | |
17919 | # We only want to do this on AIX 4.2 and lower, the check | |
17920 | # below for broken collect2 doesn't work under 4.3+ | |
17921 | collect2name=`${CC} -print-prog-name=collect2` | |
17922 | if test -f "$collect2name" && | |
17923 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
17924 | then | |
17925 | # We have reworked collect2 | |
17926 | : | |
17927 | else | |
17928 | # We have old collect2 | |
17929 | hardcode_direct=unsupported | |
17930 | # It fails to find uninstalled libraries when the uninstalled | |
17931 | # path is not listed in the libpath. Setting hardcode_minus_L | |
17932 | # to unsupported forces relinking | |
17933 | hardcode_minus_L=yes | |
17934 | hardcode_libdir_flag_spec='-L$libdir' | |
17935 | hardcode_libdir_separator= | |
17936 | fi | |
17937 | ;; | |
17938 | esac | |
17939 | shared_flag='-shared' | |
17940 | if test "$aix_use_runtimelinking" = yes; then | |
17941 | shared_flag="$shared_flag "'${wl}-G' | |
17942 | fi | |
17943 | else | |
17944 | # not using gcc | |
17945 | if test "$host_cpu" = ia64; then | |
17946 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
17947 | # chokes on -Wl,-G. The following line is correct: | |
17948 | shared_flag='-G' | |
17949 | else | |
17950 | if test "$aix_use_runtimelinking" = yes; then | |
17951 | shared_flag='${wl}-G' | |
17952 | else | |
17953 | shared_flag='${wl}-bM:SRE' | |
17954 | fi | |
17955 | fi | |
17956 | fi | |
17957 | ||
17958 | export_dynamic_flag_spec='${wl}-bexpall' | |
17959 | # It seems that -bexpall does not export symbols beginning with | |
17960 | # underscore (_), so it is better to generate a list of symbols to export. | |
17961 | always_export_symbols=yes | |
17962 | if test "$aix_use_runtimelinking" = yes; then | |
17963 | # Warning - without using the other runtime loading flags (-brtl), | |
17964 | # -berok will link without error, but may produce a broken library. | |
17965 | allow_undefined_flag='-berok' | |
17966 | # Determine the default libpath from the value encoded in an | |
17967 | # empty executable. | |
17968 | if test "${lt_cv_aix_libpath+set}" = set; then | |
17969 | aix_libpath=$lt_cv_aix_libpath | |
17970 | else | |
17971 | if ${lt_cv_aix_libpath_+:} false; then : | |
17972 | $as_echo_n "(cached) " >&6 | |
17973 | else | |
17974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17975 | /* end confdefs.h. */ | |
17976 | ||
17977 | int | |
17978 | main () | |
17979 | { | |
17980 | ||
17981 | ; | |
17982 | return 0; | |
17983 | } | |
17984 | _ACEOF | |
17985 | if ac_fn_c_try_link "$LINENO"; then : | |
17986 | ||
17987 | lt_aix_libpath_sed=' | |
17988 | /Import File Strings/,/^$/ { | |
17989 | /^0/ { | |
17990 | s/^0 *\([^ ]*\) *$/\1/ | |
17991 | p | |
17992 | } | |
17993 | }' | |
17994 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
17995 | # Check for a 64-bit object if we didn't find anything. | |
17996 | if test -z "$lt_cv_aix_libpath_"; then | |
17997 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
17998 | fi | |
17999 | fi | |
18000 | rm -f core conftest.err conftest.$ac_objext \ | |
18001 | conftest$ac_exeext conftest.$ac_ext | |
18002 | if test -z "$lt_cv_aix_libpath_"; then | |
18003 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
18004 | fi | |
18005 | ||
18006 | fi | |
18007 | ||
18008 | aix_libpath=$lt_cv_aix_libpath_ | |
18009 | fi | |
18010 | ||
18011 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18012 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
18013 | else | |
18014 | if test "$host_cpu" = ia64; then | |
18015 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
18016 | allow_undefined_flag="-z nodefs" | |
18017 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
18018 | else | |
18019 | # Determine the default libpath from the value encoded in an | |
18020 | # empty executable. | |
18021 | if test "${lt_cv_aix_libpath+set}" = set; then | |
18022 | aix_libpath=$lt_cv_aix_libpath | |
18023 | else | |
18024 | if ${lt_cv_aix_libpath_+:} false; then : | |
18025 | $as_echo_n "(cached) " >&6 | |
18026 | else | |
18027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18028 | /* end confdefs.h. */ | |
18029 | ||
18030 | int | |
18031 | main () | |
18032 | { | |
18033 | ||
18034 | ; | |
18035 | return 0; | |
18036 | } | |
18037 | _ACEOF | |
18038 | if ac_fn_c_try_link "$LINENO"; then : | |
18039 | ||
18040 | lt_aix_libpath_sed=' | |
18041 | /Import File Strings/,/^$/ { | |
18042 | /^0/ { | |
18043 | s/^0 *\([^ ]*\) *$/\1/ | |
18044 | p | |
18045 | } | |
18046 | }' | |
18047 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18048 | # Check for a 64-bit object if we didn't find anything. | |
18049 | if test -z "$lt_cv_aix_libpath_"; then | |
18050 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18051 | fi | |
18052 | fi | |
18053 | rm -f core conftest.err conftest.$ac_objext \ | |
18054 | conftest$ac_exeext conftest.$ac_ext | |
18055 | if test -z "$lt_cv_aix_libpath_"; then | |
18056 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
18057 | fi | |
18058 | ||
18059 | fi | |
18060 | ||
18061 | aix_libpath=$lt_cv_aix_libpath_ | |
18062 | fi | |
18063 | ||
18064 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18065 | # Warning - without using the other run time loading flags, | |
18066 | # -berok will link without error, but may produce a broken library. | |
18067 | no_undefined_flag=' ${wl}-bernotok' | |
18068 | allow_undefined_flag=' ${wl}-berok' | |
18069 | if test "$with_gnu_ld" = yes; then | |
18070 | # We only use this code for GNU lds that support --whole-archive. | |
18071 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
18072 | else | |
18073 | # Exported symbols can be pulled into shared objects from archives | |
18074 | whole_archive_flag_spec='$convenience' | |
18075 | fi | |
18076 | archive_cmds_need_lc=yes | |
18077 | # This is similar to how AIX traditionally builds its shared libraries. | |
18078 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
18079 | fi | |
18080 | fi | |
18081 | ;; | |
18082 | ||
18083 | amigaos*) | |
18084 | case $host_cpu in | |
18085 | powerpc) | |
18086 | # see comment about AmigaOS4 .so support | |
18087 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18088 | archive_expsym_cmds='' | |
18089 | ;; | |
18090 | m68k) | |
18091 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
18092 | hardcode_libdir_flag_spec='-L$libdir' | |
18093 | hardcode_minus_L=yes | |
18094 | ;; | |
18095 | esac | |
18096 | ;; | |
18097 | ||
18098 | bsdi[45]*) | |
18099 | export_dynamic_flag_spec=-rdynamic | |
18100 | ;; | |
18101 | ||
18102 | cygwin* | mingw* | pw32* | cegcc*) | |
18103 | # When not using gcc, we currently assume that we are using | |
18104 | # Microsoft Visual C++. | |
18105 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
18106 | # no search path for DLLs. | |
18107 | case $cc_basename in | |
18108 | cl*) | |
18109 | # Native MSVC | |
18110 | hardcode_libdir_flag_spec=' ' | |
18111 | allow_undefined_flag=unsupported | |
18112 | always_export_symbols=yes | |
18113 | file_list_spec='@' | |
18114 | # Tell ltmain to make .lib files, not .a files. | |
18115 | libext=lib | |
18116 | # Tell ltmain to make .dll files, not .so files. | |
18117 | shrext_cmds=".dll" | |
18118 | # FIXME: Setting linknames here is a bad hack. | |
18119 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
18120 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
18121 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
18122 | else | |
18123 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
18124 | fi~ | |
18125 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
18126 | linknames=' | |
18127 | # The linker will not automatically build a static lib if we build a DLL. | |
18128 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
18129 | enable_shared_with_static_runtimes=yes | |
18130 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
18131 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
18132 | # Don't use ranlib | |
18133 | old_postinstall_cmds='chmod 644 $oldlib' | |
18134 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
18135 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
18136 | case $lt_outputfile in | |
18137 | *.exe|*.EXE) ;; | |
18138 | *) | |
18139 | lt_outputfile="$lt_outputfile.exe" | |
18140 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
18141 | ;; | |
18142 | esac~ | |
18143 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
18144 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
18145 | $RM "$lt_outputfile.manifest"; | |
18146 | fi' | |
18147 | ;; | |
18148 | *) | |
18149 | # Assume MSVC wrapper | |
18150 | hardcode_libdir_flag_spec=' ' | |
18151 | allow_undefined_flag=unsupported | |
18152 | # Tell ltmain to make .lib files, not .a files. | |
18153 | libext=lib | |
18154 | # Tell ltmain to make .dll files, not .so files. | |
18155 | shrext_cmds=".dll" | |
18156 | # FIXME: Setting linknames here is a bad hack. | |
18157 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
18158 | # The linker will automatically build a .lib file if we build a DLL. | |
18159 | old_archive_from_new_cmds='true' | |
18160 | # FIXME: Should let the user specify the lib program. | |
18161 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
18162 | enable_shared_with_static_runtimes=yes | |
18163 | ;; | |
18164 | esac | |
18165 | ;; | |
18166 | ||
18167 | darwin* | rhapsody*) | |
18168 | ||
18169 | ||
18170 | archive_cmds_need_lc=no | |
18171 | hardcode_direct=no | |
18172 | hardcode_automatic=yes | |
18173 | hardcode_shlibpath_var=unsupported | |
18174 | if test "$lt_cv_ld_force_load" = "yes"; then | |
18175 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
18176 | ||
18177 | else | |
18178 | whole_archive_flag_spec='' | |
18179 | fi | |
18180 | link_all_deplibs=yes | |
18181 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
18182 | case $cc_basename in | |
18183 | ifort*) _lt_dar_can_shared=yes ;; | |
18184 | *) _lt_dar_can_shared=$GCC ;; | |
18185 | esac | |
18186 | if test "$_lt_dar_can_shared" = "yes"; then | |
18187 | output_verbose_link_cmd=func_echo_all | |
18188 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
18189 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
18190 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
18191 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
18192 | ||
18193 | else | |
18194 | ld_shlibs=no | |
18195 | fi | |
18196 | ||
18197 | ;; | |
18198 | ||
18199 | dgux*) | |
18200 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18201 | hardcode_libdir_flag_spec='-L$libdir' | |
18202 | hardcode_shlibpath_var=no | |
18203 | ;; | |
18204 | ||
18205 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
18206 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
18207 | # does not break anything, and helps significantly (at the cost of a little | |
18208 | # extra space). | |
18209 | freebsd2.2*) | |
18210 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
18211 | hardcode_libdir_flag_spec='-R$libdir' | |
18212 | hardcode_direct=yes | |
18213 | hardcode_shlibpath_var=no | |
18214 | ;; | |
18215 | ||
18216 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
18217 | freebsd2.*) | |
18218 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18219 | hardcode_direct=yes | |
18220 | hardcode_minus_L=yes | |
18221 | hardcode_shlibpath_var=no | |
18222 | ;; | |
18223 | ||
18224 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
18225 | freebsd* | dragonfly*) | |
18226 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
18227 | hardcode_libdir_flag_spec='-R$libdir' | |
18228 | hardcode_direct=yes | |
18229 | hardcode_shlibpath_var=no | |
18230 | ;; | |
18231 | ||
18232 | hpux9*) | |
18233 | if test "$GCC" = yes; then | |
18234 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
18235 | else | |
18236 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
18237 | fi | |
18238 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
18239 | hardcode_libdir_separator=: | |
18240 | hardcode_direct=yes | |
18241 | ||
18242 | # hardcode_minus_L: Not really in the search PATH, | |
18243 | # but as the default location of the library. | |
18244 | hardcode_minus_L=yes | |
18245 | export_dynamic_flag_spec='${wl}-E' | |
18246 | ;; | |
18247 | ||
18248 | hpux10*) | |
18249 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
18250 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
18251 | else | |
18252 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
18253 | fi | |
18254 | if test "$with_gnu_ld" = no; then | |
18255 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
18256 | hardcode_libdir_separator=: | |
18257 | hardcode_direct=yes | |
18258 | hardcode_direct_absolute=yes | |
18259 | export_dynamic_flag_spec='${wl}-E' | |
18260 | # hardcode_minus_L: Not really in the search PATH, | |
18261 | # but as the default location of the library. | |
18262 | hardcode_minus_L=yes | |
18263 | fi | |
18264 | ;; | |
18265 | ||
18266 | hpux11*) | |
18267 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
18268 | case $host_cpu in | |
18269 | hppa*64*) | |
18270 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18271 | ;; | |
18272 | ia64*) | |
18273 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
18274 | ;; | |
18275 | *) | |
18276 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
18277 | ;; | |
18278 | esac | |
18279 | else | |
18280 | case $host_cpu in | |
18281 | hppa*64*) | |
18282 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18283 | ;; | |
18284 | ia64*) | |
18285 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
18286 | ;; | |
18287 | *) | |
18288 | ||
18289 | # Older versions of the 11.00 compiler do not understand -b yet | |
18290 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
18291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
18292 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
18293 | if ${lt_cv_prog_compiler__b+:} false; then : | |
18294 | $as_echo_n "(cached) " >&6 | |
18295 | else | |
18296 | lt_cv_prog_compiler__b=no | |
18297 | save_LDFLAGS="$LDFLAGS" | |
18298 | LDFLAGS="$LDFLAGS -b" | |
18299 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
18300 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
18301 | # The linker can only warn and ignore the option if not recognized | |
18302 | # So say no if there are warnings | |
18303 | if test -s conftest.err; then | |
18304 | # Append any errors to the config.log. | |
18305 | cat conftest.err 1>&5 | |
18306 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
18307 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18308 | if diff conftest.exp conftest.er2 >/dev/null; then | |
18309 | lt_cv_prog_compiler__b=yes | |
18310 | fi | |
18311 | else | |
18312 | lt_cv_prog_compiler__b=yes | |
18313 | fi | |
18314 | fi | |
18315 | $RM -r conftest* | |
18316 | LDFLAGS="$save_LDFLAGS" | |
18317 | ||
18318 | fi | |
18319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
18320 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
18321 | ||
18322 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
18323 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
18324 | else | |
18325 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
18326 | fi | |
18327 | ||
18328 | ;; | |
18329 | esac | |
18330 | fi | |
18331 | if test "$with_gnu_ld" = no; then | |
18332 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
18333 | hardcode_libdir_separator=: | |
18334 | ||
18335 | case $host_cpu in | |
18336 | hppa*64*|ia64*) | |
18337 | hardcode_direct=no | |
18338 | hardcode_shlibpath_var=no | |
18339 | ;; | |
18340 | *) | |
18341 | hardcode_direct=yes | |
18342 | hardcode_direct_absolute=yes | |
18343 | export_dynamic_flag_spec='${wl}-E' | |
18344 | ||
18345 | # hardcode_minus_L: Not really in the search PATH, | |
18346 | # but as the default location of the library. | |
18347 | hardcode_minus_L=yes | |
18348 | ;; | |
18349 | esac | |
18350 | fi | |
18351 | ;; | |
18352 | ||
18353 | irix5* | irix6* | nonstopux*) | |
18354 | if test "$GCC" = yes; then | |
18355 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
18356 | # Try to use the -exported_symbol ld option, if it does not | |
18357 | # work, assume that -exports_file does not work either and | |
18358 | # implicitly export all symbols. | |
18359 | # This should be the same for all languages, so no per-tag cache variable. | |
18360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
18361 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
18362 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
18363 | $as_echo_n "(cached) " >&6 | |
18364 | else | |
18365 | save_LDFLAGS="$LDFLAGS" | |
18366 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
18367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18368 | /* end confdefs.h. */ | |
18369 | int foo (void) { return 0; } | |
18370 | _ACEOF | |
18371 | if ac_fn_c_try_link "$LINENO"; then : | |
18372 | lt_cv_irix_exported_symbol=yes | |
18373 | else | |
18374 | lt_cv_irix_exported_symbol=no | |
18375 | fi | |
18376 | rm -f core conftest.err conftest.$ac_objext \ | |
18377 | conftest$ac_exeext conftest.$ac_ext | |
18378 | LDFLAGS="$save_LDFLAGS" | |
18379 | fi | |
18380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
18381 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
18382 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
18383 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
18384 | fi | |
18385 | else | |
18386 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
18387 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
18388 | fi | |
18389 | archive_cmds_need_lc='no' | |
18390 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
18391 | hardcode_libdir_separator=: | |
18392 | inherit_rpath=yes | |
18393 | link_all_deplibs=yes | |
18394 | ;; | |
18395 | ||
18396 | netbsd*) | |
18397 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
18398 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
18399 | else | |
18400 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
18401 | fi | |
18402 | hardcode_libdir_flag_spec='-R$libdir' | |
18403 | hardcode_direct=yes | |
18404 | hardcode_shlibpath_var=no | |
18405 | ;; | |
18406 | ||
18407 | newsos6) | |
18408 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18409 | hardcode_direct=yes | |
18410 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
18411 | hardcode_libdir_separator=: | |
18412 | hardcode_shlibpath_var=no | |
18413 | ;; | |
18414 | ||
18415 | *nto* | *qnx*) | |
18416 | ;; | |
18417 | ||
18418 | openbsd*) | |
18419 | if test -f /usr/libexec/ld.so; then | |
18420 | hardcode_direct=yes | |
18421 | hardcode_shlibpath_var=no | |
18422 | hardcode_direct_absolute=yes | |
18423 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
18424 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
18425 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
18426 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
18427 | export_dynamic_flag_spec='${wl}-E' | |
18428 | else | |
18429 | case $host_os in | |
18430 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
18431 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18432 | hardcode_libdir_flag_spec='-R$libdir' | |
18433 | ;; | |
18434 | *) | |
18435 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
18436 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
18437 | ;; | |
18438 | esac | |
18439 | fi | |
18440 | else | |
18441 | ld_shlibs=no | |
18442 | fi | |
18443 | ;; | |
18444 | ||
18445 | os2*) | |
18446 | hardcode_libdir_flag_spec='-L$libdir' | |
18447 | hardcode_minus_L=yes | |
18448 | allow_undefined_flag=unsupported | |
18449 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
18450 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
18451 | ;; | |
18452 | ||
18453 | osf3*) | |
18454 | if test "$GCC" = yes; then | |
18455 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
18456 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
18457 | else | |
18458 | allow_undefined_flag=' -expect_unresolved \*' | |
18459 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
18460 | fi | |
18461 | archive_cmds_need_lc='no' | |
18462 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
18463 | hardcode_libdir_separator=: | |
18464 | ;; | |
18465 | ||
18466 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
18467 | if test "$GCC" = yes; then | |
18468 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
18469 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
18470 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
18471 | else | |
18472 | allow_undefined_flag=' -expect_unresolved \*' | |
18473 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
18474 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
18475 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
18476 | ||
18477 | # Both c and cxx compiler support -rpath directly | |
18478 | hardcode_libdir_flag_spec='-rpath $libdir' | |
18479 | fi | |
18480 | archive_cmds_need_lc='no' | |
18481 | hardcode_libdir_separator=: | |
18482 | ;; | |
18483 | ||
18484 | solaris*) | |
18485 | no_undefined_flag=' -z defs' | |
18486 | if test "$GCC" = yes; then | |
18487 | wlarc='${wl}' | |
18488 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18489 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18490 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
18491 | else | |
18492 | case `$CC -V 2>&1` in | |
18493 | *"Compilers 5.0"*) | |
18494 | wlarc='' | |
18495 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18496 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18497 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
18498 | ;; | |
18499 | *) | |
18500 | wlarc='${wl}' | |
18501 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
18502 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18503 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
18504 | ;; | |
18505 | esac | |
18506 | fi | |
18507 | hardcode_libdir_flag_spec='-R$libdir' | |
18508 | hardcode_shlibpath_var=no | |
18509 | case $host_os in | |
18510 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
18511 | *) | |
18512 | # The compiler driver will combine and reorder linker options, | |
18513 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
18514 | # but is careful enough not to reorder. | |
18515 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
18516 | if test "$GCC" = yes; then | |
18517 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
18518 | else | |
18519 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
18520 | fi | |
18521 | ;; | |
18522 | esac | |
18523 | link_all_deplibs=yes | |
18524 | ;; | |
18525 | ||
18526 | sunos4*) | |
18527 | if test "x$host_vendor" = xsequent; then | |
18528 | # Use $CC to link under sequent, because it throws in some extra .o | |
18529 | # files that make .init and .fini sections work. | |
18530 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
18531 | else | |
18532 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
18533 | fi | |
18534 | hardcode_libdir_flag_spec='-L$libdir' | |
18535 | hardcode_direct=yes | |
18536 | hardcode_minus_L=yes | |
18537 | hardcode_shlibpath_var=no | |
18538 | ;; | |
18539 | ||
18540 | sysv4) | |
18541 | case $host_vendor in | |
18542 | sni) | |
18543 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18544 | hardcode_direct=yes # is this really true??? | |
18545 | ;; | |
18546 | siemens) | |
18547 | ## LD is ld it makes a PLAMLIB | |
18548 | ## CC just makes a GrossModule. | |
18549 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
18550 | reload_cmds='$CC -r -o $output$reload_objs' | |
18551 | hardcode_direct=no | |
18552 | ;; | |
18553 | motorola) | |
18554 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18555 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
18556 | ;; | |
18557 | esac | |
18558 | runpath_var='LD_RUN_PATH' | |
18559 | hardcode_shlibpath_var=no | |
18560 | ;; | |
18561 | ||
18562 | sysv4.3*) | |
18563 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18564 | hardcode_shlibpath_var=no | |
18565 | export_dynamic_flag_spec='-Bexport' | |
18566 | ;; | |
18567 | ||
18568 | sysv4*MP*) | |
18569 | if test -d /usr/nec; then | |
18570 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18571 | hardcode_shlibpath_var=no | |
18572 | runpath_var=LD_RUN_PATH | |
18573 | hardcode_runpath_var=yes | |
18574 | ld_shlibs=yes | |
18575 | fi | |
18576 | ;; | |
18577 | ||
18578 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
18579 | no_undefined_flag='${wl}-z,text' | |
18580 | archive_cmds_need_lc=no | |
18581 | hardcode_shlibpath_var=no | |
18582 | runpath_var='LD_RUN_PATH' | |
18583 | ||
18584 | if test "$GCC" = yes; then | |
18585 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18586 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18587 | else | |
18588 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18589 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18590 | fi | |
18591 | ;; | |
18592 | ||
18593 | sysv5* | sco3.2v5* | sco5v6*) | |
18594 | # Note: We can NOT use -z defs as we might desire, because we do not | |
18595 | # link with -lc, and that would cause any symbols used from libc to | |
18596 | # always be unresolved, which means just about no library would | |
18597 | # ever link correctly. If we're not using GNU ld we use -z text | |
18598 | # though, which does catch some bad symbols but isn't as heavy-handed | |
18599 | # as -z defs. | |
18600 | no_undefined_flag='${wl}-z,text' | |
18601 | allow_undefined_flag='${wl}-z,nodefs' | |
18602 | archive_cmds_need_lc=no | |
18603 | hardcode_shlibpath_var=no | |
18604 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
18605 | hardcode_libdir_separator=':' | |
18606 | link_all_deplibs=yes | |
18607 | export_dynamic_flag_spec='${wl}-Bexport' | |
18608 | runpath_var='LD_RUN_PATH' | |
18609 | ||
18610 | if test "$GCC" = yes; then | |
18611 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18612 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18613 | else | |
18614 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18615 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18616 | fi | |
18617 | ;; | |
18618 | ||
18619 | uts4*) | |
18620 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18621 | hardcode_libdir_flag_spec='-L$libdir' | |
18622 | hardcode_shlibpath_var=no | |
18623 | ;; | |
18624 | ||
18625 | *) | |
18626 | ld_shlibs=no | |
18627 | ;; | |
18628 | esac | |
18629 | ||
18630 | if test x$host_vendor = xsni; then | |
18631 | case $host in | |
18632 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
18633 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
18634 | ;; | |
18635 | esac | |
18636 | fi | |
18637 | fi | |
18638 | ||
18639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
18640 | $as_echo "$ld_shlibs" >&6; } | |
18641 | test "$ld_shlibs" = no && can_build_shared=no | |
18642 | ||
18643 | with_gnu_ld=$with_gnu_ld | |
18644 | ||
18645 | ||
18646 | ||
18647 | ||
18648 | ||
18649 | ||
18650 | ||
18651 | ||
18652 | ||
18653 | ||
18654 | ||
18655 | ||
18656 | ||
18657 | ||
18658 | ||
18659 | # | |
18660 | # Do we need to explicitly link libc? | |
18661 | # | |
18662 | case "x$archive_cmds_need_lc" in | |
18663 | x|xyes) | |
18664 | # Assume -lc should be added | |
18665 | archive_cmds_need_lc=yes | |
18666 | ||
18667 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
18668 | case $archive_cmds in | |
18669 | *'~'*) | |
18670 | # FIXME: we may have to deal with multi-command sequences. | |
18671 | ;; | |
18672 | '$CC '*) | |
18673 | # Test whether the compiler implicitly links with -lc since on some | |
18674 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
18675 | # to ld, don't add -lc before -lgcc. | |
18676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
18677 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
18678 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
18679 | $as_echo_n "(cached) " >&6 | |
18680 | else | |
18681 | $RM conftest* | |
18682 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18683 | ||
18684 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
18685 | (eval $ac_compile) 2>&5 | |
18686 | ac_status=$? | |
18687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18688 | test $ac_status = 0; } 2>conftest.err; then | |
18689 | soname=conftest | |
18690 | lib=conftest | |
18691 | libobjs=conftest.$ac_objext | |
18692 | deplibs= | |
18693 | wl=$lt_prog_compiler_wl | |
18694 | pic_flag=$lt_prog_compiler_pic | |
18695 | compiler_flags=-v | |
18696 | linker_flags=-v | |
18697 | verstring= | |
18698 | output_objdir=. | |
18699 | libname=conftest | |
18700 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
18701 | allow_undefined_flag= | |
18702 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
18703 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
18704 | ac_status=$? | |
18705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18706 | test $ac_status = 0; } | |
18707 | then | |
18708 | lt_cv_archive_cmds_need_lc=no | |
18709 | else | |
18710 | lt_cv_archive_cmds_need_lc=yes | |
18711 | fi | |
18712 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
18713 | else | |
18714 | cat conftest.err 1>&5 | |
18715 | fi | |
18716 | $RM conftest* | |
18717 | ||
18718 | fi | |
18719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
18720 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
18721 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
18722 | ;; | |
18723 | esac | |
18724 | fi | |
18725 | ;; | |
18726 | esac | |
18727 | ||
18728 | ||
18729 | ||
18730 | ||
18731 | ||
18732 | ||
18733 | ||
18734 | ||
18735 | ||
18736 | ||
18737 | ||
18738 | ||
18739 | ||
18740 | ||
18741 | ||
18742 | ||
18743 | ||
18744 | ||
18745 | ||
18746 | ||
18747 | ||
18748 | ||
18749 | ||
18750 | ||
18751 | ||
18752 | ||
18753 | ||
18754 | ||
18755 | ||
18756 | ||
18757 | ||
18758 | ||
18759 | ||
18760 | ||
18761 | ||
18762 | ||
18763 | ||
18764 | ||
18765 | ||
18766 | ||
18767 | ||
18768 | ||
18769 | ||
18770 | ||
18771 | ||
18772 | ||
18773 | ||
18774 | ||
18775 | ||
18776 | ||
18777 | ||
18778 | ||
18779 | ||
18780 | ||
18781 | ||
18782 | ||
18783 | ||
18784 | ||
18785 | ||
18786 | ||
18787 | ||
18788 | ||
18789 | ||
18790 | ||
18791 | ||
18792 | ||
18793 | ||
18794 | ||
18795 | ||
18796 | ||
18797 | ||
18798 | ||
18799 | ||
18800 | ||
18801 | ||
18802 | ||
18803 | ||
18804 | ||
18805 | ||
18806 | ||
18807 | ||
18808 | ||
18809 | ||
18810 | ||
18811 | ||
18812 | ||
18813 | ||
18814 | ||
18815 | ||
18816 | ||
18817 | ||
18818 | ||
18819 | ||
18820 | ||
18821 | ||
18822 | ||
18823 | ||
18824 | ||
18825 | ||
18826 | ||
18827 | ||
18828 | ||
18829 | ||
18830 | ||
18831 | ||
18832 | ||
18833 | ||
18834 | ||
18835 | ||
18836 | ||
18837 | ||
18838 | ||
18839 | ||
18840 | ||
18841 | ||
18842 | ||
18843 | ||
18844 | ||
18845 | ||
18846 | ||
18847 | ||
18848 | ||
18849 | ||
18850 | ||
18851 | ||
18852 | ||
18853 | ||
18854 | ||
18855 | ||
18856 | ||
18857 | ||
18858 | ||
18859 | ||
18860 | ||
18861 | ||
18862 | ||
18863 | ||
18864 | ||
18865 | ||
18866 | ||
18867 | ||
18868 | ||
18869 | ||
18870 | ||
18871 | ||
18872 | ||
18873 | ||
18874 | ||
18875 | ||
18876 | ||
18877 | ||
18878 | ||
18879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
18880 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
18881 | ||
18882 | if test "$GCC" = yes; then | |
18883 | case $host_os in | |
18884 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
18885 | *) lt_awk_arg="/^libraries:/" ;; | |
18886 | esac | |
18887 | case $host_os in | |
18888 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
18889 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
18890 | esac | |
18891 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
18892 | case $lt_search_path_spec in | |
18893 | *\;*) | |
18894 | # if the path contains ";" then we assume it to be the separator | |
18895 | # otherwise default to the standard path separator (i.e. ":") - it is | |
18896 | # assumed that no part of a normal pathname contains ";" but that should | |
18897 | # okay in the real world where ";" in dirpaths is itself problematic. | |
18898 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
18899 | ;; | |
18900 | *) | |
18901 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
18902 | ;; | |
18903 | esac | |
18904 | # Ok, now we have the path, separated by spaces, we can step through it | |
18905 | # and add multilib dir if necessary. | |
18906 | lt_tmp_lt_search_path_spec= | |
18907 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
18908 | for lt_sys_path in $lt_search_path_spec; do | |
18909 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
18910 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
18911 | else | |
18912 | test -d "$lt_sys_path" && \ | |
18913 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
18914 | fi | |
18915 | done | |
18916 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
18917 | BEGIN {RS=" "; FS="/|\n";} { | |
18918 | lt_foo=""; | |
18919 | lt_count=0; | |
18920 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
18921 | if ($lt_i != "" && $lt_i != ".") { | |
18922 | if ($lt_i == "..") { | |
18923 | lt_count++; | |
18924 | } else { | |
18925 | if (lt_count == 0) { | |
18926 | lt_foo="/" $lt_i lt_foo; | |
18927 | } else { | |
18928 | lt_count--; | |
18929 | } | |
18930 | } | |
18931 | } | |
18932 | } | |
18933 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
18934 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
18935 | }'` | |
18936 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
18937 | # for these hosts. | |
18938 | case $host_os in | |
18939 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
18940 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
18941 | esac | |
18942 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
18943 | else | |
18944 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
18945 | fi | |
18946 | library_names_spec= | |
18947 | libname_spec='lib$name' | |
18948 | soname_spec= | |
18949 | shrext_cmds=".so" | |
18950 | postinstall_cmds= | |
18951 | postuninstall_cmds= | |
18952 | finish_cmds= | |
18953 | finish_eval= | |
18954 | shlibpath_var= | |
18955 | shlibpath_overrides_runpath=unknown | |
18956 | version_type=none | |
18957 | dynamic_linker="$host_os ld.so" | |
18958 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
18959 | need_lib_prefix=unknown | |
18960 | hardcode_into_libs=no | |
18961 | ||
18962 | # when you set need_version to no, make sure it does not cause -set_version | |
18963 | # flags to be left without arguments | |
18964 | need_version=unknown | |
18965 | ||
18966 | case $host_os in | |
18967 | aix3*) | |
18968 | version_type=linux # correct to gnu/linux during the next big refactor | |
18969 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
18970 | shlibpath_var=LIBPATH | |
18971 | ||
18972 | # AIX 3 has no versioning support, so we append a major version to the name. | |
18973 | soname_spec='${libname}${release}${shared_ext}$major' | |
18974 | ;; | |
18975 | ||
18976 | aix[4-9]*) | |
18977 | version_type=linux # correct to gnu/linux during the next big refactor | |
18978 | need_lib_prefix=no | |
18979 | need_version=no | |
18980 | hardcode_into_libs=yes | |
18981 | if test "$host_cpu" = ia64; then | |
18982 | # AIX 5 supports IA64 | |
18983 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
18984 | shlibpath_var=LD_LIBRARY_PATH | |
18985 | else | |
18986 | # With GCC up to 2.95.x, collect2 would create an import file | |
18987 | # for dependence libraries. The import file would start with | |
18988 | # the line `#! .'. This would cause the generated library to | |
18989 | # depend on `.', always an invalid library. This was fixed in | |
18990 | # development snapshots of GCC prior to 3.0. | |
18991 | case $host_os in | |
18992 | aix4 | aix4.[01] | aix4.[01].*) | |
18993 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
18994 | echo ' yes ' | |
18995 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
18996 | : | |
18997 | else | |
18998 | can_build_shared=no | |
18999 | fi | |
19000 | ;; | |
19001 | esac | |
19002 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
19003 | # soname into executable. Probably we can add versioning support to | |
19004 | # collect2, so additional links can be useful in future. | |
19005 | if test "$aix_use_runtimelinking" = yes; then | |
19006 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
19007 | # instead of lib<name>.a to let people know that these are not | |
19008 | # typical AIX shared libraries. | |
19009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19010 | else | |
19011 | # We preserve .a as extension for shared libraries through AIX4.2 | |
19012 | # and later when we are not doing run time linking. | |
19013 | library_names_spec='${libname}${release}.a $libname.a' | |
19014 | soname_spec='${libname}${release}${shared_ext}$major' | |
19015 | fi | |
19016 | shlibpath_var=LIBPATH | |
19017 | fi | |
19018 | ;; | |
19019 | ||
19020 | amigaos*) | |
19021 | case $host_cpu in | |
19022 | powerpc) | |
19023 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
19024 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
19025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19026 | ;; | |
19027 | m68k) | |
19028 | library_names_spec='$libname.ixlibrary $libname.a' | |
19029 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
19030 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
19031 | ;; | |
19032 | esac | |
19033 | ;; | |
19034 | ||
19035 | beos*) | |
19036 | library_names_spec='${libname}${shared_ext}' | |
19037 | dynamic_linker="$host_os ld.so" | |
19038 | shlibpath_var=LIBRARY_PATH | |
19039 | ;; | |
19040 | ||
19041 | bsdi[45]*) | |
19042 | version_type=linux # correct to gnu/linux during the next big refactor | |
19043 | need_version=no | |
19044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19045 | soname_spec='${libname}${release}${shared_ext}$major' | |
19046 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
19047 | shlibpath_var=LD_LIBRARY_PATH | |
19048 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
19049 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
19050 | # the default ld.so.conf also contains /usr/contrib/lib and | |
19051 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
19052 | # libtool to hard-code these into programs | |
19053 | ;; | |
19054 | ||
19055 | cygwin* | mingw* | pw32* | cegcc*) | |
19056 | version_type=windows | |
19057 | shrext_cmds=".dll" | |
19058 | need_version=no | |
19059 | need_lib_prefix=no | |
19060 | ||
19061 | case $GCC,$cc_basename in | |
19062 | yes,*) | |
19063 | # gcc | |
19064 | library_names_spec='$libname.dll.a' | |
19065 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
19066 | postinstall_cmds='base_file=`basename \${file}`~ | |
19067 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
19068 | dldir=$destdir/`dirname \$dlpath`~ | |
19069 | test -d \$dldir || mkdir -p \$dldir~ | |
19070 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
19071 | chmod a+x \$dldir/$dlname~ | |
19072 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
19073 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
19074 | fi' | |
19075 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19076 | dlpath=$dir/\$dldll~ | |
19077 | $RM \$dlpath' | |
19078 | shlibpath_overrides_runpath=yes | |
19079 | ||
19080 | case $host_os in | |
19081 | cygwin*) | |
19082 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
19083 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19084 | ||
19085 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
19086 | ;; | |
19087 | mingw* | cegcc*) | |
19088 | # MinGW DLLs use traditional 'lib' prefix | |
19089 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19090 | ;; | |
19091 | pw32*) | |
19092 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
19093 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19094 | ;; | |
19095 | esac | |
19096 | dynamic_linker='Win32 ld.exe' | |
19097 | ;; | |
19098 | ||
19099 | *,cl*) | |
19100 | # Native MSVC | |
19101 | libname_spec='$name' | |
19102 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19103 | library_names_spec='${libname}.dll.lib' | |
19104 | ||
19105 | case $build_os in | |
19106 | mingw*) | |
19107 | sys_lib_search_path_spec= | |
19108 | lt_save_ifs=$IFS | |
19109 | IFS=';' | |
19110 | for lt_path in $LIB | |
19111 | do | |
19112 | IFS=$lt_save_ifs | |
19113 | # Let DOS variable expansion print the short 8.3 style file name. | |
19114 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
19115 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
19116 | done | |
19117 | IFS=$lt_save_ifs | |
19118 | # Convert to MSYS style. | |
19119 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
19120 | ;; | |
19121 | cygwin*) | |
19122 | # Convert to unix form, then to dos form, then back to unix form | |
19123 | # but this time dos style (no spaces!) so that the unix form looks | |
19124 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
19125 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
19126 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
19127 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19128 | ;; | |
19129 | *) | |
19130 | sys_lib_search_path_spec="$LIB" | |
19131 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
19132 | # It is most probably a Windows format PATH. | |
19133 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
19134 | else | |
19135 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19136 | fi | |
19137 | # FIXME: find the short name or the path components, as spaces are | |
19138 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
19139 | ;; | |
19140 | esac | |
19141 | ||
19142 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
19143 | postinstall_cmds='base_file=`basename \${file}`~ | |
19144 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
19145 | dldir=$destdir/`dirname \$dlpath`~ | |
19146 | test -d \$dldir || mkdir -p \$dldir~ | |
19147 | $install_prog $dir/$dlname \$dldir/$dlname' | |
19148 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19149 | dlpath=$dir/\$dldll~ | |
19150 | $RM \$dlpath' | |
19151 | shlibpath_overrides_runpath=yes | |
19152 | dynamic_linker='Win32 link.exe' | |
19153 | ;; | |
19154 | ||
19155 | *) | |
19156 | # Assume MSVC wrapper | |
19157 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
19158 | dynamic_linker='Win32 ld.exe' | |
19159 | ;; | |
19160 | esac | |
19161 | # FIXME: first we should search . and the directory the executable is in | |
19162 | shlibpath_var=PATH | |
19163 | ;; | |
19164 | ||
19165 | darwin* | rhapsody*) | |
19166 | dynamic_linker="$host_os dyld" | |
19167 | version_type=darwin | |
19168 | need_lib_prefix=no | |
19169 | need_version=no | |
19170 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
19171 | soname_spec='${libname}${release}${major}$shared_ext' | |
19172 | shlibpath_overrides_runpath=yes | |
19173 | shlibpath_var=DYLD_LIBRARY_PATH | |
19174 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
19175 | ||
19176 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
19177 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
19178 | ;; | |
19179 | ||
19180 | dgux*) | |
19181 | version_type=linux # correct to gnu/linux during the next big refactor | |
19182 | need_lib_prefix=no | |
19183 | need_version=no | |
19184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
19185 | soname_spec='${libname}${release}${shared_ext}$major' | |
19186 | shlibpath_var=LD_LIBRARY_PATH | |
19187 | ;; | |
19188 | ||
19189 | freebsd* | dragonfly*) | |
19190 | # DragonFly does not have aout. When/if they implement a new | |
19191 | # versioning mechanism, adjust this. | |
19192 | if test -x /usr/bin/objformat; then | |
19193 | objformat=`/usr/bin/objformat` | |
19194 | else | |
19195 | case $host_os in | |
19196 | freebsd[23].*) objformat=aout ;; | |
19197 | *) objformat=elf ;; | |
19198 | esac | |
19199 | fi | |
19200 | version_type=freebsd-$objformat | |
19201 | case $version_type in | |
19202 | freebsd-elf*) | |
19203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19204 | need_version=no | |
19205 | need_lib_prefix=no | |
19206 | ;; | |
19207 | freebsd-*) | |
19208 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
19209 | need_version=yes | |
19210 | ;; | |
19211 | esac | |
19212 | shlibpath_var=LD_LIBRARY_PATH | |
19213 | case $host_os in | |
19214 | freebsd2.*) | |
19215 | shlibpath_overrides_runpath=yes | |
19216 | ;; | |
19217 | freebsd3.[01]* | freebsdelf3.[01]*) | |
19218 | shlibpath_overrides_runpath=yes | |
19219 | hardcode_into_libs=yes | |
19220 | ;; | |
19221 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
19222 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
19223 | shlibpath_overrides_runpath=no | |
19224 | hardcode_into_libs=yes | |
19225 | ;; | |
19226 | *) # from 4.6 on, and DragonFly | |
19227 | shlibpath_overrides_runpath=yes | |
19228 | hardcode_into_libs=yes | |
19229 | ;; | |
19230 | esac | |
19231 | ;; | |
19232 | ||
19233 | gnu*) | |
19234 | version_type=linux # correct to gnu/linux during the next big refactor | |
19235 | need_lib_prefix=no | |
19236 | need_version=no | |
19237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
19238 | soname_spec='${libname}${release}${shared_ext}$major' | |
19239 | shlibpath_var=LD_LIBRARY_PATH | |
19240 | shlibpath_overrides_runpath=no | |
19241 | hardcode_into_libs=yes | |
19242 | ;; | |
19243 | ||
19244 | haiku*) | |
19245 | version_type=linux # correct to gnu/linux during the next big refactor | |
19246 | need_lib_prefix=no | |
19247 | need_version=no | |
19248 | dynamic_linker="$host_os runtime_loader" | |
19249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
19250 | soname_spec='${libname}${release}${shared_ext}$major' | |
19251 | shlibpath_var=LIBRARY_PATH | |
19252 | shlibpath_overrides_runpath=yes | |
19253 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
19254 | hardcode_into_libs=yes | |
19255 | ;; | |
19256 | ||
19257 | hpux9* | hpux10* | hpux11*) | |
19258 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
19259 | # link against other versions. | |
19260 | version_type=sunos | |
19261 | need_lib_prefix=no | |
19262 | need_version=no | |
19263 | case $host_cpu in | |
19264 | ia64*) | |
19265 | shrext_cmds='.so' | |
19266 | hardcode_into_libs=yes | |
19267 | dynamic_linker="$host_os dld.so" | |
19268 | shlibpath_var=LD_LIBRARY_PATH | |
19269 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19271 | soname_spec='${libname}${release}${shared_ext}$major' | |
19272 | if test "X$HPUX_IA64_MODE" = X32; then | |
19273 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
19274 | else | |
19275 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
19276 | fi | |
19277 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19278 | ;; | |
19279 | hppa*64*) | |
19280 | shrext_cmds='.sl' | |
19281 | hardcode_into_libs=yes | |
19282 | dynamic_linker="$host_os dld.sl" | |
19283 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
19284 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19286 | soname_spec='${libname}${release}${shared_ext}$major' | |
19287 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
19288 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19289 | ;; | |
19290 | *) | |
19291 | shrext_cmds='.sl' | |
19292 | dynamic_linker="$host_os dld.sl" | |
19293 | shlibpath_var=SHLIB_PATH | |
19294 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
19295 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19296 | soname_spec='${libname}${release}${shared_ext}$major' | |
19297 | ;; | |
19298 | esac | |
19299 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
19300 | postinstall_cmds='chmod 555 $lib' | |
19301 | # or fails outright, so override atomically: | |
19302 | install_override_mode=555 | |
19303 | ;; | |
19304 | ||
19305 | interix[3-9]*) | |
19306 | version_type=linux # correct to gnu/linux during the next big refactor | |
19307 | need_lib_prefix=no | |
19308 | need_version=no | |
19309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19310 | soname_spec='${libname}${release}${shared_ext}$major' | |
19311 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
19312 | shlibpath_var=LD_LIBRARY_PATH | |
19313 | shlibpath_overrides_runpath=no | |
19314 | hardcode_into_libs=yes | |
19315 | ;; | |
19316 | ||
19317 | irix5* | irix6* | nonstopux*) | |
19318 | case $host_os in | |
19319 | nonstopux*) version_type=nonstopux ;; | |
19320 | *) | |
19321 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
19322 | version_type=linux # correct to gnu/linux during the next big refactor | |
19323 | else | |
19324 | version_type=irix | |
19325 | fi ;; | |
19326 | esac | |
19327 | need_lib_prefix=no | |
19328 | need_version=no | |
19329 | soname_spec='${libname}${release}${shared_ext}$major' | |
19330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19331 | case $host_os in | |
19332 | irix5* | nonstopux*) | |
19333 | libsuff= shlibsuff= | |
19334 | ;; | |
19335 | *) | |
19336 | case $LD in # libtool.m4 will add one of these switches to LD | |
19337 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
19338 | libsuff= shlibsuff= libmagic=32-bit;; | |
19339 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
19340 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
19341 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
19342 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
19343 | *) libsuff= shlibsuff= libmagic=never-match;; | |
19344 | esac | |
19345 | ;; | |
19346 | esac | |
19347 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
19348 | shlibpath_overrides_runpath=no | |
19349 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
19350 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
19351 | hardcode_into_libs=yes | |
19352 | ;; | |
19353 | ||
19354 | # No shared lib support for Linux oldld, aout, or coff. | |
19355 | linux*oldld* | linux*aout* | linux*coff*) | |
19356 | dynamic_linker=no | |
19357 | ;; | |
19358 | ||
19359 | # This must be glibc/ELF. | |
19360 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
19361 | version_type=linux # correct to gnu/linux during the next big refactor | |
19362 | need_lib_prefix=no | |
19363 | need_version=no | |
19364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19365 | soname_spec='${libname}${release}${shared_ext}$major' | |
19366 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
19367 | shlibpath_var=LD_LIBRARY_PATH | |
19368 | shlibpath_overrides_runpath=no | |
19369 | ||
19370 | # Some binutils ld are patched to set DT_RUNPATH | |
19371 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
19372 | $as_echo_n "(cached) " >&6 | |
19373 | else | |
19374 | lt_cv_shlibpath_overrides_runpath=no | |
19375 | save_LDFLAGS=$LDFLAGS | |
19376 | save_libdir=$libdir | |
19377 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
19378 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
19379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19380 | /* end confdefs.h. */ | |
19381 | ||
19382 | int | |
19383 | main () | |
19384 | { | |
19385 | ||
19386 | ; | |
19387 | return 0; | |
19388 | } | |
19389 | _ACEOF | |
19390 | if ac_fn_c_try_link "$LINENO"; then : | |
19391 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
19392 | lt_cv_shlibpath_overrides_runpath=yes | |
19393 | fi | |
19394 | fi | |
19395 | rm -f core conftest.err conftest.$ac_objext \ | |
19396 | conftest$ac_exeext conftest.$ac_ext | |
19397 | LDFLAGS=$save_LDFLAGS | |
19398 | libdir=$save_libdir | |
19399 | ||
19400 | fi | |
19401 | ||
19402 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
19403 | ||
19404 | # This implies no fast_install, which is unacceptable. | |
19405 | # Some rework will be needed to allow for fast_install | |
19406 | # before this can be enabled. | |
19407 | hardcode_into_libs=yes | |
19408 | ||
19409 | # Add ABI-specific directories to the system library path. | |
19410 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
19411 | ||
19412 | # Append ld.so.conf contents to the search path | |
19413 | if test -f /etc/ld.so.conf; then | |
19414 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
19415 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
19416 | ||
19417 | fi | |
19418 | ||
19419 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
19420 | # powerpc, because MkLinux only supported shared libraries with the | |
19421 | # GNU dynamic linker. Since this was broken with cross compilers, | |
19422 | # most powerpc-linux boxes support dynamic linking these days and | |
19423 | # people can always --disable-shared, the test was removed, and we | |
19424 | # assume the GNU/Linux dynamic linker is in use. | |
19425 | dynamic_linker='GNU/Linux ld.so' | |
19426 | ;; | |
19427 | ||
19428 | netbsd*) | |
19429 | version_type=sunos | |
19430 | need_lib_prefix=no | |
19431 | need_version=no | |
19432 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
19433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19434 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
19435 | dynamic_linker='NetBSD (a.out) ld.so' | |
19436 | else | |
19437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19438 | soname_spec='${libname}${release}${shared_ext}$major' | |
19439 | dynamic_linker='NetBSD ld.elf_so' | |
19440 | fi | |
19441 | shlibpath_var=LD_LIBRARY_PATH | |
19442 | shlibpath_overrides_runpath=yes | |
19443 | hardcode_into_libs=yes | |
19444 | ;; | |
19445 | ||
19446 | newsos6) | |
19447 | version_type=linux # correct to gnu/linux during the next big refactor | |
19448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19449 | shlibpath_var=LD_LIBRARY_PATH | |
19450 | shlibpath_overrides_runpath=yes | |
19451 | ;; | |
19452 | ||
19453 | *nto* | *qnx*) | |
19454 | version_type=qnx | |
19455 | need_lib_prefix=no | |
19456 | need_version=no | |
19457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19458 | soname_spec='${libname}${release}${shared_ext}$major' | |
19459 | shlibpath_var=LD_LIBRARY_PATH | |
19460 | shlibpath_overrides_runpath=no | |
19461 | hardcode_into_libs=yes | |
19462 | dynamic_linker='ldqnx.so' | |
19463 | ;; | |
19464 | ||
19465 | openbsd*) | |
19466 | version_type=sunos | |
19467 | sys_lib_dlsearch_path_spec="/usr/lib" | |
19468 | need_lib_prefix=no | |
19469 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
19470 | case $host_os in | |
19471 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
19472 | *) need_version=no ;; | |
19473 | esac | |
19474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19475 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
19476 | shlibpath_var=LD_LIBRARY_PATH | |
19477 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
19478 | case $host_os in | |
19479 | openbsd2.[89] | openbsd2.[89].*) | |
19480 | shlibpath_overrides_runpath=no | |
19481 | ;; | |
19482 | *) | |
19483 | shlibpath_overrides_runpath=yes | |
19484 | ;; | |
19485 | esac | |
19486 | else | |
19487 | shlibpath_overrides_runpath=yes | |
19488 | fi | |
19489 | ;; | |
19490 | ||
19491 | os2*) | |
19492 | libname_spec='$name' | |
19493 | shrext_cmds=".dll" | |
19494 | need_lib_prefix=no | |
19495 | library_names_spec='$libname${shared_ext} $libname.a' | |
19496 | dynamic_linker='OS/2 ld.exe' | |
19497 | shlibpath_var=LIBPATH | |
19498 | ;; | |
19499 | ||
19500 | osf3* | osf4* | osf5*) | |
19501 | version_type=osf | |
19502 | need_lib_prefix=no | |
19503 | need_version=no | |
19504 | soname_spec='${libname}${release}${shared_ext}$major' | |
19505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19506 | shlibpath_var=LD_LIBRARY_PATH | |
19507 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
19508 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
19509 | ;; | |
19510 | ||
19511 | rdos*) | |
19512 | dynamic_linker=no | |
19513 | ;; | |
19514 | ||
19515 | solaris*) | |
19516 | version_type=linux # correct to gnu/linux during the next big refactor | |
19517 | need_lib_prefix=no | |
19518 | need_version=no | |
19519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19520 | soname_spec='${libname}${release}${shared_ext}$major' | |
19521 | shlibpath_var=LD_LIBRARY_PATH | |
19522 | shlibpath_overrides_runpath=yes | |
19523 | hardcode_into_libs=yes | |
19524 | # ldd complains unless libraries are executable | |
19525 | postinstall_cmds='chmod +x $lib' | |
19526 | ;; | |
19527 | ||
19528 | sunos4*) | |
19529 | version_type=sunos | |
19530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19531 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
19532 | shlibpath_var=LD_LIBRARY_PATH | |
19533 | shlibpath_overrides_runpath=yes | |
19534 | if test "$with_gnu_ld" = yes; then | |
19535 | need_lib_prefix=no | |
19536 | fi | |
19537 | need_version=yes | |
19538 | ;; | |
19539 | ||
19540 | sysv4 | sysv4.3*) | |
19541 | version_type=linux # correct to gnu/linux during the next big refactor | |
19542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19543 | soname_spec='${libname}${release}${shared_ext}$major' | |
19544 | shlibpath_var=LD_LIBRARY_PATH | |
19545 | case $host_vendor in | |
19546 | sni) | |
19547 | shlibpath_overrides_runpath=no | |
19548 | need_lib_prefix=no | |
19549 | runpath_var=LD_RUN_PATH | |
19550 | ;; | |
19551 | siemens) | |
19552 | need_lib_prefix=no | |
19553 | ;; | |
19554 | motorola) | |
19555 | need_lib_prefix=no | |
19556 | need_version=no | |
19557 | shlibpath_overrides_runpath=no | |
19558 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
19559 | ;; | |
19560 | esac | |
19561 | ;; | |
19562 | ||
19563 | sysv4*MP*) | |
19564 | if test -d /usr/nec ;then | |
19565 | version_type=linux # correct to gnu/linux during the next big refactor | |
19566 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
19567 | soname_spec='$libname${shared_ext}.$major' | |
19568 | shlibpath_var=LD_LIBRARY_PATH | |
19569 | fi | |
19570 | ;; | |
19571 | ||
19572 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
19573 | version_type=freebsd-elf | |
19574 | need_lib_prefix=no | |
19575 | need_version=no | |
19576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19577 | soname_spec='${libname}${release}${shared_ext}$major' | |
19578 | shlibpath_var=LD_LIBRARY_PATH | |
19579 | shlibpath_overrides_runpath=yes | |
19580 | hardcode_into_libs=yes | |
19581 | if test "$with_gnu_ld" = yes; then | |
19582 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
19583 | else | |
19584 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
19585 | case $host_os in | |
19586 | sco3.2v5*) | |
19587 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
19588 | ;; | |
19589 | esac | |
19590 | fi | |
19591 | sys_lib_dlsearch_path_spec='/usr/lib' | |
19592 | ;; | |
19593 | ||
19594 | tpf*) | |
19595 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
19596 | version_type=linux # correct to gnu/linux during the next big refactor | |
19597 | need_lib_prefix=no | |
19598 | need_version=no | |
19599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19600 | shlibpath_var=LD_LIBRARY_PATH | |
19601 | shlibpath_overrides_runpath=no | |
19602 | hardcode_into_libs=yes | |
19603 | ;; | |
19604 | ||
19605 | uts4*) | |
19606 | version_type=linux # correct to gnu/linux during the next big refactor | |
19607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19608 | soname_spec='${libname}${release}${shared_ext}$major' | |
19609 | shlibpath_var=LD_LIBRARY_PATH | |
19610 | ;; | |
19611 | ||
19612 | *) | |
19613 | dynamic_linker=no | |
19614 | ;; | |
19615 | esac | |
19616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
19617 | $as_echo "$dynamic_linker" >&6; } | |
19618 | test "$dynamic_linker" = no && can_build_shared=no | |
19619 | ||
19620 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
19621 | if test "$GCC" = yes; then | |
19622 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
19623 | fi | |
19624 | ||
19625 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
19626 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
19627 | fi | |
19628 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
19629 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
19630 | fi | |
19631 | ||
19632 | ||
19633 | ||
19634 | ||
19635 | ||
19636 | ||
19637 | ||
19638 | ||
19639 | ||
19640 | ||
19641 | ||
19642 | ||
19643 | ||
19644 | ||
19645 | ||
19646 | ||
19647 | ||
19648 | ||
19649 | ||
19650 | ||
19651 | ||
19652 | ||
19653 | ||
19654 | ||
19655 | ||
19656 | ||
19657 | ||
19658 | ||
19659 | ||
19660 | ||
19661 | ||
19662 | ||
19663 | ||
19664 | ||
19665 | ||
19666 | ||
19667 | ||
19668 | ||
19669 | ||
19670 | ||
19671 | ||
19672 | ||
19673 | ||
19674 | ||
19675 | ||
19676 | ||
19677 | ||
19678 | ||
19679 | ||
19680 | ||
19681 | ||
19682 | ||
19683 | ||
19684 | ||
19685 | ||
19686 | ||
19687 | ||
19688 | ||
19689 | ||
19690 | ||
19691 | ||
19692 | ||
19693 | ||
19694 | ||
19695 | ||
19696 | ||
19697 | ||
19698 | ||
19699 | ||
19700 | ||
19701 | ||
19702 | ||
19703 | ||
19704 | ||
19705 | ||
19706 | ||
19707 | ||
19708 | ||
19709 | ||
19710 | ||
19711 | ||
19712 | ||
19713 | ||
19714 | ||
19715 | ||
19716 | ||
19717 | ||
19718 | ||
19719 | ||
19720 | ||
19721 | ||
19722 | ||
19723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
19724 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
19725 | hardcode_action= | |
19726 | if test -n "$hardcode_libdir_flag_spec" || | |
19727 | test -n "$runpath_var" || | |
19728 | test "X$hardcode_automatic" = "Xyes" ; then | |
19729 | ||
19730 | # We can hardcode non-existent directories. | |
19731 | if test "$hardcode_direct" != no && | |
19732 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
19733 | # have to relink, otherwise we might link with an installed library | |
19734 | # when we should be linking with a yet-to-be-installed one | |
19735 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
19736 | test "$hardcode_minus_L" != no; then | |
19737 | # Linking always hardcodes the temporary library directory. | |
19738 | hardcode_action=relink | |
19739 | else | |
19740 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
19741 | hardcode_action=immediate | |
19742 | fi | |
19743 | else | |
19744 | # We cannot hardcode anything, or else we can only hardcode existing | |
19745 | # directories. | |
19746 | hardcode_action=unsupported | |
19747 | fi | |
19748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
19749 | $as_echo "$hardcode_action" >&6; } | |
19750 | ||
19751 | if test "$hardcode_action" = relink || | |
19752 | test "$inherit_rpath" = yes; then | |
19753 | # Fast installation is not supported | |
19754 | enable_fast_install=no | |
19755 | elif test "$shlibpath_overrides_runpath" = yes || | |
19756 | test "$enable_shared" = no; then | |
19757 | # Fast installation is not necessary | |
19758 | enable_fast_install=needless | |
19759 | fi | |
19760 | ||
19761 | ||
19762 | ||
19763 | ||
19764 | ||
19765 | ||
19766 | if test "x$enable_dlopen" != xyes; then | |
19767 | enable_dlopen=unknown | |
19768 | enable_dlopen_self=unknown | |
19769 | enable_dlopen_self_static=unknown | |
19770 | else | |
19771 | lt_cv_dlopen=no | |
19772 | lt_cv_dlopen_libs= | |
19773 | ||
19774 | case $host_os in | |
19775 | beos*) | |
19776 | lt_cv_dlopen="load_add_on" | |
19777 | lt_cv_dlopen_libs= | |
19778 | lt_cv_dlopen_self=yes | |
19779 | ;; | |
19780 | ||
19781 | mingw* | pw32* | cegcc*) | |
19782 | lt_cv_dlopen="LoadLibrary" | |
19783 | lt_cv_dlopen_libs= | |
19784 | ;; | |
19785 | ||
19786 | cygwin*) | |
19787 | lt_cv_dlopen="dlopen" | |
19788 | lt_cv_dlopen_libs= | |
19789 | ;; | |
19790 | ||
19791 | darwin*) | |
19792 | # if libdl is installed we need to link against it | |
19793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
19794 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
19795 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
19796 | $as_echo_n "(cached) " >&6 | |
19797 | else | |
19798 | ac_check_lib_save_LIBS=$LIBS | |
19799 | LIBS="-ldl $LIBS" | |
19800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19801 | /* end confdefs.h. */ | |
19802 | ||
19803 | /* Override any GCC internal prototype to avoid an error. | |
19804 | Use char because int might match the return type of a GCC | |
19805 | builtin and then its argument prototype would still apply. */ | |
19806 | #ifdef __cplusplus | |
19807 | extern "C" | |
19808 | #endif | |
19809 | char dlopen (); | |
19810 | int | |
19811 | main () | |
19812 | { | |
19813 | return dlopen (); | |
19814 | ; | |
19815 | return 0; | |
19816 | } | |
19817 | _ACEOF | |
19818 | if ac_fn_c_try_link "$LINENO"; then : | |
19819 | ac_cv_lib_dl_dlopen=yes | |
19820 | else | |
19821 | ac_cv_lib_dl_dlopen=no | |
19822 | fi | |
19823 | rm -f core conftest.err conftest.$ac_objext \ | |
19824 | conftest$ac_exeext conftest.$ac_ext | |
19825 | LIBS=$ac_check_lib_save_LIBS | |
19826 | fi | |
19827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
19828 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
19829 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
19830 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
19831 | else | |
19832 | ||
19833 | lt_cv_dlopen="dyld" | |
19834 | lt_cv_dlopen_libs= | |
19835 | lt_cv_dlopen_self=yes | |
19836 | ||
19837 | fi | |
19838 | ||
19839 | ;; | |
19840 | ||
19841 | *) | |
19842 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
19843 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
19844 | lt_cv_dlopen="shl_load" | |
19845 | else | |
19846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
19847 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
19848 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
19849 | $as_echo_n "(cached) " >&6 | |
19850 | else | |
19851 | ac_check_lib_save_LIBS=$LIBS | |
19852 | LIBS="-ldld $LIBS" | |
19853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19854 | /* end confdefs.h. */ | |
19855 | ||
19856 | /* Override any GCC internal prototype to avoid an error. | |
19857 | Use char because int might match the return type of a GCC | |
19858 | builtin and then its argument prototype would still apply. */ | |
19859 | #ifdef __cplusplus | |
19860 | extern "C" | |
19861 | #endif | |
19862 | char shl_load (); | |
19863 | int | |
19864 | main () | |
19865 | { | |
19866 | return shl_load (); | |
19867 | ; | |
19868 | return 0; | |
19869 | } | |
19870 | _ACEOF | |
19871 | if ac_fn_c_try_link "$LINENO"; then : | |
19872 | ac_cv_lib_dld_shl_load=yes | |
19873 | else | |
19874 | ac_cv_lib_dld_shl_load=no | |
19875 | fi | |
19876 | rm -f core conftest.err conftest.$ac_objext \ | |
19877 | conftest$ac_exeext conftest.$ac_ext | |
19878 | LIBS=$ac_check_lib_save_LIBS | |
19879 | fi | |
19880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
19881 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
19882 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
19883 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
19884 | else | |
19885 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
19886 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
19887 | lt_cv_dlopen="dlopen" | |
19888 | else | |
19889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
19890 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
19891 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
19892 | $as_echo_n "(cached) " >&6 | |
19893 | else | |
19894 | ac_check_lib_save_LIBS=$LIBS | |
19895 | LIBS="-ldl $LIBS" | |
19896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19897 | /* end confdefs.h. */ | |
19898 | ||
19899 | /* Override any GCC internal prototype to avoid an error. | |
19900 | Use char because int might match the return type of a GCC | |
19901 | builtin and then its argument prototype would still apply. */ | |
19902 | #ifdef __cplusplus | |
19903 | extern "C" | |
19904 | #endif | |
19905 | char dlopen (); | |
19906 | int | |
19907 | main () | |
19908 | { | |
19909 | return dlopen (); | |
19910 | ; | |
19911 | return 0; | |
19912 | } | |
19913 | _ACEOF | |
19914 | if ac_fn_c_try_link "$LINENO"; then : | |
19915 | ac_cv_lib_dl_dlopen=yes | |
19916 | else | |
19917 | ac_cv_lib_dl_dlopen=no | |
19918 | fi | |
19919 | rm -f core conftest.err conftest.$ac_objext \ | |
19920 | conftest$ac_exeext conftest.$ac_ext | |
19921 | LIBS=$ac_check_lib_save_LIBS | |
19922 | fi | |
19923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
19924 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
19925 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
19926 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
19927 | else | |
19928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
19929 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
19930 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
19931 | $as_echo_n "(cached) " >&6 | |
19932 | else | |
19933 | ac_check_lib_save_LIBS=$LIBS | |
19934 | LIBS="-lsvld $LIBS" | |
19935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19936 | /* end confdefs.h. */ | |
19937 | ||
19938 | /* Override any GCC internal prototype to avoid an error. | |
19939 | Use char because int might match the return type of a GCC | |
19940 | builtin and then its argument prototype would still apply. */ | |
19941 | #ifdef __cplusplus | |
19942 | extern "C" | |
19943 | #endif | |
19944 | char dlopen (); | |
19945 | int | |
19946 | main () | |
19947 | { | |
19948 | return dlopen (); | |
19949 | ; | |
19950 | return 0; | |
19951 | } | |
19952 | _ACEOF | |
19953 | if ac_fn_c_try_link "$LINENO"; then : | |
19954 | ac_cv_lib_svld_dlopen=yes | |
19955 | else | |
19956 | ac_cv_lib_svld_dlopen=no | |
19957 | fi | |
19958 | rm -f core conftest.err conftest.$ac_objext \ | |
19959 | conftest$ac_exeext conftest.$ac_ext | |
19960 | LIBS=$ac_check_lib_save_LIBS | |
19961 | fi | |
19962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
19963 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
19964 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
19965 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
19966 | else | |
19967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
19968 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
19969 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
19970 | $as_echo_n "(cached) " >&6 | |
19971 | else | |
19972 | ac_check_lib_save_LIBS=$LIBS | |
19973 | LIBS="-ldld $LIBS" | |
19974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19975 | /* end confdefs.h. */ | |
19976 | ||
19977 | /* Override any GCC internal prototype to avoid an error. | |
19978 | Use char because int might match the return type of a GCC | |
19979 | builtin and then its argument prototype would still apply. */ | |
19980 | #ifdef __cplusplus | |
19981 | extern "C" | |
19982 | #endif | |
19983 | char dld_link (); | |
19984 | int | |
19985 | main () | |
19986 | { | |
19987 | return dld_link (); | |
19988 | ; | |
19989 | return 0; | |
19990 | } | |
19991 | _ACEOF | |
19992 | if ac_fn_c_try_link "$LINENO"; then : | |
19993 | ac_cv_lib_dld_dld_link=yes | |
19994 | else | |
19995 | ac_cv_lib_dld_dld_link=no | |
19996 | fi | |
19997 | rm -f core conftest.err conftest.$ac_objext \ | |
19998 | conftest$ac_exeext conftest.$ac_ext | |
19999 | LIBS=$ac_check_lib_save_LIBS | |
20000 | fi | |
20001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
20002 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
20003 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
20004 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
20005 | fi | |
20006 | ||
20007 | ||
20008 | fi | |
20009 | ||
20010 | ||
20011 | fi | |
20012 | ||
20013 | ||
20014 | fi | |
20015 | ||
20016 | ||
20017 | fi | |
20018 | ||
20019 | ||
20020 | fi | |
20021 | ||
20022 | ;; | |
20023 | esac | |
20024 | ||
20025 | if test "x$lt_cv_dlopen" != xno; then | |
20026 | enable_dlopen=yes | |
20027 | else | |
20028 | enable_dlopen=no | |
20029 | fi | |
20030 | ||
20031 | case $lt_cv_dlopen in | |
20032 | dlopen) | |
20033 | save_CPPFLAGS="$CPPFLAGS" | |
20034 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
20035 | ||
20036 | save_LDFLAGS="$LDFLAGS" | |
20037 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
20038 | ||
20039 | save_LIBS="$LIBS" | |
20040 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
20041 | ||
20042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
20043 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
20044 | if ${lt_cv_dlopen_self+:} false; then : | |
20045 | $as_echo_n "(cached) " >&6 | |
20046 | else | |
20047 | if test "$cross_compiling" = yes; then : | |
20048 | lt_cv_dlopen_self=cross | |
20049 | else | |
20050 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
20051 | lt_status=$lt_dlunknown | |
20052 | cat > conftest.$ac_ext <<_LT_EOF | |
20053 | #line $LINENO "configure" | |
20054 | #include "confdefs.h" | |
20055 | ||
20056 | #if HAVE_DLFCN_H | |
20057 | #include <dlfcn.h> | |
20058 | #endif | |
20059 | ||
20060 | #include <stdio.h> | |
20061 | ||
20062 | #ifdef RTLD_GLOBAL | |
20063 | # define LT_DLGLOBAL RTLD_GLOBAL | |
20064 | #else | |
20065 | # ifdef DL_GLOBAL | |
20066 | # define LT_DLGLOBAL DL_GLOBAL | |
20067 | # else | |
20068 | # define LT_DLGLOBAL 0 | |
20069 | # endif | |
20070 | #endif | |
20071 | ||
20072 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
20073 | find out it does not work in some platform. */ | |
20074 | #ifndef LT_DLLAZY_OR_NOW | |
20075 | # ifdef RTLD_LAZY | |
20076 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
20077 | # else | |
20078 | # ifdef DL_LAZY | |
20079 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
20080 | # else | |
20081 | # ifdef RTLD_NOW | |
20082 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
20083 | # else | |
20084 | # ifdef DL_NOW | |
20085 | # define LT_DLLAZY_OR_NOW DL_NOW | |
20086 | # else | |
20087 | # define LT_DLLAZY_OR_NOW 0 | |
20088 | # endif | |
20089 | # endif | |
20090 | # endif | |
20091 | # endif | |
20092 | #endif | |
20093 | ||
20094 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
20095 | correspondingly for the symbols needed. */ | |
20096 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
20097 | int fnord () __attribute__((visibility("default"))); | |
20098 | #endif | |
20099 | ||
20100 | int fnord () { return 42; } | |
20101 | int main () | |
20102 | { | |
20103 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
20104 | int status = $lt_dlunknown; | |
20105 | ||
20106 | if (self) | |
20107 | { | |
20108 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
20109 | else | |
20110 | { | |
20111 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
20112 | else puts (dlerror ()); | |
20113 | } | |
20114 | /* dlclose (self); */ | |
20115 | } | |
20116 | else | |
20117 | puts (dlerror ()); | |
20118 | ||
20119 | return status; | |
20120 | } | |
20121 | _LT_EOF | |
20122 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
20123 | (eval $ac_link) 2>&5 | |
20124 | ac_status=$? | |
20125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20126 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
20127 | (./conftest; exit; ) >&5 2>/dev/null | |
20128 | lt_status=$? | |
20129 | case x$lt_status in | |
20130 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
20131 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
20132 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
20133 | esac | |
20134 | else : | |
20135 | # compilation failed | |
20136 | lt_cv_dlopen_self=no | |
20137 | fi | |
20138 | fi | |
20139 | rm -fr conftest* | |
20140 | ||
20141 | ||
20142 | fi | |
20143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
20144 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
20145 | ||
20146 | if test "x$lt_cv_dlopen_self" = xyes; then | |
20147 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
20148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
20149 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
20150 | if ${lt_cv_dlopen_self_static+:} false; then : | |
20151 | $as_echo_n "(cached) " >&6 | |
20152 | else | |
20153 | if test "$cross_compiling" = yes; then : | |
20154 | lt_cv_dlopen_self_static=cross | |
20155 | else | |
20156 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
20157 | lt_status=$lt_dlunknown | |
20158 | cat > conftest.$ac_ext <<_LT_EOF | |
20159 | #line $LINENO "configure" | |
20160 | #include "confdefs.h" | |
20161 | ||
20162 | #if HAVE_DLFCN_H | |
20163 | #include <dlfcn.h> | |
20164 | #endif | |
20165 | ||
20166 | #include <stdio.h> | |
20167 | ||
20168 | #ifdef RTLD_GLOBAL | |
20169 | # define LT_DLGLOBAL RTLD_GLOBAL | |
20170 | #else | |
20171 | # ifdef DL_GLOBAL | |
20172 | # define LT_DLGLOBAL DL_GLOBAL | |
20173 | # else | |
20174 | # define LT_DLGLOBAL 0 | |
20175 | # endif | |
20176 | #endif | |
20177 | ||
20178 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
20179 | find out it does not work in some platform. */ | |
20180 | #ifndef LT_DLLAZY_OR_NOW | |
20181 | # ifdef RTLD_LAZY | |
20182 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
20183 | # else | |
20184 | # ifdef DL_LAZY | |
20185 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
20186 | # else | |
20187 | # ifdef RTLD_NOW | |
20188 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
20189 | # else | |
20190 | # ifdef DL_NOW | |
20191 | # define LT_DLLAZY_OR_NOW DL_NOW | |
20192 | # else | |
20193 | # define LT_DLLAZY_OR_NOW 0 | |
20194 | # endif | |
20195 | # endif | |
20196 | # endif | |
20197 | # endif | |
20198 | #endif | |
20199 | ||
20200 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
20201 | correspondingly for the symbols needed. */ | |
20202 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
20203 | int fnord () __attribute__((visibility("default"))); | |
20204 | #endif | |
20205 | ||
20206 | int fnord () { return 42; } | |
20207 | int main () | |
20208 | { | |
20209 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
20210 | int status = $lt_dlunknown; | |
20211 | ||
20212 | if (self) | |
20213 | { | |
20214 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
20215 | else | |
20216 | { | |
20217 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
20218 | else puts (dlerror ()); | |
20219 | } | |
20220 | /* dlclose (self); */ | |
20221 | } | |
20222 | else | |
20223 | puts (dlerror ()); | |
20224 | ||
20225 | return status; | |
20226 | } | |
20227 | _LT_EOF | |
20228 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
20229 | (eval $ac_link) 2>&5 | |
20230 | ac_status=$? | |
20231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20232 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
20233 | (./conftest; exit; ) >&5 2>/dev/null | |
20234 | lt_status=$? | |
20235 | case x$lt_status in | |
20236 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
20237 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
20238 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
20239 | esac | |
20240 | else : | |
20241 | # compilation failed | |
20242 | lt_cv_dlopen_self_static=no | |
20243 | fi | |
20244 | fi | |
20245 | rm -fr conftest* | |
20246 | ||
20247 | ||
20248 | fi | |
20249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
20250 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
20251 | fi | |
20252 | ||
20253 | CPPFLAGS="$save_CPPFLAGS" | |
20254 | LDFLAGS="$save_LDFLAGS" | |
20255 | LIBS="$save_LIBS" | |
20256 | ;; | |
20257 | esac | |
20258 | ||
20259 | case $lt_cv_dlopen_self in | |
20260 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
20261 | *) enable_dlopen_self=unknown ;; | |
20262 | esac | |
20263 | ||
20264 | case $lt_cv_dlopen_self_static in | |
20265 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
20266 | *) enable_dlopen_self_static=unknown ;; | |
20267 | esac | |
20268 | fi | |
20269 | ||
20270 | ||
20271 | ||
20272 | ||
20273 | ||
20274 | ||
20275 | ||
20276 | ||
20277 | ||
20278 | ||
20279 | ||
20280 | ||
20281 | ||
20282 | ||
20283 | ||
20284 | ||
20285 | ||
20286 | striplib= | |
20287 | old_striplib= | |
20288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
20289 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
20290 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
20291 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
20292 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
20293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20294 | $as_echo "yes" >&6; } | |
20295 | else | |
20296 | # FIXME - insert some real tests, host_os isn't really good enough | |
20297 | case $host_os in | |
20298 | darwin*) | |
20299 | if test -n "$STRIP" ; then | |
20300 | striplib="$STRIP -x" | |
20301 | old_striplib="$STRIP -S" | |
20302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20303 | $as_echo "yes" >&6; } | |
20304 | else | |
20305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20306 | $as_echo "no" >&6; } | |
20307 | fi | |
20308 | ;; | |
20309 | *) | |
20310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20311 | $as_echo "no" >&6; } | |
20312 | ;; | |
20313 | esac | |
20314 | fi | |
20315 | ||
20316 | ||
20317 | ||
20318 | ||
20319 | ||
20320 | ||
20321 | ||
20322 | ||
20323 | ||
20324 | ||
20325 | ||
20326 | ||
20327 | # Report which library types will actually be built | |
20328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
20329 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
20330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
20331 | $as_echo "$can_build_shared" >&6; } | |
20332 | ||
20333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
20334 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
20335 | test "$can_build_shared" = "no" && enable_shared=no | |
20336 | ||
20337 | # On AIX, shared libraries and static libraries use the same namespace, and | |
20338 | # are all built from PIC. | |
20339 | case $host_os in | |
20340 | aix3*) | |
20341 | test "$enable_shared" = yes && enable_static=no | |
20342 | if test -n "$RANLIB"; then | |
20343 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
20344 | postinstall_cmds='$RANLIB $lib' | |
20345 | fi | |
20346 | ;; | |
20347 | ||
20348 | aix[4-9]*) | |
20349 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
20350 | test "$enable_shared" = yes && enable_static=no | |
20351 | fi | |
20352 | ;; | |
20353 | esac | |
20354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
20355 | $as_echo "$enable_shared" >&6; } | |
20356 | ||
20357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
20358 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
20359 | # Make sure either enable_shared or enable_static is yes. | |
20360 | test "$enable_shared" = yes || enable_static=yes | |
20361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
20362 | $as_echo "$enable_static" >&6; } | |
20363 | ||
20364 | ||
20365 | ||
20366 | ||
20367 | fi | |
20368 | ac_ext=c | |
20369 | ac_cpp='$CPP $CPPFLAGS' | |
20370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20373 | ||
20374 | CC="$lt_save_CC" | |
20375 | ||
20376 | ||
20377 | ||
20378 | ||
20379 | ||
20380 | ||
20381 | ||
20382 | ||
20383 | ||
20384 | ||
20385 | ||
20386 | ||
20387 | ||
20388 | ||
20389 | ||
20390 | ac_config_commands="$ac_config_commands libtool" | |
20391 | ||
20392 | ||
20393 | ||
20394 | ||
20395 | # Only expand once: | |
20396 | ||
20397 | ||
20398 | ||
20399 | ||
20400 | ||
20401 | ||
20402 | ||
20403 | ||
20404 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
20405 | if test -n "$ac_tool_prefix"; then | |
20406 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
20407 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
20408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20409 | $as_echo_n "checking for $ac_word... " >&6; } | |
20410 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
20411 | $as_echo_n "(cached) " >&6 | |
20412 | else | |
20413 | case $PKG_CONFIG in | |
20414 | [\\/]* | ?:[\\/]*) | |
20415 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
20416 | ;; | |
20417 | *) | |
20418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20419 | for as_dir in $PATH | |
20420 | do | |
20421 | IFS=$as_save_IFS | |
20422 | test -z "$as_dir" && as_dir=. | |
20423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
20425 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20427 | break 2 | |
20428 | fi | |
20429 | done | |
20430 | done | |
20431 | IFS=$as_save_IFS | |
20432 | ||
20433 | ;; | |
20434 | esac | |
20435 | fi | |
20436 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
20437 | if test -n "$PKG_CONFIG"; then | |
20438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
20439 | $as_echo "$PKG_CONFIG" >&6; } | |
20440 | else | |
20441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20442 | $as_echo "no" >&6; } | |
20443 | fi | |
20444 | ||
20445 | ||
20446 | fi | |
20447 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
20448 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
20449 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20450 | set dummy pkg-config; ac_word=$2 | |
20451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20452 | $as_echo_n "checking for $ac_word... " >&6; } | |
20453 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
20454 | $as_echo_n "(cached) " >&6 | |
20455 | else | |
20456 | case $ac_pt_PKG_CONFIG in | |
20457 | [\\/]* | ?:[\\/]*) | |
20458 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
20459 | ;; | |
20460 | *) | |
20461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20462 | for as_dir in $PATH | |
20463 | do | |
20464 | IFS=$as_save_IFS | |
20465 | test -z "$as_dir" && as_dir=. | |
20466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
20468 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20470 | break 2 | |
20471 | fi | |
20472 | done | |
20473 | done | |
20474 | IFS=$as_save_IFS | |
20475 | ||
20476 | ;; | |
20477 | esac | |
20478 | fi | |
20479 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
20480 | if test -n "$ac_pt_PKG_CONFIG"; then | |
20481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
20482 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
20483 | else | |
20484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20485 | $as_echo "no" >&6; } | |
20486 | fi | |
20487 | ||
20488 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
20489 | PKG_CONFIG="" | |
20490 | else | |
20491 | case $cross_compiling:$ac_tool_warned in | |
20492 | yes:) | |
20493 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20494 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20495 | ac_tool_warned=yes ;; | |
20496 | esac | |
20497 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
20498 | fi | |
20499 | else | |
20500 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
20501 | fi | |
20502 | ||
20503 | fi | |
20504 | if test -n "$PKG_CONFIG"; then | |
20505 | _pkg_min_version=0.9.0 | |
20506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
20507 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
20508 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
20509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20510 | $as_echo "yes" >&6; } | |
20511 | else | |
20512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20513 | $as_echo "no" >&6; } | |
20514 | PKG_CONFIG="" | |
20515 | fi | |
20516 | fi | |
20517 | for ac_prog in flex lex | |
20518 | do | |
20519 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20520 | set dummy $ac_prog; ac_word=$2 | |
20521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20522 | $as_echo_n "checking for $ac_word... " >&6; } | |
20523 | if ${ac_cv_prog_LEX+:} false; then : | |
20524 | $as_echo_n "(cached) " >&6 | |
20525 | else | |
20526 | if test -n "$LEX"; then | |
20527 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
20528 | else | |
20529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20530 | for as_dir in $PATH | |
20531 | do | |
20532 | IFS=$as_save_IFS | |
20533 | test -z "$as_dir" && as_dir=. | |
20534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
20536 | ac_cv_prog_LEX="$ac_prog" | |
20537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20538 | break 2 | |
20539 | fi | |
20540 | done | |
20541 | done | |
20542 | IFS=$as_save_IFS | |
20543 | ||
20544 | fi | |
20545 | fi | |
20546 | LEX=$ac_cv_prog_LEX | |
20547 | if test -n "$LEX"; then | |
20548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
20549 | $as_echo "$LEX" >&6; } | |
20550 | else | |
20551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20552 | $as_echo "no" >&6; } | |
20553 | fi | |
20554 | ||
20555 | ||
20556 | test -n "$LEX" && break | |
20557 | done | |
20558 | test -n "$LEX" || LEX=":" | |
20559 | ||
20560 | if test "x$LEX" != "x:"; then | |
20561 | cat >conftest.l <<_ACEOF | |
20562 | %% | |
20563 | a { ECHO; } | |
20564 | b { REJECT; } | |
20565 | c { yymore (); } | |
20566 | d { yyless (1); } | |
20567 | e { yyless (input () != 0); } | |
20568 | f { unput (yytext[0]); } | |
20569 | . { BEGIN INITIAL; } | |
20570 | %% | |
20571 | #ifdef YYTEXT_POINTER | |
20572 | extern char *yytext; | |
20573 | #endif | |
20574 | int | |
20575 | main (void) | |
20576 | { | |
20577 | return ! yylex () + ! yywrap (); | |
20578 | } | |
20579 | _ACEOF | |
20580 | { { ac_try="$LEX conftest.l" | |
20581 | case "(($ac_try" in | |
20582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20583 | *) ac_try_echo=$ac_try;; | |
20584 | esac | |
20585 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
20586 | $as_echo "$ac_try_echo"; } >&5 | |
20587 | (eval "$LEX conftest.l") 2>&5 | |
20588 | ac_status=$? | |
20589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20590 | test $ac_status = 0; } | |
20591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
20592 | $as_echo_n "checking lex output file root... " >&6; } | |
20593 | if ${ac_cv_prog_lex_root+:} false; then : | |
20594 | $as_echo_n "(cached) " >&6 | |
20595 | else | |
20596 | ||
20597 | if test -f lex.yy.c; then | |
20598 | ac_cv_prog_lex_root=lex.yy | |
20599 | elif test -f lexyy.c; then | |
20600 | ac_cv_prog_lex_root=lexyy | |
20601 | else | |
20602 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 | |
20603 | fi | |
20604 | fi | |
20605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
20606 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
20607 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20608 | ||
20609 | if test -z "${LEXLIB+set}"; then | |
20610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
20611 | $as_echo_n "checking lex library... " >&6; } | |
20612 | if ${ac_cv_lib_lex+:} false; then : | |
20613 | $as_echo_n "(cached) " >&6 | |
20614 | else | |
20615 | ||
20616 | ac_save_LIBS=$LIBS | |
20617 | ac_cv_lib_lex='none needed' | |
20618 | for ac_lib in '' -lfl -ll; do | |
20619 | LIBS="$ac_lib $ac_save_LIBS" | |
20620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20621 | /* end confdefs.h. */ | |
20622 | `cat $LEX_OUTPUT_ROOT.c` | |
20623 | _ACEOF | |
20624 | if ac_fn_c_try_link "$LINENO"; then : | |
20625 | ac_cv_lib_lex=$ac_lib | |
20626 | fi | |
20627 | rm -f core conftest.err conftest.$ac_objext \ | |
20628 | conftest$ac_exeext conftest.$ac_ext | |
20629 | test "$ac_cv_lib_lex" != 'none needed' && break | |
20630 | done | |
20631 | LIBS=$ac_save_LIBS | |
20632 | ||
20633 | fi | |
20634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
20635 | $as_echo "$ac_cv_lib_lex" >&6; } | |
20636 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
20637 | fi | |
20638 | ||
20639 | ||
20640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
20641 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
20642 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : | |
20643 | $as_echo_n "(cached) " >&6 | |
20644 | else | |
20645 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
20646 | # default is implementation-dependent. Figure out which it is, since | |
20647 | # not all implementations provide the %pointer and %array declarations. | |
20648 | ac_cv_prog_lex_yytext_pointer=no | |
20649 | ac_save_LIBS=$LIBS | |
20650 | LIBS="$LEXLIB $ac_save_LIBS" | |
20651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20652 | /* end confdefs.h. */ | |
20653 | ||
20654 | #define YYTEXT_POINTER 1 | |
20655 | `cat $LEX_OUTPUT_ROOT.c` | |
20656 | _ACEOF | |
20657 | if ac_fn_c_try_link "$LINENO"; then : | |
20658 | ac_cv_prog_lex_yytext_pointer=yes | |
20659 | fi | |
20660 | rm -f core conftest.err conftest.$ac_objext \ | |
20661 | conftest$ac_exeext conftest.$ac_ext | |
20662 | LIBS=$ac_save_LIBS | |
20663 | ||
20664 | fi | |
20665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
20666 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
20667 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
20668 | ||
20669 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h | |
20670 | ||
20671 | fi | |
20672 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
20673 | ||
20674 | fi | |
20675 | for ac_prog in 'bison -y' byacc | |
20676 | do | |
20677 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20678 | set dummy $ac_prog; ac_word=$2 | |
20679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20680 | $as_echo_n "checking for $ac_word... " >&6; } | |
20681 | if ${ac_cv_prog_YACC+:} false; then : | |
20682 | $as_echo_n "(cached) " >&6 | |
20683 | else | |
20684 | if test -n "$YACC"; then | |
20685 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
20686 | else | |
20687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20688 | for as_dir in $PATH | |
20689 | do | |
20690 | IFS=$as_save_IFS | |
20691 | test -z "$as_dir" && as_dir=. | |
20692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
20694 | ac_cv_prog_YACC="$ac_prog" | |
20695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20696 | break 2 | |
20697 | fi | |
20698 | done | |
20699 | done | |
20700 | IFS=$as_save_IFS | |
20701 | ||
20702 | fi | |
20703 | fi | |
20704 | YACC=$ac_cv_prog_YACC | |
20705 | if test -n "$YACC"; then | |
20706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
20707 | $as_echo "$YACC" >&6; } | |
20708 | else | |
20709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20710 | $as_echo "no" >&6; } | |
20711 | fi | |
20712 | ||
20713 | ||
20714 | test -n "$YACC" && break | |
20715 | done | |
20716 | test -n "$YACC" || YACC="yacc" | |
20717 | ||
20718 | # Check whether --enable-largefile was given. | |
20719 | if test "${enable_largefile+set}" = set; then : | |
20720 | enableval=$enable_largefile; | |
20721 | fi | |
20722 | ||
20723 | if test "$enable_largefile" != no; then | |
20724 | ||
20725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
20726 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
20727 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
20728 | $as_echo_n "(cached) " >&6 | |
20729 | else | |
20730 | ac_cv_sys_largefile_CC=no | |
20731 | if test "$GCC" != yes; then | |
20732 | ac_save_CC=$CC | |
20733 | while :; do | |
20734 | # IRIX 6.2 and later do not support large files by default, | |
20735 | # so use the C compiler's -n32 option if that helps. | |
20736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20737 | /* end confdefs.h. */ | |
20738 | #include <sys/types.h> | |
20739 | /* Check that off_t can represent 2**63 - 1 correctly. | |
20740 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20741 | since some C++ compilers masquerading as C compilers | |
20742 | incorrectly reject 9223372036854775807. */ | |
20743 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20744 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20745 | && LARGE_OFF_T % 2147483647 == 1) | |
20746 | ? 1 : -1]; | |
20747 | int | |
20748 | main () | |
20749 | { | |
20750 | ||
20751 | ; | |
20752 | return 0; | |
20753 | } | |
20754 | _ACEOF | |
20755 | if ac_fn_c_try_compile "$LINENO"; then : | |
20756 | break | |
20757 | fi | |
20758 | rm -f core conftest.err conftest.$ac_objext | |
20759 | CC="$CC -n32" | |
20760 | if ac_fn_c_try_compile "$LINENO"; then : | |
20761 | ac_cv_sys_largefile_CC=' -n32'; break | |
20762 | fi | |
20763 | rm -f core conftest.err conftest.$ac_objext | |
20764 | break | |
20765 | done | |
20766 | CC=$ac_save_CC | |
20767 | rm -f conftest.$ac_ext | |
20768 | fi | |
20769 | fi | |
20770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
20771 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
20772 | if test "$ac_cv_sys_largefile_CC" != no; then | |
20773 | CC=$CC$ac_cv_sys_largefile_CC | |
20774 | fi | |
20775 | ||
20776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20777 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
20778 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
20779 | $as_echo_n "(cached) " >&6 | |
20780 | else | |
20781 | while :; do | |
20782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20783 | /* end confdefs.h. */ | |
20784 | #include <sys/types.h> | |
20785 | /* Check that off_t can represent 2**63 - 1 correctly. | |
20786 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20787 | since some C++ compilers masquerading as C compilers | |
20788 | incorrectly reject 9223372036854775807. */ | |
20789 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20790 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20791 | && LARGE_OFF_T % 2147483647 == 1) | |
20792 | ? 1 : -1]; | |
20793 | int | |
20794 | main () | |
20795 | { | |
20796 | ||
20797 | ; | |
20798 | return 0; | |
20799 | } | |
20800 | _ACEOF | |
20801 | if ac_fn_c_try_compile "$LINENO"; then : | |
20802 | ac_cv_sys_file_offset_bits=no; break | |
20803 | fi | |
20804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20806 | /* end confdefs.h. */ | |
20807 | #define _FILE_OFFSET_BITS 64 | |
20808 | #include <sys/types.h> | |
20809 | /* Check that off_t can represent 2**63 - 1 correctly. | |
20810 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20811 | since some C++ compilers masquerading as C compilers | |
20812 | incorrectly reject 9223372036854775807. */ | |
20813 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20814 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20815 | && LARGE_OFF_T % 2147483647 == 1) | |
20816 | ? 1 : -1]; | |
20817 | int | |
20818 | main () | |
20819 | { | |
20820 | ||
20821 | ; | |
20822 | return 0; | |
20823 | } | |
20824 | _ACEOF | |
20825 | if ac_fn_c_try_compile "$LINENO"; then : | |
20826 | ac_cv_sys_file_offset_bits=64; break | |
20827 | fi | |
20828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20829 | ac_cv_sys_file_offset_bits=unknown | |
20830 | break | |
20831 | done | |
20832 | fi | |
20833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
20834 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
20835 | case $ac_cv_sys_file_offset_bits in #( | |
20836 | no | unknown) ;; | |
20837 | *) | |
20838 | cat >>confdefs.h <<_ACEOF | |
20839 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20840 | _ACEOF | |
20841 | ;; | |
20842 | esac | |
20843 | rm -rf conftest* | |
20844 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
20845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
20846 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
20847 | if ${ac_cv_sys_large_files+:} false; then : | |
20848 | $as_echo_n "(cached) " >&6 | |
20849 | else | |
20850 | while :; do | |
20851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20852 | /* end confdefs.h. */ | |
20853 | #include <sys/types.h> | |
20854 | /* Check that off_t can represent 2**63 - 1 correctly. | |
20855 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20856 | since some C++ compilers masquerading as C compilers | |
20857 | incorrectly reject 9223372036854775807. */ | |
20858 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20859 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20860 | && LARGE_OFF_T % 2147483647 == 1) | |
20861 | ? 1 : -1]; | |
20862 | int | |
20863 | main () | |
20864 | { | |
20865 | ||
20866 | ; | |
20867 | return 0; | |
20868 | } | |
20869 | _ACEOF | |
20870 | if ac_fn_c_try_compile "$LINENO"; then : | |
20871 | ac_cv_sys_large_files=no; break | |
20872 | fi | |
20873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20875 | /* end confdefs.h. */ | |
20876 | #define _LARGE_FILES 1 | |
20877 | #include <sys/types.h> | |
20878 | /* Check that off_t can represent 2**63 - 1 correctly. | |
20879 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
20880 | since some C++ compilers masquerading as C compilers | |
20881 | incorrectly reject 9223372036854775807. */ | |
20882 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
20883 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
20884 | && LARGE_OFF_T % 2147483647 == 1) | |
20885 | ? 1 : -1]; | |
20886 | int | |
20887 | main () | |
20888 | { | |
20889 | ||
20890 | ; | |
20891 | return 0; | |
20892 | } | |
20893 | _ACEOF | |
20894 | if ac_fn_c_try_compile "$LINENO"; then : | |
20895 | ac_cv_sys_large_files=1; break | |
20896 | fi | |
20897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20898 | ac_cv_sys_large_files=unknown | |
20899 | break | |
20900 | done | |
20901 | fi | |
20902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
20903 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
20904 | case $ac_cv_sys_large_files in #( | |
20905 | no | unknown) ;; | |
20906 | *) | |
20907 | cat >>confdefs.h <<_ACEOF | |
20908 | #define _LARGE_FILES $ac_cv_sys_large_files | |
20909 | _ACEOF | |
20910 | ;; | |
20911 | esac | |
20912 | rm -rf conftest* | |
20913 | fi | |
20914 | fi | |
20915 | ||
20916 | ||
20917 | ||
20918 | for ac_prog in cpp | |
20919 | do | |
20920 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20921 | set dummy $ac_prog; ac_word=$2 | |
20922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20923 | $as_echo_n "checking for $ac_word... " >&6; } | |
20924 | if ${ac_cv_path_RAWCPP+:} false; then : | |
20925 | $as_echo_n "(cached) " >&6 | |
20926 | else | |
20927 | case $RAWCPP in | |
20928 | [\\/]* | ?:[\\/]*) | |
20929 | ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. | |
20930 | ;; | |
20931 | *) | |
20932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20933 | as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" | |
20934 | for as_dir in $as_dummy | |
20935 | do | |
20936 | IFS=$as_save_IFS | |
20937 | test -z "$as_dir" && as_dir=. | |
20938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
20940 | ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" | |
20941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20942 | break 2 | |
20943 | fi | |
20944 | done | |
20945 | done | |
20946 | IFS=$as_save_IFS | |
20947 | ||
20948 | ;; | |
20949 | esac | |
20950 | fi | |
20951 | RAWCPP=$ac_cv_path_RAWCPP | |
20952 | if test -n "$RAWCPP"; then | |
20953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 | |
20954 | $as_echo "$RAWCPP" >&6; } | |
20955 | else | |
20956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20957 | $as_echo "no" >&6; } | |
20958 | fi | |
20959 | ||
20960 | ||
20961 | test -n "$RAWCPP" && break | |
20962 | done | |
20963 | test -n "$RAWCPP" || RAWCPP="${CPP}" | |
20964 | ||
20965 | ||
20966 | # Check for flag to avoid builtin definitions - assumes unix is predefined, | |
20967 | # which is not the best choice for supporting other OS'es, but covers most | |
20968 | # of the ones we need for now. | |
20969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 | |
20970 | $as_echo_n "checking if $RAWCPP requires -undef... " >&6; } | |
20971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20972 | /* end confdefs.h. */ | |
20973 | Does cpp redefine unix ? | |
20974 | _ACEOF | |
20975 | if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then | |
20976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20977 | $as_echo "no" >&6; } | |
20978 | else | |
20979 | if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then | |
20980 | RAWCPPFLAGS=-undef | |
20981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20982 | $as_echo "yes" >&6; } | |
20983 | # under Cygwin unix is still defined even with -undef | |
20984 | elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then | |
20985 | RAWCPPFLAGS="-undef -ansi" | |
20986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 | |
20987 | $as_echo "yes, with -ansi" >&6; } | |
20988 | else | |
20989 | as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 | |
20990 | fi | |
20991 | fi | |
20992 | rm -f conftest.$ac_ext | |
20993 | ||
20994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 | |
20995 | $as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } | |
20996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20997 | /* end confdefs.h. */ | |
20998 | Does cpp preserve "whitespace"? | |
20999 | _ACEOF | |
21000 | if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then | |
21001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21002 | $as_echo "no" >&6; } | |
21003 | else | |
21004 | if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then | |
21005 | RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" | |
21006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21007 | $as_echo "yes" >&6; } | |
21008 | else | |
21009 | as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 | |
21010 | fi | |
21011 | fi | |
21012 | rm -f conftest.$ac_ext | |
21013 | ||
21014 | ||
21015 | ||
21016 | # Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow | |
21017 | # easier overrides at build time. | |
21018 | XSERVER_CFLAGS='$(CWARNFLAGS)' | |
21019 | ||
21020 | if test "x$GCC" = xyes ; then | |
21021 | XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" | |
21022 | fi | |
21023 | ||
21024 | ||
21025 | # Check whether --with-dtrace was given. | |
21026 | if test "${with_dtrace+set}" = set; then : | |
21027 | withval=$with_dtrace; WDTRACE=$withval | |
21028 | else | |
21029 | WDTRACE=auto | |
21030 | fi | |
21031 | ||
21032 | if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then | |
21033 | # Extract the first word of "dtrace", so it can be a program name with args. | |
21034 | set dummy dtrace; ac_word=$2 | |
21035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21036 | $as_echo_n "checking for $ac_word... " >&6; } | |
21037 | if ${ac_cv_path_DTRACE+:} false; then : | |
21038 | $as_echo_n "(cached) " >&6 | |
21039 | else | |
21040 | case $DTRACE in | |
21041 | [\\/]* | ?:[\\/]*) | |
21042 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | |
21043 | ;; | |
21044 | *) | |
21045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21046 | as_dummy="$PATH:/usr/sbin" | |
21047 | for as_dir in $as_dummy | |
21048 | do | |
21049 | IFS=$as_save_IFS | |
21050 | test -z "$as_dir" && as_dir=. | |
21051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
21053 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | |
21054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21055 | break 2 | |
21056 | fi | |
21057 | done | |
21058 | done | |
21059 | IFS=$as_save_IFS | |
21060 | ||
21061 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" | |
21062 | ;; | |
21063 | esac | |
21064 | fi | |
21065 | DTRACE=$ac_cv_path_DTRACE | |
21066 | if test -n "$DTRACE"; then | |
21067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | |
21068 | $as_echo "$DTRACE" >&6; } | |
21069 | else | |
21070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21071 | $as_echo "no" >&6; } | |
21072 | fi | |
21073 | ||
21074 | ||
21075 | if test "x$DTRACE" = "xnot_found" ; then | |
21076 | if test "x$WDTRACE" = "xyes" ; then | |
21077 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
21078 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21079 | as_fn_error $? "dtrace requested but not found | |
21080 | See \`config.log' for more details" "$LINENO" 5; } | |
21081 | fi | |
21082 | WDTRACE="no" | |
21083 | else | |
21084 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" | |
21085 | if test "x$ac_cv_header_sys_sdt_h" = xyes; then : | |
21086 | HAS_SDT_H="yes" | |
21087 | else | |
21088 | HAS_SDT_H="no" | |
21089 | fi | |
21090 | ||
21091 | ||
21092 | if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then | |
21093 | WDTRACE="no" | |
21094 | fi | |
21095 | fi | |
21096 | fi | |
21097 | if test "x$WDTRACE" != "xno" ; then | |
21098 | ||
21099 | $as_echo "#define XSERVER_DTRACE 1" >>confdefs.h | |
21100 | ||
21101 | ||
21102 | # Solaris/OpenSolaris require dtrace -G to build dtrace probe information into | |
21103 | # object files, and require linking with those as relocatable objects, not .a | |
21104 | # archives. MacOS X handles all this in the normal compiler toolchain, and on | |
21105 | # some releases (like Tiger), will error out on dtrace -G. For now, other | |
21106 | # platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux | |
21107 | # ports appear to, based on my web searches, but have not yet been tested). | |
21108 | case $host_os in | |
21109 | darwin*) SPECIAL_DTRACE_OBJECTS=no ;; | |
21110 | *) SPECIAL_DTRACE_OBJECTS=yes ;; | |
21111 | esac | |
21112 | fi | |
21113 | if test "x$WDTRACE" != "xno"; then | |
21114 | XSERVER_DTRACE_TRUE= | |
21115 | XSERVER_DTRACE_FALSE='#' | |
21116 | else | |
21117 | XSERVER_DTRACE_TRUE='#' | |
21118 | XSERVER_DTRACE_FALSE= | |
21119 | fi | |
21120 | ||
21121 | if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then | |
21122 | SPECIAL_DTRACE_OBJECTS_TRUE= | |
21123 | SPECIAL_DTRACE_OBJECTS_FALSE='#' | |
21124 | else | |
21125 | SPECIAL_DTRACE_OBJECTS_TRUE='#' | |
21126 | SPECIAL_DTRACE_OBJECTS_FALSE= | |
21127 | fi | |
21128 | ||
21129 | ||
21130 | ac_header_dirent=no | |
21131 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
21132 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
21133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
21134 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
21135 | if eval \${$as_ac_Header+:} false; then : | |
21136 | $as_echo_n "(cached) " >&6 | |
21137 | else | |
21138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21139 | /* end confdefs.h. */ | |
21140 | #include <sys/types.h> | |
21141 | #include <$ac_hdr> | |
21142 | ||
21143 | int | |
21144 | main () | |
21145 | { | |
21146 | if ((DIR *) 0) | |
21147 | return 0; | |
21148 | ; | |
21149 | return 0; | |
21150 | } | |
21151 | _ACEOF | |
21152 | if ac_fn_c_try_compile "$LINENO"; then : | |
21153 | eval "$as_ac_Header=yes" | |
21154 | else | |
21155 | eval "$as_ac_Header=no" | |
21156 | fi | |
21157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21158 | fi | |
21159 | eval ac_res=\$$as_ac_Header | |
21160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
21161 | $as_echo "$ac_res" >&6; } | |
21162 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
21163 | cat >>confdefs.h <<_ACEOF | |
21164 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
21165 | _ACEOF | |
21166 | ||
21167 | ac_header_dirent=$ac_hdr; break | |
21168 | fi | |
21169 | ||
21170 | done | |
21171 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
21172 | if test $ac_header_dirent = dirent.h; then | |
21173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
21174 | $as_echo_n "checking for library containing opendir... " >&6; } | |
21175 | if ${ac_cv_search_opendir+:} false; then : | |
21176 | $as_echo_n "(cached) " >&6 | |
21177 | else | |
21178 | ac_func_search_save_LIBS=$LIBS | |
21179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21180 | /* end confdefs.h. */ | |
21181 | ||
21182 | /* Override any GCC internal prototype to avoid an error. | |
21183 | Use char because int might match the return type of a GCC | |
21184 | builtin and then its argument prototype would still apply. */ | |
21185 | #ifdef __cplusplus | |
21186 | extern "C" | |
21187 | #endif | |
21188 | char opendir (); | |
21189 | int | |
21190 | main () | |
21191 | { | |
21192 | return opendir (); | |
21193 | ; | |
21194 | return 0; | |
21195 | } | |
21196 | _ACEOF | |
21197 | for ac_lib in '' dir; do | |
21198 | if test -z "$ac_lib"; then | |
21199 | ac_res="none required" | |
21200 | else | |
21201 | ac_res=-l$ac_lib | |
21202 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21203 | fi | |
21204 | if ac_fn_c_try_link "$LINENO"; then : | |
21205 | ac_cv_search_opendir=$ac_res | |
21206 | fi | |
21207 | rm -f core conftest.err conftest.$ac_objext \ | |
21208 | conftest$ac_exeext | |
21209 | if ${ac_cv_search_opendir+:} false; then : | |
21210 | break | |
21211 | fi | |
21212 | done | |
21213 | if ${ac_cv_search_opendir+:} false; then : | |
21214 | ||
21215 | else | |
21216 | ac_cv_search_opendir=no | |
21217 | fi | |
21218 | rm conftest.$ac_ext | |
21219 | LIBS=$ac_func_search_save_LIBS | |
21220 | fi | |
21221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
21222 | $as_echo "$ac_cv_search_opendir" >&6; } | |
21223 | ac_res=$ac_cv_search_opendir | |
21224 | if test "$ac_res" != no; then : | |
21225 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21226 | ||
21227 | fi | |
21228 | ||
21229 | else | |
21230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
21231 | $as_echo_n "checking for library containing opendir... " >&6; } | |
21232 | if ${ac_cv_search_opendir+:} false; then : | |
21233 | $as_echo_n "(cached) " >&6 | |
21234 | else | |
21235 | ac_func_search_save_LIBS=$LIBS | |
21236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21237 | /* end confdefs.h. */ | |
21238 | ||
21239 | /* Override any GCC internal prototype to avoid an error. | |
21240 | Use char because int might match the return type of a GCC | |
21241 | builtin and then its argument prototype would still apply. */ | |
21242 | #ifdef __cplusplus | |
21243 | extern "C" | |
21244 | #endif | |
21245 | char opendir (); | |
21246 | int | |
21247 | main () | |
21248 | { | |
21249 | return opendir (); | |
21250 | ; | |
21251 | return 0; | |
21252 | } | |
21253 | _ACEOF | |
21254 | for ac_lib in '' x; do | |
21255 | if test -z "$ac_lib"; then | |
21256 | ac_res="none required" | |
21257 | else | |
21258 | ac_res=-l$ac_lib | |
21259 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21260 | fi | |
21261 | if ac_fn_c_try_link "$LINENO"; then : | |
21262 | ac_cv_search_opendir=$ac_res | |
21263 | fi | |
21264 | rm -f core conftest.err conftest.$ac_objext \ | |
21265 | conftest$ac_exeext | |
21266 | if ${ac_cv_search_opendir+:} false; then : | |
21267 | break | |
21268 | fi | |
21269 | done | |
21270 | if ${ac_cv_search_opendir+:} false; then : | |
21271 | ||
21272 | else | |
21273 | ac_cv_search_opendir=no | |
21274 | fi | |
21275 | rm conftest.$ac_ext | |
21276 | LIBS=$ac_func_search_save_LIBS | |
21277 | fi | |
21278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
21279 | $as_echo "$ac_cv_search_opendir" >&6; } | |
21280 | ac_res=$ac_cv_search_opendir | |
21281 | if test "$ac_res" != no; then : | |
21282 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21283 | ||
21284 | fi | |
21285 | ||
21286 | fi | |
21287 | ||
21288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
21289 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
21290 | if ${ac_cv_header_stdc+:} false; then : | |
21291 | $as_echo_n "(cached) " >&6 | |
21292 | else | |
21293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21294 | /* end confdefs.h. */ | |
21295 | #include <stdlib.h> | |
21296 | #include <stdarg.h> | |
21297 | #include <string.h> | |
21298 | #include <float.h> | |
21299 | ||
21300 | int | |
21301 | main () | |
21302 | { | |
21303 | ||
21304 | ; | |
21305 | return 0; | |
21306 | } | |
21307 | _ACEOF | |
21308 | if ac_fn_c_try_compile "$LINENO"; then : | |
21309 | ac_cv_header_stdc=yes | |
21310 | else | |
21311 | ac_cv_header_stdc=no | |
21312 | fi | |
21313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21314 | ||
21315 | if test $ac_cv_header_stdc = yes; then | |
21316 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
21317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21318 | /* end confdefs.h. */ | |
21319 | #include <string.h> | |
21320 | ||
21321 | _ACEOF | |
21322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21323 | $EGREP "memchr" >/dev/null 2>&1; then : | |
21324 | ||
21325 | else | |
21326 | ac_cv_header_stdc=no | |
21327 | fi | |
21328 | rm -f conftest* | |
21329 | ||
21330 | fi | |
21331 | ||
21332 | if test $ac_cv_header_stdc = yes; then | |
21333 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
21334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21335 | /* end confdefs.h. */ | |
21336 | #include <stdlib.h> | |
21337 | ||
21338 | _ACEOF | |
21339 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21340 | $EGREP "free" >/dev/null 2>&1; then : | |
21341 | ||
21342 | else | |
21343 | ac_cv_header_stdc=no | |
21344 | fi | |
21345 | rm -f conftest* | |
21346 | ||
21347 | fi | |
21348 | ||
21349 | if test $ac_cv_header_stdc = yes; then | |
21350 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
21351 | if test "$cross_compiling" = yes; then : | |
21352 | : | |
21353 | else | |
21354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21355 | /* end confdefs.h. */ | |
21356 | #include <ctype.h> | |
21357 | #include <stdlib.h> | |
21358 | #if ((' ' & 0x0FF) == 0x020) | |
21359 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
21360 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
21361 | #else | |
21362 | # define ISLOWER(c) \ | |
21363 | (('a' <= (c) && (c) <= 'i') \ | |
21364 | || ('j' <= (c) && (c) <= 'r') \ | |
21365 | || ('s' <= (c) && (c) <= 'z')) | |
21366 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
21367 | #endif | |
21368 | ||
21369 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
21370 | int | |
21371 | main () | |
21372 | { | |
21373 | int i; | |
21374 | for (i = 0; i < 256; i++) | |
21375 | if (XOR (islower (i), ISLOWER (i)) | |
21376 | || toupper (i) != TOUPPER (i)) | |
21377 | return 2; | |
21378 | return 0; | |
21379 | } | |
21380 | _ACEOF | |
21381 | if ac_fn_c_try_run "$LINENO"; then : | |
21382 | ||
21383 | else | |
21384 | ac_cv_header_stdc=no | |
21385 | fi | |
21386 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
21387 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
21388 | fi | |
21389 | ||
21390 | fi | |
21391 | fi | |
21392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
21393 | $as_echo "$ac_cv_header_stdc" >&6; } | |
21394 | if test $ac_cv_header_stdc = yes; then | |
21395 | ||
21396 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
21397 | ||
21398 | fi | |
21399 | ||
21400 | for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h fnmatch.h sys/utsname.h | |
21401 | do : | |
21402 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21403 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
21404 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
21405 | cat >>confdefs.h <<_ACEOF | |
21406 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21407 | _ACEOF | |
21408 | ||
21409 | fi | |
21410 | ||
21411 | done | |
21412 | ||
21413 | ||
21414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
21415 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
21416 | if ${ac_cv_c_const+:} false; then : | |
21417 | $as_echo_n "(cached) " >&6 | |
21418 | else | |
21419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21420 | /* end confdefs.h. */ | |
21421 | ||
21422 | int | |
21423 | main () | |
21424 | { | |
21425 | /* FIXME: Include the comments suggested by Paul. */ | |
21426 | #ifndef __cplusplus | |
21427 | /* Ultrix mips cc rejects this. */ | |
21428 | typedef int charset[2]; | |
21429 | const charset cs; | |
21430 | /* SunOS 4.1.1 cc rejects this. */ | |
21431 | char const *const *pcpcc; | |
21432 | char **ppc; | |
21433 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
21434 | struct point {int x, y;}; | |
21435 | static struct point const zero = {0,0}; | |
21436 | /* AIX XL C 1.02.0.0 rejects this. | |
21437 | It does not let you subtract one const X* pointer from another in | |
21438 | an arm of an if-expression whose if-part is not a constant | |
21439 | expression */ | |
21440 | const char *g = "string"; | |
21441 | pcpcc = &g + (g ? g-g : 0); | |
21442 | /* HPUX 7.0 cc rejects these. */ | |
21443 | ++pcpcc; | |
21444 | ppc = (char**) pcpcc; | |
21445 | pcpcc = (char const *const *) ppc; | |
21446 | { /* SCO 3.2v4 cc rejects this. */ | |
21447 | char *t; | |
21448 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
21449 | ||
21450 | *t++ = 0; | |
21451 | if (s) return 0; | |
21452 | } | |
21453 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
21454 | int x[] = {25, 17}; | |
21455 | const int *foo = &x[0]; | |
21456 | ++foo; | |
21457 | } | |
21458 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
21459 | typedef const int *iptr; | |
21460 | iptr p = 0; | |
21461 | ++p; | |
21462 | } | |
21463 | { /* AIX XL C 1.02.0.0 rejects this saying | |
21464 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
21465 | struct s { int j; const int *ap[3]; }; | |
21466 | struct s *b; b->j = 5; | |
21467 | } | |
21468 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
21469 | const int foo = 10; | |
21470 | if (!foo) return 0; | |
21471 | } | |
21472 | return !cs[0] && !zero.x; | |
21473 | #endif | |
21474 | ||
21475 | ; | |
21476 | return 0; | |
21477 | } | |
21478 | _ACEOF | |
21479 | if ac_fn_c_try_compile "$LINENO"; then : | |
21480 | ac_cv_c_const=yes | |
21481 | else | |
21482 | ac_cv_c_const=no | |
21483 | fi | |
21484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21485 | fi | |
21486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
21487 | $as_echo "$ac_cv_c_const" >&6; } | |
21488 | if test $ac_cv_c_const = no; then | |
21489 | ||
21490 | $as_echo "#define const /**/" >>confdefs.h | |
21491 | ||
21492 | fi | |
21493 | ||
21494 | ||
21495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 | |
21496 | $as_echo_n "checking for typeof syntax and keyword spelling... " >&6; } | |
21497 | if ${ac_cv_c_typeof+:} false; then : | |
21498 | $as_echo_n "(cached) " >&6 | |
21499 | else | |
21500 | ac_cv_c_typeof=no | |
21501 | for ac_kw in typeof __typeof__ no; do | |
21502 | test $ac_kw = no && break | |
21503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21504 | /* end confdefs.h. */ | |
21505 | ||
21506 | int | |
21507 | main () | |
21508 | { | |
21509 | ||
21510 | int value; | |
21511 | typedef struct { | |
21512 | char a [1 | |
21513 | + ! (($ac_kw (value)) | |
21514 | (($ac_kw (value)) 0 < ($ac_kw (value)) -1 | |
21515 | ? ($ac_kw (value)) - 1 | |
21516 | : ~ (~ ($ac_kw (value)) 0 | |
21517 | << sizeof ($ac_kw (value)))))]; } | |
21518 | ac__typeof_type_; | |
21519 | return | |
21520 | (! ((void) ((ac__typeof_type_ *) 0), 0)); | |
21521 | ||
21522 | ; | |
21523 | return 0; | |
21524 | } | |
21525 | _ACEOF | |
21526 | if ac_fn_c_try_compile "$LINENO"; then : | |
21527 | ac_cv_c_typeof=$ac_kw | |
21528 | fi | |
21529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21530 | test $ac_cv_c_typeof != no && break | |
21531 | done | |
21532 | fi | |
21533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 | |
21534 | $as_echo "$ac_cv_c_typeof" >&6; } | |
21535 | if test $ac_cv_c_typeof != no; then | |
21536 | ||
21537 | $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h | |
21538 | ||
21539 | if test $ac_cv_c_typeof != typeof; then | |
21540 | ||
21541 | cat >>confdefs.h <<_ACEOF | |
21542 | #define typeof $ac_cv_c_typeof | |
21543 | _ACEOF | |
21544 | ||
21545 | fi | |
21546 | fi | |
21547 | ||
21548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
21549 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
21550 | if ${ac_cv_c_bigendian+:} false; then : | |
21551 | $as_echo_n "(cached) " >&6 | |
21552 | else | |
21553 | ac_cv_c_bigendian=unknown | |
21554 | # See if we're dealing with a universal compiler. | |
21555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21556 | /* end confdefs.h. */ | |
21557 | #ifndef __APPLE_CC__ | |
21558 | not a universal capable compiler | |
21559 | #endif | |
21560 | typedef int dummy; | |
21561 | ||
21562 | _ACEOF | |
21563 | if ac_fn_c_try_compile "$LINENO"; then : | |
21564 | ||
21565 | # Check for potential -arch flags. It is not universal unless | |
21566 | # there are at least two -arch flags with different values. | |
21567 | ac_arch= | |
21568 | ac_prev= | |
21569 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
21570 | if test -n "$ac_prev"; then | |
21571 | case $ac_word in | |
21572 | i?86 | x86_64 | ppc | ppc64) | |
21573 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
21574 | ac_arch=$ac_word | |
21575 | else | |
21576 | ac_cv_c_bigendian=universal | |
21577 | break | |
21578 | fi | |
21579 | ;; | |
21580 | esac | |
21581 | ac_prev= | |
21582 | elif test "x$ac_word" = "x-arch"; then | |
21583 | ac_prev=arch | |
21584 | fi | |
21585 | done | |
21586 | fi | |
21587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21588 | if test $ac_cv_c_bigendian = unknown; then | |
21589 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21591 | /* end confdefs.h. */ | |
21592 | #include <sys/types.h> | |
21593 | #include <sys/param.h> | |
21594 | ||
21595 | int | |
21596 | main () | |
21597 | { | |
21598 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
21599 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
21600 | && LITTLE_ENDIAN) | |
21601 | bogus endian macros | |
21602 | #endif | |
21603 | ||
21604 | ; | |
21605 | return 0; | |
21606 | } | |
21607 | _ACEOF | |
21608 | if ac_fn_c_try_compile "$LINENO"; then : | |
21609 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21611 | /* end confdefs.h. */ | |
21612 | #include <sys/types.h> | |
21613 | #include <sys/param.h> | |
21614 | ||
21615 | int | |
21616 | main () | |
21617 | { | |
21618 | #if BYTE_ORDER != BIG_ENDIAN | |
21619 | not big endian | |
21620 | #endif | |
21621 | ||
21622 | ; | |
21623 | return 0; | |
21624 | } | |
21625 | _ACEOF | |
21626 | if ac_fn_c_try_compile "$LINENO"; then : | |
21627 | ac_cv_c_bigendian=yes | |
21628 | else | |
21629 | ac_cv_c_bigendian=no | |
21630 | fi | |
21631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21632 | fi | |
21633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21634 | fi | |
21635 | if test $ac_cv_c_bigendian = unknown; then | |
21636 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
21637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21638 | /* end confdefs.h. */ | |
21639 | #include <limits.h> | |
21640 | ||
21641 | int | |
21642 | main () | |
21643 | { | |
21644 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
21645 | bogus endian macros | |
21646 | #endif | |
21647 | ||
21648 | ; | |
21649 | return 0; | |
21650 | } | |
21651 | _ACEOF | |
21652 | if ac_fn_c_try_compile "$LINENO"; then : | |
21653 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
21654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21655 | /* end confdefs.h. */ | |
21656 | #include <limits.h> | |
21657 | ||
21658 | int | |
21659 | main () | |
21660 | { | |
21661 | #ifndef _BIG_ENDIAN | |
21662 | not big endian | |
21663 | #endif | |
21664 | ||
21665 | ; | |
21666 | return 0; | |
21667 | } | |
21668 | _ACEOF | |
21669 | if ac_fn_c_try_compile "$LINENO"; then : | |
21670 | ac_cv_c_bigendian=yes | |
21671 | else | |
21672 | ac_cv_c_bigendian=no | |
21673 | fi | |
21674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21675 | fi | |
21676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21677 | fi | |
21678 | if test $ac_cv_c_bigendian = unknown; then | |
21679 | # Compile a test program. | |
21680 | if test "$cross_compiling" = yes; then : | |
21681 | # Try to guess by grepping values from an object file. | |
21682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21683 | /* end confdefs.h. */ | |
21684 | short int ascii_mm[] = | |
21685 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
21686 | short int ascii_ii[] = | |
21687 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
21688 | int use_ascii (int i) { | |
21689 | return ascii_mm[i] + ascii_ii[i]; | |
21690 | } | |
21691 | short int ebcdic_ii[] = | |
21692 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
21693 | short int ebcdic_mm[] = | |
21694 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
21695 | int use_ebcdic (int i) { | |
21696 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
21697 | } | |
21698 | extern int foo; | |
21699 | ||
21700 | int | |
21701 | main () | |
21702 | { | |
21703 | return use_ascii (foo) == use_ebcdic (foo); | |
21704 | ; | |
21705 | return 0; | |
21706 | } | |
21707 | _ACEOF | |
21708 | if ac_fn_c_try_compile "$LINENO"; then : | |
21709 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
21710 | ac_cv_c_bigendian=yes | |
21711 | fi | |
21712 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
21713 | if test "$ac_cv_c_bigendian" = unknown; then | |
21714 | ac_cv_c_bigendian=no | |
21715 | else | |
21716 | # finding both strings is unlikely to happen, but who knows? | |
21717 | ac_cv_c_bigendian=unknown | |
21718 | fi | |
21719 | fi | |
21720 | fi | |
21721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21722 | else | |
21723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21724 | /* end confdefs.h. */ | |
21725 | $ac_includes_default | |
21726 | int | |
21727 | main () | |
21728 | { | |
21729 | ||
21730 | /* Are we little or big endian? From Harbison&Steele. */ | |
21731 | union | |
21732 | { | |
21733 | long int l; | |
21734 | char c[sizeof (long int)]; | |
21735 | } u; | |
21736 | u.l = 1; | |
21737 | return u.c[sizeof (long int) - 1] == 1; | |
21738 | ||
21739 | ; | |
21740 | return 0; | |
21741 | } | |
21742 | _ACEOF | |
21743 | if ac_fn_c_try_run "$LINENO"; then : | |
21744 | ac_cv_c_bigendian=no | |
21745 | else | |
21746 | ac_cv_c_bigendian=yes | |
21747 | fi | |
21748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
21749 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
21750 | fi | |
21751 | ||
21752 | fi | |
21753 | fi | |
21754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
21755 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
21756 | case $ac_cv_c_bigendian in #( | |
21757 | yes) | |
21758 | ENDIAN="X_BIG_ENDIAN";; #( | |
21759 | no) | |
21760 | ENDIAN="X_LITTLE_ENDIAN" ;; #( | |
21761 | universal) | |
21762 | ||
21763 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
21764 | ||
21765 | ;; #( | |
21766 | *) | |
21767 | as_fn_error $? "unknown endianness | |
21768 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
21769 | esac | |
21770 | ||
21771 | ||
21772 | # The cast to long int works around a bug in the HP C Compiler | |
21773 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21774 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21775 | # This bug is HP SR number 8606223364. | |
21776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | |
21777 | $as_echo_n "checking size of unsigned long... " >&6; } | |
21778 | if ${ac_cv_sizeof_unsigned_long+:} false; then : | |
21779 | $as_echo_n "(cached) " >&6 | |
21780 | else | |
21781 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : | |
21782 | ||
21783 | else | |
21784 | if test "$ac_cv_type_unsigned_long" = yes; then | |
21785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
21786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21787 | as_fn_error 77 "cannot compute sizeof (unsigned long) | |
21788 | See \`config.log' for more details" "$LINENO" 5; } | |
21789 | else | |
21790 | ac_cv_sizeof_unsigned_long=0 | |
21791 | fi | |
21792 | fi | |
21793 | ||
21794 | fi | |
21795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 | |
21796 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | |
21797 | ||
21798 | ||
21799 | ||
21800 | cat >>confdefs.h <<_ACEOF | |
21801 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | |
21802 | _ACEOF | |
21803 | ||
21804 | ||
21805 | if test "$ac_cv_sizeof_unsigned_long" = 8; then | |
21806 | ||
21807 | $as_echo "#define _XSERVER64 1" >>confdefs.h | |
21808 | ||
21809 | fi | |
21810 | ||
21811 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
21812 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
21813 | ||
21814 | else | |
21815 | ||
21816 | cat >>confdefs.h <<_ACEOF | |
21817 | #define pid_t int | |
21818 | _ACEOF | |
21819 | ||
21820 | fi | |
21821 | ||
21822 | ||
21823 | # Checks for headers/macros for byte swapping | |
21824 | # Known variants: | |
21825 | # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) | |
21826 | # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) | |
21827 | # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) | |
21828 | # and a fallback to local macros if none of the above are found | |
21829 | ||
21830 | # if <byteswap.h> is found, assume it's the correct version | |
21831 | for ac_header in byteswap.h | |
21832 | do : | |
21833 | ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" | |
21834 | if test "x$ac_cv_header_byteswap_h" = xyes; then : | |
21835 | cat >>confdefs.h <<_ACEOF | |
21836 | #define HAVE_BYTESWAP_H 1 | |
21837 | _ACEOF | |
21838 | ||
21839 | fi | |
21840 | ||
21841 | done | |
21842 | ||
21843 | ||
21844 | # if <sys/endian.h> is found, have to check which version | |
21845 | ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" | |
21846 | if test "x$ac_cv_header_sys_endian_h" = xyes; then : | |
21847 | HAVE_SYS_ENDIAN_H="yes" | |
21848 | else | |
21849 | HAVE_SYS_ENDIAN_H="no" | |
21850 | fi | |
21851 | ||
21852 | ||
21853 | ||
21854 | if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then | |
21855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 | |
21856 | $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } | |
21857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21858 | /* end confdefs.h. */ | |
21859 | ||
21860 | #include <sys/types.h> | |
21861 | #include <sys/endian.h> | |
21862 | ||
21863 | int | |
21864 | main () | |
21865 | { | |
21866 | ||
21867 | int a = 1, b; | |
21868 | b = __swap16(a); | |
21869 | ||
21870 | ; | |
21871 | return 0; | |
21872 | } | |
21873 | ||
21874 | _ACEOF | |
21875 | if ac_fn_c_try_link "$LINENO"; then : | |
21876 | SYS_ENDIAN__SWAP='yes' | |
21877 | else | |
21878 | SYS_ENDIAN__SWAP='no' | |
21879 | fi | |
21880 | rm -f core conftest.err conftest.$ac_objext \ | |
21881 | conftest$ac_exeext conftest.$ac_ext | |
21882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 | |
21883 | $as_echo "$SYS_ENDIAN__SWAP" >&6; } | |
21884 | ||
21885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 | |
21886 | $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } | |
21887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21888 | /* end confdefs.h. */ | |
21889 | ||
21890 | #include <sys/types.h> | |
21891 | #include <sys/endian.h> | |
21892 | ||
21893 | int | |
21894 | main () | |
21895 | { | |
21896 | ||
21897 | int a = 1, b; | |
21898 | b = bswap16(a); | |
21899 | ||
21900 | ; | |
21901 | return 0; | |
21902 | } | |
21903 | ||
21904 | _ACEOF | |
21905 | if ac_fn_c_try_link "$LINENO"; then : | |
21906 | SYS_ENDIAN_BSWAP='yes' | |
21907 | else | |
21908 | SYS_ENDIAN_BSWAP='no' | |
21909 | fi | |
21910 | rm -f core conftest.err conftest.$ac_objext \ | |
21911 | conftest$ac_exeext conftest.$ac_ext | |
21912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 | |
21913 | $as_echo "$SYS_ENDIAN_BSWAP" >&6; } | |
21914 | ||
21915 | if test "$SYS_ENDIAN_BSWAP" = "yes" ; then | |
21916 | USE_SYS_ENDIAN_H=yes | |
21917 | BSWAP=bswap | |
21918 | else | |
21919 | if test "$SYS_ENDIAN__SWAP" = "yes" ; then | |
21920 | USE_SYS_ENDIAN_H=yes | |
21921 | BSWAP=__swap | |
21922 | else | |
21923 | USE_SYS_ENDIAN_H=no | |
21924 | fi | |
21925 | fi | |
21926 | ||
21927 | if test "$USE_SYS_ENDIAN_H" = "yes" ; then | |
21928 | ||
21929 | $as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h | |
21930 | ||
21931 | ||
21932 | cat >>confdefs.h <<_ACEOF | |
21933 | #define bswap_16 ${BSWAP}16 | |
21934 | _ACEOF | |
21935 | ||
21936 | ||
21937 | cat >>confdefs.h <<_ACEOF | |
21938 | #define bswap_32 ${BSWAP}32 | |
21939 | _ACEOF | |
21940 | ||
21941 | ||
21942 | cat >>confdefs.h <<_ACEOF | |
21943 | #define bswap_64 ${BSWAP}64 | |
21944 | _ACEOF | |
21945 | ||
21946 | fi | |
21947 | fi | |
21948 | ||
21949 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
21950 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
21951 | ||
21952 | else | |
21953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
21954 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
21955 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
21956 | $as_echo_n "(cached) " >&6 | |
21957 | else | |
21958 | ac_check_lib_save_LIBS=$LIBS | |
21959 | LIBS="-ldl $LIBS" | |
21960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21961 | /* end confdefs.h. */ | |
21962 | ||
21963 | /* Override any GCC internal prototype to avoid an error. | |
21964 | Use char because int might match the return type of a GCC | |
21965 | builtin and then its argument prototype would still apply. */ | |
21966 | #ifdef __cplusplus | |
21967 | extern "C" | |
21968 | #endif | |
21969 | char dlopen (); | |
21970 | int | |
21971 | main () | |
21972 | { | |
21973 | return dlopen (); | |
21974 | ; | |
21975 | return 0; | |
21976 | } | |
21977 | _ACEOF | |
21978 | if ac_fn_c_try_link "$LINENO"; then : | |
21979 | ac_cv_lib_dl_dlopen=yes | |
21980 | else | |
21981 | ac_cv_lib_dl_dlopen=no | |
21982 | fi | |
21983 | rm -f core conftest.err conftest.$ac_objext \ | |
21984 | conftest$ac_exeext conftest.$ac_ext | |
21985 | LIBS=$ac_check_lib_save_LIBS | |
21986 | fi | |
21987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
21988 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
21989 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
21990 | DLOPEN_LIBS="-ldl" | |
21991 | fi | |
21992 | ||
21993 | fi | |
21994 | ||
21995 | ||
21996 | ||
21997 | for ac_func in backtrace ffs geteuid getuid issetugid getresuid \ | |
21998 | getdtablesize getifaddrs getpeereid getpeerucred getzoneid \ | |
21999 | mmap seteuid shmctl64 strncasecmp vasprintf vsnprintf walkcontext | |
22000 | do : | |
22001 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22002 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22003 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
22004 | cat >>confdefs.h <<_ACEOF | |
22005 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22006 | _ACEOF | |
22007 | ||
22008 | fi | |
22009 | done | |
22010 | ||
22011 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | |
22012 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | |
22013 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h | |
22014 | ||
22015 | else | |
22016 | case " $LIBOBJS " in | |
22017 | *" strcasecmp.$ac_objext "* ) ;; | |
22018 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" | |
22019 | ;; | |
22020 | esac | |
22021 | ||
22022 | fi | |
22023 | ||
22024 | ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" | |
22025 | if test "x$ac_cv_func_strcasestr" = xyes; then : | |
22026 | $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h | |
22027 | ||
22028 | else | |
22029 | case " $LIBOBJS " in | |
22030 | *" strcasestr.$ac_objext "* ) ;; | |
22031 | *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" | |
22032 | ;; | |
22033 | esac | |
22034 | ||
22035 | fi | |
22036 | ||
22037 | ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" | |
22038 | if test "x$ac_cv_func_strlcat" = xyes; then : | |
22039 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h | |
22040 | ||
22041 | else | |
22042 | case " $LIBOBJS " in | |
22043 | *" strlcat.$ac_objext "* ) ;; | |
22044 | *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" | |
22045 | ;; | |
22046 | esac | |
22047 | ||
22048 | fi | |
22049 | ||
22050 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" | |
22051 | if test "x$ac_cv_func_strlcpy" = xyes; then : | |
22052 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h | |
22053 | ||
22054 | else | |
22055 | case " $LIBOBJS " in | |
22056 | *" strlcpy.$ac_objext "* ) ;; | |
22057 | *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" | |
22058 | ;; | |
22059 | esac | |
22060 | ||
22061 | fi | |
22062 | ||
22063 | ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" | |
22064 | if test "x$ac_cv_func_strndup" = xyes; then : | |
22065 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
22066 | ||
22067 | else | |
22068 | case " $LIBOBJS " in | |
22069 | *" strndup.$ac_objext "* ) ;; | |
22070 | *) LIBOBJS="$LIBOBJS strndup.$ac_objext" | |
22071 | ;; | |
22072 | esac | |
22073 | ||
22074 | fi | |
22075 | ||
22076 | ||
22077 | ||
22078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 | |
22079 | $as_echo_n "checking for sqrt in -lm... " >&6; } | |
22080 | if ${ac_cv_lib_m_sqrt+:} false; then : | |
22081 | $as_echo_n "(cached) " >&6 | |
22082 | else | |
22083 | ac_check_lib_save_LIBS=$LIBS | |
22084 | LIBS="-lm $LIBS" | |
22085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22086 | /* end confdefs.h. */ | |
22087 | ||
22088 | /* Override any GCC internal prototype to avoid an error. | |
22089 | Use char because int might match the return type of a GCC | |
22090 | builtin and then its argument prototype would still apply. */ | |
22091 | #ifdef __cplusplus | |
22092 | extern "C" | |
22093 | #endif | |
22094 | char sqrt (); | |
22095 | int | |
22096 | main () | |
22097 | { | |
22098 | return sqrt (); | |
22099 | ; | |
22100 | return 0; | |
22101 | } | |
22102 | _ACEOF | |
22103 | if ac_fn_c_try_link "$LINENO"; then : | |
22104 | ac_cv_lib_m_sqrt=yes | |
22105 | else | |
22106 | ac_cv_lib_m_sqrt=no | |
22107 | fi | |
22108 | rm -f core conftest.err conftest.$ac_objext \ | |
22109 | conftest$ac_exeext conftest.$ac_ext | |
22110 | LIBS=$ac_check_lib_save_LIBS | |
22111 | fi | |
22112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 | |
22113 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | |
22114 | if test "x$ac_cv_lib_m_sqrt" = xyes; then : | |
22115 | cat >>confdefs.h <<_ACEOF | |
22116 | #define HAVE_LIBM 1 | |
22117 | _ACEOF | |
22118 | ||
22119 | LIBS="-lm $LIBS" | |
22120 | ||
22121 | fi | |
22122 | ||
22123 | for ac_func in cbrt | |
22124 | do : | |
22125 | ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" | |
22126 | if test "x$ac_cv_func_cbrt" = xyes; then : | |
22127 | cat >>confdefs.h <<_ACEOF | |
22128 | #define HAVE_CBRT 1 | |
22129 | _ACEOF | |
22130 | ||
22131 | fi | |
22132 | done | |
22133 | ||
22134 | ||
22135 | for ac_header in ndbm.h dbm.h rpcsvc/dbm.h | |
22136 | do : | |
22137 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22138 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22139 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
22140 | cat >>confdefs.h <<_ACEOF | |
22141 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22142 | _ACEOF | |
22143 | ||
22144 | fi | |
22145 | ||
22146 | done | |
22147 | ||
22148 | ||
22149 | for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h | |
22150 | do : | |
22151 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22152 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22153 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
22154 | cat >>confdefs.h <<_ACEOF | |
22155 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22156 | _ACEOF | |
22157 | AGP=yes | |
22158 | fi | |
22159 | ||
22160 | done | |
22161 | ||
22162 | if test "x$AGP" = xyes; then | |
22163 | AGP_TRUE= | |
22164 | AGP_FALSE='#' | |
22165 | else | |
22166 | AGP_TRUE='#' | |
22167 | AGP_FALSE= | |
22168 | fi | |
22169 | ||
22170 | ||
22171 | for ac_header in linux/fb.h | |
22172 | do : | |
22173 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" | |
22174 | if test "x$ac_cv_header_linux_fb_h" = xyes; then : | |
22175 | cat >>confdefs.h <<_ACEOF | |
22176 | #define HAVE_LINUX_FB_H 1 | |
22177 | _ACEOF | |
22178 | FBDEV=yes | |
22179 | fi | |
22180 | ||
22181 | done | |
22182 | ||
22183 | if test "x$FBDEV" = xyes; then | |
22184 | FBDEVHW_TRUE= | |
22185 | FBDEVHW_FALSE='#' | |
22186 | else | |
22187 | FBDEVHW_TRUE='#' | |
22188 | FBDEVHW_FALSE= | |
22189 | fi | |
22190 | ||
22191 | ||
22192 | for ac_header in asm/mtrr.h | |
22193 | do : | |
22194 | ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default" | |
22195 | if test "x$ac_cv_header_asm_mtrr_h" = xyes; then : | |
22196 | cat >>confdefs.h <<_ACEOF | |
22197 | #define HAVE_ASM_MTRR_H 1 | |
22198 | _ACEOF | |
22199 | ac_cv_asm_mtrr_h=yes | |
22200 | fi | |
22201 | ||
22202 | done | |
22203 | ||
22204 | if test "x$ac_cv_asm_mtrr_h" = xyes; then | |
22205 | HAVE_MTRR=yes | |
22206 | fi | |
22207 | ||
22208 | for ac_header in sys/memrange.h | |
22209 | do : | |
22210 | ac_fn_c_check_header_mongrel "$LINENO" "sys/memrange.h" "ac_cv_header_sys_memrange_h" "$ac_includes_default" | |
22211 | if test "x$ac_cv_header_sys_memrange_h" = xyes; then : | |
22212 | cat >>confdefs.h <<_ACEOF | |
22213 | #define HAVE_SYS_MEMRANGE_H 1 | |
22214 | _ACEOF | |
22215 | ac_cv_memrange_h=yes | |
22216 | fi | |
22217 | ||
22218 | done | |
22219 | ||
22220 | if test "x$ac_cv_memrange_h" = xyes; then | |
22221 | HAVE_MTRR=yes | |
22222 | fi | |
22223 | ||
22224 | if test "x$HAVE_MTRR" = xyes; then | |
22225 | ||
22226 | $as_echo "#define HAS_MTRR_SUPPORT 1" >>confdefs.h | |
22227 | ||
22228 | fi | |
22229 | ||
22230 | for ac_header in machine/mtrr.h | |
22231 | do : | |
22232 | ac_fn_c_check_header_mongrel "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "$ac_includes_default" | |
22233 | if test "x$ac_cv_header_machine_mtrr_h" = xyes; then : | |
22234 | cat >>confdefs.h <<_ACEOF | |
22235 | #define HAVE_MACHINE_MTRR_H 1 | |
22236 | _ACEOF | |
22237 | ac_cv_machine_mtrr_h=yes | |
22238 | fi | |
22239 | ||
22240 | done | |
22241 | ||
22242 | if test "x$ac_cv_machine_mtrr_h" = xyes; then | |
22243 | ||
22244 | $as_echo "#define HAS_MTRR_BUILTIN 1" >>confdefs.h | |
22245 | ||
22246 | fi | |
22247 | ||
22248 | for ac_header in sys/linker.h | |
22249 | do : | |
22250 | ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> | |
22251 | " | |
22252 | if test "x$ac_cv_header_sys_linker_h" = xyes; then : | |
22253 | cat >>confdefs.h <<_ACEOF | |
22254 | #define HAVE_SYS_LINKER_H 1 | |
22255 | _ACEOF | |
22256 | ac_cv_sys_linker_h=yes | |
22257 | else | |
22258 | ac_cv_sys_linker_h=no | |
22259 | fi | |
22260 | ||
22261 | done | |
22262 | ||
22263 | if test "x$ac_cv_sys_linker_h" = xyes; then | |
22264 | FREEBSD_KLDLOAD_TRUE= | |
22265 | FREEBSD_KLDLOAD_FALSE='#' | |
22266 | else | |
22267 | FREEBSD_KLDLOAD_TRUE='#' | |
22268 | FREEBSD_KLDLOAD_FALSE= | |
22269 | fi | |
22270 | ||
22271 | ||
22272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 | |
22273 | $as_echo_n "checking for SYSV IPC... " >&6; } | |
22274 | if ${ac_cv_sysv_ipc+:} false; then : | |
22275 | $as_echo_n "(cached) " >&6 | |
22276 | else | |
22277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22278 | /* end confdefs.h. */ | |
22279 | ||
22280 | #include <sys/types.h> | |
22281 | #include <sys/ipc.h> | |
22282 | #include <sys/shm.h> | |
22283 | #include <sys/stat.h> | |
22284 | ||
22285 | int | |
22286 | main () | |
22287 | { | |
22288 | ||
22289 | { | |
22290 | int id; | |
22291 | id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); | |
22292 | if (id < 0) return -1; | |
22293 | return shmctl(id, IPC_RMID, 0); | |
22294 | } | |
22295 | ; | |
22296 | return 0; | |
22297 | } | |
22298 | _ACEOF | |
22299 | if ac_fn_c_try_link "$LINENO"; then : | |
22300 | ac_cv_sysv_ipc=yes | |
22301 | else | |
22302 | ac_cv_sysv_ipc=no | |
22303 | fi | |
22304 | rm -f core conftest.err conftest.$ac_objext \ | |
22305 | conftest$ac_exeext conftest.$ac_ext | |
22306 | fi | |
22307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 | |
22308 | $as_echo "$ac_cv_sysv_ipc" >&6; } | |
22309 | if test "x$ac_cv_sysv_ipc" = xyes; then | |
22310 | ||
22311 | $as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h | |
22312 | ||
22313 | fi | |
22314 | ||
22315 | if test -c /dev/xf86 ; then | |
22316 | ||
22317 | $as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h | |
22318 | ||
22319 | fi | |
22320 | ||
22321 | ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default" | |
22322 | if test "x$ac_cv_header_machine_apmvar_h" = xyes; then : | |
22323 | ||
22324 | ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" | |
22325 | if test "x$ac_cv_header_sys_event_h" = xyes; then : | |
22326 | ac_cv_BSD_KQUEUE_APM=yes | |
22327 | else | |
22328 | ac_cv_BSD_APM=yes | |
22329 | fi | |
22330 | ||
22331 | ||
22332 | fi | |
22333 | ||
22334 | ||
22335 | ||
22336 | if test "x$ac_cv_BSD_APM" = xyes; then | |
22337 | BSD_APM_TRUE= | |
22338 | BSD_APM_FALSE='#' | |
22339 | else | |
22340 | BSD_APM_TRUE='#' | |
22341 | BSD_APM_FALSE= | |
22342 | fi | |
22343 | ||
22344 | if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then | |
22345 | BSD_KQUEUE_APM_TRUE= | |
22346 | BSD_KQUEUE_APM_FALSE='#' | |
22347 | else | |
22348 | BSD_KQUEUE_APM_TRUE='#' | |
22349 | BSD_KQUEUE_APM_FALSE= | |
22350 | fi | |
22351 | ||
22352 | ||
22353 | ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" | |
22354 | if test "x$ac_cv_header_execinfo_h" = xyes; then : | |
22355 | ||
22356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 | |
22357 | $as_echo_n "checking for backtrace in -lc... " >&6; } | |
22358 | if ${ac_cv_lib_c_backtrace+:} false; then : | |
22359 | $as_echo_n "(cached) " >&6 | |
22360 | else | |
22361 | ac_check_lib_save_LIBS=$LIBS | |
22362 | LIBS="-lc $LIBS" | |
22363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22364 | /* end confdefs.h. */ | |
22365 | ||
22366 | /* Override any GCC internal prototype to avoid an error. | |
22367 | Use char because int might match the return type of a GCC | |
22368 | builtin and then its argument prototype would still apply. */ | |
22369 | #ifdef __cplusplus | |
22370 | extern "C" | |
22371 | #endif | |
22372 | char backtrace (); | |
22373 | int | |
22374 | main () | |
22375 | { | |
22376 | return backtrace (); | |
22377 | ; | |
22378 | return 0; | |
22379 | } | |
22380 | _ACEOF | |
22381 | if ac_fn_c_try_link "$LINENO"; then : | |
22382 | ac_cv_lib_c_backtrace=yes | |
22383 | else | |
22384 | ac_cv_lib_c_backtrace=no | |
22385 | fi | |
22386 | rm -f core conftest.err conftest.$ac_objext \ | |
22387 | conftest$ac_exeext conftest.$ac_ext | |
22388 | LIBS=$ac_check_lib_save_LIBS | |
22389 | fi | |
22390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 | |
22391 | $as_echo "$ac_cv_lib_c_backtrace" >&6; } | |
22392 | if test "x$ac_cv_lib_c_backtrace" = xyes; then : | |
22393 | ||
22394 | ||
22395 | $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h | |
22396 | ||
22397 | ||
22398 | $as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h | |
22399 | ||
22400 | ||
22401 | fi | |
22402 | ||
22403 | ||
22404 | fi | |
22405 | ||
22406 | ||
22407 | ||
22408 | DEFAULT_INT10="x86emu" | |
22409 | ||
22410 | ||
22411 | case $host_cpu in | |
22412 | alpha*) | |
22413 | ALPHA_VIDEO=yes | |
22414 | case $host_os in | |
22415 | *freebsd*) SYS_LIBS=-lio ;; | |
22416 | *netbsd*) | |
22417 | $as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h | |
22418 | ;; | |
22419 | esac | |
22420 | GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" | |
22421 | ;; | |
22422 | arm*) | |
22423 | ARM_VIDEO=yes | |
22424 | ;; | |
22425 | i*86) | |
22426 | I386_VIDEO=yes | |
22427 | case $host_os in | |
22428 | *freebsd*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h | |
22429 | ;; | |
22430 | *dragonfly*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h | |
22431 | ;; | |
22432 | *netbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h | |
22433 | ||
22434 | SYS_LIBS=-li386 | |
22435 | ;; | |
22436 | *openbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h | |
22437 | ||
22438 | SYS_LIBS=-li386 | |
22439 | ;; | |
22440 | esac | |
22441 | ;; | |
22442 | powerpc*) | |
22443 | PPC_VIDEO=yes | |
22444 | case $host_os in | |
22445 | *freebsd*) DEFAULT_INT10=stub ;; | |
22446 | esac | |
22447 | ;; | |
22448 | sparc*) | |
22449 | SPARC64_VIDEO=yes | |
22450 | BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" | |
22451 | GLX_ARCH_DEFINES="-D__GLX_ALIGN64" | |
22452 | ;; | |
22453 | x86_64*|amd64*) | |
22454 | I386_VIDEO=yes | |
22455 | case $host_os in | |
22456 | *freebsd*) | |
22457 | $as_echo "#define USE_DEV_IO 1" >>confdefs.h | |
22458 | ;; | |
22459 | *dragonfly*) | |
22460 | $as_echo "#define USE_DEV_IO 1" >>confdefs.h | |
22461 | ;; | |
22462 | *netbsd*) | |
22463 | $as_echo "#define USE_I386_IOPL 1" >>confdefs.h | |
22464 | ||
22465 | SYS_LIBS=-lx86_64 | |
22466 | ;; | |
22467 | *openbsd*) | |
22468 | $as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h | |
22469 | ||
22470 | SYS_LIBS=-lamd64 | |
22471 | ;; | |
22472 | esac | |
22473 | GLX_ARCH_DEFINES="-D__GLX_ALIGN64" | |
22474 | ;; | |
22475 | ia64*) | |
22476 | GLX_ARCH_DEFINES="-D__GLX_ALIGN64" | |
22477 | ;; | |
22478 | s390*) | |
22479 | GLX_ARCH_DEFINES="-D__GLX_ALIGN64" | |
22480 | ;; | |
22481 | esac | |
22482 | ||
22483 | ||
22484 | if test "x$ALPHA_VIDEO" = xyes; then | |
22485 | ALPHA_VIDEO_TRUE= | |
22486 | ALPHA_VIDEO_FALSE='#' | |
22487 | else | |
22488 | ALPHA_VIDEO_TRUE='#' | |
22489 | ALPHA_VIDEO_FALSE= | |
22490 | fi | |
22491 | ||
22492 | if test "x$ARM_VIDEO" = xyes; then | |
22493 | ARM_VIDEO_TRUE= | |
22494 | ARM_VIDEO_FALSE='#' | |
22495 | else | |
22496 | ARM_VIDEO_TRUE='#' | |
22497 | ARM_VIDEO_FALSE= | |
22498 | fi | |
22499 | ||
22500 | if test "x$I386_VIDEO" = xyes; then | |
22501 | I386_VIDEO_TRUE= | |
22502 | I386_VIDEO_FALSE='#' | |
22503 | else | |
22504 | I386_VIDEO_TRUE='#' | |
22505 | I386_VIDEO_FALSE= | |
22506 | fi | |
22507 | ||
22508 | if test "x$PPC_VIDEO" = xyes; then | |
22509 | PPC_VIDEO_TRUE= | |
22510 | PPC_VIDEO_FALSE='#' | |
22511 | else | |
22512 | PPC_VIDEO_TRUE='#' | |
22513 | PPC_VIDEO_FALSE= | |
22514 | fi | |
22515 | ||
22516 | if test "x$SPARC64_VIDEO" = xyes; then | |
22517 | SPARC64_VIDEO_TRUE= | |
22518 | SPARC64_VIDEO_FALSE='#' | |
22519 | else | |
22520 | SPARC64_VIDEO_TRUE='#' | |
22521 | SPARC64_VIDEO_FALSE= | |
22522 | fi | |
22523 | ||
22524 | ||
22525 | DRI=no | |
22526 | USE_SIGIO_BY_DEFAULT="yes" | |
22527 | case $host_os in | |
22528 | *freebsd* | *dragonfly*) | |
22529 | case $host_os in | |
22530 | kfreebsd*-gnu) ;; | |
22531 | *) | |
22532 | $as_echo "#define CSRG_BASED 1" >>confdefs.h | |
22533 | ;; | |
22534 | esac | |
22535 | ||
22536 | $as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h | |
22537 | ||
22538 | ||
22539 | $as_echo "#define PCVT_SUPPORT 1" >>confdefs.h | |
22540 | ||
22541 | ||
22542 | $as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h | |
22543 | ||
22544 | DRI=yes | |
22545 | ;; | |
22546 | *netbsd*) | |
22547 | ||
22548 | $as_echo "#define CSRG_BASED 1" >>confdefs.h | |
22549 | ||
22550 | ||
22551 | $as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h | |
22552 | ||
22553 | ||
22554 | $as_echo "#define PCVT_SUPPORT 1" >>confdefs.h | |
22555 | ||
22556 | ||
22557 | $as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h | |
22558 | ||
22559 | DRI=yes | |
22560 | ;; | |
22561 | *openbsd*) | |
22562 | ||
22563 | $as_echo "#define CSRG_BASED 1" >>confdefs.h | |
22564 | ||
22565 | ||
22566 | $as_echo "#define PCVT_SUPPORT 1" >>confdefs.h | |
22567 | ||
22568 | ||
22569 | $as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h | |
22570 | ||
22571 | ;; | |
22572 | *linux*) | |
22573 | DRI=yes | |
22574 | ;; | |
22575 | *solaris*) | |
22576 | if test -n "$PKG_CONFIG" && \ | |
22577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 | |
22578 | ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 | |
22579 | ac_status=$? | |
22580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22581 | test $ac_status = 0; }; then | |
22582 | DRI=yes | |
22583 | else | |
22584 | DRI=no | |
22585 | fi | |
22586 | # Disable use of SIGIO by default until some system bugs are | |
22587 | # fixed - see Sun/OpenSolaris bug id 6879897 | |
22588 | USE_SIGIO_BY_DEFAULT="no" | |
22589 | ;; | |
22590 | darwin*) | |
22591 | ||
22592 | $as_echo "#define CSRG_BASED 1" >>confdefs.h | |
22593 | ||
22594 | ;; | |
22595 | cygwin*|mingw*) | |
22596 | CFLAGS="$CFLAGS -DFD_SETSIZE=256" | |
22597 | ;; | |
22598 | esac | |
22599 | ||
22600 | PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` | |
22601 | PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1` | |
22602 | if test "x$PVS" = "x"; then | |
22603 | PVS="0" | |
22604 | fi | |
22605 | ||
22606 | VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)" | |
22607 | VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" | |
22608 | ||
22609 | VENDOR_NAME="The X.Org Foundation" | |
22610 | VENDOR_NAME_SHORT="X.Org" | |
22611 | VENDOR_WEB="http://wiki.x.org" | |
22612 | ||
22613 | ||
22614 | ||
22615 | # Check whether --enable-werror was given. | |
22616 | if test "${enable_werror+set}" = set; then : | |
22617 | enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 | |
22618 | fi | |
22619 | ||
22620 | ||
22621 | # Check whether --enable-debug was given. | |
22622 | if test "${enable_debug+set}" = set; then : | |
22623 | enableval=$enable_debug; DEBUGGING=$enableval | |
22624 | else | |
22625 | DEBUGGING=no | |
22626 | fi | |
22627 | ||
22628 | # Check whether --enable-use-sigio-by-default was given. | |
22629 | if test "${enable_use_sigio_by_default+set}" = set; then : | |
22630 | enableval=$enable_use_sigio_by_default; USE_SIGIO_BY_DEFAULT=$enableval | |
22631 | fi | |
22632 | ||
22633 | ||
22634 | # Check whether --with-int10 was given. | |
22635 | if test "${with_int10+set}" = set; then : | |
22636 | withval=$with_int10; INT10="$withval" | |
22637 | else | |
22638 | INT10="$DEFAULT_INT10" | |
22639 | fi | |
22640 | ||
22641 | ||
22642 | # Check whether --with-vendor-name was given. | |
22643 | if test "${with_vendor_name+set}" = set; then : | |
22644 | withval=$with_vendor_name; VENDOR_NAME="$withval" | |
22645 | fi | |
22646 | ||
22647 | ||
22648 | # Check whether --with-vendor-name-short was given. | |
22649 | if test "${with_vendor_name_short+set}" = set; then : | |
22650 | withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" | |
22651 | fi | |
22652 | ||
22653 | ||
22654 | # Check whether --with-vendor-web was given. | |
22655 | if test "${with_vendor_web+set}" = set; then : | |
22656 | withval=$with_vendor_web; VENDOR_WEB="$withval" | |
22657 | fi | |
22658 | ||
22659 | ||
22660 | # Check whether --with-module-dir was given. | |
22661 | if test "${with_module_dir+set}" = set; then : | |
22662 | withval=$with_module_dir; moduledir="$withval" | |
22663 | else | |
22664 | moduledir="${libdir}/xorg/modules" | |
22665 | fi | |
22666 | ||
22667 | ||
22668 | # Check whether --with-log-dir was given. | |
22669 | if test "${with_log_dir+set}" = set; then : | |
22670 | withval=$with_log_dir; logdir="$withval" | |
22671 | else | |
22672 | logdir="$localstatedir/log" | |
22673 | fi | |
22674 | ||
22675 | ||
22676 | # Check whether --with-builder-addr was given. | |
22677 | if test "${with_builder_addr+set}" = set; then : | |
22678 | withval=$with_builder_addr; BUILDERADDR="$withval" | |
22679 | else | |
22680 | BUILDERADDR="xorg@lists.freedesktop.org" | |
22681 | fi | |
22682 | ||
22683 | ||
22684 | # Check whether --with-os-name was given. | |
22685 | if test "${with_os_name+set}" = set; then : | |
22686 | withval=$with_os_name; OSNAME="$withval" | |
22687 | else | |
22688 | OSNAME=`uname -srm` | |
22689 | fi | |
22690 | ||
22691 | ||
22692 | # Check whether --with-os-vendor was given. | |
22693 | if test "${with_os_vendor+set}" = set; then : | |
22694 | withval=$with_os_vendor; OSVENDOR="$withval" | |
22695 | else | |
22696 | OSVENDOR="" | |
22697 | fi | |
22698 | ||
22699 | ||
22700 | # Check whether --with-builderstring was given. | |
22701 | if test "${with_builderstring+set}" = set; then : | |
22702 | withval=$with_builderstring; BUILDERSTRING="$withval" | |
22703 | ||
22704 | fi | |
22705 | ||
22706 | ||
22707 | ||
22708 | ||
22709 | ||
22710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 | |
22711 | $as_echo_n "checking for root directory for font files... " >&6; } | |
22712 | ||
22713 | # Check whether --with-fontrootdir was given. | |
22714 | if test "${with_fontrootdir+set}" = set; then : | |
22715 | withval=$with_fontrootdir; FONTROOTDIR="$withval" | |
22716 | fi | |
22717 | ||
22718 | # if --with-fontrootdir not specified... | |
22719 | if test "x${FONTROOTDIR}" = "x"; then | |
22720 | FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` | |
22721 | fi | |
22722 | # ...and if pkg-config didn't find fontdir in fontutil.pc... | |
22723 | if test "x${FONTROOTDIR}" = "x"; then | |
22724 | FONTROOTDIR="${datadir}/fonts/X11" | |
22725 | fi | |
22726 | ||
22727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 | |
22728 | $as_echo "${FONTROOTDIR}" >&6; } | |
22729 | ||
22730 | ||
22731 | ||
22732 | ||
22733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 | |
22734 | $as_echo_n "checking for directory for misc files... " >&6; } | |
22735 | ||
22736 | # Check whether --with-fontmiscdir was given. | |
22737 | if test "${with_fontmiscdir+set}" = set; then : | |
22738 | withval=$with_fontmiscdir; FONTMISCDIR="${withval}" | |
22739 | else | |
22740 | FONTMISCDIR='${FONTROOTDIR}/misc' | |
22741 | fi | |
22742 | ||
22743 | ||
22744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 | |
22745 | $as_echo "${FONTMISCDIR}" >&6; } | |
22746 | ||
22747 | ||
22748 | ||
22749 | ||
22750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 | |
22751 | $as_echo_n "checking for directory for OTF files... " >&6; } | |
22752 | ||
22753 | # Check whether --with-fontotfdir was given. | |
22754 | if test "${with_fontotfdir+set}" = set; then : | |
22755 | withval=$with_fontotfdir; FONTOTFDIR="${withval}" | |
22756 | else | |
22757 | FONTOTFDIR='${FONTROOTDIR}/OTF' | |
22758 | fi | |
22759 | ||
22760 | ||
22761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 | |
22762 | $as_echo "${FONTOTFDIR}" >&6; } | |
22763 | ||
22764 | ||
22765 | ||
22766 | ||
22767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 | |
22768 | $as_echo_n "checking for directory for TTF files... " >&6; } | |
22769 | ||
22770 | # Check whether --with-fontttfdir was given. | |
22771 | if test "${with_fontttfdir+set}" = set; then : | |
22772 | withval=$with_fontttfdir; FONTTTFDIR="${withval}" | |
22773 | else | |
22774 | FONTTTFDIR='${FONTROOTDIR}/TTF' | |
22775 | fi | |
22776 | ||
22777 | ||
22778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 | |
22779 | $as_echo "${FONTTTFDIR}" >&6; } | |
22780 | ||
22781 | ||
22782 | ||
22783 | ||
22784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 | |
22785 | $as_echo_n "checking for directory for Type1 files... " >&6; } | |
22786 | ||
22787 | # Check whether --with-fonttype1dir was given. | |
22788 | if test "${with_fonttype1dir+set}" = set; then : | |
22789 | withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" | |
22790 | else | |
22791 | FONTTYPE1DIR='${FONTROOTDIR}/Type1' | |
22792 | fi | |
22793 | ||
22794 | ||
22795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 | |
22796 | $as_echo "${FONTTYPE1DIR}" >&6; } | |
22797 | ||
22798 | ||
22799 | ||
22800 | ||
22801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 | |
22802 | $as_echo_n "checking for directory for 75dpi files... " >&6; } | |
22803 | ||
22804 | # Check whether --with-font75dpidir was given. | |
22805 | if test "${with_font75dpidir+set}" = set; then : | |
22806 | withval=$with_font75dpidir; FONT75DPIDIR="${withval}" | |
22807 | else | |
22808 | FONT75DPIDIR='${FONTROOTDIR}/75dpi' | |
22809 | fi | |
22810 | ||
22811 | ||
22812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 | |
22813 | $as_echo "${FONT75DPIDIR}" >&6; } | |
22814 | ||
22815 | ||
22816 | ||
22817 | ||
22818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 | |
22819 | $as_echo_n "checking for directory for 100dpi files... " >&6; } | |
22820 | ||
22821 | # Check whether --with-font100dpidir was given. | |
22822 | if test "${with_font100dpidir+set}" = set; then : | |
22823 | withval=$with_font100dpidir; FONT100DPIDIR="${withval}" | |
22824 | else | |
22825 | FONT100DPIDIR='${FONTROOTDIR}/100dpi' | |
22826 | fi | |
22827 | ||
22828 | ||
22829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 | |
22830 | $as_echo "${FONT100DPIDIR}" >&6; } | |
22831 | ||
22832 | ||
22833 | DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" | |
22834 | if test "$cross_compiling" != yes; then | |
22835 | as_ac_File=`$as_echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh` | |
22836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5 | |
22837 | $as_echo_n "checking for ${sysconfdir}/X11/fontpath.d... " >&6; } | |
22838 | if eval \${$as_ac_File+:} false; then : | |
22839 | $as_echo_n "(cached) " >&6 | |
22840 | else | |
22841 | test "$cross_compiling" = yes && | |
22842 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | |
22843 | if test -r "${sysconfdir}/X11/fontpath.d"; then | |
22844 | eval "$as_ac_File=yes" | |
22845 | else | |
22846 | eval "$as_ac_File=no" | |
22847 | fi | |
22848 | fi | |
22849 | eval ac_res=\$$as_ac_File | |
22850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
22851 | $as_echo "$ac_res" >&6; } | |
22852 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | |
22853 | DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d' | |
22854 | else | |
22855 | case $host_os in | |
22856 | darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; | |
22857 | esac | |
22858 | fi | |
22859 | ||
22860 | fi | |
22861 | ||
22862 | # Check whether --with-default-font-path was given. | |
22863 | if test "${with_default_font_path+set}" = set; then : | |
22864 | withval=$with_default_font_path; FONTPATH="$withval" | |
22865 | else | |
22866 | FONTPATH="${DEFAULT_FONT_PATH}" | |
22867 | fi | |
22868 | ||
22869 | ||
22870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 | |
22871 | $as_echo_n "checking for default font path... " >&6; } | |
22872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 | |
22873 | $as_echo "$FONTPATH" >&6; } | |
22874 | ||
22875 | ||
22876 | # Check whether --with-xkb-path was given. | |
22877 | if test "${with_xkb_path+set}" = set; then : | |
22878 | withval=$with_xkb_path; XKBPATH="$withval" | |
22879 | else | |
22880 | XKBPATH="${datadir}/X11/xkb" | |
22881 | fi | |
22882 | ||
22883 | ||
22884 | # Check whether --with-xkb-output was given. | |
22885 | if test "${with_xkb_output+set}" = set; then : | |
22886 | withval=$with_xkb_output; XKBOUTPUT="$withval" | |
22887 | else | |
22888 | XKBOUTPUT="compiled" | |
22889 | fi | |
22890 | ||
22891 | ||
22892 | # Check whether --with-default-xkb-rules was given. | |
22893 | if test "${with_default_xkb_rules+set}" = set; then : | |
22894 | withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" | |
22895 | else | |
22896 | XKB_DFLT_RULES="" | |
22897 | fi | |
22898 | ||
22899 | ||
22900 | # Check whether --with-default-xkb-model was given. | |
22901 | if test "${with_default_xkb_model+set}" = set; then : | |
22902 | withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" | |
22903 | else | |
22904 | XKB_DFLT_MODEL="pc105" | |
22905 | fi | |
22906 | ||
22907 | ||
22908 | # Check whether --with-default-xkb-layout was given. | |
22909 | if test "${with_default_xkb_layout+set}" = set; then : | |
22910 | withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" | |
22911 | else | |
22912 | XKB_DFLT_LAYOUT="us" | |
22913 | fi | |
22914 | ||
22915 | ||
22916 | # Check whether --with-default-xkb-variant was given. | |
22917 | if test "${with_default_xkb_variant+set}" = set; then : | |
22918 | withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" | |
22919 | else | |
22920 | XKB_DFLT_VARIANT="" | |
22921 | fi | |
22922 | ||
22923 | ||
22924 | # Check whether --with-default-xkb-options was given. | |
22925 | if test "${with_default_xkb_options+set}" = set; then : | |
22926 | withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" | |
22927 | else | |
22928 | XKB_DFLT_OPTIONS="" | |
22929 | fi | |
22930 | ||
22931 | ||
22932 | # Check whether --with-serverconfig-path was given. | |
22933 | if test "${with_serverconfig_path+set}" = set; then : | |
22934 | withval=$with_serverconfig_path; SERVERCONFIG="$withval" | |
22935 | else | |
22936 | SERVERCONFIG="${libdir}/xorg" | |
22937 | fi | |
22938 | ||
22939 | ||
22940 | # Check whether --with-apple-applications-dir was given. | |
22941 | if test "${with_apple_applications_dir+set}" = set; then : | |
22942 | withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" | |
22943 | else | |
22944 | APPLE_APPLICATIONS_DIR="/Applications/Utilities" | |
22945 | fi | |
22946 | ||
22947 | ||
22948 | ||
22949 | # Check whether --with-apple-application-name was given. | |
22950 | if test "${with_apple_application_name+set}" = set; then : | |
22951 | withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" | |
22952 | else | |
22953 | APPLE_APPLICATION_NAME="X11" | |
22954 | fi | |
22955 | ||
22956 | ||
22957 | ||
22958 | # Check whether --with-launchd-id-prefix was given. | |
22959 | if test "${with_launchd_id_prefix+set}" = set; then : | |
22960 | withval=$with_launchd_id_prefix; BUNDLE_ID_PREFIX="${withval}" | |
22961 | else | |
22962 | BUNDLE_ID_PREFIX="org.x" | |
22963 | fi | |
22964 | ||
22965 | ||
22966 | # Check whether --with-bundle-id-prefix was given. | |
22967 | if test "${with_bundle_id_prefix+set}" = set; then : | |
22968 | withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" | |
22969 | fi | |
22970 | ||
22971 | ||
22972 | ||
22973 | cat >>confdefs.h <<_ACEOF | |
22974 | #define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX" | |
22975 | _ACEOF | |
22976 | ||
22977 | # Check whether --enable-sparkle was given. | |
22978 | if test "${enable_sparkle+set}" = set; then : | |
22979 | enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" | |
22980 | else | |
22981 | XQUARTZ_SPARKLE="no" | |
22982 | fi | |
22983 | ||
22984 | ||
22985 | # Check whether --enable-install-libxf86config was given. | |
22986 | if test "${enable_install_libxf86config+set}" = set; then : | |
22987 | enableval=$enable_install_libxf86config; INSTALL_LIBXF86CONFIG=$enableval | |
22988 | else | |
22989 | INSTALL_LIBXF86CONFIG=no | |
22990 | fi | |
22991 | ||
22992 | # Check whether --enable-visibility was given. | |
22993 | if test "${enable_visibility+set}" = set; then : | |
22994 | enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval | |
22995 | else | |
22996 | SYMBOL_VISIBILITY=auto | |
22997 | fi | |
22998 | ||
22999 | ||
23000 | # Check whether --enable-aiglx was given. | |
23001 | if test "${enable_aiglx+set}" = set; then : | |
23002 | enableval=$enable_aiglx; AIGLX=$enableval | |
23003 | else | |
23004 | AIGLX=yes | |
23005 | fi | |
23006 | ||
23007 | ||
23008 | ||
23009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) support" >&5 | |
23010 | $as_echo_n "checking for thread local storage (TLS) support... " >&6; } | |
23011 | if ${ac_cv_tls+:} false; then : | |
23012 | $as_echo_n "(cached) " >&6 | |
23013 | else | |
23014 | ||
23015 | ac_cv_tls=none | |
23016 | keywords="__thread __declspec(thread)" | |
23017 | for kw in $keywords ; do | |
23018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23019 | /* end confdefs.h. */ | |
23020 | int $kw test; | |
23021 | int | |
23022 | main () | |
23023 | { | |
23024 | ||
23025 | ; | |
23026 | return 0; | |
23027 | } | |
23028 | _ACEOF | |
23029 | if ac_fn_c_try_compile "$LINENO"; then : | |
23030 | ac_cv_tls=$kw ; break ; | |
23031 | fi | |
23032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23033 | done | |
23034 | ||
23035 | fi | |
23036 | ||
23037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 | |
23038 | $as_echo "$ac_cv_tls" >&6; } | |
23039 | ||
23040 | if test "$ac_cv_tls" != "none"; then | |
23041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute support" >&5 | |
23042 | $as_echo_n "checking for tls_model attribute support... " >&6; } | |
23043 | if ${ac_cv_tls_model+:} false; then : | |
23044 | $as_echo_n "(cached) " >&6 | |
23045 | else | |
23046 | ||
23047 | save_CFLAGS="$CFLAGS" | |
23048 | CFLAGS="$CFLAGS $STRICT_CFLAGS" | |
23049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23050 | /* end confdefs.h. */ | |
23051 | int $ac_cv_tls __attribute__((tls_model("initial-exec"))) test; | |
23052 | int | |
23053 | main () | |
23054 | { | |
23055 | ||
23056 | ; | |
23057 | return 0; | |
23058 | } | |
23059 | _ACEOF | |
23060 | if ac_fn_c_try_compile "$LINENO"; then : | |
23061 | ac_cv_tls_model=yes | |
23062 | else | |
23063 | ac_cv_tls_model=no | |
23064 | fi | |
23065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23066 | CFLAGS="$save_CFLAGS" | |
23067 | ||
23068 | fi | |
23069 | ||
23070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls_model" >&5 | |
23071 | $as_echo "$ac_cv_tls_model" >&6; } | |
23072 | ||
23073 | if test "x$ac_cv_tls_model" = "xyes" ; then | |
23074 | xorg_tls=$ac_cv_tls' __attribute__((tls_model("initial-exec")))' | |
23075 | else | |
23076 | xorg_tls=$ac_cv_tls | |
23077 | fi | |
23078 | ||
23079 | ||
23080 | cat >>confdefs.h <<_ACEOF | |
23081 | #define TLS $xorg_tls | |
23082 | _ACEOF | |
23083 | ||
23084 | fi | |
23085 | ||
23086 | # Check whether --enable-glx-tls was given. | |
23087 | if test "${enable_glx_tls+set}" = set; then : | |
23088 | enableval=$enable_glx_tls; GLX_USE_TLS=$enableval | |
23089 | if test "x$GLX_USE_TLS" = "xyes" && test "${ac_cv_tls}" = "none" ; then | |
23090 | as_fn_error $? "GLX with TLS support requested, but the compiler does not support it." "$LINENO" 5 | |
23091 | fi | |
23092 | else | |
23093 | GLX_USE_TLS=no | |
23094 | if test "${ac_cv_tls}" != "none" ; then | |
23095 | GLX_USE_TLS=yes | |
23096 | fi | |
23097 | fi | |
23098 | ||
23099 | GLX_TLS=${GLX_USE_TLS} | |
23100 | ||
23101 | ||
23102 | # Check whether --with-khronos-spec-dir was given. | |
23103 | if test "${with_khronos_spec_dir+set}" = set; then : | |
23104 | withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" | |
23105 | else | |
23106 | KHRONOS_SPEC_DIR=auto | |
23107 | fi | |
23108 | ||
23109 | ||
23110 | # Check whether --enable-registry was given. | |
23111 | if test "${enable_registry+set}" = set; then : | |
23112 | enableval=$enable_registry; XREGISTRY=$enableval | |
23113 | else | |
23114 | XREGISTRY=yes | |
23115 | fi | |
23116 | ||
23117 | # Check whether --enable-composite was given. | |
23118 | if test "${enable_composite+set}" = set; then : | |
23119 | enableval=$enable_composite; COMPOSITE=$enableval | |
23120 | else | |
23121 | COMPOSITE=yes | |
23122 | fi | |
23123 | ||
23124 | # Check whether --enable-mitshm was given. | |
23125 | if test "${enable_mitshm+set}" = set; then : | |
23126 | enableval=$enable_mitshm; MITSHM=$enableval | |
23127 | else | |
23128 | MITSHM=auto | |
23129 | fi | |
23130 | ||
23131 | # Check whether --enable-xres was given. | |
23132 | if test "${enable_xres+set}" = set; then : | |
23133 | enableval=$enable_xres; RES=$enableval | |
23134 | else | |
23135 | RES=yes | |
23136 | fi | |
23137 | ||
23138 | # Check whether --enable-record was given. | |
23139 | if test "${enable_record+set}" = set; then : | |
23140 | enableval=$enable_record; RECORD=$enableval | |
23141 | else | |
23142 | RECORD=yes | |
23143 | fi | |
23144 | ||
23145 | # Check whether --enable-xv was given. | |
23146 | if test "${enable_xv+set}" = set; then : | |
23147 | enableval=$enable_xv; XV=$enableval | |
23148 | else | |
23149 | XV=yes | |
23150 | fi | |
23151 | ||
23152 | # Check whether --enable-xvmc was given. | |
23153 | if test "${enable_xvmc+set}" = set; then : | |
23154 | enableval=$enable_xvmc; XVMC=$enableval | |
23155 | else | |
23156 | XVMC=yes | |
23157 | fi | |
23158 | ||
23159 | # Check whether --enable-dga was given. | |
23160 | if test "${enable_dga+set}" = set; then : | |
23161 | enableval=$enable_dga; DGA=$enableval | |
23162 | else | |
23163 | DGA=auto | |
23164 | fi | |
23165 | ||
23166 | # Check whether --enable-screensaver was given. | |
23167 | if test "${enable_screensaver+set}" = set; then : | |
23168 | enableval=$enable_screensaver; SCREENSAVER=$enableval | |
23169 | else | |
23170 | SCREENSAVER=yes | |
23171 | fi | |
23172 | ||
23173 | # Check whether --enable-xdmcp was given. | |
23174 | if test "${enable_xdmcp+set}" = set; then : | |
23175 | enableval=$enable_xdmcp; XDMCP=$enableval | |
23176 | else | |
23177 | XDMCP=auto | |
23178 | fi | |
23179 | ||
23180 | # Check whether --enable-xdm-auth-1 was given. | |
23181 | if test "${enable_xdm_auth_1+set}" = set; then : | |
23182 | enableval=$enable_xdm_auth_1; XDMAUTH=$enableval | |
23183 | else | |
23184 | XDMAUTH=auto | |
23185 | fi | |
23186 | ||
23187 | # Check whether --enable-glx was given. | |
23188 | if test "${enable_glx+set}" = set; then : | |
23189 | enableval=$enable_glx; GLX=$enableval | |
23190 | else | |
23191 | GLX=yes | |
23192 | fi | |
23193 | ||
23194 | # Check whether --enable-dri was given. | |
23195 | if test "${enable_dri+set}" = set; then : | |
23196 | enableval=$enable_dri; DRI=$enableval | |
23197 | fi | |
23198 | ||
23199 | # Check whether --enable-dri2 was given. | |
23200 | if test "${enable_dri2+set}" = set; then : | |
23201 | enableval=$enable_dri2; DRI2=$enableval | |
23202 | else | |
23203 | DRI2=auto | |
23204 | fi | |
23205 | ||
23206 | # Check whether --enable-dri3 was given. | |
23207 | if test "${enable_dri3+set}" = set; then : | |
23208 | enableval=$enable_dri3; DRI3=$enableval | |
23209 | else | |
23210 | DRI3=auto | |
23211 | fi | |
23212 | ||
23213 | # Check whether --enable-present was given. | |
23214 | if test "${enable_present+set}" = set; then : | |
23215 | enableval=$enable_present; PRESENT=$enableval | |
23216 | else | |
23217 | PRESENT=yes | |
23218 | fi | |
23219 | ||
23220 | # Check whether --enable-xinerama was given. | |
23221 | if test "${enable_xinerama+set}" = set; then : | |
23222 | enableval=$enable_xinerama; XINERAMA=$enableval | |
23223 | else | |
23224 | XINERAMA=yes | |
23225 | fi | |
23226 | ||
23227 | # Check whether --enable-xf86vidmode was given. | |
23228 | if test "${enable_xf86vidmode+set}" = set; then : | |
23229 | enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval | |
23230 | else | |
23231 | XF86VIDMODE=auto | |
23232 | fi | |
23233 | ||
23234 | # Check whether --enable-xace was given. | |
23235 | if test "${enable_xace+set}" = set; then : | |
23236 | enableval=$enable_xace; XACE=$enableval | |
23237 | else | |
23238 | XACE=yes | |
23239 | fi | |
23240 | ||
23241 | # Check whether --enable-xselinux was given. | |
23242 | if test "${enable_xselinux+set}" = set; then : | |
23243 | enableval=$enable_xselinux; XSELINUX=$enableval | |
23244 | else | |
23245 | XSELINUX=no | |
23246 | fi | |
23247 | ||
23248 | # Check whether --enable-xcsecurity was given. | |
23249 | if test "${enable_xcsecurity+set}" = set; then : | |
23250 | enableval=$enable_xcsecurity; XCSECURITY=$enableval | |
23251 | else | |
23252 | XCSECURITY=no | |
23253 | fi | |
23254 | ||
23255 | # Check whether --enable-tslib was given. | |
23256 | if test "${enable_tslib+set}" = set; then : | |
23257 | enableval=$enable_tslib; TSLIB=$enableval | |
23258 | else | |
23259 | TSLIB=no | |
23260 | fi | |
23261 | ||
23262 | # Check whether --enable-dbe was given. | |
23263 | if test "${enable_dbe+set}" = set; then : | |
23264 | enableval=$enable_dbe; DBE=$enableval | |
23265 | else | |
23266 | DBE=yes | |
23267 | fi | |
23268 | ||
23269 | # Check whether --enable-xf86bigfont was given. | |
23270 | if test "${enable_xf86bigfont+set}" = set; then : | |
23271 | enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval | |
23272 | else | |
23273 | XF86BIGFONT=no | |
23274 | fi | |
23275 | ||
23276 | # Check whether --enable-dpms was given. | |
23277 | if test "${enable_dpms+set}" = set; then : | |
23278 | enableval=$enable_dpms; DPMSExtension=$enableval | |
23279 | else | |
23280 | DPMSExtension=yes | |
23281 | fi | |
23282 | ||
23283 | # Check whether --enable-config-udev was given. | |
23284 | if test "${enable_config_udev+set}" = set; then : | |
23285 | enableval=$enable_config_udev; CONFIG_UDEV=$enableval | |
23286 | else | |
23287 | CONFIG_UDEV=auto | |
23288 | fi | |
23289 | ||
23290 | # Check whether --enable-config-udev-kms was given. | |
23291 | if test "${enable_config_udev_kms+set}" = set; then : | |
23292 | enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval | |
23293 | else | |
23294 | CONFIG_UDEV_KMS=auto | |
23295 | fi | |
23296 | ||
23297 | # Check whether --enable-config-dbus was given. | |
23298 | if test "${enable_config_dbus+set}" = set; then : | |
23299 | enableval=$enable_config_dbus; CONFIG_DBUS_API=$enableval | |
23300 | else | |
23301 | CONFIG_DBUS_API=no | |
23302 | fi | |
23303 | ||
23304 | # Check whether --enable-config-hal was given. | |
23305 | if test "${enable_config_hal+set}" = set; then : | |
23306 | enableval=$enable_config_hal; CONFIG_HAL=$enableval | |
23307 | else | |
23308 | CONFIG_HAL=auto | |
23309 | fi | |
23310 | ||
23311 | # Check whether --enable-config-wscons was given. | |
23312 | if test "${enable_config_wscons+set}" = set; then : | |
23313 | enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval | |
23314 | else | |
23315 | CONFIG_WSCONS=auto | |
23316 | fi | |
23317 | ||
23318 | # Check whether --enable-xfree86-utils was given. | |
23319 | if test "${enable_xfree86_utils+set}" = set; then : | |
23320 | enableval=$enable_xfree86_utils; XF86UTILS=$enableval | |
23321 | else | |
23322 | XF86UTILS=yes | |
23323 | fi | |
23324 | ||
23325 | # Check whether --enable-vgahw was given. | |
23326 | if test "${enable_vgahw+set}" = set; then : | |
23327 | enableval=$enable_vgahw; VGAHW=$enableval | |
23328 | else | |
23329 | VGAHW=yes | |
23330 | fi | |
23331 | ||
23332 | # Check whether --enable-vbe was given. | |
23333 | if test "${enable_vbe+set}" = set; then : | |
23334 | enableval=$enable_vbe; VBE=$enableval | |
23335 | else | |
23336 | VBE=yes | |
23337 | fi | |
23338 | ||
23339 | # Check whether --enable-int10-module was given. | |
23340 | if test "${enable_int10_module+set}" = set; then : | |
23341 | enableval=$enable_int10_module; INT10MODULE=$enableval | |
23342 | else | |
23343 | INT10MODULE=yes | |
23344 | fi | |
23345 | ||
23346 | # Check whether --enable-windowswm was given. | |
23347 | if test "${enable_windowswm+set}" = set; then : | |
23348 | enableval=$enable_windowswm; WINDOWSWM=$enableval | |
23349 | else | |
23350 | WINDOWSWM=no | |
23351 | fi | |
23352 | ||
23353 | # Check whether --enable-libdrm was given. | |
23354 | if test "${enable_libdrm+set}" = set; then : | |
23355 | enableval=$enable_libdrm; DRM=$enableval | |
23356 | else | |
23357 | DRM=yes | |
23358 | fi | |
23359 | ||
23360 | # Check whether --enable-clientids was given. | |
23361 | if test "${enable_clientids+set}" = set; then : | |
23362 | enableval=$enable_clientids; CLIENTIDS=$enableval | |
23363 | else | |
23364 | CLIENTIDS=yes | |
23365 | fi | |
23366 | ||
23367 | # Check whether --enable-pciaccess was given. | |
23368 | if test "${enable_pciaccess+set}" = set; then : | |
23369 | enableval=$enable_pciaccess; PCI=$enableval | |
23370 | else | |
23371 | PCI=yes | |
23372 | fi | |
23373 | ||
23374 | # Check whether --enable-linux_acpi was given. | |
23375 | if test "${enable_linux_acpi+set}" = set; then : | |
23376 | enableval=$enable_linux_acpi; enable_linux_acpi=$enableval | |
23377 | else | |
23378 | enable_linux_acpi=yes | |
23379 | fi | |
23380 | ||
23381 | # Check whether --enable-linux_apm was given. | |
23382 | if test "${enable_linux_apm+set}" = set; then : | |
23383 | enableval=$enable_linux_apm; enable_linux_apm=$enableval | |
23384 | else | |
23385 | enable_linux_apm=yes | |
23386 | fi | |
23387 | ||
23388 | ||
23389 | # Check whether --enable-xorg was given. | |
23390 | if test "${enable_xorg+set}" = set; then : | |
23391 | enableval=$enable_xorg; XORG=$enableval | |
23392 | else | |
23393 | XORG=auto | |
23394 | fi | |
23395 | ||
23396 | # Check whether --enable-dmx was given. | |
23397 | if test "${enable_dmx+set}" = set; then : | |
23398 | enableval=$enable_dmx; DMX=$enableval | |
23399 | else | |
23400 | DMX=auto | |
23401 | fi | |
23402 | ||
23403 | # Check whether --enable-xvfb was given. | |
23404 | if test "${enable_xvfb+set}" = set; then : | |
23405 | enableval=$enable_xvfb; XVFB=$enableval | |
23406 | else | |
23407 | XVFB=yes | |
23408 | fi | |
23409 | ||
23410 | # Check whether --enable-xnest was given. | |
23411 | if test "${enable_xnest+set}" = set; then : | |
23412 | enableval=$enable_xnest; XNEST=$enableval | |
23413 | else | |
23414 | XNEST=auto | |
23415 | fi | |
23416 | ||
23417 | # Check whether --enable-xquartz was given. | |
23418 | if test "${enable_xquartz+set}" = set; then : | |
23419 | enableval=$enable_xquartz; XQUARTZ=$enableval | |
23420 | else | |
23421 | XQUARTZ=auto | |
23422 | fi | |
23423 | ||
23424 | # Check whether --enable-standalone-xpbproxy was given. | |
23425 | if test "${enable_standalone_xpbproxy+set}" = set; then : | |
23426 | enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval | |
23427 | else | |
23428 | STANDALONE_XPBPROXY=no | |
23429 | fi | |
23430 | ||
23431 | # Check whether --enable-xwin was given. | |
23432 | if test "${enable_xwin+set}" = set; then : | |
23433 | enableval=$enable_xwin; XWIN=$enableval | |
23434 | else | |
23435 | XWIN=auto | |
23436 | fi | |
23437 | ||
23438 | # Check whether --enable-kdrive was given. | |
23439 | if test "${enable_kdrive+set}" = set; then : | |
23440 | enableval=$enable_kdrive; KDRIVE=$enableval | |
23441 | else | |
23442 | KDRIVE=no | |
23443 | fi | |
23444 | ||
23445 | # Check whether --enable-xephyr was given. | |
23446 | if test "${enable_xephyr+set}" = set; then : | |
23447 | enableval=$enable_xephyr; XEPHYR=$enableval | |
23448 | else | |
23449 | XEPHYR=auto | |
23450 | fi | |
23451 | ||
23452 | # Check whether --enable-xfake was given. | |
23453 | if test "${enable_xfake+set}" = set; then : | |
23454 | enableval=$enable_xfake; XFAKE=$enableval | |
23455 | else | |
23456 | XFAKE=auto | |
23457 | fi | |
23458 | ||
23459 | # Check whether --enable-xfbdev was given. | |
23460 | if test "${enable_xfbdev+set}" = set; then : | |
23461 | enableval=$enable_xfbdev; XFBDEV=$enableval | |
23462 | else | |
23463 | XFBDEV=auto | |
23464 | fi | |
23465 | ||
23466 | # Check whether --enable-kdrive-kbd was given. | |
23467 | if test "${enable_kdrive_kbd+set}" = set; then : | |
23468 | enableval=$enable_kdrive_kbd; KDRIVE_KBD=$enableval | |
23469 | else | |
23470 | KDRIVE_KBD=auto | |
23471 | fi | |
23472 | ||
23473 | # Check whether --enable-kdrive-mouse was given. | |
23474 | if test "${enable_kdrive_mouse+set}" = set; then : | |
23475 | enableval=$enable_kdrive_mouse; KDRIVE_MOUSE=$enableval | |
23476 | else | |
23477 | KDRIVE_MOUSE=auto | |
23478 | fi | |
23479 | ||
23480 | # Check whether --enable-kdrive-evdev was given. | |
23481 | if test "${enable_kdrive_evdev+set}" = set; then : | |
23482 | enableval=$enable_kdrive_evdev; KDRIVE_EVDEV=$enableval | |
23483 | else | |
23484 | KDRIVE_EVDEV=auto | |
23485 | fi | |
23486 | ||
23487 | # Check whether --enable-libunwind was given. | |
23488 | if test "${enable_libunwind+set}" = set; then : | |
23489 | enableval=$enable_libunwind; LIBUNWIND="$enableval" | |
23490 | else | |
23491 | LIBUNWIND="auto" | |
23492 | fi | |
23493 | ||
23494 | ||
23495 | ||
23496 | # Check whether --enable-install-setuid was given. | |
23497 | if test "${enable_install_setuid+set}" = set; then : | |
23498 | enableval=$enable_install_setuid; SETUID=$enableval | |
23499 | else | |
23500 | SETUID=auto | |
23501 | fi | |
23502 | ||
23503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 | |
23504 | $as_echo_n "checking to see if we can install the Xorg server as root... " >&6; } | |
23505 | if test "x$SETUID" = "xauto" ; then | |
23506 | case $host_os in | |
23507 | cygwin*) SETUID="no" ;; | |
23508 | mingw*) SETUID="no" ;; | |
23509 | darwin*) SETUID="no" ;; | |
23510 | *) | |
23511 | case $host_cpu in | |
23512 | sparc) SETUID="no" ;; | |
23513 | *) SETUID="yes" ;; | |
23514 | esac | |
23515 | esac | |
23516 | if test "x$SETUID" = xyes; then | |
23517 | touch testfile | |
23518 | chown root testfile > /dev/null 2>&1 || SETUID="no" | |
23519 | rm -f testfile | |
23520 | fi | |
23521 | fi | |
23522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 | |
23523 | $as_echo "$SETUID" >&6; } | |
23524 | if test "x$SETUID" = "xyes"; then | |
23525 | INSTALL_SETUID_TRUE= | |
23526 | INSTALL_SETUID_FALSE='#' | |
23527 | else | |
23528 | INSTALL_SETUID_TRUE='#' | |
23529 | INSTALL_SETUID_FALSE= | |
23530 | fi | |
23531 | ||
23532 | ||
23533 | ||
23534 | ||
23535 | # Transport selection macro from xtrans.m4 | |
23536 | ||
23537 | ||
23538 | case $host_os in | |
23539 | mingw*) unixdef="no" ;; | |
23540 | *) unixdef="yes" ;; | |
23541 | esac | |
23542 | # Check whether --enable-unix-transport was given. | |
23543 | if test "${enable_unix_transport+set}" = set; then : | |
23544 | enableval=$enable_unix_transport; UNIXCONN=$enableval | |
23545 | else | |
23546 | UNIXCONN=$unixdef | |
23547 | fi | |
23548 | ||
23549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 | |
23550 | $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } | |
23551 | if test "$UNIXCONN" = "yes"; then | |
23552 | ||
23553 | $as_echo "#define UNIXCONN 1" >>confdefs.h | |
23554 | ||
23555 | fi | |
23556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 | |
23557 | $as_echo "$UNIXCONN" >&6; } | |
23558 | # Check whether --enable-tcp-transport was given. | |
23559 | if test "${enable_tcp_transport+set}" = set; then : | |
23560 | enableval=$enable_tcp_transport; TCPCONN=$enableval | |
23561 | else | |
23562 | TCPCONN=yes | |
23563 | fi | |
23564 | ||
23565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 | |
23566 | $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } | |
23567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 | |
23568 | $as_echo "$TCPCONN" >&6; } | |
23569 | if test "$TCPCONN" = "yes"; then | |
23570 | ||
23571 | $as_echo "#define TCPCONN 1" >>confdefs.h | |
23572 | ||
23573 | ||
23574 | # SVR4 hides these in libraries other than libc | |
23575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
23576 | $as_echo_n "checking for library containing socket... " >&6; } | |
23577 | if ${ac_cv_search_socket+:} false; then : | |
23578 | $as_echo_n "(cached) " >&6 | |
23579 | else | |
23580 | ac_func_search_save_LIBS=$LIBS | |
23581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23582 | /* end confdefs.h. */ | |
23583 | ||
23584 | /* Override any GCC internal prototype to avoid an error. | |
23585 | Use char because int might match the return type of a GCC | |
23586 | builtin and then its argument prototype would still apply. */ | |
23587 | #ifdef __cplusplus | |
23588 | extern "C" | |
23589 | #endif | |
23590 | char socket (); | |
23591 | int | |
23592 | main () | |
23593 | { | |
23594 | return socket (); | |
23595 | ; | |
23596 | return 0; | |
23597 | } | |
23598 | _ACEOF | |
23599 | for ac_lib in '' socket; do | |
23600 | if test -z "$ac_lib"; then | |
23601 | ac_res="none required" | |
23602 | else | |
23603 | ac_res=-l$ac_lib | |
23604 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23605 | fi | |
23606 | if ac_fn_c_try_link "$LINENO"; then : | |
23607 | ac_cv_search_socket=$ac_res | |
23608 | fi | |
23609 | rm -f core conftest.err conftest.$ac_objext \ | |
23610 | conftest$ac_exeext | |
23611 | if ${ac_cv_search_socket+:} false; then : | |
23612 | break | |
23613 | fi | |
23614 | done | |
23615 | if ${ac_cv_search_socket+:} false; then : | |
23616 | ||
23617 | else | |
23618 | ac_cv_search_socket=no | |
23619 | fi | |
23620 | rm conftest.$ac_ext | |
23621 | LIBS=$ac_func_search_save_LIBS | |
23622 | fi | |
23623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
23624 | $as_echo "$ac_cv_search_socket" >&6; } | |
23625 | ac_res=$ac_cv_search_socket | |
23626 | if test "$ac_res" != no; then : | |
23627 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23628 | ||
23629 | fi | |
23630 | ||
23631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 | |
23632 | $as_echo_n "checking for library containing gethostbyname... " >&6; } | |
23633 | if ${ac_cv_search_gethostbyname+:} false; then : | |
23634 | $as_echo_n "(cached) " >&6 | |
23635 | else | |
23636 | ac_func_search_save_LIBS=$LIBS | |
23637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23638 | /* end confdefs.h. */ | |
23639 | ||
23640 | /* Override any GCC internal prototype to avoid an error. | |
23641 | Use char because int might match the return type of a GCC | |
23642 | builtin and then its argument prototype would still apply. */ | |
23643 | #ifdef __cplusplus | |
23644 | extern "C" | |
23645 | #endif | |
23646 | char gethostbyname (); | |
23647 | int | |
23648 | main () | |
23649 | { | |
23650 | return gethostbyname (); | |
23651 | ; | |
23652 | return 0; | |
23653 | } | |
23654 | _ACEOF | |
23655 | for ac_lib in '' nsl; do | |
23656 | if test -z "$ac_lib"; then | |
23657 | ac_res="none required" | |
23658 | else | |
23659 | ac_res=-l$ac_lib | |
23660 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23661 | fi | |
23662 | if ac_fn_c_try_link "$LINENO"; then : | |
23663 | ac_cv_search_gethostbyname=$ac_res | |
23664 | fi | |
23665 | rm -f core conftest.err conftest.$ac_objext \ | |
23666 | conftest$ac_exeext | |
23667 | if ${ac_cv_search_gethostbyname+:} false; then : | |
23668 | break | |
23669 | fi | |
23670 | done | |
23671 | if ${ac_cv_search_gethostbyname+:} false; then : | |
23672 | ||
23673 | else | |
23674 | ac_cv_search_gethostbyname=no | |
23675 | fi | |
23676 | rm conftest.$ac_ext | |
23677 | LIBS=$ac_func_search_save_LIBS | |
23678 | fi | |
23679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | |
23680 | $as_echo "$ac_cv_search_gethostbyname" >&6; } | |
23681 | ac_res=$ac_cv_search_gethostbyname | |
23682 | if test "$ac_res" != no; then : | |
23683 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23684 | ||
23685 | fi | |
23686 | ||
23687 | if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then | |
23688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 | |
23689 | $as_echo_n "checking for main in -lws2_32... " >&6; } | |
23690 | if ${ac_cv_lib_ws2_32_main+:} false; then : | |
23691 | $as_echo_n "(cached) " >&6 | |
23692 | else | |
23693 | ac_check_lib_save_LIBS=$LIBS | |
23694 | LIBS="-lws2_32 $LIBS" | |
23695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23696 | /* end confdefs.h. */ | |
23697 | ||
23698 | ||
23699 | int | |
23700 | main () | |
23701 | { | |
23702 | return main (); | |
23703 | ; | |
23704 | return 0; | |
23705 | } | |
23706 | _ACEOF | |
23707 | if ac_fn_c_try_link "$LINENO"; then : | |
23708 | ac_cv_lib_ws2_32_main=yes | |
23709 | else | |
23710 | ac_cv_lib_ws2_32_main=no | |
23711 | fi | |
23712 | rm -f core conftest.err conftest.$ac_objext \ | |
23713 | conftest$ac_exeext conftest.$ac_ext | |
23714 | LIBS=$ac_check_lib_save_LIBS | |
23715 | fi | |
23716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 | |
23717 | $as_echo "$ac_cv_lib_ws2_32_main" >&6; } | |
23718 | if test "x$ac_cv_lib_ws2_32_main" = xyes; then : | |
23719 | cat >>confdefs.h <<_ACEOF | |
23720 | #define HAVE_LIBWS2_32 1 | |
23721 | _ACEOF | |
23722 | ||
23723 | LIBS="-lws2_32 $LIBS" | |
23724 | ||
23725 | fi | |
23726 | ||
23727 | fi | |
23728 | ||
23729 | # Needs to come after above checks for libsocket & libnsl for SVR4 systems | |
23730 | # Check whether --enable-ipv6 was given. | |
23731 | if test "${enable_ipv6+set}" = set; then : | |
23732 | enableval=$enable_ipv6; IPV6CONN=$enableval | |
23733 | else | |
23734 | ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" | |
23735 | if test "x$ac_cv_func_getaddrinfo" = xyes; then : | |
23736 | IPV6CONN=yes | |
23737 | else | |
23738 | IPV6CONN=no | |
23739 | fi | |
23740 | ||
23741 | fi | |
23742 | ||
23743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 | |
23744 | $as_echo_n "checking if IPv6 support should be built... " >&6; } | |
23745 | if test "$IPV6CONN" = "yes"; then | |
23746 | ||
23747 | $as_echo "#define IPv6 1" >>confdefs.h | |
23748 | ||
23749 | fi | |
23750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 | |
23751 | $as_echo "$IPV6CONN" >&6; } | |
23752 | ||
23753 | # 4.3BSD-Reno added a new member to struct sockaddr_in | |
23754 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " | |
23755 | #include <sys/types.h> | |
23756 | #include <sys/socket.h> | |
23757 | #include <netinet/in.h> | |
23758 | ||
23759 | " | |
23760 | if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : | |
23761 | ||
23762 | $as_echo "#define BSD44SOCKETS 1" >>confdefs.h | |
23763 | ||
23764 | fi | |
23765 | ||
23766 | ||
23767 | # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. | |
23768 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " | |
23769 | $ac_includes_default | |
23770 | #include <sys/socket.h> | |
23771 | " | |
23772 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
23773 | ||
23774 | cat >>confdefs.h <<_ACEOF | |
23775 | #define HAVE_SOCKLEN_T 1 | |
23776 | _ACEOF | |
23777 | ||
23778 | ||
23779 | fi | |
23780 | ||
23781 | ||
23782 | # XPG4v2/UNIX95 added msg_control - check to see if we need to define | |
23783 | # _XOPEN_SOURCE to get it (such as on Solaris) | |
23784 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " | |
23785 | $ac_includes_default | |
23786 | #include <sys/socket.h> | |
23787 | ||
23788 | " | |
23789 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : | |
23790 | ||
23791 | fi | |
23792 | ||
23793 | # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 | |
23794 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then | |
23795 | unset ac_cv_member_struct_msghdr_msg_control | |
23796 | { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 | |
23797 | $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} | |
23798 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " | |
23799 | #define _XOPEN_SOURCE 600 | |
23800 | $ac_includes_default | |
23801 | #include <sys/socket.h> | |
23802 | ||
23803 | " | |
23804 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : | |
23805 | ||
23806 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | |
23807 | ||
23808 | ||
23809 | fi | |
23810 | ||
23811 | fi | |
23812 | # If that didn't work, fall back to XPG5/UNIX98 with C89 | |
23813 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then | |
23814 | unset ac_cv_member_struct_msghdr_msg_control | |
23815 | { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 | |
23816 | $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} | |
23817 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " | |
23818 | #define _XOPEN_SOURCE 500 | |
23819 | $ac_includes_default | |
23820 | #include <sys/socket.h> | |
23821 | ||
23822 | " | |
23823 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : | |
23824 | ||
23825 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h | |
23826 | ||
23827 | ||
23828 | fi | |
23829 | ||
23830 | fi | |
23831 | ||
23832 | ||
23833 | ||
23834 | fi | |
23835 | case $host_os in | |
23836 | solaris*|sco*|sysv4*) localdef="yes" ;; | |
23837 | *) localdef="no" ;; | |
23838 | esac | |
23839 | # Check whether --enable-local-transport was given. | |
23840 | if test "${enable_local_transport+set}" = set; then : | |
23841 | enableval=$enable_local_transport; LOCALCONN=$enableval | |
23842 | else | |
23843 | LOCALCONN=$localdef | |
23844 | fi | |
23845 | ||
23846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 | |
23847 | $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } | |
23848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 | |
23849 | $as_echo "$LOCALCONN" >&6; } | |
23850 | if test "$LOCALCONN" = "yes"; then | |
23851 | ||
23852 | $as_echo "#define LOCALCONN 1" >>confdefs.h | |
23853 | ||
23854 | fi | |
23855 | ||
23856 | ||
23857 | ||
23858 | # Secure RPC detection macro from xtrans.m4 | |
23859 | ||
23860 | # Check whether --enable-secure-rpc was given. | |
23861 | if test "${enable_secure_rpc+set}" = set; then : | |
23862 | enableval=$enable_secure_rpc; SECURE_RPC=$enableval | |
23863 | else | |
23864 | SECURE_RPC="try" | |
23865 | fi | |
23866 | ||
23867 | ||
23868 | if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then | |
23869 | FOUND_SECURE_RPC="no" | |
23870 | for ac_func in authdes_seccreate authdes_create | |
23871 | do : | |
23872 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23873 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
23874 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
23875 | cat >>confdefs.h <<_ACEOF | |
23876 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23877 | _ACEOF | |
23878 | FOUND_SECURE_RPC="yes" | |
23879 | fi | |
23880 | done | |
23881 | ||
23882 | if test "x$FOUND_SECURE_RPC" = "xno" ; then | |
23883 | if test "x$SECURE_RPC" = "xyes" ; then | |
23884 | as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 | |
23885 | fi | |
23886 | SECURE_RPC="no" | |
23887 | else | |
23888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 | |
23889 | $as_echo_n "checking for library containing getsecretkey... " >&6; } | |
23890 | if ${ac_cv_search_getsecretkey+:} false; then : | |
23891 | $as_echo_n "(cached) " >&6 | |
23892 | else | |
23893 | ac_func_search_save_LIBS=$LIBS | |
23894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23895 | /* end confdefs.h. */ | |
23896 | ||
23897 | /* Override any GCC internal prototype to avoid an error. | |
23898 | Use char because int might match the return type of a GCC | |
23899 | builtin and then its argument prototype would still apply. */ | |
23900 | #ifdef __cplusplus | |
23901 | extern "C" | |
23902 | #endif | |
23903 | char getsecretkey (); | |
23904 | int | |
23905 | main () | |
23906 | { | |
23907 | return getsecretkey (); | |
23908 | ; | |
23909 | return 0; | |
23910 | } | |
23911 | _ACEOF | |
23912 | for ac_lib in '' rpcsvc; do | |
23913 | if test -z "$ac_lib"; then | |
23914 | ac_res="none required" | |
23915 | else | |
23916 | ac_res=-l$ac_lib | |
23917 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23918 | fi | |
23919 | if ac_fn_c_try_link "$LINENO"; then : | |
23920 | ac_cv_search_getsecretkey=$ac_res | |
23921 | fi | |
23922 | rm -f core conftest.err conftest.$ac_objext \ | |
23923 | conftest$ac_exeext | |
23924 | if ${ac_cv_search_getsecretkey+:} false; then : | |
23925 | break | |
23926 | fi | |
23927 | done | |
23928 | if ${ac_cv_search_getsecretkey+:} false; then : | |
23929 | ||
23930 | else | |
23931 | ac_cv_search_getsecretkey=no | |
23932 | fi | |
23933 | rm conftest.$ac_ext | |
23934 | LIBS=$ac_func_search_save_LIBS | |
23935 | fi | |
23936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 | |
23937 | $as_echo "$ac_cv_search_getsecretkey" >&6; } | |
23938 | ac_res=$ac_cv_search_getsecretkey | |
23939 | if test "$ac_res" != no; then : | |
23940 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23941 | ||
23942 | fi | |
23943 | ||
23944 | SECURE_RPC="yes" | |
23945 | fi | |
23946 | fi | |
23947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 | |
23948 | $as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } | |
23949 | if test "x$SECURE_RPC" = "xyes" ; then | |
23950 | ||
23951 | $as_echo "#define SECURE_RPC 1" >>confdefs.h | |
23952 | ||
23953 | fi | |
23954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 | |
23955 | $as_echo "$SECURE_RPC" >&6; } | |
23956 | ||
23957 | if test "x$SECURE_RPC" = xyes; then | |
23958 | SECURE_RPC_TRUE= | |
23959 | SECURE_RPC_FALSE='#' | |
23960 | else | |
23961 | SECURE_RPC_TRUE='#' | |
23962 | SECURE_RPC_FALSE= | |
23963 | fi | |
23964 | ||
23965 | ||
23966 | if test "x$INT10" = xvm86; then | |
23967 | INT10_VM86_TRUE= | |
23968 | INT10_VM86_FALSE='#' | |
23969 | else | |
23970 | INT10_VM86_TRUE='#' | |
23971 | INT10_VM86_FALSE= | |
23972 | fi | |
23973 | ||
23974 | if test "x$INT10" = xx86emu; then | |
23975 | INT10_X86EMU_TRUE= | |
23976 | INT10_X86EMU_FALSE='#' | |
23977 | else | |
23978 | INT10_X86EMU_TRUE='#' | |
23979 | INT10_X86EMU_FALSE= | |
23980 | fi | |
23981 | ||
23982 | if test "x$INT10" = xstub; then | |
23983 | INT10_STUB_TRUE= | |
23984 | INT10_STUB_FALSE='#' | |
23985 | else | |
23986 | INT10_STUB_TRUE='#' | |
23987 | INT10_STUB_FALSE= | |
23988 | fi | |
23989 | ||
23990 | ||
23991 | if test "x$INSTALL_LIBXF86CONFIG" = xyes; then | |
23992 | INSTALL_LIBXF86CONFIG_TRUE= | |
23993 | INSTALL_LIBXF86CONFIG_FALSE='#' | |
23994 | else | |
23995 | INSTALL_LIBXF86CONFIG_TRUE='#' | |
23996 | INSTALL_LIBXF86CONFIG_FALSE= | |
23997 | fi | |
23998 | ||
23999 | ||
24000 | case $host_os in | |
24001 | cygwin* | mingw*) | |
24002 | CONFIG_DBUS_API=no | |
24003 | CONFIG_HAL=no | |
24004 | CONFIG_UDEV=no | |
24005 | CONFIG_UDEV_KMS=no | |
24006 | DGA=no | |
24007 | DRI2=no | |
24008 | DRI3=no | |
24009 | INT10MODULE=no | |
24010 | PCI=no | |
24011 | VGAHW=no | |
24012 | VBE=no | |
24013 | XF86UTILS=no | |
24014 | XF86VIDMODE=no | |
24015 | XSELINUX=no | |
24016 | XV=no | |
24017 | SYMBOL_VISIBILITY=no | |
24018 | ;; | |
24019 | darwin*) | |
24020 | PCI=no | |
24021 | INT10MODULE=no | |
24022 | VGAHW=no | |
24023 | VBE=no | |
24024 | DRM=no | |
24025 | DRI2=no | |
24026 | DRI3=no | |
24027 | ||
24028 | if test x$XQUARTZ = xauto; then | |
24029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 | |
24030 | $as_echo_n "checking whether to build Xquartz... " >&6; } | |
24031 | if ${xorg_cv_Carbon_framework+:} false; then : | |
24032 | $as_echo_n "(cached) " >&6 | |
24033 | else | |
24034 | ||
24035 | save_LDFLAGS=$LDFLAGS | |
24036 | LDFLAGS="$LDFLAGS -framework Carbon" | |
24037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24038 | /* end confdefs.h. */ | |
24039 | char FSFindFolder(); int main() { FSFindFolder(); return 0;} | |
24040 | _ACEOF | |
24041 | if ac_fn_c_try_link "$LINENO"; then : | |
24042 | xorg_cv_Carbon_framework=yes | |
24043 | else | |
24044 | xorg_cv_Carbon_framework=no | |
24045 | fi | |
24046 | rm -f core conftest.err conftest.$ac_objext \ | |
24047 | conftest$ac_exeext conftest.$ac_ext | |
24048 | LDFLAGS=$save_LDFLAGS | |
24049 | fi | |
24050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 | |
24051 | $as_echo "$xorg_cv_Carbon_framework" >&6; } | |
24052 | ||
24053 | if test "X$xorg_cv_Carbon_framework" = Xyes; then | |
24054 | XQUARTZ=yes | |
24055 | else | |
24056 | XQUARTZ=no | |
24057 | fi | |
24058 | fi | |
24059 | ||
24060 | ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async" | |
24061 | if test "x$ac_cv_func_dispatch_async" = xyes; then : | |
24062 | ||
24063 | $as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h | |
24064 | ||
24065 | fi | |
24066 | ||
24067 | ||
24068 | if test "x$XQUARTZ" = xyes ; then | |
24069 | XQUARTZ=yes | |
24070 | XVFB=no | |
24071 | XNEST=no | |
24072 | ||
24073 | COMPOSITE=no | |
24074 | DGA=no | |
24075 | DPMSExtension=no | |
24076 | XF86VIDMODE=no | |
24077 | fi | |
24078 | ;; | |
24079 | *) XQUARTZ=no ;; | |
24080 | esac | |
24081 | ||
24082 | XEXT_INC='-I$(top_srcdir)/Xext' | |
24083 | XEXT_LIB='$(top_builddir)/Xext/libXext.la' | |
24084 | ||
24085 | VIDEOPROTO="videoproto" | |
24086 | COMPOSITEPROTO="compositeproto >= 0.4" | |
24087 | RECORDPROTO="recordproto >= 1.13.99.1" | |
24088 | SCRNSAVERPROTO="scrnsaverproto >= 1.1" | |
24089 | RESOURCEPROTO="resourceproto >= 1.2.0" | |
24090 | DRIPROTO="xf86driproto >= 2.1.0" | |
24091 | DRI2PROTO="dri2proto >= 2.8" | |
24092 | DRI3PROTO="dri3proto >= 1.0" | |
24093 | XINERAMAPROTO="xineramaproto" | |
24094 | BIGFONTPROTO="xf86bigfontproto >= 1.2.0" | |
24095 | DGAPROTO="xf86dgaproto >= 2.0.99.1" | |
24096 | GLPROTO="glproto >= 1.4.17" | |
24097 | DMXPROTO="dmxproto >= 2.2.99.1" | |
24098 | VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" | |
24099 | WINDOWSWMPROTO="windowswmproto" | |
24100 | APPLEWMPROTO="applewmproto >= 1.4" | |
24101 | XSHMFENCE="xshmfence >= 1.1" | |
24102 | ||
24103 | XPROTO="xproto >= 7.0.22" | |
24104 | RANDRPROTO="randrproto >= 1.4.0" | |
24105 | RENDERPROTO="renderproto >= 0.11" | |
24106 | XEXTPROTO="xextproto >= 7.2.99.901" | |
24107 | INPUTPROTO="inputproto >= 2.3" | |
24108 | KBPROTO="kbproto >= 1.0.3" | |
24109 | FONTSPROTO="fontsproto" | |
24110 | FIXESPROTO="fixesproto >= 5.0" | |
24111 | DAMAGEPROTO="damageproto >= 1.1" | |
24112 | XCMISCPROTO="xcmiscproto >= 1.2.0" | |
24113 | BIGREQSPROTO="bigreqsproto >= 1.1.0" | |
24114 | XTRANS="xtrans >= 1.3.2" | |
24115 | PRESENTPROTO="presentproto >= 1.0" | |
24116 | ||
24117 | LIBAPPLEWM="applewm >= 1.4" | |
24118 | LIBDMX="dmx >= 1.0.99.1" | |
24119 | LIBDRI="dri >= 7.8.0" | |
24120 | LIBDRM="libdrm >= 2.3.0" | |
24121 | LIBGL="gl >= 7.1.0" | |
24122 | LIBXEXT="xext >= 1.0.99.4" | |
24123 | LIBXFONT="xfont >= 1.4.2" | |
24124 | LIBXI="xi >= 1.2.99.1" | |
24125 | LIBXTST="xtst >= 1.0.99.2" | |
24126 | LIBPCIACCESS="pciaccess >= 0.12.901" | |
24127 | LIBUDEV="libudev >= 143" | |
24128 | LIBSELINUX="libselinux >= 2.0.86" | |
24129 | LIBDBUS="dbus-1 >= 1.0" | |
24130 | LIBPIXMAN="pixman-1 >= 0.27.2" | |
24131 | ||
24132 | ||
24133 | pkg_failed=no | |
24134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 | |
24135 | $as_echo_n "checking for PIXMAN... " >&6; } | |
24136 | ||
24137 | if test -n "$PIXMAN_CFLAGS"; then | |
24138 | pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" | |
24139 | elif test -n "$PKG_CONFIG"; then | |
24140 | if test -n "$PKG_CONFIG" && \ | |
24141 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 | |
24142 | ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 | |
24143 | ac_status=$? | |
24144 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24145 | test $ac_status = 0; }; then | |
24146 | pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` | |
24147 | else | |
24148 | pkg_failed=yes | |
24149 | fi | |
24150 | else | |
24151 | pkg_failed=untried | |
24152 | fi | |
24153 | if test -n "$PIXMAN_LIBS"; then | |
24154 | pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" | |
24155 | elif test -n "$PKG_CONFIG"; then | |
24156 | if test -n "$PKG_CONFIG" && \ | |
24157 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 | |
24158 | ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 | |
24159 | ac_status=$? | |
24160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24161 | test $ac_status = 0; }; then | |
24162 | pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` | |
24163 | else | |
24164 | pkg_failed=yes | |
24165 | fi | |
24166 | else | |
24167 | pkg_failed=untried | |
24168 | fi | |
24169 | ||
24170 | ||
24171 | ||
24172 | if test $pkg_failed = yes; then | |
24173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24174 | $as_echo "no" >&6; } | |
24175 | ||
24176 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
24177 | _pkg_short_errors_supported=yes | |
24178 | else | |
24179 | _pkg_short_errors_supported=no | |
24180 | fi | |
24181 | if test $_pkg_short_errors_supported = yes; then | |
24182 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPIXMAN" 2>&1` | |
24183 | else | |
24184 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPIXMAN" 2>&1` | |
24185 | fi | |
24186 | # Put the nasty error message in config.log where it belongs | |
24187 | echo "$PIXMAN_PKG_ERRORS" >&5 | |
24188 | ||
24189 | as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: | |
24190 | ||
24191 | $PIXMAN_PKG_ERRORS | |
24192 | ||
24193 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
24194 | installed software in a non-standard prefix. | |
24195 | ||
24196 | Alternatively, you may set the environment variables PIXMAN_CFLAGS | |
24197 | and PIXMAN_LIBS to avoid the need to call pkg-config. | |
24198 | See the pkg-config man page for more details." "$LINENO" 5 | |
24199 | ||
24200 | elif test $pkg_failed = untried; then | |
24201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24202 | $as_echo "no" >&6; } | |
24203 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
24204 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
24205 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
24206 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
24207 | path to pkg-config. | |
24208 | ||
24209 | Alternatively, you may set the environment variables PIXMAN_CFLAGS | |
24210 | and PIXMAN_LIBS to avoid the need to call pkg-config. | |
24211 | See the pkg-config man page for more details. | |
24212 | ||
24213 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
24214 | See \`config.log' for more details" "$LINENO" 5; } | |
24215 | ||
24216 | else | |
24217 | PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS | |
24218 | PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS | |
24219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24220 | $as_echo "yes" >&6; } | |
24221 | ||
24222 | fi | |
24223 | REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" | |
24224 | ||
24225 | SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN" | |
24226 | # Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc | |
24227 | ||
24228 | ||
24229 | REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" | |
24230 | ||
24231 | if test "x$CONFIG_UDEV" = xyes && | |
24232 | { test "x$CONFIG_DBUS_API" = xyes || test "x$CONFIG_HAL" = xyes; }; then | |
24233 | as_fn_error $? "Hotplugging through both libudev and dbus/hal not allowed" "$LINENO" 5 | |
24234 | fi | |
24235 | ||
24236 | ||
24237 | pkg_failed=no | |
24238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
24239 | $as_echo_n "checking for UDEV... " >&6; } | |
24240 | ||
24241 | if test -n "$UDEV_CFLAGS"; then | |
24242 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
24243 | elif test -n "$PKG_CONFIG"; then | |
24244 | if test -n "$PKG_CONFIG" && \ | |
24245 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 | |
24246 | ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 | |
24247 | ac_status=$? | |
24248 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24249 | test $ac_status = 0; }; then | |
24250 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` | |
24251 | else | |
24252 | pkg_failed=yes | |
24253 | fi | |
24254 | else | |
24255 | pkg_failed=untried | |
24256 | fi | |
24257 | if test -n "$UDEV_LIBS"; then | |
24258 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
24259 | elif test -n "$PKG_CONFIG"; then | |
24260 | if test -n "$PKG_CONFIG" && \ | |
24261 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 | |
24262 | ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 | |
24263 | ac_status=$? | |
24264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24265 | test $ac_status = 0; }; then | |
24266 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` | |
24267 | else | |
24268 | pkg_failed=yes | |
24269 | fi | |
24270 | else | |
24271 | pkg_failed=untried | |
24272 | fi | |
24273 | ||
24274 | ||
24275 | ||
24276 | if test $pkg_failed = yes; then | |
24277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24278 | $as_echo "no" >&6; } | |
24279 | ||
24280 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
24281 | _pkg_short_errors_supported=yes | |
24282 | else | |
24283 | _pkg_short_errors_supported=no | |
24284 | fi | |
24285 | if test $_pkg_short_errors_supported = yes; then | |
24286 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBUDEV" 2>&1` | |
24287 | else | |
24288 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBUDEV" 2>&1` | |
24289 | fi | |
24290 | # Put the nasty error message in config.log where it belongs | |
24291 | echo "$UDEV_PKG_ERRORS" >&5 | |
24292 | ||
24293 | HAVE_LIBUDEV=no | |
24294 | elif test $pkg_failed = untried; then | |
24295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24296 | $as_echo "no" >&6; } | |
24297 | HAVE_LIBUDEV=no | |
24298 | else | |
24299 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
24300 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
24301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24302 | $as_echo "yes" >&6; } | |
24303 | HAVE_LIBUDEV=yes | |
24304 | fi | |
24305 | if test "x$CONFIG_UDEV" = xauto; then | |
24306 | CONFIG_UDEV="$HAVE_LIBUDEV" | |
24307 | fi | |
24308 | if test "x$CONFIG_UDEV" = xyes; then | |
24309 | CONFIG_UDEV_TRUE= | |
24310 | CONFIG_UDEV_FALSE='#' | |
24311 | else | |
24312 | CONFIG_UDEV_TRUE='#' | |
24313 | CONFIG_UDEV_FALSE= | |
24314 | fi | |
24315 | ||
24316 | if test "x$CONFIG_UDEV" = xyes; then | |
24317 | CONFIG_DBUS_API=no | |
24318 | CONFIG_HAL=no | |
24319 | if test "x$CONFIG_UDEV_KMS" = xauto; then | |
24320 | CONFIG_UDEV_KMS="$HAVE_LIBUDEV" | |
24321 | fi | |
24322 | if ! test "x$HAVE_LIBUDEV" = xyes; then | |
24323 | as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 | |
24324 | fi | |
24325 | ||
24326 | $as_echo "#define CONFIG_UDEV 1" >>confdefs.h | |
24327 | ||
24328 | if test "x$CONFIG_UDEV_KMS" = xyes; then | |
24329 | ||
24330 | $as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h | |
24331 | ||
24332 | fi | |
24333 | SAVE_LIBS=$LIBS | |
24334 | SAVE_CFLAGS=$CFLAGS | |
24335 | CFLAGS=$UDEV_CFLAGS | |
24336 | LIBS=$UDEV_LIBS | |
24337 | for ac_func in udev_monitor_filter_add_match_tag | |
24338 | do : | |
24339 | ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" | |
24340 | if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then : | |
24341 | cat >>confdefs.h <<_ACEOF | |
24342 | #define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1 | |
24343 | _ACEOF | |
24344 | ||
24345 | fi | |
24346 | done | |
24347 | ||
24348 | for ac_func in udev_enumerate_add_match_tag | |
24349 | do : | |
24350 | ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" | |
24351 | if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then : | |
24352 | cat >>confdefs.h <<_ACEOF | |
24353 | #define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1 | |
24354 | _ACEOF | |
24355 | ||
24356 | fi | |
24357 | done | |
24358 | ||
24359 | LIBS=$SAVE_LIBS | |
24360 | CFLAGS=$SAVE_CFLAGS | |
24361 | fi | |
24362 | if test "x$CONFIG_UDEV_KMS" = xyes; then | |
24363 | CONFIG_UDEV_KMS_TRUE= | |
24364 | CONFIG_UDEV_KMS_FALSE='#' | |
24365 | else | |
24366 | CONFIG_UDEV_KMS_TRUE='#' | |
24367 | CONFIG_UDEV_KMS_FALSE= | |
24368 | fi | |
24369 | ||
24370 | ||
24371 | ||
24372 | pkg_failed=no | |
24373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 | |
24374 | $as_echo_n "checking for DBUS... " >&6; } | |
24375 | ||
24376 | if test -n "$DBUS_CFLAGS"; then | |
24377 | pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" | |
24378 | elif test -n "$PKG_CONFIG"; then | |
24379 | if test -n "$PKG_CONFIG" && \ | |
24380 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 | |
24381 | ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 | |
24382 | ac_status=$? | |
24383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24384 | test $ac_status = 0; }; then | |
24385 | pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` | |
24386 | else | |
24387 | pkg_failed=yes | |
24388 | fi | |
24389 | else | |
24390 | pkg_failed=untried | |
24391 | fi | |
24392 | if test -n "$DBUS_LIBS"; then | |
24393 | pkg_cv_DBUS_LIBS="$DBUS_LIBS" | |
24394 | elif test -n "$PKG_CONFIG"; then | |
24395 | if test -n "$PKG_CONFIG" && \ | |
24396 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 | |
24397 | ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 | |
24398 | ac_status=$? | |
24399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24400 | test $ac_status = 0; }; then | |
24401 | pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` | |
24402 | else | |
24403 | pkg_failed=yes | |
24404 | fi | |
24405 | else | |
24406 | pkg_failed=untried | |
24407 | fi | |
24408 | ||
24409 | ||
24410 | ||
24411 | if test $pkg_failed = yes; then | |
24412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24413 | $as_echo "no" >&6; } | |
24414 | ||
24415 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
24416 | _pkg_short_errors_supported=yes | |
24417 | else | |
24418 | _pkg_short_errors_supported=no | |
24419 | fi | |
24420 | if test $_pkg_short_errors_supported = yes; then | |
24421 | DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDBUS" 2>&1` | |
24422 | else | |
24423 | DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDBUS" 2>&1` | |
24424 | fi | |
24425 | # Put the nasty error message in config.log where it belongs | |
24426 | echo "$DBUS_PKG_ERRORS" >&5 | |
24427 | ||
24428 | HAVE_DBUS=no | |
24429 | elif test $pkg_failed = untried; then | |
24430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24431 | $as_echo "no" >&6; } | |
24432 | HAVE_DBUS=no | |
24433 | else | |
24434 | DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS | |
24435 | DBUS_LIBS=$pkg_cv_DBUS_LIBS | |
24436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24437 | $as_echo "yes" >&6; } | |
24438 | HAVE_DBUS=yes | |
24439 | fi | |
24440 | if test "x$HAVE_DBUS" = xyes; then | |
24441 | ||
24442 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h | |
24443 | ||
24444 | fi | |
24445 | if test "x$HAVE_DBUS" = xyes; then | |
24446 | HAVE_DBUS_TRUE= | |
24447 | HAVE_DBUS_FALSE='#' | |
24448 | else | |
24449 | HAVE_DBUS_TRUE='#' | |
24450 | HAVE_DBUS_FALSE= | |
24451 | fi | |
24452 | ||
24453 | ||
24454 | if test "x$CONFIG_DBUS_API" = xauto; then | |
24455 | CONFIG_DBUS_API="$HAVE_DBUS" | |
24456 | fi | |
24457 | if test "x$CONFIG_DBUS_API" = xyes; then | |
24458 | if ! test "x$HAVE_DBUS" = xyes; then | |
24459 | as_fn_error $? "D-Bus configuration API requested, but D-Bus is not installed." "$LINENO" 5 | |
24460 | fi | |
24461 | ||
24462 | ||
24463 | $as_echo "#define CONFIG_DBUS_API 1" >>confdefs.h | |
24464 | ||
24465 | CONFIG_NEED_DBUS="yes" | |
24466 | fi | |
24467 | if test "x$CONFIG_DBUS_API" = xyes; then | |
24468 | CONFIG_DBUS_API_TRUE= | |
24469 | CONFIG_DBUS_API_FALSE='#' | |
24470 | else | |
24471 | CONFIG_DBUS_API_TRUE='#' | |
24472 | CONFIG_DBUS_API_FALSE= | |
24473 | fi | |
24474 | ||
24475 | ||
24476 | ||
24477 | pkg_failed=no | |
24478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5 | |
24479 | $as_echo_n "checking for HAL... " >&6; } | |
24480 | ||
24481 | if test -n "$HAL_CFLAGS"; then | |
24482 | pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" | |
24483 | elif test -n "$PKG_CONFIG"; then | |
24484 | if test -n "$PKG_CONFIG" && \ | |
24485 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 | |
24486 | ($PKG_CONFIG --exists --print-errors "hal") 2>&5 | |
24487 | ac_status=$? | |
24488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24489 | test $ac_status = 0; }; then | |
24490 | pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` | |
24491 | else | |
24492 | pkg_failed=yes | |
24493 | fi | |
24494 | else | |
24495 | pkg_failed=untried | |
24496 | fi | |
24497 | if test -n "$HAL_LIBS"; then | |
24498 | pkg_cv_HAL_LIBS="$HAL_LIBS" | |
24499 | elif test -n "$PKG_CONFIG"; then | |
24500 | if test -n "$PKG_CONFIG" && \ | |
24501 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 | |
24502 | ($PKG_CONFIG --exists --print-errors "hal") 2>&5 | |
24503 | ac_status=$? | |
24504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24505 | test $ac_status = 0; }; then | |
24506 | pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` | |
24507 | else | |
24508 | pkg_failed=yes | |
24509 | fi | |
24510 | else | |
24511 | pkg_failed=untried | |
24512 | fi | |
24513 | ||
24514 | ||
24515 | ||
24516 | if test $pkg_failed = yes; then | |
24517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24518 | $as_echo "no" >&6; } | |
24519 | ||
24520 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
24521 | _pkg_short_errors_supported=yes | |
24522 | else | |
24523 | _pkg_short_errors_supported=no | |
24524 | fi | |
24525 | if test $_pkg_short_errors_supported = yes; then | |
24526 | HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hal" 2>&1` | |
24527 | else | |
24528 | HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hal" 2>&1` | |
24529 | fi | |
24530 | # Put the nasty error message in config.log where it belongs | |
24531 | echo "$HAL_PKG_ERRORS" >&5 | |
24532 | ||
24533 | HAVE_HAL=no | |
24534 | elif test $pkg_failed = untried; then | |
24535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24536 | $as_echo "no" >&6; } | |
24537 | HAVE_HAL=no | |
24538 | else | |
24539 | HAL_CFLAGS=$pkg_cv_HAL_CFLAGS | |
24540 | HAL_LIBS=$pkg_cv_HAL_LIBS | |
24541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24542 | $as_echo "yes" >&6; } | |
24543 | HAVE_HAL=yes | |
24544 | fi | |
24545 | if test "x$CONFIG_HAL" = xauto; then | |
24546 | CONFIG_HAL="$HAVE_HAL" | |
24547 | fi | |
24548 | if test "x$CONFIG_HAL" = xyes; then | |
24549 | if ! test "x$HAVE_HAL" = xyes; then | |
24550 | as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 | |
24551 | fi | |
24552 | ||
24553 | ||
24554 | $as_echo "#define CONFIG_HAL 1" >>confdefs.h | |
24555 | ||
24556 | CONFIG_NEED_DBUS="yes" | |
24557 | fi | |
24558 | if test "x$CONFIG_HAL" = xyes; then | |
24559 | CONFIG_HAL_TRUE= | |
24560 | CONFIG_HAL_FALSE='#' | |
24561 | else | |
24562 | CONFIG_HAL_TRUE='#' | |
24563 | CONFIG_HAL_FALSE= | |
24564 | fi | |
24565 | ||
24566 | ||
24567 | if test "x$CONFIG_NEED_DBUS" = xyes; then | |
24568 | ||
24569 | $as_echo "#define CONFIG_NEED_DBUS 1" >>confdefs.h | |
24570 | ||
24571 | fi | |
24572 | if test "x$CONFIG_NEED_DBUS" = xyes; then | |
24573 | CONFIG_NEED_DBUS_TRUE= | |
24574 | CONFIG_NEED_DBUS_FALSE='#' | |
24575 | else | |
24576 | CONFIG_NEED_DBUS_TRUE='#' | |
24577 | CONFIG_NEED_DBUS_FALSE= | |
24578 | fi | |
24579 | ||
24580 | ||
24581 | if test "x$CONFIG_WSCONS" = xauto; then | |
24582 | case $host_os in | |
24583 | *openbsd*) | |
24584 | CONFIG_WSCONS=yes; | |
24585 | ;; | |
24586 | *) | |
24587 | CONFIG_WSCONS=no; | |
24588 | ;; | |
24589 | esac | |
24590 | fi | |
24591 | if test "x$CONFIG_WSCONS" = xyes; then | |
24592 | CONFIG_WSCONS_TRUE= | |
24593 | CONFIG_WSCONS_FALSE='#' | |
24594 | else | |
24595 | CONFIG_WSCONS_TRUE='#' | |
24596 | CONFIG_WSCONS_FALSE= | |
24597 | fi | |
24598 | ||
24599 | if test "x$CONFIG_WSCONS" = xyes; then | |
24600 | ||
24601 | $as_echo "#define CONFIG_WSCONS 1" >>confdefs.h | |
24602 | ||
24603 | fi | |
24604 | ||
24605 | if test "x$USE_SIGIO_BY_DEFAULT" = xyes; then | |
24606 | USE_SIGIO_BY_DEFAULT_VALUE=TRUE | |
24607 | else | |
24608 | USE_SIGIO_BY_DEFAULT_VALUE=FALSE | |
24609 | fi | |
24610 | ||
24611 | cat >>confdefs.h <<_ACEOF | |
24612 | #define USE_SIGIO_BY_DEFAULT $USE_SIGIO_BY_DEFAULT_VALUE | |
24613 | _ACEOF | |
24614 | ||
24615 | ||
24616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 | |
24617 | $as_echo_n "checking for glibc...... " >&6; } | |
24618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24619 | /* end confdefs.h. */ | |
24620 | ||
24621 | #include <features.h> | |
24622 | #ifndef __GLIBC__ | |
24623 | #error | |
24624 | #endif | |
24625 | ||
24626 | _ACEOF | |
24627 | if ac_fn_c_try_cpp "$LINENO"; then : | |
24628 | glibc=yes | |
24629 | else | |
24630 | glibc=no | |
24631 | fi | |
24632 | rm -f conftest.err conftest.i conftest.$ac_ext | |
24633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 | |
24634 | $as_echo "$glibc" >&6; } | |
24635 | ||
24636 | for ac_func in clock_gettime | |
24637 | do : | |
24638 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | |
24639 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | |
24640 | cat >>confdefs.h <<_ACEOF | |
24641 | #define HAVE_CLOCK_GETTIME 1 | |
24642 | _ACEOF | |
24643 | have_clock_gettime=yes | |
24644 | else | |
24645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
24646 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
24647 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | |
24648 | $as_echo_n "(cached) " >&6 | |
24649 | else | |
24650 | ac_check_lib_save_LIBS=$LIBS | |
24651 | LIBS="-lrt $LIBS" | |
24652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24653 | /* end confdefs.h. */ | |
24654 | ||
24655 | /* Override any GCC internal prototype to avoid an error. | |
24656 | Use char because int might match the return type of a GCC | |
24657 | builtin and then its argument prototype would still apply. */ | |
24658 | #ifdef __cplusplus | |
24659 | extern "C" | |
24660 | #endif | |
24661 | char clock_gettime (); | |
24662 | int | |
24663 | main () | |
24664 | { | |
24665 | return clock_gettime (); | |
24666 | ; | |
24667 | return 0; | |
24668 | } | |
24669 | _ACEOF | |
24670 | if ac_fn_c_try_link "$LINENO"; then : | |
24671 | ac_cv_lib_rt_clock_gettime=yes | |
24672 | else | |
24673 | ac_cv_lib_rt_clock_gettime=no | |
24674 | fi | |
24675 | rm -f core conftest.err conftest.$ac_objext \ | |
24676 | conftest$ac_exeext conftest.$ac_ext | |
24677 | LIBS=$ac_check_lib_save_LIBS | |
24678 | fi | |
24679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
24680 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
24681 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | |
24682 | have_clock_gettime=-lrt | |
24683 | else | |
24684 | have_clock_gettime=no | |
24685 | fi | |
24686 | ||
24687 | fi | |
24688 | done | |
24689 | ||
24690 | ||
24691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 | |
24692 | $as_echo_n "checking for a useful monotonic clock ...... " >&6; } | |
24693 | ||
24694 | if ! test "x$have_clock_gettime" = xno; then | |
24695 | if ! test "x$have_clock_gettime" = xyes; then | |
24696 | CLOCK_LIBS="$have_clock_gettime" | |
24697 | else | |
24698 | CLOCK_LIBS="" | |
24699 | fi | |
24700 | ||
24701 | LIBS_SAVE="$LIBS" | |
24702 | LIBS="$CLOCK_LIBS" | |
24703 | CPPFLAGS_SAVE="$CPPFLAGS" | |
24704 | ||
24705 | if test x"$glibc" = xyes; then | |
24706 | CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" | |
24707 | fi | |
24708 | ||
24709 | if test "$cross_compiling" = yes; then : | |
24710 | MONOTONIC_CLOCK="cross compiling" | |
24711 | else | |
24712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24713 | /* end confdefs.h. */ | |
24714 | ||
24715 | #include <time.h> | |
24716 | ||
24717 | int main(int argc, char *argv[]) { | |
24718 | struct timespec tp; | |
24719 | ||
24720 | if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) | |
24721 | return 0; | |
24722 | else | |
24723 | return 1; | |
24724 | } | |
24725 | ||
24726 | _ACEOF | |
24727 | if ac_fn_c_try_run "$LINENO"; then : | |
24728 | MONOTONIC_CLOCK=yes | |
24729 | else | |
24730 | MONOTONIC_CLOCK=no | |
24731 | fi | |
24732 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
24733 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
24734 | fi | |
24735 | ||
24736 | ||
24737 | LIBS="$LIBS_SAVE" | |
24738 | CPPFLAGS="$CPPFLAGS_SAVE" | |
24739 | else | |
24740 | MONOTONIC_CLOCK=no | |
24741 | fi | |
24742 | ||
24743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 | |
24744 | $as_echo "$MONOTONIC_CLOCK" >&6; } | |
24745 | ||
24746 | if test "x$MONOTONIC_CLOCK" = xyes; then | |
24747 | ||
24748 | $as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h | |
24749 | ||
24750 | LIBS="$LIBS $CLOCK_LIBS" | |
24751 | fi | |
24752 | ||
24753 | if test "x$XV" = xyes; then | |
24754 | XV_TRUE= | |
24755 | XV_FALSE='#' | |
24756 | else | |
24757 | XV_TRUE='#' | |
24758 | XV_FALSE= | |
24759 | fi | |
24760 | ||
24761 | if test "x$XV" = xyes; then | |
24762 | ||
24763 | $as_echo "#define XV 1" >>confdefs.h | |
24764 | ||
24765 | ||
24766 | $as_echo "#define XvExtension 1" >>confdefs.h | |
24767 | ||
24768 | REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" | |
24769 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" | |
24770 | else | |
24771 | XVMC=no | |
24772 | fi | |
24773 | ||
24774 | if test "x$XVMC" = xyes; then | |
24775 | XVMC_TRUE= | |
24776 | XVMC_FALSE='#' | |
24777 | else | |
24778 | XVMC_TRUE='#' | |
24779 | XVMC_FALSE= | |
24780 | fi | |
24781 | ||
24782 | if test "x$XVMC" = xyes; then | |
24783 | ||
24784 | $as_echo "#define XvMCExtension 1" >>confdefs.h | |
24785 | ||
24786 | fi | |
24787 | ||
24788 | if test "x$XREGISTRY" = xyes; then | |
24789 | XREGISTRY_TRUE= | |
24790 | XREGISTRY_FALSE='#' | |
24791 | else | |
24792 | XREGISTRY_TRUE='#' | |
24793 | XREGISTRY_FALSE= | |
24794 | fi | |
24795 | ||
24796 | if test "x$XREGISTRY" = xyes; then | |
24797 | ||
24798 | $as_echo "#define XREGISTRY 1" >>confdefs.h | |
24799 | ||
24800 | fi | |
24801 | ||
24802 | if test "x$COMPOSITE" = xyes; then | |
24803 | COMPOSITE_TRUE= | |
24804 | COMPOSITE_FALSE='#' | |
24805 | else | |
24806 | COMPOSITE_TRUE='#' | |
24807 | COMPOSITE_FALSE= | |
24808 | fi | |
24809 | ||
24810 | if test "x$COMPOSITE" = xyes; then | |
24811 | ||
24812 | $as_echo "#define COMPOSITE 1" >>confdefs.h | |
24813 | ||
24814 | REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" | |
24815 | COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' | |
24816 | COMPOSITE_INC='-I$(top_srcdir)/composite' | |
24817 | fi | |
24818 | ||
24819 | if test "x$MITSHM" = xauto; then | |
24820 | MITSHM="$ac_cv_sysv_ipc" | |
24821 | fi | |
24822 | if test "x$MITSHM" = xyes; then | |
24823 | MITSHM_TRUE= | |
24824 | MITSHM_FALSE='#' | |
24825 | else | |
24826 | MITSHM_TRUE='#' | |
24827 | MITSHM_FALSE= | |
24828 | fi | |
24829 | ||
24830 | if test "x$MITSHM" = xyes; then | |
24831 | ||
24832 | $as_echo "#define MITSHM 1" >>confdefs.h | |
24833 | ||
24834 | ||
24835 | $as_echo "#define HAS_SHM 1" >>confdefs.h | |
24836 | ||
24837 | fi | |
24838 | ||
24839 | if test "x$RECORD" = xyes; then | |
24840 | RECORD_TRUE= | |
24841 | RECORD_FALSE='#' | |
24842 | else | |
24843 | RECORD_TRUE='#' | |
24844 | RECORD_FALSE= | |
24845 | fi | |
24846 | ||
24847 | if test "x$RECORD" = xyes; then | |
24848 | ||
24849 | $as_echo "#define XRECORD 1" >>confdefs.h | |
24850 | ||
24851 | REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" | |
24852 | RECORD_LIB='$(top_builddir)/record/librecord.la' | |
24853 | fi | |
24854 | ||
24855 | if test "x$SCREENSAVER" = xyes; then | |
24856 | SCREENSAVER_TRUE= | |
24857 | SCREENSAVER_FALSE='#' | |
24858 | else | |
24859 | SCREENSAVER_TRUE='#' | |
24860 | SCREENSAVER_FALSE= | |
24861 | fi | |
24862 | ||
24863 | if test "x$SCREENSAVER" = xyes; then | |
24864 | ||
24865 | $as_echo "#define SCREENSAVER 1" >>confdefs.h | |
24866 | ||
24867 | REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" | |
24868 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" | |
24869 | fi | |
24870 | ||
24871 | if test "x$RES" = xyes; then | |
24872 | RES_TRUE= | |
24873 | RES_FALSE='#' | |
24874 | else | |
24875 | RES_TRUE='#' | |
24876 | RES_FALSE= | |
24877 | fi | |
24878 | ||
24879 | if test "x$RES" = xyes; then | |
24880 | ||
24881 | $as_echo "#define RES 1" >>confdefs.h | |
24882 | ||
24883 | REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" | |
24884 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" | |
24885 | fi | |
24886 | ||
24887 | # The XRes extension may support client ID tracking only if it has | |
24888 | # been specifically enabled. Client ID tracking is implicitly not | |
24889 | # supported if XRes extension is disabled. | |
24890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 | |
24891 | $as_echo_n "checking whether to track client ids... " >&6; } | |
24892 | if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then | |
24893 | ||
24894 | $as_echo "#define CLIENTIDS 1" >>confdefs.h | |
24895 | ||
24896 | else | |
24897 | CLIENTIDS=no | |
24898 | fi | |
24899 | if test "x$CLIENTIDS" = xyes; then | |
24900 | case $host_os in | |
24901 | openbsd*) | |
24902 | SYS_LIBS="$SYS_LIBS -lkvm" | |
24903 | ;; | |
24904 | esac | |
24905 | fi | |
24906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 | |
24907 | $as_echo "$CLIENTIDS" >&6; } | |
24908 | if test "x$CLIENTIDS" = xyes; then | |
24909 | CLIENTIDS_TRUE= | |
24910 | CLIENTIDS_FALSE='#' | |
24911 | else | |
24912 | CLIENTIDS_TRUE='#' | |
24913 | CLIENTIDS_FALSE= | |
24914 | fi | |
24915 | ||
24916 | ||
24917 | if test "x$DRI" = xyes; then | |
24918 | DRI_TRUE= | |
24919 | DRI_FALSE='#' | |
24920 | else | |
24921 | DRI_TRUE='#' | |
24922 | DRI_FALSE= | |
24923 | fi | |
24924 | ||
24925 | if test "x$DRI" = xyes; then | |
24926 | ||
24927 | $as_echo "#define XF86DRI 1" >>confdefs.h | |
24928 | ||
24929 | REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" | |
24930 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" | |
24931 | fi | |
24932 | ||
24933 | ||
24934 | pkg_failed=no | |
24935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5 | |
24936 | $as_echo_n "checking for DRI2PROTO... " >&6; } | |
24937 | ||
24938 | if test -n "$DRI2PROTO_CFLAGS"; then | |
24939 | pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" | |
24940 | elif test -n "$PKG_CONFIG"; then | |
24941 | if test -n "$PKG_CONFIG" && \ | |
24942 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 | |
24943 | ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 | |
24944 | ac_status=$? | |
24945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24946 | test $ac_status = 0; }; then | |
24947 | pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` | |
24948 | else | |
24949 | pkg_failed=yes | |
24950 | fi | |
24951 | else | |
24952 | pkg_failed=untried | |
24953 | fi | |
24954 | if test -n "$DRI2PROTO_LIBS"; then | |
24955 | pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" | |
24956 | elif test -n "$PKG_CONFIG"; then | |
24957 | if test -n "$PKG_CONFIG" && \ | |
24958 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 | |
24959 | ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 | |
24960 | ac_status=$? | |
24961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
24962 | test $ac_status = 0; }; then | |
24963 | pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` | |
24964 | else | |
24965 | pkg_failed=yes | |
24966 | fi | |
24967 | else | |
24968 | pkg_failed=untried | |
24969 | fi | |
24970 | ||
24971 | ||
24972 | ||
24973 | if test $pkg_failed = yes; then | |
24974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24975 | $as_echo "no" >&6; } | |
24976 | ||
24977 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
24978 | _pkg_short_errors_supported=yes | |
24979 | else | |
24980 | _pkg_short_errors_supported=no | |
24981 | fi | |
24982 | if test $_pkg_short_errors_supported = yes; then | |
24983 | DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRI2PROTO" 2>&1` | |
24984 | else | |
24985 | DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRI2PROTO" 2>&1` | |
24986 | fi | |
24987 | # Put the nasty error message in config.log where it belongs | |
24988 | echo "$DRI2PROTO_PKG_ERRORS" >&5 | |
24989 | ||
24990 | HAVE_DRI2PROTO=no | |
24991 | elif test $pkg_failed = untried; then | |
24992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24993 | $as_echo "no" >&6; } | |
24994 | HAVE_DRI2PROTO=no | |
24995 | else | |
24996 | DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS | |
24997 | DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS | |
24998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24999 | $as_echo "yes" >&6; } | |
25000 | HAVE_DRI2PROTO=yes | |
25001 | fi | |
25002 | case "$DRI2,$HAVE_DRI2PROTO" in | |
25003 | yes,no) | |
25004 | as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 | |
25005 | ;; | |
25006 | yes,yes | auto,yes) | |
25007 | ||
25008 | $as_echo "#define DRI2 1" >>confdefs.h | |
25009 | ||
25010 | DRI2=yes | |
25011 | LIBGL="gl >= 9.2.0" | |
25012 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" | |
25013 | ;; | |
25014 | esac | |
25015 | if test "x$DRI2" = xyes; then | |
25016 | DRI2_TRUE= | |
25017 | DRI2_FALSE='#' | |
25018 | else | |
25019 | DRI2_TRUE='#' | |
25020 | DRI2_FALSE= | |
25021 | fi | |
25022 | ||
25023 | ||
25024 | ||
25025 | ||
25026 | # Check whether --with-shared-memory-dir was given. | |
25027 | if test "${with_shared_memory_dir+set}" = set; then : | |
25028 | withval=$with_shared_memory_dir; | |
25029 | else | |
25030 | with_shared_memory_dir=yes | |
25031 | fi | |
25032 | ||
25033 | ||
25034 | shmdirs="/run/shm /var/tmp /tmp" | |
25035 | ||
25036 | case x"$with_shared_memory_dir" in | |
25037 | xyes) | |
25038 | for dir in $shmdirs; do | |
25039 | case x"$with_shared_memory_dir" in | |
25040 | xyes) | |
25041 | echo Checking temp dir "$dir" | |
25042 | if test -d "$dir"; then | |
25043 | with_shared_memory_dir="$dir" | |
25044 | fi | |
25045 | ;; | |
25046 | esac | |
25047 | done | |
25048 | ;; | |
25049 | x/*) | |
25050 | ;; | |
25051 | xno) | |
25052 | ;; | |
25053 | *) | |
25054 | as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5 | |
25055 | ;; | |
25056 | esac | |
25057 | ||
25058 | case x"$with_shared_memory_dir" in | |
25059 | xyes) | |
25060 | as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5 | |
25061 | ;; | |
25062 | xno) | |
25063 | ;; | |
25064 | *) | |
25065 | ||
25066 | cat >>confdefs.h <<_ACEOF | |
25067 | #define SHMDIR "$with_shared_memory_dir" | |
25068 | _ACEOF | |
25069 | ||
25070 | ;; | |
25071 | esac | |
25072 | ||
25073 | # Check whether --enable-xtrans-send-fds was given. | |
25074 | if test "${enable_xtrans_send_fds+set}" = set; then : | |
25075 | enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval | |
25076 | else | |
25077 | XTRANS_SEND_FDS=auto | |
25078 | fi | |
25079 | ||
25080 | ||
25081 | case "x$XTRANS_SEND_FDS" in | |
25082 | xauto) | |
25083 | case "$host_os" in | |
25084 | linux*|solaris*) | |
25085 | XTRANS_SEND_FDS=yes | |
25086 | ;; | |
25087 | *) | |
25088 | XTRANS_SEND_FDS=no | |
25089 | ;; | |
25090 | esac | |
25091 | esac | |
25092 | ||
25093 | case "x$XTRANS_SEND_FDS" in | |
25094 | xyes) | |
25095 | ||
25096 | $as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h | |
25097 | ||
25098 | ;; | |
25099 | esac | |
25100 | ||
25101 | case "$DRI3,$XTRANS_SEND_FDS" in | |
25102 | yes,yes | auto,yes) | |
25103 | ;; | |
25104 | yes,no) | |
25105 | as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 | |
25106 | DRI3=no | |
25107 | ;; | |
25108 | no,*) | |
25109 | ;; | |
25110 | *) | |
25111 | { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 | |
25112 | $as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} | |
25113 | DRI3=no | |
25114 | ;; | |
25115 | esac | |
25116 | ||
25117 | ||
25118 | pkg_failed=no | |
25119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5 | |
25120 | $as_echo_n "checking for DRI3PROTO... " >&6; } | |
25121 | ||
25122 | if test -n "$DRI3PROTO_CFLAGS"; then | |
25123 | pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" | |
25124 | elif test -n "$PKG_CONFIG"; then | |
25125 | if test -n "$PKG_CONFIG" && \ | |
25126 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 | |
25127 | ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 | |
25128 | ac_status=$? | |
25129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25130 | test $ac_status = 0; }; then | |
25131 | pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` | |
25132 | else | |
25133 | pkg_failed=yes | |
25134 | fi | |
25135 | else | |
25136 | pkg_failed=untried | |
25137 | fi | |
25138 | if test -n "$DRI3PROTO_LIBS"; then | |
25139 | pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" | |
25140 | elif test -n "$PKG_CONFIG"; then | |
25141 | if test -n "$PKG_CONFIG" && \ | |
25142 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 | |
25143 | ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 | |
25144 | ac_status=$? | |
25145 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25146 | test $ac_status = 0; }; then | |
25147 | pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` | |
25148 | else | |
25149 | pkg_failed=yes | |
25150 | fi | |
25151 | else | |
25152 | pkg_failed=untried | |
25153 | fi | |
25154 | ||
25155 | ||
25156 | ||
25157 | if test $pkg_failed = yes; then | |
25158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25159 | $as_echo "no" >&6; } | |
25160 | ||
25161 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25162 | _pkg_short_errors_supported=yes | |
25163 | else | |
25164 | _pkg_short_errors_supported=no | |
25165 | fi | |
25166 | if test $_pkg_short_errors_supported = yes; then | |
25167 | DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRI3PROTO" 2>&1` | |
25168 | else | |
25169 | DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRI3PROTO" 2>&1` | |
25170 | fi | |
25171 | # Put the nasty error message in config.log where it belongs | |
25172 | echo "$DRI3PROTO_PKG_ERRORS" >&5 | |
25173 | ||
25174 | HAVE_DRI3PROTO=no | |
25175 | elif test $pkg_failed = untried; then | |
25176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25177 | $as_echo "no" >&6; } | |
25178 | HAVE_DRI3PROTO=no | |
25179 | else | |
25180 | DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS | |
25181 | DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS | |
25182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25183 | $as_echo "yes" >&6; } | |
25184 | HAVE_DRI3PROTO=yes | |
25185 | fi | |
25186 | ||
25187 | case "$DRI3,$HAVE_DRI3PROTO" in | |
25188 | yes,yes | auto,yes) | |
25189 | ;; | |
25190 | yes,no) | |
25191 | as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 | |
25192 | DRI3=no | |
25193 | ;; | |
25194 | no,*) | |
25195 | ;; | |
25196 | *) | |
25197 | { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 | |
25198 | $as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;} | |
25199 | DRI3=no | |
25200 | ;; | |
25201 | esac | |
25202 | ||
25203 | for ac_func in sigaction | |
25204 | do : | |
25205 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" | |
25206 | if test "x$ac_cv_func_sigaction" = xyes; then : | |
25207 | cat >>confdefs.h <<_ACEOF | |
25208 | #define HAVE_SIGACTION 1 | |
25209 | _ACEOF | |
25210 | ||
25211 | fi | |
25212 | done | |
25213 | ||
25214 | ||
25215 | BUSFAULT=no | |
25216 | ||
25217 | case x"$ac_cv_func_sigaction" in | |
25218 | xyes) | |
25219 | ||
25220 | $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h | |
25221 | ||
25222 | BUSFAULT=yes | |
25223 | ;; | |
25224 | esac | |
25225 | ||
25226 | case x"$BUSFAULT" in | |
25227 | xyes) | |
25228 | ||
25229 | $as_echo "#define BUSFAULT 1" >>confdefs.h | |
25230 | ||
25231 | ;; | |
25232 | esac | |
25233 | ||
25234 | if test x"$BUSFAULT" = xyes; then | |
25235 | BUSFAULT_TRUE= | |
25236 | BUSFAULT_FALSE='#' | |
25237 | else | |
25238 | BUSFAULT_TRUE='#' | |
25239 | BUSFAULT_FALSE= | |
25240 | fi | |
25241 | ||
25242 | ||
25243 | ||
25244 | pkg_failed=no | |
25245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5 | |
25246 | $as_echo_n "checking for XSHMFENCE... " >&6; } | |
25247 | ||
25248 | if test -n "$XSHMFENCE_CFLAGS"; then | |
25249 | pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" | |
25250 | elif test -n "$PKG_CONFIG"; then | |
25251 | if test -n "$PKG_CONFIG" && \ | |
25252 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XSHMFENCE\""; } >&5 | |
25253 | ($PKG_CONFIG --exists --print-errors "$XSHMFENCE") 2>&5 | |
25254 | ac_status=$? | |
25255 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25256 | test $ac_status = 0; }; then | |
25257 | pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$XSHMFENCE" 2>/dev/null` | |
25258 | else | |
25259 | pkg_failed=yes | |
25260 | fi | |
25261 | else | |
25262 | pkg_failed=untried | |
25263 | fi | |
25264 | if test -n "$XSHMFENCE_LIBS"; then | |
25265 | pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" | |
25266 | elif test -n "$PKG_CONFIG"; then | |
25267 | if test -n "$PKG_CONFIG" && \ | |
25268 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XSHMFENCE\""; } >&5 | |
25269 | ($PKG_CONFIG --exists --print-errors "$XSHMFENCE") 2>&5 | |
25270 | ac_status=$? | |
25271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25272 | test $ac_status = 0; }; then | |
25273 | pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$XSHMFENCE" 2>/dev/null` | |
25274 | else | |
25275 | pkg_failed=yes | |
25276 | fi | |
25277 | else | |
25278 | pkg_failed=untried | |
25279 | fi | |
25280 | ||
25281 | ||
25282 | ||
25283 | if test $pkg_failed = yes; then | |
25284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25285 | $as_echo "no" >&6; } | |
25286 | ||
25287 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25288 | _pkg_short_errors_supported=yes | |
25289 | else | |
25290 | _pkg_short_errors_supported=no | |
25291 | fi | |
25292 | if test $_pkg_short_errors_supported = yes; then | |
25293 | XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XSHMFENCE" 2>&1` | |
25294 | else | |
25295 | XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XSHMFENCE" 2>&1` | |
25296 | fi | |
25297 | # Put the nasty error message in config.log where it belongs | |
25298 | echo "$XSHMFENCE_PKG_ERRORS" >&5 | |
25299 | ||
25300 | HAVE_XSHMFENCE=no | |
25301 | elif test $pkg_failed = untried; then | |
25302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25303 | $as_echo "no" >&6; } | |
25304 | HAVE_XSHMFENCE=no | |
25305 | else | |
25306 | XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS | |
25307 | XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS | |
25308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25309 | $as_echo "yes" >&6; } | |
25310 | HAVE_XSHMFENCE=yes | |
25311 | fi | |
25312 | ||
25313 | if test "x$HAVE_XSHMFENCE" = xyes; then | |
25314 | XSHMFENCE_TRUE= | |
25315 | XSHMFENCE_FALSE='#' | |
25316 | else | |
25317 | XSHMFENCE_TRUE='#' | |
25318 | XSHMFENCE_FALSE= | |
25319 | fi | |
25320 | ||
25321 | ||
25322 | case x"$HAVE_XSHMFENCE" in | |
25323 | xyes) | |
25324 | ||
25325 | $as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h | |
25326 | ||
25327 | REQUIRED_LIBS="$REQUIRED_LIBS xshmfence" | |
25328 | ;; | |
25329 | esac | |
25330 | ||
25331 | ||
25332 | case "$DRI3,$HAVE_XSHMFENCE" in | |
25333 | yes,yes | auto,yes) | |
25334 | ;; | |
25335 | yes,no) | |
25336 | as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 | |
25337 | DRI3=no | |
25338 | ;; | |
25339 | no,*) | |
25340 | ;; | |
25341 | *) | |
25342 | { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 | |
25343 | $as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;} | |
25344 | DRI3=no | |
25345 | ;; | |
25346 | esac | |
25347 | ||
25348 | case x"$DRI3" in | |
25349 | xyes|xauto) | |
25350 | DRI3=yes | |
25351 | ||
25352 | $as_echo "#define DRI3 1" >>confdefs.h | |
25353 | ||
25354 | DRI3_LIB='$(top_builddir)/dri3/libdri3.la' | |
25355 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" | |
25356 | { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 | |
25357 | $as_echo "$as_me: DRI3 enabled" >&6;}; | |
25358 | ;; | |
25359 | esac | |
25360 | ||
25361 | if test "x$DRI3" = xyes; then | |
25362 | DRI3_TRUE= | |
25363 | DRI3_FALSE='#' | |
25364 | else | |
25365 | DRI3_TRUE='#' | |
25366 | DRI3_FALSE= | |
25367 | fi | |
25368 | ||
25369 | ||
25370 | if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes; then | |
25371 | if test "x$DRM" = xyes; then | |
25372 | ||
25373 | $as_echo "#define WITH_LIBDRM 1" >>confdefs.h | |
25374 | ||
25375 | ||
25376 | pkg_failed=no | |
25377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 | |
25378 | $as_echo_n "checking for LIBDRM... " >&6; } | |
25379 | ||
25380 | if test -n "$LIBDRM_CFLAGS"; then | |
25381 | pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" | |
25382 | elif test -n "$PKG_CONFIG"; then | |
25383 | if test -n "$PKG_CONFIG" && \ | |
25384 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 | |
25385 | ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 | |
25386 | ac_status=$? | |
25387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25388 | test $ac_status = 0; }; then | |
25389 | pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` | |
25390 | else | |
25391 | pkg_failed=yes | |
25392 | fi | |
25393 | else | |
25394 | pkg_failed=untried | |
25395 | fi | |
25396 | if test -n "$LIBDRM_LIBS"; then | |
25397 | pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" | |
25398 | elif test -n "$PKG_CONFIG"; then | |
25399 | if test -n "$PKG_CONFIG" && \ | |
25400 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 | |
25401 | ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 | |
25402 | ac_status=$? | |
25403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25404 | test $ac_status = 0; }; then | |
25405 | pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` | |
25406 | else | |
25407 | pkg_failed=yes | |
25408 | fi | |
25409 | else | |
25410 | pkg_failed=untried | |
25411 | fi | |
25412 | ||
25413 | ||
25414 | ||
25415 | if test $pkg_failed = yes; then | |
25416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25417 | $as_echo "no" >&6; } | |
25418 | ||
25419 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25420 | _pkg_short_errors_supported=yes | |
25421 | else | |
25422 | _pkg_short_errors_supported=no | |
25423 | fi | |
25424 | if test $_pkg_short_errors_supported = yes; then | |
25425 | LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDRM" 2>&1` | |
25426 | else | |
25427 | LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDRM" 2>&1` | |
25428 | fi | |
25429 | # Put the nasty error message in config.log where it belongs | |
25430 | echo "$LIBDRM_PKG_ERRORS" >&5 | |
25431 | ||
25432 | as_fn_error $? "Package requirements ($LIBDRM) were not met: | |
25433 | ||
25434 | $LIBDRM_PKG_ERRORS | |
25435 | ||
25436 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
25437 | installed software in a non-standard prefix. | |
25438 | ||
25439 | Alternatively, you may set the environment variables LIBDRM_CFLAGS | |
25440 | and LIBDRM_LIBS to avoid the need to call pkg-config. | |
25441 | See the pkg-config man page for more details." "$LINENO" 5 | |
25442 | ||
25443 | elif test $pkg_failed = untried; then | |
25444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25445 | $as_echo "no" >&6; } | |
25446 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
25447 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
25448 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
25449 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
25450 | path to pkg-config. | |
25451 | ||
25452 | Alternatively, you may set the environment variables LIBDRM_CFLAGS | |
25453 | and LIBDRM_LIBS to avoid the need to call pkg-config. | |
25454 | See the pkg-config man page for more details. | |
25455 | ||
25456 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
25457 | See \`config.log' for more details" "$LINENO" 5; } | |
25458 | ||
25459 | else | |
25460 | LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS | |
25461 | LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS | |
25462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25463 | $as_echo "yes" >&6; } | |
25464 | ||
25465 | fi | |
25466 | fi | |
25467 | fi | |
25468 | ||
25469 | if test "x$DRI2" = xyes; then | |
25470 | save_CFLAGS=$CFLAGS | |
25471 | CFLAGS="$GL_CFLAGS $LIBDRM_CFLAGS" | |
25472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25473 | /* end confdefs.h. */ | |
25474 | #include <GL/gl.h> | |
25475 | #include <GL/internal/dri_interface.h> | |
25476 | #ifndef __DRI_DRI2 | |
25477 | #error DRI2 extension not available. | |
25478 | #endif | |
25479 | _ACEOF | |
25480 | if ac_fn_c_try_compile "$LINENO"; then : | |
25481 | HAVE_DRI2EXTENSION=yes | |
25482 | else | |
25483 | HAVE_DRI2EXTENSION=no | |
25484 | fi | |
25485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25486 | CFLAGS=$save_CFLAGS | |
25487 | if test "x$HAVE_DRI2EXTENSION" = xyes; then | |
25488 | ||
25489 | $as_echo "#define DRI2_AIGLX 1" >>confdefs.h | |
25490 | ||
25491 | DRI2_AIGLX=yes | |
25492 | else | |
25493 | { $as_echo "$as_me:${as_lineno-$LINENO}: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&5 | |
25494 | $as_echo "$as_me: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&6;} | |
25495 | DRI2_AIGLX=no | |
25496 | fi | |
25497 | fi | |
25498 | if test "x$DRI2_AIGLX" = xyes; then | |
25499 | DRI2_AIGLX_TRUE= | |
25500 | DRI2_AIGLX_FALSE='#' | |
25501 | else | |
25502 | DRI2_AIGLX_TRUE='#' | |
25503 | DRI2_AIGLX_FALSE= | |
25504 | fi | |
25505 | ||
25506 | ||
25507 | if test "x$GLX" = xyes; then | |
25508 | ||
25509 | pkg_failed=no | |
25510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 | |
25511 | $as_echo_n "checking for XLIB... " >&6; } | |
25512 | ||
25513 | if test -n "$XLIB_CFLAGS"; then | |
25514 | pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" | |
25515 | elif test -n "$PKG_CONFIG"; then | |
25516 | if test -n "$PKG_CONFIG" && \ | |
25517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 | |
25518 | ($PKG_CONFIG --exists --print-errors "x11") 2>&5 | |
25519 | ac_status=$? | |
25520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25521 | test $ac_status = 0; }; then | |
25522 | pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` | |
25523 | else | |
25524 | pkg_failed=yes | |
25525 | fi | |
25526 | else | |
25527 | pkg_failed=untried | |
25528 | fi | |
25529 | if test -n "$XLIB_LIBS"; then | |
25530 | pkg_cv_XLIB_LIBS="$XLIB_LIBS" | |
25531 | elif test -n "$PKG_CONFIG"; then | |
25532 | if test -n "$PKG_CONFIG" && \ | |
25533 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 | |
25534 | ($PKG_CONFIG --exists --print-errors "x11") 2>&5 | |
25535 | ac_status=$? | |
25536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25537 | test $ac_status = 0; }; then | |
25538 | pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` | |
25539 | else | |
25540 | pkg_failed=yes | |
25541 | fi | |
25542 | else | |
25543 | pkg_failed=untried | |
25544 | fi | |
25545 | ||
25546 | ||
25547 | ||
25548 | if test $pkg_failed = yes; then | |
25549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25550 | $as_echo "no" >&6; } | |
25551 | ||
25552 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25553 | _pkg_short_errors_supported=yes | |
25554 | else | |
25555 | _pkg_short_errors_supported=no | |
25556 | fi | |
25557 | if test $_pkg_short_errors_supported = yes; then | |
25558 | XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` | |
25559 | else | |
25560 | XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` | |
25561 | fi | |
25562 | # Put the nasty error message in config.log where it belongs | |
25563 | echo "$XLIB_PKG_ERRORS" >&5 | |
25564 | ||
25565 | as_fn_error $? "Package requirements (x11) were not met: | |
25566 | ||
25567 | $XLIB_PKG_ERRORS | |
25568 | ||
25569 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
25570 | installed software in a non-standard prefix. | |
25571 | ||
25572 | Alternatively, you may set the environment variables XLIB_CFLAGS | |
25573 | and XLIB_LIBS to avoid the need to call pkg-config. | |
25574 | See the pkg-config man page for more details." "$LINENO" 5 | |
25575 | ||
25576 | elif test $pkg_failed = untried; then | |
25577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25578 | $as_echo "no" >&6; } | |
25579 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
25580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
25581 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
25582 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
25583 | path to pkg-config. | |
25584 | ||
25585 | Alternatively, you may set the environment variables XLIB_CFLAGS | |
25586 | and XLIB_LIBS to avoid the need to call pkg-config. | |
25587 | See the pkg-config man page for more details. | |
25588 | ||
25589 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
25590 | See \`config.log' for more details" "$LINENO" 5; } | |
25591 | ||
25592 | else | |
25593 | XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS | |
25594 | XLIB_LIBS=$pkg_cv_XLIB_LIBS | |
25595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25596 | $as_echo "yes" >&6; } | |
25597 | ||
25598 | fi | |
25599 | ||
25600 | pkg_failed=no | |
25601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 | |
25602 | $as_echo_n "checking for GL... " >&6; } | |
25603 | ||
25604 | if test -n "$GL_CFLAGS"; then | |
25605 | pkg_cv_GL_CFLAGS="$GL_CFLAGS" | |
25606 | elif test -n "$PKG_CONFIG"; then | |
25607 | if test -n "$PKG_CONFIG" && \ | |
25608 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 | |
25609 | ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 | |
25610 | ac_status=$? | |
25611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25612 | test $ac_status = 0; }; then | |
25613 | pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` | |
25614 | else | |
25615 | pkg_failed=yes | |
25616 | fi | |
25617 | else | |
25618 | pkg_failed=untried | |
25619 | fi | |
25620 | if test -n "$GL_LIBS"; then | |
25621 | pkg_cv_GL_LIBS="$GL_LIBS" | |
25622 | elif test -n "$PKG_CONFIG"; then | |
25623 | if test -n "$PKG_CONFIG" && \ | |
25624 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 | |
25625 | ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 | |
25626 | ac_status=$? | |
25627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25628 | test $ac_status = 0; }; then | |
25629 | pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` | |
25630 | else | |
25631 | pkg_failed=yes | |
25632 | fi | |
25633 | else | |
25634 | pkg_failed=untried | |
25635 | fi | |
25636 | ||
25637 | ||
25638 | ||
25639 | if test $pkg_failed = yes; then | |
25640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25641 | $as_echo "no" >&6; } | |
25642 | ||
25643 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25644 | _pkg_short_errors_supported=yes | |
25645 | else | |
25646 | _pkg_short_errors_supported=no | |
25647 | fi | |
25648 | if test $_pkg_short_errors_supported = yes; then | |
25649 | GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBGL" 2>&1` | |
25650 | else | |
25651 | GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBGL" 2>&1` | |
25652 | fi | |
25653 | # Put the nasty error message in config.log where it belongs | |
25654 | echo "$GL_PKG_ERRORS" >&5 | |
25655 | ||
25656 | as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: | |
25657 | ||
25658 | $GL_PKG_ERRORS | |
25659 | ||
25660 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
25661 | installed software in a non-standard prefix. | |
25662 | ||
25663 | Alternatively, you may set the environment variables GL_CFLAGS | |
25664 | and GL_LIBS to avoid the need to call pkg-config. | |
25665 | See the pkg-config man page for more details." "$LINENO" 5 | |
25666 | ||
25667 | elif test $pkg_failed = untried; then | |
25668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25669 | $as_echo "no" >&6; } | |
25670 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
25671 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
25672 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
25673 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
25674 | path to pkg-config. | |
25675 | ||
25676 | Alternatively, you may set the environment variables GL_CFLAGS | |
25677 | and GL_LIBS to avoid the need to call pkg-config. | |
25678 | See the pkg-config man page for more details. | |
25679 | ||
25680 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
25681 | See \`config.log' for more details" "$LINENO" 5; } | |
25682 | ||
25683 | else | |
25684 | GL_CFLAGS=$pkg_cv_GL_CFLAGS | |
25685 | GL_LIBS=$pkg_cv_GL_LIBS | |
25686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25687 | $as_echo "yes" >&6; } | |
25688 | ||
25689 | fi | |
25690 | ||
25691 | ||
25692 | $as_echo "#define GLXEXT 1" >>confdefs.h | |
25693 | ||
25694 | GLX_LIBS='$(top_builddir)/glx/libglx.la' | |
25695 | GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" | |
25696 | else | |
25697 | GLX=no | |
25698 | fi | |
25699 | if test "x$GLX" = xyes; then | |
25700 | GLX_TRUE= | |
25701 | GLX_FALSE='#' | |
25702 | else | |
25703 | GLX_TRUE='#' | |
25704 | GLX_FALSE= | |
25705 | fi | |
25706 | ||
25707 | ||
25708 | if test "x$GLX" = xno; then | |
25709 | AIGLX=no | |
25710 | fi | |
25711 | ||
25712 | if test "x$AIGLX" = xyes -a \( "x$DRI2" = xyes \); then | |
25713 | ||
25714 | $as_echo "#define AIGLX 1" >>confdefs.h | |
25715 | ||
25716 | fi | |
25717 | if { test "x$DRI2" = xyes; } && test "x$AIGLX" = xyes; then | |
25718 | AIGLX_DRI_LOADER_TRUE= | |
25719 | AIGLX_DRI_LOADER_FALSE='#' | |
25720 | else | |
25721 | AIGLX_DRI_LOADER_TRUE='#' | |
25722 | AIGLX_DRI_LOADER_FALSE= | |
25723 | fi | |
25724 | ||
25725 | ||
25726 | if test "x$GLX_USE_TLS" = xyes ; then | |
25727 | GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS" | |
25728 | GLX_SYS_LIBS="$GLX_SYS_LIBS -lpthread" | |
25729 | fi | |
25730 | ||
25731 | ||
25732 | ||
25733 | if test "x$PRESENT" = xyes; then | |
25734 | PRESENT_TRUE= | |
25735 | PRESENT_FALSE='#' | |
25736 | else | |
25737 | PRESENT_TRUE='#' | |
25738 | PRESENT_FALSE= | |
25739 | fi | |
25740 | ||
25741 | if test "x$PRESENT" = xyes; then | |
25742 | ||
25743 | $as_echo "#define PRESENT 1" >>confdefs.h | |
25744 | ||
25745 | REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" | |
25746 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" | |
25747 | PRESENT_INC='-I$(top_srcdir)/present' | |
25748 | PRESENT_LIB='$(top_builddir)/present/libpresent.la' | |
25749 | fi | |
25750 | ||
25751 | if test "x$XINERAMA" = xyes; then | |
25752 | XINERAMA_TRUE= | |
25753 | XINERAMA_FALSE='#' | |
25754 | else | |
25755 | XINERAMA_TRUE='#' | |
25756 | XINERAMA_FALSE= | |
25757 | fi | |
25758 | ||
25759 | if test "x$XINERAMA" = xyes; then | |
25760 | ||
25761 | $as_echo "#define XINERAMA 1" >>confdefs.h | |
25762 | ||
25763 | ||
25764 | $as_echo "#define PANORAMIX 1" >>confdefs.h | |
25765 | ||
25766 | REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" | |
25767 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" | |
25768 | fi | |
25769 | ||
25770 | if test "x$XACE" = xyes; then | |
25771 | XACE_TRUE= | |
25772 | XACE_FALSE='#' | |
25773 | else | |
25774 | XACE_TRUE='#' | |
25775 | XACE_FALSE= | |
25776 | fi | |
25777 | ||
25778 | if test "x$XACE" = xyes; then | |
25779 | ||
25780 | $as_echo "#define XACE 1" >>confdefs.h | |
25781 | ||
25782 | fi | |
25783 | ||
25784 | if test "x$XSELINUX" = xyes; then | |
25785 | XSELINUX_TRUE= | |
25786 | XSELINUX_FALSE='#' | |
25787 | else | |
25788 | XSELINUX_TRUE='#' | |
25789 | XSELINUX_FALSE= | |
25790 | fi | |
25791 | ||
25792 | if test "x$XSELINUX" = xyes; then | |
25793 | if test "x$XACE" != xyes; then | |
25794 | as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 | |
25795 | fi | |
25796 | for ac_header in libaudit.h | |
25797 | do : | |
25798 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | |
25799 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | |
25800 | cat >>confdefs.h <<_ACEOF | |
25801 | #define HAVE_LIBAUDIT_H 1 | |
25802 | _ACEOF | |
25803 | ||
25804 | else | |
25805 | as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 | |
25806 | fi | |
25807 | ||
25808 | done | |
25809 | ||
25810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 | |
25811 | $as_echo_n "checking for audit_open in -laudit... " >&6; } | |
25812 | if ${ac_cv_lib_audit_audit_open+:} false; then : | |
25813 | $as_echo_n "(cached) " >&6 | |
25814 | else | |
25815 | ac_check_lib_save_LIBS=$LIBS | |
25816 | LIBS="-laudit $LIBS" | |
25817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25818 | /* end confdefs.h. */ | |
25819 | ||
25820 | /* Override any GCC internal prototype to avoid an error. | |
25821 | Use char because int might match the return type of a GCC | |
25822 | builtin and then its argument prototype would still apply. */ | |
25823 | #ifdef __cplusplus | |
25824 | extern "C" | |
25825 | #endif | |
25826 | char audit_open (); | |
25827 | int | |
25828 | main () | |
25829 | { | |
25830 | return audit_open (); | |
25831 | ; | |
25832 | return 0; | |
25833 | } | |
25834 | _ACEOF | |
25835 | if ac_fn_c_try_link "$LINENO"; then : | |
25836 | ac_cv_lib_audit_audit_open=yes | |
25837 | else | |
25838 | ac_cv_lib_audit_audit_open=no | |
25839 | fi | |
25840 | rm -f core conftest.err conftest.$ac_objext \ | |
25841 | conftest$ac_exeext conftest.$ac_ext | |
25842 | LIBS=$ac_check_lib_save_LIBS | |
25843 | fi | |
25844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 | |
25845 | $as_echo "$ac_cv_lib_audit_audit_open" >&6; } | |
25846 | if test "x$ac_cv_lib_audit_audit_open" = xyes; then : | |
25847 | cat >>confdefs.h <<_ACEOF | |
25848 | #define HAVE_LIBAUDIT 1 | |
25849 | _ACEOF | |
25850 | ||
25851 | LIBS="-laudit $LIBS" | |
25852 | ||
25853 | else | |
25854 | as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 | |
25855 | fi | |
25856 | ||
25857 | ||
25858 | pkg_failed=no | |
25859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5 | |
25860 | $as_echo_n "checking for SELINUX... " >&6; } | |
25861 | ||
25862 | if test -n "$SELINUX_CFLAGS"; then | |
25863 | pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" | |
25864 | elif test -n "$PKG_CONFIG"; then | |
25865 | if test -n "$PKG_CONFIG" && \ | |
25866 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 | |
25867 | ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 | |
25868 | ac_status=$? | |
25869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25870 | test $ac_status = 0; }; then | |
25871 | pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` | |
25872 | else | |
25873 | pkg_failed=yes | |
25874 | fi | |
25875 | else | |
25876 | pkg_failed=untried | |
25877 | fi | |
25878 | if test -n "$SELINUX_LIBS"; then | |
25879 | pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" | |
25880 | elif test -n "$PKG_CONFIG"; then | |
25881 | if test -n "$PKG_CONFIG" && \ | |
25882 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 | |
25883 | ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 | |
25884 | ac_status=$? | |
25885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
25886 | test $ac_status = 0; }; then | |
25887 | pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` | |
25888 | else | |
25889 | pkg_failed=yes | |
25890 | fi | |
25891 | else | |
25892 | pkg_failed=untried | |
25893 | fi | |
25894 | ||
25895 | ||
25896 | ||
25897 | if test $pkg_failed = yes; then | |
25898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25899 | $as_echo "no" >&6; } | |
25900 | ||
25901 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25902 | _pkg_short_errors_supported=yes | |
25903 | else | |
25904 | _pkg_short_errors_supported=no | |
25905 | fi | |
25906 | if test $_pkg_short_errors_supported = yes; then | |
25907 | SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBSELINUX" 2>&1` | |
25908 | else | |
25909 | SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBSELINUX" 2>&1` | |
25910 | fi | |
25911 | # Put the nasty error message in config.log where it belongs | |
25912 | echo "$SELINUX_PKG_ERRORS" >&5 | |
25913 | ||
25914 | as_fn_error $? "Package requirements ($LIBSELINUX) were not met: | |
25915 | ||
25916 | $SELINUX_PKG_ERRORS | |
25917 | ||
25918 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
25919 | installed software in a non-standard prefix. | |
25920 | ||
25921 | Alternatively, you may set the environment variables SELINUX_CFLAGS | |
25922 | and SELINUX_LIBS to avoid the need to call pkg-config. | |
25923 | See the pkg-config man page for more details." "$LINENO" 5 | |
25924 | ||
25925 | elif test $pkg_failed = untried; then | |
25926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
25927 | $as_echo "no" >&6; } | |
25928 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
25929 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
25930 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
25931 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
25932 | path to pkg-config. | |
25933 | ||
25934 | Alternatively, you may set the environment variables SELINUX_CFLAGS | |
25935 | and SELINUX_LIBS to avoid the need to call pkg-config. | |
25936 | See the pkg-config man page for more details. | |
25937 | ||
25938 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
25939 | See \`config.log' for more details" "$LINENO" 5; } | |
25940 | ||
25941 | else | |
25942 | SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS | |
25943 | SELINUX_LIBS=$pkg_cv_SELINUX_LIBS | |
25944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
25945 | $as_echo "yes" >&6; } | |
25946 | ||
25947 | fi | |
25948 | SELINUX_LIBS="$SELINUX_LIBS -laudit" | |
25949 | ||
25950 | $as_echo "#define XSELINUX 1" >>confdefs.h | |
25951 | ||
25952 | fi | |
25953 | ||
25954 | if test "x$XCSECURITY" = xyes; then | |
25955 | XCSECURITY_TRUE= | |
25956 | XCSECURITY_FALSE='#' | |
25957 | else | |
25958 | XCSECURITY_TRUE='#' | |
25959 | XCSECURITY_FALSE= | |
25960 | fi | |
25961 | ||
25962 | if test "x$XCSECURITY" = xyes; then | |
25963 | if test "x$XACE" != xyes; then | |
25964 | as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 | |
25965 | fi | |
25966 | ||
25967 | $as_echo "#define XCSECURITY 1" >>confdefs.h | |
25968 | ||
25969 | fi | |
25970 | ||
25971 | if test "x$DBE" = xyes; then | |
25972 | DBE_TRUE= | |
25973 | DBE_FALSE='#' | |
25974 | else | |
25975 | DBE_TRUE='#' | |
25976 | DBE_FALSE= | |
25977 | fi | |
25978 | ||
25979 | if test "x$DBE" = xyes; then | |
25980 | ||
25981 | $as_echo "#define DBE 1" >>confdefs.h | |
25982 | ||
25983 | DBE_LIB='$(top_builddir)/dbe/libdbe.la' | |
25984 | DBE_INC='-I$(top_srcdir)/dbe' | |
25985 | fi | |
25986 | ||
25987 | if test "x$XF86BIGFONT" = xyes; then | |
25988 | XF86BIGFONT_TRUE= | |
25989 | XF86BIGFONT_FALSE='#' | |
25990 | else | |
25991 | XF86BIGFONT_TRUE='#' | |
25992 | XF86BIGFONT_FALSE= | |
25993 | fi | |
25994 | ||
25995 | if test "x$XF86BIGFONT" = xyes; then | |
25996 | ||
25997 | $as_echo "#define XF86BIGFONT 1" >>confdefs.h | |
25998 | ||
25999 | REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" | |
26000 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" | |
26001 | fi | |
26002 | ||
26003 | if test "x$DPMSExtension" = xyes; then | |
26004 | DPMSExtension_TRUE= | |
26005 | DPMSExtension_FALSE='#' | |
26006 | else | |
26007 | DPMSExtension_TRUE='#' | |
26008 | DPMSExtension_FALSE= | |
26009 | fi | |
26010 | ||
26011 | if test "x$DPMSExtension" = xyes; then | |
26012 | ||
26013 | $as_echo "#define DPMSExtension 1" >>confdefs.h | |
26014 | ||
26015 | fi | |
26016 | ||
26017 | ||
26018 | $as_echo "#define RENDER 1" >>confdefs.h | |
26019 | ||
26020 | RENDER_LIB='$(top_builddir)/render/librender.la' | |
26021 | RENDER_INC='-I$(top_srcdir)/render' | |
26022 | ||
26023 | ||
26024 | $as_echo "#define RANDR 1" >>confdefs.h | |
26025 | ||
26026 | RANDR_LIB='$(top_builddir)/randr/librandr.la' | |
26027 | RANDR_INC='-I$(top_srcdir)/randr' | |
26028 | ||
26029 | ||
26030 | $as_echo "#define XFIXES 1" >>confdefs.h | |
26031 | ||
26032 | FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' | |
26033 | FIXES_INC='-I$(top_srcdir)/xfixes' | |
26034 | ||
26035 | ||
26036 | $as_echo "#define DAMAGE 1" >>confdefs.h | |
26037 | ||
26038 | DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' | |
26039 | DAMAGE_INC='-I$(top_srcdir)/damageext' | |
26040 | MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' | |
26041 | MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' | |
26042 | ||
26043 | # XINPUT extension is integral part of the server | |
26044 | ||
26045 | $as_echo "#define XINPUT 1" >>confdefs.h | |
26046 | ||
26047 | XI_LIB='$(top_builddir)/Xi/libXi.la' | |
26048 | XI_INC='-I$(top_srcdir)/Xi' | |
26049 | ||
26050 | if test "x$XF86UTILS" = xyes; then | |
26051 | XF86UTILS_TRUE= | |
26052 | XF86UTILS_FALSE='#' | |
26053 | else | |
26054 | XF86UTILS_TRUE='#' | |
26055 | XF86UTILS_FALSE= | |
26056 | fi | |
26057 | ||
26058 | if test "x$VGAHW" = xyes; then | |
26059 | VGAHW_TRUE= | |
26060 | VGAHW_FALSE='#' | |
26061 | else | |
26062 | VGAHW_TRUE='#' | |
26063 | VGAHW_FALSE= | |
26064 | fi | |
26065 | ||
26066 | if test "x$VBE" = xyes; then | |
26067 | VBE_TRUE= | |
26068 | VBE_FALSE='#' | |
26069 | else | |
26070 | VBE_TRUE='#' | |
26071 | VBE_FALSE= | |
26072 | fi | |
26073 | ||
26074 | if test "x$INT10MODULE" = xyes; then | |
26075 | INT10MODULE_TRUE= | |
26076 | INT10MODULE_FALSE='#' | |
26077 | else | |
26078 | INT10MODULE_TRUE='#' | |
26079 | INT10MODULE_FALSE= | |
26080 | fi | |
26081 | ||
26082 | ||
26083 | ||
26084 | $as_echo "#define SHAPE 1" >>confdefs.h | |
26085 | ||
26086 | ||
26087 | ||
26088 | prefix_NONE= | |
26089 | exec_prefix_NONE= | |
26090 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
26091 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
26092 | eval ac_define_dir="\"$XKBPATH\"" | |
26093 | eval ac_define_dir="\"$ac_define_dir\"" | |
26094 | XKB_BASE_DIRECTORY="$ac_define_dir" | |
26095 | ||
26096 | ||
26097 | cat >>confdefs.h <<_ACEOF | |
26098 | #define XKB_BASE_DIRECTORY "$ac_define_dir" | |
26099 | _ACEOF | |
26100 | ||
26101 | test "$prefix_NONE" && prefix=NONE | |
26102 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
26103 | ||
26104 | ||
26105 | # Check whether --with-xkb-bin-directory was given. | |
26106 | if test "${with_xkb_bin_directory+set}" = set; then : | |
26107 | withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" | |
26108 | else | |
26109 | XKB_BIN_DIRECTORY="$bindir" | |
26110 | fi | |
26111 | ||
26112 | ||
26113 | ||
26114 | prefix_NONE= | |
26115 | exec_prefix_NONE= | |
26116 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
26117 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
26118 | eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" | |
26119 | eval ac_define_dir="\"$ac_define_dir\"" | |
26120 | XKB_BIN_DIRECTORY="$ac_define_dir" | |
26121 | ||
26122 | ||
26123 | cat >>confdefs.h <<_ACEOF | |
26124 | #define XKB_BIN_DIRECTORY "$ac_define_dir" | |
26125 | _ACEOF | |
26126 | ||
26127 | test "$prefix_NONE" && prefix=NONE | |
26128 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
26129 | ||
26130 | ||
26131 | XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` | |
26132 | if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then | |
26133 | XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" | |
26134 | fi | |
26135 | ||
26136 | ||
26137 | XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` | |
26138 | XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` | |
26139 | ||
26140 | prefix_NONE= | |
26141 | exec_prefix_NONE= | |
26142 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
26143 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
26144 | eval ac_define_dir="\"$XKBOUTPUT\"" | |
26145 | eval ac_define_dir="\"$ac_define_dir\"" | |
26146 | XKM_OUTPUT_DIR="$ac_define_dir" | |
26147 | ||
26148 | ||
26149 | cat >>confdefs.h <<_ACEOF | |
26150 | #define XKM_OUTPUT_DIR "$ac_define_dir" | |
26151 | _ACEOF | |
26152 | ||
26153 | test "$prefix_NONE" && prefix=NONE | |
26154 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
26155 | ||
26156 | ||
26157 | ||
26158 | if test "x$XKB_DFLT_RULES" = x; then | |
26159 | case $host_os in | |
26160 | linux*) | |
26161 | XKB_DFLT_RULES="evdev" | |
26162 | ;; | |
26163 | *) | |
26164 | XKB_DFLT_RULES="base" | |
26165 | ;; | |
26166 | esac | |
26167 | fi | |
26168 | ||
26169 | cat >>confdefs.h <<_ACEOF | |
26170 | #define XKB_DFLT_RULES "$XKB_DFLT_RULES" | |
26171 | _ACEOF | |
26172 | ||
26173 | ||
26174 | cat >>confdefs.h <<_ACEOF | |
26175 | #define XKB_DFLT_MODEL "$XKB_DFLT_MODEL" | |
26176 | _ACEOF | |
26177 | ||
26178 | ||
26179 | cat >>confdefs.h <<_ACEOF | |
26180 | #define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT" | |
26181 | _ACEOF | |
26182 | ||
26183 | ||
26184 | cat >>confdefs.h <<_ACEOF | |
26185 | #define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT" | |
26186 | _ACEOF | |
26187 | ||
26188 | ||
26189 | cat >>confdefs.h <<_ACEOF | |
26190 | #define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS" | |
26191 | _ACEOF | |
26192 | ||
26193 | ||
26194 | ||
26195 | ||
26196 | ||
26197 | ||
26198 | ||
26199 | XKB_LIB='$(top_builddir)/xkb/libxkb.la' | |
26200 | XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' | |
26201 | REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" | |
26202 | ||
26203 | ||
26204 | pkg_failed=no | |
26205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 | |
26206 | $as_echo_n "checking for XDMCP... " >&6; } | |
26207 | ||
26208 | if test -n "$XDMCP_CFLAGS"; then | |
26209 | pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" | |
26210 | elif test -n "$PKG_CONFIG"; then | |
26211 | if test -n "$PKG_CONFIG" && \ | |
26212 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 | |
26213 | ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 | |
26214 | ac_status=$? | |
26215 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26216 | test $ac_status = 0; }; then | |
26217 | pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` | |
26218 | else | |
26219 | pkg_failed=yes | |
26220 | fi | |
26221 | else | |
26222 | pkg_failed=untried | |
26223 | fi | |
26224 | if test -n "$XDMCP_LIBS"; then | |
26225 | pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" | |
26226 | elif test -n "$PKG_CONFIG"; then | |
26227 | if test -n "$PKG_CONFIG" && \ | |
26228 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 | |
26229 | ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 | |
26230 | ac_status=$? | |
26231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26232 | test $ac_status = 0; }; then | |
26233 | pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` | |
26234 | else | |
26235 | pkg_failed=yes | |
26236 | fi | |
26237 | else | |
26238 | pkg_failed=untried | |
26239 | fi | |
26240 | ||
26241 | ||
26242 | ||
26243 | if test $pkg_failed = yes; then | |
26244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26245 | $as_echo "no" >&6; } | |
26246 | ||
26247 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
26248 | _pkg_short_errors_supported=yes | |
26249 | else | |
26250 | _pkg_short_errors_supported=no | |
26251 | fi | |
26252 | if test $_pkg_short_errors_supported = yes; then | |
26253 | XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1` | |
26254 | else | |
26255 | XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1` | |
26256 | fi | |
26257 | # Put the nasty error message in config.log where it belongs | |
26258 | echo "$XDMCP_PKG_ERRORS" >&5 | |
26259 | ||
26260 | have_libxdmcp="no" | |
26261 | elif test $pkg_failed = untried; then | |
26262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26263 | $as_echo "no" >&6; } | |
26264 | have_libxdmcp="no" | |
26265 | else | |
26266 | XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS | |
26267 | XDMCP_LIBS=$pkg_cv_XDMCP_LIBS | |
26268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26269 | $as_echo "yes" >&6; } | |
26270 | have_libxdmcp="yes" | |
26271 | fi | |
26272 | if test "x$have_libxdmcp" = xyes; then | |
26273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 | |
26274 | $as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } | |
26275 | if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then : | |
26276 | $as_echo_n "(cached) " >&6 | |
26277 | else | |
26278 | ac_check_lib_save_LIBS=$LIBS | |
26279 | LIBS="-lXdmcp $XDMCP_LIBS $LIBS" | |
26280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26281 | /* end confdefs.h. */ | |
26282 | ||
26283 | /* Override any GCC internal prototype to avoid an error. | |
26284 | Use char because int might match the return type of a GCC | |
26285 | builtin and then its argument prototype would still apply. */ | |
26286 | #ifdef __cplusplus | |
26287 | extern "C" | |
26288 | #endif | |
26289 | char XdmcpWrap (); | |
26290 | int | |
26291 | main () | |
26292 | { | |
26293 | return XdmcpWrap (); | |
26294 | ; | |
26295 | return 0; | |
26296 | } | |
26297 | _ACEOF | |
26298 | if ac_fn_c_try_link "$LINENO"; then : | |
26299 | ac_cv_lib_Xdmcp_XdmcpWrap=yes | |
26300 | else | |
26301 | ac_cv_lib_Xdmcp_XdmcpWrap=no | |
26302 | fi | |
26303 | rm -f core conftest.err conftest.$ac_objext \ | |
26304 | conftest$ac_exeext conftest.$ac_ext | |
26305 | LIBS=$ac_check_lib_save_LIBS | |
26306 | fi | |
26307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 | |
26308 | $as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } | |
26309 | if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then : | |
26310 | have_xdmcpwrap="yes" | |
26311 | else | |
26312 | have_xdmcpwrap="no" | |
26313 | fi | |
26314 | ||
26315 | fi | |
26316 | if test "x$XDMCP" = xauto; then | |
26317 | if test "x$have_libxdmcp" = xyes; then | |
26318 | XDMCP=yes | |
26319 | else | |
26320 | XDMCP=no | |
26321 | fi | |
26322 | fi | |
26323 | if test "x$XDMAUTH" = xauto; then | |
26324 | if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then | |
26325 | XDMAUTH=yes | |
26326 | else | |
26327 | XDMAUTH=no | |
26328 | fi | |
26329 | fi | |
26330 | ||
26331 | if test "x$XDMCP" = xyes; then | |
26332 | XDMCP_TRUE= | |
26333 | XDMCP_FALSE='#' | |
26334 | else | |
26335 | XDMCP_TRUE='#' | |
26336 | XDMCP_FALSE= | |
26337 | fi | |
26338 | ||
26339 | if test "x$XDMCP" = xyes; then | |
26340 | ||
26341 | $as_echo "#define XDMCP 1" >>confdefs.h | |
26342 | ||
26343 | REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" | |
26344 | XDMCP_MODULES="xdmcp" | |
26345 | fi | |
26346 | ||
26347 | if test "x$XDMAUTH" = xyes; then | |
26348 | XDMAUTH_TRUE= | |
26349 | XDMAUTH_FALSE='#' | |
26350 | else | |
26351 | XDMAUTH_TRUE='#' | |
26352 | XDMAUTH_FALSE= | |
26353 | fi | |
26354 | ||
26355 | if test "x$XDMAUTH" = xyes; then | |
26356 | ||
26357 | $as_echo "#define HASXDMAUTH 1" >>confdefs.h | |
26358 | ||
26359 | if ! test "x$XDMCP" = xyes; then | |
26360 | REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" | |
26361 | XDMCP_MODULES="xdmcp" | |
26362 | fi | |
26363 | fi | |
26364 | ||
26365 | ||
26366 | prefix_NONE= | |
26367 | exec_prefix_NONE= | |
26368 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
26369 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
26370 | eval ac_define_dir="\"$FONTPATH\"" | |
26371 | eval ac_define_dir="\"$ac_define_dir\"" | |
26372 | COMPILEDDEFAULTFONTPATH="$ac_define_dir" | |
26373 | ||
26374 | ||
26375 | cat >>confdefs.h <<_ACEOF | |
26376 | #define COMPILEDDEFAULTFONTPATH "$ac_define_dir" | |
26377 | _ACEOF | |
26378 | ||
26379 | test "$prefix_NONE" && prefix=NONE | |
26380 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
26381 | ||
26382 | ||
26383 | prefix_NONE= | |
26384 | exec_prefix_NONE= | |
26385 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
26386 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
26387 | eval ac_define_dir="\"$SERVERCONFIG\"" | |
26388 | eval ac_define_dir="\"$ac_define_dir\"" | |
26389 | SERVER_MISC_CONFIG_PATH="$ac_define_dir" | |
26390 | ||
26391 | ||
26392 | cat >>confdefs.h <<_ACEOF | |
26393 | #define SERVER_MISC_CONFIG_PATH "$ac_define_dir" | |
26394 | _ACEOF | |
26395 | ||
26396 | test "$prefix_NONE" && prefix=NONE | |
26397 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
26398 | ||
26399 | ||
26400 | prefix_NONE= | |
26401 | exec_prefix_NONE= | |
26402 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
26403 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
26404 | eval ac_define_dir="\"$FONTROOTDIR\"" | |
26405 | eval ac_define_dir="\"$ac_define_dir\"" | |
26406 | BASE_FONT_PATH="$ac_define_dir" | |
26407 | ||
26408 | ||
26409 | cat >>confdefs.h <<_ACEOF | |
26410 | #define BASE_FONT_PATH "$ac_define_dir" | |
26411 | _ACEOF | |
26412 | ||
26413 | test "$prefix_NONE" && prefix=NONE | |
26414 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
26415 | ||
26416 | dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` | |
26417 | ||
26418 | prefix_NONE= | |
26419 | exec_prefix_NONE= | |
26420 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
26421 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
26422 | eval ac_define_dir="\"$dridriverdir\"" | |
26423 | eval ac_define_dir="\"$ac_define_dir\"" | |
26424 | DRI_DRIVER_PATH="$ac_define_dir" | |
26425 | ||
26426 | ||
26427 | cat >>confdefs.h <<_ACEOF | |
26428 | #define DRI_DRIVER_PATH "$ac_define_dir" | |
26429 | _ACEOF | |
26430 | ||
26431 | test "$prefix_NONE" && prefix=NONE | |
26432 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
26433 | ||
26434 | ||
26435 | cat >>confdefs.h <<_ACEOF | |
26436 | #define XVENDORNAME "$VENDOR_NAME" | |
26437 | _ACEOF | |
26438 | ||
26439 | ||
26440 | cat >>confdefs.h <<_ACEOF | |
26441 | #define XVENDORNAMESHORT "$VENDOR_NAME_SHORT" | |
26442 | _ACEOF | |
26443 | ||
26444 | ||
26445 | cat >>confdefs.h <<_ACEOF | |
26446 | #define XORG_DATE "$RELEASE_DATE" | |
26447 | _ACEOF | |
26448 | ||
26449 | ||
26450 | cat >>confdefs.h <<_ACEOF | |
26451 | #define XORG_MAN_VERSION "$VENDOR_MAN_VERSION" | |
26452 | _ACEOF | |
26453 | ||
26454 | ||
26455 | cat >>confdefs.h <<_ACEOF | |
26456 | #define BUILDERADDR "$BUILDERADDR" | |
26457 | _ACEOF | |
26458 | ||
26459 | ||
26460 | if test -z "$OSNAME"; then | |
26461 | OSNAME="UNKNOWN" | |
26462 | fi | |
26463 | ||
26464 | ||
26465 | cat >>confdefs.h <<_ACEOF | |
26466 | #define OSNAME "$OSNAME" | |
26467 | _ACEOF | |
26468 | ||
26469 | ||
26470 | cat >>confdefs.h <<_ACEOF | |
26471 | #define OSVENDOR "$OSVENDOR" | |
26472 | _ACEOF | |
26473 | ||
26474 | ||
26475 | cat >>confdefs.h <<_ACEOF | |
26476 | #define BUILDERSTRING "$BUILDERSTRING" | |
26477 | _ACEOF | |
26478 | ||
26479 | ||
26480 | ||
26481 | ||
26482 | cat >>confdefs.h <<_ACEOF | |
26483 | #define VENDOR_NAME "$VENDOR_NAME" | |
26484 | _ACEOF | |
26485 | ||
26486 | ||
26487 | cat >>confdefs.h <<_ACEOF | |
26488 | #define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT" | |
26489 | _ACEOF | |
26490 | ||
26491 | ||
26492 | cat >>confdefs.h <<_ACEOF | |
26493 | #define VENDOR_RELEASE $VENDOR_RELEASE | |
26494 | _ACEOF | |
26495 | ||
26496 | ||
26497 | cat >>confdefs.h <<_ACEOF | |
26498 | #define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION" | |
26499 | _ACEOF | |
26500 | ||
26501 | ||
26502 | ||
26503 | $as_echo "#define NO_LIBCWRAPPER 1" >>confdefs.h | |
26504 | ||
26505 | ||
26506 | if test "x$DEBUGGING" = xyes; then | |
26507 | ||
26508 | $as_echo "#define DEBUG 1" >>confdefs.h | |
26509 | ||
26510 | fi | |
26511 | if test "x$DEBUGGING" = xyes; then | |
26512 | DEBUG_TRUE= | |
26513 | DEBUG_FALSE='#' | |
26514 | else | |
26515 | DEBUG_TRUE='#' | |
26516 | DEBUG_FALSE= | |
26517 | fi | |
26518 | ||
26519 | ||
26520 | ||
26521 | $as_echo "#define XTEST 1" >>confdefs.h | |
26522 | ||
26523 | ||
26524 | $as_echo "#define XSYNC 1" >>confdefs.h | |
26525 | ||
26526 | ||
26527 | $as_echo "#define XCMISC 1" >>confdefs.h | |
26528 | ||
26529 | ||
26530 | $as_echo "#define BIGREQS 1" >>confdefs.h | |
26531 | ||
26532 | ||
26533 | if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then | |
26534 | DIX_LIB='$(top_builddir)/dix/dix.O' | |
26535 | OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' | |
26536 | else | |
26537 | DIX_LIB='$(top_builddir)/dix/libdix.la' | |
26538 | OS_LIB='$(top_builddir)/os/libos.la' | |
26539 | fi | |
26540 | ||
26541 | ||
26542 | ||
26543 | MAIN_LIB='$(top_builddir)/dix/libmain.la' | |
26544 | ||
26545 | ||
26546 | MI_LIB='$(top_builddir)/mi/libmi.la' | |
26547 | MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' | |
26548 | MI_INC='-I$(top_srcdir)/mi' | |
26549 | FB_LIB='$(top_builddir)/fb/libfb.la' | |
26550 | FB_INC='-I$(top_srcdir)/fb' | |
26551 | MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' | |
26552 | MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' | |
26553 | MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' | |
26554 | MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' | |
26555 | CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' | |
26556 | ||
26557 | # SHA1 hashing | |
26558 | ||
26559 | # Check whether --with-sha1 was given. | |
26560 | if test "${with_sha1+set}" = set; then : | |
26561 | withval=$with_sha1; | |
26562 | fi | |
26563 | ||
26564 | ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" | |
26565 | if test "x$ac_cv_func_SHA1Init" = xyes; then : | |
26566 | HAVE_SHA1_IN_LIBC=yes | |
26567 | fi | |
26568 | ||
26569 | if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then | |
26570 | with_sha1=libc | |
26571 | fi | |
26572 | if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then | |
26573 | as_fn_error $? "libc requested but not found" "$LINENO" 5 | |
26574 | fi | |
26575 | if test "x$with_sha1" = xlibc; then | |
26576 | ||
26577 | $as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h | |
26578 | ||
26579 | SHA1_LIBS="" | |
26580 | fi | |
26581 | ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" | |
26582 | if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then : | |
26583 | HAVE_SHA1_IN_COMMONCRYPTO=yes | |
26584 | fi | |
26585 | ||
26586 | if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then | |
26587 | with_sha1=CommonCrypto | |
26588 | fi | |
26589 | if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then | |
26590 | as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 | |
26591 | fi | |
26592 | if test "x$with_sha1" = xCommonCrypto; then | |
26593 | ||
26594 | $as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h | |
26595 | ||
26596 | SHA1_LIBS="" | |
26597 | fi | |
26598 | ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> | |
26599 | " | |
26600 | if test "x$ac_cv_header_wincrypt_h" = xyes; then : | |
26601 | HAVE_SHA1_IN_CRYPTOAPI=yes | |
26602 | fi | |
26603 | ||
26604 | ||
26605 | if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then | |
26606 | with_sha1=CryptoAPI | |
26607 | fi | |
26608 | if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then | |
26609 | as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 | |
26610 | fi | |
26611 | if test "x$with_sha1" = xCryptoAPI; then | |
26612 | ||
26613 | $as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h | |
26614 | ||
26615 | SHA1_LIBS="" | |
26616 | fi | |
26617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 | |
26618 | $as_echo_n "checking for SHA1Init in -lmd... " >&6; } | |
26619 | if ${ac_cv_lib_md_SHA1Init+:} false; then : | |
26620 | $as_echo_n "(cached) " >&6 | |
26621 | else | |
26622 | ac_check_lib_save_LIBS=$LIBS | |
26623 | LIBS="-lmd $LIBS" | |
26624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26625 | /* end confdefs.h. */ | |
26626 | ||
26627 | /* Override any GCC internal prototype to avoid an error. | |
26628 | Use char because int might match the return type of a GCC | |
26629 | builtin and then its argument prototype would still apply. */ | |
26630 | #ifdef __cplusplus | |
26631 | extern "C" | |
26632 | #endif | |
26633 | char SHA1Init (); | |
26634 | int | |
26635 | main () | |
26636 | { | |
26637 | return SHA1Init (); | |
26638 | ; | |
26639 | return 0; | |
26640 | } | |
26641 | _ACEOF | |
26642 | if ac_fn_c_try_link "$LINENO"; then : | |
26643 | ac_cv_lib_md_SHA1Init=yes | |
26644 | else | |
26645 | ac_cv_lib_md_SHA1Init=no | |
26646 | fi | |
26647 | rm -f core conftest.err conftest.$ac_objext \ | |
26648 | conftest$ac_exeext conftest.$ac_ext | |
26649 | LIBS=$ac_check_lib_save_LIBS | |
26650 | fi | |
26651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 | |
26652 | $as_echo "$ac_cv_lib_md_SHA1Init" >&6; } | |
26653 | if test "x$ac_cv_lib_md_SHA1Init" = xyes; then : | |
26654 | HAVE_LIBMD=yes | |
26655 | fi | |
26656 | ||
26657 | if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then | |
26658 | with_sha1=libmd | |
26659 | fi | |
26660 | if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then | |
26661 | as_fn_error $? "libmd requested but not found" "$LINENO" 5 | |
26662 | fi | |
26663 | if test "x$with_sha1" = xlibmd; then | |
26664 | ||
26665 | $as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h | |
26666 | ||
26667 | SHA1_LIBS=-lmd | |
26668 | fi | |
26669 | ||
26670 | pkg_failed=no | |
26671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5 | |
26672 | $as_echo_n "checking for LIBSHA1... " >&6; } | |
26673 | ||
26674 | if test -n "$LIBSHA1_CFLAGS"; then | |
26675 | pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" | |
26676 | elif test -n "$PKG_CONFIG"; then | |
26677 | if test -n "$PKG_CONFIG" && \ | |
26678 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 | |
26679 | ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 | |
26680 | ac_status=$? | |
26681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26682 | test $ac_status = 0; }; then | |
26683 | pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` | |
26684 | else | |
26685 | pkg_failed=yes | |
26686 | fi | |
26687 | else | |
26688 | pkg_failed=untried | |
26689 | fi | |
26690 | if test -n "$LIBSHA1_LIBS"; then | |
26691 | pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" | |
26692 | elif test -n "$PKG_CONFIG"; then | |
26693 | if test -n "$PKG_CONFIG" && \ | |
26694 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 | |
26695 | ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 | |
26696 | ac_status=$? | |
26697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26698 | test $ac_status = 0; }; then | |
26699 | pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` | |
26700 | else | |
26701 | pkg_failed=yes | |
26702 | fi | |
26703 | else | |
26704 | pkg_failed=untried | |
26705 | fi | |
26706 | ||
26707 | ||
26708 | ||
26709 | if test $pkg_failed = yes; then | |
26710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26711 | $as_echo "no" >&6; } | |
26712 | ||
26713 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
26714 | _pkg_short_errors_supported=yes | |
26715 | else | |
26716 | _pkg_short_errors_supported=no | |
26717 | fi | |
26718 | if test $_pkg_short_errors_supported = yes; then | |
26719 | LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsha1" 2>&1` | |
26720 | else | |
26721 | LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsha1" 2>&1` | |
26722 | fi | |
26723 | # Put the nasty error message in config.log where it belongs | |
26724 | echo "$LIBSHA1_PKG_ERRORS" >&5 | |
26725 | ||
26726 | HAVE_LIBSHA1=no | |
26727 | elif test $pkg_failed = untried; then | |
26728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26729 | $as_echo "no" >&6; } | |
26730 | HAVE_LIBSHA1=no | |
26731 | else | |
26732 | LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS | |
26733 | LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS | |
26734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26735 | $as_echo "yes" >&6; } | |
26736 | HAVE_LIBSHA1=yes | |
26737 | fi | |
26738 | if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then | |
26739 | with_sha1=libsha1 | |
26740 | fi | |
26741 | if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then | |
26742 | as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 | |
26743 | fi | |
26744 | if test "x$with_sha1" = xlibsha1; then | |
26745 | ||
26746 | $as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h | |
26747 | ||
26748 | SHA1_LIBS=-lsha1 | |
26749 | fi | |
26750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 | |
26751 | $as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; } | |
26752 | if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then : | |
26753 | $as_echo_n "(cached) " >&6 | |
26754 | else | |
26755 | ac_check_lib_save_LIBS=$LIBS | |
26756 | LIBS="-lnettle $LIBS" | |
26757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26758 | /* end confdefs.h. */ | |
26759 | ||
26760 | /* Override any GCC internal prototype to avoid an error. | |
26761 | Use char because int might match the return type of a GCC | |
26762 | builtin and then its argument prototype would still apply. */ | |
26763 | #ifdef __cplusplus | |
26764 | extern "C" | |
26765 | #endif | |
26766 | char nettle_sha1_init (); | |
26767 | int | |
26768 | main () | |
26769 | { | |
26770 | return nettle_sha1_init (); | |
26771 | ; | |
26772 | return 0; | |
26773 | } | |
26774 | _ACEOF | |
26775 | if ac_fn_c_try_link "$LINENO"; then : | |
26776 | ac_cv_lib_nettle_nettle_sha1_init=yes | |
26777 | else | |
26778 | ac_cv_lib_nettle_nettle_sha1_init=no | |
26779 | fi | |
26780 | rm -f core conftest.err conftest.$ac_objext \ | |
26781 | conftest$ac_exeext conftest.$ac_ext | |
26782 | LIBS=$ac_check_lib_save_LIBS | |
26783 | fi | |
26784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 | |
26785 | $as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } | |
26786 | if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then : | |
26787 | HAVE_LIBNETTLE=yes | |
26788 | fi | |
26789 | ||
26790 | if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then | |
26791 | with_sha1=libnettle | |
26792 | fi | |
26793 | if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then | |
26794 | as_fn_error $? "libnettle requested but not found" "$LINENO" 5 | |
26795 | fi | |
26796 | if test "x$with_sha1" = xlibnettle; then | |
26797 | ||
26798 | $as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h | |
26799 | ||
26800 | SHA1_LIBS=-lnettle | |
26801 | fi | |
26802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 | |
26803 | $as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; } | |
26804 | if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then : | |
26805 | $as_echo_n "(cached) " >&6 | |
26806 | else | |
26807 | ac_check_lib_save_LIBS=$LIBS | |
26808 | LIBS="-lgcrypt $LIBS" | |
26809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26810 | /* end confdefs.h. */ | |
26811 | ||
26812 | /* Override any GCC internal prototype to avoid an error. | |
26813 | Use char because int might match the return type of a GCC | |
26814 | builtin and then its argument prototype would still apply. */ | |
26815 | #ifdef __cplusplus | |
26816 | extern "C" | |
26817 | #endif | |
26818 | char gcry_md_open (); | |
26819 | int | |
26820 | main () | |
26821 | { | |
26822 | return gcry_md_open (); | |
26823 | ; | |
26824 | return 0; | |
26825 | } | |
26826 | _ACEOF | |
26827 | if ac_fn_c_try_link "$LINENO"; then : | |
26828 | ac_cv_lib_gcrypt_gcry_md_open=yes | |
26829 | else | |
26830 | ac_cv_lib_gcrypt_gcry_md_open=no | |
26831 | fi | |
26832 | rm -f core conftest.err conftest.$ac_objext \ | |
26833 | conftest$ac_exeext conftest.$ac_ext | |
26834 | LIBS=$ac_check_lib_save_LIBS | |
26835 | fi | |
26836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 | |
26837 | $as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } | |
26838 | if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then : | |
26839 | HAVE_LIBGCRYPT=yes | |
26840 | fi | |
26841 | ||
26842 | if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then | |
26843 | with_sha1=libgcrypt | |
26844 | fi | |
26845 | if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then | |
26846 | as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 | |
26847 | fi | |
26848 | if test "x$with_sha1" = xlibgcrypt; then | |
26849 | ||
26850 | $as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h | |
26851 | ||
26852 | SHA1_LIBS=-lgcrypt | |
26853 | fi | |
26854 | # We don't need all of the OpenSSL libraries, just libcrypto | |
26855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 | |
26856 | $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } | |
26857 | if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : | |
26858 | $as_echo_n "(cached) " >&6 | |
26859 | else | |
26860 | ac_check_lib_save_LIBS=$LIBS | |
26861 | LIBS="-lcrypto $LIBS" | |
26862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26863 | /* end confdefs.h. */ | |
26864 | ||
26865 | /* Override any GCC internal prototype to avoid an error. | |
26866 | Use char because int might match the return type of a GCC | |
26867 | builtin and then its argument prototype would still apply. */ | |
26868 | #ifdef __cplusplus | |
26869 | extern "C" | |
26870 | #endif | |
26871 | char SHA1_Init (); | |
26872 | int | |
26873 | main () | |
26874 | { | |
26875 | return SHA1_Init (); | |
26876 | ; | |
26877 | return 0; | |
26878 | } | |
26879 | _ACEOF | |
26880 | if ac_fn_c_try_link "$LINENO"; then : | |
26881 | ac_cv_lib_crypto_SHA1_Init=yes | |
26882 | else | |
26883 | ac_cv_lib_crypto_SHA1_Init=no | |
26884 | fi | |
26885 | rm -f core conftest.err conftest.$ac_objext \ | |
26886 | conftest$ac_exeext conftest.$ac_ext | |
26887 | LIBS=$ac_check_lib_save_LIBS | |
26888 | fi | |
26889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 | |
26890 | $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } | |
26891 | if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : | |
26892 | HAVE_LIBCRYPTO=yes | |
26893 | fi | |
26894 | ||
26895 | ||
26896 | pkg_failed=no | |
26897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 | |
26898 | $as_echo_n "checking for OPENSSL... " >&6; } | |
26899 | ||
26900 | if test -n "$OPENSSL_CFLAGS"; then | |
26901 | pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" | |
26902 | elif test -n "$PKG_CONFIG"; then | |
26903 | if test -n "$PKG_CONFIG" && \ | |
26904 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | |
26905 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | |
26906 | ac_status=$? | |
26907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26908 | test $ac_status = 0; }; then | |
26909 | pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` | |
26910 | else | |
26911 | pkg_failed=yes | |
26912 | fi | |
26913 | else | |
26914 | pkg_failed=untried | |
26915 | fi | |
26916 | if test -n "$OPENSSL_LIBS"; then | |
26917 | pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" | |
26918 | elif test -n "$PKG_CONFIG"; then | |
26919 | if test -n "$PKG_CONFIG" && \ | |
26920 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | |
26921 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | |
26922 | ac_status=$? | |
26923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
26924 | test $ac_status = 0; }; then | |
26925 | pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` | |
26926 | else | |
26927 | pkg_failed=yes | |
26928 | fi | |
26929 | else | |
26930 | pkg_failed=untried | |
26931 | fi | |
26932 | ||
26933 | ||
26934 | ||
26935 | if test $pkg_failed = yes; then | |
26936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26937 | $as_echo "no" >&6; } | |
26938 | ||
26939 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
26940 | _pkg_short_errors_supported=yes | |
26941 | else | |
26942 | _pkg_short_errors_supported=no | |
26943 | fi | |
26944 | if test $_pkg_short_errors_supported = yes; then | |
26945 | OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1` | |
26946 | else | |
26947 | OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1` | |
26948 | fi | |
26949 | # Put the nasty error message in config.log where it belongs | |
26950 | echo "$OPENSSL_PKG_ERRORS" >&5 | |
26951 | ||
26952 | HAVE_OPENSSL_PKC=no | |
26953 | elif test $pkg_failed = untried; then | |
26954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
26955 | $as_echo "no" >&6; } | |
26956 | HAVE_OPENSSL_PKC=no | |
26957 | else | |
26958 | OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS | |
26959 | OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS | |
26960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
26961 | $as_echo "yes" >&6; } | |
26962 | HAVE_OPENSSL_PKC=yes | |
26963 | fi | |
26964 | if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then | |
26965 | if test "x$with_sha1" = x; then | |
26966 | with_sha1=libcrypto | |
26967 | fi | |
26968 | else | |
26969 | if test "x$with_sha1" = xlibcrypto; then | |
26970 | as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 | |
26971 | fi | |
26972 | fi | |
26973 | if test "x$with_sha1" = xlibcrypto; then | |
26974 | if test "x$HAVE_LIBCRYPTO" = xyes; then | |
26975 | SHA1_LIBS=-lcrypto | |
26976 | else | |
26977 | SHA1_LIBS="$OPENSSL_LIBS" | |
26978 | SHA1_CFLAGS="$OPENSSL_CFLAGS" | |
26979 | fi | |
26980 | fi | |
26981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 | |
26982 | $as_echo_n "checking for SHA1 implementation... " >&6; } | |
26983 | if test "x$with_sha1" = x; then | |
26984 | as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 | |
26985 | fi | |
26986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 | |
26987 | $as_echo "$with_sha1" >&6; } | |
26988 | ||
26989 | ||
26990 | ||
26991 | ||
26992 | pkg_failed=no | |
26993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5 | |
26994 | $as_echo_n "checking for XSERVERCFLAGS... " >&6; } | |
26995 | ||
26996 | if test -n "$XSERVERCFLAGS_CFLAGS"; then | |
26997 | pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" | |
26998 | elif test -n "$PKG_CONFIG"; then | |
26999 | if test -n "$PKG_CONFIG" && \ | |
27000 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 | |
27001 | ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 | |
27002 | ac_status=$? | |
27003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27004 | test $ac_status = 0; }; then | |
27005 | pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` | |
27006 | else | |
27007 | pkg_failed=yes | |
27008 | fi | |
27009 | else | |
27010 | pkg_failed=untried | |
27011 | fi | |
27012 | if test -n "$XSERVERCFLAGS_LIBS"; then | |
27013 | pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" | |
27014 | elif test -n "$PKG_CONFIG"; then | |
27015 | if test -n "$PKG_CONFIG" && \ | |
27016 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 | |
27017 | ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 | |
27018 | ac_status=$? | |
27019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27020 | test $ac_status = 0; }; then | |
27021 | pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` | |
27022 | else | |
27023 | pkg_failed=yes | |
27024 | fi | |
27025 | else | |
27026 | pkg_failed=untried | |
27027 | fi | |
27028 | ||
27029 | ||
27030 | ||
27031 | if test $pkg_failed = yes; then | |
27032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27033 | $as_echo "no" >&6; } | |
27034 | ||
27035 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27036 | _pkg_short_errors_supported=yes | |
27037 | else | |
27038 | _pkg_short_errors_supported=no | |
27039 | fi | |
27040 | if test $_pkg_short_errors_supported = yes; then | |
27041 | XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` | |
27042 | else | |
27043 | XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` | |
27044 | fi | |
27045 | # Put the nasty error message in config.log where it belongs | |
27046 | echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 | |
27047 | ||
27048 | as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: | |
27049 | ||
27050 | $XSERVERCFLAGS_PKG_ERRORS | |
27051 | ||
27052 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
27053 | installed software in a non-standard prefix. | |
27054 | ||
27055 | Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS | |
27056 | and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. | |
27057 | See the pkg-config man page for more details." "$LINENO" 5 | |
27058 | ||
27059 | elif test $pkg_failed = untried; then | |
27060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27061 | $as_echo "no" >&6; } | |
27062 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
27063 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
27064 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
27065 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
27066 | path to pkg-config. | |
27067 | ||
27068 | Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS | |
27069 | and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. | |
27070 | See the pkg-config man page for more details. | |
27071 | ||
27072 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
27073 | See \`config.log' for more details" "$LINENO" 5; } | |
27074 | ||
27075 | else | |
27076 | XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS | |
27077 | XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS | |
27078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27079 | $as_echo "yes" >&6; } | |
27080 | ||
27081 | fi | |
27082 | ||
27083 | pkg_failed=no | |
27084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5 | |
27085 | $as_echo_n "checking for XSERVERLIBS... " >&6; } | |
27086 | ||
27087 | if test -n "$XSERVERLIBS_CFLAGS"; then | |
27088 | pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" | |
27089 | elif test -n "$PKG_CONFIG"; then | |
27090 | if test -n "$PKG_CONFIG" && \ | |
27091 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 | |
27092 | ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 | |
27093 | ac_status=$? | |
27094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27095 | test $ac_status = 0; }; then | |
27096 | pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` | |
27097 | else | |
27098 | pkg_failed=yes | |
27099 | fi | |
27100 | else | |
27101 | pkg_failed=untried | |
27102 | fi | |
27103 | if test -n "$XSERVERLIBS_LIBS"; then | |
27104 | pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" | |
27105 | elif test -n "$PKG_CONFIG"; then | |
27106 | if test -n "$PKG_CONFIG" && \ | |
27107 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 | |
27108 | ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 | |
27109 | ac_status=$? | |
27110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27111 | test $ac_status = 0; }; then | |
27112 | pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` | |
27113 | else | |
27114 | pkg_failed=yes | |
27115 | fi | |
27116 | else | |
27117 | pkg_failed=untried | |
27118 | fi | |
27119 | ||
27120 | ||
27121 | ||
27122 | if test $pkg_failed = yes; then | |
27123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27124 | $as_echo "no" >&6; } | |
27125 | ||
27126 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27127 | _pkg_short_errors_supported=yes | |
27128 | else | |
27129 | _pkg_short_errors_supported=no | |
27130 | fi | |
27131 | if test $_pkg_short_errors_supported = yes; then | |
27132 | XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_LIBS" 2>&1` | |
27133 | else | |
27134 | XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_LIBS" 2>&1` | |
27135 | fi | |
27136 | # Put the nasty error message in config.log where it belongs | |
27137 | echo "$XSERVERLIBS_PKG_ERRORS" >&5 | |
27138 | ||
27139 | as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: | |
27140 | ||
27141 | $XSERVERLIBS_PKG_ERRORS | |
27142 | ||
27143 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
27144 | installed software in a non-standard prefix. | |
27145 | ||
27146 | Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS | |
27147 | and XSERVERLIBS_LIBS to avoid the need to call pkg-config. | |
27148 | See the pkg-config man page for more details." "$LINENO" 5 | |
27149 | ||
27150 | elif test $pkg_failed = untried; then | |
27151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27152 | $as_echo "no" >&6; } | |
27153 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
27154 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
27155 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
27156 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
27157 | path to pkg-config. | |
27158 | ||
27159 | Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS | |
27160 | and XSERVERLIBS_LIBS to avoid the need to call pkg-config. | |
27161 | See the pkg-config man page for more details. | |
27162 | ||
27163 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
27164 | See \`config.log' for more details" "$LINENO" 5; } | |
27165 | ||
27166 | else | |
27167 | XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS | |
27168 | XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS | |
27169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27170 | $as_echo "yes" >&6; } | |
27171 | ||
27172 | fi | |
27173 | ||
27174 | ||
27175 | pkg_failed=no | |
27176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5 | |
27177 | $as_echo_n "checking for LIBUNWIND... " >&6; } | |
27178 | ||
27179 | if test -n "$LIBUNWIND_CFLAGS"; then | |
27180 | pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" | |
27181 | elif test -n "$PKG_CONFIG"; then | |
27182 | if test -n "$PKG_CONFIG" && \ | |
27183 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 | |
27184 | ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 | |
27185 | ac_status=$? | |
27186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27187 | test $ac_status = 0; }; then | |
27188 | pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` | |
27189 | else | |
27190 | pkg_failed=yes | |
27191 | fi | |
27192 | else | |
27193 | pkg_failed=untried | |
27194 | fi | |
27195 | if test -n "$LIBUNWIND_LIBS"; then | |
27196 | pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" | |
27197 | elif test -n "$PKG_CONFIG"; then | |
27198 | if test -n "$PKG_CONFIG" && \ | |
27199 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 | |
27200 | ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 | |
27201 | ac_status=$? | |
27202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27203 | test $ac_status = 0; }; then | |
27204 | pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` | |
27205 | else | |
27206 | pkg_failed=yes | |
27207 | fi | |
27208 | else | |
27209 | pkg_failed=untried | |
27210 | fi | |
27211 | ||
27212 | ||
27213 | ||
27214 | if test $pkg_failed = yes; then | |
27215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27216 | $as_echo "no" >&6; } | |
27217 | ||
27218 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27219 | _pkg_short_errors_supported=yes | |
27220 | else | |
27221 | _pkg_short_errors_supported=no | |
27222 | fi | |
27223 | if test $_pkg_short_errors_supported = yes; then | |
27224 | LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libunwind" 2>&1` | |
27225 | else | |
27226 | LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "libunwind" 2>&1` | |
27227 | fi | |
27228 | # Put the nasty error message in config.log where it belongs | |
27229 | echo "$LIBUNWIND_PKG_ERRORS" >&5 | |
27230 | ||
27231 | HAVE_LIBUNWIND=no | |
27232 | elif test $pkg_failed = untried; then | |
27233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27234 | $as_echo "no" >&6; } | |
27235 | HAVE_LIBUNWIND=no | |
27236 | else | |
27237 | LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS | |
27238 | LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS | |
27239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27240 | $as_echo "yes" >&6; } | |
27241 | HAVE_LIBUNWIND=yes | |
27242 | fi | |
27243 | if test "x$LIBUNWIND" = "xauto"; then | |
27244 | LIBUNWIND="$HAVE_LIBUNWIND" | |
27245 | fi | |
27246 | ||
27247 | if test "x$LIBUNWIND" = "xyes"; then | |
27248 | if test "x$HAVE_LIBUNWIND" != "xyes"; then | |
27249 | as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 | |
27250 | fi | |
27251 | ||
27252 | $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h | |
27253 | ||
27254 | fi | |
27255 | ||
27256 | if test "x$LIBUNWIND" = xyes; then | |
27257 | HAVE_LIBUNWIND_TRUE= | |
27258 | HAVE_LIBUNWIND_FALSE='#' | |
27259 | else | |
27260 | HAVE_LIBUNWIND_TRUE='#' | |
27261 | HAVE_LIBUNWIND_FALSE= | |
27262 | fi | |
27263 | ||
27264 | ||
27265 | # Autotools has some unfortunate issues with library handling. In order to | |
27266 | # get a server to rebuild when a dependency in the tree is changed, it must | |
27267 | # be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be | |
27268 | # listed there, or some versions of autotools will break (especially if a -L | |
27269 | # is required to find the library). So, we keep two sets of libraries | |
27270 | # detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which | |
27271 | # will go into the _DEPENDENCIES and _LDADD of the server, and | |
27272 | # NAMESPACE_SYS_LIBS which will go into only the _LDADD. The | |
27273 | # NAMESPACEMODULES_LIBS detected from pkgconfig should always go in | |
27274 | # NAMESPACE_SYS_LIBS. | |
27275 | # | |
27276 | # XSERVER_LIBS is the set of in-tree libraries which all servers require. | |
27277 | # XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers | |
27278 | # require. | |
27279 | # | |
27280 | XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" | |
27281 | XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" | |
27282 | XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" | |
27283 | ||
27284 | ||
27285 | ||
27286 | UTILS_SYS_LIBS="${SYS_LIBS}" | |
27287 | ||
27288 | ||
27289 | # The Xorg binary needs to export symbols so that they can be used from modules | |
27290 | # Some platforms require extra flags to do this. libtool should set the | |
27291 | # necessary flags for each platform when -export-dynamic is passed to it. | |
27292 | LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" | |
27293 | LD_NO_UNDEFINED_FLAG= | |
27294 | XORG_DRIVER_LIBS= | |
27295 | case "$host_os" in | |
27296 | cygwin*) | |
27297 | LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" | |
27298 | LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" | |
27299 | XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" | |
27300 | CYGWIN=yes | |
27301 | ;; | |
27302 | solaris*) | |
27303 | # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT | |
27304 | # that we can link against for testing if the system linker is new | |
27305 | # enough to support -z parent=<program> for verifying loadable modules | |
27306 | # are only calling functions defined in either the loading program or | |
27307 | # the libraries they're linked with. | |
27308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27309 | /* end confdefs.h. */ | |
27310 | int main(int argc, char **argv) { return 0; } | |
27311 | _ACEOF | |
27312 | if ac_fn_c_try_link "$LINENO"; then : | |
27313 | mv conftest$EXEEXT conftest.parent | |
27314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 | |
27315 | $as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } | |
27316 | ax_save_FLAGS=$LDFLAGS | |
27317 | LDFLAGS="-Wl,-z,parent=conftest.parent -G" | |
27318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27319 | /* end confdefs.h. */ | |
27320 | ||
27321 | int | |
27322 | main () | |
27323 | { | |
27324 | ||
27325 | ; | |
27326 | return 0; | |
27327 | } | |
27328 | _ACEOF | |
27329 | if ac_fn_c_try_link "$LINENO"; then : | |
27330 | eval `$as_echo "xorg_cv_linker_flags_-Wl,-z,parent=conftest.parent -G" | $as_tr_sh`=yes | |
27331 | else | |
27332 | eval `$as_echo "xorg_cv_linker_flags_-Wl,-z,parent=conftest.parent -G" | $as_tr_sh`=no | |
27333 | fi | |
27334 | rm -f core conftest.err conftest.$ac_objext \ | |
27335 | conftest$ac_exeext conftest.$ac_ext | |
27336 | LDFLAGS=$ax_save_FLAGS | |
27337 | eval xorg_check_linker_flags=$`$as_echo "xorg_cv_linker_flags_-Wl,-z,parent=conftest.parent -G" | $as_tr_sh` | |
27338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 | |
27339 | $as_echo "$xorg_check_linker_flags" >&6; } | |
27340 | if test "x$xorg_check_linker_flags" = xyes; then | |
27341 | LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" | |
27342 | # Not set yet, since this gets exported in xorg-server.pc to all the drivers, | |
27343 | # and they're not all fixed to build correctly with it yet. | |
27344 | # XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" | |
27345 | ||
27346 | else | |
27347 | : | |
27348 | fi | |
27349 | ||
27350 | rm -f conftest.parent | |
27351 | ||
27352 | fi | |
27353 | rm -f core conftest.err conftest.$ac_objext \ | |
27354 | conftest$ac_exeext conftest.$ac_ext | |
27355 | ;; | |
27356 | esac | |
27357 | ||
27358 | ||
27359 | ||
27360 | if test x"$CYGWIN" = xyes; then | |
27361 | CYGWIN_TRUE= | |
27362 | CYGWIN_FALSE='#' | |
27363 | else | |
27364 | CYGWIN_TRUE='#' | |
27365 | CYGWIN_FALSE= | |
27366 | fi | |
27367 | ||
27368 | if test x"$LD_NO_UNDEFINED_FLAG" != x; then | |
27369 | NO_UNDEFINED_TRUE= | |
27370 | NO_UNDEFINED_FALSE='#' | |
27371 | else | |
27372 | NO_UNDEFINED_TRUE='#' | |
27373 | NO_UNDEFINED_FALSE= | |
27374 | fi | |
27375 | ||
27376 | ||
27377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 | |
27378 | $as_echo_n "checking if SVR4 needs to be defined... " >&6; } | |
27379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27380 | /* end confdefs.h. */ | |
27381 | ||
27382 | #if defined(SVR4) || defined(__svr4__) || defined(__SVR4) | |
27383 | I_AM_SVR4 | |
27384 | #endif | |
27385 | ||
27386 | _ACEOF | |
27387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
27388 | $EGREP "I_AM_SVR4" >/dev/null 2>&1; then : | |
27389 | ||
27390 | ||
27391 | $as_echo "#define SVR4 1" >>confdefs.h | |
27392 | ||
27393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27394 | $as_echo "yes" >&6; } | |
27395 | else | |
27396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27397 | $as_echo "no" >&6; } | |
27398 | fi | |
27399 | rm -f conftest* | |
27400 | ||
27401 | ||
27402 | XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SYNC_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC $DBE_INC $PRESENT_INC" | |
27403 | ||
27404 | ||
27405 | ||
27406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 | |
27407 | $as_echo_n "checking whether to build Xvfb DDX... " >&6; } | |
27408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 | |
27409 | $as_echo "$XVFB" >&6; } | |
27410 | if test "x$XVFB" = xyes; then | |
27411 | XVFB_TRUE= | |
27412 | XVFB_FALSE='#' | |
27413 | else | |
27414 | XVFB_TRUE='#' | |
27415 | XVFB_FALSE= | |
27416 | fi | |
27417 | ||
27418 | ||
27419 | if test "x$XVFB" = xyes; then | |
27420 | XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB" | |
27421 | XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" | |
27422 | ||
27423 | ||
27424 | fi | |
27425 | ||
27426 | ||
27427 | ||
27428 | ||
27429 | pkg_failed=no | |
27430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5 | |
27431 | $as_echo_n "checking for XNESTMODULES... " >&6; } | |
27432 | ||
27433 | if test -n "$XNESTMODULES_CFLAGS"; then | |
27434 | pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" | |
27435 | elif test -n "$PKG_CONFIG"; then | |
27436 | if test -n "$PKG_CONFIG" && \ | |
27437 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 | |
27438 | ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 | |
27439 | ac_status=$? | |
27440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27441 | test $ac_status = 0; }; then | |
27442 | pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` | |
27443 | else | |
27444 | pkg_failed=yes | |
27445 | fi | |
27446 | else | |
27447 | pkg_failed=untried | |
27448 | fi | |
27449 | if test -n "$XNESTMODULES_LIBS"; then | |
27450 | pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" | |
27451 | elif test -n "$PKG_CONFIG"; then | |
27452 | if test -n "$PKG_CONFIG" && \ | |
27453 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 | |
27454 | ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 | |
27455 | ac_status=$? | |
27456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27457 | test $ac_status = 0; }; then | |
27458 | pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` | |
27459 | else | |
27460 | pkg_failed=yes | |
27461 | fi | |
27462 | else | |
27463 | pkg_failed=untried | |
27464 | fi | |
27465 | ||
27466 | ||
27467 | ||
27468 | if test $pkg_failed = yes; then | |
27469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27470 | $as_echo "no" >&6; } | |
27471 | ||
27472 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27473 | _pkg_short_errors_supported=yes | |
27474 | else | |
27475 | _pkg_short_errors_supported=no | |
27476 | fi | |
27477 | if test $_pkg_short_errors_supported = yes; then | |
27478 | XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` | |
27479 | else | |
27480 | XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` | |
27481 | fi | |
27482 | # Put the nasty error message in config.log where it belongs | |
27483 | echo "$XNESTMODULES_PKG_ERRORS" >&5 | |
27484 | ||
27485 | have_xnest=no | |
27486 | elif test $pkg_failed = untried; then | |
27487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27488 | $as_echo "no" >&6; } | |
27489 | have_xnest=no | |
27490 | else | |
27491 | XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS | |
27492 | XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS | |
27493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27494 | $as_echo "yes" >&6; } | |
27495 | have_xnest=yes | |
27496 | fi | |
27497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 | |
27498 | $as_echo_n "checking whether to build Xnest DDX... " >&6; } | |
27499 | if test "x$XNEST" = xauto; then | |
27500 | XNEST="$have_xnest" | |
27501 | fi | |
27502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 | |
27503 | $as_echo "$XNEST" >&6; } | |
27504 | if test "x$XNEST" = xyes; then | |
27505 | XNEST_TRUE= | |
27506 | XNEST_FALSE='#' | |
27507 | else | |
27508 | XNEST_TRUE='#' | |
27509 | XNEST_FALSE= | |
27510 | fi | |
27511 | ||
27512 | ||
27513 | if test "x$XNEST" = xyes; then | |
27514 | if test "x$have_xnest" = xno; then | |
27515 | as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 | |
27516 | fi | |
27517 | XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB" | |
27518 | XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" | |
27519 | ||
27520 | ||
27521 | fi | |
27522 | ||
27523 | ||
27524 | ||
27525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 | |
27526 | $as_echo_n "checking whether to build Xorg DDX... " >&6; } | |
27527 | if test "x$XORG" = xauto; then | |
27528 | XORG="yes" | |
27529 | case $host_os in | |
27530 | cygwin*) XORG="no" ;; | |
27531 | mingw*) XORG="no" ;; | |
27532 | darwin*) XORG="no" ;; | |
27533 | esac | |
27534 | fi | |
27535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 | |
27536 | $as_echo "$XORG" >&6; } | |
27537 | ||
27538 | if test "x$XORG" = xyes; then | |
27539 | XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' | |
27540 | XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' | |
27541 | XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" | |
27542 | XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H" | |
27543 | XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $XI_LIB $XKB_LIB" | |
27544 | ||
27545 | symbol_visibility= | |
27546 | have_visibility=disabled | |
27547 | if test x$SYMBOL_VISIBILITY != xno; then | |
27548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 | |
27549 | $as_echo_n "checking for symbol visibility support... " >&6; } | |
27550 | if test x$GCC = xyes; then | |
27551 | VISIBILITY_CFLAGS="-fvisibility=hidden" | |
27552 | else | |
27553 | if test x$SUNCC = xyes; then | |
27554 | VISIBILITY_CFLAGS="-xldscope=hidden" | |
27555 | else | |
27556 | have_visibility=no | |
27557 | fi | |
27558 | fi | |
27559 | if test x$have_visibility != xno; then | |
27560 | save_CFLAGS="$CFLAGS" | |
27561 | proto_inc=`$PKG_CONFIG --cflags xproto` | |
27562 | CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" | |
27563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27564 | /* end confdefs.h. */ | |
27565 | #include <X11/Xfuncproto.h> | |
27566 | extern _X_HIDDEN int hidden_int; | |
27567 | extern _X_EXPORT int public_int; | |
27568 | extern _X_HIDDEN int hidden_int_func(void); | |
27569 | extern _X_EXPORT int public_int_func(void); | |
27570 | int | |
27571 | main () | |
27572 | { | |
27573 | ||
27574 | ; | |
27575 | return 0; | |
27576 | } | |
27577 | _ACEOF | |
27578 | if ac_fn_c_try_compile "$LINENO"; then : | |
27579 | have_visibility=yes | |
27580 | else | |
27581 | have_visibility=no | |
27582 | fi | |
27583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27584 | CFLAGS=$save_CFLAGS | |
27585 | fi | |
27586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 | |
27587 | $as_echo "$have_visibility" >&6; } | |
27588 | if test x$have_visibility != xno; then | |
27589 | symbol_visibility=$VISIBILITY_CFLAGS | |
27590 | XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" | |
27591 | XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" | |
27592 | fi | |
27593 | fi | |
27594 | ||
27595 | ||
27596 | xorg_bus_bsdpci=no | |
27597 | xorg_bus_sparc=no | |
27598 | ||
27599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 | |
27600 | $as_echo_n "checking whether to build Xorg PCI functions... " >&6; } | |
27601 | if test "x$PCI" = xyes; then | |
27602 | ||
27603 | pkg_failed=no | |
27604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 | |
27605 | $as_echo_n "checking for PCIACCESS... " >&6; } | |
27606 | ||
27607 | if test -n "$PCIACCESS_CFLAGS"; then | |
27608 | pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" | |
27609 | elif test -n "$PKG_CONFIG"; then | |
27610 | if test -n "$PKG_CONFIG" && \ | |
27611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 | |
27612 | ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 | |
27613 | ac_status=$? | |
27614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27615 | test $ac_status = 0; }; then | |
27616 | pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` | |
27617 | else | |
27618 | pkg_failed=yes | |
27619 | fi | |
27620 | else | |
27621 | pkg_failed=untried | |
27622 | fi | |
27623 | if test -n "$PCIACCESS_LIBS"; then | |
27624 | pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" | |
27625 | elif test -n "$PKG_CONFIG"; then | |
27626 | if test -n "$PKG_CONFIG" && \ | |
27627 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 | |
27628 | ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 | |
27629 | ac_status=$? | |
27630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27631 | test $ac_status = 0; }; then | |
27632 | pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` | |
27633 | else | |
27634 | pkg_failed=yes | |
27635 | fi | |
27636 | else | |
27637 | pkg_failed=untried | |
27638 | fi | |
27639 | ||
27640 | ||
27641 | ||
27642 | if test $pkg_failed = yes; then | |
27643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27644 | $as_echo "no" >&6; } | |
27645 | ||
27646 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27647 | _pkg_short_errors_supported=yes | |
27648 | else | |
27649 | _pkg_short_errors_supported=no | |
27650 | fi | |
27651 | if test $_pkg_short_errors_supported = yes; then | |
27652 | PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPCIACCESS" 2>&1` | |
27653 | else | |
27654 | PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPCIACCESS" 2>&1` | |
27655 | fi | |
27656 | # Put the nasty error message in config.log where it belongs | |
27657 | echo "$PCIACCESS_PKG_ERRORS" >&5 | |
27658 | ||
27659 | as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: | |
27660 | ||
27661 | $PCIACCESS_PKG_ERRORS | |
27662 | ||
27663 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
27664 | installed software in a non-standard prefix. | |
27665 | ||
27666 | Alternatively, you may set the environment variables PCIACCESS_CFLAGS | |
27667 | and PCIACCESS_LIBS to avoid the need to call pkg-config. | |
27668 | See the pkg-config man page for more details." "$LINENO" 5 | |
27669 | ||
27670 | elif test $pkg_failed = untried; then | |
27671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27672 | $as_echo "no" >&6; } | |
27673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
27674 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
27675 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
27676 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
27677 | path to pkg-config. | |
27678 | ||
27679 | Alternatively, you may set the environment variables PCIACCESS_CFLAGS | |
27680 | and PCIACCESS_LIBS to avoid the need to call pkg-config. | |
27681 | See the pkg-config man page for more details. | |
27682 | ||
27683 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
27684 | See \`config.log' for more details" "$LINENO" 5; } | |
27685 | ||
27686 | else | |
27687 | PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS | |
27688 | PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS | |
27689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27690 | $as_echo "yes" >&6; } | |
27691 | ||
27692 | fi | |
27693 | SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" | |
27694 | XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $GLX_SYS_LIBS $LIBDRM_LIBS" | |
27695 | XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" | |
27696 | ||
27697 | ||
27698 | $as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h | |
27699 | ||
27700 | ||
27701 | prefix_NONE= | |
27702 | exec_prefix_NONE= | |
27703 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
27704 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
27705 | eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" | |
27706 | eval ac_define_dir="\"$ac_define_dir\"" | |
27707 | PCI_TXT_IDS_PATH="$ac_define_dir" | |
27708 | ||
27709 | ||
27710 | cat >>confdefs.h <<_ACEOF | |
27711 | #define PCI_TXT_IDS_PATH "$ac_define_dir" | |
27712 | _ACEOF | |
27713 | ||
27714 | test "$prefix_NONE" && prefix=NONE | |
27715 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
27716 | ||
27717 | case $host_os in | |
27718 | gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) | |
27719 | xorg_bus_bsdpci="yes" | |
27720 | ;; | |
27721 | esac | |
27722 | case $host_cpu in | |
27723 | sparc*) | |
27724 | xorg_bus_sparc="yes" | |
27725 | ;; | |
27726 | esac | |
27727 | else | |
27728 | if test "x$CONFIG_UDEV_KMS" = xyes; then | |
27729 | as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 | |
27730 | fi | |
27731 | if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then | |
27732 | as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 | |
27733 | fi | |
27734 | fi | |
27735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 | |
27736 | $as_echo "$PCI" >&6; } | |
27737 | ||
27738 | if test "x$CONFIG_UDEV_KMS" = xyes; then | |
27739 | ||
27740 | $as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h | |
27741 | ||
27742 | fi | |
27743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 | |
27744 | $as_echo "$XSERVER_PLATFORM_BUS" >&6; } | |
27745 | ||
27746 | case $host_os in | |
27747 | linux*) | |
27748 | XORG_OS_SUBDIR="linux" | |
27749 | linux_acpi="no" | |
27750 | case $host_cpu in | |
27751 | alpha*) | |
27752 | linux_alpha=yes | |
27753 | ;; | |
27754 | i*86|amd64*|x86_64*|ia64*) | |
27755 | linux_acpi=$enable_linux_acpi | |
27756 | ;; | |
27757 | *) | |
27758 | ;; | |
27759 | esac | |
27760 | for ac_header in linux/apm_bios.h | |
27761 | do : | |
27762 | ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" | |
27763 | if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then : | |
27764 | cat >>confdefs.h <<_ACEOF | |
27765 | #define HAVE_LINUX_APM_BIOS_H 1 | |
27766 | _ACEOF | |
27767 | linux_apm=$enable_linux_apm | |
27768 | fi | |
27769 | ||
27770 | done | |
27771 | ||
27772 | if test "x$linux_apm" = xyes -o "x$linux_acpi" = xyes; then | |
27773 | ||
27774 | $as_echo "#define XF86PM 1" >>confdefs.h | |
27775 | ||
27776 | fi | |
27777 | ;; | |
27778 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
27779 | XORG_OS_SUBDIR="bsd" | |
27780 | ;; | |
27781 | netbsd*) | |
27782 | XORG_OS_SUBDIR="bsd" | |
27783 | ;; | |
27784 | openbsd*) | |
27785 | if test "x$ac_cv_BSD_APM" = xyes \ | |
27786 | -o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then | |
27787 | XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" | |
27788 | fi | |
27789 | XORG_OS_SUBDIR="bsd" | |
27790 | ;; | |
27791 | solaris*) | |
27792 | XORG_OS_SUBDIR="solaris" | |
27793 | XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" | |
27794 | for ac_header in sys/kd.h | |
27795 | do : | |
27796 | ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" | |
27797 | if test "x$ac_cv_header_sys_kd_h" = xyes; then : | |
27798 | cat >>confdefs.h <<_ACEOF | |
27799 | #define HAVE_SYS_KD_H 1 | |
27800 | _ACEOF | |
27801 | ||
27802 | fi | |
27803 | ||
27804 | done | |
27805 | ||
27806 | for ac_header in sys/vt.h | |
27807 | do : | |
27808 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" | |
27809 | if test "x$ac_cv_header_sys_vt_h" = xyes; then : | |
27810 | cat >>confdefs.h <<_ACEOF | |
27811 | #define HAVE_SYS_VT_H 1 | |
27812 | _ACEOF | |
27813 | solaris_vt=yes | |
27814 | else | |
27815 | solaris_vt=no | |
27816 | fi | |
27817 | ||
27818 | done | |
27819 | ||
27820 | # Check for minimum supported release | |
27821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 | |
27822 | $as_echo_n "checking Solaris version... " >&6; } | |
27823 | OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` | |
27824 | if test "${OS_MINOR}" -ge 7 ; then | |
27825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 | |
27826 | $as_echo "Solaris ${OS_MINOR}" >&6; } | |
27827 | else | |
27828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 | |
27829 | $as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } | |
27830 | fi | |
27831 | if test "${OS_MINOR}" -lt 8 ; then | |
27832 | as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 | |
27833 | fi | |
27834 | ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" | |
27835 | if test "x$ac_cv_have_decl__LP64" = xyes; then : | |
27836 | SOLARIS_64="yes" | |
27837 | else | |
27838 | SOLARIS_64="no" | |
27839 | fi | |
27840 | ||
27841 | ||
27842 | case $host_cpu in | |
27843 | sparc*) | |
27844 | SOLARIS_INOUT_ARCH="sparcv8plus" | |
27845 | ;; | |
27846 | i*86) | |
27847 | if test x$SOLARIS_64 = xyes ; then | |
27848 | SOLARIS_INOUT_ARCH="amd64" | |
27849 | else | |
27850 | SOLARIS_INOUT_ARCH="ia32" | |
27851 | fi | |
27852 | ;; | |
27853 | *) | |
27854 | as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ | |
27855 | are supported on Solaris in this release. If you are \ | |
27856 | interested in porting Xorg to your platform, please email \ | |
27857 | xorg@lists.freedesktop.org." "$LINENO" 5 ;; | |
27858 | esac | |
27859 | ||
27860 | ;; | |
27861 | gnu*) | |
27862 | XORG_OS_SUBDIR="hurd" | |
27863 | ;; | |
27864 | *) | |
27865 | XORG_OS_SUBDIR="stub" | |
27866 | { $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. Xorg currently only supports Linux, | |
27867 | Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are | |
27868 | interested in porting Xorg to your platform, please email | |
27869 | xorg@lists.freedesktop.org." >&5 | |
27870 | $as_echo "$as_me: Your OS is unknown. Xorg currently only supports Linux, | |
27871 | Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are | |
27872 | interested in porting Xorg to your platform, please email | |
27873 | xorg@lists.freedesktop.org." >&6;} | |
27874 | ;; | |
27875 | esac | |
27876 | ||
27877 | case $host_cpu in | |
27878 | i*86) | |
27879 | ;; | |
27880 | esac | |
27881 | ||
27882 | if test "x$DGA" = xauto; then | |
27883 | ||
27884 | pkg_failed=no | |
27885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 | |
27886 | $as_echo_n "checking for DGA... " >&6; } | |
27887 | ||
27888 | if test -n "$DGA_CFLAGS"; then | |
27889 | pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" | |
27890 | elif test -n "$PKG_CONFIG"; then | |
27891 | if test -n "$PKG_CONFIG" && \ | |
27892 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 | |
27893 | ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 | |
27894 | ac_status=$? | |
27895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27896 | test $ac_status = 0; }; then | |
27897 | pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` | |
27898 | else | |
27899 | pkg_failed=yes | |
27900 | fi | |
27901 | else | |
27902 | pkg_failed=untried | |
27903 | fi | |
27904 | if test -n "$DGA_LIBS"; then | |
27905 | pkg_cv_DGA_LIBS="$DGA_LIBS" | |
27906 | elif test -n "$PKG_CONFIG"; then | |
27907 | if test -n "$PKG_CONFIG" && \ | |
27908 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 | |
27909 | ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 | |
27910 | ac_status=$? | |
27911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27912 | test $ac_status = 0; }; then | |
27913 | pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` | |
27914 | else | |
27915 | pkg_failed=yes | |
27916 | fi | |
27917 | else | |
27918 | pkg_failed=untried | |
27919 | fi | |
27920 | ||
27921 | ||
27922 | ||
27923 | if test $pkg_failed = yes; then | |
27924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27925 | $as_echo "no" >&6; } | |
27926 | ||
27927 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27928 | _pkg_short_errors_supported=yes | |
27929 | else | |
27930 | _pkg_short_errors_supported=no | |
27931 | fi | |
27932 | if test $_pkg_short_errors_supported = yes; then | |
27933 | DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1` | |
27934 | else | |
27935 | DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1` | |
27936 | fi | |
27937 | # Put the nasty error message in config.log where it belongs | |
27938 | echo "$DGA_PKG_ERRORS" >&5 | |
27939 | ||
27940 | DGA=no | |
27941 | elif test $pkg_failed = untried; then | |
27942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27943 | $as_echo "no" >&6; } | |
27944 | DGA=no | |
27945 | else | |
27946 | DGA_CFLAGS=$pkg_cv_DGA_CFLAGS | |
27947 | DGA_LIBS=$pkg_cv_DGA_LIBS | |
27948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
27949 | $as_echo "yes" >&6; } | |
27950 | DGA=yes | |
27951 | fi | |
27952 | fi | |
27953 | if test "x$DGA" = xyes; then | |
27954 | XORG_MODULES="$XORG_MODULES $DGAPROTO" | |
27955 | ||
27956 | pkg_failed=no | |
27957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 | |
27958 | $as_echo_n "checking for DGA... " >&6; } | |
27959 | ||
27960 | if test -n "$DGA_CFLAGS"; then | |
27961 | pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" | |
27962 | elif test -n "$PKG_CONFIG"; then | |
27963 | if test -n "$PKG_CONFIG" && \ | |
27964 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 | |
27965 | ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 | |
27966 | ac_status=$? | |
27967 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27968 | test $ac_status = 0; }; then | |
27969 | pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` | |
27970 | else | |
27971 | pkg_failed=yes | |
27972 | fi | |
27973 | else | |
27974 | pkg_failed=untried | |
27975 | fi | |
27976 | if test -n "$DGA_LIBS"; then | |
27977 | pkg_cv_DGA_LIBS="$DGA_LIBS" | |
27978 | elif test -n "$PKG_CONFIG"; then | |
27979 | if test -n "$PKG_CONFIG" && \ | |
27980 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 | |
27981 | ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 | |
27982 | ac_status=$? | |
27983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
27984 | test $ac_status = 0; }; then | |
27985 | pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` | |
27986 | else | |
27987 | pkg_failed=yes | |
27988 | fi | |
27989 | else | |
27990 | pkg_failed=untried | |
27991 | fi | |
27992 | ||
27993 | ||
27994 | ||
27995 | if test $pkg_failed = yes; then | |
27996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
27997 | $as_echo "no" >&6; } | |
27998 | ||
27999 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
28000 | _pkg_short_errors_supported=yes | |
28001 | else | |
28002 | _pkg_short_errors_supported=no | |
28003 | fi | |
28004 | if test $_pkg_short_errors_supported = yes; then | |
28005 | DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1` | |
28006 | else | |
28007 | DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1` | |
28008 | fi | |
28009 | # Put the nasty error message in config.log where it belongs | |
28010 | echo "$DGA_PKG_ERRORS" >&5 | |
28011 | ||
28012 | as_fn_error $? "Package requirements ($DGAPROTO) were not met: | |
28013 | ||
28014 | $DGA_PKG_ERRORS | |
28015 | ||
28016 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
28017 | installed software in a non-standard prefix. | |
28018 | ||
28019 | Alternatively, you may set the environment variables DGA_CFLAGS | |
28020 | and DGA_LIBS to avoid the need to call pkg-config. | |
28021 | See the pkg-config man page for more details." "$LINENO" 5 | |
28022 | ||
28023 | elif test $pkg_failed = untried; then | |
28024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28025 | $as_echo "no" >&6; } | |
28026 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
28027 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
28028 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
28029 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
28030 | path to pkg-config. | |
28031 | ||
28032 | Alternatively, you may set the environment variables DGA_CFLAGS | |
28033 | and DGA_LIBS to avoid the need to call pkg-config. | |
28034 | See the pkg-config man page for more details. | |
28035 | ||
28036 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
28037 | See \`config.log' for more details" "$LINENO" 5; } | |
28038 | ||
28039 | else | |
28040 | DGA_CFLAGS=$pkg_cv_DGA_CFLAGS | |
28041 | DGA_LIBS=$pkg_cv_DGA_LIBS | |
28042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28043 | $as_echo "yes" >&6; } | |
28044 | ||
28045 | fi | |
28046 | ||
28047 | $as_echo "#define DGA 1" >>confdefs.h | |
28048 | ||
28049 | ||
28050 | $as_echo "#define XFreeXDGA 1" >>confdefs.h | |
28051 | ||
28052 | fi | |
28053 | ||
28054 | if test "x$XF86VIDMODE" = xauto; then | |
28055 | ||
28056 | pkg_failed=no | |
28057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5 | |
28058 | $as_echo_n "checking for XF86VIDMODE... " >&6; } | |
28059 | ||
28060 | if test -n "$XF86VIDMODE_CFLAGS"; then | |
28061 | pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS" | |
28062 | elif test -n "$PKG_CONFIG"; then | |
28063 | if test -n "$PKG_CONFIG" && \ | |
28064 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 | |
28065 | ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 | |
28066 | ac_status=$? | |
28067 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28068 | test $ac_status = 0; }; then | |
28069 | pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null` | |
28070 | else | |
28071 | pkg_failed=yes | |
28072 | fi | |
28073 | else | |
28074 | pkg_failed=untried | |
28075 | fi | |
28076 | if test -n "$XF86VIDMODE_LIBS"; then | |
28077 | pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS" | |
28078 | elif test -n "$PKG_CONFIG"; then | |
28079 | if test -n "$PKG_CONFIG" && \ | |
28080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 | |
28081 | ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 | |
28082 | ac_status=$? | |
28083 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28084 | test $ac_status = 0; }; then | |
28085 | pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null` | |
28086 | else | |
28087 | pkg_failed=yes | |
28088 | fi | |
28089 | else | |
28090 | pkg_failed=untried | |
28091 | fi | |
28092 | ||
28093 | ||
28094 | ||
28095 | if test $pkg_failed = yes; then | |
28096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28097 | $as_echo "no" >&6; } | |
28098 | ||
28099 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
28100 | _pkg_short_errors_supported=yes | |
28101 | else | |
28102 | _pkg_short_errors_supported=no | |
28103 | fi | |
28104 | if test $_pkg_short_errors_supported = yes; then | |
28105 | XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1` | |
28106 | else | |
28107 | XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1` | |
28108 | fi | |
28109 | # Put the nasty error message in config.log where it belongs | |
28110 | echo "$XF86VIDMODE_PKG_ERRORS" >&5 | |
28111 | ||
28112 | XF86VIDMODE=no | |
28113 | elif test $pkg_failed = untried; then | |
28114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28115 | $as_echo "no" >&6; } | |
28116 | XF86VIDMODE=no | |
28117 | else | |
28118 | XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS | |
28119 | XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS | |
28120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28121 | $as_echo "yes" >&6; } | |
28122 | XF86VIDMODE=yes | |
28123 | fi | |
28124 | fi | |
28125 | if test "x$XF86VIDMODE" = xyes; then | |
28126 | XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" | |
28127 | ||
28128 | pkg_failed=no | |
28129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5 | |
28130 | $as_echo_n "checking for XF86VIDMODE... " >&6; } | |
28131 | ||
28132 | if test -n "$XF86VIDMODE_CFLAGS"; then | |
28133 | pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS" | |
28134 | elif test -n "$PKG_CONFIG"; then | |
28135 | if test -n "$PKG_CONFIG" && \ | |
28136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 | |
28137 | ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 | |
28138 | ac_status=$? | |
28139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28140 | test $ac_status = 0; }; then | |
28141 | pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null` | |
28142 | else | |
28143 | pkg_failed=yes | |
28144 | fi | |
28145 | else | |
28146 | pkg_failed=untried | |
28147 | fi | |
28148 | if test -n "$XF86VIDMODE_LIBS"; then | |
28149 | pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS" | |
28150 | elif test -n "$PKG_CONFIG"; then | |
28151 | if test -n "$PKG_CONFIG" && \ | |
28152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 | |
28153 | ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 | |
28154 | ac_status=$? | |
28155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28156 | test $ac_status = 0; }; then | |
28157 | pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null` | |
28158 | else | |
28159 | pkg_failed=yes | |
28160 | fi | |
28161 | else | |
28162 | pkg_failed=untried | |
28163 | fi | |
28164 | ||
28165 | ||
28166 | ||
28167 | if test $pkg_failed = yes; then | |
28168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28169 | $as_echo "no" >&6; } | |
28170 | ||
28171 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
28172 | _pkg_short_errors_supported=yes | |
28173 | else | |
28174 | _pkg_short_errors_supported=no | |
28175 | fi | |
28176 | if test $_pkg_short_errors_supported = yes; then | |
28177 | XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1` | |
28178 | else | |
28179 | XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1` | |
28180 | fi | |
28181 | # Put the nasty error message in config.log where it belongs | |
28182 | echo "$XF86VIDMODE_PKG_ERRORS" >&5 | |
28183 | ||
28184 | as_fn_error $? "Package requirements ($VIDMODEPROTO) were not met: | |
28185 | ||
28186 | $XF86VIDMODE_PKG_ERRORS | |
28187 | ||
28188 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
28189 | installed software in a non-standard prefix. | |
28190 | ||
28191 | Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS | |
28192 | and XF86VIDMODE_LIBS to avoid the need to call pkg-config. | |
28193 | See the pkg-config man page for more details." "$LINENO" 5 | |
28194 | ||
28195 | elif test $pkg_failed = untried; then | |
28196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28197 | $as_echo "no" >&6; } | |
28198 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
28199 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
28200 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
28201 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
28202 | path to pkg-config. | |
28203 | ||
28204 | Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS | |
28205 | and XF86VIDMODE_LIBS to avoid the need to call pkg-config. | |
28206 | See the pkg-config man page for more details. | |
28207 | ||
28208 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
28209 | See \`config.log' for more details" "$LINENO" 5; } | |
28210 | ||
28211 | else | |
28212 | XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS | |
28213 | XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS | |
28214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28215 | $as_echo "yes" >&6; } | |
28216 | ||
28217 | fi | |
28218 | ||
28219 | $as_echo "#define XF86VIDMODE 1" >>confdefs.h | |
28220 | ||
28221 | fi | |
28222 | ||
28223 | if test -n "$XORG_MODULES"; then | |
28224 | ||
28225 | pkg_failed=no | |
28226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5 | |
28227 | $as_echo_n "checking for XORG_MODULES... " >&6; } | |
28228 | ||
28229 | if test -n "$XORG_MODULES_CFLAGS"; then | |
28230 | pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" | |
28231 | elif test -n "$PKG_CONFIG"; then | |
28232 | if test -n "$PKG_CONFIG" && \ | |
28233 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 | |
28234 | ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 | |
28235 | ac_status=$? | |
28236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28237 | test $ac_status = 0; }; then | |
28238 | pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` | |
28239 | else | |
28240 | pkg_failed=yes | |
28241 | fi | |
28242 | else | |
28243 | pkg_failed=untried | |
28244 | fi | |
28245 | if test -n "$XORG_MODULES_LIBS"; then | |
28246 | pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" | |
28247 | elif test -n "$PKG_CONFIG"; then | |
28248 | if test -n "$PKG_CONFIG" && \ | |
28249 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 | |
28250 | ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 | |
28251 | ac_status=$? | |
28252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28253 | test $ac_status = 0; }; then | |
28254 | pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` | |
28255 | else | |
28256 | pkg_failed=yes | |
28257 | fi | |
28258 | else | |
28259 | pkg_failed=untried | |
28260 | fi | |
28261 | ||
28262 | ||
28263 | ||
28264 | if test $pkg_failed = yes; then | |
28265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28266 | $as_echo "no" >&6; } | |
28267 | ||
28268 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
28269 | _pkg_short_errors_supported=yes | |
28270 | else | |
28271 | _pkg_short_errors_supported=no | |
28272 | fi | |
28273 | if test $_pkg_short_errors_supported = yes; then | |
28274 | XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XORG_MODULES" 2>&1` | |
28275 | else | |
28276 | XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XORG_MODULES" 2>&1` | |
28277 | fi | |
28278 | # Put the nasty error message in config.log where it belongs | |
28279 | echo "$XORG_MODULES_PKG_ERRORS" >&5 | |
28280 | ||
28281 | as_fn_error $? "Package requirements ($XORG_MODULES) were not met: | |
28282 | ||
28283 | $XORG_MODULES_PKG_ERRORS | |
28284 | ||
28285 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
28286 | installed software in a non-standard prefix. | |
28287 | ||
28288 | Alternatively, you may set the environment variables XORG_MODULES_CFLAGS | |
28289 | and XORG_MODULES_LIBS to avoid the need to call pkg-config. | |
28290 | See the pkg-config man page for more details." "$LINENO" 5 | |
28291 | ||
28292 | elif test $pkg_failed = untried; then | |
28293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28294 | $as_echo "no" >&6; } | |
28295 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
28296 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
28297 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
28298 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
28299 | path to pkg-config. | |
28300 | ||
28301 | Alternatively, you may set the environment variables XORG_MODULES_CFLAGS | |
28302 | and XORG_MODULES_LIBS to avoid the need to call pkg-config. | |
28303 | See the pkg-config man page for more details. | |
28304 | ||
28305 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
28306 | See \`config.log' for more details" "$LINENO" 5; } | |
28307 | ||
28308 | else | |
28309 | XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS | |
28310 | XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS | |
28311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28312 | $as_echo "yes" >&6; } | |
28313 | ||
28314 | fi | |
28315 | XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" | |
28316 | XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" | |
28317 | fi | |
28318 | ||
28319 | ||
28320 | ||
28321 | ||
28322 | ||
28323 | ||
28324 | ||
28325 | XF86CONFIGFILE="xorg.conf" | |
28326 | XF86CONFIGDIR="xorg.conf.d" | |
28327 | ||
28328 | CONFIGFILE="$sysconfdir/$XF86CONFIGFILE" | |
28329 | LOGPREFIX="$logdir/Xorg." | |
28330 | ||
28331 | $as_echo "#define XORG_SERVER 1" >>confdefs.h | |
28332 | ||
28333 | ||
28334 | $as_echo "#define XORGSERVER 1" >>confdefs.h | |
28335 | ||
28336 | ||
28337 | $as_echo "#define XFree86Server 1" >>confdefs.h | |
28338 | ||
28339 | ||
28340 | cat >>confdefs.h <<_ACEOF | |
28341 | #define XORG_VERSION_CURRENT $VENDOR_RELEASE | |
28342 | _ACEOF | |
28343 | ||
28344 | ||
28345 | $as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h | |
28346 | ||
28347 | ||
28348 | $as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h | |
28349 | ||
28350 | ||
28351 | $as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h | |
28352 | ||
28353 | ||
28354 | prefix_NONE= | |
28355 | exec_prefix_NONE= | |
28356 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
28357 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
28358 | eval ac_define_dir="\"$XF86CONFIGFILE\"" | |
28359 | eval ac_define_dir="\"$ac_define_dir\"" | |
28360 | __XCONFIGFILE__="$ac_define_dir" | |
28361 | ||
28362 | ||
28363 | cat >>confdefs.h <<_ACEOF | |
28364 | #define __XCONFIGFILE__ "$ac_define_dir" | |
28365 | _ACEOF | |
28366 | ||
28367 | test "$prefix_NONE" && prefix=NONE | |
28368 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
28369 | ||
28370 | ||
28371 | prefix_NONE= | |
28372 | exec_prefix_NONE= | |
28373 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
28374 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
28375 | eval ac_define_dir="\"$XF86CONFIGFILE\"" | |
28376 | eval ac_define_dir="\"$ac_define_dir\"" | |
28377 | XF86CONFIGFILE="$ac_define_dir" | |
28378 | ||
28379 | ||
28380 | cat >>confdefs.h <<_ACEOF | |
28381 | #define XF86CONFIGFILE "$ac_define_dir" | |
28382 | _ACEOF | |
28383 | ||
28384 | test "$prefix_NONE" && prefix=NONE | |
28385 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
28386 | ||
28387 | ||
28388 | prefix_NONE= | |
28389 | exec_prefix_NONE= | |
28390 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
28391 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
28392 | eval ac_define_dir="\"$XF86CONFIGDIR\"" | |
28393 | eval ac_define_dir="\"$ac_define_dir\"" | |
28394 | __XCONFIGDIR__="$ac_define_dir" | |
28395 | ||
28396 | ||
28397 | cat >>confdefs.h <<_ACEOF | |
28398 | #define __XCONFIGDIR__ "$ac_define_dir" | |
28399 | _ACEOF | |
28400 | ||
28401 | test "$prefix_NONE" && prefix=NONE | |
28402 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
28403 | ||
28404 | ||
28405 | prefix_NONE= | |
28406 | exec_prefix_NONE= | |
28407 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
28408 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
28409 | eval ac_define_dir="\"$moduledir\"" | |
28410 | eval ac_define_dir="\"$ac_define_dir\"" | |
28411 | DEFAULT_MODULE_PATH="$ac_define_dir" | |
28412 | ||
28413 | ||
28414 | cat >>confdefs.h <<_ACEOF | |
28415 | #define DEFAULT_MODULE_PATH "$ac_define_dir" | |
28416 | _ACEOF | |
28417 | ||
28418 | test "$prefix_NONE" && prefix=NONE | |
28419 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
28420 | ||
28421 | ||
28422 | prefix_NONE= | |
28423 | exec_prefix_NONE= | |
28424 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
28425 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
28426 | eval ac_define_dir="\"$libdir\"" | |
28427 | eval ac_define_dir="\"$ac_define_dir\"" | |
28428 | DEFAULT_LIBRARY_PATH="$ac_define_dir" | |
28429 | ||
28430 | ||
28431 | cat >>confdefs.h <<_ACEOF | |
28432 | #define DEFAULT_LIBRARY_PATH "$ac_define_dir" | |
28433 | _ACEOF | |
28434 | ||
28435 | test "$prefix_NONE" && prefix=NONE | |
28436 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
28437 | ||
28438 | ||
28439 | prefix_NONE= | |
28440 | exec_prefix_NONE= | |
28441 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
28442 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
28443 | eval ac_define_dir="\"$LOGPREFIX\"" | |
28444 | eval ac_define_dir="\"$ac_define_dir\"" | |
28445 | DEFAULT_LOGPREFIX="$ac_define_dir" | |
28446 | ||
28447 | ||
28448 | cat >>confdefs.h <<_ACEOF | |
28449 | #define DEFAULT_LOGPREFIX "$ac_define_dir" | |
28450 | _ACEOF | |
28451 | ||
28452 | test "$prefix_NONE" && prefix=NONE | |
28453 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
28454 | ||
28455 | ||
28456 | cat >>confdefs.h <<_ACEOF | |
28457 | #define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" | |
28458 | _ACEOF | |
28459 | ||
28460 | if test "x$VGAHW" = xyes; then | |
28461 | ||
28462 | $as_echo "#define WITH_VGAHW 1" >>confdefs.h | |
28463 | ||
28464 | fi | |
28465 | ||
28466 | driverdir="$moduledir/drivers" | |
28467 | ||
28468 | ||
28469 | sdkdir="$includedir/xorg" | |
28470 | extdir="$includedir/X11/extensions" | |
28471 | sysconfigdir="$datadir/X11/$XF86CONFIGDIR" | |
28472 | ||
28473 | ||
28474 | ||
28475 | ||
28476 | ||
28477 | # stuff the ABI versions into the pc file too | |
28478 | extract_abi() { | |
28479 | grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' | |
28480 | } | |
28481 | abi_ansic=`extract_abi ANSIC` | |
28482 | abi_videodrv=`extract_abi VIDEODRV` | |
28483 | abi_xinput=`extract_abi XINPUT` | |
28484 | abi_extension=`extract_abi EXTENSION` | |
28485 | ||
28486 | ||
28487 | ||
28488 | ||
28489 | fi | |
28490 | if test "x$XORG" = xyes; then | |
28491 | XORG_TRUE= | |
28492 | XORG_FALSE='#' | |
28493 | else | |
28494 | XORG_TRUE='#' | |
28495 | XORG_FALSE= | |
28496 | fi | |
28497 | ||
28498 | if test "x$PCI" = xyes; then | |
28499 | XORG_BUS_PCI_TRUE= | |
28500 | XORG_BUS_PCI_FALSE='#' | |
28501 | else | |
28502 | XORG_BUS_PCI_TRUE='#' | |
28503 | XORG_BUS_PCI_FALSE= | |
28504 | fi | |
28505 | ||
28506 | if test "x$xorg_bus_bsdpci" = xyes; then | |
28507 | XORG_BUS_BSDPCI_TRUE= | |
28508 | XORG_BUS_BSDPCI_FALSE='#' | |
28509 | else | |
28510 | XORG_BUS_BSDPCI_TRUE='#' | |
28511 | XORG_BUS_BSDPCI_FALSE= | |
28512 | fi | |
28513 | ||
28514 | if test "x$xorg_bus_sparc" = xyes; then | |
28515 | XORG_BUS_SPARC_TRUE= | |
28516 | XORG_BUS_SPARC_FALSE='#' | |
28517 | else | |
28518 | XORG_BUS_SPARC_TRUE='#' | |
28519 | XORG_BUS_SPARC_FALSE= | |
28520 | fi | |
28521 | ||
28522 | if test "x$linux_alpha" = xyes; then | |
28523 | LINUX_ALPHA_TRUE= | |
28524 | LINUX_ALPHA_FALSE='#' | |
28525 | else | |
28526 | LINUX_ALPHA_TRUE='#' | |
28527 | LINUX_ALPHA_FALSE= | |
28528 | fi | |
28529 | ||
28530 | if test "x$linux_acpi" = xyes; then | |
28531 | LNXACPI_TRUE= | |
28532 | LNXACPI_FALSE='#' | |
28533 | else | |
28534 | LNXACPI_TRUE='#' | |
28535 | LNXACPI_FALSE= | |
28536 | fi | |
28537 | ||
28538 | if test "x$linux_apm" = xyes; then | |
28539 | LNXAPM_TRUE= | |
28540 | LNXAPM_FALSE='#' | |
28541 | else | |
28542 | LNXAPM_TRUE='#' | |
28543 | LNXAPM_FALSE= | |
28544 | fi | |
28545 | ||
28546 | if test "x$solaris_vt" = xyes; then | |
28547 | SOLARIS_VT_TRUE= | |
28548 | SOLARIS_VT_FALSE='#' | |
28549 | else | |
28550 | SOLARIS_VT_TRUE='#' | |
28551 | SOLARIS_VT_FALSE= | |
28552 | fi | |
28553 | ||
28554 | if test "x$DGA" = xyes; then | |
28555 | DGA_TRUE= | |
28556 | DGA_FALSE='#' | |
28557 | else | |
28558 | DGA_TRUE='#' | |
28559 | DGA_FALSE= | |
28560 | fi | |
28561 | ||
28562 | if test "x$XF86VIDMODE" = xyes; then | |
28563 | XF86VIDMODE_TRUE= | |
28564 | XF86VIDMODE_FALSE='#' | |
28565 | else | |
28566 | XF86VIDMODE_TRUE='#' | |
28567 | XF86VIDMODE_FALSE= | |
28568 | fi | |
28569 | ||
28570 | if test "x$CONFIG_UDEV_KMS" = xyes; then | |
28571 | XORG_BUS_PLATFORM_TRUE= | |
28572 | XORG_BUS_PLATFORM_FALSE='#' | |
28573 | else | |
28574 | XORG_BUS_PLATFORM_TRUE='#' | |
28575 | XORG_BUS_PLATFORM_FALSE= | |
28576 | fi | |
28577 | ||
28578 | ||
28579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 | |
28580 | $as_echo_n "checking whether to build XWin DDX... " >&6; } | |
28581 | if test "x$XWIN" = xauto; then | |
28582 | case $host_os in | |
28583 | cygwin*) XWIN="yes" ;; | |
28584 | mingw*) XWIN="yes" ;; | |
28585 | *) XWIN="no" ;; | |
28586 | esac | |
28587 | fi | |
28588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 | |
28589 | $as_echo "$XWIN" >&6; } | |
28590 | ||
28591 | if test "x$XWIN" = xyes; then | |
28592 | ||
28593 | prefix_NONE= | |
28594 | exec_prefix_NONE= | |
28595 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
28596 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
28597 | eval ac_define_dir="\"$sysconfdir\"" | |
28598 | eval ac_define_dir="\"$ac_define_dir\"" | |
28599 | SYSCONFDIR="$ac_define_dir" | |
28600 | ||
28601 | ||
28602 | cat >>confdefs.h <<_ACEOF | |
28603 | #define SYSCONFDIR "$ac_define_dir" | |
28604 | _ACEOF | |
28605 | ||
28606 | test "$prefix_NONE" && prefix=NONE | |
28607 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
28608 | ||
28609 | ||
28610 | prefix_NONE= | |
28611 | exec_prefix_NONE= | |
28612 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
28613 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
28614 | eval ac_define_dir="\"$logdir\"" | |
28615 | eval ac_define_dir="\"$ac_define_dir\"" | |
28616 | DEFAULT_LOGDIR="$ac_define_dir" | |
28617 | ||
28618 | ||
28619 | cat >>confdefs.h <<_ACEOF | |
28620 | #define DEFAULT_LOGDIR "$ac_define_dir" | |
28621 | _ACEOF | |
28622 | ||
28623 | test "$prefix_NONE" && prefix=NONE | |
28624 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
28625 | ||
28626 | ||
28627 | cat >>confdefs.h <<_ACEOF | |
28628 | #define XORG_VERSION_CURRENT $VENDOR_RELEASE | |
28629 | _ACEOF | |
28630 | ||
28631 | ||
28632 | cat >>confdefs.h <<_ACEOF | |
28633 | #define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" | |
28634 | _ACEOF | |
28635 | ||
28636 | if test -n "$ac_tool_prefix"; then | |
28637 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
28638 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
28639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
28640 | $as_echo_n "checking for $ac_word... " >&6; } | |
28641 | if ${ac_cv_prog_WINDRES+:} false; then : | |
28642 | $as_echo_n "(cached) " >&6 | |
28643 | else | |
28644 | if test -n "$WINDRES"; then | |
28645 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
28646 | else | |
28647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28648 | for as_dir in $PATH | |
28649 | do | |
28650 | IFS=$as_save_IFS | |
28651 | test -z "$as_dir" && as_dir=. | |
28652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
28654 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
28655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28656 | break 2 | |
28657 | fi | |
28658 | done | |
28659 | done | |
28660 | IFS=$as_save_IFS | |
28661 | ||
28662 | fi | |
28663 | fi | |
28664 | WINDRES=$ac_cv_prog_WINDRES | |
28665 | if test -n "$WINDRES"; then | |
28666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
28667 | $as_echo "$WINDRES" >&6; } | |
28668 | else | |
28669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28670 | $as_echo "no" >&6; } | |
28671 | fi | |
28672 | ||
28673 | ||
28674 | fi | |
28675 | if test -z "$ac_cv_prog_WINDRES"; then | |
28676 | ac_ct_WINDRES=$WINDRES | |
28677 | # Extract the first word of "windres", so it can be a program name with args. | |
28678 | set dummy windres; ac_word=$2 | |
28679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
28680 | $as_echo_n "checking for $ac_word... " >&6; } | |
28681 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : | |
28682 | $as_echo_n "(cached) " >&6 | |
28683 | else | |
28684 | if test -n "$ac_ct_WINDRES"; then | |
28685 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
28686 | else | |
28687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28688 | for as_dir in $PATH | |
28689 | do | |
28690 | IFS=$as_save_IFS | |
28691 | test -z "$as_dir" && as_dir=. | |
28692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
28694 | ac_cv_prog_ac_ct_WINDRES="windres" | |
28695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28696 | break 2 | |
28697 | fi | |
28698 | done | |
28699 | done | |
28700 | IFS=$as_save_IFS | |
28701 | ||
28702 | fi | |
28703 | fi | |
28704 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
28705 | if test -n "$ac_ct_WINDRES"; then | |
28706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 | |
28707 | $as_echo "$ac_ct_WINDRES" >&6; } | |
28708 | else | |
28709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28710 | $as_echo "no" >&6; } | |
28711 | fi | |
28712 | ||
28713 | if test "x$ac_ct_WINDRES" = x; then | |
28714 | WINDRES="" | |
28715 | else | |
28716 | case $cross_compiling:$ac_tool_warned in | |
28717 | yes:) | |
28718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
28719 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
28720 | ac_tool_warned=yes ;; | |
28721 | esac | |
28722 | WINDRES=$ac_ct_WINDRES | |
28723 | fi | |
28724 | else | |
28725 | WINDRES="$ac_cv_prog_WINDRES" | |
28726 | fi | |
28727 | ||
28728 | ||
28729 | ||
28730 | pkg_failed=no | |
28731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5 | |
28732 | $as_echo_n "checking for XWINMODULES... " >&6; } | |
28733 | ||
28734 | if test -n "$XWINMODULES_CFLAGS"; then | |
28735 | pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" | |
28736 | elif test -n "$PKG_CONFIG"; then | |
28737 | if test -n "$PKG_CONFIG" && \ | |
28738 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\""; } >&5 | |
28739 | ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5 | |
28740 | ac_status=$? | |
28741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28742 | test $ac_status = 0; }; then | |
28743 | pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau" 2>/dev/null` | |
28744 | else | |
28745 | pkg_failed=yes | |
28746 | fi | |
28747 | else | |
28748 | pkg_failed=untried | |
28749 | fi | |
28750 | if test -n "$XWINMODULES_LIBS"; then | |
28751 | pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" | |
28752 | elif test -n "$PKG_CONFIG"; then | |
28753 | if test -n "$PKG_CONFIG" && \ | |
28754 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\""; } >&5 | |
28755 | ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5 | |
28756 | ac_status=$? | |
28757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28758 | test $ac_status = 0; }; then | |
28759 | pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau" 2>/dev/null` | |
28760 | else | |
28761 | pkg_failed=yes | |
28762 | fi | |
28763 | else | |
28764 | pkg_failed=untried | |
28765 | fi | |
28766 | ||
28767 | ||
28768 | ||
28769 | if test $pkg_failed = yes; then | |
28770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28771 | $as_echo "no" >&6; } | |
28772 | ||
28773 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
28774 | _pkg_short_errors_supported=yes | |
28775 | else | |
28776 | _pkg_short_errors_supported=no | |
28777 | fi | |
28778 | if test $_pkg_short_errors_supported = yes; then | |
28779 | XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xdmcp xau" 2>&1` | |
28780 | else | |
28781 | XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xdmcp xau" 2>&1` | |
28782 | fi | |
28783 | # Put the nasty error message in config.log where it belongs | |
28784 | echo "$XWINMODULES_PKG_ERRORS" >&5 | |
28785 | ||
28786 | as_fn_error $? "Package requirements (x11 xdmcp xau) were not met: | |
28787 | ||
28788 | $XWINMODULES_PKG_ERRORS | |
28789 | ||
28790 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
28791 | installed software in a non-standard prefix. | |
28792 | ||
28793 | Alternatively, you may set the environment variables XWINMODULES_CFLAGS | |
28794 | and XWINMODULES_LIBS to avoid the need to call pkg-config. | |
28795 | See the pkg-config man page for more details." "$LINENO" 5 | |
28796 | ||
28797 | elif test $pkg_failed = untried; then | |
28798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28799 | $as_echo "no" >&6; } | |
28800 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
28801 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
28802 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
28803 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
28804 | path to pkg-config. | |
28805 | ||
28806 | Alternatively, you may set the environment variables XWINMODULES_CFLAGS | |
28807 | and XWINMODULES_LIBS to avoid the need to call pkg-config. | |
28808 | See the pkg-config man page for more details. | |
28809 | ||
28810 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
28811 | See \`config.log' for more details" "$LINENO" 5; } | |
28812 | ||
28813 | else | |
28814 | XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS | |
28815 | XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS | |
28816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28817 | $as_echo "yes" >&6; } | |
28818 | ||
28819 | fi | |
28820 | ||
28821 | if test "x$WINDOWSWM" = xauto; then | |
28822 | if test -n "$PKG_CONFIG" && \ | |
28823 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 | |
28824 | ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 | |
28825 | ac_status=$? | |
28826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28827 | test $ac_status = 0; }; then | |
28828 | WINDOWSWM=yes | |
28829 | else | |
28830 | WINDOWSWM=no | |
28831 | fi | |
28832 | fi | |
28833 | if test "x$WINDOWSWM" = xyes ; then | |
28834 | ||
28835 | pkg_failed=no | |
28836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5 | |
28837 | $as_echo_n "checking for WINDOWSWM... " >&6; } | |
28838 | ||
28839 | if test -n "$WINDOWSWM_CFLAGS"; then | |
28840 | pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS" | |
28841 | elif test -n "$PKG_CONFIG"; then | |
28842 | if test -n "$PKG_CONFIG" && \ | |
28843 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 | |
28844 | ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 | |
28845 | ac_status=$? | |
28846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28847 | test $ac_status = 0; }; then | |
28848 | pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null` | |
28849 | else | |
28850 | pkg_failed=yes | |
28851 | fi | |
28852 | else | |
28853 | pkg_failed=untried | |
28854 | fi | |
28855 | if test -n "$WINDOWSWM_LIBS"; then | |
28856 | pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS" | |
28857 | elif test -n "$PKG_CONFIG"; then | |
28858 | if test -n "$PKG_CONFIG" && \ | |
28859 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 | |
28860 | ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 | |
28861 | ac_status=$? | |
28862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
28863 | test $ac_status = 0; }; then | |
28864 | pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null` | |
28865 | else | |
28866 | pkg_failed=yes | |
28867 | fi | |
28868 | else | |
28869 | pkg_failed=untried | |
28870 | fi | |
28871 | ||
28872 | ||
28873 | ||
28874 | if test $pkg_failed = yes; then | |
28875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28876 | $as_echo "no" >&6; } | |
28877 | ||
28878 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
28879 | _pkg_short_errors_supported=yes | |
28880 | else | |
28881 | _pkg_short_errors_supported=no | |
28882 | fi | |
28883 | if test $_pkg_short_errors_supported = yes; then | |
28884 | WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$WINDOWSWMPROTO" 2>&1` | |
28885 | else | |
28886 | WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$WINDOWSWMPROTO" 2>&1` | |
28887 | fi | |
28888 | # Put the nasty error message in config.log where it belongs | |
28889 | echo "$WINDOWSWM_PKG_ERRORS" >&5 | |
28890 | ||
28891 | as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met: | |
28892 | ||
28893 | $WINDOWSWM_PKG_ERRORS | |
28894 | ||
28895 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
28896 | installed software in a non-standard prefix. | |
28897 | ||
28898 | Alternatively, you may set the environment variables WINDOWSWM_CFLAGS | |
28899 | and WINDOWSWM_LIBS to avoid the need to call pkg-config. | |
28900 | See the pkg-config man page for more details." "$LINENO" 5 | |
28901 | ||
28902 | elif test $pkg_failed = untried; then | |
28903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
28904 | $as_echo "no" >&6; } | |
28905 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
28906 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
28907 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
28908 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
28909 | path to pkg-config. | |
28910 | ||
28911 | Alternatively, you may set the environment variables WINDOWSWM_CFLAGS | |
28912 | and WINDOWSWM_LIBS to avoid the need to call pkg-config. | |
28913 | See the pkg-config man page for more details. | |
28914 | ||
28915 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
28916 | See \`config.log' for more details" "$LINENO" 5; } | |
28917 | ||
28918 | else | |
28919 | WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS | |
28920 | WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS | |
28921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
28922 | $as_echo "yes" >&6; } | |
28923 | ||
28924 | fi | |
28925 | XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS" | |
28926 | ||
28927 | $as_echo "#define ROOTLESS 1" >>confdefs.h | |
28928 | ||
28929 | fi | |
28930 | ||
28931 | case $host_os in | |
28932 | cygwin*) | |
28933 | XWIN_SERVER_NAME=XWin | |
28934 | ||
28935 | $as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h | |
28936 | ||
28937 | ;; | |
28938 | mingw*) | |
28939 | XWIN_SERVER_NAME=Xming | |
28940 | ||
28941 | $as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h | |
28942 | ||
28943 | ||
28944 | $as_echo "#define HAS_WINSOCK 1" >>confdefs.h | |
28945 | ||
28946 | XWIN_SYS_LIBS="-lpthread -lws2_32" | |
28947 | ;; | |
28948 | esac | |
28949 | ||
28950 | XWIN_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $RANDR_LIB $RENDER_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB" | |
28951 | XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" | |
28952 | ||
28953 | ||
28954 | ||
28955 | ||
28956 | if test "x$DEBUGGING" = xyes; then | |
28957 | ||
28958 | $as_echo "#define CYGDEBUG 1" >>confdefs.h | |
28959 | ||
28960 | ||
28961 | $as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h | |
28962 | ||
28963 | ||
28964 | $as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h | |
28965 | ||
28966 | fi | |
28967 | ||
28968 | ||
28969 | $as_echo "#define DDXOSVERRORF 1" >>confdefs.h | |
28970 | ||
28971 | ||
28972 | $as_echo "#define DDXBEFORERESET 1" >>confdefs.h | |
28973 | ||
28974 | ||
28975 | if test "x$XWIN" = xyes && test "x$AIGLX" = xyes ; then | |
28976 | # Extract the first word of "python3", so it can be a program name with args. | |
28977 | set dummy python3; ac_word=$2 | |
28978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
28979 | $as_echo_n "checking for $ac_word... " >&6; } | |
28980 | if ${ac_cv_prog_PYTHON3+:} false; then : | |
28981 | $as_echo_n "(cached) " >&6 | |
28982 | else | |
28983 | if test -n "$PYTHON3"; then | |
28984 | ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. | |
28985 | else | |
28986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28987 | for as_dir in $PATH | |
28988 | do | |
28989 | IFS=$as_save_IFS | |
28990 | test -z "$as_dir" && as_dir=. | |
28991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
28993 | ac_cv_prog_PYTHON3="python3" | |
28994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28995 | break 2 | |
28996 | fi | |
28997 | done | |
28998 | done | |
28999 | IFS=$as_save_IFS | |
29000 | ||
29001 | fi | |
29002 | fi | |
29003 | PYTHON3=$ac_cv_prog_PYTHON3 | |
29004 | if test -n "$PYTHON3"; then | |
29005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 | |
29006 | $as_echo "$PYTHON3" >&6; } | |
29007 | else | |
29008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29009 | $as_echo "no" >&6; } | |
29010 | fi | |
29011 | ||
29012 | ||
29013 | if test -z "$PYTHON3"; then | |
29014 | as_fn_error $? "python3 not found" "$LINENO" 5 | |
29015 | fi | |
29016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 | |
29017 | $as_echo_n "checking for python module lxml... " >&6; } | |
29018 | $PYTHON3 -c "import lxml;" | |
29019 | if test $? -ne 0 ; then | |
29020 | as_fn_error $? "not found" "$LINENO" 5 | |
29021 | fi | |
29022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29023 | $as_echo "yes" >&6; } | |
29024 | if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then | |
29025 | ||
29026 | pkg_failed=no | |
29027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5 | |
29028 | $as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; } | |
29029 | ||
29030 | if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then | |
29031 | pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" | |
29032 | elif test -n "$PKG_CONFIG"; then | |
29033 | if test -n "$PKG_CONFIG" && \ | |
29034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 | |
29035 | ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 | |
29036 | ac_status=$? | |
29037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29038 | test $ac_status = 0; }; then | |
29039 | pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` | |
29040 | else | |
29041 | pkg_failed=yes | |
29042 | fi | |
29043 | else | |
29044 | pkg_failed=untried | |
29045 | fi | |
29046 | if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then | |
29047 | pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" | |
29048 | elif test -n "$PKG_CONFIG"; then | |
29049 | if test -n "$PKG_CONFIG" && \ | |
29050 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 | |
29051 | ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 | |
29052 | ac_status=$? | |
29053 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29054 | test $ac_status = 0; }; then | |
29055 | pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` | |
29056 | else | |
29057 | pkg_failed=yes | |
29058 | fi | |
29059 | else | |
29060 | pkg_failed=untried | |
29061 | fi | |
29062 | ||
29063 | ||
29064 | ||
29065 | if test $pkg_failed = yes; then | |
29066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29067 | $as_echo "no" >&6; } | |
29068 | ||
29069 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29070 | _pkg_short_errors_supported=yes | |
29071 | else | |
29072 | _pkg_short_errors_supported=no | |
29073 | fi | |
29074 | if test $_pkg_short_errors_supported = yes; then | |
29075 | KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "khronos-opengl-registry" 2>&1` | |
29076 | else | |
29077 | KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors "khronos-opengl-registry" 2>&1` | |
29078 | fi | |
29079 | # Put the nasty error message in config.log where it belongs | |
29080 | echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 | |
29081 | ||
29082 | as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: | |
29083 | ||
29084 | $KHRONOS_OPENGL_REGISTRY_PKG_ERRORS | |
29085 | ||
29086 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
29087 | installed software in a non-standard prefix. | |
29088 | ||
29089 | Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS | |
29090 | and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. | |
29091 | See the pkg-config man page for more details." "$LINENO" 5 | |
29092 | ||
29093 | elif test $pkg_failed = untried; then | |
29094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29095 | $as_echo "no" >&6; } | |
29096 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
29097 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
29098 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
29099 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
29100 | path to pkg-config. | |
29101 | ||
29102 | Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS | |
29103 | and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. | |
29104 | See the pkg-config man page for more details. | |
29105 | ||
29106 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
29107 | See \`config.log' for more details" "$LINENO" 5; } | |
29108 | ||
29109 | else | |
29110 | KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS | |
29111 | KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS | |
29112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29113 | $as_echo "yes" >&6; } | |
29114 | ||
29115 | fi | |
29116 | KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` | |
29117 | fi | |
29118 | ||
29119 | fi | |
29120 | ||
29121 | fi | |
29122 | if test "x$XWIN" = xyes; then | |
29123 | XWIN_TRUE= | |
29124 | XWIN_FALSE='#' | |
29125 | else | |
29126 | XWIN_TRUE='#' | |
29127 | XWIN_FALSE= | |
29128 | fi | |
29129 | ||
29130 | if test "x$XWIN" = xyes; then | |
29131 | XWIN_MULTIWINDOW_TRUE= | |
29132 | XWIN_MULTIWINDOW_FALSE='#' | |
29133 | else | |
29134 | XWIN_MULTIWINDOW_TRUE='#' | |
29135 | XWIN_MULTIWINDOW_FALSE= | |
29136 | fi | |
29137 | ||
29138 | if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then | |
29139 | XWIN_MULTIWINDOWEXTWM_TRUE= | |
29140 | XWIN_MULTIWINDOWEXTWM_FALSE='#' | |
29141 | else | |
29142 | XWIN_MULTIWINDOWEXTWM_TRUE='#' | |
29143 | XWIN_MULTIWINDOWEXTWM_FALSE= | |
29144 | fi | |
29145 | ||
29146 | if test "x$XWIN" = xyes; then | |
29147 | XWIN_CLIPBOARD_TRUE= | |
29148 | XWIN_CLIPBOARD_FALSE='#' | |
29149 | else | |
29150 | XWIN_CLIPBOARD_TRUE='#' | |
29151 | XWIN_CLIPBOARD_FALSE= | |
29152 | fi | |
29153 | ||
29154 | if test "x$XWIN" = xyes && test "x$AIGLX" = xyes; then | |
29155 | XWIN_GLX_WINDOWS_TRUE= | |
29156 | XWIN_GLX_WINDOWS_FALSE='#' | |
29157 | else | |
29158 | XWIN_GLX_WINDOWS_TRUE='#' | |
29159 | XWIN_GLX_WINDOWS_FALSE= | |
29160 | fi | |
29161 | ||
29162 | if test "x$XWIN" = xyes; then | |
29163 | XWIN_NATIVEGDI_TRUE= | |
29164 | XWIN_NATIVEGDI_FALSE='#' | |
29165 | else | |
29166 | XWIN_NATIVEGDI_TRUE='#' | |
29167 | XWIN_NATIVEGDI_FALSE= | |
29168 | fi | |
29169 | ||
29170 | if test "x$XWIN" = xyes; then | |
29171 | XWIN_PRIMARYFB_TRUE= | |
29172 | XWIN_PRIMARYFB_FALSE='#' | |
29173 | else | |
29174 | XWIN_PRIMARYFB_TRUE='#' | |
29175 | XWIN_PRIMARYFB_FALSE= | |
29176 | fi | |
29177 | ||
29178 | if test "x$XWIN" = xyes; then | |
29179 | XWIN_RANDR_TRUE= | |
29180 | XWIN_RANDR_FALSE='#' | |
29181 | else | |
29182 | XWIN_RANDR_TRUE='#' | |
29183 | XWIN_RANDR_FALSE= | |
29184 | fi | |
29185 | ||
29186 | if test "x$XWIN" = xyes && test "x$XV" = xyes; then | |
29187 | XWIN_XV_TRUE= | |
29188 | XWIN_XV_FALSE='#' | |
29189 | else | |
29190 | XWIN_XV_TRUE='#' | |
29191 | XWIN_XV_FALSE= | |
29192 | fi | |
29193 | ||
29194 | ||
29195 | if test "x$XQUARTZ" = xyes; then | |
29196 | ||
29197 | $as_echo "#define XQUARTZ 1" >>confdefs.h | |
29198 | ||
29199 | ||
29200 | $as_echo "#define ROOTLESS 1" >>confdefs.h | |
29201 | ||
29202 | ||
29203 | XQUARTZ_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $PRESENT_LIB" | |
29204 | ||
29205 | ||
29206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 | |
29207 | $as_echo_n "checking for xp_init in -lXplugin... " >&6; } | |
29208 | if ${ac_cv_lib_Xplugin_xp_init+:} false; then : | |
29209 | $as_echo_n "(cached) " >&6 | |
29210 | else | |
29211 | ac_check_lib_save_LIBS=$LIBS | |
29212 | LIBS="-lXplugin $LIBS" | |
29213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29214 | /* end confdefs.h. */ | |
29215 | ||
29216 | /* Override any GCC internal prototype to avoid an error. | |
29217 | Use char because int might match the return type of a GCC | |
29218 | builtin and then its argument prototype would still apply. */ | |
29219 | #ifdef __cplusplus | |
29220 | extern "C" | |
29221 | #endif | |
29222 | char xp_init (); | |
29223 | int | |
29224 | main () | |
29225 | { | |
29226 | return xp_init (); | |
29227 | ; | |
29228 | return 0; | |
29229 | } | |
29230 | _ACEOF | |
29231 | if ac_fn_c_try_link "$LINENO"; then : | |
29232 | ac_cv_lib_Xplugin_xp_init=yes | |
29233 | else | |
29234 | ac_cv_lib_Xplugin_xp_init=no | |
29235 | fi | |
29236 | rm -f core conftest.err conftest.$ac_objext \ | |
29237 | conftest$ac_exeext conftest.$ac_ext | |
29238 | LIBS=$ac_check_lib_save_LIBS | |
29239 | fi | |
29240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 | |
29241 | $as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; } | |
29242 | if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then : | |
29243 | : | |
29244 | fi | |
29245 | ||
29246 | ||
29247 | CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" | |
29248 | ||
29249 | ||
29250 | pkg_failed=no | |
29251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5 | |
29252 | $as_echo_n "checking for XPBPROXY... " >&6; } | |
29253 | ||
29254 | if test -n "$XPBPROXY_CFLAGS"; then | |
29255 | pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" | |
29256 | elif test -n "$PKG_CONFIG"; then | |
29257 | if test -n "$PKG_CONFIG" && \ | |
29258 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 | |
29259 | ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 | |
29260 | ac_status=$? | |
29261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29262 | test $ac_status = 0; }; then | |
29263 | pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` | |
29264 | else | |
29265 | pkg_failed=yes | |
29266 | fi | |
29267 | else | |
29268 | pkg_failed=untried | |
29269 | fi | |
29270 | if test -n "$XPBPROXY_LIBS"; then | |
29271 | pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" | |
29272 | elif test -n "$PKG_CONFIG"; then | |
29273 | if test -n "$PKG_CONFIG" && \ | |
29274 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 | |
29275 | ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 | |
29276 | ac_status=$? | |
29277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29278 | test $ac_status = 0; }; then | |
29279 | pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` | |
29280 | else | |
29281 | pkg_failed=yes | |
29282 | fi | |
29283 | else | |
29284 | pkg_failed=untried | |
29285 | fi | |
29286 | ||
29287 | ||
29288 | ||
29289 | if test $pkg_failed = yes; then | |
29290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29291 | $as_echo "no" >&6; } | |
29292 | ||
29293 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29294 | _pkg_short_errors_supported=yes | |
29295 | else | |
29296 | _pkg_short_errors_supported=no | |
29297 | fi | |
29298 | if test $_pkg_short_errors_supported = yes; then | |
29299 | XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` | |
29300 | else | |
29301 | XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` | |
29302 | fi | |
29303 | # Put the nasty error message in config.log where it belongs | |
29304 | echo "$XPBPROXY_PKG_ERRORS" >&5 | |
29305 | ||
29306 | as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: | |
29307 | ||
29308 | $XPBPROXY_PKG_ERRORS | |
29309 | ||
29310 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
29311 | installed software in a non-standard prefix. | |
29312 | ||
29313 | Alternatively, you may set the environment variables XPBPROXY_CFLAGS | |
29314 | and XPBPROXY_LIBS to avoid the need to call pkg-config. | |
29315 | See the pkg-config man page for more details." "$LINENO" 5 | |
29316 | ||
29317 | elif test $pkg_failed = untried; then | |
29318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29319 | $as_echo "no" >&6; } | |
29320 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
29321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
29322 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
29323 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
29324 | path to pkg-config. | |
29325 | ||
29326 | Alternatively, you may set the environment variables XPBPROXY_CFLAGS | |
29327 | and XPBPROXY_LIBS to avoid the need to call pkg-config. | |
29328 | See the pkg-config man page for more details. | |
29329 | ||
29330 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
29331 | See \`config.log' for more details" "$LINENO" 5; } | |
29332 | ||
29333 | else | |
29334 | XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS | |
29335 | XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS | |
29336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29337 | $as_echo "yes" >&6; } | |
29338 | ||
29339 | fi | |
29340 | ||
29341 | if test "x$XQUARTZ_SPARKLE" = xyes ; then | |
29342 | ||
29343 | $as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h | |
29344 | ||
29345 | fi | |
29346 | ||
29347 | if test "x$STANDALONE_XPBPROXY" = xyes ; then | |
29348 | ||
29349 | $as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h | |
29350 | ||
29351 | fi | |
29352 | fi | |
29353 | ||
29354 | # Support for objc in autotools is minimal and not documented. | |
29355 | OBJC='$(CC)' | |
29356 | OBJCLD='$(CCLD)' | |
29357 | OBJCLINK='$(LINK)' | |
29358 | OBJCFLAGS='$(CFLAGS)' | |
29359 | ||
29360 | ||
29361 | ||
29362 | ||
29363 | # internal, undocumented automake func follows :( | |
29364 | ||
29365 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | |
29366 | ||
29367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
29368 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
29369 | if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : | |
29370 | $as_echo_n "(cached) " >&6 | |
29371 | else | |
29372 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
29373 | # We make a subdir and do the tests there. Otherwise we can end up | |
29374 | # making bogus files that we don't know about and never remove. For | |
29375 | # instance it was reported that on HP-UX the gcc test will end up | |
29376 | # making a dummy file named `D' -- because `-MD' means `put the output | |
29377 | # in D'. | |
29378 | rm -rf conftest.dir | |
29379 | mkdir conftest.dir | |
29380 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
29381 | # using a relative directory. | |
29382 | cp "$am_depcomp" conftest.dir | |
29383 | cd conftest.dir | |
29384 | # We will build objects and dependencies in a subdirectory because | |
29385 | # it helps to detect inapplicable dependency modes. For instance | |
29386 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
29387 | # side effect of compilation, but ICC will put the dependencies in | |
29388 | # the current directory while Tru64 will put them in the object | |
29389 | # directory. | |
29390 | mkdir sub | |
29391 | ||
29392 | am_cv_OBJC_dependencies_compiler_type=none | |
29393 | if test "$am_compiler_list" = ""; then | |
29394 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
29395 | fi | |
29396 | am__universal=false | |
29397 | ||
29398 | ||
29399 | for depmode in $am_compiler_list; do | |
29400 | # Setup a source with many dependencies, because some compilers | |
29401 | # like to wrap large dependency lists on column 80 (with \), and | |
29402 | # we should not choose a depcomp mode which is confused by this. | |
29403 | # | |
29404 | # We need to recreate these files for each test, as the compiler may | |
29405 | # overwrite some of them when testing with obscure command lines. | |
29406 | # This happens at least with the AIX C compiler. | |
29407 | : > sub/conftest.c | |
29408 | for i in 1 2 3 4 5 6; do | |
29409 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
29410 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
29411 | # Solaris 8's {/usr,}/bin/sh. | |
29412 | touch sub/conftst$i.h | |
29413 | done | |
29414 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
29415 | ||
29416 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
29417 | # mode. It turns out that the SunPro C++ compiler does not properly | |
29418 | # handle `-M -o', and we need to detect this. Also, some Intel | |
29419 | # versions had trouble with output in subdirs | |
29420 | am__obj=sub/conftest.${OBJEXT-o} | |
29421 | am__minus_obj="-o $am__obj" | |
29422 | case $depmode in | |
29423 | gcc) | |
29424 | # This depmode causes a compiler race in universal mode. | |
29425 | test "$am__universal" = false || continue | |
29426 | ;; | |
29427 | nosideeffect) | |
29428 | # after this tag, mechanisms are not by side-effect, so they'll | |
29429 | # only be used when explicitly requested | |
29430 | if test "x$enable_dependency_tracking" = xyes; then | |
29431 | continue | |
29432 | else | |
29433 | break | |
29434 | fi | |
29435 | ;; | |
29436 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
29437 | # This compiler won't grok `-c -o', but also, the minuso test has | |
29438 | # not run yet. These depmodes are late enough in the game, and | |
29439 | # so weak that their functioning should not be impacted. | |
29440 | am__obj=conftest.${OBJEXT-o} | |
29441 | am__minus_obj= | |
29442 | ;; | |
29443 | none) break ;; | |
29444 | esac | |
29445 | if depmode=$depmode \ | |
29446 | source=sub/conftest.c object=$am__obj \ | |
29447 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
29448 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
29449 | >/dev/null 2>conftest.err && | |
29450 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
29451 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
29452 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
29453 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
29454 | # icc doesn't choke on unknown options, it will just issue warnings | |
29455 | # or remarks (even with -Werror). So we grep stderr for any message | |
29456 | # that says an option was ignored or not supported. | |
29457 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
29458 | # icc: Command line warning: ignoring option '-M'; no argument required | |
29459 | # The diagnosis changed in icc 8.0: | |
29460 | # icc: Command line remark: option '-MP' not supported | |
29461 | if (grep 'ignoring option' conftest.err || | |
29462 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
29463 | am_cv_OBJC_dependencies_compiler_type=$depmode | |
29464 | break | |
29465 | fi | |
29466 | fi | |
29467 | done | |
29468 | ||
29469 | cd .. | |
29470 | rm -rf conftest.dir | |
29471 | else | |
29472 | am_cv_OBJC_dependencies_compiler_type=none | |
29473 | fi | |
29474 | ||
29475 | fi | |
29476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | |
29477 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | |
29478 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | |
29479 | ||
29480 | if | |
29481 | test "x$enable_dependency_tracking" != xno \ | |
29482 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | |
29483 | am__fastdepOBJC_TRUE= | |
29484 | am__fastdepOBJC_FALSE='#' | |
29485 | else | |
29486 | am__fastdepOBJC_TRUE='#' | |
29487 | am__fastdepOBJC_FALSE= | |
29488 | fi | |
29489 | ||
29490 | ||
29491 | if test "x$XQUARTZ" = xyes; then | |
29492 | XQUARTZ_TRUE= | |
29493 | XQUARTZ_FALSE='#' | |
29494 | else | |
29495 | XQUARTZ_TRUE='#' | |
29496 | XQUARTZ_FALSE= | |
29497 | fi | |
29498 | ||
29499 | if test "x$XQUARTZ_SPARKLE" != "xno"; then | |
29500 | XQUARTZ_SPARKLE_TRUE= | |
29501 | XQUARTZ_SPARKLE_FALSE='#' | |
29502 | else | |
29503 | XQUARTZ_SPARKLE_TRUE='#' | |
29504 | XQUARTZ_SPARKLE_FALSE= | |
29505 | fi | |
29506 | ||
29507 | if test "x$STANDALONE_XPBPROXY" = xyes; then | |
29508 | STANDALONE_XPBPROXY_TRUE= | |
29509 | STANDALONE_XPBPROXY_FALSE='#' | |
29510 | else | |
29511 | STANDALONE_XPBPROXY_TRUE='#' | |
29512 | STANDALONE_XPBPROXY_FALSE= | |
29513 | fi | |
29514 | ||
29515 | ||
29516 | ||
29517 | pkg_failed=no | |
29518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5 | |
29519 | $as_echo_n "checking for DMXMODULES... " >&6; } | |
29520 | ||
29521 | if test -n "$DMXMODULES_CFLAGS"; then | |
29522 | pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS" | |
29523 | elif test -n "$PKG_CONFIG"; then | |
29524 | if test -n "$PKG_CONFIG" && \ | |
29525 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5 | |
29526 | ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 | |
29527 | ac_status=$? | |
29528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29529 | test $ac_status = 0; }; then | |
29530 | pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` | |
29531 | else | |
29532 | pkg_failed=yes | |
29533 | fi | |
29534 | else | |
29535 | pkg_failed=untried | |
29536 | fi | |
29537 | if test -n "$DMXMODULES_LIBS"; then | |
29538 | pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS" | |
29539 | elif test -n "$PKG_CONFIG"; then | |
29540 | if test -n "$PKG_CONFIG" && \ | |
29541 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5 | |
29542 | ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 | |
29543 | ac_status=$? | |
29544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29545 | test $ac_status = 0; }; then | |
29546 | pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` | |
29547 | else | |
29548 | pkg_failed=yes | |
29549 | fi | |
29550 | else | |
29551 | pkg_failed=untried | |
29552 | fi | |
29553 | ||
29554 | ||
29555 | ||
29556 | if test $pkg_failed = yes; then | |
29557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29558 | $as_echo "no" >&6; } | |
29559 | ||
29560 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29561 | _pkg_short_errors_supported=yes | |
29562 | else | |
29563 | _pkg_short_errors_supported=no | |
29564 | fi | |
29565 | if test $_pkg_short_errors_supported = yes; then | |
29566 | DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` | |
29567 | else | |
29568 | DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` | |
29569 | fi | |
29570 | # Put the nasty error message in config.log where it belongs | |
29571 | echo "$DMXMODULES_PKG_ERRORS" >&5 | |
29572 | ||
29573 | have_dmx=no | |
29574 | elif test $pkg_failed = untried; then | |
29575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29576 | $as_echo "no" >&6; } | |
29577 | have_dmx=no | |
29578 | else | |
29579 | DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS | |
29580 | DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS | |
29581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29582 | $as_echo "yes" >&6; } | |
29583 | ||
29584 | pkg_failed=no | |
29585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5 | |
29586 | $as_echo_n "checking for XDMXCONFIG_DEP... " >&6; } | |
29587 | ||
29588 | if test -n "$XDMXCONFIG_DEP_CFLAGS"; then | |
29589 | pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS" | |
29590 | elif test -n "$PKG_CONFIG"; then | |
29591 | if test -n "$PKG_CONFIG" && \ | |
29592 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 | |
29593 | ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 | |
29594 | ac_status=$? | |
29595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29596 | test $ac_status = 0; }; then | |
29597 | pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null` | |
29598 | else | |
29599 | pkg_failed=yes | |
29600 | fi | |
29601 | else | |
29602 | pkg_failed=untried | |
29603 | fi | |
29604 | if test -n "$XDMXCONFIG_DEP_LIBS"; then | |
29605 | pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS" | |
29606 | elif test -n "$PKG_CONFIG"; then | |
29607 | if test -n "$PKG_CONFIG" && \ | |
29608 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 | |
29609 | ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 | |
29610 | ac_status=$? | |
29611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29612 | test $ac_status = 0; }; then | |
29613 | pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null` | |
29614 | else | |
29615 | pkg_failed=yes | |
29616 | fi | |
29617 | else | |
29618 | pkg_failed=untried | |
29619 | fi | |
29620 | ||
29621 | ||
29622 | ||
29623 | if test $pkg_failed = yes; then | |
29624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29625 | $as_echo "no" >&6; } | |
29626 | ||
29627 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29628 | _pkg_short_errors_supported=yes | |
29629 | else | |
29630 | _pkg_short_errors_supported=no | |
29631 | fi | |
29632 | if test $_pkg_short_errors_supported = yes; then | |
29633 | XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt xpm x11" 2>&1` | |
29634 | else | |
29635 | XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt xpm x11" 2>&1` | |
29636 | fi | |
29637 | # Put the nasty error message in config.log where it belongs | |
29638 | echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5 | |
29639 | ||
29640 | have_dmx=no | |
29641 | elif test $pkg_failed = untried; then | |
29642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29643 | $as_echo "no" >&6; } | |
29644 | have_dmx=no | |
29645 | else | |
29646 | XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS | |
29647 | XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS | |
29648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29649 | $as_echo "yes" >&6; } | |
29650 | have_dmx=yes | |
29651 | fi | |
29652 | fi | |
29653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5 | |
29654 | $as_echo_n "checking whether to build Xdmx DDX... " >&6; } | |
29655 | if test "x$DMX" = xauto; then | |
29656 | DMX="$have_dmx" | |
29657 | case $host_os in | |
29658 | cygwin*) DMX="no" ;; | |
29659 | mingw*) DMX="no" ;; | |
29660 | darwin*) DMX="no" ;; | |
29661 | esac | |
29662 | fi | |
29663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5 | |
29664 | $as_echo "$DMX" >&6; } | |
29665 | if test "x$DMX" = xyes; then | |
29666 | DMX_TRUE= | |
29667 | DMX_FALSE='#' | |
29668 | else | |
29669 | DMX_TRUE='#' | |
29670 | DMX_FALSE= | |
29671 | fi | |
29672 | ||
29673 | ||
29674 | if test "x$DMX" = xyes; then | |
29675 | if test "x$have_dmx" = xno; then | |
29676 | as_fn_error $? "Xdmx build explicitly requested, but required | |
29677 | modules not found." "$LINENO" 5 | |
29678 | fi | |
29679 | DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC" | |
29680 | XDMX_CFLAGS="$DMXMODULES_CFLAGS" | |
29681 | XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $COMPOSITE_LIB $DAMAGE_LIB $MAIN_LIB $DIX_LIB $CONFIG_LIB $OS_LIB $FIXES_LIB" | |
29682 | XDMX_SYS_LIBS="$DMXMODULES_LIBS" | |
29683 | ||
29684 | ||
29685 | ||
29686 | ||
29687 | ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" | |
29688 | if test "x$ac_cv_header_linux_input_h" = xyes; then : | |
29689 | DMX_BUILD_USB="yes" | |
29690 | else | |
29691 | DMX_BUILD_USB="no" | |
29692 | fi | |
29693 | ||
29694 | ||
29695 | ac_fn_c_check_header_mongrel "$LINENO" "linux/keyboard.h" "ac_cv_header_linux_keyboard_h" "$ac_includes_default" | |
29696 | if test "x$ac_cv_header_linux_keyboard_h" = xyes; then : | |
29697 | DMX_BUILD_LNX="yes" | |
29698 | else | |
29699 | DMX_BUILD_LNX="no" | |
29700 | fi | |
29701 | ||
29702 | ||
29703 | ||
29704 | ||
29705 | ||
29706 | pkg_failed=no | |
29707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5 | |
29708 | $as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; } | |
29709 | ||
29710 | if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then | |
29711 | pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS" | |
29712 | elif test -n "$PKG_CONFIG"; then | |
29713 | if test -n "$PKG_CONFIG" && \ | |
29714 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 | |
29715 | ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 | |
29716 | ac_status=$? | |
29717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29718 | test $ac_status = 0; }; then | |
29719 | pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null` | |
29720 | else | |
29721 | pkg_failed=yes | |
29722 | fi | |
29723 | else | |
29724 | pkg_failed=untried | |
29725 | fi | |
29726 | if test -n "$DMXEXAMPLES_DEP_LIBS"; then | |
29727 | pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS" | |
29728 | elif test -n "$PKG_CONFIG"; then | |
29729 | if test -n "$PKG_CONFIG" && \ | |
29730 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 | |
29731 | ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 | |
29732 | ac_status=$? | |
29733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29734 | test $ac_status = 0; }; then | |
29735 | pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null` | |
29736 | else | |
29737 | pkg_failed=yes | |
29738 | fi | |
29739 | else | |
29740 | pkg_failed=untried | |
29741 | fi | |
29742 | ||
29743 | ||
29744 | ||
29745 | if test $pkg_failed = yes; then | |
29746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29747 | $as_echo "no" >&6; } | |
29748 | ||
29749 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29750 | _pkg_short_errors_supported=yes | |
29751 | else | |
29752 | _pkg_short_errors_supported=no | |
29753 | fi | |
29754 | if test $_pkg_short_errors_supported = yes; then | |
29755 | DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXEXT x11" 2>&1` | |
29756 | else | |
29757 | DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXEXT x11" 2>&1` | |
29758 | fi | |
29759 | # Put the nasty error message in config.log where it belongs | |
29760 | echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5 | |
29761 | ||
29762 | as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met: | |
29763 | ||
29764 | $DMXEXAMPLES_DEP_PKG_ERRORS | |
29765 | ||
29766 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
29767 | installed software in a non-standard prefix. | |
29768 | ||
29769 | Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS | |
29770 | and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
29771 | See the pkg-config man page for more details." "$LINENO" 5 | |
29772 | ||
29773 | elif test $pkg_failed = untried; then | |
29774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29775 | $as_echo "no" >&6; } | |
29776 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
29777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
29778 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
29779 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
29780 | path to pkg-config. | |
29781 | ||
29782 | Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS | |
29783 | and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
29784 | See the pkg-config man page for more details. | |
29785 | ||
29786 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
29787 | See \`config.log' for more details" "$LINENO" 5; } | |
29788 | ||
29789 | else | |
29790 | DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS | |
29791 | DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS | |
29792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29793 | $as_echo "yes" >&6; } | |
29794 | ||
29795 | fi | |
29796 | ||
29797 | ||
29798 | pkg_failed=no | |
29799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5 | |
29800 | $as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; } | |
29801 | ||
29802 | if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then | |
29803 | pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS" | |
29804 | elif test -n "$PKG_CONFIG"; then | |
29805 | if test -n "$PKG_CONFIG" && \ | |
29806 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 | |
29807 | ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 | |
29808 | ac_status=$? | |
29809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29810 | test $ac_status = 0; }; then | |
29811 | pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` | |
29812 | else | |
29813 | pkg_failed=yes | |
29814 | fi | |
29815 | else | |
29816 | pkg_failed=untried | |
29817 | fi | |
29818 | if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then | |
29819 | pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS" | |
29820 | elif test -n "$PKG_CONFIG"; then | |
29821 | if test -n "$PKG_CONFIG" && \ | |
29822 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 | |
29823 | ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 | |
29824 | ac_status=$? | |
29825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29826 | test $ac_status = 0; }; then | |
29827 | pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` | |
29828 | else | |
29829 | pkg_failed=yes | |
29830 | fi | |
29831 | else | |
29832 | pkg_failed=untried | |
29833 | fi | |
29834 | ||
29835 | ||
29836 | ||
29837 | if test $pkg_failed = yes; then | |
29838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29839 | $as_echo "no" >&6; } | |
29840 | ||
29841 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29842 | _pkg_short_errors_supported=yes | |
29843 | else | |
29844 | _pkg_short_errors_supported=no | |
29845 | fi | |
29846 | if test $_pkg_short_errors_supported = yes; then | |
29847 | DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1` | |
29848 | else | |
29849 | DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1` | |
29850 | fi | |
29851 | # Put the nasty error message in config.log where it belongs | |
29852 | echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5 | |
29853 | ||
29854 | as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met: | |
29855 | ||
29856 | $DMXXMUEXAMPLES_DEP_PKG_ERRORS | |
29857 | ||
29858 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
29859 | installed software in a non-standard prefix. | |
29860 | ||
29861 | Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS | |
29862 | and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
29863 | See the pkg-config man page for more details." "$LINENO" 5 | |
29864 | ||
29865 | elif test $pkg_failed = untried; then | |
29866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29867 | $as_echo "no" >&6; } | |
29868 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
29869 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
29870 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
29871 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
29872 | path to pkg-config. | |
29873 | ||
29874 | Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS | |
29875 | and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
29876 | See the pkg-config man page for more details. | |
29877 | ||
29878 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
29879 | See \`config.log' for more details" "$LINENO" 5; } | |
29880 | ||
29881 | else | |
29882 | DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS | |
29883 | DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS | |
29884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29885 | $as_echo "yes" >&6; } | |
29886 | ||
29887 | fi | |
29888 | ||
29889 | ||
29890 | pkg_failed=no | |
29891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5 | |
29892 | $as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; } | |
29893 | ||
29894 | if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then | |
29895 | pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS" | |
29896 | elif test -n "$PKG_CONFIG"; then | |
29897 | if test -n "$PKG_CONFIG" && \ | |
29898 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 | |
29899 | ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 | |
29900 | ac_status=$? | |
29901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29902 | test $ac_status = 0; }; then | |
29903 | pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` | |
29904 | else | |
29905 | pkg_failed=yes | |
29906 | fi | |
29907 | else | |
29908 | pkg_failed=untried | |
29909 | fi | |
29910 | if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then | |
29911 | pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS" | |
29912 | elif test -n "$PKG_CONFIG"; then | |
29913 | if test -n "$PKG_CONFIG" && \ | |
29914 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 | |
29915 | ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 | |
29916 | ac_status=$? | |
29917 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29918 | test $ac_status = 0; }; then | |
29919 | pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` | |
29920 | else | |
29921 | pkg_failed=yes | |
29922 | fi | |
29923 | else | |
29924 | pkg_failed=untried | |
29925 | fi | |
29926 | ||
29927 | ||
29928 | ||
29929 | if test $pkg_failed = yes; then | |
29930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29931 | $as_echo "no" >&6; } | |
29932 | ||
29933 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29934 | _pkg_short_errors_supported=yes | |
29935 | else | |
29936 | _pkg_short_errors_supported=no | |
29937 | fi | |
29938 | if test $_pkg_short_errors_supported = yes; then | |
29939 | DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` | |
29940 | else | |
29941 | DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` | |
29942 | fi | |
29943 | # Put the nasty error message in config.log where it belongs | |
29944 | echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5 | |
29945 | ||
29946 | as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met: | |
29947 | ||
29948 | $DMXXIEXAMPLES_DEP_PKG_ERRORS | |
29949 | ||
29950 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
29951 | installed software in a non-standard prefix. | |
29952 | ||
29953 | Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS | |
29954 | and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
29955 | See the pkg-config man page for more details." "$LINENO" 5 | |
29956 | ||
29957 | elif test $pkg_failed = untried; then | |
29958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29959 | $as_echo "no" >&6; } | |
29960 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
29961 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
29962 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
29963 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
29964 | path to pkg-config. | |
29965 | ||
29966 | Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS | |
29967 | and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
29968 | See the pkg-config man page for more details. | |
29969 | ||
29970 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
29971 | See \`config.log' for more details" "$LINENO" 5; } | |
29972 | ||
29973 | else | |
29974 | DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS | |
29975 | DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS | |
29976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29977 | $as_echo "yes" >&6; } | |
29978 | ||
29979 | fi | |
29980 | ||
29981 | ||
29982 | pkg_failed=no | |
29983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5 | |
29984 | $as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; } | |
29985 | ||
29986 | if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then | |
29987 | pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS" | |
29988 | elif test -n "$PKG_CONFIG"; then | |
29989 | if test -n "$PKG_CONFIG" && \ | |
29990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 | |
29991 | ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 | |
29992 | ac_status=$? | |
29993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
29994 | test $ac_status = 0; }; then | |
29995 | pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null` | |
29996 | else | |
29997 | pkg_failed=yes | |
29998 | fi | |
29999 | else | |
30000 | pkg_failed=untried | |
30001 | fi | |
30002 | if test -n "$XTSTEXAMPLES_DEP_LIBS"; then | |
30003 | pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS" | |
30004 | elif test -n "$PKG_CONFIG"; then | |
30005 | if test -n "$PKG_CONFIG" && \ | |
30006 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 | |
30007 | ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 | |
30008 | ac_status=$? | |
30009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30010 | test $ac_status = 0; }; then | |
30011 | pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null` | |
30012 | else | |
30013 | pkg_failed=yes | |
30014 | fi | |
30015 | else | |
30016 | pkg_failed=untried | |
30017 | fi | |
30018 | ||
30019 | ||
30020 | ||
30021 | if test $pkg_failed = yes; then | |
30022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30023 | $as_echo "no" >&6; } | |
30024 | ||
30025 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30026 | _pkg_short_errors_supported=yes | |
30027 | else | |
30028 | _pkg_short_errors_supported=no | |
30029 | fi | |
30030 | if test $_pkg_short_errors_supported = yes; then | |
30031 | XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXTST $LIBXEXT x11" 2>&1` | |
30032 | else | |
30033 | XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXTST $LIBXEXT x11" 2>&1` | |
30034 | fi | |
30035 | # Put the nasty error message in config.log where it belongs | |
30036 | echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5 | |
30037 | ||
30038 | as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met: | |
30039 | ||
30040 | $XTSTEXAMPLES_DEP_PKG_ERRORS | |
30041 | ||
30042 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
30043 | installed software in a non-standard prefix. | |
30044 | ||
30045 | Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS | |
30046 | and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
30047 | See the pkg-config man page for more details." "$LINENO" 5 | |
30048 | ||
30049 | elif test $pkg_failed = untried; then | |
30050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30051 | $as_echo "no" >&6; } | |
30052 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
30053 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
30054 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
30055 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
30056 | path to pkg-config. | |
30057 | ||
30058 | Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS | |
30059 | and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
30060 | See the pkg-config man page for more details. | |
30061 | ||
30062 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
30063 | See \`config.log' for more details" "$LINENO" 5; } | |
30064 | ||
30065 | else | |
30066 | XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS | |
30067 | XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS | |
30068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30069 | $as_echo "yes" >&6; } | |
30070 | ||
30071 | fi | |
30072 | ||
30073 | ||
30074 | pkg_failed=no | |
30075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5 | |
30076 | $as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; } | |
30077 | ||
30078 | if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then | |
30079 | pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS" | |
30080 | elif test -n "$PKG_CONFIG"; then | |
30081 | if test -n "$PKG_CONFIG" && \ | |
30082 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 | |
30083 | ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 | |
30084 | ac_status=$? | |
30085 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30086 | test $ac_status = 0; }; then | |
30087 | pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null` | |
30088 | else | |
30089 | pkg_failed=yes | |
30090 | fi | |
30091 | else | |
30092 | pkg_failed=untried | |
30093 | fi | |
30094 | if test -n "$XRESEXAMPLES_DEP_LIBS"; then | |
30095 | pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS" | |
30096 | elif test -n "$PKG_CONFIG"; then | |
30097 | if test -n "$PKG_CONFIG" && \ | |
30098 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 | |
30099 | ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 | |
30100 | ac_status=$? | |
30101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30102 | test $ac_status = 0; }; then | |
30103 | pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null` | |
30104 | else | |
30105 | pkg_failed=yes | |
30106 | fi | |
30107 | else | |
30108 | pkg_failed=untried | |
30109 | fi | |
30110 | ||
30111 | ||
30112 | ||
30113 | if test $pkg_failed = yes; then | |
30114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30115 | $as_echo "no" >&6; } | |
30116 | ||
30117 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30118 | _pkg_short_errors_supported=yes | |
30119 | else | |
30120 | _pkg_short_errors_supported=no | |
30121 | fi | |
30122 | if test $_pkg_short_errors_supported = yes; then | |
30123 | XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xres $LIBXEXT x11" 2>&1` | |
30124 | else | |
30125 | XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xres $LIBXEXT x11" 2>&1` | |
30126 | fi | |
30127 | # Put the nasty error message in config.log where it belongs | |
30128 | echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5 | |
30129 | ||
30130 | as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met: | |
30131 | ||
30132 | $XRESEXAMPLES_DEP_PKG_ERRORS | |
30133 | ||
30134 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
30135 | installed software in a non-standard prefix. | |
30136 | ||
30137 | Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS | |
30138 | and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
30139 | See the pkg-config man page for more details." "$LINENO" 5 | |
30140 | ||
30141 | elif test $pkg_failed = untried; then | |
30142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30143 | $as_echo "no" >&6; } | |
30144 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
30145 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
30146 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
30147 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
30148 | path to pkg-config. | |
30149 | ||
30150 | Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS | |
30151 | and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
30152 | See the pkg-config man page for more details. | |
30153 | ||
30154 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
30155 | See \`config.log' for more details" "$LINENO" 5; } | |
30156 | ||
30157 | else | |
30158 | XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS | |
30159 | XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS | |
30160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30161 | $as_echo "yes" >&6; } | |
30162 | ||
30163 | fi | |
30164 | ||
30165 | ||
30166 | pkg_failed=no | |
30167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5 | |
30168 | $as_echo_n "checking for X11EXAMPLES_DEP... " >&6; } | |
30169 | ||
30170 | if test -n "$X11EXAMPLES_DEP_CFLAGS"; then | |
30171 | pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS" | |
30172 | elif test -n "$PKG_CONFIG"; then | |
30173 | if test -n "$PKG_CONFIG" && \ | |
30174 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 | |
30175 | ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 | |
30176 | ac_status=$? | |
30177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30178 | test $ac_status = 0; }; then | |
30179 | pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null` | |
30180 | else | |
30181 | pkg_failed=yes | |
30182 | fi | |
30183 | else | |
30184 | pkg_failed=untried | |
30185 | fi | |
30186 | if test -n "$X11EXAMPLES_DEP_LIBS"; then | |
30187 | pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS" | |
30188 | elif test -n "$PKG_CONFIG"; then | |
30189 | if test -n "$PKG_CONFIG" && \ | |
30190 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 | |
30191 | ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 | |
30192 | ac_status=$? | |
30193 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30194 | test $ac_status = 0; }; then | |
30195 | pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null` | |
30196 | else | |
30197 | pkg_failed=yes | |
30198 | fi | |
30199 | else | |
30200 | pkg_failed=untried | |
30201 | fi | |
30202 | ||
30203 | ||
30204 | ||
30205 | if test $pkg_failed = yes; then | |
30206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30207 | $as_echo "no" >&6; } | |
30208 | ||
30209 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30210 | _pkg_short_errors_supported=yes | |
30211 | else | |
30212 | _pkg_short_errors_supported=no | |
30213 | fi | |
30214 | if test $_pkg_short_errors_supported = yes; then | |
30215 | X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11" 2>&1` | |
30216 | else | |
30217 | X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11" 2>&1` | |
30218 | fi | |
30219 | # Put the nasty error message in config.log where it belongs | |
30220 | echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5 | |
30221 | ||
30222 | as_fn_error $? "Package requirements ($LIBXEXT x11) were not met: | |
30223 | ||
30224 | $X11EXAMPLES_DEP_PKG_ERRORS | |
30225 | ||
30226 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
30227 | installed software in a non-standard prefix. | |
30228 | ||
30229 | Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS | |
30230 | and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
30231 | See the pkg-config man page for more details." "$LINENO" 5 | |
30232 | ||
30233 | elif test $pkg_failed = untried; then | |
30234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30235 | $as_echo "no" >&6; } | |
30236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
30237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
30238 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
30239 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
30240 | path to pkg-config. | |
30241 | ||
30242 | Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS | |
30243 | and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. | |
30244 | See the pkg-config man page for more details. | |
30245 | ||
30246 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
30247 | See \`config.log' for more details" "$LINENO" 5; } | |
30248 | ||
30249 | else | |
30250 | X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS | |
30251 | X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS | |
30252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30253 | $as_echo "yes" >&6; } | |
30254 | ||
30255 | fi | |
30256 | ||
30257 | ||
30258 | fi | |
30259 | if test "x$DMX_BUILD_LNX" = xyes; then | |
30260 | DMX_BUILD_LNX_TRUE= | |
30261 | DMX_BUILD_LNX_FALSE='#' | |
30262 | else | |
30263 | DMX_BUILD_LNX_TRUE='#' | |
30264 | DMX_BUILD_LNX_FALSE= | |
30265 | fi | |
30266 | ||
30267 | if test "x$DMX_BUILD_USB" = xyes; then | |
30268 | DMX_BUILD_USB_TRUE= | |
30269 | DMX_BUILD_USB_FALSE='#' | |
30270 | else | |
30271 | DMX_BUILD_USB_TRUE='#' | |
30272 | DMX_BUILD_USB_FALSE= | |
30273 | fi | |
30274 | ||
30275 | ||
30276 | ||
30277 | XEPHYR_LIBS= | |
30278 | XEPHYR_INCS= | |
30279 | ||
30280 | if test x$KDRIVE = xyes; then | |
30281 | KDRIVE_TRUE= | |
30282 | KDRIVE_FALSE='#' | |
30283 | else | |
30284 | KDRIVE_TRUE='#' | |
30285 | KDRIVE_FALSE= | |
30286 | fi | |
30287 | ||
30288 | ||
30289 | if test "$KDRIVE" = yes; then | |
30290 | ||
30291 | $as_echo "#define KDRIVESERVER 1" >>confdefs.h | |
30292 | ||
30293 | ||
30294 | $as_echo "#define KDRIVEDDXACTIONS /**/" >>confdefs.h | |
30295 | ||
30296 | ||
30297 | for ac_header in linux/fb.h | |
30298 | do : | |
30299 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" | |
30300 | if test "x$ac_cv_header_linux_fb_h" = xyes; then : | |
30301 | cat >>confdefs.h <<_ACEOF | |
30302 | #define HAVE_LINUX_FB_H 1 | |
30303 | _ACEOF | |
30304 | ||
30305 | fi | |
30306 | ||
30307 | done | |
30308 | ||
30309 | if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then | |
30310 | XFBDEV=yes | |
30311 | fi | |
30312 | ||
30313 | if test "x$XFBDEV" = xyes; then | |
30314 | KDRIVEFBDEVLIB=yes | |
30315 | ||
30316 | $as_echo "#define KDRIVEFBDEV 1" >>confdefs.h | |
30317 | ||
30318 | fi | |
30319 | ||
30320 | ||
30321 | ||
30322 | pkg_failed=no | |
30323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5 | |
30324 | $as_echo_n "checking for TSLIB... " >&6; } | |
30325 | ||
30326 | if test -n "$TSLIB_CFLAGS"; then | |
30327 | pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS" | |
30328 | elif test -n "$PKG_CONFIG"; then | |
30329 | if test -n "$PKG_CONFIG" && \ | |
30330 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5 | |
30331 | ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5 | |
30332 | ac_status=$? | |
30333 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30334 | test $ac_status = 0; }; then | |
30335 | pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-0.0" 2>/dev/null` | |
30336 | else | |
30337 | pkg_failed=yes | |
30338 | fi | |
30339 | else | |
30340 | pkg_failed=untried | |
30341 | fi | |
30342 | if test -n "$TSLIB_LIBS"; then | |
30343 | pkg_cv_TSLIB_LIBS="$TSLIB_LIBS" | |
30344 | elif test -n "$PKG_CONFIG"; then | |
30345 | if test -n "$PKG_CONFIG" && \ | |
30346 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5 | |
30347 | ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5 | |
30348 | ac_status=$? | |
30349 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30350 | test $ac_status = 0; }; then | |
30351 | pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-0.0" 2>/dev/null` | |
30352 | else | |
30353 | pkg_failed=yes | |
30354 | fi | |
30355 | else | |
30356 | pkg_failed=untried | |
30357 | fi | |
30358 | ||
30359 | ||
30360 | ||
30361 | if test $pkg_failed = yes; then | |
30362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30363 | $as_echo "no" >&6; } | |
30364 | ||
30365 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30366 | _pkg_short_errors_supported=yes | |
30367 | else | |
30368 | _pkg_short_errors_supported=no | |
30369 | fi | |
30370 | if test $_pkg_short_errors_supported = yes; then | |
30371 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib-0.0" 2>&1` | |
30372 | else | |
30373 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib-0.0" 2>&1` | |
30374 | fi | |
30375 | # Put the nasty error message in config.log where it belongs | |
30376 | echo "$TSLIB_PKG_ERRORS" >&5 | |
30377 | ||
30378 | HAVE_TSLIB="no" | |
30379 | elif test $pkg_failed = untried; then | |
30380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30381 | $as_echo "no" >&6; } | |
30382 | HAVE_TSLIB="no" | |
30383 | else | |
30384 | TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS | |
30385 | TSLIB_LIBS=$pkg_cv_TSLIB_LIBS | |
30386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30387 | $as_echo "yes" >&6; } | |
30388 | HAVE_TSLIB="yes" | |
30389 | fi | |
30390 | if test "x$HAVE_TSLIB" = xno; then | |
30391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | |
30392 | $as_echo_n "checking for ts_open in -lts... " >&6; } | |
30393 | if ${ac_cv_lib_ts_ts_open+:} false; then : | |
30394 | $as_echo_n "(cached) " >&6 | |
30395 | else | |
30396 | ac_check_lib_save_LIBS=$LIBS | |
30397 | LIBS="-lts $LIBS" | |
30398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30399 | /* end confdefs.h. */ | |
30400 | ||
30401 | /* Override any GCC internal prototype to avoid an error. | |
30402 | Use char because int might match the return type of a GCC | |
30403 | builtin and then its argument prototype would still apply. */ | |
30404 | #ifdef __cplusplus | |
30405 | extern "C" | |
30406 | #endif | |
30407 | char ts_open (); | |
30408 | int | |
30409 | main () | |
30410 | { | |
30411 | return ts_open (); | |
30412 | ; | |
30413 | return 0; | |
30414 | } | |
30415 | _ACEOF | |
30416 | if ac_fn_c_try_link "$LINENO"; then : | |
30417 | ac_cv_lib_ts_ts_open=yes | |
30418 | else | |
30419 | ac_cv_lib_ts_ts_open=no | |
30420 | fi | |
30421 | rm -f core conftest.err conftest.$ac_objext \ | |
30422 | conftest$ac_exeext conftest.$ac_ext | |
30423 | LIBS=$ac_check_lib_save_LIBS | |
30424 | fi | |
30425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | |
30426 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | |
30427 | if test "x$ac_cv_lib_ts_ts_open" = xyes; then : | |
30428 | ||
30429 | HAVE_TSLIB="yes" | |
30430 | TSLIB_LIBS="-lts" | |
30431 | ||
30432 | fi | |
30433 | ||
30434 | fi | |
30435 | ||
30436 | if test "xTSLIB" = xauto; then | |
30437 | TSLIB="$HAVE_TSLIB" | |
30438 | fi | |
30439 | ||
30440 | if test "x$TSLIB" = xyes; then | |
30441 | if ! test "x$HAVE_TSLIB" = xyes; then | |
30442 | as_fn_error $? "tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" "$LINENO" 5 | |
30443 | else | |
30444 | ||
30445 | $as_echo "#define TSLIB 1" >>confdefs.h | |
30446 | ||
30447 | fi | |
30448 | fi | |
30449 | ||
30450 | if test "x$KDRIVE_KBD" = xyes; then | |
30451 | ||
30452 | $as_echo "#define KDRIVE_KBD 1" >>confdefs.h | |
30453 | ||
30454 | fi | |
30455 | if test "x$KDRIVE_EVDEV" = xyes; then | |
30456 | ||
30457 | $as_echo "#define KDRIVE_EVDEV 1" >>confdefs.h | |
30458 | ||
30459 | fi | |
30460 | if test "x$KDRIVE_MOUSE" = xyes; then | |
30461 | ||
30462 | $as_echo "#define KDRIVE_MOUSE 1" >>confdefs.h | |
30463 | ||
30464 | fi | |
30465 | ||
30466 | XEPHYR_REQUIRED_LIBS="xau xdmcp xcb xcb-shape xcb-aux xcb-image xcb-icccm xcb-shm xcb-keysyms" | |
30467 | if test "x$XV" = xyes; then | |
30468 | XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" | |
30469 | fi | |
30470 | if test "x$DRI" = xyes && test "x$GLX" = xyes; then | |
30471 | XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS libdrm xcb-glx xcb-xf86dri > 1.6" | |
30472 | fi | |
30473 | ||
30474 | if test "x$XEPHYR" = xauto; then | |
30475 | ||
30476 | pkg_failed=no | |
30477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 | |
30478 | $as_echo_n "checking for XEPHYR... " >&6; } | |
30479 | ||
30480 | if test -n "$XEPHYR_CFLAGS"; then | |
30481 | pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" | |
30482 | elif test -n "$PKG_CONFIG"; then | |
30483 | if test -n "$PKG_CONFIG" && \ | |
30484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 | |
30485 | ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 | |
30486 | ac_status=$? | |
30487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30488 | test $ac_status = 0; }; then | |
30489 | pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` | |
30490 | else | |
30491 | pkg_failed=yes | |
30492 | fi | |
30493 | else | |
30494 | pkg_failed=untried | |
30495 | fi | |
30496 | if test -n "$XEPHYR_LIBS"; then | |
30497 | pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" | |
30498 | elif test -n "$PKG_CONFIG"; then | |
30499 | if test -n "$PKG_CONFIG" && \ | |
30500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 | |
30501 | ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 | |
30502 | ac_status=$? | |
30503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30504 | test $ac_status = 0; }; then | |
30505 | pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` | |
30506 | else | |
30507 | pkg_failed=yes | |
30508 | fi | |
30509 | else | |
30510 | pkg_failed=untried | |
30511 | fi | |
30512 | ||
30513 | ||
30514 | ||
30515 | if test $pkg_failed = yes; then | |
30516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30517 | $as_echo "no" >&6; } | |
30518 | ||
30519 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30520 | _pkg_short_errors_supported=yes | |
30521 | else | |
30522 | _pkg_short_errors_supported=no | |
30523 | fi | |
30524 | if test $_pkg_short_errors_supported = yes; then | |
30525 | XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1` | |
30526 | else | |
30527 | XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1` | |
30528 | fi | |
30529 | # Put the nasty error message in config.log where it belongs | |
30530 | echo "$XEPHYR_PKG_ERRORS" >&5 | |
30531 | ||
30532 | XEPHYR="no" | |
30533 | elif test $pkg_failed = untried; then | |
30534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30535 | $as_echo "no" >&6; } | |
30536 | XEPHYR="no" | |
30537 | else | |
30538 | XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS | |
30539 | XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS | |
30540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30541 | $as_echo "yes" >&6; } | |
30542 | XEPHYR="yes" | |
30543 | fi | |
30544 | elif test "x$XEPHYR" = xyes ; then | |
30545 | ||
30546 | pkg_failed=no | |
30547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 | |
30548 | $as_echo_n "checking for XEPHYR... " >&6; } | |
30549 | ||
30550 | if test -n "$XEPHYR_CFLAGS"; then | |
30551 | pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" | |
30552 | elif test -n "$PKG_CONFIG"; then | |
30553 | if test -n "$PKG_CONFIG" && \ | |
30554 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 | |
30555 | ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 | |
30556 | ac_status=$? | |
30557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30558 | test $ac_status = 0; }; then | |
30559 | pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` | |
30560 | else | |
30561 | pkg_failed=yes | |
30562 | fi | |
30563 | else | |
30564 | pkg_failed=untried | |
30565 | fi | |
30566 | if test -n "$XEPHYR_LIBS"; then | |
30567 | pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" | |
30568 | elif test -n "$PKG_CONFIG"; then | |
30569 | if test -n "$PKG_CONFIG" && \ | |
30570 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 | |
30571 | ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 | |
30572 | ac_status=$? | |
30573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
30574 | test $ac_status = 0; }; then | |
30575 | pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` | |
30576 | else | |
30577 | pkg_failed=yes | |
30578 | fi | |
30579 | else | |
30580 | pkg_failed=untried | |
30581 | fi | |
30582 | ||
30583 | ||
30584 | ||
30585 | if test $pkg_failed = yes; then | |
30586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30587 | $as_echo "no" >&6; } | |
30588 | ||
30589 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30590 | _pkg_short_errors_supported=yes | |
30591 | else | |
30592 | _pkg_short_errors_supported=no | |
30593 | fi | |
30594 | if test $_pkg_short_errors_supported = yes; then | |
30595 | XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1` | |
30596 | else | |
30597 | XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1` | |
30598 | fi | |
30599 | # Put the nasty error message in config.log where it belongs | |
30600 | echo "$XEPHYR_PKG_ERRORS" >&5 | |
30601 | ||
30602 | as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: | |
30603 | ||
30604 | $XEPHYR_PKG_ERRORS | |
30605 | ||
30606 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
30607 | installed software in a non-standard prefix. | |
30608 | ||
30609 | Alternatively, you may set the environment variables XEPHYR_CFLAGS | |
30610 | and XEPHYR_LIBS to avoid the need to call pkg-config. | |
30611 | See the pkg-config man page for more details." "$LINENO" 5 | |
30612 | ||
30613 | elif test $pkg_failed = untried; then | |
30614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
30615 | $as_echo "no" >&6; } | |
30616 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
30617 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
30618 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
30619 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
30620 | path to pkg-config. | |
30621 | ||
30622 | Alternatively, you may set the environment variables XEPHYR_CFLAGS | |
30623 | and XEPHYR_LIBS to avoid the need to call pkg-config. | |
30624 | See the pkg-config man page for more details. | |
30625 | ||
30626 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
30627 | See \`config.log' for more details" "$LINENO" 5; } | |
30628 | ||
30629 | else | |
30630 | XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS | |
30631 | XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS | |
30632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30633 | $as_echo "yes" >&6; } | |
30634 | ||
30635 | fi | |
30636 | fi | |
30637 | ||
30638 | # Xephyr needs nanosleep() which is in librt on Solaris | |
30639 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" | |
30640 | if test "x$ac_cv_func_nanosleep" = xyes; then : | |
30641 | ||
30642 | else | |
30643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 | |
30644 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
30645 | if ${ac_cv_lib_rt_nanosleep+:} false; then : | |
30646 | $as_echo_n "(cached) " >&6 | |
30647 | else | |
30648 | ac_check_lib_save_LIBS=$LIBS | |
30649 | LIBS="-lrt $LIBS" | |
30650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30651 | /* end confdefs.h. */ | |
30652 | ||
30653 | /* Override any GCC internal prototype to avoid an error. | |
30654 | Use char because int might match the return type of a GCC | |
30655 | builtin and then its argument prototype would still apply. */ | |
30656 | #ifdef __cplusplus | |
30657 | extern "C" | |
30658 | #endif | |
30659 | char nanosleep (); | |
30660 | int | |
30661 | main () | |
30662 | { | |
30663 | return nanosleep (); | |
30664 | ; | |
30665 | return 0; | |
30666 | } | |
30667 | _ACEOF | |
30668 | if ac_fn_c_try_link "$LINENO"; then : | |
30669 | ac_cv_lib_rt_nanosleep=yes | |
30670 | else | |
30671 | ac_cv_lib_rt_nanosleep=no | |
30672 | fi | |
30673 | rm -f core conftest.err conftest.$ac_objext \ | |
30674 | conftest$ac_exeext conftest.$ac_ext | |
30675 | LIBS=$ac_check_lib_save_LIBS | |
30676 | fi | |
30677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 | |
30678 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
30679 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : | |
30680 | XEPHYR_LIBS="$XEPHYR_LIBS -lrt" | |
30681 | fi | |
30682 | ||
30683 | fi | |
30684 | ||
30685 | ||
30686 | # damage shadow extension glx (NOTYET) fb mi | |
30687 | KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' | |
30688 | KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" | |
30689 | KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' | |
30690 | KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" | |
30691 | ||
30692 | KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS" | |
30693 | ||
30694 | KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB" | |
30695 | KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' | |
30696 | case $host_os in | |
30697 | *linux*) | |
30698 | KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.la' | |
30699 | KDRIVELINUX=yes | |
30700 | if test "x$KDRIVE_EVDEV" = xauto; then | |
30701 | KDRIVE_EVDEV=yes | |
30702 | fi | |
30703 | if test "x$KDRIVE_KBD" = xauto; then | |
30704 | KDRIVE_KBD=yes | |
30705 | fi | |
30706 | if test "x$KDRIVE_MOUSE" = xauto; then | |
30707 | KDRIVE_MOUSE=yes | |
30708 | fi | |
30709 | ;; | |
30710 | *) | |
30711 | if test "x$KDRIVE_EVDEV" = xauto; then | |
30712 | KDRIVE_EVDEV=no | |
30713 | fi | |
30714 | if test "x$KDRIVE_KBD" = xauto; then | |
30715 | KDRIVE_KBD=no | |
30716 | fi | |
30717 | if test "x$KDRIVE_MOUSE" = xauto; then | |
30718 | KDRIVE_MOUSE=no | |
30719 | fi | |
30720 | ;; | |
30721 | esac | |
30722 | KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.la' | |
30723 | KDRIVE_LOCAL_LIBS="$MAIN_LIB $DIX_LIB $KDRIVE_LIB $KDRIVE_STUB_LIB" | |
30724 | KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" | |
30725 | KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" | |
30726 | KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS $TSLIB_LIBS" | |
30727 | ||
30728 | ||
30729 | ||
30730 | fi | |
30731 | ||
30732 | ||
30733 | ||
30734 | ||
30735 | ||
30736 | ||
30737 | if test "x$KDRIVELINUX" = xyes; then | |
30738 | KDRIVELINUX_TRUE= | |
30739 | KDRIVELINUX_FALSE='#' | |
30740 | else | |
30741 | KDRIVELINUX_TRUE='#' | |
30742 | KDRIVELINUX_FALSE= | |
30743 | fi | |
30744 | ||
30745 | if test "x$KDRIVE_EVDEV" = xyes; then | |
30746 | KDRIVE_EVDEV_TRUE= | |
30747 | KDRIVE_EVDEV_FALSE='#' | |
30748 | else | |
30749 | KDRIVE_EVDEV_TRUE='#' | |
30750 | KDRIVE_EVDEV_FALSE= | |
30751 | fi | |
30752 | ||
30753 | if test "x$KDRIVE_KBD" = xyes; then | |
30754 | KDRIVE_KBD_TRUE= | |
30755 | KDRIVE_KBD_FALSE='#' | |
30756 | else | |
30757 | KDRIVE_KBD_TRUE='#' | |
30758 | KDRIVE_KBD_FALSE= | |
30759 | fi | |
30760 | ||
30761 | if test "x$KDRIVE_MOUSE" = xyes; then | |
30762 | KDRIVE_MOUSE_TRUE= | |
30763 | KDRIVE_MOUSE_FALSE='#' | |
30764 | else | |
30765 | KDRIVE_MOUSE_TRUE='#' | |
30766 | KDRIVE_MOUSE_FALSE= | |
30767 | fi | |
30768 | ||
30769 | if test "x$HAVE_TSLIB" = xyes; then | |
30770 | TSLIB_TRUE= | |
30771 | TSLIB_FALSE='#' | |
30772 | else | |
30773 | TSLIB_TRUE='#' | |
30774 | TSLIB_FALSE= | |
30775 | fi | |
30776 | ||
30777 | if test "x$XFBDEV" = xyes; then | |
30778 | KDRIVEFBDEV_TRUE= | |
30779 | KDRIVEFBDEV_FALSE='#' | |
30780 | else | |
30781 | KDRIVEFBDEV_TRUE='#' | |
30782 | KDRIVEFBDEV_FALSE= | |
30783 | fi | |
30784 | ||
30785 | if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then | |
30786 | XEPHYR_TRUE= | |
30787 | XEPHYR_FALSE='#' | |
30788 | else | |
30789 | XEPHYR_TRUE='#' | |
30790 | XEPHYR_FALSE= | |
30791 | fi | |
30792 | ||
30793 | if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then | |
30794 | BUILD_KDRIVEFBDEVLIB_TRUE= | |
30795 | BUILD_KDRIVEFBDEVLIB_FALSE='#' | |
30796 | else | |
30797 | BUILD_KDRIVEFBDEVLIB_TRUE='#' | |
30798 | BUILD_KDRIVEFBDEVLIB_FALSE= | |
30799 | fi | |
30800 | ||
30801 | if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then | |
30802 | XFAKESERVER_TRUE= | |
30803 | XFAKESERVER_FALSE='#' | |
30804 | else | |
30805 | XFAKESERVER_TRUE='#' | |
30806 | XFAKESERVER_FALSE= | |
30807 | fi | |
30808 | ||
30809 | ||
30810 | ||
30811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30812 | /* end confdefs.h. */ | |
30813 | ||
30814 | #include <features.h> | |
30815 | #ifndef __GLIBC__ | |
30816 | #error not glibc | |
30817 | #endif | |
30818 | ||
30819 | int | |
30820 | main () | |
30821 | { | |
30822 | ||
30823 | ; | |
30824 | return 0; | |
30825 | } | |
30826 | _ACEOF | |
30827 | if ac_fn_c_try_compile "$LINENO"; then : | |
30828 | ||
30829 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
30830 | ||
30831 | fi | |
30832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30833 | ||
30834 | ||
30835 | prefix_NONE= | |
30836 | exec_prefix_NONE= | |
30837 | test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
30838 | test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
30839 | eval ac_define_dir="\"$prefix\"" | |
30840 | eval ac_define_dir="\"$ac_define_dir\"" | |
30841 | PROJECTROOT="$ac_define_dir" | |
30842 | ||
30843 | ||
30844 | cat >>confdefs.h <<_ACEOF | |
30845 | #define PROJECTROOT "$ac_define_dir" | |
30846 | _ACEOF | |
30847 | ||
30848 | test "$prefix_NONE" && prefix=NONE | |
30849 | test "$exec_prefix_NONE" && exec_prefix=NONE | |
30850 | ||
30851 | ||
30852 | ||
30853 | BUILD_DATE="`date +'%Y%m%d'`" | |
30854 | ||
30855 | BUILD_TIME="`date +'1%H%M%S'`" | |
30856 | ||
30857 | ||
30858 | DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" | |
30859 | ||
30860 | ||
30861 | ||
30862 | ||
30863 | ||
30864 | ||
30865 | ||
30866 | ac_config_commands="$ac_config_commands sdksyms" | |
30867 | ||
30868 | ||
30869 | if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then | |
30870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
30871 | *********************************************** | |
30872 | Neither HAL nor udev backend will be enabled. | |
30873 | Input device hotplugging will not be available! | |
30874 | ***********************************************" >&5 | |
30875 | $as_echo "$as_me: WARNING: | |
30876 | *********************************************** | |
30877 | Neither HAL nor udev backend will be enabled. | |
30878 | Input device hotplugging will not be available! | |
30879 | ***********************************************" >&2;} | |
30880 | fi | |
30881 | ||
30882 | ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/dtrace/Makefile man/Makefile fb/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/sync/Makefile miext/damage/Makefile miext/shadow/Makefile miext/rootless/Makefile os/Makefile pseudoramiX/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile dri3/Makefile present/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/doc/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/exa/Makefile hw/xfree86/exa/man/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/fbdevhw/man/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/man/Makefile hw/xfree86/modes/Makefile hw/xfree86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/os-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/os-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/os-support/stub/Makefile hw/xfree86/parser/Makefile hw/xfree86/ramdac/Makefile hw/xfree86/shadowfb/Makefile hw/xfree86/vbe/Makefile hw/xfree86/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/xfree86/utils/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/Makefile hw/dmx/config/man/Makefile hw/dmx/doc/Makefile hw/dmx/doxygen/doxygen.conf hw/dmx/doxygen/Makefile hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/dmx/man/Makefile hw/vfb/Makefile hw/vfb/man/Makefile hw/xnest/Makefile hw/xnest/man/Makefile hw/xwin/Makefile hw/xwin/glx/Makefile hw/xwin/man/Makefile hw/xquartz/Makefile hw/xquartz/GL/Makefile hw/xquartz/bundle/Makefile hw/xquartz/man/Makefile hw/xquartz/mach-startup/Makefile hw/xquartz/pbproxy/Makefile hw/xquartz/xpr/Makefile hw/kdrive/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/ephyr/man/Makefile hw/kdrive/fake/Makefile hw/kdrive/fbdev/Makefile hw/kdrive/linux/Makefile hw/kdrive/src/Makefile test/Makefile test/xi2/Makefile xserver.ent xorg-server.pc" | |
30883 | ||
30884 | cat >confcache <<\_ACEOF | |
30885 | # This file is a shell script that caches the results of configure | |
30886 | # tests run on this system so they can be shared between configure | |
30887 | # scripts and configure runs, see configure's option --config-cache. | |
30888 | # It is not useful on other systems. If it contains results you don't | |
30889 | # want to keep, you may remove or edit it. | |
30890 | # | |
30891 | # config.status only pays attention to the cache file if you give it | |
30892 | # the --recheck option to rerun configure. | |
30893 | # | |
30894 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
30895 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
30896 | # following values. | |
30897 | ||
30898 | _ACEOF | |
30899 | ||
30900 | # The following way of writing the cache mishandles newlines in values, | |
30901 | # but we know of no workaround that is simple, portable, and efficient. | |
30902 | # So, we kill variables containing newlines. | |
30903 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
30904 | # and sets the high bit in the cache file unless we assign to the vars. | |
30905 | ( | |
30906 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
30907 | eval ac_val=\$$ac_var | |
30908 | case $ac_val in #( | |
30909 | *${as_nl}*) | |
30910 | case $ac_var in #( | |
30911 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
30912 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
30913 | esac | |
30914 | case $ac_var in #( | |
30915 | _ | IFS | as_nl) ;; #( | |
30916 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
30917 | *) { eval $ac_var=; unset $ac_var;} ;; | |
30918 | esac ;; | |
30919 | esac | |
30920 | done | |
30921 | ||
30922 | (set) 2>&1 | | |
30923 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
30924 | *${as_nl}ac_space=\ *) | |
30925 | # `set' does not quote correctly, so add quotes: double-quote | |
30926 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
30927 | sed -n \ | |
30928 | "s/'/'\\\\''/g; | |
30929 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
30930 | ;; #( | |
30931 | *) | |
30932 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
30933 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
30934 | ;; | |
30935 | esac | | |
30936 | sort | |
30937 | ) | | |
30938 | sed ' | |
30939 | /^ac_cv_env_/b end | |
30940 | t clear | |
30941 | :clear | |
30942 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
30943 | t end | |
30944 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
30945 | :end' >>confcache | |
30946 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
30947 | if test -w "$cache_file"; then | |
30948 | if test "x$cache_file" != "x/dev/null"; then | |
30949 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
30950 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
30951 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
30952 | cat confcache >"$cache_file" | |
30953 | else | |
30954 | case $cache_file in #( | |
30955 | */* | ?:*) | |
30956 | mv -f confcache "$cache_file"$$ && | |
30957 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
30958 | *) | |
30959 | mv -f confcache "$cache_file" ;; | |
30960 | esac | |
30961 | fi | |
30962 | fi | |
30963 | else | |
30964 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
30965 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
30966 | fi | |
30967 | fi | |
30968 | rm -f confcache | |
30969 | ||
30970 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
30971 | # Let make expand exec_prefix. | |
30972 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
30973 | ||
30974 | DEFS=-DHAVE_CONFIG_H | |
30975 | ||
30976 | ac_libobjs= | |
30977 | ac_ltlibobjs= | |
30978 | U= | |
30979 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
30980 | # 1. Remove the extension, and $U if already installed. | |
30981 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
30982 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
30983 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
30984 | # will be set to the directory where LIBOBJS objects are built. | |
30985 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
30986 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
30987 | done | |
30988 | LIBOBJS=$ac_libobjs | |
30989 | ||
30990 | LTLIBOBJS=$ac_ltlibobjs | |
30991 | ||
30992 | ||
30993 | if test -n "$EXEEXT"; then | |
30994 | am__EXEEXT_TRUE= | |
30995 | am__EXEEXT_FALSE='#' | |
30996 | else | |
30997 | am__EXEEXT_TRUE='#' | |
30998 | am__EXEEXT_FALSE= | |
30999 | fi | |
31000 | ||
31001 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
31002 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
31003 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31004 | fi | |
31005 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
31006 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
31007 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31008 | fi | |
31009 | if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then | |
31010 | as_fn_error $? "conditional \"HAVE_DOT\" was never defined. | |
31011 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31012 | fi | |
31013 | if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then | |
31014 | as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. | |
31015 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31016 | fi | |
31017 | if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then | |
31018 | as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. | |
31019 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31020 | fi | |
31021 | if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then | |
31022 | as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. | |
31023 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31024 | fi | |
31025 | if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then | |
31026 | as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. | |
31027 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31028 | fi | |
31029 | if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then | |
31030 | as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. | |
31031 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31032 | fi | |
31033 | if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then | |
31034 | as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. | |
31035 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31036 | fi | |
31037 | if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then | |
31038 | as_fn_error $? "conditional \"HAVE_FOP\" was never defined. | |
31039 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31040 | fi | |
31041 | if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then | |
31042 | as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. | |
31043 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31044 | fi | |
31045 | if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then | |
31046 | as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. | |
31047 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31048 | fi | |
31049 | if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then | |
31050 | as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. | |
31051 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31052 | fi | |
31053 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
31054 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. | |
31055 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31056 | fi | |
31057 | if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then | |
31058 | as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. | |
31059 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31060 | fi | |
31061 | if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then | |
31062 | as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. | |
31063 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31064 | fi | |
31065 | ||
31066 | if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then | |
31067 | as_fn_error $? "conditional \"AGP\" was never defined. | |
31068 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31069 | fi | |
31070 | if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then | |
31071 | as_fn_error $? "conditional \"FBDEVHW\" was never defined. | |
31072 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31073 | fi | |
31074 | if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then | |
31075 | as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. | |
31076 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31077 | fi | |
31078 | if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then | |
31079 | as_fn_error $? "conditional \"BSD_APM\" was never defined. | |
31080 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31081 | fi | |
31082 | if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then | |
31083 | as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined. | |
31084 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31085 | fi | |
31086 | if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then | |
31087 | as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. | |
31088 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31089 | fi | |
31090 | if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then | |
31091 | as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. | |
31092 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31093 | fi | |
31094 | if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then | |
31095 | as_fn_error $? "conditional \"I386_VIDEO\" was never defined. | |
31096 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31097 | fi | |
31098 | if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then | |
31099 | as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. | |
31100 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31101 | fi | |
31102 | if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then | |
31103 | as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. | |
31104 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31105 | fi | |
31106 | if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then | |
31107 | as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. | |
31108 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31109 | fi | |
31110 | if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then | |
31111 | as_fn_error $? "conditional \"SECURE_RPC\" was never defined. | |
31112 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31113 | fi | |
31114 | if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then | |
31115 | as_fn_error $? "conditional \"INT10_VM86\" was never defined. | |
31116 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31117 | fi | |
31118 | if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then | |
31119 | as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. | |
31120 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31121 | fi | |
31122 | if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then | |
31123 | as_fn_error $? "conditional \"INT10_STUB\" was never defined. | |
31124 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31125 | fi | |
31126 | if test -z "${INSTALL_LIBXF86CONFIG_TRUE}" && test -z "${INSTALL_LIBXF86CONFIG_FALSE}"; then | |
31127 | as_fn_error $? "conditional \"INSTALL_LIBXF86CONFIG\" was never defined. | |
31128 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31129 | fi | |
31130 | if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then | |
31131 | as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. | |
31132 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31133 | fi | |
31134 | if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then | |
31135 | as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. | |
31136 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31137 | fi | |
31138 | if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then | |
31139 | as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. | |
31140 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31141 | fi | |
31142 | if test -z "${CONFIG_DBUS_API_TRUE}" && test -z "${CONFIG_DBUS_API_FALSE}"; then | |
31143 | as_fn_error $? "conditional \"CONFIG_DBUS_API\" was never defined. | |
31144 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31145 | fi | |
31146 | if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then | |
31147 | as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. | |
31148 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31149 | fi | |
31150 | if test -z "${CONFIG_NEED_DBUS_TRUE}" && test -z "${CONFIG_NEED_DBUS_FALSE}"; then | |
31151 | as_fn_error $? "conditional \"CONFIG_NEED_DBUS\" was never defined. | |
31152 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31153 | fi | |
31154 | if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then | |
31155 | as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. | |
31156 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31157 | fi | |
31158 | if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then | |
31159 | as_fn_error $? "conditional \"XV\" was never defined. | |
31160 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31161 | fi | |
31162 | if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then | |
31163 | as_fn_error $? "conditional \"XVMC\" was never defined. | |
31164 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31165 | fi | |
31166 | if test -z "${XREGISTRY_TRUE}" && test -z "${XREGISTRY_FALSE}"; then | |
31167 | as_fn_error $? "conditional \"XREGISTRY\" was never defined. | |
31168 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31169 | fi | |
31170 | if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then | |
31171 | as_fn_error $? "conditional \"COMPOSITE\" was never defined. | |
31172 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31173 | fi | |
31174 | if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then | |
31175 | as_fn_error $? "conditional \"MITSHM\" was never defined. | |
31176 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31177 | fi | |
31178 | if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then | |
31179 | as_fn_error $? "conditional \"RECORD\" was never defined. | |
31180 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31181 | fi | |
31182 | if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then | |
31183 | as_fn_error $? "conditional \"SCREENSAVER\" was never defined. | |
31184 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31185 | fi | |
31186 | if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then | |
31187 | as_fn_error $? "conditional \"RES\" was never defined. | |
31188 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31189 | fi | |
31190 | if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then | |
31191 | as_fn_error $? "conditional \"CLIENTIDS\" was never defined. | |
31192 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31193 | fi | |
31194 | if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then | |
31195 | as_fn_error $? "conditional \"DRI\" was never defined. | |
31196 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31197 | fi | |
31198 | if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then | |
31199 | as_fn_error $? "conditional \"DRI2\" was never defined. | |
31200 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31201 | fi | |
31202 | if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then | |
31203 | as_fn_error $? "conditional \"BUSFAULT\" was never defined. | |
31204 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31205 | fi | |
31206 | if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then | |
31207 | as_fn_error $? "conditional \"XSHMFENCE\" was never defined. | |
31208 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31209 | fi | |
31210 | if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then | |
31211 | as_fn_error $? "conditional \"DRI3\" was never defined. | |
31212 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31213 | fi | |
31214 | if test -z "${DRI2_AIGLX_TRUE}" && test -z "${DRI2_AIGLX_FALSE}"; then | |
31215 | as_fn_error $? "conditional \"DRI2_AIGLX\" was never defined. | |
31216 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31217 | fi | |
31218 | if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then | |
31219 | as_fn_error $? "conditional \"GLX\" was never defined. | |
31220 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31221 | fi | |
31222 | if test -z "${AIGLX_DRI_LOADER_TRUE}" && test -z "${AIGLX_DRI_LOADER_FALSE}"; then | |
31223 | as_fn_error $? "conditional \"AIGLX_DRI_LOADER\" was never defined. | |
31224 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31225 | fi | |
31226 | if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then | |
31227 | as_fn_error $? "conditional \"PRESENT\" was never defined. | |
31228 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31229 | fi | |
31230 | if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then | |
31231 | as_fn_error $? "conditional \"XINERAMA\" was never defined. | |
31232 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31233 | fi | |
31234 | if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then | |
31235 | as_fn_error $? "conditional \"XACE\" was never defined. | |
31236 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31237 | fi | |
31238 | if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then | |
31239 | as_fn_error $? "conditional \"XSELINUX\" was never defined. | |
31240 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31241 | fi | |
31242 | if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then | |
31243 | as_fn_error $? "conditional \"XCSECURITY\" was never defined. | |
31244 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31245 | fi | |
31246 | if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then | |
31247 | as_fn_error $? "conditional \"DBE\" was never defined. | |
31248 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31249 | fi | |
31250 | if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then | |
31251 | as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. | |
31252 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31253 | fi | |
31254 | if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then | |
31255 | as_fn_error $? "conditional \"DPMSExtension\" was never defined. | |
31256 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31257 | fi | |
31258 | if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then | |
31259 | as_fn_error $? "conditional \"XF86UTILS\" was never defined. | |
31260 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31261 | fi | |
31262 | if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then | |
31263 | as_fn_error $? "conditional \"VGAHW\" was never defined. | |
31264 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31265 | fi | |
31266 | if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then | |
31267 | as_fn_error $? "conditional \"VBE\" was never defined. | |
31268 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31269 | fi | |
31270 | if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then | |
31271 | as_fn_error $? "conditional \"INT10MODULE\" was never defined. | |
31272 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31273 | fi | |
31274 | if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then | |
31275 | as_fn_error $? "conditional \"XDMCP\" was never defined. | |
31276 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31277 | fi | |
31278 | if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then | |
31279 | as_fn_error $? "conditional \"XDMAUTH\" was never defined. | |
31280 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31281 | fi | |
31282 | if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then | |
31283 | as_fn_error $? "conditional \"DEBUG\" was never defined. | |
31284 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31285 | fi | |
31286 | if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then | |
31287 | as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. | |
31288 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31289 | fi | |
31290 | if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then | |
31291 | as_fn_error $? "conditional \"CYGWIN\" was never defined. | |
31292 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31293 | fi | |
31294 | if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then | |
31295 | as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. | |
31296 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31297 | fi | |
31298 | if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then | |
31299 | as_fn_error $? "conditional \"XVFB\" was never defined. | |
31300 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31301 | fi | |
31302 | if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then | |
31303 | as_fn_error $? "conditional \"XNEST\" was never defined. | |
31304 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31305 | fi | |
31306 | if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then | |
31307 | as_fn_error $? "conditional \"XORG\" was never defined. | |
31308 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31309 | fi | |
31310 | if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then | |
31311 | as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. | |
31312 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31313 | fi | |
31314 | if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then | |
31315 | as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. | |
31316 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31317 | fi | |
31318 | if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then | |
31319 | as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. | |
31320 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31321 | fi | |
31322 | if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then | |
31323 | as_fn_error $? "conditional \"LINUX_ALPHA\" was never defined. | |
31324 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31325 | fi | |
31326 | if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then | |
31327 | as_fn_error $? "conditional \"LNXACPI\" was never defined. | |
31328 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31329 | fi | |
31330 | if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then | |
31331 | as_fn_error $? "conditional \"LNXAPM\" was never defined. | |
31332 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31333 | fi | |
31334 | if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then | |
31335 | as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. | |
31336 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31337 | fi | |
31338 | if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then | |
31339 | as_fn_error $? "conditional \"DGA\" was never defined. | |
31340 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31341 | fi | |
31342 | if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then | |
31343 | as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. | |
31344 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31345 | fi | |
31346 | if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then | |
31347 | as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. | |
31348 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31349 | fi | |
31350 | if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then | |
31351 | as_fn_error $? "conditional \"XWIN\" was never defined. | |
31352 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31353 | fi | |
31354 | if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then | |
31355 | as_fn_error $? "conditional \"XWIN_MULTIWINDOW\" was never defined. | |
31356 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31357 | fi | |
31358 | if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then | |
31359 | as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined. | |
31360 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31361 | fi | |
31362 | if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then | |
31363 | as_fn_error $? "conditional \"XWIN_CLIPBOARD\" was never defined. | |
31364 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31365 | fi | |
31366 | if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then | |
31367 | as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. | |
31368 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31369 | fi | |
31370 | if test -z "${XWIN_NATIVEGDI_TRUE}" && test -z "${XWIN_NATIVEGDI_FALSE}"; then | |
31371 | as_fn_error $? "conditional \"XWIN_NATIVEGDI\" was never defined. | |
31372 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31373 | fi | |
31374 | if test -z "${XWIN_PRIMARYFB_TRUE}" && test -z "${XWIN_PRIMARYFB_FALSE}"; then | |
31375 | as_fn_error $? "conditional \"XWIN_PRIMARYFB\" was never defined. | |
31376 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31377 | fi | |
31378 | if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then | |
31379 | as_fn_error $? "conditional \"XWIN_RANDR\" was never defined. | |
31380 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31381 | fi | |
31382 | if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then | |
31383 | as_fn_error $? "conditional \"XWIN_XV\" was never defined. | |
31384 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31385 | fi | |
31386 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | |
31387 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | |
31388 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31389 | fi | |
31390 | if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then | |
31391 | as_fn_error $? "conditional \"XQUARTZ\" was never defined. | |
31392 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31393 | fi | |
31394 | if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then | |
31395 | as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. | |
31396 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31397 | fi | |
31398 | if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then | |
31399 | as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. | |
31400 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31401 | fi | |
31402 | if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then | |
31403 | as_fn_error $? "conditional \"DMX\" was never defined. | |
31404 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31405 | fi | |
31406 | if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then | |
31407 | as_fn_error $? "conditional \"DMX_BUILD_LNX\" was never defined. | |
31408 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31409 | fi | |
31410 | if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then | |
31411 | as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined. | |
31412 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31413 | fi | |
31414 | if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then | |
31415 | as_fn_error $? "conditional \"KDRIVE\" was never defined. | |
31416 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31417 | fi | |
31418 | if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then | |
31419 | as_fn_error $? "conditional \"KDRIVELINUX\" was never defined. | |
31420 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31421 | fi | |
31422 | if test -z "${KDRIVE_EVDEV_TRUE}" && test -z "${KDRIVE_EVDEV_FALSE}"; then | |
31423 | as_fn_error $? "conditional \"KDRIVE_EVDEV\" was never defined. | |
31424 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31425 | fi | |
31426 | if test -z "${KDRIVE_KBD_TRUE}" && test -z "${KDRIVE_KBD_FALSE}"; then | |
31427 | as_fn_error $? "conditional \"KDRIVE_KBD\" was never defined. | |
31428 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31429 | fi | |
31430 | if test -z "${KDRIVE_MOUSE_TRUE}" && test -z "${KDRIVE_MOUSE_FALSE}"; then | |
31431 | as_fn_error $? "conditional \"KDRIVE_MOUSE\" was never defined. | |
31432 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31433 | fi | |
31434 | if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then | |
31435 | as_fn_error $? "conditional \"TSLIB\" was never defined. | |
31436 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31437 | fi | |
31438 | if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then | |
31439 | as_fn_error $? "conditional \"KDRIVEFBDEV\" was never defined. | |
31440 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31441 | fi | |
31442 | if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then | |
31443 | as_fn_error $? "conditional \"XEPHYR\" was never defined. | |
31444 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31445 | fi | |
31446 | if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then | |
31447 | as_fn_error $? "conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined. | |
31448 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31449 | fi | |
31450 | if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then | |
31451 | as_fn_error $? "conditional \"XFAKESERVER\" was never defined. | |
31452 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31453 | fi | |
31454 | ||
31455 | : "${CONFIG_STATUS=./config.status}" | |
31456 | ac_write_fail=0 | |
31457 | ac_clean_files_save=$ac_clean_files | |
31458 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
31459 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
31460 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
31461 | as_write_fail=0 | |
31462 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
31463 | #! $SHELL | |
31464 | # Generated by $as_me. | |
31465 | # Run this file to recreate the current configuration. | |
31466 | # Compiler output produced by configure, useful for debugging | |
31467 | # configure, is in config.log if it exists. | |
31468 | ||
31469 | debug=false | |
31470 | ac_cs_recheck=false | |
31471 | ac_cs_silent=false | |
31472 | ||
31473 | SHELL=\${CONFIG_SHELL-$SHELL} | |
31474 | export SHELL | |
31475 | _ASEOF | |
31476 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
31477 | ## -------------------- ## | |
31478 | ## M4sh Initialization. ## | |
31479 | ## -------------------- ## | |
31480 | ||
31481 | # Be more Bourne compatible | |
31482 | DUALCASE=1; export DUALCASE # for MKS sh | |
31483 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
31484 | emulate sh | |
31485 | NULLCMD=: | |
31486 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
31487 | # is contrary to our usage. Disable this feature. | |
31488 | alias -g '${1+"$@"}'='"$@"' | |
31489 | setopt NO_GLOB_SUBST | |
31490 | else | |
31491 | case `(set -o) 2>/dev/null` in #( | |
31492 | *posix*) : | |
31493 | set -o posix ;; #( | |
31494 | *) : | |
31495 | ;; | |
31496 | esac | |
31497 | fi | |
31498 | ||
31499 | ||
31500 | as_nl=' | |
31501 | ' | |
31502 | export as_nl | |
31503 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
31504 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
31505 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
31506 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
31507 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
31508 | # but without wasting forks for bash or zsh. | |
31509 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
31510 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31511 | as_echo='print -r --' | |
31512 | as_echo_n='print -rn --' | |
31513 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31514 | as_echo='printf %s\n' | |
31515 | as_echo_n='printf %s' | |
31516 | else | |
31517 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
31518 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
31519 | as_echo_n='/usr/ucb/echo -n' | |
31520 | else | |
31521 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
31522 | as_echo_n_body='eval | |
31523 | arg=$1; | |
31524 | case $arg in #( | |
31525 | *"$as_nl"*) | |
31526 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
31527 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
31528 | esac; | |
31529 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
31530 | ' | |
31531 | export as_echo_n_body | |
31532 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31533 | fi | |
31534 | export as_echo_body | |
31535 | as_echo='sh -c $as_echo_body as_echo' | |
31536 | fi | |
31537 | ||
31538 | # The user is always right. | |
31539 | if test "${PATH_SEPARATOR+set}" != set; then | |
31540 | PATH_SEPARATOR=: | |
31541 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
31542 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
31543 | PATH_SEPARATOR=';' | |
31544 | } | |
31545 | fi | |
31546 | ||
31547 | ||
31548 | # IFS | |
31549 | # We need space, tab and new line, in precisely that order. Quoting is | |
31550 | # there to prevent editors from complaining about space-tab. | |
31551 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
31552 | # splitting by setting IFS to empty value.) | |
31553 | IFS=" "" $as_nl" | |
31554 | ||
31555 | # Find who we are. Look in the path if we contain no directory separator. | |
31556 | as_myself= | |
31557 | case $0 in #(( | |
31558 | *[\\/]* ) as_myself=$0 ;; | |
31559 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31560 | for as_dir in $PATH | |
31561 | do | |
31562 | IFS=$as_save_IFS | |
31563 | test -z "$as_dir" && as_dir=. | |
31564 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
31565 | done | |
31566 | IFS=$as_save_IFS | |
31567 | ||
31568 | ;; | |
31569 | esac | |
31570 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
31571 | # in which case we are not to be found in the path. | |
31572 | if test "x$as_myself" = x; then | |
31573 | as_myself=$0 | |
31574 | fi | |
31575 | if test ! -f "$as_myself"; then | |
31576 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
31577 | exit 1 | |
31578 | fi | |
31579 | ||
31580 | # Unset variables that we do not need and which cause bugs (e.g. in | |
31581 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
31582 | # suppresses any "Segmentation fault" message there. '((' could | |
31583 | # trigger a bug in pdksh 5.2.14. | |
31584 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
31585 | do eval test x\${$as_var+set} = xset \ | |
31586 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
31587 | done | |
31588 | PS1='$ ' | |
31589 | PS2='> ' | |
31590 | PS4='+ ' | |
31591 | ||
31592 | # NLS nuisances. | |
31593 | LC_ALL=C | |
31594 | export LC_ALL | |
31595 | LANGUAGE=C | |
31596 | export LANGUAGE | |
31597 | ||
31598 | # CDPATH. | |
31599 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
31600 | ||
31601 | ||
31602 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
31603 | # ---------------------------------------- | |
31604 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
31605 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
31606 | # script with STATUS, using 1 if that was 0. | |
31607 | as_fn_error () | |
31608 | { | |
31609 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
31610 | if test "$4"; then | |
31611 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
31612 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
31613 | fi | |
31614 | $as_echo "$as_me: error: $2" >&2 | |
31615 | as_fn_exit $as_status | |
31616 | } # as_fn_error | |
31617 | ||
31618 | ||
31619 | # as_fn_set_status STATUS | |
31620 | # ----------------------- | |
31621 | # Set $? to STATUS, without forking. | |
31622 | as_fn_set_status () | |
31623 | { | |
31624 | return $1 | |
31625 | } # as_fn_set_status | |
31626 | ||
31627 | # as_fn_exit STATUS | |
31628 | # ----------------- | |
31629 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
31630 | as_fn_exit () | |
31631 | { | |
31632 | set +e | |
31633 | as_fn_set_status $1 | |
31634 | exit $1 | |
31635 | } # as_fn_exit | |
31636 | ||
31637 | # as_fn_unset VAR | |
31638 | # --------------- | |
31639 | # Portably unset VAR. | |
31640 | as_fn_unset () | |
31641 | { | |
31642 | { eval $1=; unset $1;} | |
31643 | } | |
31644 | as_unset=as_fn_unset | |
31645 | # as_fn_append VAR VALUE | |
31646 | # ---------------------- | |
31647 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
31648 | # advantage of any shell optimizations that allow amortized linear growth over | |
31649 | # repeated appends, instead of the typical quadratic growth present in naive | |
31650 | # implementations. | |
31651 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
31652 | eval 'as_fn_append () | |
31653 | { | |
31654 | eval $1+=\$2 | |
31655 | }' | |
31656 | else | |
31657 | as_fn_append () | |
31658 | { | |
31659 | eval $1=\$$1\$2 | |
31660 | } | |
31661 | fi # as_fn_append | |
31662 | ||
31663 | # as_fn_arith ARG... | |
31664 | # ------------------ | |
31665 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
31666 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
31667 | # must be portable across $(()) and expr. | |
31668 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
31669 | eval 'as_fn_arith () | |
31670 | { | |
31671 | as_val=$(( $* )) | |
31672 | }' | |
31673 | else | |
31674 | as_fn_arith () | |
31675 | { | |
31676 | as_val=`expr "$@" || test $? -eq 1` | |
31677 | } | |
31678 | fi # as_fn_arith | |
31679 | ||
31680 | ||
31681 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
31682 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
31683 | as_expr=expr | |
31684 | else | |
31685 | as_expr=false | |
31686 | fi | |
31687 | ||
31688 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
31689 | as_basename=basename | |
31690 | else | |
31691 | as_basename=false | |
31692 | fi | |
31693 | ||
31694 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
31695 | as_dirname=dirname | |
31696 | else | |
31697 | as_dirname=false | |
31698 | fi | |
31699 | ||
31700 | as_me=`$as_basename -- "$0" || | |
31701 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
31702 | X"$0" : 'X\(//\)$' \| \ | |
31703 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
31704 | $as_echo X/"$0" | | |
31705 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
31706 | s//\1/ | |
31707 | q | |
31708 | } | |
31709 | /^X\/\(\/\/\)$/{ | |
31710 | s//\1/ | |
31711 | q | |
31712 | } | |
31713 | /^X\/\(\/\).*/{ | |
31714 | s//\1/ | |
31715 | q | |
31716 | } | |
31717 | s/.*/./; q'` | |
31718 | ||
31719 | # Avoid depending upon Character Ranges. | |
31720 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31721 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
31722 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
31723 | as_cr_digits='0123456789' | |
31724 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
31725 | ||
31726 | ECHO_C= ECHO_N= ECHO_T= | |
31727 | case `echo -n x` in #((((( | |
31728 | -n*) | |
31729 | case `echo 'xy\c'` in | |
31730 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
31731 | xy) ECHO_C='\c';; | |
31732 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
31733 | ECHO_T=' ';; | |
31734 | esac;; | |
31735 | *) | |
31736 | ECHO_N='-n';; | |
31737 | esac | |
31738 | ||
31739 | rm -f conf$$ conf$$.exe conf$$.file | |
31740 | if test -d conf$$.dir; then | |
31741 | rm -f conf$$.dir/conf$$.file | |
31742 | else | |
31743 | rm -f conf$$.dir | |
31744 | mkdir conf$$.dir 2>/dev/null | |
31745 | fi | |
31746 | if (echo >conf$$.file) 2>/dev/null; then | |
31747 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
31748 | as_ln_s='ln -s' | |
31749 | # ... but there are two gotchas: | |
31750 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
31751 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
31752 | # In both cases, we have to default to `cp -p'. | |
31753 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
31754 | as_ln_s='cp -p' | |
31755 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
31756 | as_ln_s=ln | |
31757 | else | |
31758 | as_ln_s='cp -p' | |
31759 | fi | |
31760 | else | |
31761 | as_ln_s='cp -p' | |
31762 | fi | |
31763 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
31764 | rmdir conf$$.dir 2>/dev/null | |
31765 | ||
31766 | ||
31767 | # as_fn_mkdir_p | |
31768 | # ------------- | |
31769 | # Create "$as_dir" as a directory, including parents if necessary. | |
31770 | as_fn_mkdir_p () | |
31771 | { | |
31772 | ||
31773 | case $as_dir in #( | |
31774 | -*) as_dir=./$as_dir;; | |
31775 | esac | |
31776 | test -d "$as_dir" || eval $as_mkdir_p || { | |
31777 | as_dirs= | |
31778 | while :; do | |
31779 | case $as_dir in #( | |
31780 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
31781 | *) as_qdir=$as_dir;; | |
31782 | esac | |
31783 | as_dirs="'$as_qdir' $as_dirs" | |
31784 | as_dir=`$as_dirname -- "$as_dir" || | |
31785 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
31786 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
31787 | X"$as_dir" : 'X\(//\)$' \| \ | |
31788 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
31789 | $as_echo X"$as_dir" | | |
31790 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
31791 | s//\1/ | |
31792 | q | |
31793 | } | |
31794 | /^X\(\/\/\)[^/].*/{ | |
31795 | s//\1/ | |
31796 | q | |
31797 | } | |
31798 | /^X\(\/\/\)$/{ | |
31799 | s//\1/ | |
31800 | q | |
31801 | } | |
31802 | /^X\(\/\).*/{ | |
31803 | s//\1/ | |
31804 | q | |
31805 | } | |
31806 | s/.*/./; q'` | |
31807 | test -d "$as_dir" && break | |
31808 | done | |
31809 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
31810 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
31811 | ||
31812 | ||
31813 | } # as_fn_mkdir_p | |
31814 | if mkdir -p . 2>/dev/null; then | |
31815 | as_mkdir_p='mkdir -p "$as_dir"' | |
31816 | else | |
31817 | test -d ./-p && rmdir ./-p | |
31818 | as_mkdir_p=false | |
31819 | fi | |
31820 | ||
31821 | if test -x / >/dev/null 2>&1; then | |
31822 | as_test_x='test -x' | |
31823 | else | |
31824 | if ls -dL / >/dev/null 2>&1; then | |
31825 | as_ls_L_option=L | |
31826 | else | |
31827 | as_ls_L_option= | |
31828 | fi | |
31829 | as_test_x=' | |
31830 | eval sh -c '\'' | |
31831 | if test -d "$1"; then | |
31832 | test -d "$1/."; | |
31833 | else | |
31834 | case $1 in #( | |
31835 | -*)set "./$1";; | |
31836 | esac; | |
31837 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
31838 | ???[sx]*):;;*)false;;esac;fi | |
31839 | '\'' sh | |
31840 | ' | |
31841 | fi | |
31842 | as_executable_p=$as_test_x | |
31843 | ||
31844 | # Sed expression to map a string onto a valid CPP name. | |
31845 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
31846 | ||
31847 | # Sed expression to map a string onto a valid variable name. | |
31848 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
31849 | ||
31850 | ||
31851 | exec 6>&1 | |
31852 | ## ----------------------------------- ## | |
31853 | ## Main body of $CONFIG_STATUS script. ## | |
31854 | ## ----------------------------------- ## | |
31855 | _ASEOF | |
31856 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
31857 | ||
31858 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
31859 | # Save the log message, to keep $0 and so on meaningful, and to | |
31860 | # report actual input values of CONFIG_FILES etc. instead of their | |
31861 | # values after options handling. | |
31862 | ac_log=" | |
31863 | This file was extended by xorg-server $as_me 1.15.1, which was | |
31864 | generated by GNU Autoconf 2.68. Invocation command line was | |
31865 | ||
31866 | CONFIG_FILES = $CONFIG_FILES | |
31867 | CONFIG_HEADERS = $CONFIG_HEADERS | |
31868 | CONFIG_LINKS = $CONFIG_LINKS | |
31869 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
31870 | $ $0 $@ | |
31871 | ||
31872 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
31873 | " | |
31874 | ||
31875 | _ACEOF | |
31876 | ||
31877 | case $ac_config_files in *" | |
31878 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
31879 | esac | |
31880 | ||
31881 | case $ac_config_headers in *" | |
31882 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
31883 | esac | |
31884 | ||
31885 | ||
31886 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
31887 | # Files that config.status was made for. | |
31888 | config_files="$ac_config_files" | |
31889 | config_headers="$ac_config_headers" | |
31890 | config_commands="$ac_config_commands" | |
31891 | ||
31892 | _ACEOF | |
31893 | ||
31894 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
31895 | ac_cs_usage="\ | |
31896 | \`$as_me' instantiates files and other configuration actions | |
31897 | from templates according to the current configuration. Unless the files | |
31898 | and actions are specified as TAGs, all are instantiated by default. | |
31899 | ||
31900 | Usage: $0 [OPTION]... [TAG]... | |
31901 | ||
31902 | -h, --help print this help, then exit | |
31903 | -V, --version print version number and configuration settings, then exit | |
31904 | --config print configuration, then exit | |
31905 | -q, --quiet, --silent | |
31906 | do not print progress messages | |
31907 | -d, --debug don't remove temporary files | |
31908 | --recheck update $as_me by reconfiguring in the same conditions | |
31909 | --file=FILE[:TEMPLATE] | |
31910 | instantiate the configuration file FILE | |
31911 | --header=FILE[:TEMPLATE] | |
31912 | instantiate the configuration header FILE | |
31913 | ||
31914 | Configuration files: | |
31915 | $config_files | |
31916 | ||
31917 | Configuration headers: | |
31918 | $config_headers | |
31919 | ||
31920 | Configuration commands: | |
31921 | $config_commands | |
31922 | ||
31923 | Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." | |
31924 | ||
31925 | _ACEOF | |
31926 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
31927 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
31928 | ac_cs_version="\\ | |
31929 | xorg-server config.status 1.15.1 | |
31930 | configured by $0, generated by GNU Autoconf 2.68, | |
31931 | with options \\"\$ac_cs_config\\" | |
31932 | ||
31933 | Copyright (C) 2010 Free Software Foundation, Inc. | |
31934 | This config.status script is free software; the Free Software Foundation | |
31935 | gives unlimited permission to copy, distribute and modify it." | |
31936 | ||
31937 | ac_pwd='$ac_pwd' | |
31938 | srcdir='$srcdir' | |
31939 | INSTALL='$INSTALL' | |
31940 | MKDIR_P='$MKDIR_P' | |
31941 | AWK='$AWK' | |
31942 | test -n "\$AWK" || AWK=awk | |
31943 | _ACEOF | |
31944 | ||
31945 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
31946 | # The default lists apply if the user does not specify any file. | |
31947 | ac_need_defaults=: | |
31948 | while test $# != 0 | |
31949 | do | |
31950 | case $1 in | |
31951 | --*=?*) | |
31952 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
31953 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
31954 | ac_shift=: | |
31955 | ;; | |
31956 | --*=) | |
31957 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
31958 | ac_optarg= | |
31959 | ac_shift=: | |
31960 | ;; | |
31961 | *) | |
31962 | ac_option=$1 | |
31963 | ac_optarg=$2 | |
31964 | ac_shift=shift | |
31965 | ;; | |
31966 | esac | |
31967 | ||
31968 | case $ac_option in | |
31969 | # Handling of the options. | |
31970 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
31971 | ac_cs_recheck=: ;; | |
31972 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
31973 | $as_echo "$ac_cs_version"; exit ;; | |
31974 | --config | --confi | --conf | --con | --co | --c ) | |
31975 | $as_echo "$ac_cs_config"; exit ;; | |
31976 | --debug | --debu | --deb | --de | --d | -d ) | |
31977 | debug=: ;; | |
31978 | --file | --fil | --fi | --f ) | |
31979 | $ac_shift | |
31980 | case $ac_optarg in | |
31981 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
31982 | '') as_fn_error $? "missing file argument" ;; | |
31983 | esac | |
31984 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
31985 | ac_need_defaults=false;; | |
31986 | --header | --heade | --head | --hea ) | |
31987 | $ac_shift | |
31988 | case $ac_optarg in | |
31989 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
31990 | esac | |
31991 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
31992 | ac_need_defaults=false;; | |
31993 | --he | --h) | |
31994 | # Conflict between --help and --header | |
31995 | as_fn_error $? "ambiguous option: \`$1' | |
31996 | Try \`$0 --help' for more information.";; | |
31997 | --help | --hel | -h ) | |
31998 | $as_echo "$ac_cs_usage"; exit ;; | |
31999 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
32000 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
32001 | ac_cs_silent=: ;; | |
32002 | ||
32003 | # This is an error. | |
32004 | -*) as_fn_error $? "unrecognized option: \`$1' | |
32005 | Try \`$0 --help' for more information." ;; | |
32006 | ||
32007 | *) as_fn_append ac_config_targets " $1" | |
32008 | ac_need_defaults=false ;; | |
32009 | ||
32010 | esac | |
32011 | shift | |
32012 | done | |
32013 | ||
32014 | ac_configure_extra_args= | |
32015 | ||
32016 | if $ac_cs_silent; then | |
32017 | exec 6>/dev/null | |
32018 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
32019 | fi | |
32020 | ||
32021 | _ACEOF | |
32022 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32023 | if \$ac_cs_recheck; then | |
32024 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
32025 | shift | |
32026 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
32027 | CONFIG_SHELL='$SHELL' | |
32028 | export CONFIG_SHELL | |
32029 | exec "\$@" | |
32030 | fi | |
32031 | ||
32032 | _ACEOF | |
32033 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32034 | exec 5>>config.log | |
32035 | { | |
32036 | echo | |
32037 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
32038 | ## Running $as_me. ## | |
32039 | _ASBOX | |
32040 | $as_echo "$ac_log" | |
32041 | } >&5 | |
32042 | ||
32043 | _ACEOF | |
32044 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32045 | # | |
32046 | # INIT-COMMANDS | |
32047 | # | |
32048 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
32049 | ||
32050 | ||
32051 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
32052 | # if CDPATH is set. | |
32053 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
32054 | ||
32055 | sed_quote_subst='$sed_quote_subst' | |
32056 | double_quote_subst='$double_quote_subst' | |
32057 | delay_variable_subst='$delay_variable_subst' | |
32058 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | |
32059 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
32060 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
32061 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
32062 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
32063 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
32064 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
32065 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
32066 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
32067 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
32068 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
32069 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
32070 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
32071 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
32072 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
32073 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
32074 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
32075 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
32076 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
32077 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
32078 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
32079 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
32080 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
32081 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
32082 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
32083 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
32084 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
32085 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
32086 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
32087 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
32088 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
32089 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
32090 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
32091 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
32092 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
32093 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
32094 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
32095 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
32096 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
32097 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
32098 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
32099 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
32100 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
32101 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
32102 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
32103 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
32104 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32105 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32106 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
32107 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
32108 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
32109 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
32110 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
32111 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
32112 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
32113 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
32114 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
32115 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
32116 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
32117 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
32118 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
32119 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
32120 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
32121 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
32122 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
32123 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
32124 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
32125 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
32126 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
32127 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
32128 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
32129 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
32130 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
32131 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
32132 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
32133 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
32134 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
32135 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
32136 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
32137 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32138 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32139 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
32140 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
32141 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
32142 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
32143 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
32144 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
32145 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
32146 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
32147 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
32148 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
32149 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32150 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
32151 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
32152 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
32153 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
32154 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
32155 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
32156 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
32157 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
32158 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
32159 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
32160 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
32161 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
32162 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
32163 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
32164 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
32165 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
32166 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
32167 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
32168 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
32169 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
32170 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
32171 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
32172 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
32173 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
32174 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
32175 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
32176 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32177 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32178 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
32179 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
32180 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
32181 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
32182 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
32183 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
32184 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
32185 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
32186 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
32187 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
32188 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
32189 | ||
32190 | LTCC='$LTCC' | |
32191 | LTCFLAGS='$LTCFLAGS' | |
32192 | compiler='$compiler_DEFAULT' | |
32193 | ||
32194 | # A function that is used when there is no print builtin or printf. | |
32195 | func_fallback_echo () | |
32196 | { | |
32197 | eval 'cat <<_LTECHO_EOF | |
32198 | \$1 | |
32199 | _LTECHO_EOF' | |
32200 | } | |
32201 | ||
32202 | # Quote evaled strings. | |
32203 | for var in AS \ | |
32204 | DLLTOOL \ | |
32205 | OBJDUMP \ | |
32206 | SHELL \ | |
32207 | ECHO \ | |
32208 | PATH_SEPARATOR \ | |
32209 | SED \ | |
32210 | GREP \ | |
32211 | EGREP \ | |
32212 | FGREP \ | |
32213 | LD \ | |
32214 | NM \ | |
32215 | LN_S \ | |
32216 | lt_SP2NL \ | |
32217 | lt_NL2SP \ | |
32218 | reload_flag \ | |
32219 | deplibs_check_method \ | |
32220 | file_magic_cmd \ | |
32221 | file_magic_glob \ | |
32222 | want_nocaseglob \ | |
32223 | sharedlib_from_linklib_cmd \ | |
32224 | AR \ | |
32225 | AR_FLAGS \ | |
32226 | archiver_list_spec \ | |
32227 | STRIP \ | |
32228 | RANLIB \ | |
32229 | CC \ | |
32230 | CFLAGS \ | |
32231 | compiler \ | |
32232 | lt_cv_sys_global_symbol_pipe \ | |
32233 | lt_cv_sys_global_symbol_to_cdecl \ | |
32234 | lt_cv_sys_global_symbol_to_c_name_address \ | |
32235 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
32236 | nm_file_list_spec \ | |
32237 | lt_prog_compiler_no_builtin_flag \ | |
32238 | lt_prog_compiler_pic \ | |
32239 | lt_prog_compiler_wl \ | |
32240 | lt_prog_compiler_static \ | |
32241 | lt_cv_prog_compiler_c_o \ | |
32242 | need_locks \ | |
32243 | MANIFEST_TOOL \ | |
32244 | DSYMUTIL \ | |
32245 | NMEDIT \ | |
32246 | LIPO \ | |
32247 | OTOOL \ | |
32248 | OTOOL64 \ | |
32249 | shrext_cmds \ | |
32250 | export_dynamic_flag_spec \ | |
32251 | whole_archive_flag_spec \ | |
32252 | compiler_needs_object \ | |
32253 | with_gnu_ld \ | |
32254 | allow_undefined_flag \ | |
32255 | no_undefined_flag \ | |
32256 | hardcode_libdir_flag_spec \ | |
32257 | hardcode_libdir_separator \ | |
32258 | exclude_expsyms \ | |
32259 | include_expsyms \ | |
32260 | file_list_spec \ | |
32261 | variables_saved_for_relink \ | |
32262 | libname_spec \ | |
32263 | library_names_spec \ | |
32264 | soname_spec \ | |
32265 | install_override_mode \ | |
32266 | finish_eval \ | |
32267 | old_striplib \ | |
32268 | striplib; do | |
32269 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
32270 | *[\\\\\\\`\\"\\\$]*) | |
32271 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
32272 | ;; | |
32273 | *) | |
32274 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
32275 | ;; | |
32276 | esac | |
32277 | done | |
32278 | ||
32279 | # Double-quote double-evaled strings. | |
32280 | for var in reload_cmds \ | |
32281 | old_postinstall_cmds \ | |
32282 | old_postuninstall_cmds \ | |
32283 | old_archive_cmds \ | |
32284 | extract_expsyms_cmds \ | |
32285 | old_archive_from_new_cmds \ | |
32286 | old_archive_from_expsyms_cmds \ | |
32287 | archive_cmds \ | |
32288 | archive_expsym_cmds \ | |
32289 | module_cmds \ | |
32290 | module_expsym_cmds \ | |
32291 | export_symbols_cmds \ | |
32292 | prelink_cmds \ | |
32293 | postlink_cmds \ | |
32294 | postinstall_cmds \ | |
32295 | postuninstall_cmds \ | |
32296 | finish_cmds \ | |
32297 | sys_lib_search_path_spec \ | |
32298 | sys_lib_dlsearch_path_spec; do | |
32299 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
32300 | *[\\\\\\\`\\"\\\$]*) | |
32301 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
32302 | ;; | |
32303 | *) | |
32304 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
32305 | ;; | |
32306 | esac | |
32307 | done | |
32308 | ||
32309 | ac_aux_dir='$ac_aux_dir' | |
32310 | xsi_shell='$xsi_shell' | |
32311 | lt_shell_append='$lt_shell_append' | |
32312 | ||
32313 | # See if we are running on zsh, and set the options which allow our | |
32314 | # commands through without removal of \ escapes INIT. | |
32315 | if test -n "\${ZSH_VERSION+set}" ; then | |
32316 | setopt NO_GLOB_SUBST | |
32317 | fi | |
32318 | ||
32319 | ||
32320 | PACKAGE='$PACKAGE' | |
32321 | VERSION='$VERSION' | |
32322 | TIMESTAMP='$TIMESTAMP' | |
32323 | RM='$RM' | |
32324 | ofile='$ofile' | |
32325 | ||
32326 | ||
32327 | ||
32328 | ||
32329 | _ACEOF | |
32330 | ||
32331 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32332 | ||
32333 | # Handling of arguments. | |
32334 | for ac_config_target in $ac_config_targets | |
32335 | do | |
32336 | case $ac_config_target in | |
32337 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
32338 | "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; | |
32339 | "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; | |
32340 | "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; | |
32341 | "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; | |
32342 | "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; | |
32343 | "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; | |
32344 | "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;; | |
32345 | "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; | |
32346 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
32347 | "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; | |
32348 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
32349 | "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; | |
32350 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
32351 | "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; | |
32352 | "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; | |
32353 | "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; | |
32354 | "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; | |
32355 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
32356 | "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; | |
32357 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
32358 | "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; | |
32359 | "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; | |
32360 | "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; | |
32361 | "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; | |
32362 | "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; | |
32363 | "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; | |
32364 | "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; | |
32365 | "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; | |
32366 | "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; | |
32367 | "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; | |
32368 | "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; | |
32369 | "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; | |
32370 | "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; | |
32371 | "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; | |
32372 | "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; | |
32373 | "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; | |
32374 | "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; | |
32375 | "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; | |
32376 | "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; | |
32377 | "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; | |
32378 | "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; | |
32379 | "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; | |
32380 | "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; | |
32381 | "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;; | |
32382 | "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; | |
32383 | "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; | |
32384 | "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; | |
32385 | "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; | |
32386 | "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; | |
32387 | "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; | |
32388 | "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; | |
32389 | "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; | |
32390 | "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; | |
32391 | "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; | |
32392 | "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; | |
32393 | "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; | |
32394 | "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; | |
32395 | "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; | |
32396 | "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; | |
32397 | "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; | |
32398 | "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; | |
32399 | "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; | |
32400 | "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; | |
32401 | "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; | |
32402 | "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; | |
32403 | "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; | |
32404 | "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; | |
32405 | "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; | |
32406 | "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; | |
32407 | "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;; | |
32408 | "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; | |
32409 | "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; | |
32410 | "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; | |
32411 | "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; | |
32412 | "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;; | |
32413 | "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; | |
32414 | "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;; | |
32415 | "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;; | |
32416 | "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;; | |
32417 | "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;; | |
32418 | "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;; | |
32419 | "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;; | |
32420 | "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;; | |
32421 | "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;; | |
32422 | "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;; | |
32423 | "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;; | |
32424 | "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; | |
32425 | "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; | |
32426 | "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; | |
32427 | "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; | |
32428 | "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; | |
32429 | "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; | |
32430 | "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; | |
32431 | "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; | |
32432 | "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; | |
32433 | "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; | |
32434 | "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; | |
32435 | "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; | |
32436 | "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; | |
32437 | "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; | |
32438 | "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; | |
32439 | "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; | |
32440 | "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; | |
32441 | "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;; | |
32442 | "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;; | |
32443 | "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;; | |
32444 | "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; | |
32445 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
32446 | "test/xi2/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi2/Makefile" ;; | |
32447 | "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; | |
32448 | "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; | |
32449 | ||
32450 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
32451 | esac | |
32452 | done | |
32453 | ||
32454 | ||
32455 | # If the user did not use the arguments to specify the items to instantiate, | |
32456 | # then the envvar interface is used. Set only those that are not. | |
32457 | # We use the long form for the default assignment because of an extremely | |
32458 | # bizarre bug on SunOS 4.1.3. | |
32459 | if $ac_need_defaults; then | |
32460 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
32461 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
32462 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
32463 | fi | |
32464 | ||
32465 | # Have a temporary directory for convenience. Make it in the build tree | |
32466 | # simply because there is no reason against having it here, and in addition, | |
32467 | # creating and moving files from /tmp can sometimes cause problems. | |
32468 | # Hook for its removal unless debugging. | |
32469 | # Note that there is a small window in which the directory will not be cleaned: | |
32470 | # after its creation but before its name has been assigned to `$tmp'. | |
32471 | $debug || | |
32472 | { | |
32473 | tmp= ac_tmp= | |
32474 | trap 'exit_status=$? | |
32475 | : "${ac_tmp:=$tmp}" | |
32476 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
32477 | ' 0 | |
32478 | trap 'as_fn_exit 1' 1 2 13 15 | |
32479 | } | |
32480 | # Create a (secure) tmp directory for tmp files. | |
32481 | ||
32482 | { | |
32483 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
32484 | test -d "$tmp" | |
32485 | } || | |
32486 | { | |
32487 | tmp=./conf$$-$RANDOM | |
32488 | (umask 077 && mkdir "$tmp") | |
32489 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
32490 | ac_tmp=$tmp | |
32491 | ||
32492 | # Set up the scripts for CONFIG_FILES section. | |
32493 | # No need to generate them if there are no CONFIG_FILES. | |
32494 | # This happens for instance with `./config.status config.h'. | |
32495 | if test -n "$CONFIG_FILES"; then | |
32496 | ||
32497 | ||
32498 | ac_cr=`echo X | tr X '\015'` | |
32499 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
32500 | # But we know of no other shell where ac_cr would be empty at this | |
32501 | # point, so we can use a bashism as a fallback. | |
32502 | if test "x$ac_cr" = x; then | |
32503 | eval ac_cr=\$\'\\r\' | |
32504 | fi | |
32505 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
32506 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
32507 | ac_cs_awk_cr='\\r' | |
32508 | else | |
32509 | ac_cs_awk_cr=$ac_cr | |
32510 | fi | |
32511 | ||
32512 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
32513 | _ACEOF | |
32514 | ||
32515 | ||
32516 | { | |
32517 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
32518 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
32519 | echo "_ACEOF" | |
32520 | } >conf$$subs.sh || | |
32521 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
32522 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
32523 | ac_delim='%!_!# ' | |
32524 | for ac_last_try in false false false false false :; do | |
32525 | . ./conf$$subs.sh || | |
32526 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
32527 | ||
32528 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
32529 | if test $ac_delim_n = $ac_delim_num; then | |
32530 | break | |
32531 | elif $ac_last_try; then | |
32532 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
32533 | else | |
32534 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
32535 | fi | |
32536 | done | |
32537 | rm -f conf$$subs.sh | |
32538 | ||
32539 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32540 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
32541 | _ACEOF | |
32542 | sed -n ' | |
32543 | h | |
32544 | s/^/S["/; s/!.*/"]=/ | |
32545 | p | |
32546 | g | |
32547 | s/^[^!]*!// | |
32548 | :repl | |
32549 | t repl | |
32550 | s/'"$ac_delim"'$// | |
32551 | t delim | |
32552 | :nl | |
32553 | h | |
32554 | s/\(.\{148\}\)..*/\1/ | |
32555 | t more1 | |
32556 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
32557 | p | |
32558 | n | |
32559 | b repl | |
32560 | :more1 | |
32561 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32562 | p | |
32563 | g | |
32564 | s/.\{148\}// | |
32565 | t nl | |
32566 | :delim | |
32567 | h | |
32568 | s/\(.\{148\}\)..*/\1/ | |
32569 | t more2 | |
32570 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
32571 | p | |
32572 | b | |
32573 | :more2 | |
32574 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32575 | p | |
32576 | g | |
32577 | s/.\{148\}// | |
32578 | t delim | |
32579 | ' <conf$$subs.awk | sed ' | |
32580 | /^[^""]/{ | |
32581 | N | |
32582 | s/\n// | |
32583 | } | |
32584 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
32585 | rm -f conf$$subs.awk | |
32586 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32587 | _ACAWK | |
32588 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
32589 | for (key in S) S_is_set[key] = 1 | |
32590 | FS = "\a" | |
32591 | ||
32592 | } | |
32593 | { | |
32594 | line = $ 0 | |
32595 | nfields = split(line, field, "@") | |
32596 | substed = 0 | |
32597 | len = length(field[1]) | |
32598 | for (i = 2; i < nfields; i++) { | |
32599 | key = field[i] | |
32600 | keylen = length(key) | |
32601 | if (S_is_set[key]) { | |
32602 | value = S[key] | |
32603 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
32604 | len += length(value) + length(field[++i]) | |
32605 | substed = 1 | |
32606 | } else | |
32607 | len += 1 + keylen | |
32608 | } | |
32609 | ||
32610 | print line | |
32611 | } | |
32612 | ||
32613 | _ACAWK | |
32614 | _ACEOF | |
32615 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32616 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
32617 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
32618 | else | |
32619 | cat | |
32620 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
32621 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
32622 | _ACEOF | |
32623 | ||
32624 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
32625 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
32626 | # trailing colons and then remove the whole line if VPATH becomes empty | |
32627 | # (actually we leave an empty line to preserve line numbers). | |
32628 | if test "x$srcdir" = x.; then | |
32629 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
32630 | h | |
32631 | s/// | |
32632 | s/^/:/ | |
32633 | s/[ ]*$/:/ | |
32634 | s/:\$(srcdir):/:/g | |
32635 | s/:\${srcdir}:/:/g | |
32636 | s/:@srcdir@:/:/g | |
32637 | s/^:*// | |
32638 | s/:*$// | |
32639 | x | |
32640 | s/\(=[ ]*\).*/\1/ | |
32641 | G | |
32642 | s/\n// | |
32643 | s/^[^=]*=[ ]*$// | |
32644 | }' | |
32645 | fi | |
32646 | ||
32647 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32648 | fi # test -n "$CONFIG_FILES" | |
32649 | ||
32650 | # Set up the scripts for CONFIG_HEADERS section. | |
32651 | # No need to generate them if there are no CONFIG_HEADERS. | |
32652 | # This happens for instance with `./config.status Makefile'. | |
32653 | if test -n "$CONFIG_HEADERS"; then | |
32654 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
32655 | BEGIN { | |
32656 | _ACEOF | |
32657 | ||
32658 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
32659 | # here-document in config.status, that substitutes the proper values into | |
32660 | # config.h.in to produce config.h. | |
32661 | ||
32662 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
32663 | # handling of long lines. | |
32664 | ac_delim='%!_!# ' | |
32665 | for ac_last_try in false false :; do | |
32666 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
32667 | if test -z "$ac_tt"; then | |
32668 | break | |
32669 | elif $ac_last_try; then | |
32670 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
32671 | else | |
32672 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
32673 | fi | |
32674 | done | |
32675 | ||
32676 | # For the awk script, D is an array of macro values keyed by name, | |
32677 | # likewise P contains macro parameters if any. Preserve backslash | |
32678 | # newline sequences. | |
32679 | ||
32680 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
32681 | sed -n ' | |
32682 | s/.\{148\}/&'"$ac_delim"'/g | |
32683 | t rset | |
32684 | :rset | |
32685 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
32686 | t def | |
32687 | d | |
32688 | :def | |
32689 | s/\\$// | |
32690 | t bsnl | |
32691 | s/["\\]/\\&/g | |
32692 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32693 | D["\1"]=" \3"/p | |
32694 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
32695 | d | |
32696 | :bsnl | |
32697 | s/["\\]/\\&/g | |
32698 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32699 | D["\1"]=" \3\\\\\\n"\\/p | |
32700 | t cont | |
32701 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
32702 | t cont | |
32703 | d | |
32704 | :cont | |
32705 | n | |
32706 | s/.\{148\}/&'"$ac_delim"'/g | |
32707 | t clear | |
32708 | :clear | |
32709 | s/\\$// | |
32710 | t bsnlc | |
32711 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
32712 | d | |
32713 | :bsnlc | |
32714 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
32715 | b cont | |
32716 | ' <confdefs.h | sed ' | |
32717 | s/'"$ac_delim"'/"\\\ | |
32718 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
32719 | ||
32720 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32721 | for (key in D) D_is_set[key] = 1 | |
32722 | FS = "\a" | |
32723 | } | |
32724 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
32725 | line = \$ 0 | |
32726 | split(line, arg, " ") | |
32727 | if (arg[1] == "#") { | |
32728 | defundef = arg[2] | |
32729 | mac1 = arg[3] | |
32730 | } else { | |
32731 | defundef = substr(arg[1], 2) | |
32732 | mac1 = arg[2] | |
32733 | } | |
32734 | split(mac1, mac2, "(") #) | |
32735 | macro = mac2[1] | |
32736 | prefix = substr(line, 1, index(line, defundef) - 1) | |
32737 | if (D_is_set[macro]) { | |
32738 | # Preserve the white space surrounding the "#". | |
32739 | print prefix "define", macro P[macro] D[macro] | |
32740 | next | |
32741 | } else { | |
32742 | # Replace #undef with comments. This is necessary, for example, | |
32743 | # in the case of _POSIX_SOURCE, which is predefined and required | |
32744 | # on some systems where configure will not decide to define it. | |
32745 | if (defundef == "undef") { | |
32746 | print "/*", prefix defundef, macro, "*/" | |
32747 | next | |
32748 | } | |
32749 | } | |
32750 | } | |
32751 | { print } | |
32752 | _ACAWK | |
32753 | _ACEOF | |
32754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32755 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
32756 | fi # test -n "$CONFIG_HEADERS" | |
32757 | ||
32758 | ||
32759 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
32760 | shift | |
32761 | for ac_tag | |
32762 | do | |
32763 | case $ac_tag in | |
32764 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
32765 | esac | |
32766 | case $ac_mode$ac_tag in | |
32767 | :[FHL]*:*);; | |
32768 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
32769 | :[FH]-) ac_tag=-:-;; | |
32770 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
32771 | esac | |
32772 | ac_save_IFS=$IFS | |
32773 | IFS=: | |
32774 | set x $ac_tag | |
32775 | IFS=$ac_save_IFS | |
32776 | shift | |
32777 | ac_file=$1 | |
32778 | shift | |
32779 | ||
32780 | case $ac_mode in | |
32781 | :L) ac_source=$1;; | |
32782 | :[FH]) | |
32783 | ac_file_inputs= | |
32784 | for ac_f | |
32785 | do | |
32786 | case $ac_f in | |
32787 | -) ac_f="$ac_tmp/stdin";; | |
32788 | *) # Look for the file first in the build tree, then in the source tree | |
32789 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
32790 | # because $ac_f cannot contain `:'. | |
32791 | test -f "$ac_f" || | |
32792 | case $ac_f in | |
32793 | [\\/$]*) false;; | |
32794 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
32795 | esac || | |
32796 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
32797 | esac | |
32798 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
32799 | as_fn_append ac_file_inputs " '$ac_f'" | |
32800 | done | |
32801 | ||
32802 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
32803 | # use $as_me), people would be surprised to read: | |
32804 | # /* config.h. Generated by config.status. */ | |
32805 | configure_input='Generated from '` | |
32806 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
32807 | `' by configure.' | |
32808 | if test x"$ac_file" != x-; then | |
32809 | configure_input="$ac_file. $configure_input" | |
32810 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
32811 | $as_echo "$as_me: creating $ac_file" >&6;} | |
32812 | fi | |
32813 | # Neutralize special characters interpreted by sed in replacement strings. | |
32814 | case $configure_input in #( | |
32815 | *\&* | *\|* | *\\* ) | |
32816 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
32817 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
32818 | *) ac_sed_conf_input=$configure_input;; | |
32819 | esac | |
32820 | ||
32821 | case $ac_tag in | |
32822 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
32823 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
32824 | esac | |
32825 | ;; | |
32826 | esac | |
32827 | ||
32828 | ac_dir=`$as_dirname -- "$ac_file" || | |
32829 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32830 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
32831 | X"$ac_file" : 'X\(//\)$' \| \ | |
32832 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
32833 | $as_echo X"$ac_file" | | |
32834 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
32835 | s//\1/ | |
32836 | q | |
32837 | } | |
32838 | /^X\(\/\/\)[^/].*/{ | |
32839 | s//\1/ | |
32840 | q | |
32841 | } | |
32842 | /^X\(\/\/\)$/{ | |
32843 | s//\1/ | |
32844 | q | |
32845 | } | |
32846 | /^X\(\/\).*/{ | |
32847 | s//\1/ | |
32848 | q | |
32849 | } | |
32850 | s/.*/./; q'` | |
32851 | as_dir="$ac_dir"; as_fn_mkdir_p | |
32852 | ac_builddir=. | |
32853 | ||
32854 | case "$ac_dir" in | |
32855 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
32856 | *) | |
32857 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
32858 | # A ".." for each directory in $ac_dir_suffix. | |
32859 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
32860 | case $ac_top_builddir_sub in | |
32861 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
32862 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
32863 | esac ;; | |
32864 | esac | |
32865 | ac_abs_top_builddir=$ac_pwd | |
32866 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
32867 | # for backward compatibility: | |
32868 | ac_top_builddir=$ac_top_build_prefix | |
32869 | ||
32870 | case $srcdir in | |
32871 | .) # We are building in place. | |
32872 | ac_srcdir=. | |
32873 | ac_top_srcdir=$ac_top_builddir_sub | |
32874 | ac_abs_top_srcdir=$ac_pwd ;; | |
32875 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
32876 | ac_srcdir=$srcdir$ac_dir_suffix; | |
32877 | ac_top_srcdir=$srcdir | |
32878 | ac_abs_top_srcdir=$srcdir ;; | |
32879 | *) # Relative name. | |
32880 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
32881 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
32882 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
32883 | esac | |
32884 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
32885 | ||
32886 | ||
32887 | case $ac_mode in | |
32888 | :F) | |
32889 | # | |
32890 | # CONFIG_FILE | |
32891 | # | |
32892 | ||
32893 | case $INSTALL in | |
32894 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
32895 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
32896 | esac | |
32897 | ac_MKDIR_P=$MKDIR_P | |
32898 | case $MKDIR_P in | |
32899 | [\\/$]* | ?:[\\/]* ) ;; | |
32900 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
32901 | esac | |
32902 | _ACEOF | |
32903 | ||
32904 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32905 | # If the template does not know about datarootdir, expand it. | |
32906 | # FIXME: This hack should be removed a few years after 2.60. | |
32907 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
32908 | ac_sed_dataroot=' | |
32909 | /datarootdir/ { | |
32910 | p | |
32911 | q | |
32912 | } | |
32913 | /@datadir@/p | |
32914 | /@docdir@/p | |
32915 | /@infodir@/p | |
32916 | /@localedir@/p | |
32917 | /@mandir@/p' | |
32918 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
32919 | *datarootdir*) ac_datarootdir_seen=yes;; | |
32920 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
32921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
32922 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
32923 | _ACEOF | |
32924 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32925 | ac_datarootdir_hack=' | |
32926 | s&@datadir@&$datadir&g | |
32927 | s&@docdir@&$docdir&g | |
32928 | s&@infodir@&$infodir&g | |
32929 | s&@localedir@&$localedir&g | |
32930 | s&@mandir@&$mandir&g | |
32931 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
32932 | esac | |
32933 | _ACEOF | |
32934 | ||
32935 | # Neutralize VPATH when `$srcdir' = `.'. | |
32936 | # Shell code in configure.ac might set extrasub. | |
32937 | # FIXME: do we really want to maintain this feature? | |
32938 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32939 | ac_sed_extra="$ac_vpsub | |
32940 | $extrasub | |
32941 | _ACEOF | |
32942 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32943 | :t | |
32944 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
32945 | s|@configure_input@|$ac_sed_conf_input|;t t | |
32946 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
32947 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
32948 | s&@srcdir@&$ac_srcdir&;t t | |
32949 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
32950 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
32951 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
32952 | s&@builddir@&$ac_builddir&;t t | |
32953 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
32954 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
32955 | s&@INSTALL@&$ac_INSTALL&;t t | |
32956 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
32957 | $ac_datarootdir_hack | |
32958 | " | |
32959 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
32960 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
32961 | ||
32962 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
32963 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
32964 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
32965 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
32966 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
32967 | which seems to be undefined. Please make sure it is defined" >&5 | |
32968 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
32969 | which seems to be undefined. Please make sure it is defined" >&2;} | |
32970 | ||
32971 | rm -f "$ac_tmp/stdin" | |
32972 | case $ac_file in | |
32973 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
32974 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
32975 | esac \ | |
32976 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
32977 | ;; | |
32978 | :H) | |
32979 | # | |
32980 | # CONFIG_HEADER | |
32981 | # | |
32982 | if test x"$ac_file" != x-; then | |
32983 | { | |
32984 | $as_echo "/* $configure_input */" \ | |
32985 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
32986 | } >"$ac_tmp/config.h" \ | |
32987 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
32988 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
32989 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
32990 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
32991 | else | |
32992 | rm -f "$ac_file" | |
32993 | mv "$ac_tmp/config.h" "$ac_file" \ | |
32994 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
32995 | fi | |
32996 | else | |
32997 | $as_echo "/* $configure_input */" \ | |
32998 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
32999 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
33000 | fi | |
33001 | # Compute "$ac_file"'s index in $config_headers. | |
33002 | _am_arg="$ac_file" | |
33003 | _am_stamp_count=1 | |
33004 | for _am_header in $config_headers :; do | |
33005 | case $_am_header in | |
33006 | $_am_arg | $_am_arg:* ) | |
33007 | break ;; | |
33008 | * ) | |
33009 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
33010 | esac | |
33011 | done | |
33012 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
33013 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
33014 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
33015 | X"$_am_arg" : 'X\(//\)$' \| \ | |
33016 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
33017 | $as_echo X"$_am_arg" | | |
33018 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33019 | s//\1/ | |
33020 | q | |
33021 | } | |
33022 | /^X\(\/\/\)[^/].*/{ | |
33023 | s//\1/ | |
33024 | q | |
33025 | } | |
33026 | /^X\(\/\/\)$/{ | |
33027 | s//\1/ | |
33028 | q | |
33029 | } | |
33030 | /^X\(\/\).*/{ | |
33031 | s//\1/ | |
33032 | q | |
33033 | } | |
33034 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
33035 | ;; | |
33036 | ||
33037 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
33038 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
33039 | ;; | |
33040 | esac | |
33041 | ||
33042 | ||
33043 | case $ac_file$ac_mode in | |
33044 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
33045 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
33046 | # are listed without --file. Let's play safe and only enable the eval | |
33047 | # if we detect the quoting. | |
33048 | case $CONFIG_FILES in | |
33049 | *\'*) eval set x "$CONFIG_FILES" ;; | |
33050 | *) set x $CONFIG_FILES ;; | |
33051 | esac | |
33052 | shift | |
33053 | for mf | |
33054 | do | |
33055 | # Strip MF so we end up with the name of the file. | |
33056 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
33057 | # Check whether this is an Automake generated Makefile or not. | |
33058 | # We used to match only the files named `Makefile.in', but | |
33059 | # some people rename them; so instead we look at the file content. | |
33060 | # Grep'ing the first line is not enough: some people post-process | |
33061 | # each Makefile.in and add a new line on top of each file to say so. | |
33062 | # Grep'ing the whole file is not good either: AIX grep has a line | |
33063 | # limit of 2048, but all sed's we know have understand at least 4000. | |
33064 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
33065 | dirpart=`$as_dirname -- "$mf" || | |
33066 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
33067 | X"$mf" : 'X\(//\)[^/]' \| \ | |
33068 | X"$mf" : 'X\(//\)$' \| \ | |
33069 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
33070 | $as_echo X"$mf" | | |
33071 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33072 | s//\1/ | |
33073 | q | |
33074 | } | |
33075 | /^X\(\/\/\)[^/].*/{ | |
33076 | s//\1/ | |
33077 | q | |
33078 | } | |
33079 | /^X\(\/\/\)$/{ | |
33080 | s//\1/ | |
33081 | q | |
33082 | } | |
33083 | /^X\(\/\).*/{ | |
33084 | s//\1/ | |
33085 | q | |
33086 | } | |
33087 | s/.*/./; q'` | |
33088 | else | |
33089 | continue | |
33090 | fi | |
33091 | # Extract the definition of DEPDIR, am__include, and am__quote | |
33092 | # from the Makefile without running `make'. | |
33093 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
33094 | test -z "$DEPDIR" && continue | |
33095 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
33096 | test -z "am__include" && continue | |
33097 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
33098 | # When using ansi2knr, U may be empty or an underscore; expand it | |
33099 | U=`sed -n 's/^U = //p' < "$mf"` | |
33100 | # Find all dependency output files, they are included files with | |
33101 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
33102 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
33103 | # expansion. | |
33104 | for file in `sed -n " | |
33105 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
33106 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
33107 | # Make sure the directory exists. | |
33108 | test -f "$dirpart/$file" && continue | |
33109 | fdir=`$as_dirname -- "$file" || | |
33110 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
33111 | X"$file" : 'X\(//\)[^/]' \| \ | |
33112 | X"$file" : 'X\(//\)$' \| \ | |
33113 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
33114 | $as_echo X"$file" | | |
33115 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33116 | s//\1/ | |
33117 | q | |
33118 | } | |
33119 | /^X\(\/\/\)[^/].*/{ | |
33120 | s//\1/ | |
33121 | q | |
33122 | } | |
33123 | /^X\(\/\/\)$/{ | |
33124 | s//\1/ | |
33125 | q | |
33126 | } | |
33127 | /^X\(\/\).*/{ | |
33128 | s//\1/ | |
33129 | q | |
33130 | } | |
33131 | s/.*/./; q'` | |
33132 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
33133 | # echo "creating $dirpart/$file" | |
33134 | echo '# dummy' > "$dirpart/$file" | |
33135 | done | |
33136 | done | |
33137 | } | |
33138 | ;; | |
33139 | "libtool":C) | |
33140 | ||
33141 | # See if we are running on zsh, and set the options which allow our | |
33142 | # commands through without removal of \ escapes. | |
33143 | if test -n "${ZSH_VERSION+set}" ; then | |
33144 | setopt NO_GLOB_SUBST | |
33145 | fi | |
33146 | ||
33147 | cfgfile="${ofile}T" | |
33148 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
33149 | $RM "$cfgfile" | |
33150 | ||
33151 | cat <<_LT_EOF >> "$cfgfile" | |
33152 | #! $SHELL | |
33153 | ||
33154 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
33155 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
33156 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
33157 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
33158 | # | |
33159 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
33160 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
33161 | # Foundation, Inc. | |
33162 | # Written by Gordon Matzigkeit, 1996 | |
33163 | # | |
33164 | # This file is part of GNU Libtool. | |
33165 | # | |
33166 | # GNU Libtool is free software; you can redistribute it and/or | |
33167 | # modify it under the terms of the GNU General Public License as | |
33168 | # published by the Free Software Foundation; either version 2 of | |
33169 | # the License, or (at your option) any later version. | |
33170 | # | |
33171 | # As a special exception to the GNU General Public License, | |
33172 | # if you distribute this file as part of a program or library that | |
33173 | # is built using GNU Libtool, you may include this file under the | |
33174 | # same distribution terms that you use for the rest of that program. | |
33175 | # | |
33176 | # GNU Libtool is distributed in the hope that it will be useful, | |
33177 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
33178 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
33179 | # GNU General Public License for more details. | |
33180 | # | |
33181 | # You should have received a copy of the GNU General Public License | |
33182 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
33183 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
33184 | # obtained by writing to the Free Software Foundation, Inc., | |
33185 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
33186 | ||
33187 | ||
33188 | # The names of the tagged configurations supported by this script. | |
33189 | available_tags="" | |
33190 | ||
33191 | # ### BEGIN LIBTOOL CONFIG | |
33192 | ||
33193 | # Assembler program. | |
33194 | AS=$lt_AS | |
33195 | ||
33196 | # DLL creation program. | |
33197 | DLLTOOL=$lt_DLLTOOL | |
33198 | ||
33199 | # Object dumper program. | |
33200 | OBJDUMP=$lt_OBJDUMP | |
33201 | ||
33202 | # Whether or not to build static libraries. | |
33203 | build_old_libs=$enable_static | |
33204 | ||
33205 | # Which release of libtool.m4 was used? | |
33206 | macro_version=$macro_version | |
33207 | macro_revision=$macro_revision | |
33208 | ||
33209 | # Whether or not to build shared libraries. | |
33210 | build_libtool_libs=$enable_shared | |
33211 | ||
33212 | # What type of objects to build. | |
33213 | pic_mode=$pic_mode | |
33214 | ||
33215 | # Whether or not to optimize for fast installation. | |
33216 | fast_install=$enable_fast_install | |
33217 | ||
33218 | # Shell to use when invoking shell scripts. | |
33219 | SHELL=$lt_SHELL | |
33220 | ||
33221 | # An echo program that protects backslashes. | |
33222 | ECHO=$lt_ECHO | |
33223 | ||
33224 | # The PATH separator for the build system. | |
33225 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
33226 | ||
33227 | # The host system. | |
33228 | host_alias=$host_alias | |
33229 | host=$host | |
33230 | host_os=$host_os | |
33231 | ||
33232 | # The build system. | |
33233 | build_alias=$build_alias | |
33234 | build=$build | |
33235 | build_os=$build_os | |
33236 | ||
33237 | # A sed program that does not truncate output. | |
33238 | SED=$lt_SED | |
33239 | ||
33240 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
33241 | Xsed="\$SED -e 1s/^X//" | |
33242 | ||
33243 | # A grep program that handles long lines. | |
33244 | GREP=$lt_GREP | |
33245 | ||
33246 | # An ERE matcher. | |
33247 | EGREP=$lt_EGREP | |
33248 | ||
33249 | # A literal string matcher. | |
33250 | FGREP=$lt_FGREP | |
33251 | ||
33252 | # A BSD- or MS-compatible name lister. | |
33253 | NM=$lt_NM | |
33254 | ||
33255 | # Whether we need soft or hard links. | |
33256 | LN_S=$lt_LN_S | |
33257 | ||
33258 | # What is the maximum length of a command? | |
33259 | max_cmd_len=$max_cmd_len | |
33260 | ||
33261 | # Object file suffix (normally "o"). | |
33262 | objext=$ac_objext | |
33263 | ||
33264 | # Executable file suffix (normally ""). | |
33265 | exeext=$exeext | |
33266 | ||
33267 | # whether the shell understands "unset". | |
33268 | lt_unset=$lt_unset | |
33269 | ||
33270 | # turn spaces into newlines. | |
33271 | SP2NL=$lt_lt_SP2NL | |
33272 | ||
33273 | # turn newlines into spaces. | |
33274 | NL2SP=$lt_lt_NL2SP | |
33275 | ||
33276 | # convert \$build file names to \$host format. | |
33277 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
33278 | ||
33279 | # convert \$build files to toolchain format. | |
33280 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
33281 | ||
33282 | # Method to check whether dependent libraries are shared objects. | |
33283 | deplibs_check_method=$lt_deplibs_check_method | |
33284 | ||
33285 | # Command to use when deplibs_check_method = "file_magic". | |
33286 | file_magic_cmd=$lt_file_magic_cmd | |
33287 | ||
33288 | # How to find potential files when deplibs_check_method = "file_magic". | |
33289 | file_magic_glob=$lt_file_magic_glob | |
33290 | ||
33291 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
33292 | want_nocaseglob=$lt_want_nocaseglob | |
33293 | ||
33294 | # Command to associate shared and link libraries. | |
33295 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
33296 | ||
33297 | # The archiver. | |
33298 | AR=$lt_AR | |
33299 | ||
33300 | # Flags to create an archive. | |
33301 | AR_FLAGS=$lt_AR_FLAGS | |
33302 | ||
33303 | # How to feed a file listing to the archiver. | |
33304 | archiver_list_spec=$lt_archiver_list_spec | |
33305 | ||
33306 | # A symbol stripping program. | |
33307 | STRIP=$lt_STRIP | |
33308 | ||
33309 | # Commands used to install an old-style archive. | |
33310 | RANLIB=$lt_RANLIB | |
33311 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
33312 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
33313 | ||
33314 | # Whether to use a lock for old archive extraction. | |
33315 | lock_old_archive_extraction=$lock_old_archive_extraction | |
33316 | ||
33317 | # A C compiler. | |
33318 | LTCC=$lt_CC | |
33319 | ||
33320 | # LTCC compiler flags. | |
33321 | LTCFLAGS=$lt_CFLAGS | |
33322 | ||
33323 | # Take the output of nm and produce a listing of raw symbols and C names. | |
33324 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
33325 | ||
33326 | # Transform the output of nm in a proper C declaration. | |
33327 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
33328 | ||
33329 | # Transform the output of nm in a C name address pair. | |
33330 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
33331 | ||
33332 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
33333 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
33334 | ||
33335 | # Specify filename containing input files for \$NM. | |
33336 | nm_file_list_spec=$lt_nm_file_list_spec | |
33337 | ||
33338 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
33339 | lt_sysroot=$lt_sysroot | |
33340 | ||
33341 | # The name of the directory that contains temporary libtool files. | |
33342 | objdir=$objdir | |
33343 | ||
33344 | # Used to examine libraries when file_magic_cmd begins with "file". | |
33345 | MAGIC_CMD=$MAGIC_CMD | |
33346 | ||
33347 | # Must we lock files when doing compilation? | |
33348 | need_locks=$lt_need_locks | |
33349 | ||
33350 | # Manifest tool. | |
33351 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
33352 | ||
33353 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
33354 | DSYMUTIL=$lt_DSYMUTIL | |
33355 | ||
33356 | # Tool to change global to local symbols on Mac OS X. | |
33357 | NMEDIT=$lt_NMEDIT | |
33358 | ||
33359 | # Tool to manipulate fat objects and archives on Mac OS X. | |
33360 | LIPO=$lt_LIPO | |
33361 | ||
33362 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
33363 | OTOOL=$lt_OTOOL | |
33364 | ||
33365 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
33366 | OTOOL64=$lt_OTOOL64 | |
33367 | ||
33368 | # Old archive suffix (normally "a"). | |
33369 | libext=$libext | |
33370 | ||
33371 | # Shared library suffix (normally ".so"). | |
33372 | shrext_cmds=$lt_shrext_cmds | |
33373 | ||
33374 | # The commands to extract the exported symbol list from a shared archive. | |
33375 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
33376 | ||
33377 | # Variables whose values should be saved in libtool wrapper scripts and | |
33378 | # restored at link time. | |
33379 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
33380 | ||
33381 | # Do we need the "lib" prefix for modules? | |
33382 | need_lib_prefix=$need_lib_prefix | |
33383 | ||
33384 | # Do we need a version for libraries? | |
33385 | need_version=$need_version | |
33386 | ||
33387 | # Library versioning type. | |
33388 | version_type=$version_type | |
33389 | ||
33390 | # Shared library runtime path variable. | |
33391 | runpath_var=$runpath_var | |
33392 | ||
33393 | # Shared library path variable. | |
33394 | shlibpath_var=$shlibpath_var | |
33395 | ||
33396 | # Is shlibpath searched before the hard-coded library search path? | |
33397 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
33398 | ||
33399 | # Format of library name prefix. | |
33400 | libname_spec=$lt_libname_spec | |
33401 | ||
33402 | # List of archive names. First name is the real one, the rest are links. | |
33403 | # The last name is the one that the linker finds with -lNAME | |
33404 | library_names_spec=$lt_library_names_spec | |
33405 | ||
33406 | # The coded name of the library, if different from the real name. | |
33407 | soname_spec=$lt_soname_spec | |
33408 | ||
33409 | # Permission mode override for installation of shared libraries. | |
33410 | install_override_mode=$lt_install_override_mode | |
33411 | ||
33412 | # Command to use after installation of a shared archive. | |
33413 | postinstall_cmds=$lt_postinstall_cmds | |
33414 | ||
33415 | # Command to use after uninstallation of a shared archive. | |
33416 | postuninstall_cmds=$lt_postuninstall_cmds | |
33417 | ||
33418 | # Commands used to finish a libtool library installation in a directory. | |
33419 | finish_cmds=$lt_finish_cmds | |
33420 | ||
33421 | # As "finish_cmds", except a single script fragment to be evaled but | |
33422 | # not shown. | |
33423 | finish_eval=$lt_finish_eval | |
33424 | ||
33425 | # Whether we should hardcode library paths into libraries. | |
33426 | hardcode_into_libs=$hardcode_into_libs | |
33427 | ||
33428 | # Compile-time system search path for libraries. | |
33429 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
33430 | ||
33431 | # Run-time system search path for libraries. | |
33432 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
33433 | ||
33434 | # Whether dlopen is supported. | |
33435 | dlopen_support=$enable_dlopen | |
33436 | ||
33437 | # Whether dlopen of programs is supported. | |
33438 | dlopen_self=$enable_dlopen_self | |
33439 | ||
33440 | # Whether dlopen of statically linked programs is supported. | |
33441 | dlopen_self_static=$enable_dlopen_self_static | |
33442 | ||
33443 | # Commands to strip libraries. | |
33444 | old_striplib=$lt_old_striplib | |
33445 | striplib=$lt_striplib | |
33446 | ||
33447 | ||
33448 | # The linker used to build libraries. | |
33449 | LD=$lt_LD | |
33450 | ||
33451 | # How to create reloadable object files. | |
33452 | reload_flag=$lt_reload_flag | |
33453 | reload_cmds=$lt_reload_cmds | |
33454 | ||
33455 | # Commands used to build an old-style archive. | |
33456 | old_archive_cmds=$lt_old_archive_cmds | |
33457 | ||
33458 | # A language specific compiler. | |
33459 | CC=$lt_compiler | |
33460 | ||
33461 | # Is the compiler the GNU compiler? | |
33462 | with_gcc=$GCC | |
33463 | ||
33464 | # Compiler flag to turn off builtin functions. | |
33465 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
33466 | ||
33467 | # Additional compiler flags for building library objects. | |
33468 | pic_flag=$lt_lt_prog_compiler_pic | |
33469 | ||
33470 | # How to pass a linker flag through the compiler. | |
33471 | wl=$lt_lt_prog_compiler_wl | |
33472 | ||
33473 | # Compiler flag to prevent dynamic linking. | |
33474 | link_static_flag=$lt_lt_prog_compiler_static | |
33475 | ||
33476 | # Does compiler simultaneously support -c and -o options? | |
33477 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
33478 | ||
33479 | # Whether or not to add -lc for building shared libraries. | |
33480 | build_libtool_need_lc=$archive_cmds_need_lc | |
33481 | ||
33482 | # Whether or not to disallow shared libs when runtime libs are static. | |
33483 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
33484 | ||
33485 | # Compiler flag to allow reflexive dlopens. | |
33486 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
33487 | ||
33488 | # Compiler flag to generate shared objects directly from archives. | |
33489 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
33490 | ||
33491 | # Whether the compiler copes with passing no objects directly. | |
33492 | compiler_needs_object=$lt_compiler_needs_object | |
33493 | ||
33494 | # Create an old-style archive from a shared archive. | |
33495 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
33496 | ||
33497 | # Create a temporary old-style archive to link instead of a shared archive. | |
33498 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
33499 | ||
33500 | # Commands used to build a shared archive. | |
33501 | archive_cmds=$lt_archive_cmds | |
33502 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
33503 | ||
33504 | # Commands used to build a loadable module if different from building | |
33505 | # a shared archive. | |
33506 | module_cmds=$lt_module_cmds | |
33507 | module_expsym_cmds=$lt_module_expsym_cmds | |
33508 | ||
33509 | # Whether we are building with GNU ld or not. | |
33510 | with_gnu_ld=$lt_with_gnu_ld | |
33511 | ||
33512 | # Flag that allows shared libraries with undefined symbols to be built. | |
33513 | allow_undefined_flag=$lt_allow_undefined_flag | |
33514 | ||
33515 | # Flag that enforces no undefined symbols. | |
33516 | no_undefined_flag=$lt_no_undefined_flag | |
33517 | ||
33518 | # Flag to hardcode \$libdir into a binary during linking. | |
33519 | # This must work even if \$libdir does not exist | |
33520 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
33521 | ||
33522 | # Whether we need a single "-rpath" flag with a separated argument. | |
33523 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
33524 | ||
33525 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33526 | # DIR into the resulting binary. | |
33527 | hardcode_direct=$hardcode_direct | |
33528 | ||
33529 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33530 | # DIR into the resulting binary and the resulting library dependency is | |
33531 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
33532 | # library is relocated. | |
33533 | hardcode_direct_absolute=$hardcode_direct_absolute | |
33534 | ||
33535 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
33536 | # into the resulting binary. | |
33537 | hardcode_minus_L=$hardcode_minus_L | |
33538 | ||
33539 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
33540 | # into the resulting binary. | |
33541 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
33542 | ||
33543 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
33544 | # into the library and all subsequent libraries and executables linked | |
33545 | # against it. | |
33546 | hardcode_automatic=$hardcode_automatic | |
33547 | ||
33548 | # Set to yes if linker adds runtime paths of dependent libraries | |
33549 | # to runtime path list. | |
33550 | inherit_rpath=$inherit_rpath | |
33551 | ||
33552 | # Whether libtool must link a program against all its dependency libraries. | |
33553 | link_all_deplibs=$link_all_deplibs | |
33554 | ||
33555 | # Set to "yes" if exported symbols are required. | |
33556 | always_export_symbols=$always_export_symbols | |
33557 | ||
33558 | # The commands to list exported symbols. | |
33559 | export_symbols_cmds=$lt_export_symbols_cmds | |
33560 | ||
33561 | # Symbols that should not be listed in the preloaded symbols. | |
33562 | exclude_expsyms=$lt_exclude_expsyms | |
33563 | ||
33564 | # Symbols that must always be exported. | |
33565 | include_expsyms=$lt_include_expsyms | |
33566 | ||
33567 | # Commands necessary for linking programs (against libraries) with templates. | |
33568 | prelink_cmds=$lt_prelink_cmds | |
33569 | ||
33570 | # Commands necessary for finishing linking programs. | |
33571 | postlink_cmds=$lt_postlink_cmds | |
33572 | ||
33573 | # Specify filename containing input files. | |
33574 | file_list_spec=$lt_file_list_spec | |
33575 | ||
33576 | # How to hardcode a shared library path into an executable. | |
33577 | hardcode_action=$hardcode_action | |
33578 | ||
33579 | # ### END LIBTOOL CONFIG | |
33580 | ||
33581 | _LT_EOF | |
33582 | ||
33583 | case $host_os in | |
33584 | aix3*) | |
33585 | cat <<\_LT_EOF >> "$cfgfile" | |
33586 | # AIX sometimes has problems with the GCC collect2 program. For some | |
33587 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
33588 | # vanish in a puff of smoke. | |
33589 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
33590 | COLLECT_NAMES= | |
33591 | export COLLECT_NAMES | |
33592 | fi | |
33593 | _LT_EOF | |
33594 | ;; | |
33595 | esac | |
33596 | ||
33597 | ||
33598 | ltmain="$ac_aux_dir/ltmain.sh" | |
33599 | ||
33600 | ||
33601 | # We use sed instead of cat because bash on DJGPP gets confused if | |
33602 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
33603 | # text mode, it properly converts lines to CR/LF. This bash problem | |
33604 | # is reportedly fixed, but why not run on old versions too? | |
33605 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
33606 | || (rm -f "$cfgfile"; exit 1) | |
33607 | ||
33608 | if test x"$xsi_shell" = xyes; then | |
33609 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
33610 | func_dirname ()\ | |
33611 | {\ | |
33612 | \ case ${1} in\ | |
33613 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
33614 | \ * ) func_dirname_result="${3}" ;;\ | |
33615 | \ esac\ | |
33616 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
33617 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33618 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33619 | test 0 -eq $? || _lt_function_replace_fail=: | |
33620 | ||
33621 | ||
33622 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
33623 | func_basename ()\ | |
33624 | {\ | |
33625 | \ func_basename_result="${1##*/}"\ | |
33626 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
33627 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33628 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33629 | test 0 -eq $? || _lt_function_replace_fail=: | |
33630 | ||
33631 | ||
33632 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
33633 | func_dirname_and_basename ()\ | |
33634 | {\ | |
33635 | \ case ${1} in\ | |
33636 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
33637 | \ * ) func_dirname_result="${3}" ;;\ | |
33638 | \ esac\ | |
33639 | \ func_basename_result="${1##*/}"\ | |
33640 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
33641 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33642 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33643 | test 0 -eq $? || _lt_function_replace_fail=: | |
33644 | ||
33645 | ||
33646 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
33647 | func_stripname ()\ | |
33648 | {\ | |
33649 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
33650 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
33651 | \ func_stripname_result=${3}\ | |
33652 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
33653 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
33654 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
33655 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33656 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33657 | test 0 -eq $? || _lt_function_replace_fail=: | |
33658 | ||
33659 | ||
33660 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
33661 | func_split_long_opt ()\ | |
33662 | {\ | |
33663 | \ func_split_long_opt_name=${1%%=*}\ | |
33664 | \ func_split_long_opt_arg=${1#*=}\ | |
33665 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
33666 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33667 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33668 | test 0 -eq $? || _lt_function_replace_fail=: | |
33669 | ||
33670 | ||
33671 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
33672 | func_split_short_opt ()\ | |
33673 | {\ | |
33674 | \ func_split_short_opt_arg=${1#??}\ | |
33675 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
33676 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
33677 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33678 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33679 | test 0 -eq $? || _lt_function_replace_fail=: | |
33680 | ||
33681 | ||
33682 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
33683 | func_lo2o ()\ | |
33684 | {\ | |
33685 | \ case ${1} in\ | |
33686 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
33687 | \ *) func_lo2o_result=${1} ;;\ | |
33688 | \ esac\ | |
33689 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
33690 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33691 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33692 | test 0 -eq $? || _lt_function_replace_fail=: | |
33693 | ||
33694 | ||
33695 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
33696 | func_xform ()\ | |
33697 | {\ | |
33698 | func_xform_result=${1%.*}.lo\ | |
33699 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
33700 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33701 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33702 | test 0 -eq $? || _lt_function_replace_fail=: | |
33703 | ||
33704 | ||
33705 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
33706 | func_arith ()\ | |
33707 | {\ | |
33708 | func_arith_result=$(( $* ))\ | |
33709 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
33710 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33711 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33712 | test 0 -eq $? || _lt_function_replace_fail=: | |
33713 | ||
33714 | ||
33715 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
33716 | func_len ()\ | |
33717 | {\ | |
33718 | func_len_result=${#1}\ | |
33719 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
33720 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33721 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33722 | test 0 -eq $? || _lt_function_replace_fail=: | |
33723 | ||
33724 | fi | |
33725 | ||
33726 | if test x"$lt_shell_append" = xyes; then | |
33727 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
33728 | func_append ()\ | |
33729 | {\ | |
33730 | eval "${1}+=\\${2}"\ | |
33731 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
33732 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33733 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33734 | test 0 -eq $? || _lt_function_replace_fail=: | |
33735 | ||
33736 | ||
33737 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
33738 | func_append_quoted ()\ | |
33739 | {\ | |
33740 | \ func_quote_for_eval "${2}"\ | |
33741 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
33742 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
33743 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33744 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33745 | test 0 -eq $? || _lt_function_replace_fail=: | |
33746 | ||
33747 | ||
33748 | # Save a `func_append' function call where possible by direct use of '+=' | |
33749 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
33750 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33751 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33752 | test 0 -eq $? || _lt_function_replace_fail=: | |
33753 | else | |
33754 | # Save a `func_append' function call even when '+=' is not available | |
33755 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
33756 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
33757 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
33758 | test 0 -eq $? || _lt_function_replace_fail=: | |
33759 | fi | |
33760 | ||
33761 | if test x"$_lt_function_replace_fail" = x":"; then | |
33762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
33763 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
33764 | fi | |
33765 | ||
33766 | ||
33767 | mv -f "$cfgfile" "$ofile" || | |
33768 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
33769 | chmod +x "$ofile" | |
33770 | ||
33771 | ;; | |
33772 | "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; | |
33773 | ||
33774 | esac | |
33775 | done # for ac_tag | |
33776 | ||
33777 | ||
33778 | as_fn_exit 0 | |
33779 | _ACEOF | |
33780 | ac_clean_files=$ac_clean_files_save | |
33781 | ||
33782 | test $ac_write_fail = 0 || | |
33783 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
33784 | ||
33785 | ||
33786 | # configure is writing to config.log, and then calls config.status. | |
33787 | # config.status does its own redirection, appending to config.log. | |
33788 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
33789 | # by configure, so config.status won't be able to write to it; its | |
33790 | # output is simply discarded. So we exec the FD to /dev/null, | |
33791 | # effectively closing config.log, so it can be properly (re)opened and | |
33792 | # appended to by config.status. When coming back to configure, we | |
33793 | # need to make the FD available again. | |
33794 | if test "$no_create" != yes; then | |
33795 | ac_cs_success=: | |
33796 | ac_config_status_args= | |
33797 | test "$silent" = yes && | |
33798 | ac_config_status_args="$ac_config_status_args --quiet" | |
33799 | exec 5>/dev/null | |
33800 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
33801 | exec 5>>config.log | |
33802 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
33803 | # would make configure fail if this is the last instruction. | |
33804 | $ac_cs_success || as_fn_exit 1 | |
33805 | fi | |
33806 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
33807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
33808 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
33809 | fi | |
33810 |