diff options
Diffstat (limited to '')
-rwxr-xr-x | libraries/evas/configure | 35597 | ||||
-rw-r--r-- | libraries/evas/configure.ac | 2082 |
2 files changed, 37679 insertions, 0 deletions
diff --git a/libraries/evas/configure b/libraries/evas/configure new file mode 100755 index 0000000..df1fca7 --- /dev/null +++ b/libraries/evas/configure | |||
@@ -0,0 +1,35597 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for evas 1.1.0. | ||
4 | # | ||
5 | # Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
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 | case $0 in #(( | ||
95 | *[\\/]* ) as_myself=$0 ;; | ||
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
97 | for as_dir in $PATH | ||
98 | do | ||
99 | IFS=$as_save_IFS | ||
100 | test -z "$as_dir" && as_dir=. | ||
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
102 | done | ||
103 | IFS=$as_save_IFS | ||
104 | |||
105 | ;; | ||
106 | esac | ||
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
108 | # in which case we are not to be found in the path. | ||
109 | if test "x$as_myself" = x; then | ||
110 | as_myself=$0 | ||
111 | fi | ||
112 | if test ! -f "$as_myself"; then | ||
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
114 | exit 1 | ||
115 | fi | ||
116 | |||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
119 | # suppresses any "Segmentation fault" message there. '((' could | ||
120 | # trigger a bug in pdksh 5.2.14. | ||
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
122 | do eval test x\${$as_var+set} = xset \ | ||
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
124 | done | ||
125 | PS1='$ ' | ||
126 | PS2='> ' | ||
127 | PS4='+ ' | ||
128 | |||
129 | # NLS nuisances. | ||
130 | LC_ALL=C | ||
131 | export LC_ALL | ||
132 | LANGUAGE=C | ||
133 | export LANGUAGE | ||
134 | |||
135 | # CDPATH. | ||
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
137 | |||
138 | if test "x$CONFIG_SHELL" = x; then | ||
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
140 | emulate sh | ||
141 | NULLCMD=: | ||
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
143 | # is contrary to our usage. Disable this feature. | ||
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
145 | setopt NO_GLOB_SUBST | ||
146 | else | ||
147 | case \`(set -o) 2>/dev/null\` in #( | ||
148 | *posix*) : | ||
149 | set -o posix ;; #( | ||
150 | *) : | ||
151 | ;; | ||
152 | esac | ||
153 | fi | ||
154 | " | ||
155 | as_required="as_fn_return () { (exit \$1); } | ||
156 | as_fn_success () { as_fn_return 0; } | ||
157 | as_fn_failure () { as_fn_return 1; } | ||
158 | as_fn_ret_success () { return 0; } | ||
159 | as_fn_ret_failure () { return 1; } | ||
160 | |||
161 | exitcode=0 | ||
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
167 | |||
168 | else | ||
169 | exitcode=1; echo positional parameters were not saved. | ||
170 | fi | ||
171 | test x\$exitcode = x0 || exit 1" | ||
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
176 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
177 | if (eval "$as_required") 2>/dev/null; then : | ||
178 | as_have_required=yes | ||
179 | else | ||
180 | as_have_required=no | ||
181 | fi | ||
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
183 | |||
184 | else | ||
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
186 | as_found=false | ||
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
188 | do | ||
189 | IFS=$as_save_IFS | ||
190 | test -z "$as_dir" && as_dir=. | ||
191 | as_found=: | ||
192 | case $as_dir in #( | ||
193 | /*) | ||
194 | for as_base in sh bash ksh sh5; do | ||
195 | # Try only shells that exist, to save several forks. | ||
196 | as_shell=$as_dir/$as_base | ||
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
199 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | break 2 | ||
202 | fi | ||
203 | fi | ||
204 | done;; | ||
205 | esac | ||
206 | as_found=false | ||
207 | done | ||
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
210 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
211 | fi; } | ||
212 | IFS=$as_save_IFS | ||
213 | |||
214 | |||
215 | if test "x$CONFIG_SHELL" != x; then : | ||
216 | # We cannot yet assume a decent shell, so we have to provide a | ||
217 | # neutralization value for shells without unset; and this also | ||
218 | # works around shells that cannot unset nonexistent variables. | ||
219 | BASH_ENV=/dev/null | ||
220 | ENV=/dev/null | ||
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
222 | export CONFIG_SHELL | ||
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
224 | fi | ||
225 | |||
226 | if test x$as_have_required = xno; then : | ||
227 | $as_echo "$0: This script requires a shell more modern than all" | ||
228 | $as_echo "$0: the shells that I found on your system." | ||
229 | if test x${ZSH_VERSION+set} = xset ; then | ||
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
232 | else | ||
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
234 | $0: enlightenment-devel@lists.sourceforge.net about your | ||
235 | $0: system, including any error possibly output before this | ||
236 | $0: message. Then install a modern shell, or manually run | ||
237 | $0: the script under such a shell if you do have one." | ||
238 | fi | ||
239 | exit 1 | ||
240 | fi | ||
241 | fi | ||
242 | fi | ||
243 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
244 | export SHELL | ||
245 | # Unset more variables known to interfere with behavior of common tools. | ||
246 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
247 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
248 | |||
249 | ## --------------------- ## | ||
250 | ## M4sh Shell Functions. ## | ||
251 | ## --------------------- ## | ||
252 | # as_fn_unset VAR | ||
253 | # --------------- | ||
254 | # Portably unset VAR. | ||
255 | as_fn_unset () | ||
256 | { | ||
257 | { eval $1=; unset $1;} | ||
258 | } | ||
259 | as_unset=as_fn_unset | ||
260 | |||
261 | # as_fn_set_status STATUS | ||
262 | # ----------------------- | ||
263 | # Set $? to STATUS, without forking. | ||
264 | as_fn_set_status () | ||
265 | { | ||
266 | return $1 | ||
267 | } # as_fn_set_status | ||
268 | |||
269 | # as_fn_exit STATUS | ||
270 | # ----------------- | ||
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
272 | as_fn_exit () | ||
273 | { | ||
274 | set +e | ||
275 | as_fn_set_status $1 | ||
276 | exit $1 | ||
277 | } # as_fn_exit | ||
278 | |||
279 | # as_fn_mkdir_p | ||
280 | # ------------- | ||
281 | # Create "$as_dir" as a directory, including parents if necessary. | ||
282 | as_fn_mkdir_p () | ||
283 | { | ||
284 | |||
285 | case $as_dir in #( | ||
286 | -*) as_dir=./$as_dir;; | ||
287 | esac | ||
288 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
289 | as_dirs= | ||
290 | while :; do | ||
291 | case $as_dir in #( | ||
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
293 | *) as_qdir=$as_dir;; | ||
294 | esac | ||
295 | as_dirs="'$as_qdir' $as_dirs" | ||
296 | as_dir=`$as_dirname -- "$as_dir" || | ||
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
299 | X"$as_dir" : 'X\(//\)$' \| \ | ||
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
301 | $as_echo X"$as_dir" | | ||
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
303 | s//\1/ | ||
304 | q | ||
305 | } | ||
306 | /^X\(\/\/\)[^/].*/{ | ||
307 | s//\1/ | ||
308 | q | ||
309 | } | ||
310 | /^X\(\/\/\)$/{ | ||
311 | s//\1/ | ||
312 | q | ||
313 | } | ||
314 | /^X\(\/\).*/{ | ||
315 | s//\1/ | ||
316 | q | ||
317 | } | ||
318 | s/.*/./; q'` | ||
319 | test -d "$as_dir" && break | ||
320 | done | ||
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
323 | |||
324 | |||
325 | } # as_fn_mkdir_p | ||
326 | # as_fn_append VAR VALUE | ||
327 | # ---------------------- | ||
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
329 | # advantage of any shell optimizations that allow amortized linear growth over | ||
330 | # repeated appends, instead of the typical quadratic growth present in naive | ||
331 | # implementations. | ||
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
333 | eval 'as_fn_append () | ||
334 | { | ||
335 | eval $1+=\$2 | ||
336 | }' | ||
337 | else | ||
338 | as_fn_append () | ||
339 | { | ||
340 | eval $1=\$$1\$2 | ||
341 | } | ||
342 | fi # as_fn_append | ||
343 | |||
344 | # as_fn_arith ARG... | ||
345 | # ------------------ | ||
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
348 | # must be portable across $(()) and expr. | ||
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
350 | eval 'as_fn_arith () | ||
351 | { | ||
352 | as_val=$(( $* )) | ||
353 | }' | ||
354 | else | ||
355 | as_fn_arith () | ||
356 | { | ||
357 | as_val=`expr "$@" || test $? -eq 1` | ||
358 | } | ||
359 | fi # as_fn_arith | ||
360 | |||
361 | |||
362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
363 | # ---------------------------------------- | ||
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
366 | # script with STATUS, using 1 if that was 0. | ||
367 | as_fn_error () | ||
368 | { | ||
369 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
370 | if test "$4"; then | ||
371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
373 | fi | ||
374 | $as_echo "$as_me: error: $2" >&2 | ||
375 | as_fn_exit $as_status | ||
376 | } # as_fn_error | ||
377 | |||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
380 | as_expr=expr | ||
381 | else | ||
382 | as_expr=false | ||
383 | fi | ||
384 | |||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
386 | as_basename=basename | ||
387 | else | ||
388 | as_basename=false | ||
389 | fi | ||
390 | |||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
392 | as_dirname=dirname | ||
393 | else | ||
394 | as_dirname=false | ||
395 | fi | ||
396 | |||
397 | as_me=`$as_basename -- "$0" || | ||
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
399 | X"$0" : 'X\(//\)$' \| \ | ||
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
401 | $as_echo X/"$0" | | ||
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
403 | s//\1/ | ||
404 | q | ||
405 | } | ||
406 | /^X\/\(\/\/\)$/{ | ||
407 | s//\1/ | ||
408 | q | ||
409 | } | ||
410 | /^X\/\(\/\).*/{ | ||
411 | s//\1/ | ||
412 | q | ||
413 | } | ||
414 | s/.*/./; q'` | ||
415 | |||
416 | # Avoid depending upon Character Ranges. | ||
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
420 | as_cr_digits='0123456789' | ||
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
422 | |||
423 | |||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
429 | sed -n ' | ||
430 | p | ||
431 | /[$]LINENO/= | ||
432 | ' <$as_myself | | ||
433 | sed ' | ||
434 | s/[$]LINENO.*/&-/ | ||
435 | t lineno | ||
436 | b | ||
437 | :lineno | ||
438 | N | ||
439 | :loop | ||
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
441 | t loop | ||
442 | s/-\n.*// | ||
443 | ' >$as_me.lineno && | ||
444 | chmod +x "$as_me.lineno" || | ||
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
446 | |||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
448 | # (the dirname of $[0] is not the place where we might find the | ||
449 | # original and so on. Autoconf is especially sensitive to this). | ||
450 | . "./$as_me.lineno" | ||
451 | # Exit status is that of the last command. | ||
452 | exit | ||
453 | } | ||
454 | |||
455 | ECHO_C= ECHO_N= ECHO_T= | ||
456 | case `echo -n x` in #((((( | ||
457 | -n*) | ||
458 | case `echo 'xy\c'` in | ||
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
460 | xy) ECHO_C='\c';; | ||
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
462 | ECHO_T=' ';; | ||
463 | esac;; | ||
464 | *) | ||
465 | ECHO_N='-n';; | ||
466 | esac | ||
467 | |||
468 | rm -f conf$$ conf$$.exe conf$$.file | ||
469 | if test -d conf$$.dir; then | ||
470 | rm -f conf$$.dir/conf$$.file | ||
471 | else | ||
472 | rm -f conf$$.dir | ||
473 | mkdir conf$$.dir 2>/dev/null | ||
474 | fi | ||
475 | if (echo >conf$$.file) 2>/dev/null; then | ||
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
477 | as_ln_s='ln -s' | ||
478 | # ... but there are two gotchas: | ||
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
481 | # In both cases, we have to default to `cp -p'. | ||
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
483 | as_ln_s='cp -p' | ||
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
485 | as_ln_s=ln | ||
486 | else | ||
487 | as_ln_s='cp -p' | ||
488 | fi | ||
489 | else | ||
490 | as_ln_s='cp -p' | ||
491 | fi | ||
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
493 | rmdir conf$$.dir 2>/dev/null | ||
494 | |||
495 | if mkdir -p . 2>/dev/null; then | ||
496 | as_mkdir_p='mkdir -p "$as_dir"' | ||
497 | else | ||
498 | test -d ./-p && rmdir ./-p | ||
499 | as_mkdir_p=false | ||
500 | fi | ||
501 | |||
502 | if test -x / >/dev/null 2>&1; then | ||
503 | as_test_x='test -x' | ||
504 | else | ||
505 | if ls -dL / >/dev/null 2>&1; then | ||
506 | as_ls_L_option=L | ||
507 | else | ||
508 | as_ls_L_option= | ||
509 | fi | ||
510 | as_test_x=' | ||
511 | eval sh -c '\'' | ||
512 | if test -d "$1"; then | ||
513 | test -d "$1/."; | ||
514 | else | ||
515 | case $1 in #( | ||
516 | -*)set "./$1";; | ||
517 | esac; | ||
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
519 | ???[sx]*):;;*)false;;esac;fi | ||
520 | '\'' sh | ||
521 | ' | ||
522 | fi | ||
523 | as_executable_p=$as_test_x | ||
524 | |||
525 | # Sed expression to map a string onto a valid CPP name. | ||
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
527 | |||
528 | # Sed expression to map a string onto a valid variable name. | ||
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
530 | |||
531 | |||
532 | |||
533 | # Check that we are running under the correct shell. | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
535 | |||
536 | case X$lt_ECHO in | ||
537 | X*--fallback-echo) | ||
538 | # Remove one level of quotation (which was required for Make). | ||
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
540 | ;; | ||
541 | esac | ||
542 | |||
543 | ECHO=${lt_ECHO-echo} | ||
544 | if test "X$1" = X--no-reexec; then | ||
545 | # Discard the --no-reexec flag, and continue. | ||
546 | shift | ||
547 | elif test "X$1" = X--fallback-echo; then | ||
548 | # Avoid inline document here, it may be left over | ||
549 | : | ||
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
551 | # Yippee, $ECHO works! | ||
552 | : | ||
553 | else | ||
554 | # Restart under the correct shell. | ||
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
556 | fi | ||
557 | |||
558 | if test "X$1" = X--fallback-echo; then | ||
559 | # used as fallback echo | ||
560 | shift | ||
561 | cat <<_LT_EOF | ||
562 | $* | ||
563 | _LT_EOF | ||
564 | exit 0 | ||
565 | fi | ||
566 | |||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
568 | # if CDPATH is set. | ||
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
570 | |||
571 | if test -z "$lt_ECHO"; then | ||
572 | if test "X${echo_test_string+set}" != Xset; then | ||
573 | # find a string as large as possible, as long as the shell can cope with it | ||
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
578 | then | ||
579 | break | ||
580 | fi | ||
581 | done | ||
582 | fi | ||
583 | |||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
587 | : | ||
588 | else | ||
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
590 | # backslashes. This makes it impossible to quote backslashes using | ||
591 | # echo "$something" | sed 's/\\/\\\\/g' | ||
592 | # | ||
593 | # So, first we look for a working echo in the user's PATH. | ||
594 | |||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
596 | for dir in $PATH /usr/ucb; do | ||
597 | IFS="$lt_save_ifs" | ||
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
602 | ECHO="$dir/echo" | ||
603 | break | ||
604 | fi | ||
605 | done | ||
606 | IFS="$lt_save_ifs" | ||
607 | |||
608 | if test "X$ECHO" = Xecho; then | ||
609 | # We didn't find a better echo, so look for alternatives. | ||
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
613 | # This shell has a builtin print -r that does the trick. | ||
614 | ECHO='print -r' | ||
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
617 | # If we have ksh, try running configure again with it. | ||
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
619 | export ORIGINAL_CONFIG_SHELL | ||
620 | CONFIG_SHELL=/bin/ksh | ||
621 | export CONFIG_SHELL | ||
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
623 | else | ||
624 | # Try using printf. | ||
625 | ECHO='printf %s\n' | ||
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
629 | # Cool, printf works | ||
630 | : | ||
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
632 | test "X$echo_testing_string" = 'X\t' && | ||
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
636 | export CONFIG_SHELL | ||
637 | SHELL="$CONFIG_SHELL" | ||
638 | export SHELL | ||
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
641 | test "X$echo_testing_string" = 'X\t' && | ||
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
645 | else | ||
646 | # maybe with a smaller string... | ||
647 | prev=: | ||
648 | |||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
651 | then | ||
652 | break | ||
653 | fi | ||
654 | prev="$cmd" | ||
655 | done | ||
656 | |||
657 | if test "$prev" != 'sed 50q "$0"'; then | ||
658 | echo_test_string=`eval $prev` | ||
659 | export echo_test_string | ||
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
661 | else | ||
662 | # Oops. We lost completely, so just stick with echo. | ||
663 | ECHO=echo | ||
664 | fi | ||
665 | fi | ||
666 | fi | ||
667 | fi | ||
668 | fi | ||
669 | fi | ||
670 | |||
671 | # Copy echo and quote the copy suitably for passing to libtool from | ||
672 | # the Makefile, instead of quoting the original, which is used later. | ||
673 | lt_ECHO=$ECHO | ||
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
676 | fi | ||
677 | |||
678 | |||
679 | |||
680 | |||
681 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
682 | exec 6>&1 | ||
683 | |||
684 | # Name of the host. | ||
685 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
686 | # so uname gets run too. | ||
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
688 | |||
689 | # | ||
690 | # Initializations. | ||
691 | # | ||
692 | ac_default_prefix=/usr/local | ||
693 | ac_clean_files= | ||
694 | ac_config_libobj_dir=. | ||
695 | LIBOBJS= | ||
696 | cross_compiling=no | ||
697 | subdirs= | ||
698 | MFLAGS= | ||
699 | MAKEFLAGS= | ||
700 | |||
701 | # Identity of this package. | ||
702 | PACKAGE_NAME='evas' | ||
703 | PACKAGE_TARNAME='evas' | ||
704 | PACKAGE_VERSION='1.1.0' | ||
705 | PACKAGE_STRING='evas 1.1.0' | ||
706 | PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net' | ||
707 | PACKAGE_URL='' | ||
708 | |||
709 | ac_unique_file="configure.ac" | ||
710 | # Factoring default headers for most tests. | ||
711 | ac_includes_default="\ | ||
712 | #include <stdio.h> | ||
713 | #ifdef HAVE_SYS_TYPES_H | ||
714 | # include <sys/types.h> | ||
715 | #endif | ||
716 | #ifdef HAVE_SYS_STAT_H | ||
717 | # include <sys/stat.h> | ||
718 | #endif | ||
719 | #ifdef STDC_HEADERS | ||
720 | # include <stdlib.h> | ||
721 | # include <stddef.h> | ||
722 | #else | ||
723 | # ifdef HAVE_STDLIB_H | ||
724 | # include <stdlib.h> | ||
725 | # endif | ||
726 | #endif | ||
727 | #ifdef HAVE_STRING_H | ||
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
729 | # include <memory.h> | ||
730 | # endif | ||
731 | # include <string.h> | ||
732 | #endif | ||
733 | #ifdef HAVE_STRINGS_H | ||
734 | # include <strings.h> | ||
735 | #endif | ||
736 | #ifdef HAVE_INTTYPES_H | ||
737 | # include <inttypes.h> | ||
738 | #endif | ||
739 | #ifdef HAVE_STDINT_H | ||
740 | # include <stdint.h> | ||
741 | #endif | ||
742 | #ifdef HAVE_UNISTD_H | ||
743 | # include <unistd.h> | ||
744 | #endif" | ||
745 | |||
746 | ac_subst_vars='am__EXEEXT_FALSE | ||
747 | am__EXEEXT_TRUE | ||
748 | LTLIBOBJS | ||
749 | LIBOBJS | ||
750 | requirement_evas | ||
751 | pthread_libs | ||
752 | pthread_cflags | ||
753 | altivec_cflags | ||
754 | EVAS_LIBS | ||
755 | EVAS_CFLAGS | ||
756 | EFL_ENABLE_COVERAGE_FALSE | ||
757 | EFL_ENABLE_COVERAGE_TRUE | ||
758 | EFL_COVERAGE_LIBS | ||
759 | EFL_COVERAGE_CFLAGS | ||
760 | have_lcov | ||
761 | EFL_ENABLE_TESTS_FALSE | ||
762 | EFL_ENABLE_TESTS_TRUE | ||
763 | CHECK_LIBS | ||
764 | CHECK_CFLAGS | ||
765 | BUILD_EXAMPLES_FALSE | ||
766 | BUILD_EXAMPLES_TRUE | ||
767 | edje_cc | ||
768 | EDJE_LIBS | ||
769 | EDJE_CFLAGS | ||
770 | ECORE_EVAS_LIBS | ||
771 | ECORE_EVAS_CFLAGS | ||
772 | INSTALL_EXAMPLES_FALSE | ||
773 | INSTALL_EXAMPLES_TRUE | ||
774 | VALGRIND_LIBS | ||
775 | VALGRIND_CFLAGS | ||
776 | METRIC_CACHE_FALSE | ||
777 | METRIC_CACHE_TRUE | ||
778 | WORD_CACHE_FALSE | ||
779 | WORD_CACHE_TRUE | ||
780 | EVAS_MAGIC_DEBUG_FALSE | ||
781 | EVAS_MAGIC_DEBUG_TRUE | ||
782 | EVAS_SSE3_CFLAGS | ||
783 | XEXT_LIBS | ||
784 | XEXT_CFLAGS | ||
785 | EVAS_STATIC_BUILD_GENERIC_FALSE | ||
786 | EVAS_STATIC_BUILD_GENERIC_TRUE | ||
787 | BUILD_LOADER_GENERIC_FALSE | ||
788 | BUILD_LOADER_GENERIC_TRUE | ||
789 | evas_image_loader_generic_libs | ||
790 | evas_image_loader_generic_cflags | ||
791 | EVAS_STATIC_BUILD_PSD_FALSE | ||
792 | EVAS_STATIC_BUILD_PSD_TRUE | ||
793 | BUILD_LOADER_PSD_FALSE | ||
794 | BUILD_LOADER_PSD_TRUE | ||
795 | evas_image_loader_psd_libs | ||
796 | evas_image_loader_psd_cflags | ||
797 | EVAS_STATIC_BUILD_ICO_FALSE | ||
798 | EVAS_STATIC_BUILD_ICO_TRUE | ||
799 | BUILD_LOADER_ICO_FALSE | ||
800 | BUILD_LOADER_ICO_TRUE | ||
801 | evas_image_loader_ico_libs | ||
802 | evas_image_loader_ico_cflags | ||
803 | EVAS_STATIC_BUILD_WBMP_FALSE | ||
804 | EVAS_STATIC_BUILD_WBMP_TRUE | ||
805 | BUILD_LOADER_WBMP_FALSE | ||
806 | BUILD_LOADER_WBMP_TRUE | ||
807 | evas_image_loader_wbmp_libs | ||
808 | evas_image_loader_wbmp_cflags | ||
809 | EVAS_STATIC_BUILD_TGA_FALSE | ||
810 | EVAS_STATIC_BUILD_TGA_TRUE | ||
811 | BUILD_LOADER_TGA_FALSE | ||
812 | BUILD_LOADER_TGA_TRUE | ||
813 | evas_image_loader_tga_libs | ||
814 | evas_image_loader_tga_cflags | ||
815 | EVAS_STATIC_BUILD_BMP_FALSE | ||
816 | EVAS_STATIC_BUILD_BMP_TRUE | ||
817 | BUILD_LOADER_BMP_FALSE | ||
818 | BUILD_LOADER_BMP_TRUE | ||
819 | evas_image_loader_bmp_libs | ||
820 | evas_image_loader_bmp_cflags | ||
821 | EVAS_STATIC_BUILD_XPM_FALSE | ||
822 | EVAS_STATIC_BUILD_XPM_TRUE | ||
823 | BUILD_LOADER_XPM_FALSE | ||
824 | BUILD_LOADER_XPM_TRUE | ||
825 | evas_image_loader_xpm_libs | ||
826 | evas_image_loader_xpm_cflags | ||
827 | EVAS_STATIC_BUILD_TIFF_FALSE | ||
828 | EVAS_STATIC_BUILD_TIFF_TRUE | ||
829 | BUILD_LOADER_TIFF_FALSE | ||
830 | BUILD_LOADER_TIFF_TRUE | ||
831 | evas_image_loader_tiff_libs | ||
832 | evas_image_loader_tiff_cflags | ||
833 | EVAS_STATIC_BUILD_SVG_FALSE | ||
834 | EVAS_STATIC_BUILD_SVG_TRUE | ||
835 | BUILD_LOADER_SVG_FALSE | ||
836 | BUILD_LOADER_SVG_TRUE | ||
837 | evas_image_loader_svg_libs | ||
838 | evas_image_loader_svg_cflags | ||
839 | SVG_LIBS | ||
840 | SVG_CFLAGS | ||
841 | EVAS_STATIC_BUILD_PNG_FALSE | ||
842 | EVAS_STATIC_BUILD_PNG_TRUE | ||
843 | BUILD_LOADER_PNG_FALSE | ||
844 | BUILD_LOADER_PNG_TRUE | ||
845 | evas_image_loader_png_libs | ||
846 | evas_image_loader_png_cflags | ||
847 | PNG_LIBS | ||
848 | PNG_CFLAGS | ||
849 | EVAS_STATIC_BUILD_PMAPS_FALSE | ||
850 | EVAS_STATIC_BUILD_PMAPS_TRUE | ||
851 | BUILD_LOADER_PMAPS_FALSE | ||
852 | BUILD_LOADER_PMAPS_TRUE | ||
853 | evas_image_loader_pmaps_libs | ||
854 | evas_image_loader_pmaps_cflags | ||
855 | BUILD_SAVER_JPEG_FALSE | ||
856 | BUILD_SAVER_JPEG_TRUE | ||
857 | EVAS_STATIC_BUILD_JPEG_FALSE | ||
858 | EVAS_STATIC_BUILD_JPEG_TRUE | ||
859 | BUILD_LOADER_JPEG_FALSE | ||
860 | BUILD_LOADER_JPEG_TRUE | ||
861 | evas_image_loader_jpeg_libs | ||
862 | evas_image_loader_jpeg_cflags | ||
863 | EVAS_STATIC_BUILD_GIF_FALSE | ||
864 | EVAS_STATIC_BUILD_GIF_TRUE | ||
865 | BUILD_LOADER_GIF_FALSE | ||
866 | BUILD_LOADER_GIF_TRUE | ||
867 | evas_image_loader_gif_libs | ||
868 | evas_image_loader_gif_cflags | ||
869 | EVAS_STATIC_BUILD_EET_FALSE | ||
870 | EVAS_STATIC_BUILD_EET_TRUE | ||
871 | BUILD_LOADER_EET_FALSE | ||
872 | BUILD_LOADER_EET_TRUE | ||
873 | evas_image_loader_eet_libs | ||
874 | evas_image_loader_eet_cflags | ||
875 | EET_LIBS | ||
876 | EET_CFLAGS | ||
877 | EVAS_STATIC_BUILD_EDB_FALSE | ||
878 | EVAS_STATIC_BUILD_EDB_TRUE | ||
879 | BUILD_LOADER_EDB_FALSE | ||
880 | BUILD_LOADER_EDB_TRUE | ||
881 | evas_image_loader_edb_libs | ||
882 | evas_image_loader_edb_cflags | ||
883 | EDB_LIBS | ||
884 | EDB_CFLAGS | ||
885 | EVAS_STATIC_BUILD_SOFTWARE_8_FALSE | ||
886 | EVAS_STATIC_BUILD_SOFTWARE_8_TRUE | ||
887 | BUILD_ENGINE_SOFTWARE_8_FALSE | ||
888 | BUILD_ENGINE_SOFTWARE_8_TRUE | ||
889 | EVAS_STATIC_BUILD_SOFTWARE_16_FALSE | ||
890 | EVAS_STATIC_BUILD_SOFTWARE_16_TRUE | ||
891 | BUILD_ENGINE_SOFTWARE_16_FALSE | ||
892 | BUILD_ENGINE_SOFTWARE_16_TRUE | ||
893 | EVAS_STATIC_BUILD_GL_COMMON_FALSE | ||
894 | EVAS_STATIC_BUILD_GL_COMMON_TRUE | ||
895 | BUILD_ENGINE_GL_COMMON_FALSE | ||
896 | BUILD_ENGINE_GL_COMMON_TRUE | ||
897 | evas_engine_gl_common_libs | ||
898 | have_evas_engine_gl_x11 | ||
899 | EVAS_STATIC_BUILD_GL_X11_FALSE | ||
900 | EVAS_STATIC_BUILD_GL_X11_TRUE | ||
901 | BUILD_ENGINE_GL_X11_FALSE | ||
902 | BUILD_ENGINE_GL_X11_TRUE | ||
903 | have_evas_engine_gl_xlib | ||
904 | EVAS_STATIC_BUILD_GL_XLIB_FALSE | ||
905 | EVAS_STATIC_BUILD_GL_XLIB_TRUE | ||
906 | BUILD_ENGINE_GL_XLIB_FALSE | ||
907 | BUILD_ENGINE_GL_XLIB_TRUE | ||
908 | evas_engine_gl_xlib_libs | ||
909 | evas_engine_gl_xlib_cflags | ||
910 | have_evas_engine_gl_xcb | ||
911 | EVAS_STATIC_BUILD_GL_XCB_FALSE | ||
912 | EVAS_STATIC_BUILD_GL_XCB_TRUE | ||
913 | BUILD_ENGINE_GL_XCB_FALSE | ||
914 | BUILD_ENGINE_GL_XCB_TRUE | ||
915 | evas_engine_gl_xcb_libs | ||
916 | evas_engine_gl_xcb_cflags | ||
917 | XCB_GL_LIBS | ||
918 | XCB_GL_CFLAGS | ||
919 | have_evas_engine_software_x11 | ||
920 | EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE | ||
921 | EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE | ||
922 | BUILD_ENGINE_SOFTWARE_X11_FALSE | ||
923 | BUILD_ENGINE_SOFTWARE_X11_TRUE | ||
924 | have_evas_engine_software_xlib | ||
925 | have_evas_engine_software_xcb | ||
926 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE | ||
927 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE | ||
928 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE | ||
929 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE | ||
930 | evas_engine_software_xlib_libs | ||
931 | evas_engine_software_xlib_cflags | ||
932 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE | ||
933 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE | ||
934 | BUILD_ENGINE_SOFTWARE_XCB_FALSE | ||
935 | BUILD_ENGINE_SOFTWARE_XCB_TRUE | ||
936 | evas_engine_software_xcb_libs | ||
937 | evas_engine_software_xcb_cflags | ||
938 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE | ||
939 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE | ||
940 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE | ||
941 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE | ||
942 | BUILD_ENGINE_SOFTWARE_16_SDL_FALSE | ||
943 | BUILD_ENGINE_SOFTWARE_16_SDL_TRUE | ||
944 | evas_engine_software_16_sdl_libs | ||
945 | evas_engine_software_16_sdl_cflags | ||
946 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE | ||
947 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE | ||
948 | BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE | ||
949 | BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE | ||
950 | evas_engine_software_16_wince_libs | ||
951 | evas_engine_software_16_wince_cflags | ||
952 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE | ||
953 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE | ||
954 | BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE | ||
955 | BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE | ||
956 | evas_engine_software_16_ddraw_libs | ||
957 | evas_engine_software_16_ddraw_cflags | ||
958 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE | ||
959 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE | ||
960 | BUILD_ENGINE_SOFTWARE_16_X11_FALSE | ||
961 | BUILD_ENGINE_SOFTWARE_16_X11_TRUE | ||
962 | evas_engine_software_16_x11_libs | ||
963 | evas_engine_software_16_x11_cflags | ||
964 | X_EXTRA_LIBS | ||
965 | X_LIBS | ||
966 | X_PRE_LIBS | ||
967 | X_CFLAGS | ||
968 | XMKMF | ||
969 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE | ||
970 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE | ||
971 | BUILD_ENGINE_SOFTWARE_8_X11_FALSE | ||
972 | BUILD_ENGINE_SOFTWARE_8_X11_TRUE | ||
973 | evas_engine_software_8_x11_libs | ||
974 | evas_engine_software_8_x11_cflags | ||
975 | XCB_LIBS | ||
976 | XCB_CFLAGS | ||
977 | EVAS_STATIC_BUILD_DIRECTFB_FALSE | ||
978 | EVAS_STATIC_BUILD_DIRECTFB_TRUE | ||
979 | BUILD_ENGINE_DIRECTFB_FALSE | ||
980 | BUILD_ENGINE_DIRECTFB_TRUE | ||
981 | evas_engine_directfb_libs | ||
982 | evas_engine_directfb_cflags | ||
983 | DIRECTFB_LIBS | ||
984 | DIRECTFB_CFLAGS | ||
985 | EVAS_STATIC_BUILD_FB_FALSE | ||
986 | EVAS_STATIC_BUILD_FB_TRUE | ||
987 | BUILD_ENGINE_FB_FALSE | ||
988 | BUILD_ENGINE_FB_TRUE | ||
989 | evas_engine_fb_libs | ||
990 | evas_engine_fb_cflags | ||
991 | EVAS_STATIC_BUILD_GL_COCOA_FALSE | ||
992 | EVAS_STATIC_BUILD_GL_COCOA_TRUE | ||
993 | BUILD_ENGINE_GL_COCOA_FALSE | ||
994 | BUILD_ENGINE_GL_COCOA_TRUE | ||
995 | evas_engine_gl_cocoa_libs | ||
996 | evas_engine_gl_cocoa_cflags | ||
997 | GL_EET_LIBS | ||
998 | GL_EET_CFLAGS | ||
999 | EVAS_STATIC_BUILD_GL_SDL_FALSE | ||
1000 | EVAS_STATIC_BUILD_GL_SDL_TRUE | ||
1001 | BUILD_ENGINE_GL_SDL_FALSE | ||
1002 | BUILD_ENGINE_GL_SDL_TRUE | ||
1003 | evas_engine_gl_sdl_libs | ||
1004 | evas_engine_gl_sdl_cflags | ||
1005 | EVAS_STATIC_BUILD_PSL1GHT_FALSE | ||
1006 | EVAS_STATIC_BUILD_PSL1GHT_TRUE | ||
1007 | BUILD_ENGINE_PSL1GHT_FALSE | ||
1008 | BUILD_ENGINE_PSL1GHT_TRUE | ||
1009 | evas_engine_psl1ght_libs | ||
1010 | evas_engine_psl1ght_cflags | ||
1011 | EVAS_STATIC_BUILD_SOFTWARE_SDL_FALSE | ||
1012 | EVAS_STATIC_BUILD_SOFTWARE_SDL_TRUE | ||
1013 | BUILD_ENGINE_SOFTWARE_SDL_FALSE | ||
1014 | BUILD_ENGINE_SOFTWARE_SDL_TRUE | ||
1015 | evas_engine_software_sdl_libs | ||
1016 | evas_engine_software_sdl_cflags | ||
1017 | SDL_LIBS | ||
1018 | SDL_CFLAGS | ||
1019 | EVAS_STATIC_BUILD_DIRECT3D_FALSE | ||
1020 | EVAS_STATIC_BUILD_DIRECT3D_TRUE | ||
1021 | BUILD_ENGINE_DIRECT3D_FALSE | ||
1022 | BUILD_ENGINE_DIRECT3D_TRUE | ||
1023 | evas_engine_direct3d_libs | ||
1024 | evas_engine_direct3d_cflags | ||
1025 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE | ||
1026 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE | ||
1027 | BUILD_ENGINE_SOFTWARE_DDRAW_FALSE | ||
1028 | BUILD_ENGINE_SOFTWARE_DDRAW_TRUE | ||
1029 | evas_engine_software_ddraw_libs | ||
1030 | evas_engine_software_ddraw_cflags | ||
1031 | EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE | ||
1032 | EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE | ||
1033 | BUILD_ENGINE_SOFTWARE_GDI_FALSE | ||
1034 | BUILD_ENGINE_SOFTWARE_GDI_TRUE | ||
1035 | evas_engine_software_gdi_libs | ||
1036 | evas_engine_software_gdi_cflags | ||
1037 | EVAS_STATIC_BUILD_BUFFER_FALSE | ||
1038 | EVAS_STATIC_BUILD_BUFFER_TRUE | ||
1039 | BUILD_ENGINE_BUFFER_FALSE | ||
1040 | BUILD_ENGINE_BUFFER_TRUE | ||
1041 | evas_engine_buffer_libs | ||
1042 | evas_engine_buffer_cflags | ||
1043 | EVAS_CSERVE_FALSE | ||
1044 | EVAS_CSERVE_TRUE | ||
1045 | SHM_OPEN_LINK | ||
1046 | dlopen_libs | ||
1047 | EFL_FNMATCH_LIBS | ||
1048 | ALLOCA | ||
1049 | lt_enable_auto_import | ||
1050 | WIN32_CFLAGS | ||
1051 | WIN32_CPPFLAGS | ||
1052 | PIXMAN_LIBS | ||
1053 | PIXMAN_CFLAGS | ||
1054 | HARFBUZZ_LIBS | ||
1055 | HARFBUZZ_CFLAGS | ||
1056 | FRIBIDI_LIBS | ||
1057 | FRIBIDI_CFLAGS | ||
1058 | LINEBREAK_LIBS | ||
1059 | LINEBREAK_CFLAGS | ||
1060 | EVAS_USE_LINEBREAK_FALSE | ||
1061 | EVAS_USE_LINEBREAK_TRUE | ||
1062 | FONTCONFIG_LIBS | ||
1063 | FONTCONFIG_CFLAGS | ||
1064 | FREETYPE_LIBS | ||
1065 | FREETYPE_CFLAGS | ||
1066 | EINA_LIBS | ||
1067 | EINA_CFLAGS | ||
1068 | EVIL_LIBS | ||
1069 | EVIL_CFLAGS | ||
1070 | EFL_BUILD_DOC_FALSE | ||
1071 | EFL_BUILD_DOC_TRUE | ||
1072 | efl_doxygen | ||
1073 | efl_have_doxygen | ||
1074 | pkgconfig_requires_private | ||
1075 | PKG_CONFIG_LIBDIR | ||
1076 | PKG_CONFIG_PATH | ||
1077 | PKG_CONFIG | ||
1078 | CXXCPP | ||
1079 | am__fastdepCXX_FALSE | ||
1080 | am__fastdepCXX_TRUE | ||
1081 | CXXDEPMODE | ||
1082 | ac_ct_CXX | ||
1083 | CXXFLAGS | ||
1084 | CXX | ||
1085 | am__fastdepOBJC_FALSE | ||
1086 | am__fastdepOBJC_TRUE | ||
1087 | OBJCDEPMODE | ||
1088 | ac_ct_OBJC | ||
1089 | OBJCFLAGS | ||
1090 | OBJC | ||
1091 | MODULE_ARCH | ||
1092 | VMAJ | ||
1093 | release_info | ||
1094 | version_info | ||
1095 | OTOOL64 | ||
1096 | OTOOL | ||
1097 | LIPO | ||
1098 | NMEDIT | ||
1099 | DSYMUTIL | ||
1100 | lt_ECHO | ||
1101 | RANLIB | ||
1102 | AR | ||
1103 | LN_S | ||
1104 | NM | ||
1105 | ac_ct_DUMPBIN | ||
1106 | DUMPBIN | ||
1107 | LD | ||
1108 | FGREP | ||
1109 | SED | ||
1110 | LIBTOOL | ||
1111 | OBJDUMP | ||
1112 | DLLTOOL | ||
1113 | AS | ||
1114 | host_os | ||
1115 | host_vendor | ||
1116 | host_cpu | ||
1117 | host | ||
1118 | build_os | ||
1119 | build_vendor | ||
1120 | build_cpu | ||
1121 | build | ||
1122 | EGREP | ||
1123 | GREP | ||
1124 | CPP | ||
1125 | am__fastdepCC_FALSE | ||
1126 | am__fastdepCC_TRUE | ||
1127 | CCDEPMODE | ||
1128 | AMDEPBACKSLASH | ||
1129 | AMDEP_FALSE | ||
1130 | AMDEP_TRUE | ||
1131 | am__quote | ||
1132 | am__include | ||
1133 | DEPDIR | ||
1134 | OBJEXT | ||
1135 | EXEEXT | ||
1136 | ac_ct_CC | ||
1137 | CPPFLAGS | ||
1138 | LDFLAGS | ||
1139 | CFLAGS | ||
1140 | CC | ||
1141 | AM_BACKSLASH | ||
1142 | AM_DEFAULT_VERBOSITY | ||
1143 | am__untar | ||
1144 | am__tar | ||
1145 | AMTAR | ||
1146 | am__leading_dot | ||
1147 | SET_MAKE | ||
1148 | AWK | ||
1149 | mkdir_p | ||
1150 | MKDIR_P | ||
1151 | INSTALL_STRIP_PROGRAM | ||
1152 | STRIP | ||
1153 | install_sh | ||
1154 | MAKEINFO | ||
1155 | AUTOHEADER | ||
1156 | AUTOMAKE | ||
1157 | AUTOCONF | ||
1158 | ACLOCAL | ||
1159 | VERSION | ||
1160 | PACKAGE | ||
1161 | CYGPATH_W | ||
1162 | am__isrc | ||
1163 | INSTALL_DATA | ||
1164 | INSTALL_SCRIPT | ||
1165 | INSTALL_PROGRAM | ||
1166 | target_alias | ||
1167 | host_alias | ||
1168 | build_alias | ||
1169 | LIBS | ||
1170 | ECHO_T | ||
1171 | ECHO_N | ||
1172 | ECHO_C | ||
1173 | DEFS | ||
1174 | mandir | ||
1175 | localedir | ||
1176 | libdir | ||
1177 | psdir | ||
1178 | pdfdir | ||
1179 | dvidir | ||
1180 | htmldir | ||
1181 | infodir | ||
1182 | docdir | ||
1183 | oldincludedir | ||
1184 | includedir | ||
1185 | localstatedir | ||
1186 | sharedstatedir | ||
1187 | sysconfdir | ||
1188 | datadir | ||
1189 | datarootdir | ||
1190 | libexecdir | ||
1191 | sbindir | ||
1192 | bindir | ||
1193 | program_transform_name | ||
1194 | prefix | ||
1195 | exec_prefix | ||
1196 | PACKAGE_URL | ||
1197 | PACKAGE_BUGREPORT | ||
1198 | PACKAGE_STRING | ||
1199 | PACKAGE_VERSION | ||
1200 | PACKAGE_TARNAME | ||
1201 | PACKAGE_NAME | ||
1202 | PATH_SEPARATOR | ||
1203 | SHELL' | ||
1204 | ac_subst_files='' | ||
1205 | ac_user_opts=' | ||
1206 | enable_option_checking | ||
1207 | enable_silent_rules | ||
1208 | enable_dependency_tracking | ||
1209 | enable_shared | ||
1210 | enable_static | ||
1211 | with_pic | ||
1212 | enable_fast_install | ||
1213 | with_gnu_ld | ||
1214 | enable_libtool_lock | ||
1215 | enable_strict | ||
1216 | enable_simple_x11 | ||
1217 | enable_doc | ||
1218 | with_doxygen | ||
1219 | enable_fontconfig | ||
1220 | enable_liblinebreak | ||
1221 | enable_fribidi | ||
1222 | enable_harfbuzz | ||
1223 | enable_pixman | ||
1224 | enable_evas_cserve | ||
1225 | enable_gl_flavor_gles | ||
1226 | enable_gles_variety_sgx | ||
1227 | enable_gles_variety_s3c6410 | ||
1228 | enable_buffer | ||
1229 | enable_software_gdi | ||
1230 | enable_software_ddraw | ||
1231 | enable_direct3d | ||
1232 | enable_software_sdl | ||
1233 | enable_psl1ght | ||
1234 | enable_gl_sdl | ||
1235 | enable_gl_cocoa | ||
1236 | enable_fb | ||
1237 | enable_directfb | ||
1238 | enable_software_8_x11 | ||
1239 | enable_software_16_x11 | ||
1240 | with_x | ||
1241 | enable_software_16_ddraw | ||
1242 | enable_software_16_wince | ||
1243 | enable_software_16_sdl | ||
1244 | enable_sdl_primitive | ||
1245 | enable_static_software_generic | ||
1246 | enable_software_xcb | ||
1247 | enable_software_xlib | ||
1248 | enable_gl_xcb | ||
1249 | enable_gl_xlib | ||
1250 | enable_static_software_16 | ||
1251 | enable_static_software_8 | ||
1252 | enable_image_loader_edb | ||
1253 | enable_image_loader_eet | ||
1254 | enable_font_loader_eet | ||
1255 | enable_image_loader_gif | ||
1256 | enable_image_loader_jpeg | ||
1257 | enable_image_loader_pmaps | ||
1258 | enable_image_loader_png | ||
1259 | enable_image_loader_svg | ||
1260 | enable_image_loader_tiff | ||
1261 | enable_image_loader_xpm | ||
1262 | enable_image_loader_bmp | ||
1263 | enable_image_loader_tga | ||
1264 | enable_image_loader_wbmp | ||
1265 | enable_image_loader_ico | ||
1266 | enable_image_loader_psd | ||
1267 | enable_image_loader_generic | ||
1268 | enable_pthreads | ||
1269 | enable_pipe_render | ||
1270 | enable_async_render | ||
1271 | enable_async_events | ||
1272 | enable_async_preload | ||
1273 | enable_cpu_mmx | ||
1274 | enable_cpu_sse | ||
1275 | enable_cpu_sse3 | ||
1276 | enable_cpu_altivec | ||
1277 | enable_cpu_neon | ||
1278 | enable_cpu_c | ||
1279 | enable_evas_magic_debug | ||
1280 | enable_word_cache | ||
1281 | enable_metric_cache | ||
1282 | enable_scale_sample | ||
1283 | enable_scale_smooth | ||
1284 | enable_convert_yuv | ||
1285 | enable_small_dither_mask | ||
1286 | enable_line_dither_mask | ||
1287 | enable_no_dither_mask | ||
1288 | enable_convert_8_rgb_332 | ||
1289 | enable_convert_8_rgb_666 | ||
1290 | enable_convert_8_rgb_232 | ||
1291 | enable_convert_8_rgb_222 | ||
1292 | enable_convert_8_rgb_221 | ||
1293 | enable_convert_8_rgb_121 | ||
1294 | enable_convert_8_rgb_111 | ||
1295 | enable_convert_16_rgb_565 | ||
1296 | enable_convert_16_bgr_565 | ||
1297 | enable_convert_16_rgb_555 | ||
1298 | enable_convert_16_rgb_444 | ||
1299 | enable_convert_16_rgb_ipq | ||
1300 | enable_convert_16_rgb_rot_0 | ||
1301 | enable_convert_16_rgb_rot_180 | ||
1302 | enable_convert_16_rgb_rot_270 | ||
1303 | enable_convert_16_rgb_rot_90 | ||
1304 | enable_convert_24_rgb_888 | ||
1305 | enable_convert_24_bgr_888 | ||
1306 | enable_convert_32_rgb_8888 | ||
1307 | enable_convert_32_rgbx_8888 | ||
1308 | enable_convert_32_bgr_8888 | ||
1309 | enable_convert_32_bgrx_8888 | ||
1310 | enable_convert_24_rgb_ezx | ||
1311 | enable_convert_32_rgb_ezx | ||
1312 | enable_convert_32_rgb_rot_0 | ||
1313 | enable_convert_32_rgb_rot_180 | ||
1314 | enable_convert_32_rgb_rot_270 | ||
1315 | enable_convert_32_rgb_rot_90 | ||
1316 | enable_convert_8_gry_1 | ||
1317 | enable_convert_8_gry_16 | ||
1318 | enable_convert_8_grayscale_64 | ||
1319 | enable_valgrind | ||
1320 | enable_install_examples | ||
1321 | enable_build_examples | ||
1322 | enable_tests | ||
1323 | enable_coverage | ||
1324 | ' | ||
1325 | ac_precious_vars='build_alias | ||
1326 | host_alias | ||
1327 | target_alias | ||
1328 | CC | ||
1329 | CFLAGS | ||
1330 | LDFLAGS | ||
1331 | LIBS | ||
1332 | CPPFLAGS | ||
1333 | CPP | ||
1334 | OBJC | ||
1335 | OBJCFLAGS | ||
1336 | CXX | ||
1337 | CXXFLAGS | ||
1338 | CCC | ||
1339 | CXXCPP | ||
1340 | PKG_CONFIG | ||
1341 | PKG_CONFIG_PATH | ||
1342 | PKG_CONFIG_LIBDIR | ||
1343 | EVIL_CFLAGS | ||
1344 | EVIL_LIBS | ||
1345 | EINA_CFLAGS | ||
1346 | EINA_LIBS | ||
1347 | FREETYPE_CFLAGS | ||
1348 | FREETYPE_LIBS | ||
1349 | FONTCONFIG_CFLAGS | ||
1350 | FONTCONFIG_LIBS | ||
1351 | FRIBIDI_CFLAGS | ||
1352 | FRIBIDI_LIBS | ||
1353 | HARFBUZZ_CFLAGS | ||
1354 | HARFBUZZ_LIBS | ||
1355 | PIXMAN_CFLAGS | ||
1356 | PIXMAN_LIBS | ||
1357 | SDL_CFLAGS | ||
1358 | SDL_LIBS | ||
1359 | GL_EET_CFLAGS | ||
1360 | GL_EET_LIBS | ||
1361 | DIRECTFB_CFLAGS | ||
1362 | DIRECTFB_LIBS | ||
1363 | XCB_CFLAGS | ||
1364 | XCB_LIBS | ||
1365 | XMKMF | ||
1366 | XCB_GL_CFLAGS | ||
1367 | XCB_GL_LIBS | ||
1368 | EDB_CFLAGS | ||
1369 | EDB_LIBS | ||
1370 | EET_CFLAGS | ||
1371 | EET_LIBS | ||
1372 | PNG_CFLAGS | ||
1373 | PNG_LIBS | ||
1374 | SVG_CFLAGS | ||
1375 | SVG_LIBS | ||
1376 | XEXT_CFLAGS | ||
1377 | XEXT_LIBS | ||
1378 | VALGRIND_CFLAGS | ||
1379 | VALGRIND_LIBS | ||
1380 | ECORE_EVAS_CFLAGS | ||
1381 | ECORE_EVAS_LIBS | ||
1382 | EDJE_CFLAGS | ||
1383 | EDJE_LIBS | ||
1384 | CHECK_CFLAGS | ||
1385 | CHECK_LIBS' | ||
1386 | |||
1387 | |||
1388 | # Initialize some variables set by options. | ||
1389 | ac_init_help= | ||
1390 | ac_init_version=false | ||
1391 | ac_unrecognized_opts= | ||
1392 | ac_unrecognized_sep= | ||
1393 | # The variables have the same names as the options, with | ||
1394 | # dashes changed to underlines. | ||
1395 | cache_file=/dev/null | ||
1396 | exec_prefix=NONE | ||
1397 | no_create= | ||
1398 | no_recursion= | ||
1399 | prefix=NONE | ||
1400 | program_prefix=NONE | ||
1401 | program_suffix=NONE | ||
1402 | program_transform_name=s,x,x, | ||
1403 | silent= | ||
1404 | site= | ||
1405 | srcdir= | ||
1406 | verbose= | ||
1407 | x_includes=NONE | ||
1408 | x_libraries=NONE | ||
1409 | |||
1410 | # Installation directory options. | ||
1411 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
1412 | # and all the variables that are supposed to be based on exec_prefix | ||
1413 | # by default will actually change. | ||
1414 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
1415 | # (The list follows the same order as the GNU Coding Standards.) | ||
1416 | bindir='${exec_prefix}/bin' | ||
1417 | sbindir='${exec_prefix}/sbin' | ||
1418 | libexecdir='${exec_prefix}/libexec' | ||
1419 | datarootdir='${prefix}/share' | ||
1420 | datadir='${datarootdir}' | ||
1421 | sysconfdir='${prefix}/etc' | ||
1422 | sharedstatedir='${prefix}/com' | ||
1423 | localstatedir='${prefix}/var' | ||
1424 | includedir='${prefix}/include' | ||
1425 | oldincludedir='/usr/include' | ||
1426 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1427 | infodir='${datarootdir}/info' | ||
1428 | htmldir='${docdir}' | ||
1429 | dvidir='${docdir}' | ||
1430 | pdfdir='${docdir}' | ||
1431 | psdir='${docdir}' | ||
1432 | libdir='${exec_prefix}/lib' | ||
1433 | localedir='${datarootdir}/locale' | ||
1434 | mandir='${datarootdir}/man' | ||
1435 | |||
1436 | ac_prev= | ||
1437 | ac_dashdash= | ||
1438 | for ac_option | ||
1439 | do | ||
1440 | # If the previous option needs an argument, assign it. | ||
1441 | if test -n "$ac_prev"; then | ||
1442 | eval $ac_prev=\$ac_option | ||
1443 | ac_prev= | ||
1444 | continue | ||
1445 | fi | ||
1446 | |||
1447 | case $ac_option in | ||
1448 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1449 | *=) ac_optarg= ;; | ||
1450 | *) ac_optarg=yes ;; | ||
1451 | esac | ||
1452 | |||
1453 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1454 | |||
1455 | case $ac_dashdash$ac_option in | ||
1456 | --) | ||
1457 | ac_dashdash=yes ;; | ||
1458 | |||
1459 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1460 | ac_prev=bindir ;; | ||
1461 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1462 | bindir=$ac_optarg ;; | ||
1463 | |||
1464 | -build | --build | --buil | --bui | --bu) | ||
1465 | ac_prev=build_alias ;; | ||
1466 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1467 | build_alias=$ac_optarg ;; | ||
1468 | |||
1469 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1470 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1471 | ac_prev=cache_file ;; | ||
1472 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1473 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1474 | cache_file=$ac_optarg ;; | ||
1475 | |||
1476 | --config-cache | -C) | ||
1477 | cache_file=config.cache ;; | ||
1478 | |||
1479 | -datadir | --datadir | --datadi | --datad) | ||
1480 | ac_prev=datadir ;; | ||
1481 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1482 | datadir=$ac_optarg ;; | ||
1483 | |||
1484 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1485 | | --dataroo | --dataro | --datar) | ||
1486 | ac_prev=datarootdir ;; | ||
1487 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1488 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1489 | datarootdir=$ac_optarg ;; | ||
1490 | |||
1491 | -disable-* | --disable-*) | ||
1492 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1493 | # Reject names that are not valid shell variable names. | ||
1494 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1495 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1496 | ac_useropt_orig=$ac_useropt | ||
1497 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1498 | case $ac_user_opts in | ||
1499 | *" | ||
1500 | "enable_$ac_useropt" | ||
1501 | "*) ;; | ||
1502 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1503 | ac_unrecognized_sep=', ';; | ||
1504 | esac | ||
1505 | eval enable_$ac_useropt=no ;; | ||
1506 | |||
1507 | -docdir | --docdir | --docdi | --doc | --do) | ||
1508 | ac_prev=docdir ;; | ||
1509 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1510 | docdir=$ac_optarg ;; | ||
1511 | |||
1512 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1513 | ac_prev=dvidir ;; | ||
1514 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1515 | dvidir=$ac_optarg ;; | ||
1516 | |||
1517 | -enable-* | --enable-*) | ||
1518 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1519 | # Reject names that are not valid shell variable names. | ||
1520 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1521 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1522 | ac_useropt_orig=$ac_useropt | ||
1523 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1524 | case $ac_user_opts in | ||
1525 | *" | ||
1526 | "enable_$ac_useropt" | ||
1527 | "*) ;; | ||
1528 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1529 | ac_unrecognized_sep=', ';; | ||
1530 | esac | ||
1531 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1532 | |||
1533 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1534 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1535 | | --exec | --exe | --ex) | ||
1536 | ac_prev=exec_prefix ;; | ||
1537 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1538 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1539 | | --exec=* | --exe=* | --ex=*) | ||
1540 | exec_prefix=$ac_optarg ;; | ||
1541 | |||
1542 | -gas | --gas | --ga | --g) | ||
1543 | # Obsolete; use --with-gas. | ||
1544 | with_gas=yes ;; | ||
1545 | |||
1546 | -help | --help | --hel | --he | -h) | ||
1547 | ac_init_help=long ;; | ||
1548 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1549 | ac_init_help=recursive ;; | ||
1550 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1551 | ac_init_help=short ;; | ||
1552 | |||
1553 | -host | --host | --hos | --ho) | ||
1554 | ac_prev=host_alias ;; | ||
1555 | -host=* | --host=* | --hos=* | --ho=*) | ||
1556 | host_alias=$ac_optarg ;; | ||
1557 | |||
1558 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1559 | ac_prev=htmldir ;; | ||
1560 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1561 | | --ht=*) | ||
1562 | htmldir=$ac_optarg ;; | ||
1563 | |||
1564 | -includedir | --includedir | --includedi | --included | --include \ | ||
1565 | | --includ | --inclu | --incl | --inc) | ||
1566 | ac_prev=includedir ;; | ||
1567 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1568 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1569 | includedir=$ac_optarg ;; | ||
1570 | |||
1571 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1572 | ac_prev=infodir ;; | ||
1573 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1574 | infodir=$ac_optarg ;; | ||
1575 | |||
1576 | -libdir | --libdir | --libdi | --libd) | ||
1577 | ac_prev=libdir ;; | ||
1578 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1579 | libdir=$ac_optarg ;; | ||
1580 | |||
1581 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1582 | | --libexe | --libex | --libe) | ||
1583 | ac_prev=libexecdir ;; | ||
1584 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1585 | | --libexe=* | --libex=* | --libe=*) | ||
1586 | libexecdir=$ac_optarg ;; | ||
1587 | |||
1588 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1589 | ac_prev=localedir ;; | ||
1590 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1591 | localedir=$ac_optarg ;; | ||
1592 | |||
1593 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1594 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1595 | ac_prev=localstatedir ;; | ||
1596 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1597 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1598 | localstatedir=$ac_optarg ;; | ||
1599 | |||
1600 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1601 | ac_prev=mandir ;; | ||
1602 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1603 | mandir=$ac_optarg ;; | ||
1604 | |||
1605 | -nfp | --nfp | --nf) | ||
1606 | # Obsolete; use --without-fp. | ||
1607 | with_fp=no ;; | ||
1608 | |||
1609 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1610 | | --no-cr | --no-c | -n) | ||
1611 | no_create=yes ;; | ||
1612 | |||
1613 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1614 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1615 | no_recursion=yes ;; | ||
1616 | |||
1617 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1618 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1619 | | --oldin | --oldi | --old | --ol | --o) | ||
1620 | ac_prev=oldincludedir ;; | ||
1621 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1622 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1623 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1624 | oldincludedir=$ac_optarg ;; | ||
1625 | |||
1626 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1627 | ac_prev=prefix ;; | ||
1628 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1629 | prefix=$ac_optarg ;; | ||
1630 | |||
1631 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1632 | | --program-pre | --program-pr | --program-p) | ||
1633 | ac_prev=program_prefix ;; | ||
1634 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1635 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1636 | program_prefix=$ac_optarg ;; | ||
1637 | |||
1638 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1639 | | --program-suf | --program-su | --program-s) | ||
1640 | ac_prev=program_suffix ;; | ||
1641 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1642 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1643 | program_suffix=$ac_optarg ;; | ||
1644 | |||
1645 | -program-transform-name | --program-transform-name \ | ||
1646 | | --program-transform-nam | --program-transform-na \ | ||
1647 | | --program-transform-n | --program-transform- \ | ||
1648 | | --program-transform | --program-transfor \ | ||
1649 | | --program-transfo | --program-transf \ | ||
1650 | | --program-trans | --program-tran \ | ||
1651 | | --progr-tra | --program-tr | --program-t) | ||
1652 | ac_prev=program_transform_name ;; | ||
1653 | -program-transform-name=* | --program-transform-name=* \ | ||
1654 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1655 | | --program-transform-n=* | --program-transform-=* \ | ||
1656 | | --program-transform=* | --program-transfor=* \ | ||
1657 | | --program-transfo=* | --program-transf=* \ | ||
1658 | | --program-trans=* | --program-tran=* \ | ||
1659 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1660 | program_transform_name=$ac_optarg ;; | ||
1661 | |||
1662 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1663 | ac_prev=pdfdir ;; | ||
1664 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1665 | pdfdir=$ac_optarg ;; | ||
1666 | |||
1667 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1668 | ac_prev=psdir ;; | ||
1669 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1670 | psdir=$ac_optarg ;; | ||
1671 | |||
1672 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1673 | | -silent | --silent | --silen | --sile | --sil) | ||
1674 | silent=yes ;; | ||
1675 | |||
1676 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1677 | ac_prev=sbindir ;; | ||
1678 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1679 | | --sbi=* | --sb=*) | ||
1680 | sbindir=$ac_optarg ;; | ||
1681 | |||
1682 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1683 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1684 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1685 | | --sha | --sh) | ||
1686 | ac_prev=sharedstatedir ;; | ||
1687 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1688 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1689 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1690 | | --sha=* | --sh=*) | ||
1691 | sharedstatedir=$ac_optarg ;; | ||
1692 | |||
1693 | -site | --site | --sit) | ||
1694 | ac_prev=site ;; | ||
1695 | -site=* | --site=* | --sit=*) | ||
1696 | site=$ac_optarg ;; | ||
1697 | |||
1698 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1699 | ac_prev=srcdir ;; | ||
1700 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1701 | srcdir=$ac_optarg ;; | ||
1702 | |||
1703 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1704 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1705 | ac_prev=sysconfdir ;; | ||
1706 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1707 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1708 | sysconfdir=$ac_optarg ;; | ||
1709 | |||
1710 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1711 | ac_prev=target_alias ;; | ||
1712 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1713 | target_alias=$ac_optarg ;; | ||
1714 | |||
1715 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1716 | verbose=yes ;; | ||
1717 | |||
1718 | -version | --version | --versio | --versi | --vers | -V) | ||
1719 | ac_init_version=: ;; | ||
1720 | |||
1721 | -with-* | --with-*) | ||
1722 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1723 | # Reject names that are not valid shell variable names. | ||
1724 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1725 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1726 | ac_useropt_orig=$ac_useropt | ||
1727 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1728 | case $ac_user_opts in | ||
1729 | *" | ||
1730 | "with_$ac_useropt" | ||
1731 | "*) ;; | ||
1732 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1733 | ac_unrecognized_sep=', ';; | ||
1734 | esac | ||
1735 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1736 | |||
1737 | -without-* | --without-*) | ||
1738 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1739 | # Reject names that are not valid shell variable names. | ||
1740 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1741 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1742 | ac_useropt_orig=$ac_useropt | ||
1743 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1744 | case $ac_user_opts in | ||
1745 | *" | ||
1746 | "with_$ac_useropt" | ||
1747 | "*) ;; | ||
1748 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1749 | ac_unrecognized_sep=', ';; | ||
1750 | esac | ||
1751 | eval with_$ac_useropt=no ;; | ||
1752 | |||
1753 | --x) | ||
1754 | # Obsolete; use --with-x. | ||
1755 | with_x=yes ;; | ||
1756 | |||
1757 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1758 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1759 | ac_prev=x_includes ;; | ||
1760 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1761 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1762 | x_includes=$ac_optarg ;; | ||
1763 | |||
1764 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1765 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1766 | ac_prev=x_libraries ;; | ||
1767 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1768 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1769 | x_libraries=$ac_optarg ;; | ||
1770 | |||
1771 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1772 | Try \`$0 --help' for more information" | ||
1773 | ;; | ||
1774 | |||
1775 | *=*) | ||
1776 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1777 | # Reject names that are not valid shell variable names. | ||
1778 | case $ac_envvar in #( | ||
1779 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1780 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1781 | esac | ||
1782 | eval $ac_envvar=\$ac_optarg | ||
1783 | export $ac_envvar ;; | ||
1784 | |||
1785 | *) | ||
1786 | # FIXME: should be removed in autoconf 3.0. | ||
1787 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1788 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1789 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1790 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1791 | ;; | ||
1792 | |||
1793 | esac | ||
1794 | done | ||
1795 | |||
1796 | if test -n "$ac_prev"; then | ||
1797 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1798 | as_fn_error $? "missing argument to $ac_option" | ||
1799 | fi | ||
1800 | |||
1801 | if test -n "$ac_unrecognized_opts"; then | ||
1802 | case $enable_option_checking in | ||
1803 | no) ;; | ||
1804 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1805 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1806 | esac | ||
1807 | fi | ||
1808 | |||
1809 | # Check all directory arguments for consistency. | ||
1810 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1811 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1812 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1813 | libdir localedir mandir | ||
1814 | do | ||
1815 | eval ac_val=\$$ac_var | ||
1816 | # Remove trailing slashes. | ||
1817 | case $ac_val in | ||
1818 | */ ) | ||
1819 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1820 | eval $ac_var=\$ac_val;; | ||
1821 | esac | ||
1822 | # Be sure to have absolute directory names. | ||
1823 | case $ac_val in | ||
1824 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1825 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1826 | esac | ||
1827 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1828 | done | ||
1829 | |||
1830 | # There might be people who depend on the old broken behavior: `$host' | ||
1831 | # used to hold the argument of --host etc. | ||
1832 | # FIXME: To remove some day. | ||
1833 | build=$build_alias | ||
1834 | host=$host_alias | ||
1835 | target=$target_alias | ||
1836 | |||
1837 | # FIXME: To remove some day. | ||
1838 | if test "x$host_alias" != x; then | ||
1839 | if test "x$build_alias" = x; then | ||
1840 | cross_compiling=maybe | ||
1841 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1842 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1843 | elif test "x$build_alias" != "x$host_alias"; then | ||
1844 | cross_compiling=yes | ||
1845 | fi | ||
1846 | fi | ||
1847 | |||
1848 | ac_tool_prefix= | ||
1849 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1850 | |||
1851 | test "$silent" = yes && exec 6>/dev/null | ||
1852 | |||
1853 | |||
1854 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1855 | ac_ls_di=`ls -di .` && | ||
1856 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1857 | as_fn_error $? "working directory cannot be determined" | ||
1858 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1859 | as_fn_error $? "pwd does not report name of working directory" | ||
1860 | |||
1861 | |||
1862 | # Find the source files, if location was not specified. | ||
1863 | if test -z "$srcdir"; then | ||
1864 | ac_srcdir_defaulted=yes | ||
1865 | # Try the directory containing this script, then the parent directory. | ||
1866 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1867 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1868 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1869 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1870 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1871 | $as_echo X"$as_myself" | | ||
1872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1873 | s//\1/ | ||
1874 | q | ||
1875 | } | ||
1876 | /^X\(\/\/\)[^/].*/{ | ||
1877 | s//\1/ | ||
1878 | q | ||
1879 | } | ||
1880 | /^X\(\/\/\)$/{ | ||
1881 | s//\1/ | ||
1882 | q | ||
1883 | } | ||
1884 | /^X\(\/\).*/{ | ||
1885 | s//\1/ | ||
1886 | q | ||
1887 | } | ||
1888 | s/.*/./; q'` | ||
1889 | srcdir=$ac_confdir | ||
1890 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1891 | srcdir=.. | ||
1892 | fi | ||
1893 | else | ||
1894 | ac_srcdir_defaulted=no | ||
1895 | fi | ||
1896 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1897 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1898 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1899 | fi | ||
1900 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1901 | ac_abs_confdir=`( | ||
1902 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1903 | pwd)` | ||
1904 | # When building in place, set srcdir=. | ||
1905 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1906 | srcdir=. | ||
1907 | fi | ||
1908 | # Remove unnecessary trailing slashes from srcdir. | ||
1909 | # Double slashes in file names in object file debugging info | ||
1910 | # mess up M-x gdb in Emacs. | ||
1911 | case $srcdir in | ||
1912 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1913 | esac | ||
1914 | for ac_var in $ac_precious_vars; do | ||
1915 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1916 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1917 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1918 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1919 | done | ||
1920 | |||
1921 | # | ||
1922 | # Report the --help message. | ||
1923 | # | ||
1924 | if test "$ac_init_help" = "long"; then | ||
1925 | # Omit some internal or obsolete options to make the list less imposing. | ||
1926 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1927 | cat <<_ACEOF | ||
1928 | \`configure' configures evas 1.1.0 to adapt to many kinds of systems. | ||
1929 | |||
1930 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1931 | |||
1932 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1933 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1934 | |||
1935 | Defaults for the options are specified in brackets. | ||
1936 | |||
1937 | Configuration: | ||
1938 | -h, --help display this help and exit | ||
1939 | --help=short display options specific to this package | ||
1940 | --help=recursive display the short help of all the included packages | ||
1941 | -V, --version display version information and exit | ||
1942 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1943 | --cache-file=FILE cache test results in FILE [disabled] | ||
1944 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1945 | -n, --no-create do not create output files | ||
1946 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1947 | |||
1948 | Installation directories: | ||
1949 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1950 | [$ac_default_prefix] | ||
1951 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1952 | [PREFIX] | ||
1953 | |||
1954 | By default, \`make install' will install all the files in | ||
1955 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1956 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1957 | for instance \`--prefix=\$HOME'. | ||
1958 | |||
1959 | For better control, use the options below. | ||
1960 | |||
1961 | Fine tuning of the installation directories: | ||
1962 | --bindir=DIR user executables [EPREFIX/bin] | ||
1963 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1964 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1965 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1966 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1967 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1968 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1969 | --includedir=DIR C header files [PREFIX/include] | ||
1970 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1971 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1972 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1973 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1974 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1975 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1976 | --docdir=DIR documentation root [DATAROOTDIR/doc/evas] | ||
1977 | --htmldir=DIR html documentation [DOCDIR] | ||
1978 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1979 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1980 | --psdir=DIR ps documentation [DOCDIR] | ||
1981 | _ACEOF | ||
1982 | |||
1983 | cat <<\_ACEOF | ||
1984 | |||
1985 | Program names: | ||
1986 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1987 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1988 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1989 | |||
1990 | X features: | ||
1991 | --x-includes=DIR X include files are in DIR | ||
1992 | --x-libraries=DIR X library files are in DIR | ||
1993 | |||
1994 | System types: | ||
1995 | --build=BUILD configure for building on BUILD [guessed] | ||
1996 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1997 | _ACEOF | ||
1998 | fi | ||
1999 | |||
2000 | if test -n "$ac_init_help"; then | ||
2001 | case $ac_init_help in | ||
2002 | short | recursive ) echo "Configuration of evas 1.1.0:";; | ||
2003 | esac | ||
2004 | cat <<\_ACEOF | ||
2005 | |||
2006 | Optional Features: | ||
2007 | --disable-option-checking ignore unrecognized --enable/--with options | ||
2008 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
2009 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
2010 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
2011 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
2012 | --disable-dependency-tracking speeds up one-time build | ||
2013 | --enable-dependency-tracking do not reject slow dependency extractors | ||
2014 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
2015 | --enable-static[=PKGS] build static libraries [default=yes] | ||
2016 | --enable-fast-install[=PKGS] | ||
2017 | optimize for fast installation [default=yes] | ||
2018 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
2019 | --enable-strict enable strict checking mode. [default==disabled] | ||
2020 | --enable-simple-x11 enable simple x11 linking | ||
2021 | --disable-doc Disable documentation build [default=enabled] | ||
2022 | --disable-fontconfig disable fontconfig for finding fonts. | ||
2023 | [default=enabled] | ||
2024 | --disable-liblinebreak disable linking against liblinebreak. | ||
2025 | [default=enabled] | ||
2026 | --disable-fribidi disable bidirectional text support. | ||
2027 | [default=enabled] | ||
2028 | --disable-harfbuzz disable complex text shaping and layouting support. | ||
2029 | [default=enabled] | ||
2030 | --disable-pixman disable pixman for software rendering. | ||
2031 | [default=enabled] | ||
2032 | --disable-evas-cserve disable shared cache server support. | ||
2033 | [default=enabled] | ||
2034 | --enable-gl-flavor-gles enable gles falvor of gl instead of standard | ||
2035 | --enable-gles-variety-sgx | ||
2036 | GLES variety SGX 3D unit | ||
2037 | --enable-gles-variety-s3c6410 | ||
2038 | GLES variety s3c6410 3D unit | ||
2039 | --enable-buffer enable Buffer rendering backend | ||
2040 | --enable-software-gdi enable Software GDI rendering backend | ||
2041 | --enable-software-ddraw enable Software DirectDraw rendering backend | ||
2042 | --enable-direct3d enable Direct3D rendering backend | ||
2043 | --enable-software-sdl enable Software SDL rendering backend | ||
2044 | --enable-psl1ght enable PSL1GHT rendering backend | ||
2045 | --enable-gl-sdl enable OpenGL SDL rendering backend | ||
2046 | --enable-gl-cocoa enable OpenGL Cocoa rendering backend | ||
2047 | --enable-fb enable Framebuffer rendering backend | ||
2048 | --enable-directfb enable DirectFB rendering backend | ||
2049 | --enable-software-8-x11 enable Software X11 8 bits grayscale rendering | ||
2050 | backend | ||
2051 | --enable-software-16-x11 | ||
2052 | enable Software X11 16 bits rendering backend | ||
2053 | --enable-software-16-ddraw | ||
2054 | enable Software DirectDraw 16 bits rendering backend | ||
2055 | --enable-software-16-wince | ||
2056 | enable Software Windows CE 16 bits rendering backend | ||
2057 | --enable-software-16-sdl | ||
2058 | enable Software SDL 16 bits rendering backend | ||
2059 | --enable-sdl-primitive | ||
2060 | --enable-static-software-generic | ||
2061 | Build software generic engine as part of libevas | ||
2062 | --enable-software-xcb enable Software XCB Engine. [default=disabled] | ||
2063 | --enable-software-xcb enable Software XCB rendering backend | ||
2064 | --enable-software-xlib enable Software Xlib rendering backend | ||
2065 | --enable-gl-xcb enable OpenGL XCB Engine. [default=disabled] | ||
2066 | --enable-gl-xcb enable OpenGL XCB rendering backend | ||
2067 | --enable-gl-xlib enable OpenGL XLib rendering backend | ||
2068 | --enable-static-software-16 | ||
2069 | Build software 16 engine as part of libevas | ||
2070 | --enable-static-software-8 | ||
2071 | Build software 8 engine as part of libevas | ||
2072 | --enable-image-loader-edb | ||
2073 | enable Edb image loader | ||
2074 | --enable-image-loader-eet | ||
2075 | enable Eet image loader | ||
2076 | --disable-font-loader-eet | ||
2077 | disable EET font loader. [[default=enabled]] | ||
2078 | --enable-image-loader-gif | ||
2079 | enable Gif image loader | ||
2080 | --enable-image-loader-jpeg | ||
2081 | enable Jpeg image loader | ||
2082 | --enable-image-loader-pmaps | ||
2083 | enable PMAPS image loader | ||
2084 | --enable-image-loader-png | ||
2085 | enable PNG image loader | ||
2086 | --enable-image-loader-svg | ||
2087 | enable SVG image loader | ||
2088 | --enable-image-loader-tiff | ||
2089 | enable Tiff image loader | ||
2090 | --enable-image-loader-xpm | ||
2091 | enable XPM image loader | ||
2092 | --enable-image-loader-bmp | ||
2093 | enable BMP image loader | ||
2094 | --enable-image-loader-tga | ||
2095 | enable TGA image loader | ||
2096 | --enable-image-loader-wbmp | ||
2097 | enable WBMP image loader | ||
2098 | --enable-image-loader-ico | ||
2099 | enable ICO image loader | ||
2100 | --enable-image-loader-psd | ||
2101 | enable PSD image loader | ||
2102 | --enable-image-loader-generic | ||
2103 | enable GENERIC image loader | ||
2104 | --enable-pthreads enable threaded rendering | ||
2105 | --enable-pipe-render enable threaded pipe rendering support | ||
2106 | --enable-async-render enable asynchronously threaded pipe rendering | ||
2107 | support | ||
2108 | --enable-async-events enable async events support | ||
2109 | --enable-async-preload enable async image preloading support | ||
2110 | --enable-cpu-mmx enable mmx code | ||
2111 | --enable-cpu-sse enable sse code | ||
2112 | --enable-cpu-sse3 enable sse3 code | ||
2113 | --enable-cpu-altivec enable altivec code | ||
2114 | --enable-cpu-neon build neon code, the code will be checked at run | ||
2115 | time to see if the CPU supports it | ||
2116 | --enable-cpu-c enable C code | ||
2117 | --disable-evas-magic-debug | ||
2118 | disable MAGIC_DEBUG check when people pass in wrong | ||
2119 | object type. [[default=enabled]] | ||
2120 | --enable-word-cache Enable experimental word caching to speed up | ||
2121 | rendering [[default=disabled]] | ||
2122 | --enable-metric-cache Enable experimental metric caching to speed up | ||
2123 | rendering [[default=disabled]] | ||
2124 | --disable-scale-sample disable sampling scaler code [default=enabled] | ||
2125 | --disable-scale-smooth disable smooth scaler code [default=enabled] | ||
2126 | --enable-convert-yuv enable yuv converter code | ||
2127 | --enable-small-dither-mask | ||
2128 | enable small dither mask [default=disabled] | ||
2129 | --enable-line-dither-mask | ||
2130 | enable line dither mask [default=disabled] | ||
2131 | --enable-no-dither-mask enable conversion to 16bpp without dither mask | ||
2132 | [default=disabled] | ||
2133 | --disable-convert-8-rgb-332 | ||
2134 | disable the 8bpp RGB 332 converter code | ||
2135 | --disable-convert-8-rgb-666 | ||
2136 | disable the 8bpp RGB 666 converter code | ||
2137 | --disable-convert-8-rgb-232 | ||
2138 | disable the 8bpp RGB 232 converter code | ||
2139 | --disable-convert-8-rgb-222 | ||
2140 | disable the 8bpp RGB 222 converter code | ||
2141 | --disable-convert-8-rgb-221 | ||
2142 | disable the 8bpp RGB 221 converter code | ||
2143 | --disable-convert-8-rgb-121 | ||
2144 | disable the 8bpp RGB 121 converter code | ||
2145 | --disable-convert-8-rgb-111 | ||
2146 | disable the 8bpp RGB 111 converter code | ||
2147 | --disable-convert-16-rgb-565 | ||
2148 | disable the 16bpp RGB 565 converter code | ||
2149 | --disable-convert-16-bgr-565 | ||
2150 | disable the 16bpp BGR 565 converter code | ||
2151 | --disable-convert-16-rgb-555 | ||
2152 | disable the 16bpp RGB 555 converter code | ||
2153 | --disable-convert-16-rgb-444 | ||
2154 | disable the 16bpp RGB 444 converter code | ||
2155 | --disable-convert-16-rgb-ipq | ||
2156 | disable 16bpp 565 (444 ipaq) converter code | ||
2157 | --disable-convert-16-rgb-rot-0 | ||
2158 | disable the 16bpp RGB rotation 0 converter code | ||
2159 | --disable-convert-16-rgb-rot-180 | ||
2160 | disable the 16bpp RGB rotation 180 converter code | ||
2161 | --disable-convert-16-rgb-rot-270 | ||
2162 | disable the 16bpp RGB rotation 270 converter code | ||
2163 | --disable-convert-16-rgb-rot-90 | ||
2164 | disable the 16bpp RGB rotation 90 converter code | ||
2165 | --disable-convert-24-rgb-888 | ||
2166 | disable the 24bpp RGB 888 converter code | ||
2167 | --disable-convert-24-bgr-888 | ||
2168 | disable the 24bpp BGR 888 converter code | ||
2169 | --disable-convert-32-rgb-8888 | ||
2170 | disable the 32bpp RGB 8888 converter code | ||
2171 | --disable-convert-32-rgbx-8888 | ||
2172 | disable the 32bpp RGBX 8888 converter code | ||
2173 | --disable-convert-32-bgr-8888 | ||
2174 | disable the 32bpp BGR 8888 converter code | ||
2175 | --disable-convert-32-bgrx-8888 | ||
2176 | disable the 32bpp BGRX 8888 converter code | ||
2177 | --disable-convert-24-rgb-ezx | ||
2178 | disable 24bpp 666 (666 ezx) converter code | ||
2179 | --disable-convert-32-rgb-ezx | ||
2180 | disable 32bpp 666 (666 ezx) converter code | ||
2181 | --disable-convert-32-rgb-rot-0 | ||
2182 | disable the 32bpp RGB rotation 0 converter code | ||
2183 | --disable-convert-32-rgb-rot-180 | ||
2184 | disable the 32bpp RGB rotation 180 converter code | ||
2185 | --disable-convert-32-rgb-rot-270 | ||
2186 | disable the 32bpp RGB rotation 270 converter code | ||
2187 | --disable-convert-32-rgb-rot-90 | ||
2188 | disable the 32bpp RGB rotation 90 converter code | ||
2189 | --disable-convert-8-gry-1 | ||
2190 | disable the 8bpp GRY 1 converter code | ||
2191 | --disable-convert-8-gry-16 | ||
2192 | disable the 8bpp GRY 16 converter code | ||
2193 | --disable-convert-8-grayscale-64 | ||
2194 | disable 8bpp grayscale 64-palette converter code | ||
2195 | --enable-valgrind enable valgrind fixes to stop false reports | ||
2196 | --disable-install-examples | ||
2197 | disable installing examples (compiled or just | ||
2198 | source). [default==enabled] | ||
2199 | --enable-build-examples enable building examples (this requires extra | ||
2200 | denpendencies. if you don't have them installed yet, | ||
2201 | don't build with this option or it will fail. build | ||
2202 | again when you have it, overriding the previous | ||
2203 | installation). [default==disabled] | ||
2204 | --enable-tests enable tests [default=disabled] | ||
2205 | --enable-coverage enable coverage profiling instrumentation | ||
2206 | [default=disabled] | ||
2207 | |||
2208 | Optional Packages: | ||
2209 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
2210 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
2211 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
2212 | both] | ||
2213 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
2214 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
2215 | --with-x use the X Window System | ||
2216 | |||
2217 | Some influential environment variables: | ||
2218 | CC C compiler command | ||
2219 | CFLAGS C compiler flags | ||
2220 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
2221 | nonstandard directory <lib dir> | ||
2222 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
2223 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
2224 | you have headers in a nonstandard directory <include dir> | ||
2225 | CPP C preprocessor | ||
2226 | OBJC Objective C compiler command | ||
2227 | OBJCFLAGS Objective C compiler flags | ||
2228 | CXX C++ compiler command | ||
2229 | CXXFLAGS C++ compiler flags | ||
2230 | CXXCPP C++ preprocessor | ||
2231 | PKG_CONFIG path to pkg-config utility | ||
2232 | PKG_CONFIG_PATH | ||
2233 | directories to add to pkg-config's search path | ||
2234 | PKG_CONFIG_LIBDIR | ||
2235 | path overriding pkg-config's built-in search path | ||
2236 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
2237 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
2238 | EINA_CFLAGS C compiler flags for EINA, overriding pkg-config | ||
2239 | EINA_LIBS linker flags for EINA, overriding pkg-config | ||
2240 | FREETYPE_CFLAGS | ||
2241 | C compiler flags for FREETYPE, overriding pkg-config | ||
2242 | FREETYPE_LIBS | ||
2243 | linker flags for FREETYPE, overriding pkg-config | ||
2244 | FONTCONFIG_CFLAGS | ||
2245 | C compiler flags for FONTCONFIG, overriding pkg-config | ||
2246 | FONTCONFIG_LIBS | ||
2247 | linker flags for FONTCONFIG, overriding pkg-config | ||
2248 | FRIBIDI_CFLAGS | ||
2249 | C compiler flags for FRIBIDI, overriding pkg-config | ||
2250 | FRIBIDI_LIBS | ||
2251 | linker flags for FRIBIDI, overriding pkg-config | ||
2252 | HARFBUZZ_CFLAGS | ||
2253 | C compiler flags for HARFBUZZ, overriding pkg-config | ||
2254 | HARFBUZZ_LIBS | ||
2255 | linker flags for HARFBUZZ, overriding pkg-config | ||
2256 | PIXMAN_CFLAGS | ||
2257 | C compiler flags for PIXMAN, overriding pkg-config | ||
2258 | PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config | ||
2259 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | ||
2260 | SDL_LIBS linker flags for SDL, overriding pkg-config | ||
2261 | GL_EET_CFLAGS | ||
2262 | C compiler flags for GL_EET, overriding pkg-config | ||
2263 | GL_EET_LIBS linker flags for GL_EET, overriding pkg-config | ||
2264 | DIRECTFB_CFLAGS | ||
2265 | C compiler flags for DIRECTFB, overriding pkg-config | ||
2266 | DIRECTFB_LIBS | ||
2267 | linker flags for DIRECTFB, overriding pkg-config | ||
2268 | XCB_CFLAGS C compiler flags for XCB, overriding pkg-config | ||
2269 | XCB_LIBS linker flags for XCB, overriding pkg-config | ||
2270 | XMKMF Path to xmkmf, Makefile generator for X Window System | ||
2271 | XCB_GL_CFLAGS | ||
2272 | C compiler flags for XCB_GL, overriding pkg-config | ||
2273 | XCB_GL_LIBS linker flags for XCB_GL, overriding pkg-config | ||
2274 | EDB_CFLAGS C compiler flags for EDB, overriding pkg-config | ||
2275 | EDB_LIBS linker flags for EDB, overriding pkg-config | ||
2276 | EET_CFLAGS C compiler flags for EET, overriding pkg-config | ||
2277 | EET_LIBS linker flags for EET, overriding pkg-config | ||
2278 | PNG_CFLAGS C compiler flags for PNG, overriding pkg-config | ||
2279 | PNG_LIBS linker flags for PNG, overriding pkg-config | ||
2280 | SVG_CFLAGS C compiler flags for SVG, overriding pkg-config | ||
2281 | SVG_LIBS linker flags for SVG, overriding pkg-config | ||
2282 | XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config | ||
2283 | XEXT_LIBS linker flags for XEXT, overriding pkg-config | ||
2284 | VALGRIND_CFLAGS | ||
2285 | C compiler flags for VALGRIND, overriding pkg-config | ||
2286 | VALGRIND_LIBS | ||
2287 | linker flags for VALGRIND, overriding pkg-config | ||
2288 | ECORE_EVAS_CFLAGS | ||
2289 | C compiler flags for ECORE_EVAS, overriding pkg-config | ||
2290 | ECORE_EVAS_LIBS | ||
2291 | linker flags for ECORE_EVAS, overriding pkg-config | ||
2292 | EDJE_CFLAGS C compiler flags for EDJE, overriding pkg-config | ||
2293 | EDJE_LIBS linker flags for EDJE, overriding pkg-config | ||
2294 | CHECK_CFLAGS | ||
2295 | C compiler flags for CHECK, overriding pkg-config | ||
2296 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
2297 | |||
2298 | Use these variables to override the choices made by `configure' or to help | ||
2299 | it to find libraries and programs with nonstandard names/locations. | ||
2300 | |||
2301 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
2302 | _ACEOF | ||
2303 | ac_status=$? | ||
2304 | fi | ||
2305 | |||
2306 | if test "$ac_init_help" = "recursive"; then | ||
2307 | # If there are subdirs, report their specific --help. | ||
2308 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
2309 | test -d "$ac_dir" || | ||
2310 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
2311 | continue | ||
2312 | ac_builddir=. | ||
2313 | |||
2314 | case "$ac_dir" in | ||
2315 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2316 | *) | ||
2317 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
2318 | # A ".." for each directory in $ac_dir_suffix. | ||
2319 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
2320 | case $ac_top_builddir_sub in | ||
2321 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2322 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
2323 | esac ;; | ||
2324 | esac | ||
2325 | ac_abs_top_builddir=$ac_pwd | ||
2326 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
2327 | # for backward compatibility: | ||
2328 | ac_top_builddir=$ac_top_build_prefix | ||
2329 | |||
2330 | case $srcdir in | ||
2331 | .) # We are building in place. | ||
2332 | ac_srcdir=. | ||
2333 | ac_top_srcdir=$ac_top_builddir_sub | ||
2334 | ac_abs_top_srcdir=$ac_pwd ;; | ||
2335 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
2336 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
2337 | ac_top_srcdir=$srcdir | ||
2338 | ac_abs_top_srcdir=$srcdir ;; | ||
2339 | *) # Relative name. | ||
2340 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
2341 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
2342 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
2343 | esac | ||
2344 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
2345 | |||
2346 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
2347 | # Check for guested configure. | ||
2348 | if test -f "$ac_srcdir/configure.gnu"; then | ||
2349 | echo && | ||
2350 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
2351 | elif test -f "$ac_srcdir/configure"; then | ||
2352 | echo && | ||
2353 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
2354 | else | ||
2355 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
2356 | fi || ac_status=$? | ||
2357 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
2358 | done | ||
2359 | fi | ||
2360 | |||
2361 | test -n "$ac_init_help" && exit $ac_status | ||
2362 | if $ac_init_version; then | ||
2363 | cat <<\_ACEOF | ||
2364 | evas configure 1.1.0 | ||
2365 | generated by GNU Autoconf 2.67 | ||
2366 | |||
2367 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
2368 | This configure script is free software; the Free Software Foundation | ||
2369 | gives unlimited permission to copy, distribute and modify it. | ||
2370 | _ACEOF | ||
2371 | exit | ||
2372 | fi | ||
2373 | |||
2374 | ## ------------------------ ## | ||
2375 | ## Autoconf initialization. ## | ||
2376 | ## ------------------------ ## | ||
2377 | |||
2378 | # ac_fn_c_try_compile LINENO | ||
2379 | # -------------------------- | ||
2380 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2381 | ac_fn_c_try_compile () | ||
2382 | { | ||
2383 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2384 | rm -f conftest.$ac_objext | ||
2385 | if { { ac_try="$ac_compile" | ||
2386 | case "(($ac_try" in | ||
2387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2388 | *) ac_try_echo=$ac_try;; | ||
2389 | esac | ||
2390 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2391 | $as_echo "$ac_try_echo"; } >&5 | ||
2392 | (eval "$ac_compile") 2>conftest.err | ||
2393 | ac_status=$? | ||
2394 | if test -s conftest.err; then | ||
2395 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2396 | cat conftest.er1 >&5 | ||
2397 | mv -f conftest.er1 conftest.err | ||
2398 | fi | ||
2399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2400 | test $ac_status = 0; } && { | ||
2401 | test -z "$ac_c_werror_flag" || | ||
2402 | test ! -s conftest.err | ||
2403 | } && test -s conftest.$ac_objext; then : | ||
2404 | ac_retval=0 | ||
2405 | else | ||
2406 | $as_echo "$as_me: failed program was:" >&5 | ||
2407 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2408 | |||
2409 | ac_retval=1 | ||
2410 | fi | ||
2411 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2412 | as_fn_set_status $ac_retval | ||
2413 | |||
2414 | } # ac_fn_c_try_compile | ||
2415 | |||
2416 | # ac_fn_c_try_cpp LINENO | ||
2417 | # ---------------------- | ||
2418 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2419 | ac_fn_c_try_cpp () | ||
2420 | { | ||
2421 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2422 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2423 | case "(($ac_try" in | ||
2424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2425 | *) ac_try_echo=$ac_try;; | ||
2426 | esac | ||
2427 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2428 | $as_echo "$ac_try_echo"; } >&5 | ||
2429 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2430 | ac_status=$? | ||
2431 | if test -s conftest.err; then | ||
2432 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2433 | cat conftest.er1 >&5 | ||
2434 | mv -f conftest.er1 conftest.err | ||
2435 | fi | ||
2436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2437 | test $ac_status = 0; } > conftest.i && { | ||
2438 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2439 | test ! -s conftest.err | ||
2440 | }; then : | ||
2441 | ac_retval=0 | ||
2442 | else | ||
2443 | $as_echo "$as_me: failed program was:" >&5 | ||
2444 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2445 | |||
2446 | ac_retval=1 | ||
2447 | fi | ||
2448 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2449 | as_fn_set_status $ac_retval | ||
2450 | |||
2451 | } # ac_fn_c_try_cpp | ||
2452 | |||
2453 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
2454 | # ------------------------------------------------------- | ||
2455 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
2456 | # the include files in INCLUDES and setting the cache variable VAR | ||
2457 | # accordingly. | ||
2458 | ac_fn_c_check_header_mongrel () | ||
2459 | { | ||
2460 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2461 | if eval "test \"\${$3+set}\"" = set; then : | ||
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2463 | $as_echo_n "checking for $2... " >&6; } | ||
2464 | if eval "test \"\${$3+set}\"" = set; then : | ||
2465 | $as_echo_n "(cached) " >&6 | ||
2466 | fi | ||
2467 | eval ac_res=\$$3 | ||
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2469 | $as_echo "$ac_res" >&6; } | ||
2470 | else | ||
2471 | # Is the header compilable? | ||
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
2473 | $as_echo_n "checking $2 usability... " >&6; } | ||
2474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2475 | /* end confdefs.h. */ | ||
2476 | $4 | ||
2477 | #include <$2> | ||
2478 | _ACEOF | ||
2479 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2480 | ac_header_compiler=yes | ||
2481 | else | ||
2482 | ac_header_compiler=no | ||
2483 | fi | ||
2484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2486 | $as_echo "$ac_header_compiler" >&6; } | ||
2487 | |||
2488 | # Is the header present? | ||
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2490 | $as_echo_n "checking $2 presence... " >&6; } | ||
2491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2492 | /* end confdefs.h. */ | ||
2493 | #include <$2> | ||
2494 | _ACEOF | ||
2495 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2496 | ac_header_preproc=yes | ||
2497 | else | ||
2498 | ac_header_preproc=no | ||
2499 | fi | ||
2500 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2502 | $as_echo "$ac_header_preproc" >&6; } | ||
2503 | |||
2504 | # So? What about this header? | ||
2505 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2506 | yes:no: ) | ||
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2508 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2510 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2511 | ;; | ||
2512 | no:yes:* ) | ||
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2514 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2516 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2518 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2520 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2522 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2523 | ( $as_echo "## -------------------------------------------------------- ## | ||
2524 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2525 | ## -------------------------------------------------------- ##" | ||
2526 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2527 | ;; | ||
2528 | esac | ||
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2530 | $as_echo_n "checking for $2... " >&6; } | ||
2531 | if eval "test \"\${$3+set}\"" = set; then : | ||
2532 | $as_echo_n "(cached) " >&6 | ||
2533 | else | ||
2534 | eval "$3=\$ac_header_compiler" | ||
2535 | fi | ||
2536 | eval ac_res=\$$3 | ||
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2538 | $as_echo "$ac_res" >&6; } | ||
2539 | fi | ||
2540 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2541 | |||
2542 | } # ac_fn_c_check_header_mongrel | ||
2543 | |||
2544 | # ac_fn_c_try_run LINENO | ||
2545 | # ---------------------- | ||
2546 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
2547 | # that executables *can* be run. | ||
2548 | ac_fn_c_try_run () | ||
2549 | { | ||
2550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2551 | if { { ac_try="$ac_link" | ||
2552 | case "(($ac_try" in | ||
2553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2554 | *) ac_try_echo=$ac_try;; | ||
2555 | esac | ||
2556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2557 | $as_echo "$ac_try_echo"; } >&5 | ||
2558 | (eval "$ac_link") 2>&5 | ||
2559 | ac_status=$? | ||
2560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2561 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
2562 | { { case "(($ac_try" in | ||
2563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2564 | *) ac_try_echo=$ac_try;; | ||
2565 | esac | ||
2566 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2567 | $as_echo "$ac_try_echo"; } >&5 | ||
2568 | (eval "$ac_try") 2>&5 | ||
2569 | ac_status=$? | ||
2570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2571 | test $ac_status = 0; }; }; then : | ||
2572 | ac_retval=0 | ||
2573 | else | ||
2574 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
2575 | $as_echo "$as_me: failed program was:" >&5 | ||
2576 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2577 | |||
2578 | ac_retval=$ac_status | ||
2579 | fi | ||
2580 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2581 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2582 | as_fn_set_status $ac_retval | ||
2583 | |||
2584 | } # ac_fn_c_try_run | ||
2585 | |||
2586 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
2587 | # ------------------------------------------------------- | ||
2588 | # Tests whether HEADER exists and can be compiled using the include files in | ||
2589 | # INCLUDES, setting the cache variable VAR accordingly. | ||
2590 | ac_fn_c_check_header_compile () | ||
2591 | { | ||
2592 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2594 | $as_echo_n "checking for $2... " >&6; } | ||
2595 | if eval "test \"\${$3+set}\"" = set; then : | ||
2596 | $as_echo_n "(cached) " >&6 | ||
2597 | else | ||
2598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2599 | /* end confdefs.h. */ | ||
2600 | $4 | ||
2601 | #include <$2> | ||
2602 | _ACEOF | ||
2603 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2604 | eval "$3=yes" | ||
2605 | else | ||
2606 | eval "$3=no" | ||
2607 | fi | ||
2608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2609 | fi | ||
2610 | eval ac_res=\$$3 | ||
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2612 | $as_echo "$ac_res" >&6; } | ||
2613 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2614 | |||
2615 | } # ac_fn_c_check_header_compile | ||
2616 | |||
2617 | # ac_fn_c_try_link LINENO | ||
2618 | # ----------------------- | ||
2619 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2620 | ac_fn_c_try_link () | ||
2621 | { | ||
2622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2623 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2624 | if { { ac_try="$ac_link" | ||
2625 | case "(($ac_try" in | ||
2626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2627 | *) ac_try_echo=$ac_try;; | ||
2628 | esac | ||
2629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2630 | $as_echo "$ac_try_echo"; } >&5 | ||
2631 | (eval "$ac_link") 2>conftest.err | ||
2632 | ac_status=$? | ||
2633 | if test -s conftest.err; then | ||
2634 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2635 | cat conftest.er1 >&5 | ||
2636 | mv -f conftest.er1 conftest.err | ||
2637 | fi | ||
2638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2639 | test $ac_status = 0; } && { | ||
2640 | test -z "$ac_c_werror_flag" || | ||
2641 | test ! -s conftest.err | ||
2642 | } && test -s conftest$ac_exeext && { | ||
2643 | test "$cross_compiling" = yes || | ||
2644 | $as_test_x conftest$ac_exeext | ||
2645 | }; then : | ||
2646 | ac_retval=0 | ||
2647 | else | ||
2648 | $as_echo "$as_me: failed program was:" >&5 | ||
2649 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2650 | |||
2651 | ac_retval=1 | ||
2652 | fi | ||
2653 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2654 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2655 | # interfere with the next link command; also delete a directory that is | ||
2656 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2657 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2658 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2659 | as_fn_set_status $ac_retval | ||
2660 | |||
2661 | } # ac_fn_c_try_link | ||
2662 | |||
2663 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2664 | # ---------------------------------- | ||
2665 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2666 | ac_fn_c_check_func () | ||
2667 | { | ||
2668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2670 | $as_echo_n "checking for $2... " >&6; } | ||
2671 | if eval "test \"\${$3+set}\"" = set; then : | ||
2672 | $as_echo_n "(cached) " >&6 | ||
2673 | else | ||
2674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2675 | /* end confdefs.h. */ | ||
2676 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2678 | #define $2 innocuous_$2 | ||
2679 | |||
2680 | /* System header to define __stub macros and hopefully few prototypes, | ||
2681 | which can conflict with char $2 (); below. | ||
2682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2683 | <limits.h> exists even on freestanding compilers. */ | ||
2684 | |||
2685 | #ifdef __STDC__ | ||
2686 | # include <limits.h> | ||
2687 | #else | ||
2688 | # include <assert.h> | ||
2689 | #endif | ||
2690 | |||
2691 | #undef $2 | ||
2692 | |||
2693 | /* Override any GCC internal prototype to avoid an error. | ||
2694 | Use char because int might match the return type of a GCC | ||
2695 | builtin and then its argument prototype would still apply. */ | ||
2696 | #ifdef __cplusplus | ||
2697 | extern "C" | ||
2698 | #endif | ||
2699 | char $2 (); | ||
2700 | /* The GNU C library defines this for functions which it implements | ||
2701 | to always fail with ENOSYS. Some functions are actually named | ||
2702 | something starting with __ and the normal name is an alias. */ | ||
2703 | #if defined __stub_$2 || defined __stub___$2 | ||
2704 | choke me | ||
2705 | #endif | ||
2706 | |||
2707 | int | ||
2708 | main () | ||
2709 | { | ||
2710 | return $2 (); | ||
2711 | ; | ||
2712 | return 0; | ||
2713 | } | ||
2714 | _ACEOF | ||
2715 | if ac_fn_c_try_link "$LINENO"; then : | ||
2716 | eval "$3=yes" | ||
2717 | else | ||
2718 | eval "$3=no" | ||
2719 | fi | ||
2720 | rm -f core conftest.err conftest.$ac_objext \ | ||
2721 | conftest$ac_exeext conftest.$ac_ext | ||
2722 | fi | ||
2723 | eval ac_res=\$$3 | ||
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2725 | $as_echo "$ac_res" >&6; } | ||
2726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2727 | |||
2728 | } # ac_fn_c_check_func | ||
2729 | |||
2730 | # ac_fn_objc_try_compile LINENO | ||
2731 | # ----------------------------- | ||
2732 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2733 | ac_fn_objc_try_compile () | ||
2734 | { | ||
2735 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2736 | rm -f conftest.$ac_objext | ||
2737 | if { { ac_try="$ac_compile" | ||
2738 | case "(($ac_try" in | ||
2739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2740 | *) ac_try_echo=$ac_try;; | ||
2741 | esac | ||
2742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2743 | $as_echo "$ac_try_echo"; } >&5 | ||
2744 | (eval "$ac_compile") 2>conftest.err | ||
2745 | ac_status=$? | ||
2746 | if test -s conftest.err; then | ||
2747 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2748 | cat conftest.er1 >&5 | ||
2749 | mv -f conftest.er1 conftest.err | ||
2750 | fi | ||
2751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2752 | test $ac_status = 0; } && { | ||
2753 | test -z "$ac_objc_werror_flag" || | ||
2754 | test ! -s conftest.err | ||
2755 | } && test -s conftest.$ac_objext; then : | ||
2756 | ac_retval=0 | ||
2757 | else | ||
2758 | $as_echo "$as_me: failed program was:" >&5 | ||
2759 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2760 | |||
2761 | ac_retval=1 | ||
2762 | fi | ||
2763 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2764 | as_fn_set_status $ac_retval | ||
2765 | |||
2766 | } # ac_fn_objc_try_compile | ||
2767 | |||
2768 | # ac_fn_objc_try_link LINENO | ||
2769 | # -------------------------- | ||
2770 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2771 | ac_fn_objc_try_link () | ||
2772 | { | ||
2773 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2774 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2775 | if { { ac_try="$ac_link" | ||
2776 | case "(($ac_try" in | ||
2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2778 | *) ac_try_echo=$ac_try;; | ||
2779 | esac | ||
2780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2781 | $as_echo "$ac_try_echo"; } >&5 | ||
2782 | (eval "$ac_link") 2>conftest.err | ||
2783 | ac_status=$? | ||
2784 | if test -s conftest.err; then | ||
2785 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2786 | cat conftest.er1 >&5 | ||
2787 | mv -f conftest.er1 conftest.err | ||
2788 | fi | ||
2789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2790 | test $ac_status = 0; } && { | ||
2791 | test -z "$ac_objc_werror_flag" || | ||
2792 | test ! -s conftest.err | ||
2793 | } && test -s conftest$ac_exeext && { | ||
2794 | test "$cross_compiling" = yes || | ||
2795 | $as_test_x conftest$ac_exeext | ||
2796 | }; then : | ||
2797 | ac_retval=0 | ||
2798 | else | ||
2799 | $as_echo "$as_me: failed program was:" >&5 | ||
2800 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2801 | |||
2802 | ac_retval=1 | ||
2803 | fi | ||
2804 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2805 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2806 | # interfere with the next link command; also delete a directory that is | ||
2807 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2808 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2809 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2810 | as_fn_set_status $ac_retval | ||
2811 | |||
2812 | } # ac_fn_objc_try_link | ||
2813 | |||
2814 | # ac_fn_cxx_try_compile LINENO | ||
2815 | # ---------------------------- | ||
2816 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2817 | ac_fn_cxx_try_compile () | ||
2818 | { | ||
2819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2820 | rm -f conftest.$ac_objext | ||
2821 | if { { ac_try="$ac_compile" | ||
2822 | case "(($ac_try" in | ||
2823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2824 | *) ac_try_echo=$ac_try;; | ||
2825 | esac | ||
2826 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2827 | $as_echo "$ac_try_echo"; } >&5 | ||
2828 | (eval "$ac_compile") 2>conftest.err | ||
2829 | ac_status=$? | ||
2830 | if test -s conftest.err; then | ||
2831 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2832 | cat conftest.er1 >&5 | ||
2833 | mv -f conftest.er1 conftest.err | ||
2834 | fi | ||
2835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2836 | test $ac_status = 0; } && { | ||
2837 | test -z "$ac_cxx_werror_flag" || | ||
2838 | test ! -s conftest.err | ||
2839 | } && test -s conftest.$ac_objext; then : | ||
2840 | ac_retval=0 | ||
2841 | else | ||
2842 | $as_echo "$as_me: failed program was:" >&5 | ||
2843 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2844 | |||
2845 | ac_retval=1 | ||
2846 | fi | ||
2847 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2848 | as_fn_set_status $ac_retval | ||
2849 | |||
2850 | } # ac_fn_cxx_try_compile | ||
2851 | |||
2852 | # ac_fn_cxx_try_cpp LINENO | ||
2853 | # ------------------------ | ||
2854 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2855 | ac_fn_cxx_try_cpp () | ||
2856 | { | ||
2857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2858 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2859 | case "(($ac_try" in | ||
2860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2861 | *) ac_try_echo=$ac_try;; | ||
2862 | esac | ||
2863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2864 | $as_echo "$ac_try_echo"; } >&5 | ||
2865 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2866 | ac_status=$? | ||
2867 | if test -s conftest.err; then | ||
2868 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2869 | cat conftest.er1 >&5 | ||
2870 | mv -f conftest.er1 conftest.err | ||
2871 | fi | ||
2872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2873 | test $ac_status = 0; } > conftest.i && { | ||
2874 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
2875 | test ! -s conftest.err | ||
2876 | }; then : | ||
2877 | ac_retval=0 | ||
2878 | else | ||
2879 | $as_echo "$as_me: failed program was:" >&5 | ||
2880 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2881 | |||
2882 | ac_retval=1 | ||
2883 | fi | ||
2884 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2885 | as_fn_set_status $ac_retval | ||
2886 | |||
2887 | } # ac_fn_cxx_try_cpp | ||
2888 | |||
2889 | # ac_fn_cxx_try_link LINENO | ||
2890 | # ------------------------- | ||
2891 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2892 | ac_fn_cxx_try_link () | ||
2893 | { | ||
2894 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2895 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2896 | if { { ac_try="$ac_link" | ||
2897 | case "(($ac_try" in | ||
2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2899 | *) ac_try_echo=$ac_try;; | ||
2900 | esac | ||
2901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2902 | $as_echo "$ac_try_echo"; } >&5 | ||
2903 | (eval "$ac_link") 2>conftest.err | ||
2904 | ac_status=$? | ||
2905 | if test -s conftest.err; then | ||
2906 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2907 | cat conftest.er1 >&5 | ||
2908 | mv -f conftest.er1 conftest.err | ||
2909 | fi | ||
2910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2911 | test $ac_status = 0; } && { | ||
2912 | test -z "$ac_cxx_werror_flag" || | ||
2913 | test ! -s conftest.err | ||
2914 | } && test -s conftest$ac_exeext && { | ||
2915 | test "$cross_compiling" = yes || | ||
2916 | $as_test_x conftest$ac_exeext | ||
2917 | }; then : | ||
2918 | ac_retval=0 | ||
2919 | else | ||
2920 | $as_echo "$as_me: failed program was:" >&5 | ||
2921 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2922 | |||
2923 | ac_retval=1 | ||
2924 | fi | ||
2925 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2926 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2927 | # interfere with the next link command; also delete a directory that is | ||
2928 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2929 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2930 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2931 | as_fn_set_status $ac_retval | ||
2932 | |||
2933 | } # ac_fn_cxx_try_link | ||
2934 | |||
2935 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2936 | # -------------------------------------------- | ||
2937 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2938 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2939 | # computed | ||
2940 | ac_fn_c_compute_int () | ||
2941 | { | ||
2942 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2943 | if test "$cross_compiling" = yes; then | ||
2944 | # Depending upon the size, compute the lo and hi bounds. | ||
2945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2946 | /* end confdefs.h. */ | ||
2947 | $4 | ||
2948 | int | ||
2949 | main () | ||
2950 | { | ||
2951 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2952 | test_array [0] = 0 | ||
2953 | |||
2954 | ; | ||
2955 | return 0; | ||
2956 | } | ||
2957 | _ACEOF | ||
2958 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2959 | ac_lo=0 ac_mid=0 | ||
2960 | while :; do | ||
2961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2962 | /* end confdefs.h. */ | ||
2963 | $4 | ||
2964 | int | ||
2965 | main () | ||
2966 | { | ||
2967 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2968 | test_array [0] = 0 | ||
2969 | |||
2970 | ; | ||
2971 | return 0; | ||
2972 | } | ||
2973 | _ACEOF | ||
2974 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2975 | ac_hi=$ac_mid; break | ||
2976 | else | ||
2977 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2978 | if test $ac_lo -le $ac_mid; then | ||
2979 | ac_lo= ac_hi= | ||
2980 | break | ||
2981 | fi | ||
2982 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2983 | fi | ||
2984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2985 | done | ||
2986 | else | ||
2987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2988 | /* end confdefs.h. */ | ||
2989 | $4 | ||
2990 | int | ||
2991 | main () | ||
2992 | { | ||
2993 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2994 | test_array [0] = 0 | ||
2995 | |||
2996 | ; | ||
2997 | return 0; | ||
2998 | } | ||
2999 | _ACEOF | ||
3000 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3001 | ac_hi=-1 ac_mid=-1 | ||
3002 | while :; do | ||
3003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3004 | /* end confdefs.h. */ | ||
3005 | $4 | ||
3006 | int | ||
3007 | main () | ||
3008 | { | ||
3009 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
3010 | test_array [0] = 0 | ||
3011 | |||
3012 | ; | ||
3013 | return 0; | ||
3014 | } | ||
3015 | _ACEOF | ||
3016 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3017 | ac_lo=$ac_mid; break | ||
3018 | else | ||
3019 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
3020 | if test $ac_mid -le $ac_hi; then | ||
3021 | ac_lo= ac_hi= | ||
3022 | break | ||
3023 | fi | ||
3024 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
3025 | fi | ||
3026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3027 | done | ||
3028 | else | ||
3029 | ac_lo= ac_hi= | ||
3030 | fi | ||
3031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3032 | fi | ||
3033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3034 | # Binary search between lo and hi bounds. | ||
3035 | while test "x$ac_lo" != "x$ac_hi"; do | ||
3036 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
3037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3038 | /* end confdefs.h. */ | ||
3039 | $4 | ||
3040 | int | ||
3041 | main () | ||
3042 | { | ||
3043 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
3044 | test_array [0] = 0 | ||
3045 | |||
3046 | ; | ||
3047 | return 0; | ||
3048 | } | ||
3049 | _ACEOF | ||
3050 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3051 | ac_hi=$ac_mid | ||
3052 | else | ||
3053 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
3054 | fi | ||
3055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3056 | done | ||
3057 | case $ac_lo in #(( | ||
3058 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
3059 | '') ac_retval=1 ;; | ||
3060 | esac | ||
3061 | else | ||
3062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3063 | /* end confdefs.h. */ | ||
3064 | $4 | ||
3065 | static long int longval () { return $2; } | ||
3066 | static unsigned long int ulongval () { return $2; } | ||
3067 | #include <stdio.h> | ||
3068 | #include <stdlib.h> | ||
3069 | int | ||
3070 | main () | ||
3071 | { | ||
3072 | |||
3073 | FILE *f = fopen ("conftest.val", "w"); | ||
3074 | if (! f) | ||
3075 | return 1; | ||
3076 | if (($2) < 0) | ||
3077 | { | ||
3078 | long int i = longval (); | ||
3079 | if (i != ($2)) | ||
3080 | return 1; | ||
3081 | fprintf (f, "%ld", i); | ||
3082 | } | ||
3083 | else | ||
3084 | { | ||
3085 | unsigned long int i = ulongval (); | ||
3086 | if (i != ($2)) | ||
3087 | return 1; | ||
3088 | fprintf (f, "%lu", i); | ||
3089 | } | ||
3090 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
3091 | on some platforms. */ | ||
3092 | return ferror (f) || fclose (f) != 0; | ||
3093 | |||
3094 | ; | ||
3095 | return 0; | ||
3096 | } | ||
3097 | _ACEOF | ||
3098 | if ac_fn_c_try_run "$LINENO"; then : | ||
3099 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
3100 | else | ||
3101 | ac_retval=1 | ||
3102 | fi | ||
3103 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3104 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3105 | rm -f conftest.val | ||
3106 | |||
3107 | fi | ||
3108 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3109 | as_fn_set_status $ac_retval | ||
3110 | |||
3111 | } # ac_fn_c_compute_int | ||
3112 | |||
3113 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
3114 | # ------------------------------------------- | ||
3115 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
3116 | # variable VAR accordingly. | ||
3117 | ac_fn_c_check_type () | ||
3118 | { | ||
3119 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
3121 | $as_echo_n "checking for $2... " >&6; } | ||
3122 | if eval "test \"\${$3+set}\"" = set; then : | ||
3123 | $as_echo_n "(cached) " >&6 | ||
3124 | else | ||
3125 | eval "$3=no" | ||
3126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3127 | /* end confdefs.h. */ | ||
3128 | $4 | ||
3129 | int | ||
3130 | main () | ||
3131 | { | ||
3132 | if (sizeof ($2)) | ||
3133 | return 0; | ||
3134 | ; | ||
3135 | return 0; | ||
3136 | } | ||
3137 | _ACEOF | ||
3138 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3140 | /* end confdefs.h. */ | ||
3141 | $4 | ||
3142 | int | ||
3143 | main () | ||
3144 | { | ||
3145 | if (sizeof (($2))) | ||
3146 | return 0; | ||
3147 | ; | ||
3148 | return 0; | ||
3149 | } | ||
3150 | _ACEOF | ||
3151 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3152 | |||
3153 | else | ||
3154 | eval "$3=yes" | ||
3155 | fi | ||
3156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3157 | fi | ||
3158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3159 | fi | ||
3160 | eval ac_res=\$$3 | ||
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
3162 | $as_echo "$ac_res" >&6; } | ||
3163 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3164 | |||
3165 | } # ac_fn_c_check_type | ||
3166 | |||
3167 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
3168 | # --------------------------------------------- | ||
3169 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
3170 | # accordingly. | ||
3171 | ac_fn_c_check_decl () | ||
3172 | { | ||
3173 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
3174 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
3175 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
3177 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
3178 | if eval "test \"\${$3+set}\"" = set; then : | ||
3179 | $as_echo_n "(cached) " >&6 | ||
3180 | else | ||
3181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3182 | /* end confdefs.h. */ | ||
3183 | $4 | ||
3184 | int | ||
3185 | main () | ||
3186 | { | ||
3187 | #ifndef $as_decl_name | ||
3188 | #ifdef __cplusplus | ||
3189 | (void) $as_decl_use; | ||
3190 | #else | ||
3191 | (void) $as_decl_name; | ||
3192 | #endif | ||
3193 | #endif | ||
3194 | |||
3195 | ; | ||
3196 | return 0; | ||
3197 | } | ||
3198 | _ACEOF | ||
3199 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3200 | eval "$3=yes" | ||
3201 | else | ||
3202 | eval "$3=no" | ||
3203 | fi | ||
3204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3205 | fi | ||
3206 | eval ac_res=\$$3 | ||
3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
3208 | $as_echo "$ac_res" >&6; } | ||
3209 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3210 | |||
3211 | } # ac_fn_c_check_decl | ||
3212 | cat >config.log <<_ACEOF | ||
3213 | This file contains any messages produced by compilers while | ||
3214 | running configure, to aid debugging if configure makes a mistake. | ||
3215 | |||
3216 | It was created by evas $as_me 1.1.0, which was | ||
3217 | generated by GNU Autoconf 2.67. Invocation command line was | ||
3218 | |||
3219 | $ $0 $@ | ||
3220 | |||
3221 | _ACEOF | ||
3222 | exec 5>>config.log | ||
3223 | { | ||
3224 | cat <<_ASUNAME | ||
3225 | ## --------- ## | ||
3226 | ## Platform. ## | ||
3227 | ## --------- ## | ||
3228 | |||
3229 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
3230 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
3231 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
3232 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
3233 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
3234 | |||
3235 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
3236 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
3237 | |||
3238 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
3239 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
3240 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
3241 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
3242 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
3243 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
3244 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
3245 | |||
3246 | _ASUNAME | ||
3247 | |||
3248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3249 | for as_dir in $PATH | ||
3250 | do | ||
3251 | IFS=$as_save_IFS | ||
3252 | test -z "$as_dir" && as_dir=. | ||
3253 | $as_echo "PATH: $as_dir" | ||
3254 | done | ||
3255 | IFS=$as_save_IFS | ||
3256 | |||
3257 | } >&5 | ||
3258 | |||
3259 | cat >&5 <<_ACEOF | ||
3260 | |||
3261 | |||
3262 | ## ----------- ## | ||
3263 | ## Core tests. ## | ||
3264 | ## ----------- ## | ||
3265 | |||
3266 | _ACEOF | ||
3267 | |||
3268 | |||
3269 | # Keep a trace of the command line. | ||
3270 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
3271 | # Strip out --silent because we don't want to record it for future runs. | ||
3272 | # Also quote any args containing shell meta-characters. | ||
3273 | # Make two passes to allow for proper duplicate-argument suppression. | ||
3274 | ac_configure_args= | ||
3275 | ac_configure_args0= | ||
3276 | ac_configure_args1= | ||
3277 | ac_must_keep_next=false | ||
3278 | for ac_pass in 1 2 | ||
3279 | do | ||
3280 | for ac_arg | ||
3281 | do | ||
3282 | case $ac_arg in | ||
3283 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
3284 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
3285 | | -silent | --silent | --silen | --sile | --sil) | ||
3286 | continue ;; | ||
3287 | *\'*) | ||
3288 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3289 | esac | ||
3290 | case $ac_pass in | ||
3291 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
3292 | 2) | ||
3293 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
3294 | if test $ac_must_keep_next = true; then | ||
3295 | ac_must_keep_next=false # Got value, back to normal. | ||
3296 | else | ||
3297 | case $ac_arg in | ||
3298 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
3299 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
3300 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
3301 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
3302 | case "$ac_configure_args0 " in | ||
3303 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
3304 | esac | ||
3305 | ;; | ||
3306 | -* ) ac_must_keep_next=true ;; | ||
3307 | esac | ||
3308 | fi | ||
3309 | as_fn_append ac_configure_args " '$ac_arg'" | ||
3310 | ;; | ||
3311 | esac | ||
3312 | done | ||
3313 | done | ||
3314 | { ac_configure_args0=; unset ac_configure_args0;} | ||
3315 | { ac_configure_args1=; unset ac_configure_args1;} | ||
3316 | |||
3317 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
3318 | # config.log. We remove comments because anyway the quotes in there | ||
3319 | # would cause problems or look ugly. | ||
3320 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
3321 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
3322 | trap 'exit_status=$? | ||
3323 | # Save into config.log some information that might help in debugging. | ||
3324 | { | ||
3325 | echo | ||
3326 | |||
3327 | $as_echo "## ---------------- ## | ||
3328 | ## Cache variables. ## | ||
3329 | ## ---------------- ##" | ||
3330 | echo | ||
3331 | # The following way of writing the cache mishandles newlines in values, | ||
3332 | ( | ||
3333 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
3334 | eval ac_val=\$$ac_var | ||
3335 | case $ac_val in #( | ||
3336 | *${as_nl}*) | ||
3337 | case $ac_var in #( | ||
3338 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
3339 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
3340 | esac | ||
3341 | case $ac_var in #( | ||
3342 | _ | IFS | as_nl) ;; #( | ||
3343 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
3344 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
3345 | esac ;; | ||
3346 | esac | ||
3347 | done | ||
3348 | (set) 2>&1 | | ||
3349 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
3350 | *${as_nl}ac_space=\ *) | ||
3351 | sed -n \ | ||
3352 | "s/'\''/'\''\\\\'\'''\''/g; | ||
3353 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
3354 | ;; #( | ||
3355 | *) | ||
3356 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
3357 | ;; | ||
3358 | esac | | ||
3359 | sort | ||
3360 | ) | ||
3361 | echo | ||
3362 | |||
3363 | $as_echo "## ----------------- ## | ||
3364 | ## Output variables. ## | ||
3365 | ## ----------------- ##" | ||
3366 | echo | ||
3367 | for ac_var in $ac_subst_vars | ||
3368 | do | ||
3369 | eval ac_val=\$$ac_var | ||
3370 | case $ac_val in | ||
3371 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3372 | esac | ||
3373 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3374 | done | sort | ||
3375 | echo | ||
3376 | |||
3377 | if test -n "$ac_subst_files"; then | ||
3378 | $as_echo "## ------------------- ## | ||
3379 | ## File substitutions. ## | ||
3380 | ## ------------------- ##" | ||
3381 | echo | ||
3382 | for ac_var in $ac_subst_files | ||
3383 | do | ||
3384 | eval ac_val=\$$ac_var | ||
3385 | case $ac_val in | ||
3386 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3387 | esac | ||
3388 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3389 | done | sort | ||
3390 | echo | ||
3391 | fi | ||
3392 | |||
3393 | if test -s confdefs.h; then | ||
3394 | $as_echo "## ----------- ## | ||
3395 | ## confdefs.h. ## | ||
3396 | ## ----------- ##" | ||
3397 | echo | ||
3398 | cat confdefs.h | ||
3399 | echo | ||
3400 | fi | ||
3401 | test "$ac_signal" != 0 && | ||
3402 | $as_echo "$as_me: caught signal $ac_signal" | ||
3403 | $as_echo "$as_me: exit $exit_status" | ||
3404 | } >&5 | ||
3405 | rm -f core *.core core.conftest.* && | ||
3406 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
3407 | exit $exit_status | ||
3408 | ' 0 | ||
3409 | for ac_signal in 1 2 13 15; do | ||
3410 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
3411 | done | ||
3412 | ac_signal=0 | ||
3413 | |||
3414 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
3415 | rm -f -r conftest* confdefs.h | ||
3416 | |||
3417 | $as_echo "/* confdefs.h */" > confdefs.h | ||
3418 | |||
3419 | # Predefined preprocessor variables. | ||
3420 | |||
3421 | cat >>confdefs.h <<_ACEOF | ||
3422 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
3423 | _ACEOF | ||
3424 | |||
3425 | cat >>confdefs.h <<_ACEOF | ||
3426 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
3427 | _ACEOF | ||
3428 | |||
3429 | cat >>confdefs.h <<_ACEOF | ||
3430 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
3431 | _ACEOF | ||
3432 | |||
3433 | cat >>confdefs.h <<_ACEOF | ||
3434 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
3435 | _ACEOF | ||
3436 | |||
3437 | cat >>confdefs.h <<_ACEOF | ||
3438 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
3439 | _ACEOF | ||
3440 | |||
3441 | cat >>confdefs.h <<_ACEOF | ||
3442 | #define PACKAGE_URL "$PACKAGE_URL" | ||
3443 | _ACEOF | ||
3444 | |||
3445 | |||
3446 | # Let the site file select an alternate cache file if it wants to. | ||
3447 | # Prefer an explicitly selected file to automatically selected ones. | ||
3448 | ac_site_file1=NONE | ||
3449 | ac_site_file2=NONE | ||
3450 | if test -n "$CONFIG_SITE"; then | ||
3451 | # We do not want a PATH search for config.site. | ||
3452 | case $CONFIG_SITE in #(( | ||
3453 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
3454 | */*) ac_site_file1=$CONFIG_SITE;; | ||
3455 | *) ac_site_file1=./$CONFIG_SITE;; | ||
3456 | esac | ||
3457 | elif test "x$prefix" != xNONE; then | ||
3458 | ac_site_file1=$prefix/share/config.site | ||
3459 | ac_site_file2=$prefix/etc/config.site | ||
3460 | else | ||
3461 | ac_site_file1=$ac_default_prefix/share/config.site | ||
3462 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
3463 | fi | ||
3464 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
3465 | do | ||
3466 | test "x$ac_site_file" = xNONE && continue | ||
3467 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
3469 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
3470 | sed 's/^/| /' "$ac_site_file" >&5 | ||
3471 | . "$ac_site_file" \ | ||
3472 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3474 | as_fn_error $? "failed to load site script $ac_site_file | ||
3475 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3476 | fi | ||
3477 | done | ||
3478 | |||
3479 | if test -r "$cache_file"; then | ||
3480 | # Some versions of bash will fail to source /dev/null (special files | ||
3481 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
3482 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
3484 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
3485 | case $cache_file in | ||
3486 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
3487 | *) . "./$cache_file";; | ||
3488 | esac | ||
3489 | fi | ||
3490 | else | ||
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
3492 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
3493 | >$cache_file | ||
3494 | fi | ||
3495 | |||
3496 | # Check that the precious variables saved in the cache have kept the same | ||
3497 | # value. | ||
3498 | ac_cache_corrupted=false | ||
3499 | for ac_var in $ac_precious_vars; do | ||
3500 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
3501 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
3502 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
3503 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
3504 | case $ac_old_set,$ac_new_set in | ||
3505 | set,) | ||
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
3507 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
3508 | ac_cache_corrupted=: ;; | ||
3509 | ,set) | ||
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
3511 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
3512 | ac_cache_corrupted=: ;; | ||
3513 | ,);; | ||
3514 | *) | ||
3515 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
3516 | # differences in whitespace do not lead to failure. | ||
3517 | ac_old_val_w=`echo x $ac_old_val` | ||
3518 | ac_new_val_w=`echo x $ac_new_val` | ||
3519 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
3521 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
3522 | ac_cache_corrupted=: | ||
3523 | else | ||
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
3525 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
3526 | eval $ac_var=\$ac_old_val | ||
3527 | fi | ||
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
3529 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
3531 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
3532 | fi;; | ||
3533 | esac | ||
3534 | # Pass precious variables to config.status. | ||
3535 | if test "$ac_new_set" = set; then | ||
3536 | case $ac_new_val in | ||
3537 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3538 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
3539 | esac | ||
3540 | case " $ac_configure_args " in | ||
3541 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
3542 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
3543 | esac | ||
3544 | fi | ||
3545 | done | ||
3546 | if $ac_cache_corrupted; then | ||
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3548 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
3550 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
3551 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
3552 | fi | ||
3553 | ## -------------------- ## | ||
3554 | ## Main body of script. ## | ||
3555 | ## -------------------- ## | ||
3556 | |||
3557 | ac_ext=c | ||
3558 | ac_cpp='$CPP $CPPFLAGS' | ||
3559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3562 | |||
3563 | |||
3564 | |||
3565 | |||
3566 | |||
3567 | |||
3568 | ac_config_headers="$ac_config_headers config.h" | ||
3569 | |||
3570 | |||
3571 | |||
3572 | |||
3573 | am__api_version='1.11' | ||
3574 | |||
3575 | ac_aux_dir= | ||
3576 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3577 | if test -f "$ac_dir/install-sh"; then | ||
3578 | ac_aux_dir=$ac_dir | ||
3579 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3580 | break | ||
3581 | elif test -f "$ac_dir/install.sh"; then | ||
3582 | ac_aux_dir=$ac_dir | ||
3583 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3584 | break | ||
3585 | elif test -f "$ac_dir/shtool"; then | ||
3586 | ac_aux_dir=$ac_dir | ||
3587 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3588 | break | ||
3589 | fi | ||
3590 | done | ||
3591 | if test -z "$ac_aux_dir"; then | ||
3592 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3593 | fi | ||
3594 | |||
3595 | # These three variables are undocumented and unsupported, | ||
3596 | # and are intended to be withdrawn in a future Autoconf release. | ||
3597 | # They can cause serious problems if a builder's source tree is in a directory | ||
3598 | # whose full name contains unusual characters. | ||
3599 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3600 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3601 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3602 | |||
3603 | |||
3604 | # Find a good install program. We prefer a C program (faster), | ||
3605 | # so one script is as good as another. But avoid the broken or | ||
3606 | # incompatible versions: | ||
3607 | # SysV /etc/install, /usr/sbin/install | ||
3608 | # SunOS /usr/etc/install | ||
3609 | # IRIX /sbin/install | ||
3610 | # AIX /bin/install | ||
3611 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
3612 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
3613 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
3614 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
3615 | # OS/2's system install, which has a completely different semantic | ||
3616 | # ./install, which can be erroneously created by make from ./install.sh. | ||
3617 | # Reject install programs that cannot install multiple files. | ||
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
3619 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
3620 | if test -z "$INSTALL"; then | ||
3621 | if test "${ac_cv_path_install+set}" = set; then : | ||
3622 | $as_echo_n "(cached) " >&6 | ||
3623 | else | ||
3624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3625 | for as_dir in $PATH | ||
3626 | do | ||
3627 | IFS=$as_save_IFS | ||
3628 | test -z "$as_dir" && as_dir=. | ||
3629 | # Account for people who put trailing slashes in PATH elements. | ||
3630 | case $as_dir/ in #(( | ||
3631 | ./ | .// | /[cC]/* | \ | ||
3632 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
3633 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
3634 | /usr/ucb/* ) ;; | ||
3635 | *) | ||
3636 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
3637 | # Don't use installbsd from OSF since it installs stuff as root | ||
3638 | # by default. | ||
3639 | for ac_prog in ginstall scoinst install; do | ||
3640 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3641 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
3642 | if test $ac_prog = install && | ||
3643 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3644 | # AIX install. It has an incompatible calling convention. | ||
3645 | : | ||
3646 | elif test $ac_prog = install && | ||
3647 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3648 | # program-specific install script used by HP pwplus--don't use. | ||
3649 | : | ||
3650 | else | ||
3651 | rm -rf conftest.one conftest.two conftest.dir | ||
3652 | echo one > conftest.one | ||
3653 | echo two > conftest.two | ||
3654 | mkdir conftest.dir | ||
3655 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
3656 | test -s conftest.one && test -s conftest.two && | ||
3657 | test -s conftest.dir/conftest.one && | ||
3658 | test -s conftest.dir/conftest.two | ||
3659 | then | ||
3660 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3661 | break 3 | ||
3662 | fi | ||
3663 | fi | ||
3664 | fi | ||
3665 | done | ||
3666 | done | ||
3667 | ;; | ||
3668 | esac | ||
3669 | |||
3670 | done | ||
3671 | IFS=$as_save_IFS | ||
3672 | |||
3673 | rm -rf conftest.one conftest.two conftest.dir | ||
3674 | |||
3675 | fi | ||
3676 | if test "${ac_cv_path_install+set}" = set; then | ||
3677 | INSTALL=$ac_cv_path_install | ||
3678 | else | ||
3679 | # As a last resort, use the slow shell script. Don't cache a | ||
3680 | # value for INSTALL within a source directory, because that will | ||
3681 | # break other packages using the cache if that directory is | ||
3682 | # removed, or if the value is a relative name. | ||
3683 | INSTALL=$ac_install_sh | ||
3684 | fi | ||
3685 | fi | ||
3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
3687 | $as_echo "$INSTALL" >&6; } | ||
3688 | |||
3689 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3690 | # It thinks the first close brace ends the variable substitution. | ||
3691 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3692 | |||
3693 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3694 | |||
3695 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3696 | |||
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
3698 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
3699 | # Just in case | ||
3700 | sleep 1 | ||
3701 | echo timestamp > conftest.file | ||
3702 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
3703 | # name. Accept space and tab only in the latter. | ||
3704 | am_lf=' | ||
3705 | ' | ||
3706 | case `pwd` in | ||
3707 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
3708 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
3709 | esac | ||
3710 | case $srcdir in | ||
3711 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
3712 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
3713 | esac | ||
3714 | |||
3715 | # Do `set' in a subshell so we don't clobber the current shell's | ||
3716 | # arguments. Must try -L first in case configure is actually a | ||
3717 | # symlink; some systems play weird games with the mod time of symlinks | ||
3718 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
3719 | # directory). | ||
3720 | if ( | ||
3721 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
3722 | if test "$*" = "X"; then | ||
3723 | # -L didn't work. | ||
3724 | set X `ls -t "$srcdir/configure" conftest.file` | ||
3725 | fi | ||
3726 | rm -f conftest.file | ||
3727 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
3728 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
3729 | |||
3730 | # If neither matched, then we have a broken ls. This can happen | ||
3731 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
3732 | # broken ls alias from the environment. This has actually | ||
3733 | # happened. Such a system could not be considered "sane". | ||
3734 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
3735 | alias in your environment" "$LINENO" 5 | ||
3736 | fi | ||
3737 | |||
3738 | test "$2" = conftest.file | ||
3739 | ) | ||
3740 | then | ||
3741 | # Ok. | ||
3742 | : | ||
3743 | else | ||
3744 | as_fn_error $? "newly created file is older than distributed files! | ||
3745 | Check your system clock" "$LINENO" 5 | ||
3746 | fi | ||
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3748 | $as_echo "yes" >&6; } | ||
3749 | test "$program_prefix" != NONE && | ||
3750 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
3751 | # Use a double $ so make ignores it. | ||
3752 | test "$program_suffix" != NONE && | ||
3753 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
3754 | # Double any \ or $. | ||
3755 | # By default was `s,x,x', remove it if useless. | ||
3756 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
3757 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
3758 | |||
3759 | # expand $ac_aux_dir to an absolute path | ||
3760 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
3761 | |||
3762 | if test x"${MISSING+set}" != xset; then | ||
3763 | case $am_aux_dir in | ||
3764 | *\ * | *\ *) | ||
3765 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
3766 | *) | ||
3767 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
3768 | esac | ||
3769 | fi | ||
3770 | # Use eval to expand $SHELL | ||
3771 | if eval "$MISSING --run true"; then | ||
3772 | am_missing_run="$MISSING --run " | ||
3773 | else | ||
3774 | am_missing_run= | ||
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
3776 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
3777 | fi | ||
3778 | |||
3779 | if test x"${install_sh}" != xset; then | ||
3780 | case $am_aux_dir in | ||
3781 | *\ * | *\ *) | ||
3782 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
3783 | *) | ||
3784 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
3785 | esac | ||
3786 | fi | ||
3787 | |||
3788 | # Installed binaries are usually stripped using `strip' when the user | ||
3789 | # run `make install-strip'. However `strip' might not be the right | ||
3790 | # tool to use in cross-compilation environments, therefore Automake | ||
3791 | # will honor the `STRIP' environment variable to overrule this program. | ||
3792 | if test "$cross_compiling" != no; then | ||
3793 | if test -n "$ac_tool_prefix"; then | ||
3794 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
3795 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3797 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3798 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
3799 | $as_echo_n "(cached) " >&6 | ||
3800 | else | ||
3801 | if test -n "$STRIP"; then | ||
3802 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
3803 | else | ||
3804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3805 | for as_dir in $PATH | ||
3806 | do | ||
3807 | IFS=$as_save_IFS | ||
3808 | test -z "$as_dir" && as_dir=. | ||
3809 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3811 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
3812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3813 | break 2 | ||
3814 | fi | ||
3815 | done | ||
3816 | done | ||
3817 | IFS=$as_save_IFS | ||
3818 | |||
3819 | fi | ||
3820 | fi | ||
3821 | STRIP=$ac_cv_prog_STRIP | ||
3822 | if test -n "$STRIP"; then | ||
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
3824 | $as_echo "$STRIP" >&6; } | ||
3825 | else | ||
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3827 | $as_echo "no" >&6; } | ||
3828 | fi | ||
3829 | |||
3830 | |||
3831 | fi | ||
3832 | if test -z "$ac_cv_prog_STRIP"; then | ||
3833 | ac_ct_STRIP=$STRIP | ||
3834 | # Extract the first word of "strip", so it can be a program name with args. | ||
3835 | set dummy strip; ac_word=$2 | ||
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3837 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3838 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
3839 | $as_echo_n "(cached) " >&6 | ||
3840 | else | ||
3841 | if test -n "$ac_ct_STRIP"; then | ||
3842 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
3843 | else | ||
3844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3845 | for as_dir in $PATH | ||
3846 | do | ||
3847 | IFS=$as_save_IFS | ||
3848 | test -z "$as_dir" && as_dir=. | ||
3849 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3851 | ac_cv_prog_ac_ct_STRIP="strip" | ||
3852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3853 | break 2 | ||
3854 | fi | ||
3855 | done | ||
3856 | done | ||
3857 | IFS=$as_save_IFS | ||
3858 | |||
3859 | fi | ||
3860 | fi | ||
3861 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
3862 | if test -n "$ac_ct_STRIP"; then | ||
3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
3864 | $as_echo "$ac_ct_STRIP" >&6; } | ||
3865 | else | ||
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3867 | $as_echo "no" >&6; } | ||
3868 | fi | ||
3869 | |||
3870 | if test "x$ac_ct_STRIP" = x; then | ||
3871 | STRIP=":" | ||
3872 | else | ||
3873 | case $cross_compiling:$ac_tool_warned in | ||
3874 | yes:) | ||
3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3876 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3877 | ac_tool_warned=yes ;; | ||
3878 | esac | ||
3879 | STRIP=$ac_ct_STRIP | ||
3880 | fi | ||
3881 | else | ||
3882 | STRIP="$ac_cv_prog_STRIP" | ||
3883 | fi | ||
3884 | |||
3885 | fi | ||
3886 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
3887 | |||
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
3889 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
3890 | if test -z "$MKDIR_P"; then | ||
3891 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
3892 | $as_echo_n "(cached) " >&6 | ||
3893 | else | ||
3894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3895 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
3896 | do | ||
3897 | IFS=$as_save_IFS | ||
3898 | test -z "$as_dir" && as_dir=. | ||
3899 | for ac_prog in mkdir gmkdir; do | ||
3900 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3901 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
3902 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
3903 | 'mkdir (GNU coreutils) '* | \ | ||
3904 | 'mkdir (coreutils) '* | \ | ||
3905 | 'mkdir (fileutils) '4.1*) | ||
3906 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
3907 | break 3;; | ||
3908 | esac | ||
3909 | done | ||
3910 | done | ||
3911 | done | ||
3912 | IFS=$as_save_IFS | ||
3913 | |||
3914 | fi | ||
3915 | |||
3916 | test -d ./--version && rmdir ./--version | ||
3917 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
3918 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
3919 | else | ||
3920 | # As a last resort, use the slow shell script. Don't cache a | ||
3921 | # value for MKDIR_P within a source directory, because that will | ||
3922 | # break other packages using the cache if that directory is | ||
3923 | # removed, or if the value is a relative name. | ||
3924 | MKDIR_P="$ac_install_sh -d" | ||
3925 | fi | ||
3926 | fi | ||
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
3928 | $as_echo "$MKDIR_P" >&6; } | ||
3929 | |||
3930 | mkdir_p="$MKDIR_P" | ||
3931 | case $mkdir_p in | ||
3932 | [\\/$]* | ?:[\\/]*) ;; | ||
3933 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
3934 | esac | ||
3935 | |||
3936 | for ac_prog in gawk mawk nawk awk | ||
3937 | do | ||
3938 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3939 | set dummy $ac_prog; ac_word=$2 | ||
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3941 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3942 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
3943 | $as_echo_n "(cached) " >&6 | ||
3944 | else | ||
3945 | if test -n "$AWK"; then | ||
3946 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3947 | else | ||
3948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3949 | for as_dir in $PATH | ||
3950 | do | ||
3951 | IFS=$as_save_IFS | ||
3952 | test -z "$as_dir" && as_dir=. | ||
3953 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3955 | ac_cv_prog_AWK="$ac_prog" | ||
3956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3957 | break 2 | ||
3958 | fi | ||
3959 | done | ||
3960 | done | ||
3961 | IFS=$as_save_IFS | ||
3962 | |||
3963 | fi | ||
3964 | fi | ||
3965 | AWK=$ac_cv_prog_AWK | ||
3966 | if test -n "$AWK"; then | ||
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
3968 | $as_echo "$AWK" >&6; } | ||
3969 | else | ||
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3971 | $as_echo "no" >&6; } | ||
3972 | fi | ||
3973 | |||
3974 | |||
3975 | test -n "$AWK" && break | ||
3976 | done | ||
3977 | |||
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
3979 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
3980 | set x ${MAKE-make} | ||
3981 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
3982 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
3983 | $as_echo_n "(cached) " >&6 | ||
3984 | else | ||
3985 | cat >conftest.make <<\_ACEOF | ||
3986 | SHELL = /bin/sh | ||
3987 | all: | ||
3988 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
3989 | _ACEOF | ||
3990 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
3991 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
3992 | *@@@%%%=?*=@@@%%%*) | ||
3993 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
3994 | *) | ||
3995 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
3996 | esac | ||
3997 | rm -f conftest.make | ||
3998 | fi | ||
3999 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4001 | $as_echo "yes" >&6; } | ||
4002 | SET_MAKE= | ||
4003 | else | ||
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4005 | $as_echo "no" >&6; } | ||
4006 | SET_MAKE="MAKE=${MAKE-make}" | ||
4007 | fi | ||
4008 | |||
4009 | rm -rf .tst 2>/dev/null | ||
4010 | mkdir .tst 2>/dev/null | ||
4011 | if test -d .tst; then | ||
4012 | am__leading_dot=. | ||
4013 | else | ||
4014 | am__leading_dot=_ | ||
4015 | fi | ||
4016 | rmdir .tst 2>/dev/null | ||
4017 | |||
4018 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
4019 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
4020 | # is not polluted with repeated "-I." | ||
4021 | am__isrc=' -I$(srcdir)' | ||
4022 | # test to see if srcdir already configured | ||
4023 | if test -f $srcdir/config.status; then | ||
4024 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
4025 | fi | ||
4026 | fi | ||
4027 | |||
4028 | # test whether we have cygpath | ||
4029 | if test -z "$CYGPATH_W"; then | ||
4030 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
4031 | CYGPATH_W='cygpath -w' | ||
4032 | else | ||
4033 | CYGPATH_W=echo | ||
4034 | fi | ||
4035 | fi | ||
4036 | |||
4037 | |||
4038 | # Define the identity of the package. | ||
4039 | PACKAGE='evas' | ||
4040 | VERSION='1.1.0' | ||
4041 | |||
4042 | |||
4043 | cat >>confdefs.h <<_ACEOF | ||
4044 | #define PACKAGE "$PACKAGE" | ||
4045 | _ACEOF | ||
4046 | |||
4047 | |||
4048 | cat >>confdefs.h <<_ACEOF | ||
4049 | #define VERSION "$VERSION" | ||
4050 | _ACEOF | ||
4051 | |||
4052 | # Some tools Automake needs. | ||
4053 | |||
4054 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
4055 | |||
4056 | |||
4057 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
4058 | |||
4059 | |||
4060 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
4061 | |||
4062 | |||
4063 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
4064 | |||
4065 | |||
4066 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
4067 | |||
4068 | # We need awk for the "check" target. The system "awk" is bad on | ||
4069 | # some platforms. | ||
4070 | # Always define AMTAR for backward compatibility. | ||
4071 | |||
4072 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
4073 | |||
4074 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
4075 | |||
4076 | |||
4077 | |||
4078 | |||
4079 | |||
4080 | # Check whether --enable-silent-rules was given. | ||
4081 | if test "${enable_silent_rules+set}" = set; then : | ||
4082 | enableval=$enable_silent_rules; | ||
4083 | fi | ||
4084 | |||
4085 | case $enable_silent_rules in | ||
4086 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
4087 | no) AM_DEFAULT_VERBOSITY=1;; | ||
4088 | *) AM_DEFAULT_VERBOSITY=0;; | ||
4089 | esac | ||
4090 | AM_BACKSLASH='\' | ||
4091 | |||
4092 | |||
4093 | DEPDIR="${am__leading_dot}deps" | ||
4094 | |||
4095 | ac_config_commands="$ac_config_commands depfiles" | ||
4096 | |||
4097 | |||
4098 | am_make=${MAKE-make} | ||
4099 | cat > confinc << 'END' | ||
4100 | am__doit: | ||
4101 | @echo this is the am__doit target | ||
4102 | .PHONY: am__doit | ||
4103 | END | ||
4104 | # If we don't find an include directive, just comment out the code. | ||
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
4106 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
4107 | am__include="#" | ||
4108 | am__quote= | ||
4109 | _am_result=none | ||
4110 | # First try GNU make style include. | ||
4111 | echo "include confinc" > confmf | ||
4112 | # Ignore all kinds of additional output from `make'. | ||
4113 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4114 | *the\ am__doit\ target*) | ||
4115 | am__include=include | ||
4116 | am__quote= | ||
4117 | _am_result=GNU | ||
4118 | ;; | ||
4119 | esac | ||
4120 | # Now try BSD make style include. | ||
4121 | if test "$am__include" = "#"; then | ||
4122 | echo '.include "confinc"' > confmf | ||
4123 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4124 | *the\ am__doit\ target*) | ||
4125 | am__include=.include | ||
4126 | am__quote="\"" | ||
4127 | _am_result=BSD | ||
4128 | ;; | ||
4129 | esac | ||
4130 | fi | ||
4131 | |||
4132 | |||
4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
4134 | $as_echo "$_am_result" >&6; } | ||
4135 | rm -f confinc confmf | ||
4136 | |||
4137 | # Check whether --enable-dependency-tracking was given. | ||
4138 | if test "${enable_dependency_tracking+set}" = set; then : | ||
4139 | enableval=$enable_dependency_tracking; | ||
4140 | fi | ||
4141 | |||
4142 | if test "x$enable_dependency_tracking" != xno; then | ||
4143 | am_depcomp="$ac_aux_dir/depcomp" | ||
4144 | AMDEPBACKSLASH='\' | ||
4145 | fi | ||
4146 | if test "x$enable_dependency_tracking" != xno; then | ||
4147 | AMDEP_TRUE= | ||
4148 | AMDEP_FALSE='#' | ||
4149 | else | ||
4150 | AMDEP_TRUE='#' | ||
4151 | AMDEP_FALSE= | ||
4152 | fi | ||
4153 | |||
4154 | |||
4155 | ac_ext=c | ||
4156 | ac_cpp='$CPP $CPPFLAGS' | ||
4157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4160 | if test -n "$ac_tool_prefix"; then | ||
4161 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
4162 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4164 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4165 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4166 | $as_echo_n "(cached) " >&6 | ||
4167 | else | ||
4168 | if test -n "$CC"; then | ||
4169 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4170 | else | ||
4171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4172 | for as_dir in $PATH | ||
4173 | do | ||
4174 | IFS=$as_save_IFS | ||
4175 | test -z "$as_dir" && as_dir=. | ||
4176 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4178 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
4179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4180 | break 2 | ||
4181 | fi | ||
4182 | done | ||
4183 | done | ||
4184 | IFS=$as_save_IFS | ||
4185 | |||
4186 | fi | ||
4187 | fi | ||
4188 | CC=$ac_cv_prog_CC | ||
4189 | if test -n "$CC"; then | ||
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4191 | $as_echo "$CC" >&6; } | ||
4192 | else | ||
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4194 | $as_echo "no" >&6; } | ||
4195 | fi | ||
4196 | |||
4197 | |||
4198 | fi | ||
4199 | if test -z "$ac_cv_prog_CC"; then | ||
4200 | ac_ct_CC=$CC | ||
4201 | # Extract the first word of "gcc", so it can be a program name with args. | ||
4202 | set dummy gcc; ac_word=$2 | ||
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4204 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4205 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4206 | $as_echo_n "(cached) " >&6 | ||
4207 | else | ||
4208 | if test -n "$ac_ct_CC"; then | ||
4209 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4210 | else | ||
4211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4212 | for as_dir in $PATH | ||
4213 | do | ||
4214 | IFS=$as_save_IFS | ||
4215 | test -z "$as_dir" && as_dir=. | ||
4216 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4218 | ac_cv_prog_ac_ct_CC="gcc" | ||
4219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4220 | break 2 | ||
4221 | fi | ||
4222 | done | ||
4223 | done | ||
4224 | IFS=$as_save_IFS | ||
4225 | |||
4226 | fi | ||
4227 | fi | ||
4228 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4229 | if test -n "$ac_ct_CC"; then | ||
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4231 | $as_echo "$ac_ct_CC" >&6; } | ||
4232 | else | ||
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4234 | $as_echo "no" >&6; } | ||
4235 | fi | ||
4236 | |||
4237 | if test "x$ac_ct_CC" = x; then | ||
4238 | CC="" | ||
4239 | else | ||
4240 | case $cross_compiling:$ac_tool_warned in | ||
4241 | yes:) | ||
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4244 | ac_tool_warned=yes ;; | ||
4245 | esac | ||
4246 | CC=$ac_ct_CC | ||
4247 | fi | ||
4248 | else | ||
4249 | CC="$ac_cv_prog_CC" | ||
4250 | fi | ||
4251 | |||
4252 | if test -z "$CC"; then | ||
4253 | if test -n "$ac_tool_prefix"; then | ||
4254 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
4255 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4257 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4258 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4259 | $as_echo_n "(cached) " >&6 | ||
4260 | else | ||
4261 | if test -n "$CC"; then | ||
4262 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4263 | else | ||
4264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4265 | for as_dir in $PATH | ||
4266 | do | ||
4267 | IFS=$as_save_IFS | ||
4268 | test -z "$as_dir" && as_dir=. | ||
4269 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4271 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
4272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4273 | break 2 | ||
4274 | fi | ||
4275 | done | ||
4276 | done | ||
4277 | IFS=$as_save_IFS | ||
4278 | |||
4279 | fi | ||
4280 | fi | ||
4281 | CC=$ac_cv_prog_CC | ||
4282 | if test -n "$CC"; then | ||
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4284 | $as_echo "$CC" >&6; } | ||
4285 | else | ||
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4287 | $as_echo "no" >&6; } | ||
4288 | fi | ||
4289 | |||
4290 | |||
4291 | fi | ||
4292 | fi | ||
4293 | if test -z "$CC"; then | ||
4294 | # Extract the first word of "cc", so it can be a program name with args. | ||
4295 | set dummy cc; ac_word=$2 | ||
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4297 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4298 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4299 | $as_echo_n "(cached) " >&6 | ||
4300 | else | ||
4301 | if test -n "$CC"; then | ||
4302 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4303 | else | ||
4304 | ac_prog_rejected=no | ||
4305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4306 | for as_dir in $PATH | ||
4307 | do | ||
4308 | IFS=$as_save_IFS | ||
4309 | test -z "$as_dir" && as_dir=. | ||
4310 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4312 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
4313 | ac_prog_rejected=yes | ||
4314 | continue | ||
4315 | fi | ||
4316 | ac_cv_prog_CC="cc" | ||
4317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4318 | break 2 | ||
4319 | fi | ||
4320 | done | ||
4321 | done | ||
4322 | IFS=$as_save_IFS | ||
4323 | |||
4324 | if test $ac_prog_rejected = yes; then | ||
4325 | # We found a bogon in the path, so make sure we never use it. | ||
4326 | set dummy $ac_cv_prog_CC | ||
4327 | shift | ||
4328 | if test $# != 0; then | ||
4329 | # We chose a different compiler from the bogus one. | ||
4330 | # However, it has the same basename, so the bogon will be chosen | ||
4331 | # first if we set CC to just the basename; use the full file name. | ||
4332 | shift | ||
4333 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
4334 | fi | ||
4335 | fi | ||
4336 | fi | ||
4337 | fi | ||
4338 | CC=$ac_cv_prog_CC | ||
4339 | if test -n "$CC"; then | ||
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4341 | $as_echo "$CC" >&6; } | ||
4342 | else | ||
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4344 | $as_echo "no" >&6; } | ||
4345 | fi | ||
4346 | |||
4347 | |||
4348 | fi | ||
4349 | if test -z "$CC"; then | ||
4350 | if test -n "$ac_tool_prefix"; then | ||
4351 | for ac_prog in cl.exe | ||
4352 | do | ||
4353 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4354 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4356 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4357 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4358 | $as_echo_n "(cached) " >&6 | ||
4359 | else | ||
4360 | if test -n "$CC"; then | ||
4361 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4362 | else | ||
4363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4364 | for as_dir in $PATH | ||
4365 | do | ||
4366 | IFS=$as_save_IFS | ||
4367 | test -z "$as_dir" && as_dir=. | ||
4368 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4369 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4370 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
4371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4372 | break 2 | ||
4373 | fi | ||
4374 | done | ||
4375 | done | ||
4376 | IFS=$as_save_IFS | ||
4377 | |||
4378 | fi | ||
4379 | fi | ||
4380 | CC=$ac_cv_prog_CC | ||
4381 | if test -n "$CC"; then | ||
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4383 | $as_echo "$CC" >&6; } | ||
4384 | else | ||
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4386 | $as_echo "no" >&6; } | ||
4387 | fi | ||
4388 | |||
4389 | |||
4390 | test -n "$CC" && break | ||
4391 | done | ||
4392 | fi | ||
4393 | if test -z "$CC"; then | ||
4394 | ac_ct_CC=$CC | ||
4395 | for ac_prog in cl.exe | ||
4396 | do | ||
4397 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4398 | set dummy $ac_prog; ac_word=$2 | ||
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4400 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4401 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4402 | $as_echo_n "(cached) " >&6 | ||
4403 | else | ||
4404 | if test -n "$ac_ct_CC"; then | ||
4405 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4406 | else | ||
4407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4408 | for as_dir in $PATH | ||
4409 | do | ||
4410 | IFS=$as_save_IFS | ||
4411 | test -z "$as_dir" && as_dir=. | ||
4412 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4414 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
4415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4416 | break 2 | ||
4417 | fi | ||
4418 | done | ||
4419 | done | ||
4420 | IFS=$as_save_IFS | ||
4421 | |||
4422 | fi | ||
4423 | fi | ||
4424 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4425 | if test -n "$ac_ct_CC"; then | ||
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4427 | $as_echo "$ac_ct_CC" >&6; } | ||
4428 | else | ||
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4430 | $as_echo "no" >&6; } | ||
4431 | fi | ||
4432 | |||
4433 | |||
4434 | test -n "$ac_ct_CC" && break | ||
4435 | done | ||
4436 | |||
4437 | if test "x$ac_ct_CC" = x; then | ||
4438 | CC="" | ||
4439 | else | ||
4440 | case $cross_compiling:$ac_tool_warned in | ||
4441 | yes:) | ||
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4443 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4444 | ac_tool_warned=yes ;; | ||
4445 | esac | ||
4446 | CC=$ac_ct_CC | ||
4447 | fi | ||
4448 | fi | ||
4449 | |||
4450 | fi | ||
4451 | |||
4452 | |||
4453 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4454 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4455 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
4456 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4457 | |||
4458 | # Provide some information about the compiler. | ||
4459 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
4460 | set X $ac_compile | ||
4461 | ac_compiler=$2 | ||
4462 | for ac_option in --version -v -V -qversion; do | ||
4463 | { { ac_try="$ac_compiler $ac_option >&5" | ||
4464 | case "(($ac_try" in | ||
4465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4466 | *) ac_try_echo=$ac_try;; | ||
4467 | esac | ||
4468 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4469 | $as_echo "$ac_try_echo"; } >&5 | ||
4470 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
4471 | ac_status=$? | ||
4472 | if test -s conftest.err; then | ||
4473 | sed '10a\ | ||
4474 | ... rest of stderr output deleted ... | ||
4475 | 10q' conftest.err >conftest.er1 | ||
4476 | cat conftest.er1 >&5 | ||
4477 | fi | ||
4478 | rm -f conftest.er1 conftest.err | ||
4479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4480 | test $ac_status = 0; } | ||
4481 | done | ||
4482 | |||
4483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4484 | /* end confdefs.h. */ | ||
4485 | |||
4486 | int | ||
4487 | main () | ||
4488 | { | ||
4489 | |||
4490 | ; | ||
4491 | return 0; | ||
4492 | } | ||
4493 | _ACEOF | ||
4494 | ac_clean_files_save=$ac_clean_files | ||
4495 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
4496 | # Try to create an executable without -o first, disregard a.out. | ||
4497 | # It will help us diagnose broken compilers, and finding out an intuition | ||
4498 | # of exeext. | ||
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
4500 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
4501 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
4502 | |||
4503 | # The possible output files: | ||
4504 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
4505 | |||
4506 | ac_rmfiles= | ||
4507 | for ac_file in $ac_files | ||
4508 | do | ||
4509 | case $ac_file in | ||
4510 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4511 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
4512 | esac | ||
4513 | done | ||
4514 | rm -f $ac_rmfiles | ||
4515 | |||
4516 | if { { ac_try="$ac_link_default" | ||
4517 | case "(($ac_try" in | ||
4518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4519 | *) ac_try_echo=$ac_try;; | ||
4520 | esac | ||
4521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4522 | $as_echo "$ac_try_echo"; } >&5 | ||
4523 | (eval "$ac_link_default") 2>&5 | ||
4524 | ac_status=$? | ||
4525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4526 | test $ac_status = 0; }; then : | ||
4527 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
4528 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
4529 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
4530 | # so that the user can short-circuit this test for compilers unknown to | ||
4531 | # Autoconf. | ||
4532 | for ac_file in $ac_files '' | ||
4533 | do | ||
4534 | test -f "$ac_file" || continue | ||
4535 | case $ac_file in | ||
4536 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
4537 | ;; | ||
4538 | [ab].out ) | ||
4539 | # We found the default executable, but exeext='' is most | ||
4540 | # certainly right. | ||
4541 | break;; | ||
4542 | *.* ) | ||
4543 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
4544 | then :; else | ||
4545 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4546 | fi | ||
4547 | # We set ac_cv_exeext here because the later test for it is not | ||
4548 | # safe: cross compilers may not add the suffix if given an `-o' | ||
4549 | # argument, so we may need to know it at that point already. | ||
4550 | # Even if this section looks crufty: it has the advantage of | ||
4551 | # actually working. | ||
4552 | break;; | ||
4553 | * ) | ||
4554 | break;; | ||
4555 | esac | ||
4556 | done | ||
4557 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
4558 | |||
4559 | else | ||
4560 | ac_file='' | ||
4561 | fi | ||
4562 | if test -z "$ac_file"; then : | ||
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4564 | $as_echo "no" >&6; } | ||
4565 | $as_echo "$as_me: failed program was:" >&5 | ||
4566 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4567 | |||
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 77 "C compiler cannot create executables | ||
4571 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4572 | else | ||
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4574 | $as_echo "yes" >&6; } | ||
4575 | fi | ||
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
4577 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
4579 | $as_echo "$ac_file" >&6; } | ||
4580 | ac_exeext=$ac_cv_exeext | ||
4581 | |||
4582 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
4583 | ac_clean_files=$ac_clean_files_save | ||
4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
4585 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
4586 | if { { ac_try="$ac_link" | ||
4587 | case "(($ac_try" in | ||
4588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4589 | *) ac_try_echo=$ac_try;; | ||
4590 | esac | ||
4591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4592 | $as_echo "$ac_try_echo"; } >&5 | ||
4593 | (eval "$ac_link") 2>&5 | ||
4594 | ac_status=$? | ||
4595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4596 | test $ac_status = 0; }; then : | ||
4597 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
4598 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
4599 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
4600 | # `rm'. | ||
4601 | for ac_file in conftest.exe conftest conftest.*; do | ||
4602 | test -f "$ac_file" || continue | ||
4603 | case $ac_file in | ||
4604 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4605 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4606 | break;; | ||
4607 | * ) break;; | ||
4608 | esac | ||
4609 | done | ||
4610 | else | ||
4611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4613 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
4614 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4615 | fi | ||
4616 | rm -f conftest conftest$ac_cv_exeext | ||
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
4618 | $as_echo "$ac_cv_exeext" >&6; } | ||
4619 | |||
4620 | rm -f conftest.$ac_ext | ||
4621 | EXEEXT=$ac_cv_exeext | ||
4622 | ac_exeext=$EXEEXT | ||
4623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4624 | /* end confdefs.h. */ | ||
4625 | #include <stdio.h> | ||
4626 | int | ||
4627 | main () | ||
4628 | { | ||
4629 | FILE *f = fopen ("conftest.out", "w"); | ||
4630 | return ferror (f) || fclose (f) != 0; | ||
4631 | |||
4632 | ; | ||
4633 | return 0; | ||
4634 | } | ||
4635 | _ACEOF | ||
4636 | ac_clean_files="$ac_clean_files conftest.out" | ||
4637 | # Check that the compiler produces executables we can run. If not, either | ||
4638 | # the compiler is broken, or we cross compile. | ||
4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
4640 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
4641 | if test "$cross_compiling" != yes; then | ||
4642 | { { ac_try="$ac_link" | ||
4643 | case "(($ac_try" in | ||
4644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4645 | *) ac_try_echo=$ac_try;; | ||
4646 | esac | ||
4647 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4648 | $as_echo "$ac_try_echo"; } >&5 | ||
4649 | (eval "$ac_link") 2>&5 | ||
4650 | ac_status=$? | ||
4651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4652 | test $ac_status = 0; } | ||
4653 | if { ac_try='./conftest$ac_cv_exeext' | ||
4654 | { { case "(($ac_try" in | ||
4655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4656 | *) ac_try_echo=$ac_try;; | ||
4657 | esac | ||
4658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4659 | $as_echo "$ac_try_echo"; } >&5 | ||
4660 | (eval "$ac_try") 2>&5 | ||
4661 | ac_status=$? | ||
4662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4663 | test $ac_status = 0; }; }; then | ||
4664 | cross_compiling=no | ||
4665 | else | ||
4666 | if test "$cross_compiling" = maybe; then | ||
4667 | cross_compiling=yes | ||
4668 | else | ||
4669 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4670 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4671 | as_fn_error $? "cannot run C compiled programs. | ||
4672 | If you meant to cross compile, use \`--host'. | ||
4673 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4674 | fi | ||
4675 | fi | ||
4676 | fi | ||
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
4678 | $as_echo "$cross_compiling" >&6; } | ||
4679 | |||
4680 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
4681 | ac_clean_files=$ac_clean_files_save | ||
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
4683 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
4684 | if test "${ac_cv_objext+set}" = set; then : | ||
4685 | $as_echo_n "(cached) " >&6 | ||
4686 | else | ||
4687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4688 | /* end confdefs.h. */ | ||
4689 | |||
4690 | int | ||
4691 | main () | ||
4692 | { | ||
4693 | |||
4694 | ; | ||
4695 | return 0; | ||
4696 | } | ||
4697 | _ACEOF | ||
4698 | rm -f conftest.o conftest.obj | ||
4699 | if { { ac_try="$ac_compile" | ||
4700 | case "(($ac_try" in | ||
4701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4702 | *) ac_try_echo=$ac_try;; | ||
4703 | esac | ||
4704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4705 | $as_echo "$ac_try_echo"; } >&5 | ||
4706 | (eval "$ac_compile") 2>&5 | ||
4707 | ac_status=$? | ||
4708 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4709 | test $ac_status = 0; }; then : | ||
4710 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
4711 | test -f "$ac_file" || continue; | ||
4712 | case $ac_file in | ||
4713 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
4714 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
4715 | break;; | ||
4716 | esac | ||
4717 | done | ||
4718 | else | ||
4719 | $as_echo "$as_me: failed program was:" >&5 | ||
4720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4721 | |||
4722 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4723 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4724 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4725 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4726 | fi | ||
4727 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4728 | fi | ||
4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4730 | $as_echo "$ac_cv_objext" >&6; } | ||
4731 | OBJEXT=$ac_cv_objext | ||
4732 | ac_objext=$OBJEXT | ||
4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4734 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4735 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4736 | $as_echo_n "(cached) " >&6 | ||
4737 | else | ||
4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4739 | /* end confdefs.h. */ | ||
4740 | |||
4741 | int | ||
4742 | main () | ||
4743 | { | ||
4744 | #ifndef __GNUC__ | ||
4745 | choke me | ||
4746 | #endif | ||
4747 | |||
4748 | ; | ||
4749 | return 0; | ||
4750 | } | ||
4751 | _ACEOF | ||
4752 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4753 | ac_compiler_gnu=yes | ||
4754 | else | ||
4755 | ac_compiler_gnu=no | ||
4756 | fi | ||
4757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4758 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4759 | |||
4760 | fi | ||
4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4762 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4763 | if test $ac_compiler_gnu = yes; then | ||
4764 | GCC=yes | ||
4765 | else | ||
4766 | GCC= | ||
4767 | fi | ||
4768 | ac_test_CFLAGS=${CFLAGS+set} | ||
4769 | ac_save_CFLAGS=$CFLAGS | ||
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4771 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4772 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4773 | $as_echo_n "(cached) " >&6 | ||
4774 | else | ||
4775 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4776 | ac_c_werror_flag=yes | ||
4777 | ac_cv_prog_cc_g=no | ||
4778 | CFLAGS="-g" | ||
4779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4780 | /* end confdefs.h. */ | ||
4781 | |||
4782 | int | ||
4783 | main () | ||
4784 | { | ||
4785 | |||
4786 | ; | ||
4787 | return 0; | ||
4788 | } | ||
4789 | _ACEOF | ||
4790 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4791 | ac_cv_prog_cc_g=yes | ||
4792 | else | ||
4793 | CFLAGS="" | ||
4794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4795 | /* end confdefs.h. */ | ||
4796 | |||
4797 | int | ||
4798 | main () | ||
4799 | { | ||
4800 | |||
4801 | ; | ||
4802 | return 0; | ||
4803 | } | ||
4804 | _ACEOF | ||
4805 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4806 | |||
4807 | else | ||
4808 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4809 | CFLAGS="-g" | ||
4810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4811 | /* end confdefs.h. */ | ||
4812 | |||
4813 | int | ||
4814 | main () | ||
4815 | { | ||
4816 | |||
4817 | ; | ||
4818 | return 0; | ||
4819 | } | ||
4820 | _ACEOF | ||
4821 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4822 | ac_cv_prog_cc_g=yes | ||
4823 | fi | ||
4824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4825 | fi | ||
4826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4827 | fi | ||
4828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4829 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4830 | fi | ||
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4832 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4833 | if test "$ac_test_CFLAGS" = set; then | ||
4834 | CFLAGS=$ac_save_CFLAGS | ||
4835 | elif test $ac_cv_prog_cc_g = yes; then | ||
4836 | if test "$GCC" = yes; then | ||
4837 | CFLAGS="-g -O2" | ||
4838 | else | ||
4839 | CFLAGS="-g" | ||
4840 | fi | ||
4841 | else | ||
4842 | if test "$GCC" = yes; then | ||
4843 | CFLAGS="-O2" | ||
4844 | else | ||
4845 | CFLAGS= | ||
4846 | fi | ||
4847 | fi | ||
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4849 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4850 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4851 | $as_echo_n "(cached) " >&6 | ||
4852 | else | ||
4853 | ac_cv_prog_cc_c89=no | ||
4854 | ac_save_CC=$CC | ||
4855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4856 | /* end confdefs.h. */ | ||
4857 | #include <stdarg.h> | ||
4858 | #include <stdio.h> | ||
4859 | #include <sys/types.h> | ||
4860 | #include <sys/stat.h> | ||
4861 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4862 | struct buf { int x; }; | ||
4863 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4864 | static char *e (p, i) | ||
4865 | char **p; | ||
4866 | int i; | ||
4867 | { | ||
4868 | return p[i]; | ||
4869 | } | ||
4870 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4871 | { | ||
4872 | char *s; | ||
4873 | va_list v; | ||
4874 | va_start (v,p); | ||
4875 | s = g (p, va_arg (v,int)); | ||
4876 | va_end (v); | ||
4877 | return s; | ||
4878 | } | ||
4879 | |||
4880 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4881 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4882 | These don't provoke an error unfortunately, instead are silently treated | ||
4883 | as 'x'. The following induces an error, until -std is added to get | ||
4884 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4885 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4886 | that's true only with -std. */ | ||
4887 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4888 | |||
4889 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4890 | inside strings and character constants. */ | ||
4891 | #define FOO(x) 'x' | ||
4892 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4893 | |||
4894 | int test (int i, double x); | ||
4895 | struct s1 {int (*f) (int a);}; | ||
4896 | struct s2 {int (*f) (double a);}; | ||
4897 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4898 | int argc; | ||
4899 | char **argv; | ||
4900 | int | ||
4901 | main () | ||
4902 | { | ||
4903 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4904 | ; | ||
4905 | return 0; | ||
4906 | } | ||
4907 | _ACEOF | ||
4908 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4909 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4910 | do | ||
4911 | CC="$ac_save_CC $ac_arg" | ||
4912 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4913 | ac_cv_prog_cc_c89=$ac_arg | ||
4914 | fi | ||
4915 | rm -f core conftest.err conftest.$ac_objext | ||
4916 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4917 | done | ||
4918 | rm -f conftest.$ac_ext | ||
4919 | CC=$ac_save_CC | ||
4920 | |||
4921 | fi | ||
4922 | # AC_CACHE_VAL | ||
4923 | case "x$ac_cv_prog_cc_c89" in | ||
4924 | x) | ||
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4926 | $as_echo "none needed" >&6; } ;; | ||
4927 | xno) | ||
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4929 | $as_echo "unsupported" >&6; } ;; | ||
4930 | *) | ||
4931 | CC="$CC $ac_cv_prog_cc_c89" | ||
4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4933 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4934 | esac | ||
4935 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4936 | |||
4937 | fi | ||
4938 | |||
4939 | ac_ext=c | ||
4940 | ac_cpp='$CPP $CPPFLAGS' | ||
4941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4944 | |||
4945 | depcc="$CC" am_compiler_list= | ||
4946 | |||
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4948 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4949 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4950 | $as_echo_n "(cached) " >&6 | ||
4951 | else | ||
4952 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4953 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4954 | # making bogus files that we don't know about and never remove. For | ||
4955 | # instance it was reported that on HP-UX the gcc test will end up | ||
4956 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4957 | # in D'. | ||
4958 | mkdir conftest.dir | ||
4959 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4960 | # using a relative directory. | ||
4961 | cp "$am_depcomp" conftest.dir | ||
4962 | cd conftest.dir | ||
4963 | # We will build objects and dependencies in a subdirectory because | ||
4964 | # it helps to detect inapplicable dependency modes. For instance | ||
4965 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4966 | # side effect of compilation, but ICC will put the dependencies in | ||
4967 | # the current directory while Tru64 will put them in the object | ||
4968 | # directory. | ||
4969 | mkdir sub | ||
4970 | |||
4971 | am_cv_CC_dependencies_compiler_type=none | ||
4972 | if test "$am_compiler_list" = ""; then | ||
4973 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4974 | fi | ||
4975 | am__universal=false | ||
4976 | case " $depcc " in #( | ||
4977 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4978 | esac | ||
4979 | |||
4980 | for depmode in $am_compiler_list; do | ||
4981 | # Setup a source with many dependencies, because some compilers | ||
4982 | # like to wrap large dependency lists on column 80 (with \), and | ||
4983 | # we should not choose a depcomp mode which is confused by this. | ||
4984 | # | ||
4985 | # We need to recreate these files for each test, as the compiler may | ||
4986 | # overwrite some of them when testing with obscure command lines. | ||
4987 | # This happens at least with the AIX C compiler. | ||
4988 | : > sub/conftest.c | ||
4989 | for i in 1 2 3 4 5 6; do | ||
4990 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4991 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4992 | # Solaris 8's {/usr,}/bin/sh. | ||
4993 | touch sub/conftst$i.h | ||
4994 | done | ||
4995 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4996 | |||
4997 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4998 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4999 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
5000 | # versions had trouble with output in subdirs | ||
5001 | am__obj=sub/conftest.${OBJEXT-o} | ||
5002 | am__minus_obj="-o $am__obj" | ||
5003 | case $depmode in | ||
5004 | gcc) | ||
5005 | # This depmode causes a compiler race in universal mode. | ||
5006 | test "$am__universal" = false || continue | ||
5007 | ;; | ||
5008 | nosideeffect) | ||
5009 | # after this tag, mechanisms are not by side-effect, so they'll | ||
5010 | # only be used when explicitly requested | ||
5011 | if test "x$enable_dependency_tracking" = xyes; then | ||
5012 | continue | ||
5013 | else | ||
5014 | break | ||
5015 | fi | ||
5016 | ;; | ||
5017 | msvisualcpp | msvcmsys) | ||
5018 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
5019 | # not run yet. These depmodes are late enough in the game, and | ||
5020 | # so weak that their functioning should not be impacted. | ||
5021 | am__obj=conftest.${OBJEXT-o} | ||
5022 | am__minus_obj= | ||
5023 | ;; | ||
5024 | none) break ;; | ||
5025 | esac | ||
5026 | if depmode=$depmode \ | ||
5027 | source=sub/conftest.c object=$am__obj \ | ||
5028 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
5029 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
5030 | >/dev/null 2>conftest.err && | ||
5031 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
5032 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
5033 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
5034 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
5035 | # icc doesn't choke on unknown options, it will just issue warnings | ||
5036 | # or remarks (even with -Werror). So we grep stderr for any message | ||
5037 | # that says an option was ignored or not supported. | ||
5038 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
5039 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
5040 | # The diagnosis changed in icc 8.0: | ||
5041 | # icc: Command line remark: option '-MP' not supported | ||
5042 | if (grep 'ignoring option' conftest.err || | ||
5043 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
5044 | am_cv_CC_dependencies_compiler_type=$depmode | ||
5045 | break | ||
5046 | fi | ||
5047 | fi | ||
5048 | done | ||
5049 | |||
5050 | cd .. | ||
5051 | rm -rf conftest.dir | ||
5052 | else | ||
5053 | am_cv_CC_dependencies_compiler_type=none | ||
5054 | fi | ||
5055 | |||
5056 | fi | ||
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
5058 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
5059 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
5060 | |||
5061 | if | ||
5062 | test "x$enable_dependency_tracking" != xno \ | ||
5063 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
5064 | am__fastdepCC_TRUE= | ||
5065 | am__fastdepCC_FALSE='#' | ||
5066 | else | ||
5067 | am__fastdepCC_TRUE='#' | ||
5068 | am__fastdepCC_FALSE= | ||
5069 | fi | ||
5070 | |||
5071 | |||
5072 | |||
5073 | ac_ext=c | ||
5074 | ac_cpp='$CPP $CPPFLAGS' | ||
5075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
5079 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
5080 | # On Suns, sometimes $CPP names a directory. | ||
5081 | if test -n "$CPP" && test -d "$CPP"; then | ||
5082 | CPP= | ||
5083 | fi | ||
5084 | if test -z "$CPP"; then | ||
5085 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
5086 | $as_echo_n "(cached) " >&6 | ||
5087 | else | ||
5088 | # Double quotes because CPP needs to be expanded | ||
5089 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
5090 | do | ||
5091 | ac_preproc_ok=false | ||
5092 | for ac_c_preproc_warn_flag in '' yes | ||
5093 | do | ||
5094 | # Use a header file that comes with gcc, so configuring glibc | ||
5095 | # with a fresh cross-compiler works. | ||
5096 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5097 | # <limits.h> exists even on freestanding compilers. | ||
5098 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5099 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5101 | /* end confdefs.h. */ | ||
5102 | #ifdef __STDC__ | ||
5103 | # include <limits.h> | ||
5104 | #else | ||
5105 | # include <assert.h> | ||
5106 | #endif | ||
5107 | Syntax error | ||
5108 | _ACEOF | ||
5109 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5110 | |||
5111 | else | ||
5112 | # Broken: fails on valid input. | ||
5113 | continue | ||
5114 | fi | ||
5115 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5116 | |||
5117 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5118 | # can be detected and how. | ||
5119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5120 | /* end confdefs.h. */ | ||
5121 | #include <ac_nonexistent.h> | ||
5122 | _ACEOF | ||
5123 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5124 | # Broken: success on invalid input. | ||
5125 | continue | ||
5126 | else | ||
5127 | # Passes both tests. | ||
5128 | ac_preproc_ok=: | ||
5129 | break | ||
5130 | fi | ||
5131 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5132 | |||
5133 | done | ||
5134 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5135 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
5136 | if $ac_preproc_ok; then : | ||
5137 | break | ||
5138 | fi | ||
5139 | |||
5140 | done | ||
5141 | ac_cv_prog_CPP=$CPP | ||
5142 | |||
5143 | fi | ||
5144 | CPP=$ac_cv_prog_CPP | ||
5145 | else | ||
5146 | ac_cv_prog_CPP=$CPP | ||
5147 | fi | ||
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
5149 | $as_echo "$CPP" >&6; } | ||
5150 | ac_preproc_ok=false | ||
5151 | for ac_c_preproc_warn_flag in '' yes | ||
5152 | do | ||
5153 | # Use a header file that comes with gcc, so configuring glibc | ||
5154 | # with a fresh cross-compiler works. | ||
5155 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5156 | # <limits.h> exists even on freestanding compilers. | ||
5157 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5158 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5160 | /* end confdefs.h. */ | ||
5161 | #ifdef __STDC__ | ||
5162 | # include <limits.h> | ||
5163 | #else | ||
5164 | # include <assert.h> | ||
5165 | #endif | ||
5166 | Syntax error | ||
5167 | _ACEOF | ||
5168 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5169 | |||
5170 | else | ||
5171 | # Broken: fails on valid input. | ||
5172 | continue | ||
5173 | fi | ||
5174 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5175 | |||
5176 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5177 | # can be detected and how. | ||
5178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5179 | /* end confdefs.h. */ | ||
5180 | #include <ac_nonexistent.h> | ||
5181 | _ACEOF | ||
5182 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5183 | # Broken: success on invalid input. | ||
5184 | continue | ||
5185 | else | ||
5186 | # Passes both tests. | ||
5187 | ac_preproc_ok=: | ||
5188 | break | ||
5189 | fi | ||
5190 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5191 | |||
5192 | done | ||
5193 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5194 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
5195 | if $ac_preproc_ok; then : | ||
5196 | |||
5197 | else | ||
5198 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
5199 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
5200 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
5201 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
5202 | fi | ||
5203 | |||
5204 | ac_ext=c | ||
5205 | ac_cpp='$CPP $CPPFLAGS' | ||
5206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5209 | |||
5210 | |||
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
5212 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
5213 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
5214 | $as_echo_n "(cached) " >&6 | ||
5215 | else | ||
5216 | if test -z "$GREP"; then | ||
5217 | ac_path_GREP_found=false | ||
5218 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5220 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5221 | do | ||
5222 | IFS=$as_save_IFS | ||
5223 | test -z "$as_dir" && as_dir=. | ||
5224 | for ac_prog in grep ggrep; do | ||
5225 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5226 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5227 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
5228 | # Check for GNU ac_path_GREP and select it if it is found. | ||
5229 | # Check for GNU $ac_path_GREP | ||
5230 | case `"$ac_path_GREP" --version 2>&1` in | ||
5231 | *GNU*) | ||
5232 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
5233 | *) | ||
5234 | ac_count=0 | ||
5235 | $as_echo_n 0123456789 >"conftest.in" | ||
5236 | while : | ||
5237 | do | ||
5238 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5239 | mv "conftest.tmp" "conftest.in" | ||
5240 | cp "conftest.in" "conftest.nl" | ||
5241 | $as_echo 'GREP' >> "conftest.nl" | ||
5242 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5243 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5244 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5245 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
5246 | # Best one so far, save it but keep looking for a better one | ||
5247 | ac_cv_path_GREP="$ac_path_GREP" | ||
5248 | ac_path_GREP_max=$ac_count | ||
5249 | fi | ||
5250 | # 10*(2^10) chars as input seems more than enough | ||
5251 | test $ac_count -gt 10 && break | ||
5252 | done | ||
5253 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5254 | esac | ||
5255 | |||
5256 | $ac_path_GREP_found && break 3 | ||
5257 | done | ||
5258 | done | ||
5259 | done | ||
5260 | IFS=$as_save_IFS | ||
5261 | if test -z "$ac_cv_path_GREP"; then | ||
5262 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5263 | fi | ||
5264 | else | ||
5265 | ac_cv_path_GREP=$GREP | ||
5266 | fi | ||
5267 | |||
5268 | fi | ||
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
5270 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
5271 | GREP="$ac_cv_path_GREP" | ||
5272 | |||
5273 | |||
5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
5275 | $as_echo_n "checking for egrep... " >&6; } | ||
5276 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
5277 | $as_echo_n "(cached) " >&6 | ||
5278 | else | ||
5279 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
5280 | then ac_cv_path_EGREP="$GREP -E" | ||
5281 | else | ||
5282 | if test -z "$EGREP"; then | ||
5283 | ac_path_EGREP_found=false | ||
5284 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5286 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5287 | do | ||
5288 | IFS=$as_save_IFS | ||
5289 | test -z "$as_dir" && as_dir=. | ||
5290 | for ac_prog in egrep; do | ||
5291 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5292 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5293 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
5294 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
5295 | # Check for GNU $ac_path_EGREP | ||
5296 | case `"$ac_path_EGREP" --version 2>&1` in | ||
5297 | *GNU*) | ||
5298 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
5299 | *) | ||
5300 | ac_count=0 | ||
5301 | $as_echo_n 0123456789 >"conftest.in" | ||
5302 | while : | ||
5303 | do | ||
5304 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5305 | mv "conftest.tmp" "conftest.in" | ||
5306 | cp "conftest.in" "conftest.nl" | ||
5307 | $as_echo 'EGREP' >> "conftest.nl" | ||
5308 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5309 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5310 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5311 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
5312 | # Best one so far, save it but keep looking for a better one | ||
5313 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
5314 | ac_path_EGREP_max=$ac_count | ||
5315 | fi | ||
5316 | # 10*(2^10) chars as input seems more than enough | ||
5317 | test $ac_count -gt 10 && break | ||
5318 | done | ||
5319 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5320 | esac | ||
5321 | |||
5322 | $ac_path_EGREP_found && break 3 | ||
5323 | done | ||
5324 | done | ||
5325 | done | ||
5326 | IFS=$as_save_IFS | ||
5327 | if test -z "$ac_cv_path_EGREP"; then | ||
5328 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5329 | fi | ||
5330 | else | ||
5331 | ac_cv_path_EGREP=$EGREP | ||
5332 | fi | ||
5333 | |||
5334 | fi | ||
5335 | fi | ||
5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
5337 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
5338 | EGREP="$ac_cv_path_EGREP" | ||
5339 | |||
5340 | |||
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
5342 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
5343 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
5344 | $as_echo_n "(cached) " >&6 | ||
5345 | else | ||
5346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5347 | /* end confdefs.h. */ | ||
5348 | #include <stdlib.h> | ||
5349 | #include <stdarg.h> | ||
5350 | #include <string.h> | ||
5351 | #include <float.h> | ||
5352 | |||
5353 | int | ||
5354 | main () | ||
5355 | { | ||
5356 | |||
5357 | ; | ||
5358 | return 0; | ||
5359 | } | ||
5360 | _ACEOF | ||
5361 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5362 | ac_cv_header_stdc=yes | ||
5363 | else | ||
5364 | ac_cv_header_stdc=no | ||
5365 | fi | ||
5366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5367 | |||
5368 | if test $ac_cv_header_stdc = yes; then | ||
5369 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
5370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5371 | /* end confdefs.h. */ | ||
5372 | #include <string.h> | ||
5373 | |||
5374 | _ACEOF | ||
5375 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5376 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
5377 | |||
5378 | else | ||
5379 | ac_cv_header_stdc=no | ||
5380 | fi | ||
5381 | rm -f conftest* | ||
5382 | |||
5383 | fi | ||
5384 | |||
5385 | if test $ac_cv_header_stdc = yes; then | ||
5386 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
5387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5388 | /* end confdefs.h. */ | ||
5389 | #include <stdlib.h> | ||
5390 | |||
5391 | _ACEOF | ||
5392 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5393 | $EGREP "free" >/dev/null 2>&1; then : | ||
5394 | |||
5395 | else | ||
5396 | ac_cv_header_stdc=no | ||
5397 | fi | ||
5398 | rm -f conftest* | ||
5399 | |||
5400 | fi | ||
5401 | |||
5402 | if test $ac_cv_header_stdc = yes; then | ||
5403 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
5404 | if test "$cross_compiling" = yes; then : | ||
5405 | : | ||
5406 | else | ||
5407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5408 | /* end confdefs.h. */ | ||
5409 | #include <ctype.h> | ||
5410 | #include <stdlib.h> | ||
5411 | #if ((' ' & 0x0FF) == 0x020) | ||
5412 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
5413 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
5414 | #else | ||
5415 | # define ISLOWER(c) \ | ||
5416 | (('a' <= (c) && (c) <= 'i') \ | ||
5417 | || ('j' <= (c) && (c) <= 'r') \ | ||
5418 | || ('s' <= (c) && (c) <= 'z')) | ||
5419 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
5420 | #endif | ||
5421 | |||
5422 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
5423 | int | ||
5424 | main () | ||
5425 | { | ||
5426 | int i; | ||
5427 | for (i = 0; i < 256; i++) | ||
5428 | if (XOR (islower (i), ISLOWER (i)) | ||
5429 | || toupper (i) != TOUPPER (i)) | ||
5430 | return 2; | ||
5431 | return 0; | ||
5432 | } | ||
5433 | _ACEOF | ||
5434 | if ac_fn_c_try_run "$LINENO"; then : | ||
5435 | |||
5436 | else | ||
5437 | ac_cv_header_stdc=no | ||
5438 | fi | ||
5439 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
5440 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
5441 | fi | ||
5442 | |||
5443 | fi | ||
5444 | fi | ||
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
5446 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
5447 | if test $ac_cv_header_stdc = yes; then | ||
5448 | |||
5449 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
5450 | |||
5451 | fi | ||
5452 | |||
5453 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
5454 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
5455 | inttypes.h stdint.h unistd.h | ||
5456 | do : | ||
5457 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5458 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
5459 | " | ||
5460 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
5461 | cat >>confdefs.h <<_ACEOF | ||
5462 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5463 | _ACEOF | ||
5464 | |||
5465 | fi | ||
5466 | |||
5467 | done | ||
5468 | |||
5469 | |||
5470 | |||
5471 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||
5472 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | ||
5473 | MINIX=yes | ||
5474 | else | ||
5475 | MINIX= | ||
5476 | fi | ||
5477 | |||
5478 | |||
5479 | if test "$MINIX" = yes; then | ||
5480 | |||
5481 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||
5482 | |||
5483 | |||
5484 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||
5485 | |||
5486 | |||
5487 | $as_echo "#define _MINIX 1" >>confdefs.h | ||
5488 | |||
5489 | fi | ||
5490 | |||
5491 | |||
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||
5493 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||
5494 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | ||
5495 | $as_echo_n "(cached) " >&6 | ||
5496 | else | ||
5497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5498 | /* end confdefs.h. */ | ||
5499 | |||
5500 | # define __EXTENSIONS__ 1 | ||
5501 | $ac_includes_default | ||
5502 | int | ||
5503 | main () | ||
5504 | { | ||
5505 | |||
5506 | ; | ||
5507 | return 0; | ||
5508 | } | ||
5509 | _ACEOF | ||
5510 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5511 | ac_cv_safe_to_define___extensions__=yes | ||
5512 | else | ||
5513 | ac_cv_safe_to_define___extensions__=no | ||
5514 | fi | ||
5515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5516 | fi | ||
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||
5518 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||
5519 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
5520 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||
5521 | |||
5522 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||
5523 | |||
5524 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||
5525 | |||
5526 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||
5527 | |||
5528 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||
5529 | |||
5530 | |||
5531 | |||
5532 | |||
5533 | # Make sure we can run config.sub. | ||
5534 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
5535 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
5536 | |||
5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
5538 | $as_echo_n "checking build system type... " >&6; } | ||
5539 | if test "${ac_cv_build+set}" = set; then : | ||
5540 | $as_echo_n "(cached) " >&6 | ||
5541 | else | ||
5542 | ac_build_alias=$build_alias | ||
5543 | test "x$ac_build_alias" = x && | ||
5544 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
5545 | test "x$ac_build_alias" = x && | ||
5546 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
5547 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
5548 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
5549 | |||
5550 | fi | ||
5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
5552 | $as_echo "$ac_cv_build" >&6; } | ||
5553 | case $ac_cv_build in | ||
5554 | *-*-*) ;; | ||
5555 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
5556 | esac | ||
5557 | build=$ac_cv_build | ||
5558 | ac_save_IFS=$IFS; IFS='-' | ||
5559 | set x $ac_cv_build | ||
5560 | shift | ||
5561 | build_cpu=$1 | ||
5562 | build_vendor=$2 | ||
5563 | shift; shift | ||
5564 | # Remember, the first character of IFS is used to create $*, | ||
5565 | # except with old shells: | ||
5566 | build_os=$* | ||
5567 | IFS=$ac_save_IFS | ||
5568 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
5569 | |||
5570 | |||
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
5572 | $as_echo_n "checking host system type... " >&6; } | ||
5573 | if test "${ac_cv_host+set}" = set; then : | ||
5574 | $as_echo_n "(cached) " >&6 | ||
5575 | else | ||
5576 | if test "x$host_alias" = x; then | ||
5577 | ac_cv_host=$ac_cv_build | ||
5578 | else | ||
5579 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
5580 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
5581 | fi | ||
5582 | |||
5583 | fi | ||
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
5585 | $as_echo "$ac_cv_host" >&6; } | ||
5586 | case $ac_cv_host in | ||
5587 | *-*-*) ;; | ||
5588 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
5589 | esac | ||
5590 | host=$ac_cv_host | ||
5591 | ac_save_IFS=$IFS; IFS='-' | ||
5592 | set x $ac_cv_host | ||
5593 | shift | ||
5594 | host_cpu=$1 | ||
5595 | host_vendor=$2 | ||
5596 | shift; shift | ||
5597 | # Remember, the first character of IFS is used to create $*, | ||
5598 | # except with old shells: | ||
5599 | host_os=$* | ||
5600 | IFS=$ac_save_IFS | ||
5601 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
5602 | |||
5603 | |||
5604 | enable_win32_dll=yes | ||
5605 | |||
5606 | case $host in | ||
5607 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
5608 | if test -n "$ac_tool_prefix"; then | ||
5609 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
5610 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5612 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5613 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
5614 | $as_echo_n "(cached) " >&6 | ||
5615 | else | ||
5616 | if test -n "$AS"; then | ||
5617 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
5618 | else | ||
5619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5620 | for as_dir in $PATH | ||
5621 | do | ||
5622 | IFS=$as_save_IFS | ||
5623 | test -z "$as_dir" && as_dir=. | ||
5624 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5626 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
5627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5628 | break 2 | ||
5629 | fi | ||
5630 | done | ||
5631 | done | ||
5632 | IFS=$as_save_IFS | ||
5633 | |||
5634 | fi | ||
5635 | fi | ||
5636 | AS=$ac_cv_prog_AS | ||
5637 | if test -n "$AS"; then | ||
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
5639 | $as_echo "$AS" >&6; } | ||
5640 | else | ||
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5642 | $as_echo "no" >&6; } | ||
5643 | fi | ||
5644 | |||
5645 | |||
5646 | fi | ||
5647 | if test -z "$ac_cv_prog_AS"; then | ||
5648 | ac_ct_AS=$AS | ||
5649 | # Extract the first word of "as", so it can be a program name with args. | ||
5650 | set dummy as; ac_word=$2 | ||
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5652 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5653 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
5654 | $as_echo_n "(cached) " >&6 | ||
5655 | else | ||
5656 | if test -n "$ac_ct_AS"; then | ||
5657 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
5658 | else | ||
5659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5660 | for as_dir in $PATH | ||
5661 | do | ||
5662 | IFS=$as_save_IFS | ||
5663 | test -z "$as_dir" && as_dir=. | ||
5664 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5666 | ac_cv_prog_ac_ct_AS="as" | ||
5667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5668 | break 2 | ||
5669 | fi | ||
5670 | done | ||
5671 | done | ||
5672 | IFS=$as_save_IFS | ||
5673 | |||
5674 | fi | ||
5675 | fi | ||
5676 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
5677 | if test -n "$ac_ct_AS"; then | ||
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
5679 | $as_echo "$ac_ct_AS" >&6; } | ||
5680 | else | ||
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5682 | $as_echo "no" >&6; } | ||
5683 | fi | ||
5684 | |||
5685 | if test "x$ac_ct_AS" = x; then | ||
5686 | AS="false" | ||
5687 | else | ||
5688 | case $cross_compiling:$ac_tool_warned in | ||
5689 | yes:) | ||
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5692 | ac_tool_warned=yes ;; | ||
5693 | esac | ||
5694 | AS=$ac_ct_AS | ||
5695 | fi | ||
5696 | else | ||
5697 | AS="$ac_cv_prog_AS" | ||
5698 | fi | ||
5699 | |||
5700 | if test -n "$ac_tool_prefix"; then | ||
5701 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
5702 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5704 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5705 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
5706 | $as_echo_n "(cached) " >&6 | ||
5707 | else | ||
5708 | if test -n "$DLLTOOL"; then | ||
5709 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
5710 | else | ||
5711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5712 | for as_dir in $PATH | ||
5713 | do | ||
5714 | IFS=$as_save_IFS | ||
5715 | test -z "$as_dir" && as_dir=. | ||
5716 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5718 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
5719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5720 | break 2 | ||
5721 | fi | ||
5722 | done | ||
5723 | done | ||
5724 | IFS=$as_save_IFS | ||
5725 | |||
5726 | fi | ||
5727 | fi | ||
5728 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
5729 | if test -n "$DLLTOOL"; then | ||
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
5731 | $as_echo "$DLLTOOL" >&6; } | ||
5732 | else | ||
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5734 | $as_echo "no" >&6; } | ||
5735 | fi | ||
5736 | |||
5737 | |||
5738 | fi | ||
5739 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
5740 | ac_ct_DLLTOOL=$DLLTOOL | ||
5741 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
5742 | set dummy dlltool; ac_word=$2 | ||
5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5744 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5745 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
5746 | $as_echo_n "(cached) " >&6 | ||
5747 | else | ||
5748 | if test -n "$ac_ct_DLLTOOL"; then | ||
5749 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
5750 | else | ||
5751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5752 | for as_dir in $PATH | ||
5753 | do | ||
5754 | IFS=$as_save_IFS | ||
5755 | test -z "$as_dir" && as_dir=. | ||
5756 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5758 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
5759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5760 | break 2 | ||
5761 | fi | ||
5762 | done | ||
5763 | done | ||
5764 | IFS=$as_save_IFS | ||
5765 | |||
5766 | fi | ||
5767 | fi | ||
5768 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
5769 | if test -n "$ac_ct_DLLTOOL"; then | ||
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
5771 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
5772 | else | ||
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5774 | $as_echo "no" >&6; } | ||
5775 | fi | ||
5776 | |||
5777 | if test "x$ac_ct_DLLTOOL" = x; then | ||
5778 | DLLTOOL="false" | ||
5779 | else | ||
5780 | case $cross_compiling:$ac_tool_warned in | ||
5781 | yes:) | ||
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5784 | ac_tool_warned=yes ;; | ||
5785 | esac | ||
5786 | DLLTOOL=$ac_ct_DLLTOOL | ||
5787 | fi | ||
5788 | else | ||
5789 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
5790 | fi | ||
5791 | |||
5792 | if test -n "$ac_tool_prefix"; then | ||
5793 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5794 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5796 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5797 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5798 | $as_echo_n "(cached) " >&6 | ||
5799 | else | ||
5800 | if test -n "$OBJDUMP"; then | ||
5801 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5802 | else | ||
5803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5804 | for as_dir in $PATH | ||
5805 | do | ||
5806 | IFS=$as_save_IFS | ||
5807 | test -z "$as_dir" && as_dir=. | ||
5808 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5810 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5812 | break 2 | ||
5813 | fi | ||
5814 | done | ||
5815 | done | ||
5816 | IFS=$as_save_IFS | ||
5817 | |||
5818 | fi | ||
5819 | fi | ||
5820 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5821 | if test -n "$OBJDUMP"; then | ||
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5823 | $as_echo "$OBJDUMP" >&6; } | ||
5824 | else | ||
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5826 | $as_echo "no" >&6; } | ||
5827 | fi | ||
5828 | |||
5829 | |||
5830 | fi | ||
5831 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5832 | ac_ct_OBJDUMP=$OBJDUMP | ||
5833 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5834 | set dummy objdump; ac_word=$2 | ||
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5836 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5837 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
5838 | $as_echo_n "(cached) " >&6 | ||
5839 | else | ||
5840 | if test -n "$ac_ct_OBJDUMP"; then | ||
5841 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5842 | else | ||
5843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5844 | for as_dir in $PATH | ||
5845 | do | ||
5846 | IFS=$as_save_IFS | ||
5847 | test -z "$as_dir" && as_dir=. | ||
5848 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5850 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5852 | break 2 | ||
5853 | fi | ||
5854 | done | ||
5855 | done | ||
5856 | IFS=$as_save_IFS | ||
5857 | |||
5858 | fi | ||
5859 | fi | ||
5860 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5861 | if test -n "$ac_ct_OBJDUMP"; then | ||
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5863 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5864 | else | ||
5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5866 | $as_echo "no" >&6; } | ||
5867 | fi | ||
5868 | |||
5869 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5870 | OBJDUMP="false" | ||
5871 | else | ||
5872 | case $cross_compiling:$ac_tool_warned in | ||
5873 | yes:) | ||
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5875 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5876 | ac_tool_warned=yes ;; | ||
5877 | esac | ||
5878 | OBJDUMP=$ac_ct_OBJDUMP | ||
5879 | fi | ||
5880 | else | ||
5881 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5882 | fi | ||
5883 | |||
5884 | ;; | ||
5885 | esac | ||
5886 | |||
5887 | test -z "$AS" && AS=as | ||
5888 | |||
5889 | |||
5890 | |||
5891 | |||
5892 | |||
5893 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
5894 | |||
5895 | |||
5896 | |||
5897 | |||
5898 | |||
5899 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5900 | |||
5901 | |||
5902 | |||
5903 | |||
5904 | |||
5905 | |||
5906 | |||
5907 | case `pwd` in | ||
5908 | *\ * | *\ *) | ||
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
5910 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
5911 | esac | ||
5912 | |||
5913 | |||
5914 | |||
5915 | macro_version='2.2.6b' | ||
5916 | macro_revision='1.3017' | ||
5917 | |||
5918 | |||
5919 | |||
5920 | |||
5921 | |||
5922 | |||
5923 | |||
5924 | |||
5925 | |||
5926 | |||
5927 | |||
5928 | |||
5929 | |||
5930 | ltmain="$ac_aux_dir/ltmain.sh" | ||
5931 | |||
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
5933 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
5934 | if test "${ac_cv_path_SED+set}" = set; then : | ||
5935 | $as_echo_n "(cached) " >&6 | ||
5936 | else | ||
5937 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
5938 | for ac_i in 1 2 3 4 5 6 7; do | ||
5939 | ac_script="$ac_script$as_nl$ac_script" | ||
5940 | done | ||
5941 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
5942 | { ac_script=; unset ac_script;} | ||
5943 | if test -z "$SED"; then | ||
5944 | ac_path_SED_found=false | ||
5945 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5947 | for as_dir in $PATH | ||
5948 | do | ||
5949 | IFS=$as_save_IFS | ||
5950 | test -z "$as_dir" && as_dir=. | ||
5951 | for ac_prog in sed gsed; do | ||
5952 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5953 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
5954 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
5955 | # Check for GNU ac_path_SED and select it if it is found. | ||
5956 | # Check for GNU $ac_path_SED | ||
5957 | case `"$ac_path_SED" --version 2>&1` in | ||
5958 | *GNU*) | ||
5959 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
5960 | *) | ||
5961 | ac_count=0 | ||
5962 | $as_echo_n 0123456789 >"conftest.in" | ||
5963 | while : | ||
5964 | do | ||
5965 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5966 | mv "conftest.tmp" "conftest.in" | ||
5967 | cp "conftest.in" "conftest.nl" | ||
5968 | $as_echo '' >> "conftest.nl" | ||
5969 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5970 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5971 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5972 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
5973 | # Best one so far, save it but keep looking for a better one | ||
5974 | ac_cv_path_SED="$ac_path_SED" | ||
5975 | ac_path_SED_max=$ac_count | ||
5976 | fi | ||
5977 | # 10*(2^10) chars as input seems more than enough | ||
5978 | test $ac_count -gt 10 && break | ||
5979 | done | ||
5980 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5981 | esac | ||
5982 | |||
5983 | $ac_path_SED_found && break 3 | ||
5984 | done | ||
5985 | done | ||
5986 | done | ||
5987 | IFS=$as_save_IFS | ||
5988 | if test -z "$ac_cv_path_SED"; then | ||
5989 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
5990 | fi | ||
5991 | else | ||
5992 | ac_cv_path_SED=$SED | ||
5993 | fi | ||
5994 | |||
5995 | fi | ||
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
5997 | $as_echo "$ac_cv_path_SED" >&6; } | ||
5998 | SED="$ac_cv_path_SED" | ||
5999 | rm -f conftest.sed | ||
6000 | |||
6001 | test -z "$SED" && SED=sed | ||
6002 | Xsed="$SED -e 1s/^X//" | ||
6003 | |||
6004 | |||
6005 | |||
6006 | |||
6007 | |||
6008 | |||
6009 | |||
6010 | |||
6011 | |||
6012 | |||
6013 | |||
6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
6015 | $as_echo_n "checking for fgrep... " >&6; } | ||
6016 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
6017 | $as_echo_n "(cached) " >&6 | ||
6018 | else | ||
6019 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
6020 | then ac_cv_path_FGREP="$GREP -F" | ||
6021 | else | ||
6022 | if test -z "$FGREP"; then | ||
6023 | ac_path_FGREP_found=false | ||
6024 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
6025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6026 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
6027 | do | ||
6028 | IFS=$as_save_IFS | ||
6029 | test -z "$as_dir" && as_dir=. | ||
6030 | for ac_prog in fgrep; do | ||
6031 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6032 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
6033 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
6034 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
6035 | # Check for GNU $ac_path_FGREP | ||
6036 | case `"$ac_path_FGREP" --version 2>&1` in | ||
6037 | *GNU*) | ||
6038 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
6039 | *) | ||
6040 | ac_count=0 | ||
6041 | $as_echo_n 0123456789 >"conftest.in" | ||
6042 | while : | ||
6043 | do | ||
6044 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
6045 | mv "conftest.tmp" "conftest.in" | ||
6046 | cp "conftest.in" "conftest.nl" | ||
6047 | $as_echo 'FGREP' >> "conftest.nl" | ||
6048 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
6049 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
6050 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
6051 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
6052 | # Best one so far, save it but keep looking for a better one | ||
6053 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
6054 | ac_path_FGREP_max=$ac_count | ||
6055 | fi | ||
6056 | # 10*(2^10) chars as input seems more than enough | ||
6057 | test $ac_count -gt 10 && break | ||
6058 | done | ||
6059 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
6060 | esac | ||
6061 | |||
6062 | $ac_path_FGREP_found && break 3 | ||
6063 | done | ||
6064 | done | ||
6065 | done | ||
6066 | IFS=$as_save_IFS | ||
6067 | if test -z "$ac_cv_path_FGREP"; then | ||
6068 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
6069 | fi | ||
6070 | else | ||
6071 | ac_cv_path_FGREP=$FGREP | ||
6072 | fi | ||
6073 | |||
6074 | fi | ||
6075 | fi | ||
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
6077 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
6078 | FGREP="$ac_cv_path_FGREP" | ||
6079 | |||
6080 | |||
6081 | test -z "$GREP" && GREP=grep | ||
6082 | |||
6083 | |||
6084 | |||
6085 | |||
6086 | |||
6087 | |||
6088 | |||
6089 | |||
6090 | |||
6091 | |||
6092 | |||
6093 | |||
6094 | |||
6095 | |||
6096 | |||
6097 | |||
6098 | |||
6099 | |||
6100 | |||
6101 | # Check whether --with-gnu-ld was given. | ||
6102 | if test "${with_gnu_ld+set}" = set; then : | ||
6103 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
6104 | else | ||
6105 | with_gnu_ld=no | ||
6106 | fi | ||
6107 | |||
6108 | ac_prog=ld | ||
6109 | if test "$GCC" = yes; then | ||
6110 | # Check if gcc -print-prog-name=ld gives a path. | ||
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
6112 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
6113 | case $host in | ||
6114 | *-*-mingw*) | ||
6115 | # gcc leaves a trailing carriage return which upsets mingw | ||
6116 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
6117 | *) | ||
6118 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
6119 | esac | ||
6120 | case $ac_prog in | ||
6121 | # Accept absolute paths. | ||
6122 | [\\/]* | ?:[\\/]*) | ||
6123 | re_direlt='/[^/][^/]*/\.\./' | ||
6124 | # Canonicalize the pathname of ld | ||
6125 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
6126 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
6127 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
6128 | done | ||
6129 | test -z "$LD" && LD="$ac_prog" | ||
6130 | ;; | ||
6131 | "") | ||
6132 | # If it fails, then pretend we aren't using GCC. | ||
6133 | ac_prog=ld | ||
6134 | ;; | ||
6135 | *) | ||
6136 | # If it is relative, then search for the first ld in PATH. | ||
6137 | with_gnu_ld=unknown | ||
6138 | ;; | ||
6139 | esac | ||
6140 | elif test "$with_gnu_ld" = yes; then | ||
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
6142 | $as_echo_n "checking for GNU ld... " >&6; } | ||
6143 | else | ||
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
6145 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
6146 | fi | ||
6147 | if test "${lt_cv_path_LD+set}" = set; then : | ||
6148 | $as_echo_n "(cached) " >&6 | ||
6149 | else | ||
6150 | if test -z "$LD"; then | ||
6151 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6152 | for ac_dir in $PATH; do | ||
6153 | IFS="$lt_save_ifs" | ||
6154 | test -z "$ac_dir" && ac_dir=. | ||
6155 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
6156 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
6157 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
6158 | # but apparently some variants of GNU ld only accept -v. | ||
6159 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
6160 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
6161 | *GNU* | *'with BFD'*) | ||
6162 | test "$with_gnu_ld" != no && break | ||
6163 | ;; | ||
6164 | *) | ||
6165 | test "$with_gnu_ld" != yes && break | ||
6166 | ;; | ||
6167 | esac | ||
6168 | fi | ||
6169 | done | ||
6170 | IFS="$lt_save_ifs" | ||
6171 | else | ||
6172 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
6173 | fi | ||
6174 | fi | ||
6175 | |||
6176 | LD="$lt_cv_path_LD" | ||
6177 | if test -n "$LD"; then | ||
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
6179 | $as_echo "$LD" >&6; } | ||
6180 | else | ||
6181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6182 | $as_echo "no" >&6; } | ||
6183 | fi | ||
6184 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
6186 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
6187 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
6188 | $as_echo_n "(cached) " >&6 | ||
6189 | else | ||
6190 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
6191 | case `$LD -v 2>&1 </dev/null` in | ||
6192 | *GNU* | *'with BFD'*) | ||
6193 | lt_cv_prog_gnu_ld=yes | ||
6194 | ;; | ||
6195 | *) | ||
6196 | lt_cv_prog_gnu_ld=no | ||
6197 | ;; | ||
6198 | esac | ||
6199 | fi | ||
6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
6201 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
6202 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
6203 | |||
6204 | |||
6205 | |||
6206 | |||
6207 | |||
6208 | |||
6209 | |||
6210 | |||
6211 | |||
6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
6213 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
6214 | if test "${lt_cv_path_NM+set}" = set; then : | ||
6215 | $as_echo_n "(cached) " >&6 | ||
6216 | else | ||
6217 | if test -n "$NM"; then | ||
6218 | # Let the user override the test. | ||
6219 | lt_cv_path_NM="$NM" | ||
6220 | else | ||
6221 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
6222 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
6223 | lt_nm_to_check="$lt_nm_to_check nm" | ||
6224 | fi | ||
6225 | for lt_tmp_nm in $lt_nm_to_check; do | ||
6226 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6227 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
6228 | IFS="$lt_save_ifs" | ||
6229 | test -z "$ac_dir" && ac_dir=. | ||
6230 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
6231 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
6232 | # Check to see if the nm accepts a BSD-compat flag. | ||
6233 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
6234 | # nm: unknown option "B" ignored | ||
6235 | # Tru64's nm complains that /dev/null is an invalid object file | ||
6236 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
6237 | */dev/null* | *'Invalid file or object type'*) | ||
6238 | lt_cv_path_NM="$tmp_nm -B" | ||
6239 | break | ||
6240 | ;; | ||
6241 | *) | ||
6242 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
6243 | */dev/null*) | ||
6244 | lt_cv_path_NM="$tmp_nm -p" | ||
6245 | break | ||
6246 | ;; | ||
6247 | *) | ||
6248 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
6249 | continue # so that we can try to find one that supports BSD flags | ||
6250 | ;; | ||
6251 | esac | ||
6252 | ;; | ||
6253 | esac | ||
6254 | fi | ||
6255 | done | ||
6256 | IFS="$lt_save_ifs" | ||
6257 | done | ||
6258 | : ${lt_cv_path_NM=no} | ||
6259 | fi | ||
6260 | fi | ||
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
6262 | $as_echo "$lt_cv_path_NM" >&6; } | ||
6263 | if test "$lt_cv_path_NM" != "no"; then | ||
6264 | NM="$lt_cv_path_NM" | ||
6265 | else | ||
6266 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
6267 | if test -n "$ac_tool_prefix"; then | ||
6268 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
6269 | do | ||
6270 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
6271 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6273 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6274 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
6275 | $as_echo_n "(cached) " >&6 | ||
6276 | else | ||
6277 | if test -n "$DUMPBIN"; then | ||
6278 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
6279 | else | ||
6280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6281 | for as_dir in $PATH | ||
6282 | do | ||
6283 | IFS=$as_save_IFS | ||
6284 | test -z "$as_dir" && as_dir=. | ||
6285 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6287 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
6288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6289 | break 2 | ||
6290 | fi | ||
6291 | done | ||
6292 | done | ||
6293 | IFS=$as_save_IFS | ||
6294 | |||
6295 | fi | ||
6296 | fi | ||
6297 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
6298 | if test -n "$DUMPBIN"; then | ||
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
6300 | $as_echo "$DUMPBIN" >&6; } | ||
6301 | else | ||
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6303 | $as_echo "no" >&6; } | ||
6304 | fi | ||
6305 | |||
6306 | |||
6307 | test -n "$DUMPBIN" && break | ||
6308 | done | ||
6309 | fi | ||
6310 | if test -z "$DUMPBIN"; then | ||
6311 | ac_ct_DUMPBIN=$DUMPBIN | ||
6312 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
6313 | do | ||
6314 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
6315 | set dummy $ac_prog; ac_word=$2 | ||
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6317 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6318 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
6319 | $as_echo_n "(cached) " >&6 | ||
6320 | else | ||
6321 | if test -n "$ac_ct_DUMPBIN"; then | ||
6322 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
6323 | else | ||
6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6325 | for as_dir in $PATH | ||
6326 | do | ||
6327 | IFS=$as_save_IFS | ||
6328 | test -z "$as_dir" && as_dir=. | ||
6329 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6331 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
6332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6333 | break 2 | ||
6334 | fi | ||
6335 | done | ||
6336 | done | ||
6337 | IFS=$as_save_IFS | ||
6338 | |||
6339 | fi | ||
6340 | fi | ||
6341 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
6342 | if test -n "$ac_ct_DUMPBIN"; then | ||
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
6344 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
6345 | else | ||
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6347 | $as_echo "no" >&6; } | ||
6348 | fi | ||
6349 | |||
6350 | |||
6351 | test -n "$ac_ct_DUMPBIN" && break | ||
6352 | done | ||
6353 | |||
6354 | if test "x$ac_ct_DUMPBIN" = x; then | ||
6355 | DUMPBIN=":" | ||
6356 | else | ||
6357 | case $cross_compiling:$ac_tool_warned in | ||
6358 | yes:) | ||
6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6360 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6361 | ac_tool_warned=yes ;; | ||
6362 | esac | ||
6363 | DUMPBIN=$ac_ct_DUMPBIN | ||
6364 | fi | ||
6365 | fi | ||
6366 | |||
6367 | |||
6368 | if test "$DUMPBIN" != ":"; then | ||
6369 | NM="$DUMPBIN" | ||
6370 | fi | ||
6371 | fi | ||
6372 | test -z "$NM" && NM=nm | ||
6373 | |||
6374 | |||
6375 | |||
6376 | |||
6377 | |||
6378 | |||
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
6380 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
6381 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
6382 | $as_echo_n "(cached) " >&6 | ||
6383 | else | ||
6384 | lt_cv_nm_interface="BSD nm" | ||
6385 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
6386 | (eval echo "\"\$as_me:6386: $ac_compile\"" >&5) | ||
6387 | (eval "$ac_compile" 2>conftest.err) | ||
6388 | cat conftest.err >&5 | ||
6389 | (eval echo "\"\$as_me:6389: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
6390 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
6391 | cat conftest.err >&5 | ||
6392 | (eval echo "\"\$as_me:6392: output\"" >&5) | ||
6393 | cat conftest.out >&5 | ||
6394 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
6395 | lt_cv_nm_interface="MS dumpbin" | ||
6396 | fi | ||
6397 | rm -f conftest* | ||
6398 | fi | ||
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
6400 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
6401 | |||
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
6403 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
6404 | LN_S=$as_ln_s | ||
6405 | if test "$LN_S" = "ln -s"; then | ||
6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6407 | $as_echo "yes" >&6; } | ||
6408 | else | ||
6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
6410 | $as_echo "no, using $LN_S" >&6; } | ||
6411 | fi | ||
6412 | |||
6413 | # find the maximum length of command line arguments | ||
6414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
6415 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
6416 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
6417 | $as_echo_n "(cached) " >&6 | ||
6418 | else | ||
6419 | i=0 | ||
6420 | teststring="ABCD" | ||
6421 | |||
6422 | case $build_os in | ||
6423 | msdosdjgpp*) | ||
6424 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
6425 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
6426 | # during glob expansion). Even if it were fixed, the result of this | ||
6427 | # check would be larger than it should be. | ||
6428 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
6429 | ;; | ||
6430 | |||
6431 | gnu*) | ||
6432 | # Under GNU Hurd, this test is not required because there is | ||
6433 | # no limit to the length of command line arguments. | ||
6434 | # Libtool will interpret -1 as no limit whatsoever | ||
6435 | lt_cv_sys_max_cmd_len=-1; | ||
6436 | ;; | ||
6437 | |||
6438 | cygwin* | mingw* | cegcc*) | ||
6439 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
6440 | # about 5 minutes as the teststring grows exponentially. | ||
6441 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
6442 | # you end up with a "frozen" computer, even though with patience | ||
6443 | # the test eventually succeeds (with a max line length of 256k). | ||
6444 | # Instead, let's just punt: use the minimum linelength reported by | ||
6445 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
6446 | lt_cv_sys_max_cmd_len=8192; | ||
6447 | ;; | ||
6448 | |||
6449 | amigaos*) | ||
6450 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
6451 | # So we just punt and use a minimum line length of 8192. | ||
6452 | lt_cv_sys_max_cmd_len=8192; | ||
6453 | ;; | ||
6454 | |||
6455 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
6456 | # This has been around since 386BSD, at least. Likely further. | ||
6457 | if test -x /sbin/sysctl; then | ||
6458 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
6459 | elif test -x /usr/sbin/sysctl; then | ||
6460 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
6461 | else | ||
6462 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
6463 | fi | ||
6464 | # And add a safety zone | ||
6465 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6466 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6467 | ;; | ||
6468 | |||
6469 | interix*) | ||
6470 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
6471 | lt_cv_sys_max_cmd_len=196608 | ||
6472 | ;; | ||
6473 | |||
6474 | osf*) | ||
6475 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
6476 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
6477 | # nice to cause kernel panics so lets avoid the loop below. | ||
6478 | # First set a reasonable default. | ||
6479 | lt_cv_sys_max_cmd_len=16384 | ||
6480 | # | ||
6481 | if test -x /sbin/sysconfig; then | ||
6482 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
6483 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
6484 | esac | ||
6485 | fi | ||
6486 | ;; | ||
6487 | sco3.2v5*) | ||
6488 | lt_cv_sys_max_cmd_len=102400 | ||
6489 | ;; | ||
6490 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
6491 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
6492 | if test -n "$kargmax"; then | ||
6493 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
6494 | else | ||
6495 | lt_cv_sys_max_cmd_len=32768 | ||
6496 | fi | ||
6497 | ;; | ||
6498 | *) | ||
6499 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
6500 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
6501 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6502 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6503 | else | ||
6504 | # Make teststring a little bigger before we do anything with it. | ||
6505 | # a 1K string should be a reasonable start. | ||
6506 | for i in 1 2 3 4 5 6 7 8 ; do | ||
6507 | teststring=$teststring$teststring | ||
6508 | done | ||
6509 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
6510 | # If test is not a shell built-in, we'll probably end up computing a | ||
6511 | # maximum length that is only half of the actual maximum length, but | ||
6512 | # we can't tell. | ||
6513 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
6514 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
6515 | test $i != 17 # 1/2 MB should be enough | ||
6516 | do | ||
6517 | i=`expr $i + 1` | ||
6518 | teststring=$teststring$teststring | ||
6519 | done | ||
6520 | # Only check the string length outside the loop. | ||
6521 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
6522 | teststring= | ||
6523 | # Add a significant safety factor because C++ compilers can tack on | ||
6524 | # massive amounts of additional arguments before passing them to the | ||
6525 | # linker. It appears as though 1/2 is a usable value. | ||
6526 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
6527 | fi | ||
6528 | ;; | ||
6529 | esac | ||
6530 | |||
6531 | fi | ||
6532 | |||
6533 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
6535 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
6536 | else | ||
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
6538 | $as_echo "none" >&6; } | ||
6539 | fi | ||
6540 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
6541 | |||
6542 | |||
6543 | |||
6544 | |||
6545 | |||
6546 | |||
6547 | : ${CP="cp -f"} | ||
6548 | : ${MV="mv -f"} | ||
6549 | : ${RM="rm -f"} | ||
6550 | |||
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
6552 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
6553 | # Try some XSI features | ||
6554 | xsi_shell=no | ||
6555 | ( _lt_dummy="a/b/c" | ||
6556 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
6557 | = c,a/b,, \ | ||
6558 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
6559 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
6560 | && xsi_shell=yes | ||
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
6562 | $as_echo "$xsi_shell" >&6; } | ||
6563 | |||
6564 | |||
6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
6566 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
6567 | lt_shell_append=no | ||
6568 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
6569 | >/dev/null 2>&1 \ | ||
6570 | && lt_shell_append=yes | ||
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
6572 | $as_echo "$lt_shell_append" >&6; } | ||
6573 | |||
6574 | |||
6575 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
6576 | lt_unset=unset | ||
6577 | else | ||
6578 | lt_unset=false | ||
6579 | fi | ||
6580 | |||
6581 | |||
6582 | |||
6583 | |||
6584 | |||
6585 | # test EBCDIC or ASCII | ||
6586 | case `echo X|tr X '\101'` in | ||
6587 | A) # ASCII based system | ||
6588 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
6589 | lt_SP2NL='tr \040 \012' | ||
6590 | lt_NL2SP='tr \015\012 \040\040' | ||
6591 | ;; | ||
6592 | *) # EBCDIC based system | ||
6593 | lt_SP2NL='tr \100 \n' | ||
6594 | lt_NL2SP='tr \r\n \100\100' | ||
6595 | ;; | ||
6596 | esac | ||
6597 | |||
6598 | |||
6599 | |||
6600 | |||
6601 | |||
6602 | |||
6603 | |||
6604 | |||
6605 | |||
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
6607 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
6608 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
6609 | $as_echo_n "(cached) " >&6 | ||
6610 | else | ||
6611 | lt_cv_ld_reload_flag='-r' | ||
6612 | fi | ||
6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
6614 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
6615 | reload_flag=$lt_cv_ld_reload_flag | ||
6616 | case $reload_flag in | ||
6617 | "" | " "*) ;; | ||
6618 | *) reload_flag=" $reload_flag" ;; | ||
6619 | esac | ||
6620 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6621 | case $host_os in | ||
6622 | darwin*) | ||
6623 | if test "$GCC" = yes; then | ||
6624 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
6625 | else | ||
6626 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6627 | fi | ||
6628 | ;; | ||
6629 | esac | ||
6630 | |||
6631 | |||
6632 | |||
6633 | |||
6634 | |||
6635 | |||
6636 | |||
6637 | |||
6638 | |||
6639 | if test -n "$ac_tool_prefix"; then | ||
6640 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
6641 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6643 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6644 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
6645 | $as_echo_n "(cached) " >&6 | ||
6646 | else | ||
6647 | if test -n "$OBJDUMP"; then | ||
6648 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
6649 | else | ||
6650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6651 | for as_dir in $PATH | ||
6652 | do | ||
6653 | IFS=$as_save_IFS | ||
6654 | test -z "$as_dir" && as_dir=. | ||
6655 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6657 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
6658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6659 | break 2 | ||
6660 | fi | ||
6661 | done | ||
6662 | done | ||
6663 | IFS=$as_save_IFS | ||
6664 | |||
6665 | fi | ||
6666 | fi | ||
6667 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
6668 | if test -n "$OBJDUMP"; then | ||
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
6670 | $as_echo "$OBJDUMP" >&6; } | ||
6671 | else | ||
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6673 | $as_echo "no" >&6; } | ||
6674 | fi | ||
6675 | |||
6676 | |||
6677 | fi | ||
6678 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
6679 | ac_ct_OBJDUMP=$OBJDUMP | ||
6680 | # Extract the first word of "objdump", so it can be a program name with args. | ||
6681 | set dummy objdump; ac_word=$2 | ||
6682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6683 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6684 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
6685 | $as_echo_n "(cached) " >&6 | ||
6686 | else | ||
6687 | if test -n "$ac_ct_OBJDUMP"; then | ||
6688 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
6689 | else | ||
6690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6691 | for as_dir in $PATH | ||
6692 | do | ||
6693 | IFS=$as_save_IFS | ||
6694 | test -z "$as_dir" && as_dir=. | ||
6695 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6697 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
6698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6699 | break 2 | ||
6700 | fi | ||
6701 | done | ||
6702 | done | ||
6703 | IFS=$as_save_IFS | ||
6704 | |||
6705 | fi | ||
6706 | fi | ||
6707 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
6708 | if test -n "$ac_ct_OBJDUMP"; then | ||
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
6710 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
6711 | else | ||
6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6713 | $as_echo "no" >&6; } | ||
6714 | fi | ||
6715 | |||
6716 | if test "x$ac_ct_OBJDUMP" = x; then | ||
6717 | OBJDUMP="false" | ||
6718 | else | ||
6719 | case $cross_compiling:$ac_tool_warned in | ||
6720 | yes:) | ||
6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6722 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6723 | ac_tool_warned=yes ;; | ||
6724 | esac | ||
6725 | OBJDUMP=$ac_ct_OBJDUMP | ||
6726 | fi | ||
6727 | else | ||
6728 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
6729 | fi | ||
6730 | |||
6731 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
6732 | |||
6733 | |||
6734 | |||
6735 | |||
6736 | |||
6737 | |||
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
6739 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
6740 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
6741 | $as_echo_n "(cached) " >&6 | ||
6742 | else | ||
6743 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
6744 | lt_cv_file_magic_test_file= | ||
6745 | lt_cv_deplibs_check_method='unknown' | ||
6746 | # Need to set the preceding variable on all platforms that support | ||
6747 | # interlibrary dependencies. | ||
6748 | # 'none' -- dependencies not supported. | ||
6749 | # `unknown' -- same as none, but documents that we really don't know. | ||
6750 | # 'pass_all' -- all dependencies passed with no checks. | ||
6751 | # 'test_compile' -- check by making test program. | ||
6752 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
6753 | # which responds to the $file_magic_cmd with a given extended regex. | ||
6754 | # If you have `file' or equivalent on your system and you're not sure | ||
6755 | # whether `pass_all' will *always* work, you probably want this one. | ||
6756 | |||
6757 | case $host_os in | ||
6758 | aix[4-9]*) | ||
6759 | lt_cv_deplibs_check_method=pass_all | ||
6760 | ;; | ||
6761 | |||
6762 | beos*) | ||
6763 | lt_cv_deplibs_check_method=pass_all | ||
6764 | ;; | ||
6765 | |||
6766 | bsdi[45]*) | ||
6767 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
6768 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
6769 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
6770 | ;; | ||
6771 | |||
6772 | cygwin*) | ||
6773 | # func_win32_libid is a shell function defined in ltmain.sh | ||
6774 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6775 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6776 | ;; | ||
6777 | |||
6778 | mingw* | pw32*) | ||
6779 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
6780 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
6781 | # unless we find 'file', for example because we are cross-compiling. | ||
6782 | if ( file / ) >/dev/null 2>&1; then | ||
6783 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6784 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6785 | else | ||
6786 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
6787 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6788 | fi | ||
6789 | ;; | ||
6790 | |||
6791 | cegcc) | ||
6792 | # use the weaker test based on 'objdump'. See mingw*. | ||
6793 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
6794 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6795 | ;; | ||
6796 | |||
6797 | darwin* | rhapsody*) | ||
6798 | lt_cv_deplibs_check_method=pass_all | ||
6799 | ;; | ||
6800 | |||
6801 | freebsd* | dragonfly*) | ||
6802 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6803 | case $host_cpu in | ||
6804 | i*86 ) | ||
6805 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
6806 | # Let's accept both of them until this is cleared up. | ||
6807 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
6808 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6809 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
6810 | ;; | ||
6811 | esac | ||
6812 | else | ||
6813 | lt_cv_deplibs_check_method=pass_all | ||
6814 | fi | ||
6815 | ;; | ||
6816 | |||
6817 | gnu*) | ||
6818 | lt_cv_deplibs_check_method=pass_all | ||
6819 | ;; | ||
6820 | |||
6821 | hpux10.20* | hpux11*) | ||
6822 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6823 | case $host_cpu in | ||
6824 | ia64*) | ||
6825 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
6826 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
6827 | ;; | ||
6828 | hppa*64*) | ||
6829 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
6830 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
6831 | ;; | ||
6832 | *) | ||
6833 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
6834 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
6835 | ;; | ||
6836 | esac | ||
6837 | ;; | ||
6838 | |||
6839 | interix[3-9]*) | ||
6840 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
6841 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
6842 | ;; | ||
6843 | |||
6844 | irix5* | irix6* | nonstopux*) | ||
6845 | case $LD in | ||
6846 | *-32|*"-32 ") libmagic=32-bit;; | ||
6847 | *-n32|*"-n32 ") libmagic=N32;; | ||
6848 | *-64|*"-64 ") libmagic=64-bit;; | ||
6849 | *) libmagic=never-match;; | ||
6850 | esac | ||
6851 | lt_cv_deplibs_check_method=pass_all | ||
6852 | ;; | ||
6853 | |||
6854 | # This must be Linux ELF. | ||
6855 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
6856 | lt_cv_deplibs_check_method=pass_all | ||
6857 | ;; | ||
6858 | |||
6859 | netbsd* | netbsdelf*-gnu) | ||
6860 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6861 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6862 | else | ||
6863 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
6864 | fi | ||
6865 | ;; | ||
6866 | |||
6867 | newos6*) | ||
6868 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
6869 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6870 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
6871 | ;; | ||
6872 | |||
6873 | *nto* | *qnx*) | ||
6874 | lt_cv_deplibs_check_method=pass_all | ||
6875 | ;; | ||
6876 | |||
6877 | openbsd*) | ||
6878 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
6879 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
6880 | else | ||
6881 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6882 | fi | ||
6883 | ;; | ||
6884 | |||
6885 | osf3* | osf4* | osf5*) | ||
6886 | lt_cv_deplibs_check_method=pass_all | ||
6887 | ;; | ||
6888 | |||
6889 | rdos*) | ||
6890 | lt_cv_deplibs_check_method=pass_all | ||
6891 | ;; | ||
6892 | |||
6893 | solaris*) | ||
6894 | lt_cv_deplibs_check_method=pass_all | ||
6895 | ;; | ||
6896 | |||
6897 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
6898 | lt_cv_deplibs_check_method=pass_all | ||
6899 | ;; | ||
6900 | |||
6901 | sysv4 | sysv4.3*) | ||
6902 | case $host_vendor in | ||
6903 | motorola) | ||
6904 | 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]' | ||
6905 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
6906 | ;; | ||
6907 | ncr) | ||
6908 | lt_cv_deplibs_check_method=pass_all | ||
6909 | ;; | ||
6910 | sequent) | ||
6911 | lt_cv_file_magic_cmd='/bin/file' | ||
6912 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
6913 | ;; | ||
6914 | sni) | ||
6915 | lt_cv_file_magic_cmd='/bin/file' | ||
6916 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
6917 | lt_cv_file_magic_test_file=/lib/libc.so | ||
6918 | ;; | ||
6919 | siemens) | ||
6920 | lt_cv_deplibs_check_method=pass_all | ||
6921 | ;; | ||
6922 | pc) | ||
6923 | lt_cv_deplibs_check_method=pass_all | ||
6924 | ;; | ||
6925 | esac | ||
6926 | ;; | ||
6927 | |||
6928 | tpf*) | ||
6929 | lt_cv_deplibs_check_method=pass_all | ||
6930 | ;; | ||
6931 | esac | ||
6932 | |||
6933 | fi | ||
6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
6935 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
6936 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
6937 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
6938 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6939 | |||
6940 | |||
6941 | |||
6942 | |||
6943 | |||
6944 | |||
6945 | |||
6946 | |||
6947 | |||
6948 | |||
6949 | |||
6950 | |||
6951 | if test -n "$ac_tool_prefix"; then | ||
6952 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6953 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6955 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6956 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
6957 | $as_echo_n "(cached) " >&6 | ||
6958 | else | ||
6959 | if test -n "$AR"; then | ||
6960 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
6961 | else | ||
6962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6963 | for as_dir in $PATH | ||
6964 | do | ||
6965 | IFS=$as_save_IFS | ||
6966 | test -z "$as_dir" && as_dir=. | ||
6967 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6969 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
6970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6971 | break 2 | ||
6972 | fi | ||
6973 | done | ||
6974 | done | ||
6975 | IFS=$as_save_IFS | ||
6976 | |||
6977 | fi | ||
6978 | fi | ||
6979 | AR=$ac_cv_prog_AR | ||
6980 | if test -n "$AR"; then | ||
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
6982 | $as_echo "$AR" >&6; } | ||
6983 | else | ||
6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6985 | $as_echo "no" >&6; } | ||
6986 | fi | ||
6987 | |||
6988 | |||
6989 | fi | ||
6990 | if test -z "$ac_cv_prog_AR"; then | ||
6991 | ac_ct_AR=$AR | ||
6992 | # Extract the first word of "ar", so it can be a program name with args. | ||
6993 | set dummy ar; ac_word=$2 | ||
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6995 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6996 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
6997 | $as_echo_n "(cached) " >&6 | ||
6998 | else | ||
6999 | if test -n "$ac_ct_AR"; then | ||
7000 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
7001 | else | ||
7002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7003 | for as_dir in $PATH | ||
7004 | do | ||
7005 | IFS=$as_save_IFS | ||
7006 | test -z "$as_dir" && as_dir=. | ||
7007 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7009 | ac_cv_prog_ac_ct_AR="ar" | ||
7010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7011 | break 2 | ||
7012 | fi | ||
7013 | done | ||
7014 | done | ||
7015 | IFS=$as_save_IFS | ||
7016 | |||
7017 | fi | ||
7018 | fi | ||
7019 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
7020 | if test -n "$ac_ct_AR"; then | ||
7021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
7022 | $as_echo "$ac_ct_AR" >&6; } | ||
7023 | else | ||
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7025 | $as_echo "no" >&6; } | ||
7026 | fi | ||
7027 | |||
7028 | if test "x$ac_ct_AR" = x; then | ||
7029 | AR="false" | ||
7030 | else | ||
7031 | case $cross_compiling:$ac_tool_warned in | ||
7032 | yes:) | ||
7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7034 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7035 | ac_tool_warned=yes ;; | ||
7036 | esac | ||
7037 | AR=$ac_ct_AR | ||
7038 | fi | ||
7039 | else | ||
7040 | AR="$ac_cv_prog_AR" | ||
7041 | fi | ||
7042 | |||
7043 | test -z "$AR" && AR=ar | ||
7044 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
7045 | |||
7046 | |||
7047 | |||
7048 | |||
7049 | |||
7050 | |||
7051 | |||
7052 | |||
7053 | |||
7054 | |||
7055 | |||
7056 | if test -n "$ac_tool_prefix"; then | ||
7057 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
7058 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7060 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7061 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
7062 | $as_echo_n "(cached) " >&6 | ||
7063 | else | ||
7064 | if test -n "$STRIP"; then | ||
7065 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
7066 | else | ||
7067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7068 | for as_dir in $PATH | ||
7069 | do | ||
7070 | IFS=$as_save_IFS | ||
7071 | test -z "$as_dir" && as_dir=. | ||
7072 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7074 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
7075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7076 | break 2 | ||
7077 | fi | ||
7078 | done | ||
7079 | done | ||
7080 | IFS=$as_save_IFS | ||
7081 | |||
7082 | fi | ||
7083 | fi | ||
7084 | STRIP=$ac_cv_prog_STRIP | ||
7085 | if test -n "$STRIP"; then | ||
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
7087 | $as_echo "$STRIP" >&6; } | ||
7088 | else | ||
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7090 | $as_echo "no" >&6; } | ||
7091 | fi | ||
7092 | |||
7093 | |||
7094 | fi | ||
7095 | if test -z "$ac_cv_prog_STRIP"; then | ||
7096 | ac_ct_STRIP=$STRIP | ||
7097 | # Extract the first word of "strip", so it can be a program name with args. | ||
7098 | set dummy strip; ac_word=$2 | ||
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7100 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7101 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
7102 | $as_echo_n "(cached) " >&6 | ||
7103 | else | ||
7104 | if test -n "$ac_ct_STRIP"; then | ||
7105 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
7106 | else | ||
7107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7108 | for as_dir in $PATH | ||
7109 | do | ||
7110 | IFS=$as_save_IFS | ||
7111 | test -z "$as_dir" && as_dir=. | ||
7112 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7114 | ac_cv_prog_ac_ct_STRIP="strip" | ||
7115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7116 | break 2 | ||
7117 | fi | ||
7118 | done | ||
7119 | done | ||
7120 | IFS=$as_save_IFS | ||
7121 | |||
7122 | fi | ||
7123 | fi | ||
7124 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
7125 | if test -n "$ac_ct_STRIP"; then | ||
7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
7127 | $as_echo "$ac_ct_STRIP" >&6; } | ||
7128 | else | ||
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7130 | $as_echo "no" >&6; } | ||
7131 | fi | ||
7132 | |||
7133 | if test "x$ac_ct_STRIP" = x; then | ||
7134 | STRIP=":" | ||
7135 | else | ||
7136 | case $cross_compiling:$ac_tool_warned in | ||
7137 | yes:) | ||
7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7139 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7140 | ac_tool_warned=yes ;; | ||
7141 | esac | ||
7142 | STRIP=$ac_ct_STRIP | ||
7143 | fi | ||
7144 | else | ||
7145 | STRIP="$ac_cv_prog_STRIP" | ||
7146 | fi | ||
7147 | |||
7148 | test -z "$STRIP" && STRIP=: | ||
7149 | |||
7150 | |||
7151 | |||
7152 | |||
7153 | |||
7154 | |||
7155 | if test -n "$ac_tool_prefix"; then | ||
7156 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
7157 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7159 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7160 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
7161 | $as_echo_n "(cached) " >&6 | ||
7162 | else | ||
7163 | if test -n "$RANLIB"; then | ||
7164 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
7165 | else | ||
7166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7167 | for as_dir in $PATH | ||
7168 | do | ||
7169 | IFS=$as_save_IFS | ||
7170 | test -z "$as_dir" && as_dir=. | ||
7171 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7173 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
7174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7175 | break 2 | ||
7176 | fi | ||
7177 | done | ||
7178 | done | ||
7179 | IFS=$as_save_IFS | ||
7180 | |||
7181 | fi | ||
7182 | fi | ||
7183 | RANLIB=$ac_cv_prog_RANLIB | ||
7184 | if test -n "$RANLIB"; then | ||
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
7186 | $as_echo "$RANLIB" >&6; } | ||
7187 | else | ||
7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7189 | $as_echo "no" >&6; } | ||
7190 | fi | ||
7191 | |||
7192 | |||
7193 | fi | ||
7194 | if test -z "$ac_cv_prog_RANLIB"; then | ||
7195 | ac_ct_RANLIB=$RANLIB | ||
7196 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
7197 | set dummy ranlib; ac_word=$2 | ||
7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7199 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7200 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
7201 | $as_echo_n "(cached) " >&6 | ||
7202 | else | ||
7203 | if test -n "$ac_ct_RANLIB"; then | ||
7204 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
7205 | else | ||
7206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7207 | for as_dir in $PATH | ||
7208 | do | ||
7209 | IFS=$as_save_IFS | ||
7210 | test -z "$as_dir" && as_dir=. | ||
7211 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7213 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
7214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7215 | break 2 | ||
7216 | fi | ||
7217 | done | ||
7218 | done | ||
7219 | IFS=$as_save_IFS | ||
7220 | |||
7221 | fi | ||
7222 | fi | ||
7223 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
7224 | if test -n "$ac_ct_RANLIB"; then | ||
7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
7226 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
7227 | else | ||
7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7229 | $as_echo "no" >&6; } | ||
7230 | fi | ||
7231 | |||
7232 | if test "x$ac_ct_RANLIB" = x; then | ||
7233 | RANLIB=":" | ||
7234 | else | ||
7235 | case $cross_compiling:$ac_tool_warned in | ||
7236 | yes:) | ||
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7239 | ac_tool_warned=yes ;; | ||
7240 | esac | ||
7241 | RANLIB=$ac_ct_RANLIB | ||
7242 | fi | ||
7243 | else | ||
7244 | RANLIB="$ac_cv_prog_RANLIB" | ||
7245 | fi | ||
7246 | |||
7247 | test -z "$RANLIB" && RANLIB=: | ||
7248 | |||
7249 | |||
7250 | |||
7251 | |||
7252 | |||
7253 | |||
7254 | # Determine commands to create old-style static archives. | ||
7255 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
7256 | old_postinstall_cmds='chmod 644 $oldlib' | ||
7257 | old_postuninstall_cmds= | ||
7258 | |||
7259 | if test -n "$RANLIB"; then | ||
7260 | case $host_os in | ||
7261 | openbsd*) | ||
7262 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
7263 | ;; | ||
7264 | *) | ||
7265 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
7266 | ;; | ||
7267 | esac | ||
7268 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
7269 | fi | ||
7270 | |||
7271 | |||
7272 | |||
7273 | |||
7274 | |||
7275 | |||
7276 | |||
7277 | |||
7278 | |||
7279 | |||
7280 | |||
7281 | |||
7282 | |||
7283 | |||
7284 | |||
7285 | |||
7286 | |||
7287 | |||
7288 | |||
7289 | |||
7290 | |||
7291 | |||
7292 | |||
7293 | |||
7294 | |||
7295 | |||
7296 | |||
7297 | |||
7298 | |||
7299 | |||
7300 | |||
7301 | |||
7302 | |||
7303 | |||
7304 | # If no C compiler was specified, use CC. | ||
7305 | LTCC=${LTCC-"$CC"} | ||
7306 | |||
7307 | # If no C compiler flags were specified, use CFLAGS. | ||
7308 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7309 | |||
7310 | # Allow CC to be a program name with arguments. | ||
7311 | compiler=$CC | ||
7312 | |||
7313 | |||
7314 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
7316 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
7317 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
7318 | $as_echo_n "(cached) " >&6 | ||
7319 | else | ||
7320 | |||
7321 | # These are sane defaults that work on at least a few old systems. | ||
7322 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
7323 | |||
7324 | # Character class describing NM global symbol codes. | ||
7325 | symcode='[BCDEGRST]' | ||
7326 | |||
7327 | # Regexp to match symbols that can be accessed directly from C. | ||
7328 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
7329 | |||
7330 | # Define system-specific variables. | ||
7331 | case $host_os in | ||
7332 | aix*) | ||
7333 | symcode='[BCDT]' | ||
7334 | ;; | ||
7335 | cygwin* | mingw* | pw32* | cegcc*) | ||
7336 | symcode='[ABCDGISTW]' | ||
7337 | ;; | ||
7338 | hpux*) | ||
7339 | if test "$host_cpu" = ia64; then | ||
7340 | symcode='[ABCDEGRST]' | ||
7341 | fi | ||
7342 | ;; | ||
7343 | irix* | nonstopux*) | ||
7344 | symcode='[BCDEGRST]' | ||
7345 | ;; | ||
7346 | osf*) | ||
7347 | symcode='[BCDEGQRST]' | ||
7348 | ;; | ||
7349 | solaris*) | ||
7350 | symcode='[BDRT]' | ||
7351 | ;; | ||
7352 | sco3.2v5*) | ||
7353 | symcode='[DT]' | ||
7354 | ;; | ||
7355 | sysv4.2uw2*) | ||
7356 | symcode='[DT]' | ||
7357 | ;; | ||
7358 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
7359 | symcode='[ABDT]' | ||
7360 | ;; | ||
7361 | sysv4) | ||
7362 | symcode='[DFNSTU]' | ||
7363 | ;; | ||
7364 | esac | ||
7365 | |||
7366 | # If we're using GNU nm, then use its standard symbol codes. | ||
7367 | case `$NM -V 2>&1` in | ||
7368 | *GNU* | *'with BFD'*) | ||
7369 | symcode='[ABCDGIRSTW]' ;; | ||
7370 | esac | ||
7371 | |||
7372 | # Transform an extracted symbol line into a proper C declaration. | ||
7373 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
7374 | # so use this general approach. | ||
7375 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
7376 | |||
7377 | # Transform an extracted symbol line into symbol name and symbol address | ||
7378 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
7379 | 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'" | ||
7380 | |||
7381 | # Handle CRLF in mingw tool chain | ||
7382 | opt_cr= | ||
7383 | case $build_os in | ||
7384 | mingw*) | ||
7385 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
7386 | ;; | ||
7387 | esac | ||
7388 | |||
7389 | # Try without a prefix underscore, then with it. | ||
7390 | for ac_symprfx in "" "_"; do | ||
7391 | |||
7392 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
7393 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
7394 | |||
7395 | # Write the raw and C identifiers. | ||
7396 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
7397 | # Fake it for dumpbin and say T for any non-static function | ||
7398 | # and D for any global variable. | ||
7399 | # Also find C++ and __fastcall symbols from MSVC++, | ||
7400 | # which start with @ or ?. | ||
7401 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
7402 | " {last_section=section; section=\$ 3};"\ | ||
7403 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
7404 | " \$ 0!~/External *\|/{next};"\ | ||
7405 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
7406 | " {if(hide[section]) next};"\ | ||
7407 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
7408 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
7409 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
7410 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
7411 | " ' prfx=^$ac_symprfx" | ||
7412 | else | ||
7413 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
7414 | fi | ||
7415 | |||
7416 | # Check to see that the pipe works correctly. | ||
7417 | pipe_works=no | ||
7418 | |||
7419 | rm -f conftest* | ||
7420 | cat > conftest.$ac_ext <<_LT_EOF | ||
7421 | #ifdef __cplusplus | ||
7422 | extern "C" { | ||
7423 | #endif | ||
7424 | char nm_test_var; | ||
7425 | void nm_test_func(void); | ||
7426 | void nm_test_func(void){} | ||
7427 | #ifdef __cplusplus | ||
7428 | } | ||
7429 | #endif | ||
7430 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
7431 | _LT_EOF | ||
7432 | |||
7433 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7434 | (eval $ac_compile) 2>&5 | ||
7435 | ac_status=$? | ||
7436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7437 | test $ac_status = 0; }; then | ||
7438 | # Now try to grab the symbols. | ||
7439 | nlist=conftest.nm | ||
7440 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
7441 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
7442 | ac_status=$? | ||
7443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7444 | test $ac_status = 0; } && test -s "$nlist"; then | ||
7445 | # Try sorting and uniquifying the output. | ||
7446 | if sort "$nlist" | uniq > "$nlist"T; then | ||
7447 | mv -f "$nlist"T "$nlist" | ||
7448 | else | ||
7449 | rm -f "$nlist"T | ||
7450 | fi | ||
7451 | |||
7452 | # Make sure that we snagged all the symbols we need. | ||
7453 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
7454 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
7455 | cat <<_LT_EOF > conftest.$ac_ext | ||
7456 | #ifdef __cplusplus | ||
7457 | extern "C" { | ||
7458 | #endif | ||
7459 | |||
7460 | _LT_EOF | ||
7461 | # Now generate the symbol file. | ||
7462 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
7463 | |||
7464 | cat <<_LT_EOF >> conftest.$ac_ext | ||
7465 | |||
7466 | /* The mapping between symbol names and symbols. */ | ||
7467 | const struct { | ||
7468 | const char *name; | ||
7469 | void *address; | ||
7470 | } | ||
7471 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
7472 | { | ||
7473 | { "@PROGRAM@", (void *) 0 }, | ||
7474 | _LT_EOF | ||
7475 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
7476 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
7477 | {0, (void *) 0} | ||
7478 | }; | ||
7479 | |||
7480 | /* This works around a problem in FreeBSD linker */ | ||
7481 | #ifdef FREEBSD_WORKAROUND | ||
7482 | static const void *lt_preloaded_setup() { | ||
7483 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
7484 | } | ||
7485 | #endif | ||
7486 | |||
7487 | #ifdef __cplusplus | ||
7488 | } | ||
7489 | #endif | ||
7490 | _LT_EOF | ||
7491 | # Now try linking the two files. | ||
7492 | mv conftest.$ac_objext conftstm.$ac_objext | ||
7493 | lt_save_LIBS="$LIBS" | ||
7494 | lt_save_CFLAGS="$CFLAGS" | ||
7495 | LIBS="conftstm.$ac_objext" | ||
7496 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
7497 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
7498 | (eval $ac_link) 2>&5 | ||
7499 | ac_status=$? | ||
7500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7501 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
7502 | pipe_works=yes | ||
7503 | fi | ||
7504 | LIBS="$lt_save_LIBS" | ||
7505 | CFLAGS="$lt_save_CFLAGS" | ||
7506 | else | ||
7507 | echo "cannot find nm_test_func in $nlist" >&5 | ||
7508 | fi | ||
7509 | else | ||
7510 | echo "cannot find nm_test_var in $nlist" >&5 | ||
7511 | fi | ||
7512 | else | ||
7513 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
7514 | fi | ||
7515 | else | ||
7516 | echo "$progname: failed program was:" >&5 | ||
7517 | cat conftest.$ac_ext >&5 | ||
7518 | fi | ||
7519 | rm -rf conftest* conftst* | ||
7520 | |||
7521 | # Do not use the global_symbol_pipe unless it works. | ||
7522 | if test "$pipe_works" = yes; then | ||
7523 | break | ||
7524 | else | ||
7525 | lt_cv_sys_global_symbol_pipe= | ||
7526 | fi | ||
7527 | done | ||
7528 | |||
7529 | fi | ||
7530 | |||
7531 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
7532 | lt_cv_sys_global_symbol_to_cdecl= | ||
7533 | fi | ||
7534 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
7536 | $as_echo "failed" >&6; } | ||
7537 | else | ||
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
7539 | $as_echo "ok" >&6; } | ||
7540 | fi | ||
7541 | |||
7542 | |||
7543 | |||
7544 | |||
7545 | |||
7546 | |||
7547 | |||
7548 | |||
7549 | |||
7550 | |||
7551 | |||
7552 | |||
7553 | |||
7554 | |||
7555 | |||
7556 | |||
7557 | |||
7558 | |||
7559 | |||
7560 | |||
7561 | |||
7562 | |||
7563 | # Check whether --enable-libtool-lock was given. | ||
7564 | if test "${enable_libtool_lock+set}" = set; then : | ||
7565 | enableval=$enable_libtool_lock; | ||
7566 | fi | ||
7567 | |||
7568 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
7569 | |||
7570 | # Some flags need to be propagated to the compiler or linker for good | ||
7571 | # libtool support. | ||
7572 | case $host in | ||
7573 | ia64-*-hpux*) | ||
7574 | # Find out which ABI we are using. | ||
7575 | echo 'int i;' > conftest.$ac_ext | ||
7576 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7577 | (eval $ac_compile) 2>&5 | ||
7578 | ac_status=$? | ||
7579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7580 | test $ac_status = 0; }; then | ||
7581 | case `/usr/bin/file conftest.$ac_objext` in | ||
7582 | *ELF-32*) | ||
7583 | HPUX_IA64_MODE="32" | ||
7584 | ;; | ||
7585 | *ELF-64*) | ||
7586 | HPUX_IA64_MODE="64" | ||
7587 | ;; | ||
7588 | esac | ||
7589 | fi | ||
7590 | rm -rf conftest* | ||
7591 | ;; | ||
7592 | *-*-irix6*) | ||
7593 | # Find out which ABI we are using. | ||
7594 | echo '#line 7594 "configure"' > conftest.$ac_ext | ||
7595 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7596 | (eval $ac_compile) 2>&5 | ||
7597 | ac_status=$? | ||
7598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7599 | test $ac_status = 0; }; then | ||
7600 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
7601 | case `/usr/bin/file conftest.$ac_objext` in | ||
7602 | *32-bit*) | ||
7603 | LD="${LD-ld} -melf32bsmip" | ||
7604 | ;; | ||
7605 | *N32*) | ||
7606 | LD="${LD-ld} -melf32bmipn32" | ||
7607 | ;; | ||
7608 | *64-bit*) | ||
7609 | LD="${LD-ld} -melf64bmip" | ||
7610 | ;; | ||
7611 | esac | ||
7612 | else | ||
7613 | case `/usr/bin/file conftest.$ac_objext` in | ||
7614 | *32-bit*) | ||
7615 | LD="${LD-ld} -32" | ||
7616 | ;; | ||
7617 | *N32*) | ||
7618 | LD="${LD-ld} -n32" | ||
7619 | ;; | ||
7620 | *64-bit*) | ||
7621 | LD="${LD-ld} -64" | ||
7622 | ;; | ||
7623 | esac | ||
7624 | fi | ||
7625 | fi | ||
7626 | rm -rf conftest* | ||
7627 | ;; | ||
7628 | |||
7629 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
7630 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
7631 | # Find out which ABI we are using. | ||
7632 | echo 'int i;' > conftest.$ac_ext | ||
7633 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7634 | (eval $ac_compile) 2>&5 | ||
7635 | ac_status=$? | ||
7636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7637 | test $ac_status = 0; }; then | ||
7638 | case `/usr/bin/file conftest.o` in | ||
7639 | *32-bit*) | ||
7640 | case $host in | ||
7641 | x86_64-*kfreebsd*-gnu) | ||
7642 | LD="${LD-ld} -m elf_i386_fbsd" | ||
7643 | ;; | ||
7644 | x86_64-*linux*) | ||
7645 | LD="${LD-ld} -m elf_i386" | ||
7646 | ;; | ||
7647 | ppc64-*linux*|powerpc64-*linux*) | ||
7648 | LD="${LD-ld} -m elf32ppclinux" | ||
7649 | ;; | ||
7650 | s390x-*linux*) | ||
7651 | LD="${LD-ld} -m elf_s390" | ||
7652 | ;; | ||
7653 | sparc64-*linux*) | ||
7654 | LD="${LD-ld} -m elf32_sparc" | ||
7655 | ;; | ||
7656 | esac | ||
7657 | ;; | ||
7658 | *64-bit*) | ||
7659 | case $host in | ||
7660 | x86_64-*kfreebsd*-gnu) | ||
7661 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
7662 | ;; | ||
7663 | x86_64-*linux*) | ||
7664 | LD="${LD-ld} -m elf_x86_64" | ||
7665 | ;; | ||
7666 | ppc*-*linux*|powerpc*-*linux*) | ||
7667 | LD="${LD-ld} -m elf64ppc" | ||
7668 | ;; | ||
7669 | s390*-*linux*|s390*-*tpf*) | ||
7670 | LD="${LD-ld} -m elf64_s390" | ||
7671 | ;; | ||
7672 | sparc*-*linux*) | ||
7673 | LD="${LD-ld} -m elf64_sparc" | ||
7674 | ;; | ||
7675 | esac | ||
7676 | ;; | ||
7677 | esac | ||
7678 | fi | ||
7679 | rm -rf conftest* | ||
7680 | ;; | ||
7681 | |||
7682 | *-*-sco3.2v5*) | ||
7683 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
7684 | SAVE_CFLAGS="$CFLAGS" | ||
7685 | CFLAGS="$CFLAGS -belf" | ||
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
7687 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
7688 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
7689 | $as_echo_n "(cached) " >&6 | ||
7690 | else | ||
7691 | ac_ext=c | ||
7692 | ac_cpp='$CPP $CPPFLAGS' | ||
7693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7696 | |||
7697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7698 | /* end confdefs.h. */ | ||
7699 | |||
7700 | int | ||
7701 | main () | ||
7702 | { | ||
7703 | |||
7704 | ; | ||
7705 | return 0; | ||
7706 | } | ||
7707 | _ACEOF | ||
7708 | if ac_fn_c_try_link "$LINENO"; then : | ||
7709 | lt_cv_cc_needs_belf=yes | ||
7710 | else | ||
7711 | lt_cv_cc_needs_belf=no | ||
7712 | fi | ||
7713 | rm -f core conftest.err conftest.$ac_objext \ | ||
7714 | conftest$ac_exeext conftest.$ac_ext | ||
7715 | ac_ext=c | ||
7716 | ac_cpp='$CPP $CPPFLAGS' | ||
7717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7720 | |||
7721 | fi | ||
7722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
7723 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
7724 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
7725 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
7726 | CFLAGS="$SAVE_CFLAGS" | ||
7727 | fi | ||
7728 | ;; | ||
7729 | sparc*-*solaris*) | ||
7730 | # Find out which ABI we are using. | ||
7731 | echo 'int i;' > conftest.$ac_ext | ||
7732 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7733 | (eval $ac_compile) 2>&5 | ||
7734 | ac_status=$? | ||
7735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7736 | test $ac_status = 0; }; then | ||
7737 | case `/usr/bin/file conftest.o` in | ||
7738 | *64-bit*) | ||
7739 | case $lt_cv_prog_gnu_ld in | ||
7740 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
7741 | *) | ||
7742 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
7743 | LD="${LD-ld} -64" | ||
7744 | fi | ||
7745 | ;; | ||
7746 | esac | ||
7747 | ;; | ||
7748 | esac | ||
7749 | fi | ||
7750 | rm -rf conftest* | ||
7751 | ;; | ||
7752 | esac | ||
7753 | |||
7754 | need_locks="$enable_libtool_lock" | ||
7755 | |||
7756 | |||
7757 | case $host_os in | ||
7758 | rhapsody* | darwin*) | ||
7759 | if test -n "$ac_tool_prefix"; then | ||
7760 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
7761 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7763 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7764 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
7765 | $as_echo_n "(cached) " >&6 | ||
7766 | else | ||
7767 | if test -n "$DSYMUTIL"; then | ||
7768 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
7769 | else | ||
7770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7771 | for as_dir in $PATH | ||
7772 | do | ||
7773 | IFS=$as_save_IFS | ||
7774 | test -z "$as_dir" && as_dir=. | ||
7775 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7777 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
7778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7779 | break 2 | ||
7780 | fi | ||
7781 | done | ||
7782 | done | ||
7783 | IFS=$as_save_IFS | ||
7784 | |||
7785 | fi | ||
7786 | fi | ||
7787 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
7788 | if test -n "$DSYMUTIL"; then | ||
7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
7790 | $as_echo "$DSYMUTIL" >&6; } | ||
7791 | else | ||
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7793 | $as_echo "no" >&6; } | ||
7794 | fi | ||
7795 | |||
7796 | |||
7797 | fi | ||
7798 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
7799 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
7800 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
7801 | set dummy dsymutil; ac_word=$2 | ||
7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7803 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7804 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
7805 | $as_echo_n "(cached) " >&6 | ||
7806 | else | ||
7807 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7808 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
7809 | else | ||
7810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7811 | for as_dir in $PATH | ||
7812 | do | ||
7813 | IFS=$as_save_IFS | ||
7814 | test -z "$as_dir" && as_dir=. | ||
7815 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7817 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
7818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7819 | break 2 | ||
7820 | fi | ||
7821 | done | ||
7822 | done | ||
7823 | IFS=$as_save_IFS | ||
7824 | |||
7825 | fi | ||
7826 | fi | ||
7827 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
7828 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
7830 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
7831 | else | ||
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7833 | $as_echo "no" >&6; } | ||
7834 | fi | ||
7835 | |||
7836 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
7837 | DSYMUTIL=":" | ||
7838 | else | ||
7839 | case $cross_compiling:$ac_tool_warned in | ||
7840 | yes:) | ||
7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7842 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7843 | ac_tool_warned=yes ;; | ||
7844 | esac | ||
7845 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
7846 | fi | ||
7847 | else | ||
7848 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
7849 | fi | ||
7850 | |||
7851 | if test -n "$ac_tool_prefix"; then | ||
7852 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
7853 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7855 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7856 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
7857 | $as_echo_n "(cached) " >&6 | ||
7858 | else | ||
7859 | if test -n "$NMEDIT"; then | ||
7860 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
7861 | else | ||
7862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7863 | for as_dir in $PATH | ||
7864 | do | ||
7865 | IFS=$as_save_IFS | ||
7866 | test -z "$as_dir" && as_dir=. | ||
7867 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7869 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
7870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7871 | break 2 | ||
7872 | fi | ||
7873 | done | ||
7874 | done | ||
7875 | IFS=$as_save_IFS | ||
7876 | |||
7877 | fi | ||
7878 | fi | ||
7879 | NMEDIT=$ac_cv_prog_NMEDIT | ||
7880 | if test -n "$NMEDIT"; then | ||
7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
7882 | $as_echo "$NMEDIT" >&6; } | ||
7883 | else | ||
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7885 | $as_echo "no" >&6; } | ||
7886 | fi | ||
7887 | |||
7888 | |||
7889 | fi | ||
7890 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
7891 | ac_ct_NMEDIT=$NMEDIT | ||
7892 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
7893 | set dummy nmedit; ac_word=$2 | ||
7894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7895 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7896 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
7897 | $as_echo_n "(cached) " >&6 | ||
7898 | else | ||
7899 | if test -n "$ac_ct_NMEDIT"; then | ||
7900 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
7901 | else | ||
7902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7903 | for as_dir in $PATH | ||
7904 | do | ||
7905 | IFS=$as_save_IFS | ||
7906 | test -z "$as_dir" && as_dir=. | ||
7907 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7909 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
7910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7911 | break 2 | ||
7912 | fi | ||
7913 | done | ||
7914 | done | ||
7915 | IFS=$as_save_IFS | ||
7916 | |||
7917 | fi | ||
7918 | fi | ||
7919 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
7920 | if test -n "$ac_ct_NMEDIT"; then | ||
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
7922 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
7923 | else | ||
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7925 | $as_echo "no" >&6; } | ||
7926 | fi | ||
7927 | |||
7928 | if test "x$ac_ct_NMEDIT" = x; then | ||
7929 | NMEDIT=":" | ||
7930 | else | ||
7931 | case $cross_compiling:$ac_tool_warned in | ||
7932 | yes:) | ||
7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7934 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7935 | ac_tool_warned=yes ;; | ||
7936 | esac | ||
7937 | NMEDIT=$ac_ct_NMEDIT | ||
7938 | fi | ||
7939 | else | ||
7940 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
7941 | fi | ||
7942 | |||
7943 | if test -n "$ac_tool_prefix"; then | ||
7944 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
7945 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7947 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7948 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
7949 | $as_echo_n "(cached) " >&6 | ||
7950 | else | ||
7951 | if test -n "$LIPO"; then | ||
7952 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
7953 | else | ||
7954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7955 | for as_dir in $PATH | ||
7956 | do | ||
7957 | IFS=$as_save_IFS | ||
7958 | test -z "$as_dir" && as_dir=. | ||
7959 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7961 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
7962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7963 | break 2 | ||
7964 | fi | ||
7965 | done | ||
7966 | done | ||
7967 | IFS=$as_save_IFS | ||
7968 | |||
7969 | fi | ||
7970 | fi | ||
7971 | LIPO=$ac_cv_prog_LIPO | ||
7972 | if test -n "$LIPO"; then | ||
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
7974 | $as_echo "$LIPO" >&6; } | ||
7975 | else | ||
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7977 | $as_echo "no" >&6; } | ||
7978 | fi | ||
7979 | |||
7980 | |||
7981 | fi | ||
7982 | if test -z "$ac_cv_prog_LIPO"; then | ||
7983 | ac_ct_LIPO=$LIPO | ||
7984 | # Extract the first word of "lipo", so it can be a program name with args. | ||
7985 | set dummy lipo; ac_word=$2 | ||
7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7987 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7988 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
7989 | $as_echo_n "(cached) " >&6 | ||
7990 | else | ||
7991 | if test -n "$ac_ct_LIPO"; then | ||
7992 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
7993 | else | ||
7994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7995 | for as_dir in $PATH | ||
7996 | do | ||
7997 | IFS=$as_save_IFS | ||
7998 | test -z "$as_dir" && as_dir=. | ||
7999 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8001 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
8002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8003 | break 2 | ||
8004 | fi | ||
8005 | done | ||
8006 | done | ||
8007 | IFS=$as_save_IFS | ||
8008 | |||
8009 | fi | ||
8010 | fi | ||
8011 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
8012 | if test -n "$ac_ct_LIPO"; then | ||
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
8014 | $as_echo "$ac_ct_LIPO" >&6; } | ||
8015 | else | ||
8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8017 | $as_echo "no" >&6; } | ||
8018 | fi | ||
8019 | |||
8020 | if test "x$ac_ct_LIPO" = x; then | ||
8021 | LIPO=":" | ||
8022 | else | ||
8023 | case $cross_compiling:$ac_tool_warned in | ||
8024 | yes:) | ||
8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8026 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8027 | ac_tool_warned=yes ;; | ||
8028 | esac | ||
8029 | LIPO=$ac_ct_LIPO | ||
8030 | fi | ||
8031 | else | ||
8032 | LIPO="$ac_cv_prog_LIPO" | ||
8033 | fi | ||
8034 | |||
8035 | if test -n "$ac_tool_prefix"; then | ||
8036 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
8037 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8039 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8040 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
8041 | $as_echo_n "(cached) " >&6 | ||
8042 | else | ||
8043 | if test -n "$OTOOL"; then | ||
8044 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
8045 | else | ||
8046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8047 | for as_dir in $PATH | ||
8048 | do | ||
8049 | IFS=$as_save_IFS | ||
8050 | test -z "$as_dir" && as_dir=. | ||
8051 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8053 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
8054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8055 | break 2 | ||
8056 | fi | ||
8057 | done | ||
8058 | done | ||
8059 | IFS=$as_save_IFS | ||
8060 | |||
8061 | fi | ||
8062 | fi | ||
8063 | OTOOL=$ac_cv_prog_OTOOL | ||
8064 | if test -n "$OTOOL"; then | ||
8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
8066 | $as_echo "$OTOOL" >&6; } | ||
8067 | else | ||
8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8069 | $as_echo "no" >&6; } | ||
8070 | fi | ||
8071 | |||
8072 | |||
8073 | fi | ||
8074 | if test -z "$ac_cv_prog_OTOOL"; then | ||
8075 | ac_ct_OTOOL=$OTOOL | ||
8076 | # Extract the first word of "otool", so it can be a program name with args. | ||
8077 | set dummy otool; ac_word=$2 | ||
8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8079 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8080 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
8081 | $as_echo_n "(cached) " >&6 | ||
8082 | else | ||
8083 | if test -n "$ac_ct_OTOOL"; then | ||
8084 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
8085 | else | ||
8086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8087 | for as_dir in $PATH | ||
8088 | do | ||
8089 | IFS=$as_save_IFS | ||
8090 | test -z "$as_dir" && as_dir=. | ||
8091 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8093 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
8094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8095 | break 2 | ||
8096 | fi | ||
8097 | done | ||
8098 | done | ||
8099 | IFS=$as_save_IFS | ||
8100 | |||
8101 | fi | ||
8102 | fi | ||
8103 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
8104 | if test -n "$ac_ct_OTOOL"; then | ||
8105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
8106 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
8107 | else | ||
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8109 | $as_echo "no" >&6; } | ||
8110 | fi | ||
8111 | |||
8112 | if test "x$ac_ct_OTOOL" = x; then | ||
8113 | OTOOL=":" | ||
8114 | else | ||
8115 | case $cross_compiling:$ac_tool_warned in | ||
8116 | yes:) | ||
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8118 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8119 | ac_tool_warned=yes ;; | ||
8120 | esac | ||
8121 | OTOOL=$ac_ct_OTOOL | ||
8122 | fi | ||
8123 | else | ||
8124 | OTOOL="$ac_cv_prog_OTOOL" | ||
8125 | fi | ||
8126 | |||
8127 | if test -n "$ac_tool_prefix"; then | ||
8128 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
8129 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8131 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8132 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
8133 | $as_echo_n "(cached) " >&6 | ||
8134 | else | ||
8135 | if test -n "$OTOOL64"; then | ||
8136 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
8137 | else | ||
8138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8139 | for as_dir in $PATH | ||
8140 | do | ||
8141 | IFS=$as_save_IFS | ||
8142 | test -z "$as_dir" && as_dir=. | ||
8143 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8145 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
8146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8147 | break 2 | ||
8148 | fi | ||
8149 | done | ||
8150 | done | ||
8151 | IFS=$as_save_IFS | ||
8152 | |||
8153 | fi | ||
8154 | fi | ||
8155 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
8156 | if test -n "$OTOOL64"; then | ||
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
8158 | $as_echo "$OTOOL64" >&6; } | ||
8159 | else | ||
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8161 | $as_echo "no" >&6; } | ||
8162 | fi | ||
8163 | |||
8164 | |||
8165 | fi | ||
8166 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
8167 | ac_ct_OTOOL64=$OTOOL64 | ||
8168 | # Extract the first word of "otool64", so it can be a program name with args. | ||
8169 | set dummy otool64; ac_word=$2 | ||
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8171 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8172 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
8173 | $as_echo_n "(cached) " >&6 | ||
8174 | else | ||
8175 | if test -n "$ac_ct_OTOOL64"; then | ||
8176 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
8177 | else | ||
8178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8179 | for as_dir in $PATH | ||
8180 | do | ||
8181 | IFS=$as_save_IFS | ||
8182 | test -z "$as_dir" && as_dir=. | ||
8183 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8185 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
8186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8187 | break 2 | ||
8188 | fi | ||
8189 | done | ||
8190 | done | ||
8191 | IFS=$as_save_IFS | ||
8192 | |||
8193 | fi | ||
8194 | fi | ||
8195 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
8196 | if test -n "$ac_ct_OTOOL64"; then | ||
8197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
8198 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
8199 | else | ||
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8201 | $as_echo "no" >&6; } | ||
8202 | fi | ||
8203 | |||
8204 | if test "x$ac_ct_OTOOL64" = x; then | ||
8205 | OTOOL64=":" | ||
8206 | else | ||
8207 | case $cross_compiling:$ac_tool_warned in | ||
8208 | yes:) | ||
8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8210 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8211 | ac_tool_warned=yes ;; | ||
8212 | esac | ||
8213 | OTOOL64=$ac_ct_OTOOL64 | ||
8214 | fi | ||
8215 | else | ||
8216 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
8217 | fi | ||
8218 | |||
8219 | |||
8220 | |||
8221 | |||
8222 | |||
8223 | |||
8224 | |||
8225 | |||
8226 | |||
8227 | |||
8228 | |||
8229 | |||
8230 | |||
8231 | |||
8232 | |||
8233 | |||
8234 | |||
8235 | |||
8236 | |||
8237 | |||
8238 | |||
8239 | |||
8240 | |||
8241 | |||
8242 | |||
8243 | |||
8244 | |||
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
8246 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
8247 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
8248 | $as_echo_n "(cached) " >&6 | ||
8249 | else | ||
8250 | lt_cv_apple_cc_single_mod=no | ||
8251 | if test -z "${LT_MULTI_MODULE}"; then | ||
8252 | # By default we will add the -single_module flag. You can override | ||
8253 | # by either setting the environment variable LT_MULTI_MODULE | ||
8254 | # non-empty at configure time, or by adding -multi_module to the | ||
8255 | # link flags. | ||
8256 | rm -rf libconftest.dylib* | ||
8257 | echo "int foo(void){return 1;}" > conftest.c | ||
8258 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
8259 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
8260 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
8261 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
8262 | _lt_result=$? | ||
8263 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
8264 | lt_cv_apple_cc_single_mod=yes | ||
8265 | else | ||
8266 | cat conftest.err >&5 | ||
8267 | fi | ||
8268 | rm -rf libconftest.dylib* | ||
8269 | rm -f conftest.* | ||
8270 | fi | ||
8271 | fi | ||
8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
8273 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
8275 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
8276 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
8277 | $as_echo_n "(cached) " >&6 | ||
8278 | else | ||
8279 | lt_cv_ld_exported_symbols_list=no | ||
8280 | save_LDFLAGS=$LDFLAGS | ||
8281 | echo "_main" > conftest.sym | ||
8282 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
8283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8284 | /* end confdefs.h. */ | ||
8285 | |||
8286 | int | ||
8287 | main () | ||
8288 | { | ||
8289 | |||
8290 | ; | ||
8291 | return 0; | ||
8292 | } | ||
8293 | _ACEOF | ||
8294 | if ac_fn_c_try_link "$LINENO"; then : | ||
8295 | lt_cv_ld_exported_symbols_list=yes | ||
8296 | else | ||
8297 | lt_cv_ld_exported_symbols_list=no | ||
8298 | fi | ||
8299 | rm -f core conftest.err conftest.$ac_objext \ | ||
8300 | conftest$ac_exeext conftest.$ac_ext | ||
8301 | LDFLAGS="$save_LDFLAGS" | ||
8302 | |||
8303 | fi | ||
8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
8305 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
8306 | case $host_os in | ||
8307 | rhapsody* | darwin1.[012]) | ||
8308 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
8309 | darwin1.*) | ||
8310 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
8311 | darwin*) # darwin 5.x on | ||
8312 | # if running on 10.5 or later, the deployment target defaults | ||
8313 | # to the OS version, if on x86, and 10.4, the deployment | ||
8314 | # target defaults to 10.4. Don't you love it? | ||
8315 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
8316 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
8317 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
8318 | 10.[012]*) | ||
8319 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
8320 | 10.*) | ||
8321 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
8322 | esac | ||
8323 | ;; | ||
8324 | esac | ||
8325 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
8326 | _lt_dar_single_mod='$single_module' | ||
8327 | fi | ||
8328 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
8329 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
8330 | else | ||
8331 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
8332 | fi | ||
8333 | if test "$DSYMUTIL" != ":"; then | ||
8334 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
8335 | else | ||
8336 | _lt_dsymutil= | ||
8337 | fi | ||
8338 | ;; | ||
8339 | esac | ||
8340 | |||
8341 | for ac_header in dlfcn.h | ||
8342 | do : | ||
8343 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
8344 | " | ||
8345 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
8346 | cat >>confdefs.h <<_ACEOF | ||
8347 | #define HAVE_DLFCN_H 1 | ||
8348 | _ACEOF | ||
8349 | |||
8350 | fi | ||
8351 | |||
8352 | done | ||
8353 | |||
8354 | |||
8355 | |||
8356 | # Set options | ||
8357 | |||
8358 | |||
8359 | |||
8360 | enable_dlopen=no | ||
8361 | |||
8362 | |||
8363 | |||
8364 | # Check whether --enable-shared was given. | ||
8365 | if test "${enable_shared+set}" = set; then : | ||
8366 | enableval=$enable_shared; p=${PACKAGE-default} | ||
8367 | case $enableval in | ||
8368 | yes) enable_shared=yes ;; | ||
8369 | no) enable_shared=no ;; | ||
8370 | *) | ||
8371 | enable_shared=no | ||
8372 | # Look at the argument we got. We use all the common list separators. | ||
8373 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8374 | for pkg in $enableval; do | ||
8375 | IFS="$lt_save_ifs" | ||
8376 | if test "X$pkg" = "X$p"; then | ||
8377 | enable_shared=yes | ||
8378 | fi | ||
8379 | done | ||
8380 | IFS="$lt_save_ifs" | ||
8381 | ;; | ||
8382 | esac | ||
8383 | else | ||
8384 | enable_shared=yes | ||
8385 | fi | ||
8386 | |||
8387 | |||
8388 | |||
8389 | |||
8390 | |||
8391 | |||
8392 | |||
8393 | |||
8394 | |||
8395 | # Check whether --enable-static was given. | ||
8396 | if test "${enable_static+set}" = set; then : | ||
8397 | enableval=$enable_static; p=${PACKAGE-default} | ||
8398 | case $enableval in | ||
8399 | yes) enable_static=yes ;; | ||
8400 | no) enable_static=no ;; | ||
8401 | *) | ||
8402 | enable_static=no | ||
8403 | # Look at the argument we got. We use all the common list separators. | ||
8404 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8405 | for pkg in $enableval; do | ||
8406 | IFS="$lt_save_ifs" | ||
8407 | if test "X$pkg" = "X$p"; then | ||
8408 | enable_static=yes | ||
8409 | fi | ||
8410 | done | ||
8411 | IFS="$lt_save_ifs" | ||
8412 | ;; | ||
8413 | esac | ||
8414 | else | ||
8415 | enable_static=yes | ||
8416 | fi | ||
8417 | |||
8418 | |||
8419 | |||
8420 | |||
8421 | |||
8422 | |||
8423 | |||
8424 | |||
8425 | |||
8426 | |||
8427 | # Check whether --with-pic was given. | ||
8428 | if test "${with_pic+set}" = set; then : | ||
8429 | withval=$with_pic; pic_mode="$withval" | ||
8430 | else | ||
8431 | pic_mode=default | ||
8432 | fi | ||
8433 | |||
8434 | |||
8435 | test -z "$pic_mode" && pic_mode=default | ||
8436 | |||
8437 | |||
8438 | |||
8439 | |||
8440 | |||
8441 | |||
8442 | |||
8443 | # Check whether --enable-fast-install was given. | ||
8444 | if test "${enable_fast_install+set}" = set; then : | ||
8445 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
8446 | case $enableval in | ||
8447 | yes) enable_fast_install=yes ;; | ||
8448 | no) enable_fast_install=no ;; | ||
8449 | *) | ||
8450 | enable_fast_install=no | ||
8451 | # Look at the argument we got. We use all the common list separators. | ||
8452 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8453 | for pkg in $enableval; do | ||
8454 | IFS="$lt_save_ifs" | ||
8455 | if test "X$pkg" = "X$p"; then | ||
8456 | enable_fast_install=yes | ||
8457 | fi | ||
8458 | done | ||
8459 | IFS="$lt_save_ifs" | ||
8460 | ;; | ||
8461 | esac | ||
8462 | else | ||
8463 | enable_fast_install=yes | ||
8464 | fi | ||
8465 | |||
8466 | |||
8467 | |||
8468 | |||
8469 | |||
8470 | |||
8471 | |||
8472 | |||
8473 | |||
8474 | |||
8475 | |||
8476 | # This can be used to rebuild libtool when needed | ||
8477 | LIBTOOL_DEPS="$ltmain" | ||
8478 | |||
8479 | # Always use our own libtool. | ||
8480 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
8481 | |||
8482 | |||
8483 | |||
8484 | |||
8485 | |||
8486 | |||
8487 | |||
8488 | |||
8489 | |||
8490 | |||
8491 | |||
8492 | |||
8493 | |||
8494 | |||
8495 | |||
8496 | |||
8497 | |||
8498 | |||
8499 | |||
8500 | |||
8501 | |||
8502 | |||
8503 | |||
8504 | |||
8505 | |||
8506 | test -z "$LN_S" && LN_S="ln -s" | ||
8507 | |||
8508 | |||
8509 | |||
8510 | |||
8511 | |||
8512 | |||
8513 | |||
8514 | |||
8515 | |||
8516 | |||
8517 | |||
8518 | |||
8519 | |||
8520 | |||
8521 | if test -n "${ZSH_VERSION+set}" ; then | ||
8522 | setopt NO_GLOB_SUBST | ||
8523 | fi | ||
8524 | |||
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
8526 | $as_echo_n "checking for objdir... " >&6; } | ||
8527 | if test "${lt_cv_objdir+set}" = set; then : | ||
8528 | $as_echo_n "(cached) " >&6 | ||
8529 | else | ||
8530 | rm -f .libs 2>/dev/null | ||
8531 | mkdir .libs 2>/dev/null | ||
8532 | if test -d .libs; then | ||
8533 | lt_cv_objdir=.libs | ||
8534 | else | ||
8535 | # MS-DOS does not allow filenames that begin with a dot. | ||
8536 | lt_cv_objdir=_libs | ||
8537 | fi | ||
8538 | rmdir .libs 2>/dev/null | ||
8539 | fi | ||
8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
8541 | $as_echo "$lt_cv_objdir" >&6; } | ||
8542 | objdir=$lt_cv_objdir | ||
8543 | |||
8544 | |||
8545 | |||
8546 | |||
8547 | |||
8548 | cat >>confdefs.h <<_ACEOF | ||
8549 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
8550 | _ACEOF | ||
8551 | |||
8552 | |||
8553 | |||
8554 | |||
8555 | |||
8556 | |||
8557 | |||
8558 | |||
8559 | |||
8560 | |||
8561 | |||
8562 | |||
8563 | |||
8564 | |||
8565 | |||
8566 | |||
8567 | |||
8568 | case $host_os in | ||
8569 | aix3*) | ||
8570 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
8571 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
8572 | # vanish in a puff of smoke. | ||
8573 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
8574 | COLLECT_NAMES= | ||
8575 | export COLLECT_NAMES | ||
8576 | fi | ||
8577 | ;; | ||
8578 | esac | ||
8579 | |||
8580 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
8581 | # metacharacters that are still active within double-quoted strings. | ||
8582 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
8583 | |||
8584 | # Same as above, but do not quote variable references. | ||
8585 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
8586 | |||
8587 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
8588 | # double_quote_subst'ed string. | ||
8589 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
8590 | |||
8591 | # Sed substitution to delay expansion of an escaped single quote. | ||
8592 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
8593 | |||
8594 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
8595 | no_glob_subst='s/\*/\\\*/g' | ||
8596 | |||
8597 | # Global variables: | ||
8598 | ofile=libtool | ||
8599 | can_build_shared=yes | ||
8600 | |||
8601 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
8602 | # which needs '.lib'). | ||
8603 | libext=a | ||
8604 | |||
8605 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
8606 | |||
8607 | old_CC="$CC" | ||
8608 | old_CFLAGS="$CFLAGS" | ||
8609 | |||
8610 | # Set sane defaults for various variables | ||
8611 | test -z "$CC" && CC=cc | ||
8612 | test -z "$LTCC" && LTCC=$CC | ||
8613 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
8614 | test -z "$LD" && LD=ld | ||
8615 | test -z "$ac_objext" && ac_objext=o | ||
8616 | |||
8617 | for cc_temp in $compiler""; do | ||
8618 | case $cc_temp in | ||
8619 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
8620 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
8621 | \-*) ;; | ||
8622 | *) break;; | ||
8623 | esac | ||
8624 | done | ||
8625 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
8626 | |||
8627 | |||
8628 | # Only perform the check for file, if the check method requires it | ||
8629 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
8630 | case $deplibs_check_method in | ||
8631 | file_magic*) | ||
8632 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
8633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
8634 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
8635 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8636 | $as_echo_n "(cached) " >&6 | ||
8637 | else | ||
8638 | case $MAGIC_CMD in | ||
8639 | [\\/*] | ?:[\\/]*) | ||
8640 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8641 | ;; | ||
8642 | *) | ||
8643 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8644 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8645 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8646 | for ac_dir in $ac_dummy; do | ||
8647 | IFS="$lt_save_ifs" | ||
8648 | test -z "$ac_dir" && ac_dir=. | ||
8649 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
8650 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
8651 | if test -n "$file_magic_test_file"; then | ||
8652 | case $deplibs_check_method in | ||
8653 | "file_magic "*) | ||
8654 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8655 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8656 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8657 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8658 | : | ||
8659 | else | ||
8660 | cat <<_LT_EOF 1>&2 | ||
8661 | |||
8662 | *** Warning: the command libtool uses to detect shared libraries, | ||
8663 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8664 | *** The result is that libtool may fail to recognize shared libraries | ||
8665 | *** as such. This will affect the creation of libtool libraries that | ||
8666 | *** depend on shared libraries, but programs linked with such libtool | ||
8667 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8668 | *** may want to report the problem to your system manager and/or to | ||
8669 | *** bug-libtool@gnu.org | ||
8670 | |||
8671 | _LT_EOF | ||
8672 | fi ;; | ||
8673 | esac | ||
8674 | fi | ||
8675 | break | ||
8676 | fi | ||
8677 | done | ||
8678 | IFS="$lt_save_ifs" | ||
8679 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8680 | ;; | ||
8681 | esac | ||
8682 | fi | ||
8683 | |||
8684 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8685 | if test -n "$MAGIC_CMD"; then | ||
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8687 | $as_echo "$MAGIC_CMD" >&6; } | ||
8688 | else | ||
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8690 | $as_echo "no" >&6; } | ||
8691 | fi | ||
8692 | |||
8693 | |||
8694 | |||
8695 | |||
8696 | |||
8697 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
8698 | if test -n "$ac_tool_prefix"; then | ||
8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
8700 | $as_echo_n "checking for file... " >&6; } | ||
8701 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8702 | $as_echo_n "(cached) " >&6 | ||
8703 | else | ||
8704 | case $MAGIC_CMD in | ||
8705 | [\\/*] | ?:[\\/]*) | ||
8706 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8707 | ;; | ||
8708 | *) | ||
8709 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8710 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8711 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8712 | for ac_dir in $ac_dummy; do | ||
8713 | IFS="$lt_save_ifs" | ||
8714 | test -z "$ac_dir" && ac_dir=. | ||
8715 | if test -f $ac_dir/file; then | ||
8716 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
8717 | if test -n "$file_magic_test_file"; then | ||
8718 | case $deplibs_check_method in | ||
8719 | "file_magic "*) | ||
8720 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8721 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8722 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8723 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8724 | : | ||
8725 | else | ||
8726 | cat <<_LT_EOF 1>&2 | ||
8727 | |||
8728 | *** Warning: the command libtool uses to detect shared libraries, | ||
8729 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8730 | *** The result is that libtool may fail to recognize shared libraries | ||
8731 | *** as such. This will affect the creation of libtool libraries that | ||
8732 | *** depend on shared libraries, but programs linked with such libtool | ||
8733 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8734 | *** may want to report the problem to your system manager and/or to | ||
8735 | *** bug-libtool@gnu.org | ||
8736 | |||
8737 | _LT_EOF | ||
8738 | fi ;; | ||
8739 | esac | ||
8740 | fi | ||
8741 | break | ||
8742 | fi | ||
8743 | done | ||
8744 | IFS="$lt_save_ifs" | ||
8745 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8746 | ;; | ||
8747 | esac | ||
8748 | fi | ||
8749 | |||
8750 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8751 | if test -n "$MAGIC_CMD"; then | ||
8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8753 | $as_echo "$MAGIC_CMD" >&6; } | ||
8754 | else | ||
8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8756 | $as_echo "no" >&6; } | ||
8757 | fi | ||
8758 | |||
8759 | |||
8760 | else | ||
8761 | MAGIC_CMD=: | ||
8762 | fi | ||
8763 | fi | ||
8764 | |||
8765 | fi | ||
8766 | ;; | ||
8767 | esac | ||
8768 | |||
8769 | # Use C for the default configuration in the libtool script | ||
8770 | |||
8771 | lt_save_CC="$CC" | ||
8772 | ac_ext=c | ||
8773 | ac_cpp='$CPP $CPPFLAGS' | ||
8774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
8775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
8776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
8777 | |||
8778 | |||
8779 | # Source file extension for C test sources. | ||
8780 | ac_ext=c | ||
8781 | |||
8782 | # Object file extension for compiled C test sources. | ||
8783 | objext=o | ||
8784 | objext=$objext | ||
8785 | |||
8786 | # Code to be used in simple compile tests | ||
8787 | lt_simple_compile_test_code="int some_variable = 0;" | ||
8788 | |||
8789 | # Code to be used in simple link tests | ||
8790 | lt_simple_link_test_code='int main(){return(0);}' | ||
8791 | |||
8792 | |||
8793 | |||
8794 | |||
8795 | |||
8796 | |||
8797 | |||
8798 | # If no C compiler was specified, use CC. | ||
8799 | LTCC=${LTCC-"$CC"} | ||
8800 | |||
8801 | # If no C compiler flags were specified, use CFLAGS. | ||
8802 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
8803 | |||
8804 | # Allow CC to be a program name with arguments. | ||
8805 | compiler=$CC | ||
8806 | |||
8807 | # Save the default compiler, since it gets overwritten when the other | ||
8808 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
8809 | compiler_DEFAULT=$CC | ||
8810 | |||
8811 | # save warnings/boilerplate of simple test code | ||
8812 | ac_outfile=conftest.$ac_objext | ||
8813 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
8814 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8815 | _lt_compiler_boilerplate=`cat conftest.err` | ||
8816 | $RM conftest* | ||
8817 | |||
8818 | ac_outfile=conftest.$ac_objext | ||
8819 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
8820 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8821 | _lt_linker_boilerplate=`cat conftest.err` | ||
8822 | $RM -r conftest* | ||
8823 | |||
8824 | |||
8825 | ## CAVEAT EMPTOR: | ||
8826 | ## There is no encapsulation within the following macros, do not change | ||
8827 | ## the running order or otherwise move them around unless you know exactly | ||
8828 | ## what you are doing... | ||
8829 | if test -n "$compiler"; then | ||
8830 | |||
8831 | lt_prog_compiler_no_builtin_flag= | ||
8832 | |||
8833 | if test "$GCC" = yes; then | ||
8834 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
8835 | |||
8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
8837 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
8838 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
8839 | $as_echo_n "(cached) " >&6 | ||
8840 | else | ||
8841 | lt_cv_prog_compiler_rtti_exceptions=no | ||
8842 | ac_outfile=conftest.$ac_objext | ||
8843 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8844 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
8845 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8846 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8847 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8848 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8849 | # The option is referenced via a variable to avoid confusing sed. | ||
8850 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8851 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8852 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8853 | -e 's:$: $lt_compiler_flag:'` | ||
8854 | (eval echo "\"\$as_me:8854: $lt_compile\"" >&5) | ||
8855 | (eval "$lt_compile" 2>conftest.err) | ||
8856 | ac_status=$? | ||
8857 | cat conftest.err >&5 | ||
8858 | echo "$as_me:8858: \$? = $ac_status" >&5 | ||
8859 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8860 | # The compiler can only warn and ignore the option if not recognized | ||
8861 | # So say no if there are warnings other than the usual output. | ||
8862 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8863 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8864 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8865 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
8866 | fi | ||
8867 | fi | ||
8868 | $RM conftest* | ||
8869 | |||
8870 | fi | ||
8871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
8872 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
8873 | |||
8874 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
8875 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
8876 | else | ||
8877 | : | ||
8878 | fi | ||
8879 | |||
8880 | fi | ||
8881 | |||
8882 | |||
8883 | |||
8884 | |||
8885 | |||
8886 | |||
8887 | lt_prog_compiler_wl= | ||
8888 | lt_prog_compiler_pic= | ||
8889 | lt_prog_compiler_static= | ||
8890 | |||
8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
8892 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8893 | |||
8894 | if test "$GCC" = yes; then | ||
8895 | lt_prog_compiler_wl='-Wl,' | ||
8896 | lt_prog_compiler_static='-static' | ||
8897 | |||
8898 | case $host_os in | ||
8899 | aix*) | ||
8900 | # All AIX code is PIC. | ||
8901 | if test "$host_cpu" = ia64; then | ||
8902 | # AIX 5 now supports IA64 processor | ||
8903 | lt_prog_compiler_static='-Bstatic' | ||
8904 | fi | ||
8905 | ;; | ||
8906 | |||
8907 | amigaos*) | ||
8908 | case $host_cpu in | ||
8909 | powerpc) | ||
8910 | # see comment about AmigaOS4 .so support | ||
8911 | lt_prog_compiler_pic='-fPIC' | ||
8912 | ;; | ||
8913 | m68k) | ||
8914 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
8915 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
8916 | # like `-m68040'. | ||
8917 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
8918 | ;; | ||
8919 | esac | ||
8920 | ;; | ||
8921 | |||
8922 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
8923 | # PIC is the default for these OSes. | ||
8924 | ;; | ||
8925 | |||
8926 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
8927 | # This hack is so that the source file can tell whether it is being | ||
8928 | # built for inclusion in a dll (and should export symbols for example). | ||
8929 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
8930 | # (--disable-auto-import) libraries | ||
8931 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8932 | ;; | ||
8933 | |||
8934 | darwin* | rhapsody*) | ||
8935 | # PIC is the default on this platform | ||
8936 | # Common symbols not allowed in MH_DYLIB files | ||
8937 | lt_prog_compiler_pic='-fno-common' | ||
8938 | ;; | ||
8939 | |||
8940 | hpux*) | ||
8941 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
8942 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
8943 | # sets the default TLS model and affects inlining. | ||
8944 | case $host_cpu in | ||
8945 | hppa*64*) | ||
8946 | # +Z the default | ||
8947 | ;; | ||
8948 | *) | ||
8949 | lt_prog_compiler_pic='-fPIC' | ||
8950 | ;; | ||
8951 | esac | ||
8952 | ;; | ||
8953 | |||
8954 | interix[3-9]*) | ||
8955 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
8956 | # Instead, we relocate shared libraries at runtime. | ||
8957 | ;; | ||
8958 | |||
8959 | msdosdjgpp*) | ||
8960 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
8961 | # on systems that don't support them. | ||
8962 | lt_prog_compiler_can_build_shared=no | ||
8963 | enable_shared=no | ||
8964 | ;; | ||
8965 | |||
8966 | *nto* | *qnx*) | ||
8967 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
8968 | # it will coredump. | ||
8969 | lt_prog_compiler_pic='-fPIC -shared' | ||
8970 | ;; | ||
8971 | |||
8972 | sysv4*MP*) | ||
8973 | if test -d /usr/nec; then | ||
8974 | lt_prog_compiler_pic=-Kconform_pic | ||
8975 | fi | ||
8976 | ;; | ||
8977 | |||
8978 | *) | ||
8979 | lt_prog_compiler_pic='-fPIC' | ||
8980 | ;; | ||
8981 | esac | ||
8982 | else | ||
8983 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
8984 | case $host_os in | ||
8985 | aix*) | ||
8986 | lt_prog_compiler_wl='-Wl,' | ||
8987 | if test "$host_cpu" = ia64; then | ||
8988 | # AIX 5 now supports IA64 processor | ||
8989 | lt_prog_compiler_static='-Bstatic' | ||
8990 | else | ||
8991 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
8992 | fi | ||
8993 | ;; | ||
8994 | |||
8995 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
8996 | # This hack is so that the source file can tell whether it is being | ||
8997 | # built for inclusion in a dll (and should export symbols for example). | ||
8998 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8999 | ;; | ||
9000 | |||
9001 | hpux9* | hpux10* | hpux11*) | ||
9002 | lt_prog_compiler_wl='-Wl,' | ||
9003 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
9004 | # not for PA HP-UX. | ||
9005 | case $host_cpu in | ||
9006 | hppa*64*|ia64*) | ||
9007 | # +Z the default | ||
9008 | ;; | ||
9009 | *) | ||
9010 | lt_prog_compiler_pic='+Z' | ||
9011 | ;; | ||
9012 | esac | ||
9013 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
9014 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
9015 | ;; | ||
9016 | |||
9017 | irix5* | irix6* | nonstopux*) | ||
9018 | lt_prog_compiler_wl='-Wl,' | ||
9019 | # PIC (with -KPIC) is the default. | ||
9020 | lt_prog_compiler_static='-non_shared' | ||
9021 | ;; | ||
9022 | |||
9023 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9024 | case $cc_basename in | ||
9025 | # old Intel for x86_64 which still supported -KPIC. | ||
9026 | ecc*) | ||
9027 | lt_prog_compiler_wl='-Wl,' | ||
9028 | lt_prog_compiler_pic='-KPIC' | ||
9029 | lt_prog_compiler_static='-static' | ||
9030 | ;; | ||
9031 | # icc used to be incompatible with GCC. | ||
9032 | # ICC 10 doesn't accept -KPIC any more. | ||
9033 | icc* | ifort*) | ||
9034 | lt_prog_compiler_wl='-Wl,' | ||
9035 | lt_prog_compiler_pic='-fPIC' | ||
9036 | lt_prog_compiler_static='-static' | ||
9037 | ;; | ||
9038 | # Lahey Fortran 8.1. | ||
9039 | lf95*) | ||
9040 | lt_prog_compiler_wl='-Wl,' | ||
9041 | lt_prog_compiler_pic='--shared' | ||
9042 | lt_prog_compiler_static='--static' | ||
9043 | ;; | ||
9044 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
9045 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
9046 | # which looks to be a dead project) | ||
9047 | lt_prog_compiler_wl='-Wl,' | ||
9048 | lt_prog_compiler_pic='-fpic' | ||
9049 | lt_prog_compiler_static='-Bstatic' | ||
9050 | ;; | ||
9051 | ccc*) | ||
9052 | lt_prog_compiler_wl='-Wl,' | ||
9053 | # All Alpha code is PIC. | ||
9054 | lt_prog_compiler_static='-non_shared' | ||
9055 | ;; | ||
9056 | xl*) | ||
9057 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
9058 | lt_prog_compiler_wl='-Wl,' | ||
9059 | lt_prog_compiler_pic='-qpic' | ||
9060 | lt_prog_compiler_static='-qstaticlink' | ||
9061 | ;; | ||
9062 | *) | ||
9063 | case `$CC -V 2>&1 | sed 5q` in | ||
9064 | *Sun\ C*) | ||
9065 | # Sun C 5.9 | ||
9066 | lt_prog_compiler_pic='-KPIC' | ||
9067 | lt_prog_compiler_static='-Bstatic' | ||
9068 | lt_prog_compiler_wl='-Wl,' | ||
9069 | ;; | ||
9070 | *Sun\ F*) | ||
9071 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
9072 | lt_prog_compiler_pic='-KPIC' | ||
9073 | lt_prog_compiler_static='-Bstatic' | ||
9074 | lt_prog_compiler_wl='' | ||
9075 | ;; | ||
9076 | esac | ||
9077 | ;; | ||
9078 | esac | ||
9079 | ;; | ||
9080 | |||
9081 | newsos6) | ||
9082 | lt_prog_compiler_pic='-KPIC' | ||
9083 | lt_prog_compiler_static='-Bstatic' | ||
9084 | ;; | ||
9085 | |||
9086 | *nto* | *qnx*) | ||
9087 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
9088 | # it will coredump. | ||
9089 | lt_prog_compiler_pic='-fPIC -shared' | ||
9090 | ;; | ||
9091 | |||
9092 | osf3* | osf4* | osf5*) | ||
9093 | lt_prog_compiler_wl='-Wl,' | ||
9094 | # All OSF/1 code is PIC. | ||
9095 | lt_prog_compiler_static='-non_shared' | ||
9096 | ;; | ||
9097 | |||
9098 | rdos*) | ||
9099 | lt_prog_compiler_static='-non_shared' | ||
9100 | ;; | ||
9101 | |||
9102 | solaris*) | ||
9103 | lt_prog_compiler_pic='-KPIC' | ||
9104 | lt_prog_compiler_static='-Bstatic' | ||
9105 | case $cc_basename in | ||
9106 | f77* | f90* | f95*) | ||
9107 | lt_prog_compiler_wl='-Qoption ld ';; | ||
9108 | *) | ||
9109 | lt_prog_compiler_wl='-Wl,';; | ||
9110 | esac | ||
9111 | ;; | ||
9112 | |||
9113 | sunos4*) | ||
9114 | lt_prog_compiler_wl='-Qoption ld ' | ||
9115 | lt_prog_compiler_pic='-PIC' | ||
9116 | lt_prog_compiler_static='-Bstatic' | ||
9117 | ;; | ||
9118 | |||
9119 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
9120 | lt_prog_compiler_wl='-Wl,' | ||
9121 | lt_prog_compiler_pic='-KPIC' | ||
9122 | lt_prog_compiler_static='-Bstatic' | ||
9123 | ;; | ||
9124 | |||
9125 | sysv4*MP*) | ||
9126 | if test -d /usr/nec ;then | ||
9127 | lt_prog_compiler_pic='-Kconform_pic' | ||
9128 | lt_prog_compiler_static='-Bstatic' | ||
9129 | fi | ||
9130 | ;; | ||
9131 | |||
9132 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
9133 | lt_prog_compiler_wl='-Wl,' | ||
9134 | lt_prog_compiler_pic='-KPIC' | ||
9135 | lt_prog_compiler_static='-Bstatic' | ||
9136 | ;; | ||
9137 | |||
9138 | unicos*) | ||
9139 | lt_prog_compiler_wl='-Wl,' | ||
9140 | lt_prog_compiler_can_build_shared=no | ||
9141 | ;; | ||
9142 | |||
9143 | uts4*) | ||
9144 | lt_prog_compiler_pic='-pic' | ||
9145 | lt_prog_compiler_static='-Bstatic' | ||
9146 | ;; | ||
9147 | |||
9148 | *) | ||
9149 | lt_prog_compiler_can_build_shared=no | ||
9150 | ;; | ||
9151 | esac | ||
9152 | fi | ||
9153 | |||
9154 | case $host_os in | ||
9155 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
9156 | *djgpp*) | ||
9157 | lt_prog_compiler_pic= | ||
9158 | ;; | ||
9159 | *) | ||
9160 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
9161 | ;; | ||
9162 | esac | ||
9163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
9164 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
9165 | |||
9166 | |||
9167 | |||
9168 | |||
9169 | |||
9170 | |||
9171 | # | ||
9172 | # Check to make sure the PIC flag actually works. | ||
9173 | # | ||
9174 | if test -n "$lt_prog_compiler_pic"; then | ||
9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
9176 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
9177 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
9178 | $as_echo_n "(cached) " >&6 | ||
9179 | else | ||
9180 | lt_cv_prog_compiler_pic_works=no | ||
9181 | ac_outfile=conftest.$ac_objext | ||
9182 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9183 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
9184 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9185 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9186 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9187 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9188 | # The option is referenced via a variable to avoid confusing sed. | ||
9189 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9190 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9191 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9192 | -e 's:$: $lt_compiler_flag:'` | ||
9193 | (eval echo "\"\$as_me:9193: $lt_compile\"" >&5) | ||
9194 | (eval "$lt_compile" 2>conftest.err) | ||
9195 | ac_status=$? | ||
9196 | cat conftest.err >&5 | ||
9197 | echo "$as_me:9197: \$? = $ac_status" >&5 | ||
9198 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
9199 | # The compiler can only warn and ignore the option if not recognized | ||
9200 | # So say no if there are warnings other than the usual output. | ||
9201 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
9202 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
9203 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
9204 | lt_cv_prog_compiler_pic_works=yes | ||
9205 | fi | ||
9206 | fi | ||
9207 | $RM conftest* | ||
9208 | |||
9209 | fi | ||
9210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
9211 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
9212 | |||
9213 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
9214 | case $lt_prog_compiler_pic in | ||
9215 | "" | " "*) ;; | ||
9216 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
9217 | esac | ||
9218 | else | ||
9219 | lt_prog_compiler_pic= | ||
9220 | lt_prog_compiler_can_build_shared=no | ||
9221 | fi | ||
9222 | |||
9223 | fi | ||
9224 | |||
9225 | |||
9226 | |||
9227 | |||
9228 | |||
9229 | |||
9230 | # | ||
9231 | # Check to make sure the static flag actually works. | ||
9232 | # | ||
9233 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
9235 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
9236 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
9237 | $as_echo_n "(cached) " >&6 | ||
9238 | else | ||
9239 | lt_cv_prog_compiler_static_works=no | ||
9240 | save_LDFLAGS="$LDFLAGS" | ||
9241 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
9242 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
9243 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
9244 | # The linker can only warn and ignore the option if not recognized | ||
9245 | # So say no if there are warnings | ||
9246 | if test -s conftest.err; then | ||
9247 | # Append any errors to the config.log. | ||
9248 | cat conftest.err 1>&5 | ||
9249 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
9250 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
9251 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
9252 | lt_cv_prog_compiler_static_works=yes | ||
9253 | fi | ||
9254 | else | ||
9255 | lt_cv_prog_compiler_static_works=yes | ||
9256 | fi | ||
9257 | fi | ||
9258 | $RM -r conftest* | ||
9259 | LDFLAGS="$save_LDFLAGS" | ||
9260 | |||
9261 | fi | ||
9262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
9263 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
9264 | |||
9265 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
9266 | : | ||
9267 | else | ||
9268 | lt_prog_compiler_static= | ||
9269 | fi | ||
9270 | |||
9271 | |||
9272 | |||
9273 | |||
9274 | |||
9275 | |||
9276 | |||
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
9278 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
9279 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
9280 | $as_echo_n "(cached) " >&6 | ||
9281 | else | ||
9282 | lt_cv_prog_compiler_c_o=no | ||
9283 | $RM -r conftest 2>/dev/null | ||
9284 | mkdir conftest | ||
9285 | cd conftest | ||
9286 | mkdir out | ||
9287 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9288 | |||
9289 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
9290 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9291 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9292 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9293 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9294 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9295 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9296 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9297 | -e 's:$: $lt_compiler_flag:'` | ||
9298 | (eval echo "\"\$as_me:9298: $lt_compile\"" >&5) | ||
9299 | (eval "$lt_compile" 2>out/conftest.err) | ||
9300 | ac_status=$? | ||
9301 | cat out/conftest.err >&5 | ||
9302 | echo "$as_me:9302: \$? = $ac_status" >&5 | ||
9303 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
9304 | then | ||
9305 | # The compiler can only warn and ignore the option if not recognized | ||
9306 | # So say no if there are warnings | ||
9307 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
9308 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
9309 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
9310 | lt_cv_prog_compiler_c_o=yes | ||
9311 | fi | ||
9312 | fi | ||
9313 | chmod u+w . 2>&5 | ||
9314 | $RM conftest* | ||
9315 | # SGI C++ compiler will create directory out/ii_files/ for | ||
9316 | # template instantiation | ||
9317 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
9318 | $RM out/* && rmdir out | ||
9319 | cd .. | ||
9320 | $RM -r conftest | ||
9321 | $RM conftest* | ||
9322 | |||
9323 | fi | ||
9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
9325 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
9326 | |||
9327 | |||
9328 | |||
9329 | |||
9330 | |||
9331 | |||
9332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
9333 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
9334 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
9335 | $as_echo_n "(cached) " >&6 | ||
9336 | else | ||
9337 | lt_cv_prog_compiler_c_o=no | ||
9338 | $RM -r conftest 2>/dev/null | ||
9339 | mkdir conftest | ||
9340 | cd conftest | ||
9341 | mkdir out | ||
9342 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9343 | |||
9344 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
9345 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9346 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9347 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9348 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9349 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9350 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9351 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9352 | -e 's:$: $lt_compiler_flag:'` | ||
9353 | (eval echo "\"\$as_me:9353: $lt_compile\"" >&5) | ||
9354 | (eval "$lt_compile" 2>out/conftest.err) | ||
9355 | ac_status=$? | ||
9356 | cat out/conftest.err >&5 | ||
9357 | echo "$as_me:9357: \$? = $ac_status" >&5 | ||
9358 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
9359 | then | ||
9360 | # The compiler can only warn and ignore the option if not recognized | ||
9361 | # So say no if there are warnings | ||
9362 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
9363 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
9364 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
9365 | lt_cv_prog_compiler_c_o=yes | ||
9366 | fi | ||
9367 | fi | ||
9368 | chmod u+w . 2>&5 | ||
9369 | $RM conftest* | ||
9370 | # SGI C++ compiler will create directory out/ii_files/ for | ||
9371 | # template instantiation | ||
9372 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
9373 | $RM out/* && rmdir out | ||
9374 | cd .. | ||
9375 | $RM -r conftest | ||
9376 | $RM conftest* | ||
9377 | |||
9378 | fi | ||
9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
9380 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
9381 | |||
9382 | |||
9383 | |||
9384 | |||
9385 | hard_links="nottested" | ||
9386 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
9387 | # do not overwrite the value of need_locks provided by the user | ||
9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
9389 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
9390 | hard_links=yes | ||
9391 | $RM conftest* | ||
9392 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
9393 | touch conftest.a | ||
9394 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
9395 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
9396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
9397 | $as_echo "$hard_links" >&6; } | ||
9398 | if test "$hard_links" = no; then | ||
9399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
9400 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
9401 | need_locks=warn | ||
9402 | fi | ||
9403 | else | ||
9404 | need_locks=no | ||
9405 | fi | ||
9406 | |||
9407 | |||
9408 | |||
9409 | |||
9410 | |||
9411 | |||
9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
9413 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
9414 | |||
9415 | runpath_var= | ||
9416 | allow_undefined_flag= | ||
9417 | always_export_symbols=no | ||
9418 | archive_cmds= | ||
9419 | archive_expsym_cmds= | ||
9420 | compiler_needs_object=no | ||
9421 | enable_shared_with_static_runtimes=no | ||
9422 | export_dynamic_flag_spec= | ||
9423 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
9424 | hardcode_automatic=no | ||
9425 | hardcode_direct=no | ||
9426 | hardcode_direct_absolute=no | ||
9427 | hardcode_libdir_flag_spec= | ||
9428 | hardcode_libdir_flag_spec_ld= | ||
9429 | hardcode_libdir_separator= | ||
9430 | hardcode_minus_L=no | ||
9431 | hardcode_shlibpath_var=unsupported | ||
9432 | inherit_rpath=no | ||
9433 | link_all_deplibs=unknown | ||
9434 | module_cmds= | ||
9435 | module_expsym_cmds= | ||
9436 | old_archive_from_new_cmds= | ||
9437 | old_archive_from_expsyms_cmds= | ||
9438 | thread_safe_flag_spec= | ||
9439 | whole_archive_flag_spec= | ||
9440 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
9441 | # included in the symbol list | ||
9442 | include_expsyms= | ||
9443 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
9444 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
9445 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
9446 | # as well as any symbol that contains `d'. | ||
9447 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
9448 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
9449 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
9450 | # the symbol is explicitly referenced. Since portable code cannot | ||
9451 | # rely on this symbol name, it's probably fine to never include it in | ||
9452 | # preloaded symbol tables. | ||
9453 | # Exclude shared library initialization/finalization symbols. | ||
9454 | extract_expsyms_cmds= | ||
9455 | |||
9456 | case $host_os in | ||
9457 | cygwin* | mingw* | pw32* | cegcc*) | ||
9458 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
9459 | # When not using gcc, we currently assume that we are using | ||
9460 | # Microsoft Visual C++. | ||
9461 | if test "$GCC" != yes; then | ||
9462 | with_gnu_ld=no | ||
9463 | fi | ||
9464 | ;; | ||
9465 | interix*) | ||
9466 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
9467 | with_gnu_ld=yes | ||
9468 | ;; | ||
9469 | openbsd*) | ||
9470 | with_gnu_ld=no | ||
9471 | ;; | ||
9472 | linux* | k*bsd*-gnu) | ||
9473 | link_all_deplibs=no | ||
9474 | ;; | ||
9475 | esac | ||
9476 | |||
9477 | ld_shlibs=yes | ||
9478 | if test "$with_gnu_ld" = yes; then | ||
9479 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
9480 | wlarc='${wl}' | ||
9481 | |||
9482 | # Set some defaults for GNU ld with shared library support. These | ||
9483 | # are reset later if shared libraries are not supported. Putting them | ||
9484 | # here allows them to be overridden if necessary. | ||
9485 | runpath_var=LD_RUN_PATH | ||
9486 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9487 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
9488 | # ancient GNU ld didn't support --whole-archive et. al. | ||
9489 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
9490 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
9491 | else | ||
9492 | whole_archive_flag_spec= | ||
9493 | fi | ||
9494 | supports_anon_versioning=no | ||
9495 | case `$LD -v 2>&1` in | ||
9496 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
9497 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
9498 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
9499 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
9500 | *\ 2.11.*) ;; # other 2.11 versions | ||
9501 | *) supports_anon_versioning=yes ;; | ||
9502 | esac | ||
9503 | |||
9504 | # See if GNU ld supports shared libraries. | ||
9505 | case $host_os in | ||
9506 | aix[3-9]*) | ||
9507 | # On AIX/PPC, the GNU linker is very broken | ||
9508 | if test "$host_cpu" != ia64; then | ||
9509 | ld_shlibs=no | ||
9510 | cat <<_LT_EOF 1>&2 | ||
9511 | |||
9512 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
9513 | *** to be unable to reliably create shared libraries on AIX. | ||
9514 | *** Therefore, libtool is disabling shared libraries support. If you | ||
9515 | *** really care for shared libraries, you may want to modify your PATH | ||
9516 | *** so that a non-GNU linker is found, and then restart. | ||
9517 | |||
9518 | _LT_EOF | ||
9519 | fi | ||
9520 | ;; | ||
9521 | |||
9522 | amigaos*) | ||
9523 | case $host_cpu in | ||
9524 | powerpc) | ||
9525 | # see comment about AmigaOS4 .so support | ||
9526 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9527 | archive_expsym_cmds='' | ||
9528 | ;; | ||
9529 | m68k) | ||
9530 | 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)' | ||
9531 | hardcode_libdir_flag_spec='-L$libdir' | ||
9532 | hardcode_minus_L=yes | ||
9533 | ;; | ||
9534 | esac | ||
9535 | ;; | ||
9536 | |||
9537 | beos*) | ||
9538 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9539 | allow_undefined_flag=unsupported | ||
9540 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
9541 | # support --undefined. This deserves some investigation. FIXME | ||
9542 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9543 | else | ||
9544 | ld_shlibs=no | ||
9545 | fi | ||
9546 | ;; | ||
9547 | |||
9548 | cygwin* | mingw* | pw32* | cegcc*) | ||
9549 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
9550 | # as there is no search path for DLLs. | ||
9551 | hardcode_libdir_flag_spec='-L$libdir' | ||
9552 | allow_undefined_flag=unsupported | ||
9553 | always_export_symbols=no | ||
9554 | enable_shared_with_static_runtimes=yes | ||
9555 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
9556 | |||
9557 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
9558 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9559 | # If the export-symbols file already is a .def file (1st line | ||
9560 | # is EXPORTS), use it as is; otherwise, prepend... | ||
9561 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9562 | cp $export_symbols $output_objdir/$soname.def; | ||
9563 | else | ||
9564 | echo EXPORTS > $output_objdir/$soname.def; | ||
9565 | cat $export_symbols >> $output_objdir/$soname.def; | ||
9566 | fi~ | ||
9567 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9568 | else | ||
9569 | ld_shlibs=no | ||
9570 | fi | ||
9571 | ;; | ||
9572 | |||
9573 | interix[3-9]*) | ||
9574 | hardcode_direct=no | ||
9575 | hardcode_shlibpath_var=no | ||
9576 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9577 | export_dynamic_flag_spec='${wl}-E' | ||
9578 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
9579 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
9580 | # default) and relocated if they conflict, which is a slow very memory | ||
9581 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
9582 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
9583 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
9584 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
9585 | 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' | ||
9586 | ;; | ||
9587 | |||
9588 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9589 | tmp_diet=no | ||
9590 | if test "$host_os" = linux-dietlibc; then | ||
9591 | case $cc_basename in | ||
9592 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
9593 | esac | ||
9594 | fi | ||
9595 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
9596 | && test "$tmp_diet" = no | ||
9597 | then | ||
9598 | tmp_addflag= | ||
9599 | tmp_sharedflag='-shared' | ||
9600 | case $cc_basename,$host_cpu in | ||
9601 | pgcc*) # Portland Group C compiler | ||
9602 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9603 | tmp_addflag=' $pic_flag' | ||
9604 | ;; | ||
9605 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
9606 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9607 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
9608 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
9609 | tmp_addflag=' -i_dynamic' ;; | ||
9610 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
9611 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
9612 | ifc* | ifort*) # Intel Fortran compiler | ||
9613 | tmp_addflag=' -nofor_main' ;; | ||
9614 | lf95*) # Lahey Fortran 8.1 | ||
9615 | whole_archive_flag_spec= | ||
9616 | tmp_sharedflag='--shared' ;; | ||
9617 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
9618 | tmp_sharedflag='-qmkshrobj' | ||
9619 | tmp_addflag= ;; | ||
9620 | esac | ||
9621 | case `$CC -V 2>&1 | sed 5q` in | ||
9622 | *Sun\ C*) # Sun C 5.9 | ||
9623 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9624 | compiler_needs_object=yes | ||
9625 | tmp_sharedflag='-G' ;; | ||
9626 | *Sun\ F*) # Sun Fortran 8.3 | ||
9627 | tmp_sharedflag='-G' ;; | ||
9628 | esac | ||
9629 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9630 | |||
9631 | if test "x$supports_anon_versioning" = xyes; then | ||
9632 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9633 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9634 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9635 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
9636 | fi | ||
9637 | |||
9638 | case $cc_basename in | ||
9639 | xlf*) | ||
9640 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
9641 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
9642 | hardcode_libdir_flag_spec= | ||
9643 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
9644 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
9645 | if test "x$supports_anon_versioning" = xyes; then | ||
9646 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9647 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9648 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9649 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
9650 | fi | ||
9651 | ;; | ||
9652 | esac | ||
9653 | else | ||
9654 | ld_shlibs=no | ||
9655 | fi | ||
9656 | ;; | ||
9657 | |||
9658 | netbsd* | netbsdelf*-gnu) | ||
9659 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9660 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
9661 | wlarc= | ||
9662 | else | ||
9663 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9664 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9665 | fi | ||
9666 | ;; | ||
9667 | |||
9668 | solaris*) | ||
9669 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
9670 | ld_shlibs=no | ||
9671 | cat <<_LT_EOF 1>&2 | ||
9672 | |||
9673 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
9674 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
9675 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9676 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
9677 | *** your PATH or compiler configuration so that the native linker is | ||
9678 | *** used, and then restart. | ||
9679 | |||
9680 | _LT_EOF | ||
9681 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9682 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9683 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9684 | else | ||
9685 | ld_shlibs=no | ||
9686 | fi | ||
9687 | ;; | ||
9688 | |||
9689 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
9690 | case `$LD -v 2>&1` in | ||
9691 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
9692 | ld_shlibs=no | ||
9693 | cat <<_LT_EOF 1>&2 | ||
9694 | |||
9695 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
9696 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
9697 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9698 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
9699 | *** your PATH or compiler configuration so that the native linker is | ||
9700 | *** used, and then restart. | ||
9701 | |||
9702 | _LT_EOF | ||
9703 | ;; | ||
9704 | *) | ||
9705 | # For security reasons, it is highly recommended that you always | ||
9706 | # use absolute paths for naming shared libraries, and exclude the | ||
9707 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
9708 | # requires that you compile everything twice, which is a pain. | ||
9709 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9710 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9711 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9712 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9713 | else | ||
9714 | ld_shlibs=no | ||
9715 | fi | ||
9716 | ;; | ||
9717 | esac | ||
9718 | ;; | ||
9719 | |||
9720 | sunos4*) | ||
9721 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9722 | wlarc= | ||
9723 | hardcode_direct=yes | ||
9724 | hardcode_shlibpath_var=no | ||
9725 | ;; | ||
9726 | |||
9727 | *) | ||
9728 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9729 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9730 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9731 | else | ||
9732 | ld_shlibs=no | ||
9733 | fi | ||
9734 | ;; | ||
9735 | esac | ||
9736 | |||
9737 | if test "$ld_shlibs" = no; then | ||
9738 | runpath_var= | ||
9739 | hardcode_libdir_flag_spec= | ||
9740 | export_dynamic_flag_spec= | ||
9741 | whole_archive_flag_spec= | ||
9742 | fi | ||
9743 | else | ||
9744 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
9745 | case $host_os in | ||
9746 | aix3*) | ||
9747 | allow_undefined_flag=unsupported | ||
9748 | always_export_symbols=yes | ||
9749 | 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' | ||
9750 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
9751 | # are no directories specified by -L. | ||
9752 | hardcode_minus_L=yes | ||
9753 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
9754 | # Neither direct hardcoding nor static linking is supported with a | ||
9755 | # broken collect2. | ||
9756 | hardcode_direct=unsupported | ||
9757 | fi | ||
9758 | ;; | ||
9759 | |||
9760 | aix[4-9]*) | ||
9761 | if test "$host_cpu" = ia64; then | ||
9762 | # On IA64, the linker does run time linking by default, so we don't | ||
9763 | # have to do anything special. | ||
9764 | aix_use_runtimelinking=no | ||
9765 | exp_sym_flag='-Bexport' | ||
9766 | no_entry_flag="" | ||
9767 | else | ||
9768 | # If we're using GNU nm, then we don't want the "-C" option. | ||
9769 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
9770 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
9771 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
9772 | else | ||
9773 | 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' | ||
9774 | fi | ||
9775 | aix_use_runtimelinking=no | ||
9776 | |||
9777 | # Test if we are trying to use run time linking or normal | ||
9778 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
9779 | # need to do runtime linking. | ||
9780 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
9781 | for ld_flag in $LDFLAGS; do | ||
9782 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
9783 | aix_use_runtimelinking=yes | ||
9784 | break | ||
9785 | fi | ||
9786 | done | ||
9787 | ;; | ||
9788 | esac | ||
9789 | |||
9790 | exp_sym_flag='-bexport' | ||
9791 | no_entry_flag='-bnoentry' | ||
9792 | fi | ||
9793 | |||
9794 | # When large executables or shared objects are built, AIX ld can | ||
9795 | # have problems creating the table of contents. If linking a library | ||
9796 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
9797 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
9798 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
9799 | |||
9800 | archive_cmds='' | ||
9801 | hardcode_direct=yes | ||
9802 | hardcode_direct_absolute=yes | ||
9803 | hardcode_libdir_separator=':' | ||
9804 | link_all_deplibs=yes | ||
9805 | file_list_spec='${wl}-f,' | ||
9806 | |||
9807 | if test "$GCC" = yes; then | ||
9808 | case $host_os in aix4.[012]|aix4.[012].*) | ||
9809 | # We only want to do this on AIX 4.2 and lower, the check | ||
9810 | # below for broken collect2 doesn't work under 4.3+ | ||
9811 | collect2name=`${CC} -print-prog-name=collect2` | ||
9812 | if test -f "$collect2name" && | ||
9813 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
9814 | then | ||
9815 | # We have reworked collect2 | ||
9816 | : | ||
9817 | else | ||
9818 | # We have old collect2 | ||
9819 | hardcode_direct=unsupported | ||
9820 | # It fails to find uninstalled libraries when the uninstalled | ||
9821 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
9822 | # to unsupported forces relinking | ||
9823 | hardcode_minus_L=yes | ||
9824 | hardcode_libdir_flag_spec='-L$libdir' | ||
9825 | hardcode_libdir_separator= | ||
9826 | fi | ||
9827 | ;; | ||
9828 | esac | ||
9829 | shared_flag='-shared' | ||
9830 | if test "$aix_use_runtimelinking" = yes; then | ||
9831 | shared_flag="$shared_flag "'${wl}-G' | ||
9832 | fi | ||
9833 | link_all_deplibs=no | ||
9834 | else | ||
9835 | # not using gcc | ||
9836 | if test "$host_cpu" = ia64; then | ||
9837 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
9838 | # chokes on -Wl,-G. The following line is correct: | ||
9839 | shared_flag='-G' | ||
9840 | else | ||
9841 | if test "$aix_use_runtimelinking" = yes; then | ||
9842 | shared_flag='${wl}-G' | ||
9843 | else | ||
9844 | shared_flag='${wl}-bM:SRE' | ||
9845 | fi | ||
9846 | fi | ||
9847 | fi | ||
9848 | |||
9849 | export_dynamic_flag_spec='${wl}-bexpall' | ||
9850 | # It seems that -bexpall does not export symbols beginning with | ||
9851 | # underscore (_), so it is better to generate a list of symbols to export. | ||
9852 | always_export_symbols=yes | ||
9853 | if test "$aix_use_runtimelinking" = yes; then | ||
9854 | # Warning - without using the other runtime loading flags (-brtl), | ||
9855 | # -berok will link without error, but may produce a broken library. | ||
9856 | allow_undefined_flag='-berok' | ||
9857 | # Determine the default libpath from the value encoded in an | ||
9858 | # empty executable. | ||
9859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9860 | /* end confdefs.h. */ | ||
9861 | |||
9862 | int | ||
9863 | main () | ||
9864 | { | ||
9865 | |||
9866 | ; | ||
9867 | return 0; | ||
9868 | } | ||
9869 | _ACEOF | ||
9870 | if ac_fn_c_try_link "$LINENO"; then : | ||
9871 | |||
9872 | lt_aix_libpath_sed=' | ||
9873 | /Import File Strings/,/^$/ { | ||
9874 | /^0/ { | ||
9875 | s/^0 *\(.*\)$/\1/ | ||
9876 | p | ||
9877 | } | ||
9878 | }' | ||
9879 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9880 | # Check for a 64-bit object if we didn't find anything. | ||
9881 | if test -z "$aix_libpath"; then | ||
9882 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9883 | fi | ||
9884 | fi | ||
9885 | rm -f core conftest.err conftest.$ac_objext \ | ||
9886 | conftest$ac_exeext conftest.$ac_ext | ||
9887 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9888 | |||
9889 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9890 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
9891 | else | ||
9892 | if test "$host_cpu" = ia64; then | ||
9893 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
9894 | allow_undefined_flag="-z nodefs" | ||
9895 | 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" | ||
9896 | else | ||
9897 | # Determine the default libpath from the value encoded in an | ||
9898 | # empty executable. | ||
9899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9900 | /* end confdefs.h. */ | ||
9901 | |||
9902 | int | ||
9903 | main () | ||
9904 | { | ||
9905 | |||
9906 | ; | ||
9907 | return 0; | ||
9908 | } | ||
9909 | _ACEOF | ||
9910 | if ac_fn_c_try_link "$LINENO"; then : | ||
9911 | |||
9912 | lt_aix_libpath_sed=' | ||
9913 | /Import File Strings/,/^$/ { | ||
9914 | /^0/ { | ||
9915 | s/^0 *\(.*\)$/\1/ | ||
9916 | p | ||
9917 | } | ||
9918 | }' | ||
9919 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9920 | # Check for a 64-bit object if we didn't find anything. | ||
9921 | if test -z "$aix_libpath"; then | ||
9922 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9923 | fi | ||
9924 | fi | ||
9925 | rm -f core conftest.err conftest.$ac_objext \ | ||
9926 | conftest$ac_exeext conftest.$ac_ext | ||
9927 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9928 | |||
9929 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9930 | # Warning - without using the other run time loading flags, | ||
9931 | # -berok will link without error, but may produce a broken library. | ||
9932 | no_undefined_flag=' ${wl}-bernotok' | ||
9933 | allow_undefined_flag=' ${wl}-berok' | ||
9934 | # Exported symbols can be pulled into shared objects from archives | ||
9935 | whole_archive_flag_spec='$convenience' | ||
9936 | archive_cmds_need_lc=yes | ||
9937 | # This is similar to how AIX traditionally builds its shared libraries. | ||
9938 | 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' | ||
9939 | fi | ||
9940 | fi | ||
9941 | ;; | ||
9942 | |||
9943 | amigaos*) | ||
9944 | case $host_cpu in | ||
9945 | powerpc) | ||
9946 | # see comment about AmigaOS4 .so support | ||
9947 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9948 | archive_expsym_cmds='' | ||
9949 | ;; | ||
9950 | m68k) | ||
9951 | 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)' | ||
9952 | hardcode_libdir_flag_spec='-L$libdir' | ||
9953 | hardcode_minus_L=yes | ||
9954 | ;; | ||
9955 | esac | ||
9956 | ;; | ||
9957 | |||
9958 | bsdi[45]*) | ||
9959 | export_dynamic_flag_spec=-rdynamic | ||
9960 | ;; | ||
9961 | |||
9962 | cygwin* | mingw* | pw32* | cegcc*) | ||
9963 | # When not using gcc, we currently assume that we are using | ||
9964 | # Microsoft Visual C++. | ||
9965 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
9966 | # no search path for DLLs. | ||
9967 | hardcode_libdir_flag_spec=' ' | ||
9968 | allow_undefined_flag=unsupported | ||
9969 | # Tell ltmain to make .lib files, not .a files. | ||
9970 | libext=lib | ||
9971 | # Tell ltmain to make .dll files, not .so files. | ||
9972 | shrext_cmds=".dll" | ||
9973 | # FIXME: Setting linknames here is a bad hack. | ||
9974 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
9975 | # The linker will automatically build a .lib file if we build a DLL. | ||
9976 | old_archive_from_new_cmds='true' | ||
9977 | # FIXME: Should let the user specify the lib program. | ||
9978 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
9979 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
9980 | enable_shared_with_static_runtimes=yes | ||
9981 | ;; | ||
9982 | |||
9983 | darwin* | rhapsody*) | ||
9984 | |||
9985 | |||
9986 | archive_cmds_need_lc=no | ||
9987 | hardcode_direct=no | ||
9988 | hardcode_automatic=yes | ||
9989 | hardcode_shlibpath_var=unsupported | ||
9990 | whole_archive_flag_spec='' | ||
9991 | link_all_deplibs=yes | ||
9992 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
9993 | case $cc_basename in | ||
9994 | ifort*) _lt_dar_can_shared=yes ;; | ||
9995 | *) _lt_dar_can_shared=$GCC ;; | ||
9996 | esac | ||
9997 | if test "$_lt_dar_can_shared" = "yes"; then | ||
9998 | output_verbose_link_cmd=echo | ||
9999 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
10000 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
10001 | 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}" | ||
10002 | 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}" | ||
10003 | |||
10004 | else | ||
10005 | ld_shlibs=no | ||
10006 | fi | ||
10007 | |||
10008 | ;; | ||
10009 | |||
10010 | dgux*) | ||
10011 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10012 | hardcode_libdir_flag_spec='-L$libdir' | ||
10013 | hardcode_shlibpath_var=no | ||
10014 | ;; | ||
10015 | |||
10016 | freebsd1*) | ||
10017 | ld_shlibs=no | ||
10018 | ;; | ||
10019 | |||
10020 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
10021 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
10022 | # does not break anything, and helps significantly (at the cost of a little | ||
10023 | # extra space). | ||
10024 | freebsd2.2*) | ||
10025 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
10026 | hardcode_libdir_flag_spec='-R$libdir' | ||
10027 | hardcode_direct=yes | ||
10028 | hardcode_shlibpath_var=no | ||
10029 | ;; | ||
10030 | |||
10031 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
10032 | freebsd2*) | ||
10033 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
10034 | hardcode_direct=yes | ||
10035 | hardcode_minus_L=yes | ||
10036 | hardcode_shlibpath_var=no | ||
10037 | ;; | ||
10038 | |||
10039 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
10040 | freebsd* | dragonfly*) | ||
10041 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
10042 | hardcode_libdir_flag_spec='-R$libdir' | ||
10043 | hardcode_direct=yes | ||
10044 | hardcode_shlibpath_var=no | ||
10045 | ;; | ||
10046 | |||
10047 | hpux9*) | ||
10048 | if test "$GCC" = yes; then | ||
10049 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
10050 | else | ||
10051 | 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' | ||
10052 | fi | ||
10053 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10054 | hardcode_libdir_separator=: | ||
10055 | hardcode_direct=yes | ||
10056 | |||
10057 | # hardcode_minus_L: Not really in the search PATH, | ||
10058 | # but as the default location of the library. | ||
10059 | hardcode_minus_L=yes | ||
10060 | export_dynamic_flag_spec='${wl}-E' | ||
10061 | ;; | ||
10062 | |||
10063 | hpux10*) | ||
10064 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
10065 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10066 | else | ||
10067 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
10068 | fi | ||
10069 | if test "$with_gnu_ld" = no; then | ||
10070 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10071 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
10072 | hardcode_libdir_separator=: | ||
10073 | hardcode_direct=yes | ||
10074 | hardcode_direct_absolute=yes | ||
10075 | export_dynamic_flag_spec='${wl}-E' | ||
10076 | # hardcode_minus_L: Not really in the search PATH, | ||
10077 | # but as the default location of the library. | ||
10078 | hardcode_minus_L=yes | ||
10079 | fi | ||
10080 | ;; | ||
10081 | |||
10082 | hpux11*) | ||
10083 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
10084 | case $host_cpu in | ||
10085 | hppa*64*) | ||
10086 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10087 | ;; | ||
10088 | ia64*) | ||
10089 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
10090 | ;; | ||
10091 | *) | ||
10092 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10093 | ;; | ||
10094 | esac | ||
10095 | else | ||
10096 | case $host_cpu in | ||
10097 | hppa*64*) | ||
10098 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10099 | ;; | ||
10100 | ia64*) | ||
10101 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
10102 | ;; | ||
10103 | *) | ||
10104 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10105 | ;; | ||
10106 | esac | ||
10107 | fi | ||
10108 | if test "$with_gnu_ld" = no; then | ||
10109 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10110 | hardcode_libdir_separator=: | ||
10111 | |||
10112 | case $host_cpu in | ||
10113 | hppa*64*|ia64*) | ||
10114 | hardcode_direct=no | ||
10115 | hardcode_shlibpath_var=no | ||
10116 | ;; | ||
10117 | *) | ||
10118 | hardcode_direct=yes | ||
10119 | hardcode_direct_absolute=yes | ||
10120 | export_dynamic_flag_spec='${wl}-E' | ||
10121 | |||
10122 | # hardcode_minus_L: Not really in the search PATH, | ||
10123 | # but as the default location of the library. | ||
10124 | hardcode_minus_L=yes | ||
10125 | ;; | ||
10126 | esac | ||
10127 | fi | ||
10128 | ;; | ||
10129 | |||
10130 | irix5* | irix6* | nonstopux*) | ||
10131 | if test "$GCC" = yes; then | ||
10132 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
10133 | # Try to use the -exported_symbol ld option, if it does not | ||
10134 | # work, assume that -exports_file does not work either and | ||
10135 | # implicitly export all symbols. | ||
10136 | save_LDFLAGS="$LDFLAGS" | ||
10137 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
10138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10139 | /* end confdefs.h. */ | ||
10140 | int foo(void) {} | ||
10141 | _ACEOF | ||
10142 | if ac_fn_c_try_link "$LINENO"; then : | ||
10143 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
10144 | |||
10145 | fi | ||
10146 | rm -f core conftest.err conftest.$ac_objext \ | ||
10147 | conftest$ac_exeext conftest.$ac_ext | ||
10148 | LDFLAGS="$save_LDFLAGS" | ||
10149 | else | ||
10150 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
10151 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
10152 | fi | ||
10153 | archive_cmds_need_lc='no' | ||
10154 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10155 | hardcode_libdir_separator=: | ||
10156 | inherit_rpath=yes | ||
10157 | link_all_deplibs=yes | ||
10158 | ;; | ||
10159 | |||
10160 | netbsd* | netbsdelf*-gnu) | ||
10161 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
10162 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
10163 | else | ||
10164 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
10165 | fi | ||
10166 | hardcode_libdir_flag_spec='-R$libdir' | ||
10167 | hardcode_direct=yes | ||
10168 | hardcode_shlibpath_var=no | ||
10169 | ;; | ||
10170 | |||
10171 | newsos6) | ||
10172 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10173 | hardcode_direct=yes | ||
10174 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10175 | hardcode_libdir_separator=: | ||
10176 | hardcode_shlibpath_var=no | ||
10177 | ;; | ||
10178 | |||
10179 | *nto* | *qnx*) | ||
10180 | ;; | ||
10181 | |||
10182 | openbsd*) | ||
10183 | if test -f /usr/libexec/ld.so; then | ||
10184 | hardcode_direct=yes | ||
10185 | hardcode_shlibpath_var=no | ||
10186 | hardcode_direct_absolute=yes | ||
10187 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
10188 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
10189 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
10190 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
10191 | export_dynamic_flag_spec='${wl}-E' | ||
10192 | else | ||
10193 | case $host_os in | ||
10194 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
10195 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
10196 | hardcode_libdir_flag_spec='-R$libdir' | ||
10197 | ;; | ||
10198 | *) | ||
10199 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
10200 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
10201 | ;; | ||
10202 | esac | ||
10203 | fi | ||
10204 | else | ||
10205 | ld_shlibs=no | ||
10206 | fi | ||
10207 | ;; | ||
10208 | |||
10209 | os2*) | ||
10210 | hardcode_libdir_flag_spec='-L$libdir' | ||
10211 | hardcode_minus_L=yes | ||
10212 | allow_undefined_flag=unsupported | ||
10213 | 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' | ||
10214 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
10215 | ;; | ||
10216 | |||
10217 | osf3*) | ||
10218 | if test "$GCC" = yes; then | ||
10219 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
10220 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
10221 | else | ||
10222 | allow_undefined_flag=' -expect_unresolved \*' | ||
10223 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
10224 | fi | ||
10225 | archive_cmds_need_lc='no' | ||
10226 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10227 | hardcode_libdir_separator=: | ||
10228 | ;; | ||
10229 | |||
10230 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
10231 | if test "$GCC" = yes; then | ||
10232 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
10233 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
10234 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10235 | else | ||
10236 | allow_undefined_flag=' -expect_unresolved \*' | ||
10237 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
10238 | 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~ | ||
10239 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
10240 | |||
10241 | # Both c and cxx compiler support -rpath directly | ||
10242 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
10243 | fi | ||
10244 | archive_cmds_need_lc='no' | ||
10245 | hardcode_libdir_separator=: | ||
10246 | ;; | ||
10247 | |||
10248 | solaris*) | ||
10249 | no_undefined_flag=' -z defs' | ||
10250 | if test "$GCC" = yes; then | ||
10251 | wlarc='${wl}' | ||
10252 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10253 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10254 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
10255 | else | ||
10256 | case `$CC -V 2>&1` in | ||
10257 | *"Compilers 5.0"*) | ||
10258 | wlarc='' | ||
10259 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10260 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10261 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
10262 | ;; | ||
10263 | *) | ||
10264 | wlarc='${wl}' | ||
10265 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10266 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10267 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
10268 | ;; | ||
10269 | esac | ||
10270 | fi | ||
10271 | hardcode_libdir_flag_spec='-R$libdir' | ||
10272 | hardcode_shlibpath_var=no | ||
10273 | case $host_os in | ||
10274 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
10275 | *) | ||
10276 | # The compiler driver will combine and reorder linker options, | ||
10277 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
10278 | # but is careful enough not to reorder. | ||
10279 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
10280 | if test "$GCC" = yes; then | ||
10281 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
10282 | else | ||
10283 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
10284 | fi | ||
10285 | ;; | ||
10286 | esac | ||
10287 | link_all_deplibs=yes | ||
10288 | ;; | ||
10289 | |||
10290 | sunos4*) | ||
10291 | if test "x$host_vendor" = xsequent; then | ||
10292 | # Use $CC to link under sequent, because it throws in some extra .o | ||
10293 | # files that make .init and .fini sections work. | ||
10294 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10295 | else | ||
10296 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
10297 | fi | ||
10298 | hardcode_libdir_flag_spec='-L$libdir' | ||
10299 | hardcode_direct=yes | ||
10300 | hardcode_minus_L=yes | ||
10301 | hardcode_shlibpath_var=no | ||
10302 | ;; | ||
10303 | |||
10304 | sysv4) | ||
10305 | case $host_vendor in | ||
10306 | sni) | ||
10307 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10308 | hardcode_direct=yes # is this really true??? | ||
10309 | ;; | ||
10310 | siemens) | ||
10311 | ## LD is ld it makes a PLAMLIB | ||
10312 | ## CC just makes a GrossModule. | ||
10313 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
10314 | reload_cmds='$CC -r -o $output$reload_objs' | ||
10315 | hardcode_direct=no | ||
10316 | ;; | ||
10317 | motorola) | ||
10318 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10319 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
10320 | ;; | ||
10321 | esac | ||
10322 | runpath_var='LD_RUN_PATH' | ||
10323 | hardcode_shlibpath_var=no | ||
10324 | ;; | ||
10325 | |||
10326 | sysv4.3*) | ||
10327 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10328 | hardcode_shlibpath_var=no | ||
10329 | export_dynamic_flag_spec='-Bexport' | ||
10330 | ;; | ||
10331 | |||
10332 | sysv4*MP*) | ||
10333 | if test -d /usr/nec; then | ||
10334 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10335 | hardcode_shlibpath_var=no | ||
10336 | runpath_var=LD_RUN_PATH | ||
10337 | hardcode_runpath_var=yes | ||
10338 | ld_shlibs=yes | ||
10339 | fi | ||
10340 | ;; | ||
10341 | |||
10342 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
10343 | no_undefined_flag='${wl}-z,text' | ||
10344 | archive_cmds_need_lc=no | ||
10345 | hardcode_shlibpath_var=no | ||
10346 | runpath_var='LD_RUN_PATH' | ||
10347 | |||
10348 | if test "$GCC" = yes; then | ||
10349 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10350 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10351 | else | ||
10352 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10353 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10354 | fi | ||
10355 | ;; | ||
10356 | |||
10357 | sysv5* | sco3.2v5* | sco5v6*) | ||
10358 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
10359 | # link with -lc, and that would cause any symbols used from libc to | ||
10360 | # always be unresolved, which means just about no library would | ||
10361 | # ever link correctly. If we're not using GNU ld we use -z text | ||
10362 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
10363 | # as -z defs. | ||
10364 | no_undefined_flag='${wl}-z,text' | ||
10365 | allow_undefined_flag='${wl}-z,nodefs' | ||
10366 | archive_cmds_need_lc=no | ||
10367 | hardcode_shlibpath_var=no | ||
10368 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
10369 | hardcode_libdir_separator=':' | ||
10370 | link_all_deplibs=yes | ||
10371 | export_dynamic_flag_spec='${wl}-Bexport' | ||
10372 | runpath_var='LD_RUN_PATH' | ||
10373 | |||
10374 | if test "$GCC" = yes; then | ||
10375 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10376 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10377 | else | ||
10378 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10379 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10380 | fi | ||
10381 | ;; | ||
10382 | |||
10383 | uts4*) | ||
10384 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10385 | hardcode_libdir_flag_spec='-L$libdir' | ||
10386 | hardcode_shlibpath_var=no | ||
10387 | ;; | ||
10388 | |||
10389 | *) | ||
10390 | ld_shlibs=no | ||
10391 | ;; | ||
10392 | esac | ||
10393 | |||
10394 | if test x$host_vendor = xsni; then | ||
10395 | case $host in | ||
10396 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
10397 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
10398 | ;; | ||
10399 | esac | ||
10400 | fi | ||
10401 | fi | ||
10402 | |||
10403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
10404 | $as_echo "$ld_shlibs" >&6; } | ||
10405 | test "$ld_shlibs" = no && can_build_shared=no | ||
10406 | |||
10407 | with_gnu_ld=$with_gnu_ld | ||
10408 | |||
10409 | |||
10410 | |||
10411 | |||
10412 | |||
10413 | |||
10414 | |||
10415 | |||
10416 | |||
10417 | |||
10418 | |||
10419 | |||
10420 | |||
10421 | |||
10422 | |||
10423 | # | ||
10424 | # Do we need to explicitly link libc? | ||
10425 | # | ||
10426 | case "x$archive_cmds_need_lc" in | ||
10427 | x|xyes) | ||
10428 | # Assume -lc should be added | ||
10429 | archive_cmds_need_lc=yes | ||
10430 | |||
10431 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
10432 | case $archive_cmds in | ||
10433 | *'~'*) | ||
10434 | # FIXME: we may have to deal with multi-command sequences. | ||
10435 | ;; | ||
10436 | '$CC '*) | ||
10437 | # Test whether the compiler implicitly links with -lc since on some | ||
10438 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
10439 | # to ld, don't add -lc before -lgcc. | ||
10440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
10441 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
10442 | $RM conftest* | ||
10443 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
10444 | |||
10445 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
10446 | (eval $ac_compile) 2>&5 | ||
10447 | ac_status=$? | ||
10448 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10449 | test $ac_status = 0; } 2>conftest.err; then | ||
10450 | soname=conftest | ||
10451 | lib=conftest | ||
10452 | libobjs=conftest.$ac_objext | ||
10453 | deplibs= | ||
10454 | wl=$lt_prog_compiler_wl | ||
10455 | pic_flag=$lt_prog_compiler_pic | ||
10456 | compiler_flags=-v | ||
10457 | linker_flags=-v | ||
10458 | verstring= | ||
10459 | output_objdir=. | ||
10460 | libname=conftest | ||
10461 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
10462 | allow_undefined_flag= | ||
10463 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
10464 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
10465 | ac_status=$? | ||
10466 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10467 | test $ac_status = 0; } | ||
10468 | then | ||
10469 | archive_cmds_need_lc=no | ||
10470 | else | ||
10471 | archive_cmds_need_lc=yes | ||
10472 | fi | ||
10473 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
10474 | else | ||
10475 | cat conftest.err 1>&5 | ||
10476 | fi | ||
10477 | $RM conftest* | ||
10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
10479 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
10480 | ;; | ||
10481 | esac | ||
10482 | fi | ||
10483 | ;; | ||
10484 | esac | ||
10485 | |||
10486 | |||
10487 | |||
10488 | |||
10489 | |||
10490 | |||
10491 | |||
10492 | |||
10493 | |||
10494 | |||
10495 | |||
10496 | |||
10497 | |||
10498 | |||
10499 | |||
10500 | |||
10501 | |||
10502 | |||
10503 | |||
10504 | |||
10505 | |||
10506 | |||
10507 | |||
10508 | |||
10509 | |||
10510 | |||
10511 | |||
10512 | |||
10513 | |||
10514 | |||
10515 | |||
10516 | |||
10517 | |||
10518 | |||
10519 | |||
10520 | |||
10521 | |||
10522 | |||
10523 | |||
10524 | |||
10525 | |||
10526 | |||
10527 | |||
10528 | |||
10529 | |||
10530 | |||
10531 | |||
10532 | |||
10533 | |||
10534 | |||
10535 | |||
10536 | |||
10537 | |||
10538 | |||
10539 | |||
10540 | |||
10541 | |||
10542 | |||
10543 | |||
10544 | |||
10545 | |||
10546 | |||
10547 | |||
10548 | |||
10549 | |||
10550 | |||
10551 | |||
10552 | |||
10553 | |||
10554 | |||
10555 | |||
10556 | |||
10557 | |||
10558 | |||
10559 | |||
10560 | |||
10561 | |||
10562 | |||
10563 | |||
10564 | |||
10565 | |||
10566 | |||
10567 | |||
10568 | |||
10569 | |||
10570 | |||
10571 | |||
10572 | |||
10573 | |||
10574 | |||
10575 | |||
10576 | |||
10577 | |||
10578 | |||
10579 | |||
10580 | |||
10581 | |||
10582 | |||
10583 | |||
10584 | |||
10585 | |||
10586 | |||
10587 | |||
10588 | |||
10589 | |||
10590 | |||
10591 | |||
10592 | |||
10593 | |||
10594 | |||
10595 | |||
10596 | |||
10597 | |||
10598 | |||
10599 | |||
10600 | |||
10601 | |||
10602 | |||
10603 | |||
10604 | |||
10605 | |||
10606 | |||
10607 | |||
10608 | |||
10609 | |||
10610 | |||
10611 | |||
10612 | |||
10613 | |||
10614 | |||
10615 | |||
10616 | |||
10617 | |||
10618 | |||
10619 | |||
10620 | |||
10621 | |||
10622 | |||
10623 | |||
10624 | |||
10625 | |||
10626 | |||
10627 | |||
10628 | |||
10629 | |||
10630 | |||
10631 | |||
10632 | |||
10633 | |||
10634 | |||
10635 | |||
10636 | |||
10637 | |||
10638 | |||
10639 | |||
10640 | |||
10641 | |||
10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
10643 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
10644 | |||
10645 | if test "$GCC" = yes; then | ||
10646 | case $host_os in | ||
10647 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
10648 | *) lt_awk_arg="/^libraries:/" ;; | ||
10649 | esac | ||
10650 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10651 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
10652 | # if the path contains ";" then we assume it to be the separator | ||
10653 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
10654 | # assumed that no part of a normal pathname contains ";" but that should | ||
10655 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
10656 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
10657 | else | ||
10658 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10659 | fi | ||
10660 | # Ok, now we have the path, separated by spaces, we can step through it | ||
10661 | # and add multilib dir if necessary. | ||
10662 | lt_tmp_lt_search_path_spec= | ||
10663 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
10664 | for lt_sys_path in $lt_search_path_spec; do | ||
10665 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
10666 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
10667 | else | ||
10668 | test -d "$lt_sys_path" && \ | ||
10669 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
10670 | fi | ||
10671 | done | ||
10672 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
10673 | BEGIN {RS=" "; FS="/|\n";} { | ||
10674 | lt_foo=""; | ||
10675 | lt_count=0; | ||
10676 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
10677 | if ($lt_i != "" && $lt_i != ".") { | ||
10678 | if ($lt_i == "..") { | ||
10679 | lt_count++; | ||
10680 | } else { | ||
10681 | if (lt_count == 0) { | ||
10682 | lt_foo="/" $lt_i lt_foo; | ||
10683 | } else { | ||
10684 | lt_count--; | ||
10685 | } | ||
10686 | } | ||
10687 | } | ||
10688 | } | ||
10689 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
10690 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
10691 | }'` | ||
10692 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
10693 | else | ||
10694 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
10695 | fi | ||
10696 | library_names_spec= | ||
10697 | libname_spec='lib$name' | ||
10698 | soname_spec= | ||
10699 | shrext_cmds=".so" | ||
10700 | postinstall_cmds= | ||
10701 | postuninstall_cmds= | ||
10702 | finish_cmds= | ||
10703 | finish_eval= | ||
10704 | shlibpath_var= | ||
10705 | shlibpath_overrides_runpath=unknown | ||
10706 | version_type=none | ||
10707 | dynamic_linker="$host_os ld.so" | ||
10708 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
10709 | need_lib_prefix=unknown | ||
10710 | hardcode_into_libs=no | ||
10711 | |||
10712 | # when you set need_version to no, make sure it does not cause -set_version | ||
10713 | # flags to be left without arguments | ||
10714 | need_version=unknown | ||
10715 | |||
10716 | case $host_os in | ||
10717 | aix3*) | ||
10718 | version_type=linux | ||
10719 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
10720 | shlibpath_var=LIBPATH | ||
10721 | |||
10722 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
10723 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10724 | ;; | ||
10725 | |||
10726 | aix[4-9]*) | ||
10727 | version_type=linux | ||
10728 | need_lib_prefix=no | ||
10729 | need_version=no | ||
10730 | hardcode_into_libs=yes | ||
10731 | if test "$host_cpu" = ia64; then | ||
10732 | # AIX 5 supports IA64 | ||
10733 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
10734 | shlibpath_var=LD_LIBRARY_PATH | ||
10735 | else | ||
10736 | # With GCC up to 2.95.x, collect2 would create an import file | ||
10737 | # for dependence libraries. The import file would start with | ||
10738 | # the line `#! .'. This would cause the generated library to | ||
10739 | # depend on `.', always an invalid library. This was fixed in | ||
10740 | # development snapshots of GCC prior to 3.0. | ||
10741 | case $host_os in | ||
10742 | aix4 | aix4.[01] | aix4.[01].*) | ||
10743 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
10744 | echo ' yes ' | ||
10745 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
10746 | : | ||
10747 | else | ||
10748 | can_build_shared=no | ||
10749 | fi | ||
10750 | ;; | ||
10751 | esac | ||
10752 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
10753 | # soname into executable. Probably we can add versioning support to | ||
10754 | # collect2, so additional links can be useful in future. | ||
10755 | if test "$aix_use_runtimelinking" = yes; then | ||
10756 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
10757 | # instead of lib<name>.a to let people know that these are not | ||
10758 | # typical AIX shared libraries. | ||
10759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10760 | else | ||
10761 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
10762 | # and later when we are not doing run time linking. | ||
10763 | library_names_spec='${libname}${release}.a $libname.a' | ||
10764 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10765 | fi | ||
10766 | shlibpath_var=LIBPATH | ||
10767 | fi | ||
10768 | ;; | ||
10769 | |||
10770 | amigaos*) | ||
10771 | case $host_cpu in | ||
10772 | powerpc) | ||
10773 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
10774 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
10775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10776 | ;; | ||
10777 | m68k) | ||
10778 | library_names_spec='$libname.ixlibrary $libname.a' | ||
10779 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
10780 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' | ||
10781 | ;; | ||
10782 | esac | ||
10783 | ;; | ||
10784 | |||
10785 | beos*) | ||
10786 | library_names_spec='${libname}${shared_ext}' | ||
10787 | dynamic_linker="$host_os ld.so" | ||
10788 | shlibpath_var=LIBRARY_PATH | ||
10789 | ;; | ||
10790 | |||
10791 | bsdi[45]*) | ||
10792 | version_type=linux | ||
10793 | need_version=no | ||
10794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10795 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10796 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
10797 | shlibpath_var=LD_LIBRARY_PATH | ||
10798 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
10799 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
10800 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
10801 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
10802 | # libtool to hard-code these into programs | ||
10803 | ;; | ||
10804 | |||
10805 | cygwin* | mingw* | pw32* | cegcc*) | ||
10806 | version_type=windows | ||
10807 | shrext_cmds=".dll" | ||
10808 | need_version=no | ||
10809 | need_lib_prefix=no | ||
10810 | |||
10811 | case $GCC,$host_os in | ||
10812 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
10813 | library_names_spec='$libname.dll.a' | ||
10814 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
10815 | postinstall_cmds='base_file=`basename \${file}`~ | ||
10816 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
10817 | dldir=$destdir/`dirname \$dlpath`~ | ||
10818 | test -d \$dldir || mkdir -p \$dldir~ | ||
10819 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
10820 | chmod a+x \$dldir/$dlname~ | ||
10821 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
10822 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
10823 | fi' | ||
10824 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
10825 | dlpath=$dir/\$dldll~ | ||
10826 | $RM \$dlpath' | ||
10827 | shlibpath_overrides_runpath=yes | ||
10828 | |||
10829 | case $host_os in | ||
10830 | cygwin*) | ||
10831 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
10832 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10833 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
10834 | ;; | ||
10835 | mingw* | cegcc*) | ||
10836 | # MinGW DLLs use traditional 'lib' prefix | ||
10837 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10838 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10839 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
10840 | # It is most probably a Windows format PATH printed by | ||
10841 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
10842 | # path with ; separators, and with drive letters. We can handle the | ||
10843 | # drive letters (cygwin fileutils understands them), so leave them, | ||
10844 | # especially as we might pass files found there to a mingw objdump, | ||
10845 | # which wouldn't understand a cygwinified path. Ahh. | ||
10846 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
10847 | else | ||
10848 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10849 | fi | ||
10850 | ;; | ||
10851 | pw32*) | ||
10852 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
10853 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10854 | ;; | ||
10855 | esac | ||
10856 | ;; | ||
10857 | |||
10858 | *) | ||
10859 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
10860 | ;; | ||
10861 | esac | ||
10862 | dynamic_linker='Win32 ld.exe' | ||
10863 | # FIXME: first we should search . and the directory the executable is in | ||
10864 | shlibpath_var=PATH | ||
10865 | ;; | ||
10866 | |||
10867 | darwin* | rhapsody*) | ||
10868 | dynamic_linker="$host_os dyld" | ||
10869 | version_type=darwin | ||
10870 | need_lib_prefix=no | ||
10871 | need_version=no | ||
10872 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
10873 | soname_spec='${libname}${release}${major}$shared_ext' | ||
10874 | shlibpath_overrides_runpath=yes | ||
10875 | shlibpath_var=DYLD_LIBRARY_PATH | ||
10876 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
10877 | |||
10878 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
10879 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
10880 | ;; | ||
10881 | |||
10882 | dgux*) | ||
10883 | version_type=linux | ||
10884 | need_lib_prefix=no | ||
10885 | need_version=no | ||
10886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
10887 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10888 | shlibpath_var=LD_LIBRARY_PATH | ||
10889 | ;; | ||
10890 | |||
10891 | freebsd1*) | ||
10892 | dynamic_linker=no | ||
10893 | ;; | ||
10894 | |||
10895 | freebsd* | dragonfly*) | ||
10896 | # DragonFly does not have aout. When/if they implement a new | ||
10897 | # versioning mechanism, adjust this. | ||
10898 | if test -x /usr/bin/objformat; then | ||
10899 | objformat=`/usr/bin/objformat` | ||
10900 | else | ||
10901 | case $host_os in | ||
10902 | freebsd[123]*) objformat=aout ;; | ||
10903 | *) objformat=elf ;; | ||
10904 | esac | ||
10905 | fi | ||
10906 | version_type=freebsd-$objformat | ||
10907 | case $version_type in | ||
10908 | freebsd-elf*) | ||
10909 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10910 | need_version=no | ||
10911 | need_lib_prefix=no | ||
10912 | ;; | ||
10913 | freebsd-*) | ||
10914 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
10915 | need_version=yes | ||
10916 | ;; | ||
10917 | esac | ||
10918 | shlibpath_var=LD_LIBRARY_PATH | ||
10919 | case $host_os in | ||
10920 | freebsd2*) | ||
10921 | shlibpath_overrides_runpath=yes | ||
10922 | ;; | ||
10923 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
10924 | shlibpath_overrides_runpath=yes | ||
10925 | hardcode_into_libs=yes | ||
10926 | ;; | ||
10927 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
10928 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
10929 | shlibpath_overrides_runpath=no | ||
10930 | hardcode_into_libs=yes | ||
10931 | ;; | ||
10932 | *) # from 4.6 on, and DragonFly | ||
10933 | shlibpath_overrides_runpath=yes | ||
10934 | hardcode_into_libs=yes | ||
10935 | ;; | ||
10936 | esac | ||
10937 | ;; | ||
10938 | |||
10939 | gnu*) | ||
10940 | version_type=linux | ||
10941 | need_lib_prefix=no | ||
10942 | need_version=no | ||
10943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
10944 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10945 | shlibpath_var=LD_LIBRARY_PATH | ||
10946 | hardcode_into_libs=yes | ||
10947 | ;; | ||
10948 | |||
10949 | hpux9* | hpux10* | hpux11*) | ||
10950 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
10951 | # link against other versions. | ||
10952 | version_type=sunos | ||
10953 | need_lib_prefix=no | ||
10954 | need_version=no | ||
10955 | case $host_cpu in | ||
10956 | ia64*) | ||
10957 | shrext_cmds='.so' | ||
10958 | hardcode_into_libs=yes | ||
10959 | dynamic_linker="$host_os dld.so" | ||
10960 | shlibpath_var=LD_LIBRARY_PATH | ||
10961 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10963 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10964 | if test "X$HPUX_IA64_MODE" = X32; then | ||
10965 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
10966 | else | ||
10967 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
10968 | fi | ||
10969 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10970 | ;; | ||
10971 | hppa*64*) | ||
10972 | shrext_cmds='.sl' | ||
10973 | hardcode_into_libs=yes | ||
10974 | dynamic_linker="$host_os dld.sl" | ||
10975 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
10976 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10978 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10979 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
10980 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10981 | ;; | ||
10982 | *) | ||
10983 | shrext_cmds='.sl' | ||
10984 | dynamic_linker="$host_os dld.sl" | ||
10985 | shlibpath_var=SHLIB_PATH | ||
10986 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
10987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10988 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10989 | ;; | ||
10990 | esac | ||
10991 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
10992 | postinstall_cmds='chmod 555 $lib' | ||
10993 | ;; | ||
10994 | |||
10995 | interix[3-9]*) | ||
10996 | version_type=linux | ||
10997 | need_lib_prefix=no | ||
10998 | need_version=no | ||
10999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11000 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11001 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
11002 | shlibpath_var=LD_LIBRARY_PATH | ||
11003 | shlibpath_overrides_runpath=no | ||
11004 | hardcode_into_libs=yes | ||
11005 | ;; | ||
11006 | |||
11007 | irix5* | irix6* | nonstopux*) | ||
11008 | case $host_os in | ||
11009 | nonstopux*) version_type=nonstopux ;; | ||
11010 | *) | ||
11011 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
11012 | version_type=linux | ||
11013 | else | ||
11014 | version_type=irix | ||
11015 | fi ;; | ||
11016 | esac | ||
11017 | need_lib_prefix=no | ||
11018 | need_version=no | ||
11019 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
11021 | case $host_os in | ||
11022 | irix5* | nonstopux*) | ||
11023 | libsuff= shlibsuff= | ||
11024 | ;; | ||
11025 | *) | ||
11026 | case $LD in # libtool.m4 will add one of these switches to LD | ||
11027 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
11028 | libsuff= shlibsuff= libmagic=32-bit;; | ||
11029 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
11030 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
11031 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
11032 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
11033 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
11034 | esac | ||
11035 | ;; | ||
11036 | esac | ||
11037 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
11038 | shlibpath_overrides_runpath=no | ||
11039 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
11040 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
11041 | hardcode_into_libs=yes | ||
11042 | ;; | ||
11043 | |||
11044 | # No shared lib support for Linux oldld, aout, or coff. | ||
11045 | linux*oldld* | linux*aout* | linux*coff*) | ||
11046 | dynamic_linker=no | ||
11047 | ;; | ||
11048 | |||
11049 | # This must be Linux ELF. | ||
11050 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
11051 | version_type=linux | ||
11052 | need_lib_prefix=no | ||
11053 | need_version=no | ||
11054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11055 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11056 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
11057 | shlibpath_var=LD_LIBRARY_PATH | ||
11058 | shlibpath_overrides_runpath=no | ||
11059 | # Some binutils ld are patched to set DT_RUNPATH | ||
11060 | save_LDFLAGS=$LDFLAGS | ||
11061 | save_libdir=$libdir | ||
11062 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
11063 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
11064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11065 | /* end confdefs.h. */ | ||
11066 | |||
11067 | int | ||
11068 | main () | ||
11069 | { | ||
11070 | |||
11071 | ; | ||
11072 | return 0; | ||
11073 | } | ||
11074 | _ACEOF | ||
11075 | if ac_fn_c_try_link "$LINENO"; then : | ||
11076 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
11077 | shlibpath_overrides_runpath=yes | ||
11078 | fi | ||
11079 | fi | ||
11080 | rm -f core conftest.err conftest.$ac_objext \ | ||
11081 | conftest$ac_exeext conftest.$ac_ext | ||
11082 | LDFLAGS=$save_LDFLAGS | ||
11083 | libdir=$save_libdir | ||
11084 | |||
11085 | # This implies no fast_install, which is unacceptable. | ||
11086 | # Some rework will be needed to allow for fast_install | ||
11087 | # before this can be enabled. | ||
11088 | hardcode_into_libs=yes | ||
11089 | |||
11090 | # Append ld.so.conf contents to the search path | ||
11091 | if test -f /etc/ld.so.conf; then | ||
11092 | 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;/^$/d' | tr '\n' ' '` | ||
11093 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
11094 | fi | ||
11095 | |||
11096 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
11097 | # powerpc, because MkLinux only supported shared libraries with the | ||
11098 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
11099 | # most powerpc-linux boxes support dynamic linking these days and | ||
11100 | # people can always --disable-shared, the test was removed, and we | ||
11101 | # assume the GNU/Linux dynamic linker is in use. | ||
11102 | dynamic_linker='GNU/Linux ld.so' | ||
11103 | ;; | ||
11104 | |||
11105 | netbsdelf*-gnu) | ||
11106 | version_type=linux | ||
11107 | need_lib_prefix=no | ||
11108 | need_version=no | ||
11109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11110 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11111 | shlibpath_var=LD_LIBRARY_PATH | ||
11112 | shlibpath_overrides_runpath=no | ||
11113 | hardcode_into_libs=yes | ||
11114 | dynamic_linker='NetBSD ld.elf_so' | ||
11115 | ;; | ||
11116 | |||
11117 | netbsd*) | ||
11118 | version_type=sunos | ||
11119 | need_lib_prefix=no | ||
11120 | need_version=no | ||
11121 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
11122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11123 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
11124 | dynamic_linker='NetBSD (a.out) ld.so' | ||
11125 | else | ||
11126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11127 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11128 | dynamic_linker='NetBSD ld.elf_so' | ||
11129 | fi | ||
11130 | shlibpath_var=LD_LIBRARY_PATH | ||
11131 | shlibpath_overrides_runpath=yes | ||
11132 | hardcode_into_libs=yes | ||
11133 | ;; | ||
11134 | |||
11135 | newsos6) | ||
11136 | version_type=linux | ||
11137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11138 | shlibpath_var=LD_LIBRARY_PATH | ||
11139 | shlibpath_overrides_runpath=yes | ||
11140 | ;; | ||
11141 | |||
11142 | *nto* | *qnx*) | ||
11143 | version_type=qnx | ||
11144 | need_lib_prefix=no | ||
11145 | need_version=no | ||
11146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11147 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11148 | shlibpath_var=LD_LIBRARY_PATH | ||
11149 | shlibpath_overrides_runpath=no | ||
11150 | hardcode_into_libs=yes | ||
11151 | dynamic_linker='ldqnx.so' | ||
11152 | ;; | ||
11153 | |||
11154 | openbsd*) | ||
11155 | version_type=sunos | ||
11156 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
11157 | need_lib_prefix=no | ||
11158 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
11159 | case $host_os in | ||
11160 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
11161 | *) need_version=no ;; | ||
11162 | esac | ||
11163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11164 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
11165 | shlibpath_var=LD_LIBRARY_PATH | ||
11166 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
11167 | case $host_os in | ||
11168 | openbsd2.[89] | openbsd2.[89].*) | ||
11169 | shlibpath_overrides_runpath=no | ||
11170 | ;; | ||
11171 | *) | ||
11172 | shlibpath_overrides_runpath=yes | ||
11173 | ;; | ||
11174 | esac | ||
11175 | else | ||
11176 | shlibpath_overrides_runpath=yes | ||
11177 | fi | ||
11178 | ;; | ||
11179 | |||
11180 | os2*) | ||
11181 | libname_spec='$name' | ||
11182 | shrext_cmds=".dll" | ||
11183 | need_lib_prefix=no | ||
11184 | library_names_spec='$libname${shared_ext} $libname.a' | ||
11185 | dynamic_linker='OS/2 ld.exe' | ||
11186 | shlibpath_var=LIBPATH | ||
11187 | ;; | ||
11188 | |||
11189 | osf3* | osf4* | osf5*) | ||
11190 | version_type=osf | ||
11191 | need_lib_prefix=no | ||
11192 | need_version=no | ||
11193 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11195 | shlibpath_var=LD_LIBRARY_PATH | ||
11196 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
11197 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
11198 | ;; | ||
11199 | |||
11200 | rdos*) | ||
11201 | dynamic_linker=no | ||
11202 | ;; | ||
11203 | |||
11204 | solaris*) | ||
11205 | version_type=linux | ||
11206 | need_lib_prefix=no | ||
11207 | need_version=no | ||
11208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11209 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11210 | shlibpath_var=LD_LIBRARY_PATH | ||
11211 | shlibpath_overrides_runpath=yes | ||
11212 | hardcode_into_libs=yes | ||
11213 | # ldd complains unless libraries are executable | ||
11214 | postinstall_cmds='chmod +x $lib' | ||
11215 | ;; | ||
11216 | |||
11217 | sunos4*) | ||
11218 | version_type=sunos | ||
11219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11220 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
11221 | shlibpath_var=LD_LIBRARY_PATH | ||
11222 | shlibpath_overrides_runpath=yes | ||
11223 | if test "$with_gnu_ld" = yes; then | ||
11224 | need_lib_prefix=no | ||
11225 | fi | ||
11226 | need_version=yes | ||
11227 | ;; | ||
11228 | |||
11229 | sysv4 | sysv4.3*) | ||
11230 | version_type=linux | ||
11231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11232 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11233 | shlibpath_var=LD_LIBRARY_PATH | ||
11234 | case $host_vendor in | ||
11235 | sni) | ||
11236 | shlibpath_overrides_runpath=no | ||
11237 | need_lib_prefix=no | ||
11238 | runpath_var=LD_RUN_PATH | ||
11239 | ;; | ||
11240 | siemens) | ||
11241 | need_lib_prefix=no | ||
11242 | ;; | ||
11243 | motorola) | ||
11244 | need_lib_prefix=no | ||
11245 | need_version=no | ||
11246 | shlibpath_overrides_runpath=no | ||
11247 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
11248 | ;; | ||
11249 | esac | ||
11250 | ;; | ||
11251 | |||
11252 | sysv4*MP*) | ||
11253 | if test -d /usr/nec ;then | ||
11254 | version_type=linux | ||
11255 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
11256 | soname_spec='$libname${shared_ext}.$major' | ||
11257 | shlibpath_var=LD_LIBRARY_PATH | ||
11258 | fi | ||
11259 | ;; | ||
11260 | |||
11261 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
11262 | version_type=freebsd-elf | ||
11263 | need_lib_prefix=no | ||
11264 | need_version=no | ||
11265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
11266 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11267 | shlibpath_var=LD_LIBRARY_PATH | ||
11268 | shlibpath_overrides_runpath=yes | ||
11269 | hardcode_into_libs=yes | ||
11270 | if test "$with_gnu_ld" = yes; then | ||
11271 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
11272 | else | ||
11273 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
11274 | case $host_os in | ||
11275 | sco3.2v5*) | ||
11276 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
11277 | ;; | ||
11278 | esac | ||
11279 | fi | ||
11280 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
11281 | ;; | ||
11282 | |||
11283 | tpf*) | ||
11284 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
11285 | version_type=linux | ||
11286 | need_lib_prefix=no | ||
11287 | need_version=no | ||
11288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11289 | shlibpath_var=LD_LIBRARY_PATH | ||
11290 | shlibpath_overrides_runpath=no | ||
11291 | hardcode_into_libs=yes | ||
11292 | ;; | ||
11293 | |||
11294 | uts4*) | ||
11295 | version_type=linux | ||
11296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11297 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11298 | shlibpath_var=LD_LIBRARY_PATH | ||
11299 | ;; | ||
11300 | |||
11301 | *) | ||
11302 | dynamic_linker=no | ||
11303 | ;; | ||
11304 | esac | ||
11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
11306 | $as_echo "$dynamic_linker" >&6; } | ||
11307 | test "$dynamic_linker" = no && can_build_shared=no | ||
11308 | |||
11309 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
11310 | if test "$GCC" = yes; then | ||
11311 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
11312 | fi | ||
11313 | |||
11314 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
11315 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
11316 | fi | ||
11317 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
11318 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
11319 | fi | ||
11320 | |||
11321 | |||
11322 | |||
11323 | |||
11324 | |||
11325 | |||
11326 | |||
11327 | |||
11328 | |||
11329 | |||
11330 | |||
11331 | |||
11332 | |||
11333 | |||
11334 | |||
11335 | |||
11336 | |||
11337 | |||
11338 | |||
11339 | |||
11340 | |||
11341 | |||
11342 | |||
11343 | |||
11344 | |||
11345 | |||
11346 | |||
11347 | |||
11348 | |||
11349 | |||
11350 | |||
11351 | |||
11352 | |||
11353 | |||
11354 | |||
11355 | |||
11356 | |||
11357 | |||
11358 | |||
11359 | |||
11360 | |||
11361 | |||
11362 | |||
11363 | |||
11364 | |||
11365 | |||
11366 | |||
11367 | |||
11368 | |||
11369 | |||
11370 | |||
11371 | |||
11372 | |||
11373 | |||
11374 | |||
11375 | |||
11376 | |||
11377 | |||
11378 | |||
11379 | |||
11380 | |||
11381 | |||
11382 | |||
11383 | |||
11384 | |||
11385 | |||
11386 | |||
11387 | |||
11388 | |||
11389 | |||
11390 | |||
11391 | |||
11392 | |||
11393 | |||
11394 | |||
11395 | |||
11396 | |||
11397 | |||
11398 | |||
11399 | |||
11400 | |||
11401 | |||
11402 | |||
11403 | |||
11404 | |||
11405 | |||
11406 | |||
11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
11408 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
11409 | hardcode_action= | ||
11410 | if test -n "$hardcode_libdir_flag_spec" || | ||
11411 | test -n "$runpath_var" || | ||
11412 | test "X$hardcode_automatic" = "Xyes" ; then | ||
11413 | |||
11414 | # We can hardcode non-existent directories. | ||
11415 | if test "$hardcode_direct" != no && | ||
11416 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
11417 | # have to relink, otherwise we might link with an installed library | ||
11418 | # when we should be linking with a yet-to-be-installed one | ||
11419 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
11420 | test "$hardcode_minus_L" != no; then | ||
11421 | # Linking always hardcodes the temporary library directory. | ||
11422 | hardcode_action=relink | ||
11423 | else | ||
11424 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
11425 | hardcode_action=immediate | ||
11426 | fi | ||
11427 | else | ||
11428 | # We cannot hardcode anything, or else we can only hardcode existing | ||
11429 | # directories. | ||
11430 | hardcode_action=unsupported | ||
11431 | fi | ||
11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
11433 | $as_echo "$hardcode_action" >&6; } | ||
11434 | |||
11435 | if test "$hardcode_action" = relink || | ||
11436 | test "$inherit_rpath" = yes; then | ||
11437 | # Fast installation is not supported | ||
11438 | enable_fast_install=no | ||
11439 | elif test "$shlibpath_overrides_runpath" = yes || | ||
11440 | test "$enable_shared" = no; then | ||
11441 | # Fast installation is not necessary | ||
11442 | enable_fast_install=needless | ||
11443 | fi | ||
11444 | |||
11445 | |||
11446 | |||
11447 | |||
11448 | |||
11449 | |||
11450 | if test "x$enable_dlopen" != xyes; then | ||
11451 | enable_dlopen=unknown | ||
11452 | enable_dlopen_self=unknown | ||
11453 | enable_dlopen_self_static=unknown | ||
11454 | else | ||
11455 | lt_cv_dlopen=no | ||
11456 | lt_cv_dlopen_libs= | ||
11457 | |||
11458 | case $host_os in | ||
11459 | beos*) | ||
11460 | lt_cv_dlopen="load_add_on" | ||
11461 | lt_cv_dlopen_libs= | ||
11462 | lt_cv_dlopen_self=yes | ||
11463 | ;; | ||
11464 | |||
11465 | mingw* | pw32* | cegcc*) | ||
11466 | lt_cv_dlopen="LoadLibrary" | ||
11467 | lt_cv_dlopen_libs= | ||
11468 | ;; | ||
11469 | |||
11470 | cygwin*) | ||
11471 | lt_cv_dlopen="dlopen" | ||
11472 | lt_cv_dlopen_libs= | ||
11473 | ;; | ||
11474 | |||
11475 | darwin*) | ||
11476 | # if libdl is installed we need to link against it | ||
11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11478 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11479 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11480 | $as_echo_n "(cached) " >&6 | ||
11481 | else | ||
11482 | ac_check_lib_save_LIBS=$LIBS | ||
11483 | LIBS="-ldl $LIBS" | ||
11484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11485 | /* end confdefs.h. */ | ||
11486 | |||
11487 | /* Override any GCC internal prototype to avoid an error. | ||
11488 | Use char because int might match the return type of a GCC | ||
11489 | builtin and then its argument prototype would still apply. */ | ||
11490 | #ifdef __cplusplus | ||
11491 | extern "C" | ||
11492 | #endif | ||
11493 | char dlopen (); | ||
11494 | int | ||
11495 | main () | ||
11496 | { | ||
11497 | return dlopen (); | ||
11498 | ; | ||
11499 | return 0; | ||
11500 | } | ||
11501 | _ACEOF | ||
11502 | if ac_fn_c_try_link "$LINENO"; then : | ||
11503 | ac_cv_lib_dl_dlopen=yes | ||
11504 | else | ||
11505 | ac_cv_lib_dl_dlopen=no | ||
11506 | fi | ||
11507 | rm -f core conftest.err conftest.$ac_objext \ | ||
11508 | conftest$ac_exeext conftest.$ac_ext | ||
11509 | LIBS=$ac_check_lib_save_LIBS | ||
11510 | fi | ||
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11512 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11513 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11514 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11515 | else | ||
11516 | |||
11517 | lt_cv_dlopen="dyld" | ||
11518 | lt_cv_dlopen_libs= | ||
11519 | lt_cv_dlopen_self=yes | ||
11520 | |||
11521 | fi | ||
11522 | |||
11523 | ;; | ||
11524 | |||
11525 | *) | ||
11526 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
11527 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
11528 | lt_cv_dlopen="shl_load" | ||
11529 | else | ||
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
11531 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
11532 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
11533 | $as_echo_n "(cached) " >&6 | ||
11534 | else | ||
11535 | ac_check_lib_save_LIBS=$LIBS | ||
11536 | LIBS="-ldld $LIBS" | ||
11537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11538 | /* end confdefs.h. */ | ||
11539 | |||
11540 | /* Override any GCC internal prototype to avoid an error. | ||
11541 | Use char because int might match the return type of a GCC | ||
11542 | builtin and then its argument prototype would still apply. */ | ||
11543 | #ifdef __cplusplus | ||
11544 | extern "C" | ||
11545 | #endif | ||
11546 | char shl_load (); | ||
11547 | int | ||
11548 | main () | ||
11549 | { | ||
11550 | return shl_load (); | ||
11551 | ; | ||
11552 | return 0; | ||
11553 | } | ||
11554 | _ACEOF | ||
11555 | if ac_fn_c_try_link "$LINENO"; then : | ||
11556 | ac_cv_lib_dld_shl_load=yes | ||
11557 | else | ||
11558 | ac_cv_lib_dld_shl_load=no | ||
11559 | fi | ||
11560 | rm -f core conftest.err conftest.$ac_objext \ | ||
11561 | conftest$ac_exeext conftest.$ac_ext | ||
11562 | LIBS=$ac_check_lib_save_LIBS | ||
11563 | fi | ||
11564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
11565 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
11566 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
11567 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
11568 | else | ||
11569 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
11570 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
11571 | lt_cv_dlopen="dlopen" | ||
11572 | else | ||
11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11574 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11575 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11576 | $as_echo_n "(cached) " >&6 | ||
11577 | else | ||
11578 | ac_check_lib_save_LIBS=$LIBS | ||
11579 | LIBS="-ldl $LIBS" | ||
11580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11581 | /* end confdefs.h. */ | ||
11582 | |||
11583 | /* Override any GCC internal prototype to avoid an error. | ||
11584 | Use char because int might match the return type of a GCC | ||
11585 | builtin and then its argument prototype would still apply. */ | ||
11586 | #ifdef __cplusplus | ||
11587 | extern "C" | ||
11588 | #endif | ||
11589 | char dlopen (); | ||
11590 | int | ||
11591 | main () | ||
11592 | { | ||
11593 | return dlopen (); | ||
11594 | ; | ||
11595 | return 0; | ||
11596 | } | ||
11597 | _ACEOF | ||
11598 | if ac_fn_c_try_link "$LINENO"; then : | ||
11599 | ac_cv_lib_dl_dlopen=yes | ||
11600 | else | ||
11601 | ac_cv_lib_dl_dlopen=no | ||
11602 | fi | ||
11603 | rm -f core conftest.err conftest.$ac_objext \ | ||
11604 | conftest$ac_exeext conftest.$ac_ext | ||
11605 | LIBS=$ac_check_lib_save_LIBS | ||
11606 | fi | ||
11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11608 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11609 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11610 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11611 | else | ||
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
11613 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
11614 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
11615 | $as_echo_n "(cached) " >&6 | ||
11616 | else | ||
11617 | ac_check_lib_save_LIBS=$LIBS | ||
11618 | LIBS="-lsvld $LIBS" | ||
11619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11620 | /* end confdefs.h. */ | ||
11621 | |||
11622 | /* Override any GCC internal prototype to avoid an error. | ||
11623 | Use char because int might match the return type of a GCC | ||
11624 | builtin and then its argument prototype would still apply. */ | ||
11625 | #ifdef __cplusplus | ||
11626 | extern "C" | ||
11627 | #endif | ||
11628 | char dlopen (); | ||
11629 | int | ||
11630 | main () | ||
11631 | { | ||
11632 | return dlopen (); | ||
11633 | ; | ||
11634 | return 0; | ||
11635 | } | ||
11636 | _ACEOF | ||
11637 | if ac_fn_c_try_link "$LINENO"; then : | ||
11638 | ac_cv_lib_svld_dlopen=yes | ||
11639 | else | ||
11640 | ac_cv_lib_svld_dlopen=no | ||
11641 | fi | ||
11642 | rm -f core conftest.err conftest.$ac_objext \ | ||
11643 | conftest$ac_exeext conftest.$ac_ext | ||
11644 | LIBS=$ac_check_lib_save_LIBS | ||
11645 | fi | ||
11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
11647 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
11648 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
11649 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
11650 | else | ||
11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
11652 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
11653 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
11654 | $as_echo_n "(cached) " >&6 | ||
11655 | else | ||
11656 | ac_check_lib_save_LIBS=$LIBS | ||
11657 | LIBS="-ldld $LIBS" | ||
11658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11659 | /* end confdefs.h. */ | ||
11660 | |||
11661 | /* Override any GCC internal prototype to avoid an error. | ||
11662 | Use char because int might match the return type of a GCC | ||
11663 | builtin and then its argument prototype would still apply. */ | ||
11664 | #ifdef __cplusplus | ||
11665 | extern "C" | ||
11666 | #endif | ||
11667 | char dld_link (); | ||
11668 | int | ||
11669 | main () | ||
11670 | { | ||
11671 | return dld_link (); | ||
11672 | ; | ||
11673 | return 0; | ||
11674 | } | ||
11675 | _ACEOF | ||
11676 | if ac_fn_c_try_link "$LINENO"; then : | ||
11677 | ac_cv_lib_dld_dld_link=yes | ||
11678 | else | ||
11679 | ac_cv_lib_dld_dld_link=no | ||
11680 | fi | ||
11681 | rm -f core conftest.err conftest.$ac_objext \ | ||
11682 | conftest$ac_exeext conftest.$ac_ext | ||
11683 | LIBS=$ac_check_lib_save_LIBS | ||
11684 | fi | ||
11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
11686 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
11687 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
11688 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
11689 | fi | ||
11690 | |||
11691 | |||
11692 | fi | ||
11693 | |||
11694 | |||
11695 | fi | ||
11696 | |||
11697 | |||
11698 | fi | ||
11699 | |||
11700 | |||
11701 | fi | ||
11702 | |||
11703 | |||
11704 | fi | ||
11705 | |||
11706 | ;; | ||
11707 | esac | ||
11708 | |||
11709 | if test "x$lt_cv_dlopen" != xno; then | ||
11710 | enable_dlopen=yes | ||
11711 | else | ||
11712 | enable_dlopen=no | ||
11713 | fi | ||
11714 | |||
11715 | case $lt_cv_dlopen in | ||
11716 | dlopen) | ||
11717 | save_CPPFLAGS="$CPPFLAGS" | ||
11718 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
11719 | |||
11720 | save_LDFLAGS="$LDFLAGS" | ||
11721 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
11722 | |||
11723 | save_LIBS="$LIBS" | ||
11724 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
11725 | |||
11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
11727 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
11728 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
11729 | $as_echo_n "(cached) " >&6 | ||
11730 | else | ||
11731 | if test "$cross_compiling" = yes; then : | ||
11732 | lt_cv_dlopen_self=cross | ||
11733 | else | ||
11734 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11735 | lt_status=$lt_dlunknown | ||
11736 | cat > conftest.$ac_ext <<_LT_EOF | ||
11737 | #line 11737 "configure" | ||
11738 | #include "confdefs.h" | ||
11739 | |||
11740 | #if HAVE_DLFCN_H | ||
11741 | #include <dlfcn.h> | ||
11742 | #endif | ||
11743 | |||
11744 | #include <stdio.h> | ||
11745 | |||
11746 | #ifdef RTLD_GLOBAL | ||
11747 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11748 | #else | ||
11749 | # ifdef DL_GLOBAL | ||
11750 | # define LT_DLGLOBAL DL_GLOBAL | ||
11751 | # else | ||
11752 | # define LT_DLGLOBAL 0 | ||
11753 | # endif | ||
11754 | #endif | ||
11755 | |||
11756 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11757 | find out it does not work in some platform. */ | ||
11758 | #ifndef LT_DLLAZY_OR_NOW | ||
11759 | # ifdef RTLD_LAZY | ||
11760 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11761 | # else | ||
11762 | # ifdef DL_LAZY | ||
11763 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11764 | # else | ||
11765 | # ifdef RTLD_NOW | ||
11766 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11767 | # else | ||
11768 | # ifdef DL_NOW | ||
11769 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11770 | # else | ||
11771 | # define LT_DLLAZY_OR_NOW 0 | ||
11772 | # endif | ||
11773 | # endif | ||
11774 | # endif | ||
11775 | # endif | ||
11776 | #endif | ||
11777 | |||
11778 | void fnord() { int i=42;} | ||
11779 | int main () | ||
11780 | { | ||
11781 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11782 | int status = $lt_dlunknown; | ||
11783 | |||
11784 | if (self) | ||
11785 | { | ||
11786 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11787 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11788 | /* dlclose (self); */ | ||
11789 | } | ||
11790 | else | ||
11791 | puts (dlerror ()); | ||
11792 | |||
11793 | return status; | ||
11794 | } | ||
11795 | _LT_EOF | ||
11796 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11797 | (eval $ac_link) 2>&5 | ||
11798 | ac_status=$? | ||
11799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11800 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11801 | (./conftest; exit; ) >&5 2>/dev/null | ||
11802 | lt_status=$? | ||
11803 | case x$lt_status in | ||
11804 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
11805 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
11806 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
11807 | esac | ||
11808 | else : | ||
11809 | # compilation failed | ||
11810 | lt_cv_dlopen_self=no | ||
11811 | fi | ||
11812 | fi | ||
11813 | rm -fr conftest* | ||
11814 | |||
11815 | |||
11816 | fi | ||
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
11818 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
11819 | |||
11820 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
11821 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
11823 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
11824 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
11825 | $as_echo_n "(cached) " >&6 | ||
11826 | else | ||
11827 | if test "$cross_compiling" = yes; then : | ||
11828 | lt_cv_dlopen_self_static=cross | ||
11829 | else | ||
11830 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11831 | lt_status=$lt_dlunknown | ||
11832 | cat > conftest.$ac_ext <<_LT_EOF | ||
11833 | #line 11833 "configure" | ||
11834 | #include "confdefs.h" | ||
11835 | |||
11836 | #if HAVE_DLFCN_H | ||
11837 | #include <dlfcn.h> | ||
11838 | #endif | ||
11839 | |||
11840 | #include <stdio.h> | ||
11841 | |||
11842 | #ifdef RTLD_GLOBAL | ||
11843 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11844 | #else | ||
11845 | # ifdef DL_GLOBAL | ||
11846 | # define LT_DLGLOBAL DL_GLOBAL | ||
11847 | # else | ||
11848 | # define LT_DLGLOBAL 0 | ||
11849 | # endif | ||
11850 | #endif | ||
11851 | |||
11852 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11853 | find out it does not work in some platform. */ | ||
11854 | #ifndef LT_DLLAZY_OR_NOW | ||
11855 | # ifdef RTLD_LAZY | ||
11856 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11857 | # else | ||
11858 | # ifdef DL_LAZY | ||
11859 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11860 | # else | ||
11861 | # ifdef RTLD_NOW | ||
11862 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11863 | # else | ||
11864 | # ifdef DL_NOW | ||
11865 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11866 | # else | ||
11867 | # define LT_DLLAZY_OR_NOW 0 | ||
11868 | # endif | ||
11869 | # endif | ||
11870 | # endif | ||
11871 | # endif | ||
11872 | #endif | ||
11873 | |||
11874 | void fnord() { int i=42;} | ||
11875 | int main () | ||
11876 | { | ||
11877 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11878 | int status = $lt_dlunknown; | ||
11879 | |||
11880 | if (self) | ||
11881 | { | ||
11882 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11883 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11884 | /* dlclose (self); */ | ||
11885 | } | ||
11886 | else | ||
11887 | puts (dlerror ()); | ||
11888 | |||
11889 | return status; | ||
11890 | } | ||
11891 | _LT_EOF | ||
11892 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11893 | (eval $ac_link) 2>&5 | ||
11894 | ac_status=$? | ||
11895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11896 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11897 | (./conftest; exit; ) >&5 2>/dev/null | ||
11898 | lt_status=$? | ||
11899 | case x$lt_status in | ||
11900 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11901 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11902 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
11903 | esac | ||
11904 | else : | ||
11905 | # compilation failed | ||
11906 | lt_cv_dlopen_self_static=no | ||
11907 | fi | ||
11908 | fi | ||
11909 | rm -fr conftest* | ||
11910 | |||
11911 | |||
11912 | fi | ||
11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
11914 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
11915 | fi | ||
11916 | |||
11917 | CPPFLAGS="$save_CPPFLAGS" | ||
11918 | LDFLAGS="$save_LDFLAGS" | ||
11919 | LIBS="$save_LIBS" | ||
11920 | ;; | ||
11921 | esac | ||
11922 | |||
11923 | case $lt_cv_dlopen_self in | ||
11924 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
11925 | *) enable_dlopen_self=unknown ;; | ||
11926 | esac | ||
11927 | |||
11928 | case $lt_cv_dlopen_self_static in | ||
11929 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
11930 | *) enable_dlopen_self_static=unknown ;; | ||
11931 | esac | ||
11932 | fi | ||
11933 | |||
11934 | |||
11935 | |||
11936 | |||
11937 | |||
11938 | |||
11939 | |||
11940 | |||
11941 | |||
11942 | |||
11943 | |||
11944 | |||
11945 | |||
11946 | |||
11947 | |||
11948 | |||
11949 | |||
11950 | striplib= | ||
11951 | old_striplib= | ||
11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
11953 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
11954 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
11955 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
11956 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11958 | $as_echo "yes" >&6; } | ||
11959 | else | ||
11960 | # FIXME - insert some real tests, host_os isn't really good enough | ||
11961 | case $host_os in | ||
11962 | darwin*) | ||
11963 | if test -n "$STRIP" ; then | ||
11964 | striplib="$STRIP -x" | ||
11965 | old_striplib="$STRIP -S" | ||
11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11967 | $as_echo "yes" >&6; } | ||
11968 | else | ||
11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11970 | $as_echo "no" >&6; } | ||
11971 | fi | ||
11972 | ;; | ||
11973 | *) | ||
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11975 | $as_echo "no" >&6; } | ||
11976 | ;; | ||
11977 | esac | ||
11978 | fi | ||
11979 | |||
11980 | |||
11981 | |||
11982 | |||
11983 | |||
11984 | |||
11985 | |||
11986 | |||
11987 | |||
11988 | |||
11989 | |||
11990 | |||
11991 | # Report which library types will actually be built | ||
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
11993 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
11995 | $as_echo "$can_build_shared" >&6; } | ||
11996 | |||
11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
11998 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
11999 | test "$can_build_shared" = "no" && enable_shared=no | ||
12000 | |||
12001 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
12002 | # are all built from PIC. | ||
12003 | case $host_os in | ||
12004 | aix3*) | ||
12005 | test "$enable_shared" = yes && enable_static=no | ||
12006 | if test -n "$RANLIB"; then | ||
12007 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
12008 | postinstall_cmds='$RANLIB $lib' | ||
12009 | fi | ||
12010 | ;; | ||
12011 | |||
12012 | aix[4-9]*) | ||
12013 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
12014 | test "$enable_shared" = yes && enable_static=no | ||
12015 | fi | ||
12016 | ;; | ||
12017 | esac | ||
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
12019 | $as_echo "$enable_shared" >&6; } | ||
12020 | |||
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
12022 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
12023 | # Make sure either enable_shared or enable_static is yes. | ||
12024 | test "$enable_shared" = yes || enable_static=yes | ||
12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
12026 | $as_echo "$enable_static" >&6; } | ||
12027 | |||
12028 | |||
12029 | |||
12030 | |||
12031 | fi | ||
12032 | ac_ext=c | ||
12033 | ac_cpp='$CPP $CPPFLAGS' | ||
12034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12037 | |||
12038 | CC="$lt_save_CC" | ||
12039 | |||
12040 | |||
12041 | |||
12042 | |||
12043 | |||
12044 | |||
12045 | |||
12046 | |||
12047 | |||
12048 | |||
12049 | |||
12050 | |||
12051 | |||
12052 | ac_config_commands="$ac_config_commands libtool" | ||
12053 | |||
12054 | |||
12055 | |||
12056 | |||
12057 | # Only expand once: | ||
12058 | |||
12059 | |||
12060 | |||
12061 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12062 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12063 | |||
12064 | |||
12065 | |||
12066 | cat >>confdefs.h <<_ACEOF | ||
12067 | #define VMAJ 1 | ||
12068 | _ACEOF | ||
12069 | |||
12070 | |||
12071 | cat >>confdefs.h <<_ACEOF | ||
12072 | #define VMIN 1 | ||
12073 | _ACEOF | ||
12074 | |||
12075 | |||
12076 | cat >>confdefs.h <<_ACEOF | ||
12077 | #define VMIC 0 | ||
12078 | _ACEOF | ||
12079 | |||
12080 | |||
12081 | cat >>confdefs.h <<_ACEOF | ||
12082 | #define VREV 0 | ||
12083 | _ACEOF | ||
12084 | |||
12085 | version_info="2:0:1" | ||
12086 | release_info="" | ||
12087 | |||
12088 | |||
12089 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12090 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12091 | VMAJ=1 | ||
12092 | |||
12093 | |||
12094 | ### Needed information | ||
12095 | |||
12096 | |||
12097 | |||
12098 | |||
12099 | case "$host_os" in | ||
12100 | mingw32ce*) | ||
12101 | MODULE_ARCH="$host_os-$host_cpu" | ||
12102 | ;; | ||
12103 | *) | ||
12104 | MODULE_ARCH="$host_os-$host_cpu-1.1.0" | ||
12105 | ;; | ||
12106 | esac | ||
12107 | |||
12108 | |||
12109 | cat >>confdefs.h <<_ACEOF | ||
12110 | #define MODULE_ARCH "$MODULE_ARCH" | ||
12111 | _ACEOF | ||
12112 | |||
12113 | |||
12114 | want_fontconfig="auto" | ||
12115 | want_fribidi="auto" | ||
12116 | want_harfbuzz="auto" | ||
12117 | want_pixman="no" | ||
12118 | want_evas_cserve="yes" | ||
12119 | |||
12120 | want_evas_engine_buffer="yes" | ||
12121 | want_evas_engine_software_xlib="no" | ||
12122 | want_evas_engine_software_xcb="no" | ||
12123 | want_evas_engine_software_gdi="no" | ||
12124 | want_evas_engine_software_ddraw="no" | ||
12125 | want_evas_engine_software_sdl="no" | ||
12126 | want_evas_engine_software_8_x11="no" | ||
12127 | want_evas_engine_software_16_x11="no" | ||
12128 | want_evas_engine_software_16_ddraw="no" | ||
12129 | want_evas_engine_software_16_wince="no" | ||
12130 | want_evas_engine_software_16_sdl="no" | ||
12131 | want_evas_engine_gl_xlib="no" | ||
12132 | want_evas_engine_gl_xcb="no" | ||
12133 | want_evas_engine_gl_sdl="no" | ||
12134 | want_evas_engine_gl_cocoa="no" | ||
12135 | want_evas_engine_direct3d="no" | ||
12136 | want_evas_engine_fb="no" | ||
12137 | want_evas_engine_directfb="no" | ||
12138 | want_evas_engine_psl1ght="no" | ||
12139 | |||
12140 | want_evas_image_loader_edb="yes" | ||
12141 | want_evas_image_loader_eet="yes" | ||
12142 | want_evas_image_loader_gif="yes" | ||
12143 | want_evas_image_loader_jpeg="yes" | ||
12144 | want_evas_image_loader_pmaps="yes" | ||
12145 | want_evas_image_loader_png="yes" | ||
12146 | want_evas_image_loader_svg="yes" | ||
12147 | want_evas_image_loader_tiff="yes" | ||
12148 | want_evas_image_loader_xpm="yes" | ||
12149 | want_evas_image_loader_bmp="yes" | ||
12150 | want_evas_image_loader_tga="yes" | ||
12151 | want_evas_image_loader_wbmp="yes" | ||
12152 | want_evas_image_loader_ico="yes" | ||
12153 | want_evas_image_loader_psd="yes" | ||
12154 | want_evas_image_loader_generic="yes" | ||
12155 | |||
12156 | want_evas_font_loader_eet="yes" | ||
12157 | |||
12158 | case "$host_os" in | ||
12159 | mingw32ce*) | ||
12160 | want_fontconfig="no" | ||
12161 | want_evas_engine_software_16_wince="yes" | ||
12162 | want_evas_image_loader_edb="no" | ||
12163 | want_evas_image_loader_gif="no" | ||
12164 | want_evas_image_loader_svg="no" | ||
12165 | want_evas_image_loader_tiff="no" | ||
12166 | ;; | ||
12167 | mingw*) | ||
12168 | want_evas_engine_software_gdi="yes" | ||
12169 | want_evas_engine_software_ddraw="yes" | ||
12170 | want_evas_engine_direct3d="yes" | ||
12171 | want_evas_engine_software_16_ddraw="yes" | ||
12172 | want_evas_image_loader_edb="no" | ||
12173 | want_evas_image_loader_svg="no" | ||
12174 | ;; | ||
12175 | darwin*) | ||
12176 | want_evas_engine_software_xlib="auto" | ||
12177 | want_evas_engine_gl_cocoa="auto" | ||
12178 | ;; | ||
12179 | *) | ||
12180 | want_evas_engine_software_xlib="auto" | ||
12181 | want_evas_engine_gl_xlib="auto" | ||
12182 | want_evas_engine_software_xcb="no" | ||
12183 | want_evas_engine_gl_xcb="no" | ||
12184 | want_evas_engine_fb="auto" | ||
12185 | ### no - not ready/usable/complete | ||
12186 | # want_evas_engine_software_8_x11="auto" | ||
12187 | # want_evas_engine_software_16_x11="auto" | ||
12188 | ;; | ||
12189 | esac | ||
12190 | |||
12191 | case "$host_vendor" in | ||
12192 | ps3*) | ||
12193 | want_evas_engine_psl1ght="static" | ||
12194 | ;; | ||
12195 | esac | ||
12196 | |||
12197 | requirement_evas="" | ||
12198 | |||
12199 | |||
12200 | ### Additional options to configure | ||
12201 | |||
12202 | # when used, that option makes configure script fails when | ||
12203 | # a requirement is selected, but not met. | ||
12204 | use_strict="no" | ||
12205 | # Check whether --enable-strict was given. | ||
12206 | if test "${enable_strict+set}" = set; then : | ||
12207 | enableval=$enable_strict; use_strict="yes" | ||
12208 | else | ||
12209 | use_strict="no" | ||
12210 | fi | ||
12211 | |||
12212 | |||
12213 | # Simple X11 build/link | ||
12214 | # Check whether --enable-simple-x11 was given. | ||
12215 | if test "${enable_simple_x11+set}" = set; then : | ||
12216 | enableval=$enable_simple_x11; | ||
12217 | if test "x${enableval}" = "xyes" ; then | ||
12218 | want_evas_simple_x11="yes" | ||
12219 | else | ||
12220 | want_evas_simple_x11="no" | ||
12221 | fi | ||
12222 | |||
12223 | fi | ||
12224 | |||
12225 | |||
12226 | |||
12227 | ### Checks for programs | ||
12228 | |||
12229 | |||
12230 | ac_ext=m | ||
12231 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
12232 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12233 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12234 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
12235 | if test -n "$ac_tool_prefix"; then | ||
12236 | for ac_prog in gcc objcc objc cc CC | ||
12237 | do | ||
12238 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
12239 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12241 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12242 | if test "${ac_cv_prog_OBJC+set}" = set; then : | ||
12243 | $as_echo_n "(cached) " >&6 | ||
12244 | else | ||
12245 | if test -n "$OBJC"; then | ||
12246 | ac_cv_prog_OBJC="$OBJC" # Let the user override the test. | ||
12247 | else | ||
12248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12249 | for as_dir in $PATH | ||
12250 | do | ||
12251 | IFS=$as_save_IFS | ||
12252 | test -z "$as_dir" && as_dir=. | ||
12253 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12255 | ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" | ||
12256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12257 | break 2 | ||
12258 | fi | ||
12259 | done | ||
12260 | done | ||
12261 | IFS=$as_save_IFS | ||
12262 | |||
12263 | fi | ||
12264 | fi | ||
12265 | OBJC=$ac_cv_prog_OBJC | ||
12266 | if test -n "$OBJC"; then | ||
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 | ||
12268 | $as_echo "$OBJC" >&6; } | ||
12269 | else | ||
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12271 | $as_echo "no" >&6; } | ||
12272 | fi | ||
12273 | |||
12274 | |||
12275 | test -n "$OBJC" && break | ||
12276 | done | ||
12277 | fi | ||
12278 | if test -z "$OBJC"; then | ||
12279 | ac_ct_OBJC=$OBJC | ||
12280 | for ac_prog in gcc objcc objc cc CC | ||
12281 | do | ||
12282 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
12283 | set dummy $ac_prog; ac_word=$2 | ||
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12285 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12286 | if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then : | ||
12287 | $as_echo_n "(cached) " >&6 | ||
12288 | else | ||
12289 | if test -n "$ac_ct_OBJC"; then | ||
12290 | ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. | ||
12291 | else | ||
12292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12293 | for as_dir in $PATH | ||
12294 | do | ||
12295 | IFS=$as_save_IFS | ||
12296 | test -z "$as_dir" && as_dir=. | ||
12297 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12298 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12299 | ac_cv_prog_ac_ct_OBJC="$ac_prog" | ||
12300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12301 | break 2 | ||
12302 | fi | ||
12303 | done | ||
12304 | done | ||
12305 | IFS=$as_save_IFS | ||
12306 | |||
12307 | fi | ||
12308 | fi | ||
12309 | ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC | ||
12310 | if test -n "$ac_ct_OBJC"; then | ||
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 | ||
12312 | $as_echo "$ac_ct_OBJC" >&6; } | ||
12313 | else | ||
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12315 | $as_echo "no" >&6; } | ||
12316 | fi | ||
12317 | |||
12318 | |||
12319 | test -n "$ac_ct_OBJC" && break | ||
12320 | done | ||
12321 | |||
12322 | if test "x$ac_ct_OBJC" = x; then | ||
12323 | OBJC="gcc" | ||
12324 | else | ||
12325 | case $cross_compiling:$ac_tool_warned in | ||
12326 | yes:) | ||
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12328 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12329 | ac_tool_warned=yes ;; | ||
12330 | esac | ||
12331 | OBJC=$ac_ct_OBJC | ||
12332 | fi | ||
12333 | fi | ||
12334 | |||
12335 | # Provide some information about the compiler. | ||
12336 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 | ||
12337 | set X $ac_compile | ||
12338 | ac_compiler=$2 | ||
12339 | for ac_option in --version -v -V -qversion; do | ||
12340 | { { ac_try="$ac_compiler $ac_option >&5" | ||
12341 | case "(($ac_try" in | ||
12342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12343 | *) ac_try_echo=$ac_try;; | ||
12344 | esac | ||
12345 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12346 | $as_echo "$ac_try_echo"; } >&5 | ||
12347 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
12348 | ac_status=$? | ||
12349 | if test -s conftest.err; then | ||
12350 | sed '10a\ | ||
12351 | ... rest of stderr output deleted ... | ||
12352 | 10q' conftest.err >conftest.er1 | ||
12353 | cat conftest.er1 >&5 | ||
12354 | fi | ||
12355 | rm -f conftest.er1 conftest.err | ||
12356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12357 | test $ac_status = 0; } | ||
12358 | done | ||
12359 | |||
12360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 | ||
12361 | $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } | ||
12362 | if test "${ac_cv_objc_compiler_gnu+set}" = set; then : | ||
12363 | $as_echo_n "(cached) " >&6 | ||
12364 | else | ||
12365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12366 | /* end confdefs.h. */ | ||
12367 | |||
12368 | int | ||
12369 | main () | ||
12370 | { | ||
12371 | #ifndef __GNUC__ | ||
12372 | choke me | ||
12373 | #endif | ||
12374 | |||
12375 | ; | ||
12376 | return 0; | ||
12377 | } | ||
12378 | _ACEOF | ||
12379 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
12380 | ac_compiler_gnu=yes | ||
12381 | else | ||
12382 | ac_compiler_gnu=no | ||
12383 | fi | ||
12384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12385 | ac_cv_objc_compiler_gnu=$ac_compiler_gnu | ||
12386 | |||
12387 | fi | ||
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 | ||
12389 | $as_echo "$ac_cv_objc_compiler_gnu" >&6; } | ||
12390 | if test $ac_compiler_gnu = yes; then | ||
12391 | GOBJC=yes | ||
12392 | else | ||
12393 | GOBJC= | ||
12394 | fi | ||
12395 | ac_test_OBJCFLAGS=${OBJCFLAGS+set} | ||
12396 | ac_save_OBJCFLAGS=$OBJCFLAGS | ||
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 | ||
12398 | $as_echo_n "checking whether $OBJC accepts -g... " >&6; } | ||
12399 | if test "${ac_cv_prog_objc_g+set}" = set; then : | ||
12400 | $as_echo_n "(cached) " >&6 | ||
12401 | else | ||
12402 | ac_save_objc_werror_flag=$ac_objc_werror_flag | ||
12403 | ac_objc_werror_flag=yes | ||
12404 | ac_cv_prog_objc_g=no | ||
12405 | OBJCFLAGS="-g" | ||
12406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12407 | /* end confdefs.h. */ | ||
12408 | |||
12409 | int | ||
12410 | main () | ||
12411 | { | ||
12412 | |||
12413 | ; | ||
12414 | return 0; | ||
12415 | } | ||
12416 | _ACEOF | ||
12417 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
12418 | ac_cv_prog_objc_g=yes | ||
12419 | else | ||
12420 | OBJCFLAGS="" | ||
12421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12422 | /* end confdefs.h. */ | ||
12423 | |||
12424 | int | ||
12425 | main () | ||
12426 | { | ||
12427 | |||
12428 | ; | ||
12429 | return 0; | ||
12430 | } | ||
12431 | _ACEOF | ||
12432 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
12433 | |||
12434 | else | ||
12435 | ac_objc_werror_flag=$ac_save_objc_werror_flag | ||
12436 | OBJCFLAGS="-g" | ||
12437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12438 | /* end confdefs.h. */ | ||
12439 | |||
12440 | int | ||
12441 | main () | ||
12442 | { | ||
12443 | |||
12444 | ; | ||
12445 | return 0; | ||
12446 | } | ||
12447 | _ACEOF | ||
12448 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
12449 | ac_cv_prog_objc_g=yes | ||
12450 | fi | ||
12451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12452 | fi | ||
12453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12454 | fi | ||
12455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12456 | ac_objc_werror_flag=$ac_save_objc_werror_flag | ||
12457 | fi | ||
12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 | ||
12459 | $as_echo "$ac_cv_prog_objc_g" >&6; } | ||
12460 | if test "$ac_test_OBJCFLAGS" = set; then | ||
12461 | OBJCFLAGS=$ac_save_OBJCFLAGS | ||
12462 | elif test $ac_cv_prog_objc_g = yes; then | ||
12463 | if test "$GOBJC" = yes; then | ||
12464 | OBJCFLAGS="-g -O2" | ||
12465 | else | ||
12466 | OBJCFLAGS="-g" | ||
12467 | fi | ||
12468 | else | ||
12469 | if test "$GOBJC" = yes; then | ||
12470 | OBJCFLAGS="-O2" | ||
12471 | else | ||
12472 | OBJCFLAGS= | ||
12473 | fi | ||
12474 | fi | ||
12475 | ac_ext=c | ||
12476 | ac_cpp='$CPP $CPPFLAGS' | ||
12477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12480 | |||
12481 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | ||
12482 | |||
12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
12484 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
12485 | if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then : | ||
12486 | $as_echo_n "(cached) " >&6 | ||
12487 | else | ||
12488 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
12489 | # We make a subdir and do the tests there. Otherwise we can end up | ||
12490 | # making bogus files that we don't know about and never remove. For | ||
12491 | # instance it was reported that on HP-UX the gcc test will end up | ||
12492 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
12493 | # in D'. | ||
12494 | mkdir conftest.dir | ||
12495 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
12496 | # using a relative directory. | ||
12497 | cp "$am_depcomp" conftest.dir | ||
12498 | cd conftest.dir | ||
12499 | # We will build objects and dependencies in a subdirectory because | ||
12500 | # it helps to detect inapplicable dependency modes. For instance | ||
12501 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
12502 | # side effect of compilation, but ICC will put the dependencies in | ||
12503 | # the current directory while Tru64 will put them in the object | ||
12504 | # directory. | ||
12505 | mkdir sub | ||
12506 | |||
12507 | am_cv_OBJC_dependencies_compiler_type=none | ||
12508 | if test "$am_compiler_list" = ""; then | ||
12509 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
12510 | fi | ||
12511 | am__universal=false | ||
12512 | |||
12513 | |||
12514 | for depmode in $am_compiler_list; do | ||
12515 | # Setup a source with many dependencies, because some compilers | ||
12516 | # like to wrap large dependency lists on column 80 (with \), and | ||
12517 | # we should not choose a depcomp mode which is confused by this. | ||
12518 | # | ||
12519 | # We need to recreate these files for each test, as the compiler may | ||
12520 | # overwrite some of them when testing with obscure command lines. | ||
12521 | # This happens at least with the AIX C compiler. | ||
12522 | : > sub/conftest.c | ||
12523 | for i in 1 2 3 4 5 6; do | ||
12524 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
12525 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
12526 | # Solaris 8's {/usr,}/bin/sh. | ||
12527 | touch sub/conftst$i.h | ||
12528 | done | ||
12529 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
12530 | |||
12531 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
12532 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
12533 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
12534 | # versions had trouble with output in subdirs | ||
12535 | am__obj=sub/conftest.${OBJEXT-o} | ||
12536 | am__minus_obj="-o $am__obj" | ||
12537 | case $depmode in | ||
12538 | gcc) | ||
12539 | # This depmode causes a compiler race in universal mode. | ||
12540 | test "$am__universal" = false || continue | ||
12541 | ;; | ||
12542 | nosideeffect) | ||
12543 | # after this tag, mechanisms are not by side-effect, so they'll | ||
12544 | # only be used when explicitly requested | ||
12545 | if test "x$enable_dependency_tracking" = xyes; then | ||
12546 | continue | ||
12547 | else | ||
12548 | break | ||
12549 | fi | ||
12550 | ;; | ||
12551 | msvisualcpp | msvcmsys) | ||
12552 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
12553 | # not run yet. These depmodes are late enough in the game, and | ||
12554 | # so weak that their functioning should not be impacted. | ||
12555 | am__obj=conftest.${OBJEXT-o} | ||
12556 | am__minus_obj= | ||
12557 | ;; | ||
12558 | none) break ;; | ||
12559 | esac | ||
12560 | if depmode=$depmode \ | ||
12561 | source=sub/conftest.c object=$am__obj \ | ||
12562 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
12563 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
12564 | >/dev/null 2>conftest.err && | ||
12565 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
12566 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
12567 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
12568 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
12569 | # icc doesn't choke on unknown options, it will just issue warnings | ||
12570 | # or remarks (even with -Werror). So we grep stderr for any message | ||
12571 | # that says an option was ignored or not supported. | ||
12572 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
12573 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
12574 | # The diagnosis changed in icc 8.0: | ||
12575 | # icc: Command line remark: option '-MP' not supported | ||
12576 | if (grep 'ignoring option' conftest.err || | ||
12577 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
12578 | am_cv_OBJC_dependencies_compiler_type=$depmode | ||
12579 | break | ||
12580 | fi | ||
12581 | fi | ||
12582 | done | ||
12583 | |||
12584 | cd .. | ||
12585 | rm -rf conftest.dir | ||
12586 | else | ||
12587 | am_cv_OBJC_dependencies_compiler_type=none | ||
12588 | fi | ||
12589 | |||
12590 | fi | ||
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | ||
12592 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | ||
12593 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | ||
12594 | |||
12595 | if | ||
12596 | test "x$enable_dependency_tracking" != xno \ | ||
12597 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | ||
12598 | am__fastdepOBJC_TRUE= | ||
12599 | am__fastdepOBJC_FALSE='#' | ||
12600 | else | ||
12601 | am__fastdepOBJC_TRUE='#' | ||
12602 | am__fastdepOBJC_FALSE= | ||
12603 | fi | ||
12604 | |||
12605 | |||
12606 | |||
12607 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | ||
12608 | |||
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
12610 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
12611 | if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then : | ||
12612 | $as_echo_n "(cached) " >&6 | ||
12613 | else | ||
12614 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
12615 | # We make a subdir and do the tests there. Otherwise we can end up | ||
12616 | # making bogus files that we don't know about and never remove. For | ||
12617 | # instance it was reported that on HP-UX the gcc test will end up | ||
12618 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
12619 | # in D'. | ||
12620 | mkdir conftest.dir | ||
12621 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
12622 | # using a relative directory. | ||
12623 | cp "$am_depcomp" conftest.dir | ||
12624 | cd conftest.dir | ||
12625 | # We will build objects and dependencies in a subdirectory because | ||
12626 | # it helps to detect inapplicable dependency modes. For instance | ||
12627 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
12628 | # side effect of compilation, but ICC will put the dependencies in | ||
12629 | # the current directory while Tru64 will put them in the object | ||
12630 | # directory. | ||
12631 | mkdir sub | ||
12632 | |||
12633 | am_cv_OBJC_dependencies_compiler_type=none | ||
12634 | if test "$am_compiler_list" = ""; then | ||
12635 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
12636 | fi | ||
12637 | am__universal=false | ||
12638 | |||
12639 | |||
12640 | for depmode in $am_compiler_list; do | ||
12641 | # Setup a source with many dependencies, because some compilers | ||
12642 | # like to wrap large dependency lists on column 80 (with \), and | ||
12643 | # we should not choose a depcomp mode which is confused by this. | ||
12644 | # | ||
12645 | # We need to recreate these files for each test, as the compiler may | ||
12646 | # overwrite some of them when testing with obscure command lines. | ||
12647 | # This happens at least with the AIX C compiler. | ||
12648 | : > sub/conftest.c | ||
12649 | for i in 1 2 3 4 5 6; do | ||
12650 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
12651 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
12652 | # Solaris 8's {/usr,}/bin/sh. | ||
12653 | touch sub/conftst$i.h | ||
12654 | done | ||
12655 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
12656 | |||
12657 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
12658 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
12659 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
12660 | # versions had trouble with output in subdirs | ||
12661 | am__obj=sub/conftest.${OBJEXT-o} | ||
12662 | am__minus_obj="-o $am__obj" | ||
12663 | case $depmode in | ||
12664 | gcc) | ||
12665 | # This depmode causes a compiler race in universal mode. | ||
12666 | test "$am__universal" = false || continue | ||
12667 | ;; | ||
12668 | nosideeffect) | ||
12669 | # after this tag, mechanisms are not by side-effect, so they'll | ||
12670 | # only be used when explicitly requested | ||
12671 | if test "x$enable_dependency_tracking" = xyes; then | ||
12672 | continue | ||
12673 | else | ||
12674 | break | ||
12675 | fi | ||
12676 | ;; | ||
12677 | msvisualcpp | msvcmsys) | ||
12678 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
12679 | # not run yet. These depmodes are late enough in the game, and | ||
12680 | # so weak that their functioning should not be impacted. | ||
12681 | am__obj=conftest.${OBJEXT-o} | ||
12682 | am__minus_obj= | ||
12683 | ;; | ||
12684 | none) break ;; | ||
12685 | esac | ||
12686 | if depmode=$depmode \ | ||
12687 | source=sub/conftest.c object=$am__obj \ | ||
12688 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
12689 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
12690 | >/dev/null 2>conftest.err && | ||
12691 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
12692 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
12693 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
12694 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
12695 | # icc doesn't choke on unknown options, it will just issue warnings | ||
12696 | # or remarks (even with -Werror). So we grep stderr for any message | ||
12697 | # that says an option was ignored or not supported. | ||
12698 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
12699 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
12700 | # The diagnosis changed in icc 8.0: | ||
12701 | # icc: Command line remark: option '-MP' not supported | ||
12702 | if (grep 'ignoring option' conftest.err || | ||
12703 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
12704 | am_cv_OBJC_dependencies_compiler_type=$depmode | ||
12705 | break | ||
12706 | fi | ||
12707 | fi | ||
12708 | done | ||
12709 | |||
12710 | cd .. | ||
12711 | rm -rf conftest.dir | ||
12712 | else | ||
12713 | am_cv_OBJC_dependencies_compiler_type=none | ||
12714 | fi | ||
12715 | |||
12716 | fi | ||
12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | ||
12718 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | ||
12719 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | ||
12720 | |||
12721 | if | ||
12722 | test "x$enable_dependency_tracking" != xno \ | ||
12723 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | ||
12724 | am__fastdepOBJC_TRUE= | ||
12725 | am__fastdepOBJC_FALSE='#' | ||
12726 | else | ||
12727 | am__fastdepOBJC_TRUE='#' | ||
12728 | am__fastdepOBJC_FALSE= | ||
12729 | fi | ||
12730 | |||
12731 | |||
12732 | |||
12733 | |||
12734 | |||
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Objective C compiler works" >&5 | ||
12736 | $as_echo_n "checking whether the Objective C compiler works... " >&6; } | ||
12737 | if test "${rw_cv_prog_objc_works+set}" = set; then : | ||
12738 | $as_echo_n "(cached) " >&6 | ||
12739 | else | ||
12740 | ac_ext=m | ||
12741 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
12742 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12743 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12744 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
12745 | |||
12746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12747 | /* end confdefs.h. */ | ||
12748 | |||
12749 | int | ||
12750 | main () | ||
12751 | { | ||
12752 | |||
12753 | ; | ||
12754 | return 0; | ||
12755 | } | ||
12756 | _ACEOF | ||
12757 | if ac_fn_objc_try_link "$LINENO"; then : | ||
12758 | rw_cv_prog_objc_works=yes | ||
12759 | else | ||
12760 | rw_cv_prog_objc_works=no | ||
12761 | fi | ||
12762 | rm -f core conftest.err conftest.$ac_objext \ | ||
12763 | conftest$ac_exeext conftest.$ac_ext | ||
12764 | ac_ext=c | ||
12765 | ac_cpp='$CPP $CPPFLAGS' | ||
12766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12769 | |||
12770 | fi | ||
12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rw_cv_prog_objc_works" >&5 | ||
12772 | $as_echo "$rw_cv_prog_objc_works" >&6; } | ||
12773 | |||
12774 | |||
12775 | ac_ext=cpp | ||
12776 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
12777 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12778 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12779 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
12780 | if test -z "$CXX"; then | ||
12781 | if test -n "$CCC"; then | ||
12782 | CXX=$CCC | ||
12783 | else | ||
12784 | if test -n "$ac_tool_prefix"; then | ||
12785 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
12786 | do | ||
12787 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
12788 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12790 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12791 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
12792 | $as_echo_n "(cached) " >&6 | ||
12793 | else | ||
12794 | if test -n "$CXX"; then | ||
12795 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
12796 | else | ||
12797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12798 | for as_dir in $PATH | ||
12799 | do | ||
12800 | IFS=$as_save_IFS | ||
12801 | test -z "$as_dir" && as_dir=. | ||
12802 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12804 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
12805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12806 | break 2 | ||
12807 | fi | ||
12808 | done | ||
12809 | done | ||
12810 | IFS=$as_save_IFS | ||
12811 | |||
12812 | fi | ||
12813 | fi | ||
12814 | CXX=$ac_cv_prog_CXX | ||
12815 | if test -n "$CXX"; then | ||
12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
12817 | $as_echo "$CXX" >&6; } | ||
12818 | else | ||
12819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12820 | $as_echo "no" >&6; } | ||
12821 | fi | ||
12822 | |||
12823 | |||
12824 | test -n "$CXX" && break | ||
12825 | done | ||
12826 | fi | ||
12827 | if test -z "$CXX"; then | ||
12828 | ac_ct_CXX=$CXX | ||
12829 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
12830 | do | ||
12831 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
12832 | set dummy $ac_prog; ac_word=$2 | ||
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12834 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12835 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
12836 | $as_echo_n "(cached) " >&6 | ||
12837 | else | ||
12838 | if test -n "$ac_ct_CXX"; then | ||
12839 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
12840 | else | ||
12841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12842 | for as_dir in $PATH | ||
12843 | do | ||
12844 | IFS=$as_save_IFS | ||
12845 | test -z "$as_dir" && as_dir=. | ||
12846 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12848 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
12849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12850 | break 2 | ||
12851 | fi | ||
12852 | done | ||
12853 | done | ||
12854 | IFS=$as_save_IFS | ||
12855 | |||
12856 | fi | ||
12857 | fi | ||
12858 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
12859 | if test -n "$ac_ct_CXX"; then | ||
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
12861 | $as_echo "$ac_ct_CXX" >&6; } | ||
12862 | else | ||
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12864 | $as_echo "no" >&6; } | ||
12865 | fi | ||
12866 | |||
12867 | |||
12868 | test -n "$ac_ct_CXX" && break | ||
12869 | done | ||
12870 | |||
12871 | if test "x$ac_ct_CXX" = x; then | ||
12872 | CXX="g++" | ||
12873 | else | ||
12874 | case $cross_compiling:$ac_tool_warned in | ||
12875 | yes:) | ||
12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12878 | ac_tool_warned=yes ;; | ||
12879 | esac | ||
12880 | CXX=$ac_ct_CXX | ||
12881 | fi | ||
12882 | fi | ||
12883 | |||
12884 | fi | ||
12885 | fi | ||
12886 | # Provide some information about the compiler. | ||
12887 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
12888 | set X $ac_compile | ||
12889 | ac_compiler=$2 | ||
12890 | for ac_option in --version -v -V -qversion; do | ||
12891 | { { ac_try="$ac_compiler $ac_option >&5" | ||
12892 | case "(($ac_try" in | ||
12893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12894 | *) ac_try_echo=$ac_try;; | ||
12895 | esac | ||
12896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12897 | $as_echo "$ac_try_echo"; } >&5 | ||
12898 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
12899 | ac_status=$? | ||
12900 | if test -s conftest.err; then | ||
12901 | sed '10a\ | ||
12902 | ... rest of stderr output deleted ... | ||
12903 | 10q' conftest.err >conftest.er1 | ||
12904 | cat conftest.er1 >&5 | ||
12905 | fi | ||
12906 | rm -f conftest.er1 conftest.err | ||
12907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12908 | test $ac_status = 0; } | ||
12909 | done | ||
12910 | |||
12911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
12912 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
12913 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
12914 | $as_echo_n "(cached) " >&6 | ||
12915 | else | ||
12916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12917 | /* end confdefs.h. */ | ||
12918 | |||
12919 | int | ||
12920 | main () | ||
12921 | { | ||
12922 | #ifndef __GNUC__ | ||
12923 | choke me | ||
12924 | #endif | ||
12925 | |||
12926 | ; | ||
12927 | return 0; | ||
12928 | } | ||
12929 | _ACEOF | ||
12930 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
12931 | ac_compiler_gnu=yes | ||
12932 | else | ||
12933 | ac_compiler_gnu=no | ||
12934 | fi | ||
12935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12936 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
12937 | |||
12938 | fi | ||
12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
12940 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
12941 | if test $ac_compiler_gnu = yes; then | ||
12942 | GXX=yes | ||
12943 | else | ||
12944 | GXX= | ||
12945 | fi | ||
12946 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
12947 | ac_save_CXXFLAGS=$CXXFLAGS | ||
12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
12949 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
12950 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
12951 | $as_echo_n "(cached) " >&6 | ||
12952 | else | ||
12953 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
12954 | ac_cxx_werror_flag=yes | ||
12955 | ac_cv_prog_cxx_g=no | ||
12956 | CXXFLAGS="-g" | ||
12957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12958 | /* end confdefs.h. */ | ||
12959 | |||
12960 | int | ||
12961 | main () | ||
12962 | { | ||
12963 | |||
12964 | ; | ||
12965 | return 0; | ||
12966 | } | ||
12967 | _ACEOF | ||
12968 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
12969 | ac_cv_prog_cxx_g=yes | ||
12970 | else | ||
12971 | CXXFLAGS="" | ||
12972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12973 | /* end confdefs.h. */ | ||
12974 | |||
12975 | int | ||
12976 | main () | ||
12977 | { | ||
12978 | |||
12979 | ; | ||
12980 | return 0; | ||
12981 | } | ||
12982 | _ACEOF | ||
12983 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
12984 | |||
12985 | else | ||
12986 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
12987 | CXXFLAGS="-g" | ||
12988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12989 | /* end confdefs.h. */ | ||
12990 | |||
12991 | int | ||
12992 | main () | ||
12993 | { | ||
12994 | |||
12995 | ; | ||
12996 | return 0; | ||
12997 | } | ||
12998 | _ACEOF | ||
12999 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13000 | ac_cv_prog_cxx_g=yes | ||
13001 | fi | ||
13002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13003 | fi | ||
13004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13005 | fi | ||
13006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13007 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13008 | fi | ||
13009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
13010 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
13011 | if test "$ac_test_CXXFLAGS" = set; then | ||
13012 | CXXFLAGS=$ac_save_CXXFLAGS | ||
13013 | elif test $ac_cv_prog_cxx_g = yes; then | ||
13014 | if test "$GXX" = yes; then | ||
13015 | CXXFLAGS="-g -O2" | ||
13016 | else | ||
13017 | CXXFLAGS="-g" | ||
13018 | fi | ||
13019 | else | ||
13020 | if test "$GXX" = yes; then | ||
13021 | CXXFLAGS="-O2" | ||
13022 | else | ||
13023 | CXXFLAGS= | ||
13024 | fi | ||
13025 | fi | ||
13026 | ac_ext=c | ||
13027 | ac_cpp='$CPP $CPPFLAGS' | ||
13028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13031 | |||
13032 | depcc="$CXX" am_compiler_list= | ||
13033 | |||
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13035 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13036 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
13037 | $as_echo_n "(cached) " >&6 | ||
13038 | else | ||
13039 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13040 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13041 | # making bogus files that we don't know about and never remove. For | ||
13042 | # instance it was reported that on HP-UX the gcc test will end up | ||
13043 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13044 | # in D'. | ||
13045 | mkdir conftest.dir | ||
13046 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13047 | # using a relative directory. | ||
13048 | cp "$am_depcomp" conftest.dir | ||
13049 | cd conftest.dir | ||
13050 | # We will build objects and dependencies in a subdirectory because | ||
13051 | # it helps to detect inapplicable dependency modes. For instance | ||
13052 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13053 | # side effect of compilation, but ICC will put the dependencies in | ||
13054 | # the current directory while Tru64 will put them in the object | ||
13055 | # directory. | ||
13056 | mkdir sub | ||
13057 | |||
13058 | am_cv_CXX_dependencies_compiler_type=none | ||
13059 | if test "$am_compiler_list" = ""; then | ||
13060 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13061 | fi | ||
13062 | am__universal=false | ||
13063 | case " $depcc " in #( | ||
13064 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13065 | esac | ||
13066 | |||
13067 | for depmode in $am_compiler_list; do | ||
13068 | # Setup a source with many dependencies, because some compilers | ||
13069 | # like to wrap large dependency lists on column 80 (with \), and | ||
13070 | # we should not choose a depcomp mode which is confused by this. | ||
13071 | # | ||
13072 | # We need to recreate these files for each test, as the compiler may | ||
13073 | # overwrite some of them when testing with obscure command lines. | ||
13074 | # This happens at least with the AIX C compiler. | ||
13075 | : > sub/conftest.c | ||
13076 | for i in 1 2 3 4 5 6; do | ||
13077 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13078 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13079 | # Solaris 8's {/usr,}/bin/sh. | ||
13080 | touch sub/conftst$i.h | ||
13081 | done | ||
13082 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13083 | |||
13084 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13085 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13086 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13087 | # versions had trouble with output in subdirs | ||
13088 | am__obj=sub/conftest.${OBJEXT-o} | ||
13089 | am__minus_obj="-o $am__obj" | ||
13090 | case $depmode in | ||
13091 | gcc) | ||
13092 | # This depmode causes a compiler race in universal mode. | ||
13093 | test "$am__universal" = false || continue | ||
13094 | ;; | ||
13095 | nosideeffect) | ||
13096 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13097 | # only be used when explicitly requested | ||
13098 | if test "x$enable_dependency_tracking" = xyes; then | ||
13099 | continue | ||
13100 | else | ||
13101 | break | ||
13102 | fi | ||
13103 | ;; | ||
13104 | msvisualcpp | msvcmsys) | ||
13105 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13106 | # not run yet. These depmodes are late enough in the game, and | ||
13107 | # so weak that their functioning should not be impacted. | ||
13108 | am__obj=conftest.${OBJEXT-o} | ||
13109 | am__minus_obj= | ||
13110 | ;; | ||
13111 | none) break ;; | ||
13112 | esac | ||
13113 | if depmode=$depmode \ | ||
13114 | source=sub/conftest.c object=$am__obj \ | ||
13115 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13116 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13117 | >/dev/null 2>conftest.err && | ||
13118 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13119 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13120 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13121 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13122 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13123 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13124 | # that says an option was ignored or not supported. | ||
13125 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13126 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13127 | # The diagnosis changed in icc 8.0: | ||
13128 | # icc: Command line remark: option '-MP' not supported | ||
13129 | if (grep 'ignoring option' conftest.err || | ||
13130 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13131 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
13132 | break | ||
13133 | fi | ||
13134 | fi | ||
13135 | done | ||
13136 | |||
13137 | cd .. | ||
13138 | rm -rf conftest.dir | ||
13139 | else | ||
13140 | am_cv_CXX_dependencies_compiler_type=none | ||
13141 | fi | ||
13142 | |||
13143 | fi | ||
13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
13145 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
13146 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
13147 | |||
13148 | if | ||
13149 | test "x$enable_dependency_tracking" != xno \ | ||
13150 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
13151 | am__fastdepCXX_TRUE= | ||
13152 | am__fastdepCXX_FALSE='#' | ||
13153 | else | ||
13154 | am__fastdepCXX_TRUE='#' | ||
13155 | am__fastdepCXX_FALSE= | ||
13156 | fi | ||
13157 | |||
13158 | |||
13159 | |||
13160 | ac_ext=cpp | ||
13161 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13162 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13163 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13164 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13165 | if test -z "$CXX"; then | ||
13166 | if test -n "$CCC"; then | ||
13167 | CXX=$CCC | ||
13168 | else | ||
13169 | if test -n "$ac_tool_prefix"; then | ||
13170 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13171 | do | ||
13172 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
13173 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13175 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13176 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
13177 | $as_echo_n "(cached) " >&6 | ||
13178 | else | ||
13179 | if test -n "$CXX"; then | ||
13180 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
13181 | else | ||
13182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13183 | for as_dir in $PATH | ||
13184 | do | ||
13185 | IFS=$as_save_IFS | ||
13186 | test -z "$as_dir" && as_dir=. | ||
13187 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13189 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
13190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13191 | break 2 | ||
13192 | fi | ||
13193 | done | ||
13194 | done | ||
13195 | IFS=$as_save_IFS | ||
13196 | |||
13197 | fi | ||
13198 | fi | ||
13199 | CXX=$ac_cv_prog_CXX | ||
13200 | if test -n "$CXX"; then | ||
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
13202 | $as_echo "$CXX" >&6; } | ||
13203 | else | ||
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13205 | $as_echo "no" >&6; } | ||
13206 | fi | ||
13207 | |||
13208 | |||
13209 | test -n "$CXX" && break | ||
13210 | done | ||
13211 | fi | ||
13212 | if test -z "$CXX"; then | ||
13213 | ac_ct_CXX=$CXX | ||
13214 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13215 | do | ||
13216 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
13217 | set dummy $ac_prog; ac_word=$2 | ||
13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13219 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13220 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
13221 | $as_echo_n "(cached) " >&6 | ||
13222 | else | ||
13223 | if test -n "$ac_ct_CXX"; then | ||
13224 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
13225 | else | ||
13226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13227 | for as_dir in $PATH | ||
13228 | do | ||
13229 | IFS=$as_save_IFS | ||
13230 | test -z "$as_dir" && as_dir=. | ||
13231 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13232 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13233 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
13234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13235 | break 2 | ||
13236 | fi | ||
13237 | done | ||
13238 | done | ||
13239 | IFS=$as_save_IFS | ||
13240 | |||
13241 | fi | ||
13242 | fi | ||
13243 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
13244 | if test -n "$ac_ct_CXX"; then | ||
13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
13246 | $as_echo "$ac_ct_CXX" >&6; } | ||
13247 | else | ||
13248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13249 | $as_echo "no" >&6; } | ||
13250 | fi | ||
13251 | |||
13252 | |||
13253 | test -n "$ac_ct_CXX" && break | ||
13254 | done | ||
13255 | |||
13256 | if test "x$ac_ct_CXX" = x; then | ||
13257 | CXX="g++" | ||
13258 | else | ||
13259 | case $cross_compiling:$ac_tool_warned in | ||
13260 | yes:) | ||
13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
13262 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
13263 | ac_tool_warned=yes ;; | ||
13264 | esac | ||
13265 | CXX=$ac_ct_CXX | ||
13266 | fi | ||
13267 | fi | ||
13268 | |||
13269 | fi | ||
13270 | fi | ||
13271 | # Provide some information about the compiler. | ||
13272 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
13273 | set X $ac_compile | ||
13274 | ac_compiler=$2 | ||
13275 | for ac_option in --version -v -V -qversion; do | ||
13276 | { { ac_try="$ac_compiler $ac_option >&5" | ||
13277 | case "(($ac_try" in | ||
13278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13279 | *) ac_try_echo=$ac_try;; | ||
13280 | esac | ||
13281 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13282 | $as_echo "$ac_try_echo"; } >&5 | ||
13283 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
13284 | ac_status=$? | ||
13285 | if test -s conftest.err; then | ||
13286 | sed '10a\ | ||
13287 | ... rest of stderr output deleted ... | ||
13288 | 10q' conftest.err >conftest.er1 | ||
13289 | cat conftest.er1 >&5 | ||
13290 | fi | ||
13291 | rm -f conftest.er1 conftest.err | ||
13292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13293 | test $ac_status = 0; } | ||
13294 | done | ||
13295 | |||
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
13297 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
13298 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
13299 | $as_echo_n "(cached) " >&6 | ||
13300 | else | ||
13301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13302 | /* end confdefs.h. */ | ||
13303 | |||
13304 | int | ||
13305 | main () | ||
13306 | { | ||
13307 | #ifndef __GNUC__ | ||
13308 | choke me | ||
13309 | #endif | ||
13310 | |||
13311 | ; | ||
13312 | return 0; | ||
13313 | } | ||
13314 | _ACEOF | ||
13315 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13316 | ac_compiler_gnu=yes | ||
13317 | else | ||
13318 | ac_compiler_gnu=no | ||
13319 | fi | ||
13320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13321 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
13322 | |||
13323 | fi | ||
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
13325 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
13326 | if test $ac_compiler_gnu = yes; then | ||
13327 | GXX=yes | ||
13328 | else | ||
13329 | GXX= | ||
13330 | fi | ||
13331 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
13332 | ac_save_CXXFLAGS=$CXXFLAGS | ||
13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
13334 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
13335 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
13336 | $as_echo_n "(cached) " >&6 | ||
13337 | else | ||
13338 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
13339 | ac_cxx_werror_flag=yes | ||
13340 | ac_cv_prog_cxx_g=no | ||
13341 | CXXFLAGS="-g" | ||
13342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13343 | /* end confdefs.h. */ | ||
13344 | |||
13345 | int | ||
13346 | main () | ||
13347 | { | ||
13348 | |||
13349 | ; | ||
13350 | return 0; | ||
13351 | } | ||
13352 | _ACEOF | ||
13353 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13354 | ac_cv_prog_cxx_g=yes | ||
13355 | else | ||
13356 | CXXFLAGS="" | ||
13357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13358 | /* end confdefs.h. */ | ||
13359 | |||
13360 | int | ||
13361 | main () | ||
13362 | { | ||
13363 | |||
13364 | ; | ||
13365 | return 0; | ||
13366 | } | ||
13367 | _ACEOF | ||
13368 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13369 | |||
13370 | else | ||
13371 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13372 | CXXFLAGS="-g" | ||
13373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13374 | /* end confdefs.h. */ | ||
13375 | |||
13376 | int | ||
13377 | main () | ||
13378 | { | ||
13379 | |||
13380 | ; | ||
13381 | return 0; | ||
13382 | } | ||
13383 | _ACEOF | ||
13384 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13385 | ac_cv_prog_cxx_g=yes | ||
13386 | fi | ||
13387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13388 | fi | ||
13389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13390 | fi | ||
13391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13392 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13393 | fi | ||
13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
13395 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
13396 | if test "$ac_test_CXXFLAGS" = set; then | ||
13397 | CXXFLAGS=$ac_save_CXXFLAGS | ||
13398 | elif test $ac_cv_prog_cxx_g = yes; then | ||
13399 | if test "$GXX" = yes; then | ||
13400 | CXXFLAGS="-g -O2" | ||
13401 | else | ||
13402 | CXXFLAGS="-g" | ||
13403 | fi | ||
13404 | else | ||
13405 | if test "$GXX" = yes; then | ||
13406 | CXXFLAGS="-O2" | ||
13407 | else | ||
13408 | CXXFLAGS= | ||
13409 | fi | ||
13410 | fi | ||
13411 | ac_ext=c | ||
13412 | ac_cpp='$CPP $CPPFLAGS' | ||
13413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13416 | |||
13417 | depcc="$CXX" am_compiler_list= | ||
13418 | |||
13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13420 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13421 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
13422 | $as_echo_n "(cached) " >&6 | ||
13423 | else | ||
13424 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13425 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13426 | # making bogus files that we don't know about and never remove. For | ||
13427 | # instance it was reported that on HP-UX the gcc test will end up | ||
13428 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13429 | # in D'. | ||
13430 | mkdir conftest.dir | ||
13431 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13432 | # using a relative directory. | ||
13433 | cp "$am_depcomp" conftest.dir | ||
13434 | cd conftest.dir | ||
13435 | # We will build objects and dependencies in a subdirectory because | ||
13436 | # it helps to detect inapplicable dependency modes. For instance | ||
13437 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13438 | # side effect of compilation, but ICC will put the dependencies in | ||
13439 | # the current directory while Tru64 will put them in the object | ||
13440 | # directory. | ||
13441 | mkdir sub | ||
13442 | |||
13443 | am_cv_CXX_dependencies_compiler_type=none | ||
13444 | if test "$am_compiler_list" = ""; then | ||
13445 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13446 | fi | ||
13447 | am__universal=false | ||
13448 | case " $depcc " in #( | ||
13449 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13450 | esac | ||
13451 | |||
13452 | for depmode in $am_compiler_list; do | ||
13453 | # Setup a source with many dependencies, because some compilers | ||
13454 | # like to wrap large dependency lists on column 80 (with \), and | ||
13455 | # we should not choose a depcomp mode which is confused by this. | ||
13456 | # | ||
13457 | # We need to recreate these files for each test, as the compiler may | ||
13458 | # overwrite some of them when testing with obscure command lines. | ||
13459 | # This happens at least with the AIX C compiler. | ||
13460 | : > sub/conftest.c | ||
13461 | for i in 1 2 3 4 5 6; do | ||
13462 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13463 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13464 | # Solaris 8's {/usr,}/bin/sh. | ||
13465 | touch sub/conftst$i.h | ||
13466 | done | ||
13467 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13468 | |||
13469 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13470 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13471 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13472 | # versions had trouble with output in subdirs | ||
13473 | am__obj=sub/conftest.${OBJEXT-o} | ||
13474 | am__minus_obj="-o $am__obj" | ||
13475 | case $depmode in | ||
13476 | gcc) | ||
13477 | # This depmode causes a compiler race in universal mode. | ||
13478 | test "$am__universal" = false || continue | ||
13479 | ;; | ||
13480 | nosideeffect) | ||
13481 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13482 | # only be used when explicitly requested | ||
13483 | if test "x$enable_dependency_tracking" = xyes; then | ||
13484 | continue | ||
13485 | else | ||
13486 | break | ||
13487 | fi | ||
13488 | ;; | ||
13489 | msvisualcpp | msvcmsys) | ||
13490 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13491 | # not run yet. These depmodes are late enough in the game, and | ||
13492 | # so weak that their functioning should not be impacted. | ||
13493 | am__obj=conftest.${OBJEXT-o} | ||
13494 | am__minus_obj= | ||
13495 | ;; | ||
13496 | none) break ;; | ||
13497 | esac | ||
13498 | if depmode=$depmode \ | ||
13499 | source=sub/conftest.c object=$am__obj \ | ||
13500 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13501 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13502 | >/dev/null 2>conftest.err && | ||
13503 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13504 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13505 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13506 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13507 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13508 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13509 | # that says an option was ignored or not supported. | ||
13510 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13511 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13512 | # The diagnosis changed in icc 8.0: | ||
13513 | # icc: Command line remark: option '-MP' not supported | ||
13514 | if (grep 'ignoring option' conftest.err || | ||
13515 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13516 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
13517 | break | ||
13518 | fi | ||
13519 | fi | ||
13520 | done | ||
13521 | |||
13522 | cd .. | ||
13523 | rm -rf conftest.dir | ||
13524 | else | ||
13525 | am_cv_CXX_dependencies_compiler_type=none | ||
13526 | fi | ||
13527 | |||
13528 | fi | ||
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
13530 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
13531 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
13532 | |||
13533 | if | ||
13534 | test "x$enable_dependency_tracking" != xno \ | ||
13535 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
13536 | am__fastdepCXX_TRUE= | ||
13537 | am__fastdepCXX_FALSE='#' | ||
13538 | else | ||
13539 | am__fastdepCXX_TRUE='#' | ||
13540 | am__fastdepCXX_FALSE= | ||
13541 | fi | ||
13542 | |||
13543 | |||
13544 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
13545 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
13546 | (test "X$CXX" != "Xg++"))) ; then | ||
13547 | ac_ext=cpp | ||
13548 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13549 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13550 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13551 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | ||
13553 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | ||
13554 | if test -z "$CXXCPP"; then | ||
13555 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | ||
13556 | $as_echo_n "(cached) " >&6 | ||
13557 | else | ||
13558 | # Double quotes because CXXCPP needs to be expanded | ||
13559 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
13560 | do | ||
13561 | ac_preproc_ok=false | ||
13562 | for ac_cxx_preproc_warn_flag in '' yes | ||
13563 | do | ||
13564 | # Use a header file that comes with gcc, so configuring glibc | ||
13565 | # with a fresh cross-compiler works. | ||
13566 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13567 | # <limits.h> exists even on freestanding compilers. | ||
13568 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
13569 | # not just through cpp. "Syntax error" is here to catch this case. | ||
13570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13571 | /* end confdefs.h. */ | ||
13572 | #ifdef __STDC__ | ||
13573 | # include <limits.h> | ||
13574 | #else | ||
13575 | # include <assert.h> | ||
13576 | #endif | ||
13577 | Syntax error | ||
13578 | _ACEOF | ||
13579 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13580 | |||
13581 | else | ||
13582 | # Broken: fails on valid input. | ||
13583 | continue | ||
13584 | fi | ||
13585 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13586 | |||
13587 | # OK, works on sane cases. Now check whether nonexistent headers | ||
13588 | # can be detected and how. | ||
13589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13590 | /* end confdefs.h. */ | ||
13591 | #include <ac_nonexistent.h> | ||
13592 | _ACEOF | ||
13593 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13594 | # Broken: success on invalid input. | ||
13595 | continue | ||
13596 | else | ||
13597 | # Passes both tests. | ||
13598 | ac_preproc_ok=: | ||
13599 | break | ||
13600 | fi | ||
13601 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13602 | |||
13603 | done | ||
13604 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
13605 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
13606 | if $ac_preproc_ok; then : | ||
13607 | break | ||
13608 | fi | ||
13609 | |||
13610 | done | ||
13611 | ac_cv_prog_CXXCPP=$CXXCPP | ||
13612 | |||
13613 | fi | ||
13614 | CXXCPP=$ac_cv_prog_CXXCPP | ||
13615 | else | ||
13616 | ac_cv_prog_CXXCPP=$CXXCPP | ||
13617 | fi | ||
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | ||
13619 | $as_echo "$CXXCPP" >&6; } | ||
13620 | ac_preproc_ok=false | ||
13621 | for ac_cxx_preproc_warn_flag in '' yes | ||
13622 | do | ||
13623 | # Use a header file that comes with gcc, so configuring glibc | ||
13624 | # with a fresh cross-compiler works. | ||
13625 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13626 | # <limits.h> exists even on freestanding compilers. | ||
13627 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
13628 | # not just through cpp. "Syntax error" is here to catch this case. | ||
13629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13630 | /* end confdefs.h. */ | ||
13631 | #ifdef __STDC__ | ||
13632 | # include <limits.h> | ||
13633 | #else | ||
13634 | # include <assert.h> | ||
13635 | #endif | ||
13636 | Syntax error | ||
13637 | _ACEOF | ||
13638 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13639 | |||
13640 | else | ||
13641 | # Broken: fails on valid input. | ||
13642 | continue | ||
13643 | fi | ||
13644 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13645 | |||
13646 | # OK, works on sane cases. Now check whether nonexistent headers | ||
13647 | # can be detected and how. | ||
13648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13649 | /* end confdefs.h. */ | ||
13650 | #include <ac_nonexistent.h> | ||
13651 | _ACEOF | ||
13652 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13653 | # Broken: success on invalid input. | ||
13654 | continue | ||
13655 | else | ||
13656 | # Passes both tests. | ||
13657 | ac_preproc_ok=: | ||
13658 | break | ||
13659 | fi | ||
13660 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13661 | |||
13662 | done | ||
13663 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
13664 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
13665 | if $ac_preproc_ok; then : | ||
13666 | |||
13667 | else | ||
13668 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
13669 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
13670 | _lt_caught_CXX_error=yes; } | ||
13671 | fi | ||
13672 | |||
13673 | ac_ext=c | ||
13674 | ac_cpp='$CPP $CPPFLAGS' | ||
13675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13678 | |||
13679 | else | ||
13680 | _lt_caught_CXX_error=yes | ||
13681 | fi | ||
13682 | |||
13683 | |||
13684 | |||
13685 | |||
13686 | ac_ext=cpp | ||
13687 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13688 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13689 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13690 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13691 | |||
13692 | archive_cmds_need_lc_CXX=no | ||
13693 | allow_undefined_flag_CXX= | ||
13694 | always_export_symbols_CXX=no | ||
13695 | archive_expsym_cmds_CXX= | ||
13696 | compiler_needs_object_CXX=no | ||
13697 | export_dynamic_flag_spec_CXX= | ||
13698 | hardcode_direct_CXX=no | ||
13699 | hardcode_direct_absolute_CXX=no | ||
13700 | hardcode_libdir_flag_spec_CXX= | ||
13701 | hardcode_libdir_flag_spec_ld_CXX= | ||
13702 | hardcode_libdir_separator_CXX= | ||
13703 | hardcode_minus_L_CXX=no | ||
13704 | hardcode_shlibpath_var_CXX=unsupported | ||
13705 | hardcode_automatic_CXX=no | ||
13706 | inherit_rpath_CXX=no | ||
13707 | module_cmds_CXX= | ||
13708 | module_expsym_cmds_CXX= | ||
13709 | link_all_deplibs_CXX=unknown | ||
13710 | old_archive_cmds_CXX=$old_archive_cmds | ||
13711 | no_undefined_flag_CXX= | ||
13712 | whole_archive_flag_spec_CXX= | ||
13713 | enable_shared_with_static_runtimes_CXX=no | ||
13714 | |||
13715 | # Source file extension for C++ test sources. | ||
13716 | ac_ext=cpp | ||
13717 | |||
13718 | # Object file extension for compiled C++ test sources. | ||
13719 | objext=o | ||
13720 | objext_CXX=$objext | ||
13721 | |||
13722 | # No sense in running all these tests if we already determined that | ||
13723 | # the CXX compiler isn't working. Some variables (like enable_shared) | ||
13724 | # are currently assumed to apply to all compilers on this platform, | ||
13725 | # and will be corrupted by setting them based on a non-working compiler. | ||
13726 | if test "$_lt_caught_CXX_error" != yes; then | ||
13727 | # Code to be used in simple compile tests | ||
13728 | lt_simple_compile_test_code="int some_variable = 0;" | ||
13729 | |||
13730 | # Code to be used in simple link tests | ||
13731 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | ||
13732 | |||
13733 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
13734 | |||
13735 | |||
13736 | |||
13737 | |||
13738 | |||
13739 | |||
13740 | # If no C compiler was specified, use CC. | ||
13741 | LTCC=${LTCC-"$CC"} | ||
13742 | |||
13743 | # If no C compiler flags were specified, use CFLAGS. | ||
13744 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
13745 | |||
13746 | # Allow CC to be a program name with arguments. | ||
13747 | compiler=$CC | ||
13748 | |||
13749 | |||
13750 | # save warnings/boilerplate of simple test code | ||
13751 | ac_outfile=conftest.$ac_objext | ||
13752 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
13753 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
13754 | _lt_compiler_boilerplate=`cat conftest.err` | ||
13755 | $RM conftest* | ||
13756 | |||
13757 | ac_outfile=conftest.$ac_objext | ||
13758 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
13759 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
13760 | _lt_linker_boilerplate=`cat conftest.err` | ||
13761 | $RM -r conftest* | ||
13762 | |||
13763 | |||
13764 | # Allow CC to be a program name with arguments. | ||
13765 | lt_save_CC=$CC | ||
13766 | lt_save_LD=$LD | ||
13767 | lt_save_GCC=$GCC | ||
13768 | GCC=$GXX | ||
13769 | lt_save_with_gnu_ld=$with_gnu_ld | ||
13770 | lt_save_path_LD=$lt_cv_path_LD | ||
13771 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
13772 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
13773 | else | ||
13774 | $as_unset lt_cv_prog_gnu_ld | ||
13775 | fi | ||
13776 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
13777 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
13778 | else | ||
13779 | $as_unset lt_cv_path_LD | ||
13780 | fi | ||
13781 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
13782 | CC=${CXX-"c++"} | ||
13783 | compiler=$CC | ||
13784 | compiler_CXX=$CC | ||
13785 | for cc_temp in $compiler""; do | ||
13786 | case $cc_temp in | ||
13787 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
13788 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
13789 | \-*) ;; | ||
13790 | *) break;; | ||
13791 | esac | ||
13792 | done | ||
13793 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
13794 | |||
13795 | |||
13796 | if test -n "$compiler"; then | ||
13797 | # We don't want -fno-exception when compiling C++ code, so set the | ||
13798 | # no_builtin_flag separately | ||
13799 | if test "$GXX" = yes; then | ||
13800 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
13801 | else | ||
13802 | lt_prog_compiler_no_builtin_flag_CXX= | ||
13803 | fi | ||
13804 | |||
13805 | if test "$GXX" = yes; then | ||
13806 | # Set up default GNU C++ configuration | ||
13807 | |||
13808 | |||
13809 | |||
13810 | # Check whether --with-gnu-ld was given. | ||
13811 | if test "${with_gnu_ld+set}" = set; then : | ||
13812 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
13813 | else | ||
13814 | with_gnu_ld=no | ||
13815 | fi | ||
13816 | |||
13817 | ac_prog=ld | ||
13818 | if test "$GCC" = yes; then | ||
13819 | # Check if gcc -print-prog-name=ld gives a path. | ||
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
13821 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
13822 | case $host in | ||
13823 | *-*-mingw*) | ||
13824 | # gcc leaves a trailing carriage return which upsets mingw | ||
13825 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
13826 | *) | ||
13827 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
13828 | esac | ||
13829 | case $ac_prog in | ||
13830 | # Accept absolute paths. | ||
13831 | [\\/]* | ?:[\\/]*) | ||
13832 | re_direlt='/[^/][^/]*/\.\./' | ||
13833 | # Canonicalize the pathname of ld | ||
13834 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
13835 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
13836 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
13837 | done | ||
13838 | test -z "$LD" && LD="$ac_prog" | ||
13839 | ;; | ||
13840 | "") | ||
13841 | # If it fails, then pretend we aren't using GCC. | ||
13842 | ac_prog=ld | ||
13843 | ;; | ||
13844 | *) | ||
13845 | # If it is relative, then search for the first ld in PATH. | ||
13846 | with_gnu_ld=unknown | ||
13847 | ;; | ||
13848 | esac | ||
13849 | elif test "$with_gnu_ld" = yes; then | ||
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
13851 | $as_echo_n "checking for GNU ld... " >&6; } | ||
13852 | else | ||
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
13854 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
13855 | fi | ||
13856 | if test "${lt_cv_path_LD+set}" = set; then : | ||
13857 | $as_echo_n "(cached) " >&6 | ||
13858 | else | ||
13859 | if test -z "$LD"; then | ||
13860 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
13861 | for ac_dir in $PATH; do | ||
13862 | IFS="$lt_save_ifs" | ||
13863 | test -z "$ac_dir" && ac_dir=. | ||
13864 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
13865 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
13866 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
13867 | # but apparently some variants of GNU ld only accept -v. | ||
13868 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
13869 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
13870 | *GNU* | *'with BFD'*) | ||
13871 | test "$with_gnu_ld" != no && break | ||
13872 | ;; | ||
13873 | *) | ||
13874 | test "$with_gnu_ld" != yes && break | ||
13875 | ;; | ||
13876 | esac | ||
13877 | fi | ||
13878 | done | ||
13879 | IFS="$lt_save_ifs" | ||
13880 | else | ||
13881 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
13882 | fi | ||
13883 | fi | ||
13884 | |||
13885 | LD="$lt_cv_path_LD" | ||
13886 | if test -n "$LD"; then | ||
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
13888 | $as_echo "$LD" >&6; } | ||
13889 | else | ||
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13891 | $as_echo "no" >&6; } | ||
13892 | fi | ||
13893 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
13895 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
13896 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
13897 | $as_echo_n "(cached) " >&6 | ||
13898 | else | ||
13899 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
13900 | case `$LD -v 2>&1 </dev/null` in | ||
13901 | *GNU* | *'with BFD'*) | ||
13902 | lt_cv_prog_gnu_ld=yes | ||
13903 | ;; | ||
13904 | *) | ||
13905 | lt_cv_prog_gnu_ld=no | ||
13906 | ;; | ||
13907 | esac | ||
13908 | fi | ||
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
13910 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
13911 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
13912 | |||
13913 | |||
13914 | |||
13915 | |||
13916 | |||
13917 | |||
13918 | |||
13919 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
13920 | # archiving commands below assume that GNU ld is being used. | ||
13921 | if test "$with_gnu_ld" = yes; then | ||
13922 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
13923 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
13924 | |||
13925 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
13926 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
13927 | |||
13928 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
13929 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
13930 | # investigate it a little bit more. (MM) | ||
13931 | wlarc='${wl}' | ||
13932 | |||
13933 | # ancient GNU ld didn't support --whole-archive et. al. | ||
13934 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | ||
13935 | $GREP 'no-whole-archive' > /dev/null; then | ||
13936 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
13937 | else | ||
13938 | whole_archive_flag_spec_CXX= | ||
13939 | fi | ||
13940 | else | ||
13941 | with_gnu_ld=no | ||
13942 | wlarc= | ||
13943 | |||
13944 | # A generic and very simple default shared library creation | ||
13945 | # command for GNU C++ for the case where it uses the native | ||
13946 | # linker, instead of GNU ld. If possible, this setting should | ||
13947 | # overridden to take advantage of the native linker features on | ||
13948 | # the platform it is being used on. | ||
13949 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
13950 | fi | ||
13951 | |||
13952 | # Commands to make compiler produce verbose output that lists | ||
13953 | # what "hidden" libraries, object files and flags are used when | ||
13954 | # linking a shared library. | ||
13955 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
13956 | |||
13957 | else | ||
13958 | GXX=no | ||
13959 | with_gnu_ld=no | ||
13960 | wlarc= | ||
13961 | fi | ||
13962 | |||
13963 | # PORTME: fill in a description of your system's C++ link characteristics | ||
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
13965 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
13966 | ld_shlibs_CXX=yes | ||
13967 | case $host_os in | ||
13968 | aix3*) | ||
13969 | # FIXME: insert proper C++ library support | ||
13970 | ld_shlibs_CXX=no | ||
13971 | ;; | ||
13972 | aix[4-9]*) | ||
13973 | if test "$host_cpu" = ia64; then | ||
13974 | # On IA64, the linker does run time linking by default, so we don't | ||
13975 | # have to do anything special. | ||
13976 | aix_use_runtimelinking=no | ||
13977 | exp_sym_flag='-Bexport' | ||
13978 | no_entry_flag="" | ||
13979 | else | ||
13980 | aix_use_runtimelinking=no | ||
13981 | |||
13982 | # Test if we are trying to use run time linking or normal | ||
13983 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
13984 | # need to do runtime linking. | ||
13985 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
13986 | for ld_flag in $LDFLAGS; do | ||
13987 | case $ld_flag in | ||
13988 | *-brtl*) | ||
13989 | aix_use_runtimelinking=yes | ||
13990 | break | ||
13991 | ;; | ||
13992 | esac | ||
13993 | done | ||
13994 | ;; | ||
13995 | esac | ||
13996 | |||
13997 | exp_sym_flag='-bexport' | ||
13998 | no_entry_flag='-bnoentry' | ||
13999 | fi | ||
14000 | |||
14001 | # When large executables or shared objects are built, AIX ld can | ||
14002 | # have problems creating the table of contents. If linking a library | ||
14003 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
14004 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
14005 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
14006 | |||
14007 | archive_cmds_CXX='' | ||
14008 | hardcode_direct_CXX=yes | ||
14009 | hardcode_direct_absolute_CXX=yes | ||
14010 | hardcode_libdir_separator_CXX=':' | ||
14011 | link_all_deplibs_CXX=yes | ||
14012 | file_list_spec_CXX='${wl}-f,' | ||
14013 | |||
14014 | if test "$GXX" = yes; then | ||
14015 | case $host_os in aix4.[012]|aix4.[012].*) | ||
14016 | # We only want to do this on AIX 4.2 and lower, the check | ||
14017 | # below for broken collect2 doesn't work under 4.3+ | ||
14018 | collect2name=`${CC} -print-prog-name=collect2` | ||
14019 | if test -f "$collect2name" && | ||
14020 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
14021 | then | ||
14022 | # We have reworked collect2 | ||
14023 | : | ||
14024 | else | ||
14025 | # We have old collect2 | ||
14026 | hardcode_direct_CXX=unsupported | ||
14027 | # It fails to find uninstalled libraries when the uninstalled | ||
14028 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
14029 | # to unsupported forces relinking | ||
14030 | hardcode_minus_L_CXX=yes | ||
14031 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
14032 | hardcode_libdir_separator_CXX= | ||
14033 | fi | ||
14034 | esac | ||
14035 | shared_flag='-shared' | ||
14036 | if test "$aix_use_runtimelinking" = yes; then | ||
14037 | shared_flag="$shared_flag "'${wl}-G' | ||
14038 | fi | ||
14039 | else | ||
14040 | # not using gcc | ||
14041 | if test "$host_cpu" = ia64; then | ||
14042 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
14043 | # chokes on -Wl,-G. The following line is correct: | ||
14044 | shared_flag='-G' | ||
14045 | else | ||
14046 | if test "$aix_use_runtimelinking" = yes; then | ||
14047 | shared_flag='${wl}-G' | ||
14048 | else | ||
14049 | shared_flag='${wl}-bM:SRE' | ||
14050 | fi | ||
14051 | fi | ||
14052 | fi | ||
14053 | |||
14054 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | ||
14055 | # It seems that -bexpall does not export symbols beginning with | ||
14056 | # underscore (_), so it is better to generate a list of symbols to | ||
14057 | # export. | ||
14058 | always_export_symbols_CXX=yes | ||
14059 | if test "$aix_use_runtimelinking" = yes; then | ||
14060 | # Warning - without using the other runtime loading flags (-brtl), | ||
14061 | # -berok will link without error, but may produce a broken library. | ||
14062 | allow_undefined_flag_CXX='-berok' | ||
14063 | # Determine the default libpath from the value encoded in an empty | ||
14064 | # executable. | ||
14065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14066 | /* end confdefs.h. */ | ||
14067 | |||
14068 | int | ||
14069 | main () | ||
14070 | { | ||
14071 | |||
14072 | ; | ||
14073 | return 0; | ||
14074 | } | ||
14075 | _ACEOF | ||
14076 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
14077 | |||
14078 | lt_aix_libpath_sed=' | ||
14079 | /Import File Strings/,/^$/ { | ||
14080 | /^0/ { | ||
14081 | s/^0 *\(.*\)$/\1/ | ||
14082 | p | ||
14083 | } | ||
14084 | }' | ||
14085 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14086 | # Check for a 64-bit object if we didn't find anything. | ||
14087 | if test -z "$aix_libpath"; then | ||
14088 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14089 | fi | ||
14090 | fi | ||
14091 | rm -f core conftest.err conftest.$ac_objext \ | ||
14092 | conftest$ac_exeext conftest.$ac_ext | ||
14093 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14094 | |||
14095 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14096 | |||
14097 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
14098 | else | ||
14099 | if test "$host_cpu" = ia64; then | ||
14100 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
14101 | allow_undefined_flag_CXX="-z nodefs" | ||
14102 | archive_expsym_cmds_CXX="\$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" | ||
14103 | else | ||
14104 | # Determine the default libpath from the value encoded in an | ||
14105 | # empty executable. | ||
14106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14107 | /* end confdefs.h. */ | ||
14108 | |||
14109 | int | ||
14110 | main () | ||
14111 | { | ||
14112 | |||
14113 | ; | ||
14114 | return 0; | ||
14115 | } | ||
14116 | _ACEOF | ||
14117 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
14118 | |||
14119 | lt_aix_libpath_sed=' | ||
14120 | /Import File Strings/,/^$/ { | ||
14121 | /^0/ { | ||
14122 | s/^0 *\(.*\)$/\1/ | ||
14123 | p | ||
14124 | } | ||
14125 | }' | ||
14126 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14127 | # Check for a 64-bit object if we didn't find anything. | ||
14128 | if test -z "$aix_libpath"; then | ||
14129 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14130 | fi | ||
14131 | fi | ||
14132 | rm -f core conftest.err conftest.$ac_objext \ | ||
14133 | conftest$ac_exeext conftest.$ac_ext | ||
14134 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14135 | |||
14136 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14137 | # Warning - without using the other run time loading flags, | ||
14138 | # -berok will link without error, but may produce a broken library. | ||
14139 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
14140 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
14141 | # Exported symbols can be pulled into shared objects from archives | ||
14142 | whole_archive_flag_spec_CXX='$convenience' | ||
14143 | archive_cmds_need_lc_CXX=yes | ||
14144 | # This is similar to how AIX traditionally builds its shared | ||
14145 | # libraries. | ||
14146 | archive_expsym_cmds_CXX="\$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' | ||
14147 | fi | ||
14148 | fi | ||
14149 | ;; | ||
14150 | |||
14151 | beos*) | ||
14152 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
14153 | allow_undefined_flag_CXX=unsupported | ||
14154 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
14155 | # support --undefined. This deserves some investigation. FIXME | ||
14156 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14157 | else | ||
14158 | ld_shlibs_CXX=no | ||
14159 | fi | ||
14160 | ;; | ||
14161 | |||
14162 | chorus*) | ||
14163 | case $cc_basename in | ||
14164 | *) | ||
14165 | # FIXME: insert proper C++ library support | ||
14166 | ld_shlibs_CXX=no | ||
14167 | ;; | ||
14168 | esac | ||
14169 | ;; | ||
14170 | |||
14171 | cygwin* | mingw* | pw32* | cegcc*) | ||
14172 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
14173 | # as there is no search path for DLLs. | ||
14174 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
14175 | allow_undefined_flag_CXX=unsupported | ||
14176 | always_export_symbols_CXX=no | ||
14177 | enable_shared_with_static_runtimes_CXX=yes | ||
14178 | |||
14179 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
14180 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
14181 | # If the export-symbols file already is a .def file (1st line | ||
14182 | # is EXPORTS), use it as is; otherwise, prepend... | ||
14183 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
14184 | cp $export_symbols $output_objdir/$soname.def; | ||
14185 | else | ||
14186 | echo EXPORTS > $output_objdir/$soname.def; | ||
14187 | cat $export_symbols >> $output_objdir/$soname.def; | ||
14188 | fi~ | ||
14189 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
14190 | else | ||
14191 | ld_shlibs_CXX=no | ||
14192 | fi | ||
14193 | ;; | ||
14194 | darwin* | rhapsody*) | ||
14195 | |||
14196 | |||
14197 | archive_cmds_need_lc_CXX=no | ||
14198 | hardcode_direct_CXX=no | ||
14199 | hardcode_automatic_CXX=yes | ||
14200 | hardcode_shlibpath_var_CXX=unsupported | ||
14201 | whole_archive_flag_spec_CXX='' | ||
14202 | link_all_deplibs_CXX=yes | ||
14203 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | ||
14204 | case $cc_basename in | ||
14205 | ifort*) _lt_dar_can_shared=yes ;; | ||
14206 | *) _lt_dar_can_shared=$GCC ;; | ||
14207 | esac | ||
14208 | if test "$_lt_dar_can_shared" = "yes"; then | ||
14209 | output_verbose_link_cmd=echo | ||
14210 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
14211 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
14212 | archive_expsym_cmds_CXX="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}" | ||
14213 | module_expsym_cmds_CXX="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}" | ||
14214 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
14215 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | ||
14216 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | ||
14217 | fi | ||
14218 | |||
14219 | else | ||
14220 | ld_shlibs_CXX=no | ||
14221 | fi | ||
14222 | |||
14223 | ;; | ||
14224 | |||
14225 | dgux*) | ||
14226 | case $cc_basename in | ||
14227 | ec++*) | ||
14228 | # FIXME: insert proper C++ library support | ||
14229 | ld_shlibs_CXX=no | ||
14230 | ;; | ||
14231 | ghcx*) | ||
14232 | # Green Hills C++ Compiler | ||
14233 | # FIXME: insert proper C++ library support | ||
14234 | ld_shlibs_CXX=no | ||
14235 | ;; | ||
14236 | *) | ||
14237 | # FIXME: insert proper C++ library support | ||
14238 | ld_shlibs_CXX=no | ||
14239 | ;; | ||
14240 | esac | ||
14241 | ;; | ||
14242 | |||
14243 | freebsd[12]*) | ||
14244 | # C++ shared libraries reported to be fairly broken before | ||
14245 | # switch to ELF | ||
14246 | ld_shlibs_CXX=no | ||
14247 | ;; | ||
14248 | |||
14249 | freebsd-elf*) | ||
14250 | archive_cmds_need_lc_CXX=no | ||
14251 | ;; | ||
14252 | |||
14253 | freebsd* | dragonfly*) | ||
14254 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
14255 | # conventions | ||
14256 | ld_shlibs_CXX=yes | ||
14257 | ;; | ||
14258 | |||
14259 | gnu*) | ||
14260 | ;; | ||
14261 | |||
14262 | hpux9*) | ||
14263 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
14264 | hardcode_libdir_separator_CXX=: | ||
14265 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14266 | hardcode_direct_CXX=yes | ||
14267 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
14268 | # but as the default | ||
14269 | # location of the library. | ||
14270 | |||
14271 | case $cc_basename in | ||
14272 | CC*) | ||
14273 | # FIXME: insert proper C++ library support | ||
14274 | ld_shlibs_CXX=no | ||
14275 | ;; | ||
14276 | aCC*) | ||
14277 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
14278 | # Commands to make compiler produce verbose output that lists | ||
14279 | # what "hidden" libraries, object files and flags are used when | ||
14280 | # linking a shared library. | ||
14281 | # | ||
14282 | # There doesn't appear to be a way to prevent this compiler from | ||
14283 | # explicitly linking system object files so we need to strip them | ||
14284 | # from the output so that they don't get included in the library | ||
14285 | # dependencies. | ||
14286 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
14287 | ;; | ||
14288 | *) | ||
14289 | if test "$GXX" = yes; then | ||
14290 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
14291 | else | ||
14292 | # FIXME: insert proper C++ library support | ||
14293 | ld_shlibs_CXX=no | ||
14294 | fi | ||
14295 | ;; | ||
14296 | esac | ||
14297 | ;; | ||
14298 | |||
14299 | hpux10*|hpux11*) | ||
14300 | if test $with_gnu_ld = no; then | ||
14301 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
14302 | hardcode_libdir_separator_CXX=: | ||
14303 | |||
14304 | case $host_cpu in | ||
14305 | hppa*64*|ia64*) | ||
14306 | ;; | ||
14307 | *) | ||
14308 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14309 | ;; | ||
14310 | esac | ||
14311 | fi | ||
14312 | case $host_cpu in | ||
14313 | hppa*64*|ia64*) | ||
14314 | hardcode_direct_CXX=no | ||
14315 | hardcode_shlibpath_var_CXX=no | ||
14316 | ;; | ||
14317 | *) | ||
14318 | hardcode_direct_CXX=yes | ||
14319 | hardcode_direct_absolute_CXX=yes | ||
14320 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
14321 | # but as the default | ||
14322 | # location of the library. | ||
14323 | ;; | ||
14324 | esac | ||
14325 | |||
14326 | case $cc_basename in | ||
14327 | CC*) | ||
14328 | # FIXME: insert proper C++ library support | ||
14329 | ld_shlibs_CXX=no | ||
14330 | ;; | ||
14331 | aCC*) | ||
14332 | case $host_cpu in | ||
14333 | hppa*64*) | ||
14334 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14335 | ;; | ||
14336 | ia64*) | ||
14337 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14338 | ;; | ||
14339 | *) | ||
14340 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14341 | ;; | ||
14342 | esac | ||
14343 | # Commands to make compiler produce verbose output that lists | ||
14344 | # what "hidden" libraries, object files and flags are used when | ||
14345 | # linking a shared library. | ||
14346 | # | ||
14347 | # There doesn't appear to be a way to prevent this compiler from | ||
14348 | # explicitly linking system object files so we need to strip them | ||
14349 | # from the output so that they don't get included in the library | ||
14350 | # dependencies. | ||
14351 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
14352 | ;; | ||
14353 | *) | ||
14354 | if test "$GXX" = yes; then | ||
14355 | if test $with_gnu_ld = no; then | ||
14356 | case $host_cpu in | ||
14357 | hppa*64*) | ||
14358 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14359 | ;; | ||
14360 | ia64*) | ||
14361 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14362 | ;; | ||
14363 | *) | ||
14364 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14365 | ;; | ||
14366 | esac | ||
14367 | fi | ||
14368 | else | ||
14369 | # FIXME: insert proper C++ library support | ||
14370 | ld_shlibs_CXX=no | ||
14371 | fi | ||
14372 | ;; | ||
14373 | esac | ||
14374 | ;; | ||
14375 | |||
14376 | interix[3-9]*) | ||
14377 | hardcode_direct_CXX=no | ||
14378 | hardcode_shlibpath_var_CXX=no | ||
14379 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14380 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14381 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
14382 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
14383 | # default) and relocated if they conflict, which is a slow very memory | ||
14384 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
14385 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
14386 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
14387 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
14388 | archive_expsym_cmds_CXX='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' | ||
14389 | ;; | ||
14390 | irix5* | irix6*) | ||
14391 | case $cc_basename in | ||
14392 | CC*) | ||
14393 | # SGI C++ | ||
14394 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
14395 | |||
14396 | # Archives containing C++ object files must be created using | ||
14397 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
14398 | # necessary to make sure instantiated templates are included | ||
14399 | # in the archive. | ||
14400 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
14401 | ;; | ||
14402 | *) | ||
14403 | if test "$GXX" = yes; then | ||
14404 | if test "$with_gnu_ld" = no; then | ||
14405 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
14406 | else | ||
14407 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | ||
14408 | fi | ||
14409 | fi | ||
14410 | link_all_deplibs_CXX=yes | ||
14411 | ;; | ||
14412 | esac | ||
14413 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14414 | hardcode_libdir_separator_CXX=: | ||
14415 | inherit_rpath_CXX=yes | ||
14416 | ;; | ||
14417 | |||
14418 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
14419 | case $cc_basename in | ||
14420 | KCC*) | ||
14421 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
14422 | |||
14423 | # KCC will only create a shared library if the output file | ||
14424 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
14425 | # to its proper name (with version) after linking. | ||
14426 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
14427 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | ||
14428 | # Commands to make compiler produce verbose output that lists | ||
14429 | # what "hidden" libraries, object files and flags are used when | ||
14430 | # linking a shared library. | ||
14431 | # | ||
14432 | # There doesn't appear to be a way to prevent this compiler from | ||
14433 | # explicitly linking system object files so we need to strip them | ||
14434 | # from the output so that they don't get included in the library | ||
14435 | # dependencies. | ||
14436 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
14437 | |||
14438 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14439 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14440 | |||
14441 | # Archives containing C++ object files must be created using | ||
14442 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
14443 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
14444 | ;; | ||
14445 | icpc* | ecpc* ) | ||
14446 | # Intel C++ | ||
14447 | with_gnu_ld=yes | ||
14448 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
14449 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
14450 | # earlier do not add the objects themselves. | ||
14451 | case `$CC -V 2>&1` in | ||
14452 | *"Version 7."*) | ||
14453 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14454 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14455 | ;; | ||
14456 | *) # Version 8.0 or newer | ||
14457 | tmp_idyn= | ||
14458 | case $host_cpu in | ||
14459 | ia64*) tmp_idyn=' -i_dynamic';; | ||
14460 | esac | ||
14461 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14462 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14463 | ;; | ||
14464 | esac | ||
14465 | archive_cmds_need_lc_CXX=no | ||
14466 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14467 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14468 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
14469 | ;; | ||
14470 | pgCC* | pgcpp*) | ||
14471 | # Portland Group C++ compiler | ||
14472 | case `$CC -V` in | ||
14473 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | ||
14474 | prelink_cmds_CXX='tpldir=Template.dir~ | ||
14475 | rm -rf $tpldir~ | ||
14476 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
14477 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
14478 | old_archive_cmds_CXX='tpldir=Template.dir~ | ||
14479 | rm -rf $tpldir~ | ||
14480 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
14481 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
14482 | $RANLIB $oldlib' | ||
14483 | archive_cmds_CXX='tpldir=Template.dir~ | ||
14484 | rm -rf $tpldir~ | ||
14485 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
14486 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
14487 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | ||
14488 | rm -rf $tpldir~ | ||
14489 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
14490 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
14491 | ;; | ||
14492 | *) # Version 6 will use weak symbols | ||
14493 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
14494 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
14495 | ;; | ||
14496 | esac | ||
14497 | |||
14498 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
14499 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14500 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
14501 | ;; | ||
14502 | cxx*) | ||
14503 | # Compaq C++ | ||
14504 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14505 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | ||
14506 | |||
14507 | runpath_var=LD_RUN_PATH | ||
14508 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
14509 | hardcode_libdir_separator_CXX=: | ||
14510 | |||
14511 | # Commands to make compiler produce verbose output that lists | ||
14512 | # what "hidden" libraries, object files and flags are used when | ||
14513 | # linking a shared library. | ||
14514 | # | ||
14515 | # There doesn't appear to be a way to prevent this compiler from | ||
14516 | # explicitly linking system object files so we need to strip them | ||
14517 | # from the output so that they don't get included in the library | ||
14518 | # dependencies. | ||
14519 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
14520 | ;; | ||
14521 | xl*) | ||
14522 | # IBM XL 8.0 on PPC, with GNU ld | ||
14523 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14524 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14525 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14526 | if test "x$supports_anon_versioning" = xyes; then | ||
14527 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | ||
14528 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
14529 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
14530 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
14531 | fi | ||
14532 | ;; | ||
14533 | *) | ||
14534 | case `$CC -V 2>&1 | sed 5q` in | ||
14535 | *Sun\ C*) | ||
14536 | # Sun C++ 5.9 | ||
14537 | no_undefined_flag_CXX=' -zdefs' | ||
14538 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14539 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | ||
14540 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
14541 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
14542 | compiler_needs_object_CXX=yes | ||
14543 | |||
14544 | # Not sure whether something based on | ||
14545 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | ||
14546 | # would be better. | ||
14547 | output_verbose_link_cmd='echo' | ||
14548 | |||
14549 | # Archives containing C++ object files must be created using | ||
14550 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
14551 | # necessary to make sure instantiated templates are included | ||
14552 | # in the archive. | ||
14553 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
14554 | ;; | ||
14555 | esac | ||
14556 | ;; | ||
14557 | esac | ||
14558 | ;; | ||
14559 | |||
14560 | lynxos*) | ||
14561 | # FIXME: insert proper C++ library support | ||
14562 | ld_shlibs_CXX=no | ||
14563 | ;; | ||
14564 | |||
14565 | m88k*) | ||
14566 | # FIXME: insert proper C++ library support | ||
14567 | ld_shlibs_CXX=no | ||
14568 | ;; | ||
14569 | |||
14570 | mvs*) | ||
14571 | case $cc_basename in | ||
14572 | cxx*) | ||
14573 | # FIXME: insert proper C++ library support | ||
14574 | ld_shlibs_CXX=no | ||
14575 | ;; | ||
14576 | *) | ||
14577 | # FIXME: insert proper C++ library support | ||
14578 | ld_shlibs_CXX=no | ||
14579 | ;; | ||
14580 | esac | ||
14581 | ;; | ||
14582 | |||
14583 | netbsd*) | ||
14584 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
14585 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
14586 | wlarc= | ||
14587 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
14588 | hardcode_direct_CXX=yes | ||
14589 | hardcode_shlibpath_var_CXX=no | ||
14590 | fi | ||
14591 | # Workaround some broken pre-1.5 toolchains | ||
14592 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
14593 | ;; | ||
14594 | |||
14595 | *nto* | *qnx*) | ||
14596 | ld_shlibs_CXX=yes | ||
14597 | ;; | ||
14598 | |||
14599 | openbsd2*) | ||
14600 | # C++ shared libraries are fairly broken | ||
14601 | ld_shlibs_CXX=no | ||
14602 | ;; | ||
14603 | |||
14604 | openbsd*) | ||
14605 | if test -f /usr/libexec/ld.so; then | ||
14606 | hardcode_direct_CXX=yes | ||
14607 | hardcode_shlibpath_var_CXX=no | ||
14608 | hardcode_direct_absolute_CXX=yes | ||
14609 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
14610 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14611 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
14612 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
14613 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14614 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
14615 | fi | ||
14616 | output_verbose_link_cmd=echo | ||
14617 | else | ||
14618 | ld_shlibs_CXX=no | ||
14619 | fi | ||
14620 | ;; | ||
14621 | |||
14622 | osf3* | osf4* | osf5*) | ||
14623 | case $cc_basename in | ||
14624 | KCC*) | ||
14625 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
14626 | |||
14627 | # KCC will only create a shared library if the output file | ||
14628 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
14629 | # to its proper name (with version) after linking. | ||
14630 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
14631 | |||
14632 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14633 | hardcode_libdir_separator_CXX=: | ||
14634 | |||
14635 | # Archives containing C++ object files must be created using | ||
14636 | # the KAI C++ compiler. | ||
14637 | case $host in | ||
14638 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | ||
14639 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | ||
14640 | esac | ||
14641 | ;; | ||
14642 | RCC*) | ||
14643 | # Rational C++ 2.4.1 | ||
14644 | # FIXME: insert proper C++ library support | ||
14645 | ld_shlibs_CXX=no | ||
14646 | ;; | ||
14647 | cxx*) | ||
14648 | case $host in | ||
14649 | osf3*) | ||
14650 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
14651 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
14652 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14653 | ;; | ||
14654 | *) | ||
14655 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
14656 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
14657 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
14658 | echo "-hidden">> $lib.exp~ | ||
14659 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | ||
14660 | $RM $lib.exp' | ||
14661 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
14662 | ;; | ||
14663 | esac | ||
14664 | |||
14665 | hardcode_libdir_separator_CXX=: | ||
14666 | |||
14667 | # Commands to make compiler produce verbose output that lists | ||
14668 | # what "hidden" libraries, object files and flags are used when | ||
14669 | # linking a shared library. | ||
14670 | # | ||
14671 | # There doesn't appear to be a way to prevent this compiler from | ||
14672 | # explicitly linking system object files so we need to strip them | ||
14673 | # from the output so that they don't get included in the library | ||
14674 | # dependencies. | ||
14675 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
14676 | ;; | ||
14677 | *) | ||
14678 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
14679 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
14680 | case $host in | ||
14681 | osf3*) | ||
14682 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
14683 | ;; | ||
14684 | *) | ||
14685 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
14686 | ;; | ||
14687 | esac | ||
14688 | |||
14689 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14690 | hardcode_libdir_separator_CXX=: | ||
14691 | |||
14692 | # Commands to make compiler produce verbose output that lists | ||
14693 | # what "hidden" libraries, object files and flags are used when | ||
14694 | # linking a shared library. | ||
14695 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
14696 | |||
14697 | else | ||
14698 | # FIXME: insert proper C++ library support | ||
14699 | ld_shlibs_CXX=no | ||
14700 | fi | ||
14701 | ;; | ||
14702 | esac | ||
14703 | ;; | ||
14704 | |||
14705 | psos*) | ||
14706 | # FIXME: insert proper C++ library support | ||
14707 | ld_shlibs_CXX=no | ||
14708 | ;; | ||
14709 | |||
14710 | sunos4*) | ||
14711 | case $cc_basename in | ||
14712 | CC*) | ||
14713 | # Sun C++ 4.x | ||
14714 | # FIXME: insert proper C++ library support | ||
14715 | ld_shlibs_CXX=no | ||
14716 | ;; | ||
14717 | lcc*) | ||
14718 | # Lucid | ||
14719 | # FIXME: insert proper C++ library support | ||
14720 | ld_shlibs_CXX=no | ||
14721 | ;; | ||
14722 | *) | ||
14723 | # FIXME: insert proper C++ library support | ||
14724 | ld_shlibs_CXX=no | ||
14725 | ;; | ||
14726 | esac | ||
14727 | ;; | ||
14728 | |||
14729 | solaris*) | ||
14730 | case $cc_basename in | ||
14731 | CC*) | ||
14732 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
14733 | archive_cmds_need_lc_CXX=yes | ||
14734 | no_undefined_flag_CXX=' -zdefs' | ||
14735 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14736 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
14737 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
14738 | |||
14739 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
14740 | hardcode_shlibpath_var_CXX=no | ||
14741 | case $host_os in | ||
14742 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
14743 | *) | ||
14744 | # The compiler driver will combine and reorder linker options, | ||
14745 | # but understands `-z linker_flag'. | ||
14746 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
14747 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | ||
14748 | ;; | ||
14749 | esac | ||
14750 | link_all_deplibs_CXX=yes | ||
14751 | |||
14752 | output_verbose_link_cmd='echo' | ||
14753 | |||
14754 | # Archives containing C++ object files must be created using | ||
14755 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
14756 | # necessary to make sure instantiated templates are included | ||
14757 | # in the archive. | ||
14758 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
14759 | ;; | ||
14760 | gcx*) | ||
14761 | # Green Hills C++ Compiler | ||
14762 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
14763 | |||
14764 | # The C++ compiler must be used to create the archive. | ||
14765 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
14766 | ;; | ||
14767 | *) | ||
14768 | # GNU C++ compiler with Solaris linker | ||
14769 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
14770 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
14771 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
14772 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
14773 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
14774 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
14775 | |||
14776 | # Commands to make compiler produce verbose output that lists | ||
14777 | # what "hidden" libraries, object files and flags are used when | ||
14778 | # linking a shared library. | ||
14779 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
14780 | else | ||
14781 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
14782 | # platform. | ||
14783 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
14784 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
14785 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
14786 | |||
14787 | # Commands to make compiler produce verbose output that lists | ||
14788 | # what "hidden" libraries, object files and flags are used when | ||
14789 | # linking a shared library. | ||
14790 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
14791 | fi | ||
14792 | |||
14793 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
14794 | case $host_os in | ||
14795 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
14796 | *) | ||
14797 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
14798 | ;; | ||
14799 | esac | ||
14800 | fi | ||
14801 | ;; | ||
14802 | esac | ||
14803 | ;; | ||
14804 | |||
14805 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
14806 | no_undefined_flag_CXX='${wl}-z,text' | ||
14807 | archive_cmds_need_lc_CXX=no | ||
14808 | hardcode_shlibpath_var_CXX=no | ||
14809 | runpath_var='LD_RUN_PATH' | ||
14810 | |||
14811 | case $cc_basename in | ||
14812 | CC*) | ||
14813 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14814 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14815 | ;; | ||
14816 | *) | ||
14817 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14818 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14819 | ;; | ||
14820 | esac | ||
14821 | ;; | ||
14822 | |||
14823 | sysv5* | sco3.2v5* | sco5v6*) | ||
14824 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
14825 | # link with -lc, and that would cause any symbols used from libc to | ||
14826 | # always be unresolved, which means just about no library would | ||
14827 | # ever link correctly. If we're not using GNU ld we use -z text | ||
14828 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
14829 | # as -z defs. | ||
14830 | no_undefined_flag_CXX='${wl}-z,text' | ||
14831 | allow_undefined_flag_CXX='${wl}-z,nodefs' | ||
14832 | archive_cmds_need_lc_CXX=no | ||
14833 | hardcode_shlibpath_var_CXX=no | ||
14834 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | ||
14835 | hardcode_libdir_separator_CXX=':' | ||
14836 | link_all_deplibs_CXX=yes | ||
14837 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | ||
14838 | runpath_var='LD_RUN_PATH' | ||
14839 | |||
14840 | case $cc_basename in | ||
14841 | CC*) | ||
14842 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14843 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14844 | ;; | ||
14845 | *) | ||
14846 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14847 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14848 | ;; | ||
14849 | esac | ||
14850 | ;; | ||
14851 | |||
14852 | tandem*) | ||
14853 | case $cc_basename in | ||
14854 | NCC*) | ||
14855 | # NonStop-UX NCC 3.20 | ||
14856 | # FIXME: insert proper C++ library support | ||
14857 | ld_shlibs_CXX=no | ||
14858 | ;; | ||
14859 | *) | ||
14860 | # FIXME: insert proper C++ library support | ||
14861 | ld_shlibs_CXX=no | ||
14862 | ;; | ||
14863 | esac | ||
14864 | ;; | ||
14865 | |||
14866 | vxworks*) | ||
14867 | # FIXME: insert proper C++ library support | ||
14868 | ld_shlibs_CXX=no | ||
14869 | ;; | ||
14870 | |||
14871 | *) | ||
14872 | # FIXME: insert proper C++ library support | ||
14873 | ld_shlibs_CXX=no | ||
14874 | ;; | ||
14875 | esac | ||
14876 | |||
14877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
14878 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
14879 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
14880 | |||
14881 | GCC_CXX="$GXX" | ||
14882 | LD_CXX="$LD" | ||
14883 | |||
14884 | ## CAVEAT EMPTOR: | ||
14885 | ## There is no encapsulation within the following macros, do not change | ||
14886 | ## the running order or otherwise move them around unless you know exactly | ||
14887 | ## what you are doing... | ||
14888 | # Dependencies to place before and after the object being linked: | ||
14889 | predep_objects_CXX= | ||
14890 | postdep_objects_CXX= | ||
14891 | predeps_CXX= | ||
14892 | postdeps_CXX= | ||
14893 | compiler_lib_search_path_CXX= | ||
14894 | |||
14895 | cat > conftest.$ac_ext <<_LT_EOF | ||
14896 | class Foo | ||
14897 | { | ||
14898 | public: | ||
14899 | Foo (void) { a = 0; } | ||
14900 | private: | ||
14901 | int a; | ||
14902 | }; | ||
14903 | _LT_EOF | ||
14904 | |||
14905 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
14906 | (eval $ac_compile) 2>&5 | ||
14907 | ac_status=$? | ||
14908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14909 | test $ac_status = 0; }; then | ||
14910 | # Parse the compiler output and extract the necessary | ||
14911 | # objects, libraries and library flags. | ||
14912 | |||
14913 | # Sentinel used to keep track of whether or not we are before | ||
14914 | # the conftest object file. | ||
14915 | pre_test_object_deps_done=no | ||
14916 | |||
14917 | for p in `eval "$output_verbose_link_cmd"`; do | ||
14918 | case $p in | ||
14919 | |||
14920 | -L* | -R* | -l*) | ||
14921 | # Some compilers place space between "-{L,R}" and the path. | ||
14922 | # Remove the space. | ||
14923 | if test $p = "-L" || | ||
14924 | test $p = "-R"; then | ||
14925 | prev=$p | ||
14926 | continue | ||
14927 | else | ||
14928 | prev= | ||
14929 | fi | ||
14930 | |||
14931 | if test "$pre_test_object_deps_done" = no; then | ||
14932 | case $p in | ||
14933 | -L* | -R*) | ||
14934 | # Internal compiler library paths should come after those | ||
14935 | # provided the user. The postdeps already come after the | ||
14936 | # user supplied libs so there is no need to process them. | ||
14937 | if test -z "$compiler_lib_search_path_CXX"; then | ||
14938 | compiler_lib_search_path_CXX="${prev}${p}" | ||
14939 | else | ||
14940 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
14941 | fi | ||
14942 | ;; | ||
14943 | # The "-l" case would never come before the object being | ||
14944 | # linked, so don't bother handling this case. | ||
14945 | esac | ||
14946 | else | ||
14947 | if test -z "$postdeps_CXX"; then | ||
14948 | postdeps_CXX="${prev}${p}" | ||
14949 | else | ||
14950 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
14951 | fi | ||
14952 | fi | ||
14953 | ;; | ||
14954 | |||
14955 | *.$objext) | ||
14956 | # This assumes that the test object file only shows up | ||
14957 | # once in the compiler output. | ||
14958 | if test "$p" = "conftest.$objext"; then | ||
14959 | pre_test_object_deps_done=yes | ||
14960 | continue | ||
14961 | fi | ||
14962 | |||
14963 | if test "$pre_test_object_deps_done" = no; then | ||
14964 | if test -z "$predep_objects_CXX"; then | ||
14965 | predep_objects_CXX="$p" | ||
14966 | else | ||
14967 | predep_objects_CXX="$predep_objects_CXX $p" | ||
14968 | fi | ||
14969 | else | ||
14970 | if test -z "$postdep_objects_CXX"; then | ||
14971 | postdep_objects_CXX="$p" | ||
14972 | else | ||
14973 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
14974 | fi | ||
14975 | fi | ||
14976 | ;; | ||
14977 | |||
14978 | *) ;; # Ignore the rest. | ||
14979 | |||
14980 | esac | ||
14981 | done | ||
14982 | |||
14983 | # Clean up. | ||
14984 | rm -f a.out a.exe | ||
14985 | else | ||
14986 | echo "libtool.m4: error: problem compiling CXX test program" | ||
14987 | fi | ||
14988 | |||
14989 | $RM -f confest.$objext | ||
14990 | |||
14991 | # PORTME: override above test on systems where it is broken | ||
14992 | case $host_os in | ||
14993 | interix[3-9]*) | ||
14994 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
14995 | # hack all around it, let's just trust "g++" to DTRT. | ||
14996 | predep_objects_CXX= | ||
14997 | postdep_objects_CXX= | ||
14998 | postdeps_CXX= | ||
14999 | ;; | ||
15000 | |||
15001 | linux*) | ||
15002 | case `$CC -V 2>&1 | sed 5q` in | ||
15003 | *Sun\ C*) | ||
15004 | # Sun C++ 5.9 | ||
15005 | |||
15006 | # The more standards-conforming stlport4 library is | ||
15007 | # incompatible with the Cstd library. Avoid specifying | ||
15008 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
15009 | # -library=stlport4 depends on it. | ||
15010 | case " $CXX $CXXFLAGS " in | ||
15011 | *" -library=stlport4 "*) | ||
15012 | solaris_use_stlport4=yes | ||
15013 | ;; | ||
15014 | esac | ||
15015 | |||
15016 | if test "$solaris_use_stlport4" != yes; then | ||
15017 | postdeps_CXX='-library=Cstd -library=Crun' | ||
15018 | fi | ||
15019 | ;; | ||
15020 | esac | ||
15021 | ;; | ||
15022 | |||
15023 | solaris*) | ||
15024 | case $cc_basename in | ||
15025 | CC*) | ||
15026 | # The more standards-conforming stlport4 library is | ||
15027 | # incompatible with the Cstd library. Avoid specifying | ||
15028 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
15029 | # -library=stlport4 depends on it. | ||
15030 | case " $CXX $CXXFLAGS " in | ||
15031 | *" -library=stlport4 "*) | ||
15032 | solaris_use_stlport4=yes | ||
15033 | ;; | ||
15034 | esac | ||
15035 | |||
15036 | # Adding this requires a known-good setup of shared libraries for | ||
15037 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
15038 | # archive will be linked into the output, leading to subtle bugs. | ||
15039 | if test "$solaris_use_stlport4" != yes; then | ||
15040 | postdeps_CXX='-library=Cstd -library=Crun' | ||
15041 | fi | ||
15042 | ;; | ||
15043 | esac | ||
15044 | ;; | ||
15045 | esac | ||
15046 | |||
15047 | |||
15048 | case " $postdeps_CXX " in | ||
15049 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
15050 | esac | ||
15051 | compiler_lib_search_dirs_CXX= | ||
15052 | if test -n "${compiler_lib_search_path_CXX}"; then | ||
15053 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | ||
15054 | fi | ||
15055 | |||
15056 | |||
15057 | |||
15058 | |||
15059 | |||
15060 | |||
15061 | |||
15062 | |||
15063 | |||
15064 | |||
15065 | |||
15066 | |||
15067 | |||
15068 | |||
15069 | |||
15070 | |||
15071 | |||
15072 | |||
15073 | |||
15074 | |||
15075 | |||
15076 | |||
15077 | |||
15078 | |||
15079 | |||
15080 | |||
15081 | |||
15082 | |||
15083 | |||
15084 | |||
15085 | |||
15086 | lt_prog_compiler_wl_CXX= | ||
15087 | lt_prog_compiler_pic_CXX= | ||
15088 | lt_prog_compiler_static_CXX= | ||
15089 | |||
15090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
15091 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
15092 | |||
15093 | # C++ specific cases for pic, static, wl, etc. | ||
15094 | if test "$GXX" = yes; then | ||
15095 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15096 | lt_prog_compiler_static_CXX='-static' | ||
15097 | |||
15098 | case $host_os in | ||
15099 | aix*) | ||
15100 | # All AIX code is PIC. | ||
15101 | if test "$host_cpu" = ia64; then | ||
15102 | # AIX 5 now supports IA64 processor | ||
15103 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15104 | fi | ||
15105 | ;; | ||
15106 | |||
15107 | amigaos*) | ||
15108 | case $host_cpu in | ||
15109 | powerpc) | ||
15110 | # see comment about AmigaOS4 .so support | ||
15111 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15112 | ;; | ||
15113 | m68k) | ||
15114 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
15115 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
15116 | # like `-m68040'. | ||
15117 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
15118 | ;; | ||
15119 | esac | ||
15120 | ;; | ||
15121 | |||
15122 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
15123 | # PIC is the default for these OSes. | ||
15124 | ;; | ||
15125 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
15126 | # This hack is so that the source file can tell whether it is being | ||
15127 | # built for inclusion in a dll (and should export symbols for example). | ||
15128 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
15129 | # (--disable-auto-import) libraries | ||
15130 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
15131 | ;; | ||
15132 | darwin* | rhapsody*) | ||
15133 | # PIC is the default on this platform | ||
15134 | # Common symbols not allowed in MH_DYLIB files | ||
15135 | lt_prog_compiler_pic_CXX='-fno-common' | ||
15136 | ;; | ||
15137 | *djgpp*) | ||
15138 | # DJGPP does not support shared libraries at all | ||
15139 | lt_prog_compiler_pic_CXX= | ||
15140 | ;; | ||
15141 | interix[3-9]*) | ||
15142 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
15143 | # Instead, we relocate shared libraries at runtime. | ||
15144 | ;; | ||
15145 | sysv4*MP*) | ||
15146 | if test -d /usr/nec; then | ||
15147 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
15148 | fi | ||
15149 | ;; | ||
15150 | hpux*) | ||
15151 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
15152 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
15153 | # sets the default TLS model and affects inlining. | ||
15154 | case $host_cpu in | ||
15155 | hppa*64*) | ||
15156 | ;; | ||
15157 | *) | ||
15158 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15159 | ;; | ||
15160 | esac | ||
15161 | ;; | ||
15162 | *qnx* | *nto*) | ||
15163 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
15164 | # it will coredump. | ||
15165 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
15166 | ;; | ||
15167 | *) | ||
15168 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15169 | ;; | ||
15170 | esac | ||
15171 | else | ||
15172 | case $host_os in | ||
15173 | aix[4-9]*) | ||
15174 | # All AIX code is PIC. | ||
15175 | if test "$host_cpu" = ia64; then | ||
15176 | # AIX 5 now supports IA64 processor | ||
15177 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15178 | else | ||
15179 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
15180 | fi | ||
15181 | ;; | ||
15182 | chorus*) | ||
15183 | case $cc_basename in | ||
15184 | cxch68*) | ||
15185 | # Green Hills C++ Compiler | ||
15186 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | ||
15187 | ;; | ||
15188 | esac | ||
15189 | ;; | ||
15190 | dgux*) | ||
15191 | case $cc_basename in | ||
15192 | ec++*) | ||
15193 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15194 | ;; | ||
15195 | ghcx*) | ||
15196 | # Green Hills C++ Compiler | ||
15197 | lt_prog_compiler_pic_CXX='-pic' | ||
15198 | ;; | ||
15199 | *) | ||
15200 | ;; | ||
15201 | esac | ||
15202 | ;; | ||
15203 | freebsd* | dragonfly*) | ||
15204 | # FreeBSD uses GNU C++ | ||
15205 | ;; | ||
15206 | hpux9* | hpux10* | hpux11*) | ||
15207 | case $cc_basename in | ||
15208 | CC*) | ||
15209 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15210 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
15211 | if test "$host_cpu" != ia64; then | ||
15212 | lt_prog_compiler_pic_CXX='+Z' | ||
15213 | fi | ||
15214 | ;; | ||
15215 | aCC*) | ||
15216 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15217 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
15218 | case $host_cpu in | ||
15219 | hppa*64*|ia64*) | ||
15220 | # +Z the default | ||
15221 | ;; | ||
15222 | *) | ||
15223 | lt_prog_compiler_pic_CXX='+Z' | ||
15224 | ;; | ||
15225 | esac | ||
15226 | ;; | ||
15227 | *) | ||
15228 | ;; | ||
15229 | esac | ||
15230 | ;; | ||
15231 | interix*) | ||
15232 | # This is c89, which is MS Visual C++ (no shared libs) | ||
15233 | # Anyone wants to do a port? | ||
15234 | ;; | ||
15235 | irix5* | irix6* | nonstopux*) | ||
15236 | case $cc_basename in | ||
15237 | CC*) | ||
15238 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15239 | lt_prog_compiler_static_CXX='-non_shared' | ||
15240 | # CC pic flag -KPIC is the default. | ||
15241 | ;; | ||
15242 | *) | ||
15243 | ;; | ||
15244 | esac | ||
15245 | ;; | ||
15246 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
15247 | case $cc_basename in | ||
15248 | KCC*) | ||
15249 | # KAI C++ Compiler | ||
15250 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
15251 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15252 | ;; | ||
15253 | ecpc* ) | ||
15254 | # old Intel C++ for x86_64 which still supported -KPIC. | ||
15255 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15256 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15257 | lt_prog_compiler_static_CXX='-static' | ||
15258 | ;; | ||
15259 | icpc* ) | ||
15260 | # Intel C++, used to be incompatible with GCC. | ||
15261 | # ICC 10 doesn't accept -KPIC any more. | ||
15262 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15263 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15264 | lt_prog_compiler_static_CXX='-static' | ||
15265 | ;; | ||
15266 | pgCC* | pgcpp*) | ||
15267 | # Portland Group C++ compiler | ||
15268 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15269 | lt_prog_compiler_pic_CXX='-fpic' | ||
15270 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15271 | ;; | ||
15272 | cxx*) | ||
15273 | # Compaq C++ | ||
15274 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
15275 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
15276 | lt_prog_compiler_pic_CXX= | ||
15277 | lt_prog_compiler_static_CXX='-non_shared' | ||
15278 | ;; | ||
15279 | xlc* | xlC*) | ||
15280 | # IBM XL 8.0 on PPC | ||
15281 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15282 | lt_prog_compiler_pic_CXX='-qpic' | ||
15283 | lt_prog_compiler_static_CXX='-qstaticlink' | ||
15284 | ;; | ||
15285 | *) | ||
15286 | case `$CC -V 2>&1 | sed 5q` in | ||
15287 | *Sun\ C*) | ||
15288 | # Sun C++ 5.9 | ||
15289 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15290 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15291 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
15292 | ;; | ||
15293 | esac | ||
15294 | ;; | ||
15295 | esac | ||
15296 | ;; | ||
15297 | lynxos*) | ||
15298 | ;; | ||
15299 | m88k*) | ||
15300 | ;; | ||
15301 | mvs*) | ||
15302 | case $cc_basename in | ||
15303 | cxx*) | ||
15304 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
15305 | ;; | ||
15306 | *) | ||
15307 | ;; | ||
15308 | esac | ||
15309 | ;; | ||
15310 | netbsd* | netbsdelf*-gnu) | ||
15311 | ;; | ||
15312 | *qnx* | *nto*) | ||
15313 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
15314 | # it will coredump. | ||
15315 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
15316 | ;; | ||
15317 | osf3* | osf4* | osf5*) | ||
15318 | case $cc_basename in | ||
15319 | KCC*) | ||
15320 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
15321 | ;; | ||
15322 | RCC*) | ||
15323 | # Rational C++ 2.4.1 | ||
15324 | lt_prog_compiler_pic_CXX='-pic' | ||
15325 | ;; | ||
15326 | cxx*) | ||
15327 | # Digital/Compaq C++ | ||
15328 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15329 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
15330 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
15331 | lt_prog_compiler_pic_CXX= | ||
15332 | lt_prog_compiler_static_CXX='-non_shared' | ||
15333 | ;; | ||
15334 | *) | ||
15335 | ;; | ||
15336 | esac | ||
15337 | ;; | ||
15338 | psos*) | ||
15339 | ;; | ||
15340 | solaris*) | ||
15341 | case $cc_basename in | ||
15342 | CC*) | ||
15343 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
15344 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15345 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15346 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
15347 | ;; | ||
15348 | gcx*) | ||
15349 | # Green Hills C++ Compiler | ||
15350 | lt_prog_compiler_pic_CXX='-PIC' | ||
15351 | ;; | ||
15352 | *) | ||
15353 | ;; | ||
15354 | esac | ||
15355 | ;; | ||
15356 | sunos4*) | ||
15357 | case $cc_basename in | ||
15358 | CC*) | ||
15359 | # Sun C++ 4.x | ||
15360 | lt_prog_compiler_pic_CXX='-pic' | ||
15361 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15362 | ;; | ||
15363 | lcc*) | ||
15364 | # Lucid | ||
15365 | lt_prog_compiler_pic_CXX='-pic' | ||
15366 | ;; | ||
15367 | *) | ||
15368 | ;; | ||
15369 | esac | ||
15370 | ;; | ||
15371 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
15372 | case $cc_basename in | ||
15373 | CC*) | ||
15374 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15375 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15376 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15377 | ;; | ||
15378 | esac | ||
15379 | ;; | ||
15380 | tandem*) | ||
15381 | case $cc_basename in | ||
15382 | NCC*) | ||
15383 | # NonStop-UX NCC 3.20 | ||
15384 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15385 | ;; | ||
15386 | *) | ||
15387 | ;; | ||
15388 | esac | ||
15389 | ;; | ||
15390 | vxworks*) | ||
15391 | ;; | ||
15392 | *) | ||
15393 | lt_prog_compiler_can_build_shared_CXX=no | ||
15394 | ;; | ||
15395 | esac | ||
15396 | fi | ||
15397 | |||
15398 | case $host_os in | ||
15399 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
15400 | *djgpp*) | ||
15401 | lt_prog_compiler_pic_CXX= | ||
15402 | ;; | ||
15403 | *) | ||
15404 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
15405 | ;; | ||
15406 | esac | ||
15407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | ||
15408 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | ||
15409 | |||
15410 | |||
15411 | |||
15412 | # | ||
15413 | # Check to make sure the PIC flag actually works. | ||
15414 | # | ||
15415 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
15416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
15417 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | ||
15418 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | ||
15419 | $as_echo_n "(cached) " >&6 | ||
15420 | else | ||
15421 | lt_cv_prog_compiler_pic_works_CXX=no | ||
15422 | ac_outfile=conftest.$ac_objext | ||
15423 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15424 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
15425 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15426 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15427 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15428 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15429 | # The option is referenced via a variable to avoid confusing sed. | ||
15430 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15431 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15432 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15433 | -e 's:$: $lt_compiler_flag:'` | ||
15434 | (eval echo "\"\$as_me:15434: $lt_compile\"" >&5) | ||
15435 | (eval "$lt_compile" 2>conftest.err) | ||
15436 | ac_status=$? | ||
15437 | cat conftest.err >&5 | ||
15438 | echo "$as_me:15438: \$? = $ac_status" >&5 | ||
15439 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
15440 | # The compiler can only warn and ignore the option if not recognized | ||
15441 | # So say no if there are warnings other than the usual output. | ||
15442 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
15443 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15444 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
15445 | lt_cv_prog_compiler_pic_works_CXX=yes | ||
15446 | fi | ||
15447 | fi | ||
15448 | $RM conftest* | ||
15449 | |||
15450 | fi | ||
15451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | ||
15452 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | ||
15453 | |||
15454 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | ||
15455 | case $lt_prog_compiler_pic_CXX in | ||
15456 | "" | " "*) ;; | ||
15457 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
15458 | esac | ||
15459 | else | ||
15460 | lt_prog_compiler_pic_CXX= | ||
15461 | lt_prog_compiler_can_build_shared_CXX=no | ||
15462 | fi | ||
15463 | |||
15464 | fi | ||
15465 | |||
15466 | |||
15467 | |||
15468 | # | ||
15469 | # Check to make sure the static flag actually works. | ||
15470 | # | ||
15471 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | ||
15472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
15473 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
15474 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | ||
15475 | $as_echo_n "(cached) " >&6 | ||
15476 | else | ||
15477 | lt_cv_prog_compiler_static_works_CXX=no | ||
15478 | save_LDFLAGS="$LDFLAGS" | ||
15479 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
15480 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
15481 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
15482 | # The linker can only warn and ignore the option if not recognized | ||
15483 | # So say no if there are warnings | ||
15484 | if test -s conftest.err; then | ||
15485 | # Append any errors to the config.log. | ||
15486 | cat conftest.err 1>&5 | ||
15487 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
15488 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15489 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
15490 | lt_cv_prog_compiler_static_works_CXX=yes | ||
15491 | fi | ||
15492 | else | ||
15493 | lt_cv_prog_compiler_static_works_CXX=yes | ||
15494 | fi | ||
15495 | fi | ||
15496 | $RM -r conftest* | ||
15497 | LDFLAGS="$save_LDFLAGS" | ||
15498 | |||
15499 | fi | ||
15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | ||
15501 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | ||
15502 | |||
15503 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | ||
15504 | : | ||
15505 | else | ||
15506 | lt_prog_compiler_static_CXX= | ||
15507 | fi | ||
15508 | |||
15509 | |||
15510 | |||
15511 | |||
15512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
15513 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
15514 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
15515 | $as_echo_n "(cached) " >&6 | ||
15516 | else | ||
15517 | lt_cv_prog_compiler_c_o_CXX=no | ||
15518 | $RM -r conftest 2>/dev/null | ||
15519 | mkdir conftest | ||
15520 | cd conftest | ||
15521 | mkdir out | ||
15522 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15523 | |||
15524 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
15525 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15526 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15527 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15528 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15529 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15530 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15531 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15532 | -e 's:$: $lt_compiler_flag:'` | ||
15533 | (eval echo "\"\$as_me:15533: $lt_compile\"" >&5) | ||
15534 | (eval "$lt_compile" 2>out/conftest.err) | ||
15535 | ac_status=$? | ||
15536 | cat out/conftest.err >&5 | ||
15537 | echo "$as_me:15537: \$? = $ac_status" >&5 | ||
15538 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
15539 | then | ||
15540 | # The compiler can only warn and ignore the option if not recognized | ||
15541 | # So say no if there are warnings | ||
15542 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
15543 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
15544 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
15545 | lt_cv_prog_compiler_c_o_CXX=yes | ||
15546 | fi | ||
15547 | fi | ||
15548 | chmod u+w . 2>&5 | ||
15549 | $RM conftest* | ||
15550 | # SGI C++ compiler will create directory out/ii_files/ for | ||
15551 | # template instantiation | ||
15552 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
15553 | $RM out/* && rmdir out | ||
15554 | cd .. | ||
15555 | $RM -r conftest | ||
15556 | $RM conftest* | ||
15557 | |||
15558 | fi | ||
15559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
15560 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
15561 | |||
15562 | |||
15563 | |||
15564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
15565 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
15566 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
15567 | $as_echo_n "(cached) " >&6 | ||
15568 | else | ||
15569 | lt_cv_prog_compiler_c_o_CXX=no | ||
15570 | $RM -r conftest 2>/dev/null | ||
15571 | mkdir conftest | ||
15572 | cd conftest | ||
15573 | mkdir out | ||
15574 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15575 | |||
15576 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
15577 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15578 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15579 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15580 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15581 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15582 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15583 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15584 | -e 's:$: $lt_compiler_flag:'` | ||
15585 | (eval echo "\"\$as_me:15585: $lt_compile\"" >&5) | ||
15586 | (eval "$lt_compile" 2>out/conftest.err) | ||
15587 | ac_status=$? | ||
15588 | cat out/conftest.err >&5 | ||
15589 | echo "$as_me:15589: \$? = $ac_status" >&5 | ||
15590 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
15591 | then | ||
15592 | # The compiler can only warn and ignore the option if not recognized | ||
15593 | # So say no if there are warnings | ||
15594 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
15595 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
15596 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
15597 | lt_cv_prog_compiler_c_o_CXX=yes | ||
15598 | fi | ||
15599 | fi | ||
15600 | chmod u+w . 2>&5 | ||
15601 | $RM conftest* | ||
15602 | # SGI C++ compiler will create directory out/ii_files/ for | ||
15603 | # template instantiation | ||
15604 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
15605 | $RM out/* && rmdir out | ||
15606 | cd .. | ||
15607 | $RM -r conftest | ||
15608 | $RM conftest* | ||
15609 | |||
15610 | fi | ||
15611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
15612 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
15613 | |||
15614 | |||
15615 | |||
15616 | |||
15617 | hard_links="nottested" | ||
15618 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
15619 | # do not overwrite the value of need_locks provided by the user | ||
15620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
15621 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
15622 | hard_links=yes | ||
15623 | $RM conftest* | ||
15624 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
15625 | touch conftest.a | ||
15626 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
15627 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
15628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
15629 | $as_echo "$hard_links" >&6; } | ||
15630 | if test "$hard_links" = no; then | ||
15631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
15632 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
15633 | need_locks=warn | ||
15634 | fi | ||
15635 | else | ||
15636 | need_locks=no | ||
15637 | fi | ||
15638 | |||
15639 | |||
15640 | |||
15641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
15642 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
15643 | |||
15644 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
15645 | case $host_os in | ||
15646 | aix[4-9]*) | ||
15647 | # If we're using GNU nm, then we don't want the "-C" option. | ||
15648 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
15649 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
15650 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
15651 | else | ||
15652 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
15653 | fi | ||
15654 | ;; | ||
15655 | pw32*) | ||
15656 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
15657 | ;; | ||
15658 | cygwin* | mingw* | cegcc*) | ||
15659 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
15660 | ;; | ||
15661 | linux* | k*bsd*-gnu) | ||
15662 | link_all_deplibs_CXX=no | ||
15663 | ;; | ||
15664 | *) | ||
15665 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
15666 | ;; | ||
15667 | esac | ||
15668 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
15669 | |||
15670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
15671 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
15672 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
15673 | |||
15674 | with_gnu_ld_CXX=$with_gnu_ld | ||
15675 | |||
15676 | |||
15677 | |||
15678 | |||
15679 | |||
15680 | |||
15681 | # | ||
15682 | # Do we need to explicitly link libc? | ||
15683 | # | ||
15684 | case "x$archive_cmds_need_lc_CXX" in | ||
15685 | x|xyes) | ||
15686 | # Assume -lc should be added | ||
15687 | archive_cmds_need_lc_CXX=yes | ||
15688 | |||
15689 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
15690 | case $archive_cmds_CXX in | ||
15691 | *'~'*) | ||
15692 | # FIXME: we may have to deal with multi-command sequences. | ||
15693 | ;; | ||
15694 | '$CC '*) | ||
15695 | # Test whether the compiler implicitly links with -lc since on some | ||
15696 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
15697 | # to ld, don't add -lc before -lgcc. | ||
15698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
15699 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
15700 | $RM conftest* | ||
15701 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15702 | |||
15703 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
15704 | (eval $ac_compile) 2>&5 | ||
15705 | ac_status=$? | ||
15706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15707 | test $ac_status = 0; } 2>conftest.err; then | ||
15708 | soname=conftest | ||
15709 | lib=conftest | ||
15710 | libobjs=conftest.$ac_objext | ||
15711 | deplibs= | ||
15712 | wl=$lt_prog_compiler_wl_CXX | ||
15713 | pic_flag=$lt_prog_compiler_pic_CXX | ||
15714 | compiler_flags=-v | ||
15715 | linker_flags=-v | ||
15716 | verstring= | ||
15717 | output_objdir=. | ||
15718 | libname=conftest | ||
15719 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
15720 | allow_undefined_flag_CXX= | ||
15721 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
15722 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
15723 | ac_status=$? | ||
15724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15725 | test $ac_status = 0; } | ||
15726 | then | ||
15727 | archive_cmds_need_lc_CXX=no | ||
15728 | else | ||
15729 | archive_cmds_need_lc_CXX=yes | ||
15730 | fi | ||
15731 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
15732 | else | ||
15733 | cat conftest.err 1>&5 | ||
15734 | fi | ||
15735 | $RM conftest* | ||
15736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | ||
15737 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | ||
15738 | ;; | ||
15739 | esac | ||
15740 | fi | ||
15741 | ;; | ||
15742 | esac | ||
15743 | |||
15744 | |||
15745 | |||
15746 | |||
15747 | |||
15748 | |||
15749 | |||
15750 | |||
15751 | |||
15752 | |||
15753 | |||
15754 | |||
15755 | |||
15756 | |||
15757 | |||
15758 | |||
15759 | |||
15760 | |||
15761 | |||
15762 | |||
15763 | |||
15764 | |||
15765 | |||
15766 | |||
15767 | |||
15768 | |||
15769 | |||
15770 | |||
15771 | |||
15772 | |||
15773 | |||
15774 | |||
15775 | |||
15776 | |||
15777 | |||
15778 | |||
15779 | |||
15780 | |||
15781 | |||
15782 | |||
15783 | |||
15784 | |||
15785 | |||
15786 | |||
15787 | |||
15788 | |||
15789 | |||
15790 | |||
15791 | |||
15792 | |||
15793 | |||
15794 | |||
15795 | |||
15796 | |||
15797 | |||
15798 | |||
15799 | |||
15800 | |||
15801 | |||
15802 | |||
15803 | |||
15804 | |||
15805 | |||
15806 | |||
15807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
15808 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
15809 | |||
15810 | library_names_spec= | ||
15811 | libname_spec='lib$name' | ||
15812 | soname_spec= | ||
15813 | shrext_cmds=".so" | ||
15814 | postinstall_cmds= | ||
15815 | postuninstall_cmds= | ||
15816 | finish_cmds= | ||
15817 | finish_eval= | ||
15818 | shlibpath_var= | ||
15819 | shlibpath_overrides_runpath=unknown | ||
15820 | version_type=none | ||
15821 | dynamic_linker="$host_os ld.so" | ||
15822 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
15823 | need_lib_prefix=unknown | ||
15824 | hardcode_into_libs=no | ||
15825 | |||
15826 | # when you set need_version to no, make sure it does not cause -set_version | ||
15827 | # flags to be left without arguments | ||
15828 | need_version=unknown | ||
15829 | |||
15830 | case $host_os in | ||
15831 | aix3*) | ||
15832 | version_type=linux | ||
15833 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
15834 | shlibpath_var=LIBPATH | ||
15835 | |||
15836 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
15837 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15838 | ;; | ||
15839 | |||
15840 | aix[4-9]*) | ||
15841 | version_type=linux | ||
15842 | need_lib_prefix=no | ||
15843 | need_version=no | ||
15844 | hardcode_into_libs=yes | ||
15845 | if test "$host_cpu" = ia64; then | ||
15846 | # AIX 5 supports IA64 | ||
15847 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
15848 | shlibpath_var=LD_LIBRARY_PATH | ||
15849 | else | ||
15850 | # With GCC up to 2.95.x, collect2 would create an import file | ||
15851 | # for dependence libraries. The import file would start with | ||
15852 | # the line `#! .'. This would cause the generated library to | ||
15853 | # depend on `.', always an invalid library. This was fixed in | ||
15854 | # development snapshots of GCC prior to 3.0. | ||
15855 | case $host_os in | ||
15856 | aix4 | aix4.[01] | aix4.[01].*) | ||
15857 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
15858 | echo ' yes ' | ||
15859 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
15860 | : | ||
15861 | else | ||
15862 | can_build_shared=no | ||
15863 | fi | ||
15864 | ;; | ||
15865 | esac | ||
15866 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
15867 | # soname into executable. Probably we can add versioning support to | ||
15868 | # collect2, so additional links can be useful in future. | ||
15869 | if test "$aix_use_runtimelinking" = yes; then | ||
15870 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
15871 | # instead of lib<name>.a to let people know that these are not | ||
15872 | # typical AIX shared libraries. | ||
15873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15874 | else | ||
15875 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
15876 | # and later when we are not doing run time linking. | ||
15877 | library_names_spec='${libname}${release}.a $libname.a' | ||
15878 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15879 | fi | ||
15880 | shlibpath_var=LIBPATH | ||
15881 | fi | ||
15882 | ;; | ||
15883 | |||
15884 | amigaos*) | ||
15885 | case $host_cpu in | ||
15886 | powerpc) | ||
15887 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
15888 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
15889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15890 | ;; | ||
15891 | m68k) | ||
15892 | library_names_spec='$libname.ixlibrary $libname.a' | ||
15893 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
15894 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' | ||
15895 | ;; | ||
15896 | esac | ||
15897 | ;; | ||
15898 | |||
15899 | beos*) | ||
15900 | library_names_spec='${libname}${shared_ext}' | ||
15901 | dynamic_linker="$host_os ld.so" | ||
15902 | shlibpath_var=LIBRARY_PATH | ||
15903 | ;; | ||
15904 | |||
15905 | bsdi[45]*) | ||
15906 | version_type=linux | ||
15907 | need_version=no | ||
15908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15909 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15910 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
15911 | shlibpath_var=LD_LIBRARY_PATH | ||
15912 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
15913 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
15914 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
15915 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
15916 | # libtool to hard-code these into programs | ||
15917 | ;; | ||
15918 | |||
15919 | cygwin* | mingw* | pw32* | cegcc*) | ||
15920 | version_type=windows | ||
15921 | shrext_cmds=".dll" | ||
15922 | need_version=no | ||
15923 | need_lib_prefix=no | ||
15924 | |||
15925 | case $GCC,$host_os in | ||
15926 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
15927 | library_names_spec='$libname.dll.a' | ||
15928 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
15929 | postinstall_cmds='base_file=`basename \${file}`~ | ||
15930 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
15931 | dldir=$destdir/`dirname \$dlpath`~ | ||
15932 | test -d \$dldir || mkdir -p \$dldir~ | ||
15933 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
15934 | chmod a+x \$dldir/$dlname~ | ||
15935 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
15936 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
15937 | fi' | ||
15938 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
15939 | dlpath=$dir/\$dldll~ | ||
15940 | $RM \$dlpath' | ||
15941 | shlibpath_overrides_runpath=yes | ||
15942 | |||
15943 | case $host_os in | ||
15944 | cygwin*) | ||
15945 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
15946 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15947 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
15948 | ;; | ||
15949 | mingw* | cegcc*) | ||
15950 | # MinGW DLLs use traditional 'lib' prefix | ||
15951 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15952 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
15953 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
15954 | # It is most probably a Windows format PATH printed by | ||
15955 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
15956 | # path with ; separators, and with drive letters. We can handle the | ||
15957 | # drive letters (cygwin fileutils understands them), so leave them, | ||
15958 | # especially as we might pass files found there to a mingw objdump, | ||
15959 | # which wouldn't understand a cygwinified path. Ahh. | ||
15960 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
15961 | else | ||
15962 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
15963 | fi | ||
15964 | ;; | ||
15965 | pw32*) | ||
15966 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
15967 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15968 | ;; | ||
15969 | esac | ||
15970 | ;; | ||
15971 | |||
15972 | *) | ||
15973 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
15974 | ;; | ||
15975 | esac | ||
15976 | dynamic_linker='Win32 ld.exe' | ||
15977 | # FIXME: first we should search . and the directory the executable is in | ||
15978 | shlibpath_var=PATH | ||
15979 | ;; | ||
15980 | |||
15981 | darwin* | rhapsody*) | ||
15982 | dynamic_linker="$host_os dyld" | ||
15983 | version_type=darwin | ||
15984 | need_lib_prefix=no | ||
15985 | need_version=no | ||
15986 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
15987 | soname_spec='${libname}${release}${major}$shared_ext' | ||
15988 | shlibpath_overrides_runpath=yes | ||
15989 | shlibpath_var=DYLD_LIBRARY_PATH | ||
15990 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
15991 | |||
15992 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
15993 | ;; | ||
15994 | |||
15995 | dgux*) | ||
15996 | version_type=linux | ||
15997 | need_lib_prefix=no | ||
15998 | need_version=no | ||
15999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
16000 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16001 | shlibpath_var=LD_LIBRARY_PATH | ||
16002 | ;; | ||
16003 | |||
16004 | freebsd1*) | ||
16005 | dynamic_linker=no | ||
16006 | ;; | ||
16007 | |||
16008 | freebsd* | dragonfly*) | ||
16009 | # DragonFly does not have aout. When/if they implement a new | ||
16010 | # versioning mechanism, adjust this. | ||
16011 | if test -x /usr/bin/objformat; then | ||
16012 | objformat=`/usr/bin/objformat` | ||
16013 | else | ||
16014 | case $host_os in | ||
16015 | freebsd[123]*) objformat=aout ;; | ||
16016 | *) objformat=elf ;; | ||
16017 | esac | ||
16018 | fi | ||
16019 | version_type=freebsd-$objformat | ||
16020 | case $version_type in | ||
16021 | freebsd-elf*) | ||
16022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16023 | need_version=no | ||
16024 | need_lib_prefix=no | ||
16025 | ;; | ||
16026 | freebsd-*) | ||
16027 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
16028 | need_version=yes | ||
16029 | ;; | ||
16030 | esac | ||
16031 | shlibpath_var=LD_LIBRARY_PATH | ||
16032 | case $host_os in | ||
16033 | freebsd2*) | ||
16034 | shlibpath_overrides_runpath=yes | ||
16035 | ;; | ||
16036 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
16037 | shlibpath_overrides_runpath=yes | ||
16038 | hardcode_into_libs=yes | ||
16039 | ;; | ||
16040 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
16041 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
16042 | shlibpath_overrides_runpath=no | ||
16043 | hardcode_into_libs=yes | ||
16044 | ;; | ||
16045 | *) # from 4.6 on, and DragonFly | ||
16046 | shlibpath_overrides_runpath=yes | ||
16047 | hardcode_into_libs=yes | ||
16048 | ;; | ||
16049 | esac | ||
16050 | ;; | ||
16051 | |||
16052 | gnu*) | ||
16053 | version_type=linux | ||
16054 | need_lib_prefix=no | ||
16055 | need_version=no | ||
16056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
16057 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16058 | shlibpath_var=LD_LIBRARY_PATH | ||
16059 | hardcode_into_libs=yes | ||
16060 | ;; | ||
16061 | |||
16062 | hpux9* | hpux10* | hpux11*) | ||
16063 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
16064 | # link against other versions. | ||
16065 | version_type=sunos | ||
16066 | need_lib_prefix=no | ||
16067 | need_version=no | ||
16068 | case $host_cpu in | ||
16069 | ia64*) | ||
16070 | shrext_cmds='.so' | ||
16071 | hardcode_into_libs=yes | ||
16072 | dynamic_linker="$host_os dld.so" | ||
16073 | shlibpath_var=LD_LIBRARY_PATH | ||
16074 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16076 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16077 | if test "X$HPUX_IA64_MODE" = X32; then | ||
16078 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
16079 | else | ||
16080 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
16081 | fi | ||
16082 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16083 | ;; | ||
16084 | hppa*64*) | ||
16085 | shrext_cmds='.sl' | ||
16086 | hardcode_into_libs=yes | ||
16087 | dynamic_linker="$host_os dld.sl" | ||
16088 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
16089 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16091 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16092 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
16093 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16094 | ;; | ||
16095 | *) | ||
16096 | shrext_cmds='.sl' | ||
16097 | dynamic_linker="$host_os dld.sl" | ||
16098 | shlibpath_var=SHLIB_PATH | ||
16099 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
16100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16101 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16102 | ;; | ||
16103 | esac | ||
16104 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
16105 | postinstall_cmds='chmod 555 $lib' | ||
16106 | ;; | ||
16107 | |||
16108 | interix[3-9]*) | ||
16109 | version_type=linux | ||
16110 | need_lib_prefix=no | ||
16111 | need_version=no | ||
16112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16113 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16114 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
16115 | shlibpath_var=LD_LIBRARY_PATH | ||
16116 | shlibpath_overrides_runpath=no | ||
16117 | hardcode_into_libs=yes | ||
16118 | ;; | ||
16119 | |||
16120 | irix5* | irix6* | nonstopux*) | ||
16121 | case $host_os in | ||
16122 | nonstopux*) version_type=nonstopux ;; | ||
16123 | *) | ||
16124 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
16125 | version_type=linux | ||
16126 | else | ||
16127 | version_type=irix | ||
16128 | fi ;; | ||
16129 | esac | ||
16130 | need_lib_prefix=no | ||
16131 | need_version=no | ||
16132 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16134 | case $host_os in | ||
16135 | irix5* | nonstopux*) | ||
16136 | libsuff= shlibsuff= | ||
16137 | ;; | ||
16138 | *) | ||
16139 | case $LD in # libtool.m4 will add one of these switches to LD | ||
16140 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
16141 | libsuff= shlibsuff= libmagic=32-bit;; | ||
16142 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
16143 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
16144 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
16145 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
16146 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
16147 | esac | ||
16148 | ;; | ||
16149 | esac | ||
16150 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
16151 | shlibpath_overrides_runpath=no | ||
16152 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
16153 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
16154 | hardcode_into_libs=yes | ||
16155 | ;; | ||
16156 | |||
16157 | # No shared lib support for Linux oldld, aout, or coff. | ||
16158 | linux*oldld* | linux*aout* | linux*coff*) | ||
16159 | dynamic_linker=no | ||
16160 | ;; | ||
16161 | |||
16162 | # This must be Linux ELF. | ||
16163 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
16164 | version_type=linux | ||
16165 | need_lib_prefix=no | ||
16166 | need_version=no | ||
16167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16168 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16169 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
16170 | shlibpath_var=LD_LIBRARY_PATH | ||
16171 | shlibpath_overrides_runpath=no | ||
16172 | # Some binutils ld are patched to set DT_RUNPATH | ||
16173 | save_LDFLAGS=$LDFLAGS | ||
16174 | save_libdir=$libdir | ||
16175 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | ||
16176 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | ||
16177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16178 | /* end confdefs.h. */ | ||
16179 | |||
16180 | int | ||
16181 | main () | ||
16182 | { | ||
16183 | |||
16184 | ; | ||
16185 | return 0; | ||
16186 | } | ||
16187 | _ACEOF | ||
16188 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
16189 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
16190 | shlibpath_overrides_runpath=yes | ||
16191 | fi | ||
16192 | fi | ||
16193 | rm -f core conftest.err conftest.$ac_objext \ | ||
16194 | conftest$ac_exeext conftest.$ac_ext | ||
16195 | LDFLAGS=$save_LDFLAGS | ||
16196 | libdir=$save_libdir | ||
16197 | |||
16198 | # This implies no fast_install, which is unacceptable. | ||
16199 | # Some rework will be needed to allow for fast_install | ||
16200 | # before this can be enabled. | ||
16201 | hardcode_into_libs=yes | ||
16202 | |||
16203 | # Append ld.so.conf contents to the search path | ||
16204 | if test -f /etc/ld.so.conf; then | ||
16205 | 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;/^$/d' | tr '\n' ' '` | ||
16206 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
16207 | fi | ||
16208 | |||
16209 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
16210 | # powerpc, because MkLinux only supported shared libraries with the | ||
16211 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
16212 | # most powerpc-linux boxes support dynamic linking these days and | ||
16213 | # people can always --disable-shared, the test was removed, and we | ||
16214 | # assume the GNU/Linux dynamic linker is in use. | ||
16215 | dynamic_linker='GNU/Linux ld.so' | ||
16216 | ;; | ||
16217 | |||
16218 | netbsdelf*-gnu) | ||
16219 | version_type=linux | ||
16220 | need_lib_prefix=no | ||
16221 | need_version=no | ||
16222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16223 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16224 | shlibpath_var=LD_LIBRARY_PATH | ||
16225 | shlibpath_overrides_runpath=no | ||
16226 | hardcode_into_libs=yes | ||
16227 | dynamic_linker='NetBSD ld.elf_so' | ||
16228 | ;; | ||
16229 | |||
16230 | netbsd*) | ||
16231 | version_type=sunos | ||
16232 | need_lib_prefix=no | ||
16233 | need_version=no | ||
16234 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
16235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16236 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16237 | dynamic_linker='NetBSD (a.out) ld.so' | ||
16238 | else | ||
16239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16240 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16241 | dynamic_linker='NetBSD ld.elf_so' | ||
16242 | fi | ||
16243 | shlibpath_var=LD_LIBRARY_PATH | ||
16244 | shlibpath_overrides_runpath=yes | ||
16245 | hardcode_into_libs=yes | ||
16246 | ;; | ||
16247 | |||
16248 | newsos6) | ||
16249 | version_type=linux | ||
16250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16251 | shlibpath_var=LD_LIBRARY_PATH | ||
16252 | shlibpath_overrides_runpath=yes | ||
16253 | ;; | ||
16254 | |||
16255 | *nto* | *qnx*) | ||
16256 | version_type=qnx | ||
16257 | need_lib_prefix=no | ||
16258 | need_version=no | ||
16259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16260 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16261 | shlibpath_var=LD_LIBRARY_PATH | ||
16262 | shlibpath_overrides_runpath=no | ||
16263 | hardcode_into_libs=yes | ||
16264 | dynamic_linker='ldqnx.so' | ||
16265 | ;; | ||
16266 | |||
16267 | openbsd*) | ||
16268 | version_type=sunos | ||
16269 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
16270 | need_lib_prefix=no | ||
16271 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
16272 | case $host_os in | ||
16273 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
16274 | *) need_version=no ;; | ||
16275 | esac | ||
16276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16277 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16278 | shlibpath_var=LD_LIBRARY_PATH | ||
16279 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16280 | case $host_os in | ||
16281 | openbsd2.[89] | openbsd2.[89].*) | ||
16282 | shlibpath_overrides_runpath=no | ||
16283 | ;; | ||
16284 | *) | ||
16285 | shlibpath_overrides_runpath=yes | ||
16286 | ;; | ||
16287 | esac | ||
16288 | else | ||
16289 | shlibpath_overrides_runpath=yes | ||
16290 | fi | ||
16291 | ;; | ||
16292 | |||
16293 | os2*) | ||
16294 | libname_spec='$name' | ||
16295 | shrext_cmds=".dll" | ||
16296 | need_lib_prefix=no | ||
16297 | library_names_spec='$libname${shared_ext} $libname.a' | ||
16298 | dynamic_linker='OS/2 ld.exe' | ||
16299 | shlibpath_var=LIBPATH | ||
16300 | ;; | ||
16301 | |||
16302 | osf3* | osf4* | osf5*) | ||
16303 | version_type=osf | ||
16304 | need_lib_prefix=no | ||
16305 | need_version=no | ||
16306 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16308 | shlibpath_var=LD_LIBRARY_PATH | ||
16309 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
16310 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
16311 | ;; | ||
16312 | |||
16313 | rdos*) | ||
16314 | dynamic_linker=no | ||
16315 | ;; | ||
16316 | |||
16317 | solaris*) | ||
16318 | version_type=linux | ||
16319 | need_lib_prefix=no | ||
16320 | need_version=no | ||
16321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16322 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16323 | shlibpath_var=LD_LIBRARY_PATH | ||
16324 | shlibpath_overrides_runpath=yes | ||
16325 | hardcode_into_libs=yes | ||
16326 | # ldd complains unless libraries are executable | ||
16327 | postinstall_cmds='chmod +x $lib' | ||
16328 | ;; | ||
16329 | |||
16330 | sunos4*) | ||
16331 | version_type=sunos | ||
16332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16333 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
16334 | shlibpath_var=LD_LIBRARY_PATH | ||
16335 | shlibpath_overrides_runpath=yes | ||
16336 | if test "$with_gnu_ld" = yes; then | ||
16337 | need_lib_prefix=no | ||
16338 | fi | ||
16339 | need_version=yes | ||
16340 | ;; | ||
16341 | |||
16342 | sysv4 | sysv4.3*) | ||
16343 | version_type=linux | ||
16344 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16345 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16346 | shlibpath_var=LD_LIBRARY_PATH | ||
16347 | case $host_vendor in | ||
16348 | sni) | ||
16349 | shlibpath_overrides_runpath=no | ||
16350 | need_lib_prefix=no | ||
16351 | runpath_var=LD_RUN_PATH | ||
16352 | ;; | ||
16353 | siemens) | ||
16354 | need_lib_prefix=no | ||
16355 | ;; | ||
16356 | motorola) | ||
16357 | need_lib_prefix=no | ||
16358 | need_version=no | ||
16359 | shlibpath_overrides_runpath=no | ||
16360 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
16361 | ;; | ||
16362 | esac | ||
16363 | ;; | ||
16364 | |||
16365 | sysv4*MP*) | ||
16366 | if test -d /usr/nec ;then | ||
16367 | version_type=linux | ||
16368 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
16369 | soname_spec='$libname${shared_ext}.$major' | ||
16370 | shlibpath_var=LD_LIBRARY_PATH | ||
16371 | fi | ||
16372 | ;; | ||
16373 | |||
16374 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
16375 | version_type=freebsd-elf | ||
16376 | need_lib_prefix=no | ||
16377 | need_version=no | ||
16378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16379 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16380 | shlibpath_var=LD_LIBRARY_PATH | ||
16381 | shlibpath_overrides_runpath=yes | ||
16382 | hardcode_into_libs=yes | ||
16383 | if test "$with_gnu_ld" = yes; then | ||
16384 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
16385 | else | ||
16386 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
16387 | case $host_os in | ||
16388 | sco3.2v5*) | ||
16389 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
16390 | ;; | ||
16391 | esac | ||
16392 | fi | ||
16393 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
16394 | ;; | ||
16395 | |||
16396 | tpf*) | ||
16397 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
16398 | version_type=linux | ||
16399 | need_lib_prefix=no | ||
16400 | need_version=no | ||
16401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16402 | shlibpath_var=LD_LIBRARY_PATH | ||
16403 | shlibpath_overrides_runpath=no | ||
16404 | hardcode_into_libs=yes | ||
16405 | ;; | ||
16406 | |||
16407 | uts4*) | ||
16408 | version_type=linux | ||
16409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16410 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16411 | shlibpath_var=LD_LIBRARY_PATH | ||
16412 | ;; | ||
16413 | |||
16414 | *) | ||
16415 | dynamic_linker=no | ||
16416 | ;; | ||
16417 | esac | ||
16418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
16419 | $as_echo "$dynamic_linker" >&6; } | ||
16420 | test "$dynamic_linker" = no && can_build_shared=no | ||
16421 | |||
16422 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
16423 | if test "$GCC" = yes; then | ||
16424 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
16425 | fi | ||
16426 | |||
16427 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
16428 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
16429 | fi | ||
16430 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
16431 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
16432 | fi | ||
16433 | |||
16434 | |||
16435 | |||
16436 | |||
16437 | |||
16438 | |||
16439 | |||
16440 | |||
16441 | |||
16442 | |||
16443 | |||
16444 | |||
16445 | |||
16446 | |||
16447 | |||
16448 | |||
16449 | |||
16450 | |||
16451 | |||
16452 | |||
16453 | |||
16454 | |||
16455 | |||
16456 | |||
16457 | |||
16458 | |||
16459 | |||
16460 | |||
16461 | |||
16462 | |||
16463 | |||
16464 | |||
16465 | |||
16466 | |||
16467 | |||
16468 | |||
16469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
16470 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
16471 | hardcode_action_CXX= | ||
16472 | if test -n "$hardcode_libdir_flag_spec_CXX" || | ||
16473 | test -n "$runpath_var_CXX" || | ||
16474 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | ||
16475 | |||
16476 | # We can hardcode non-existent directories. | ||
16477 | if test "$hardcode_direct_CXX" != no && | ||
16478 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
16479 | # have to relink, otherwise we might link with an installed library | ||
16480 | # when we should be linking with a yet-to-be-installed one | ||
16481 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
16482 | test "$hardcode_minus_L_CXX" != no; then | ||
16483 | # Linking always hardcodes the temporary library directory. | ||
16484 | hardcode_action_CXX=relink | ||
16485 | else | ||
16486 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
16487 | hardcode_action_CXX=immediate | ||
16488 | fi | ||
16489 | else | ||
16490 | # We cannot hardcode anything, or else we can only hardcode existing | ||
16491 | # directories. | ||
16492 | hardcode_action_CXX=unsupported | ||
16493 | fi | ||
16494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | ||
16495 | $as_echo "$hardcode_action_CXX" >&6; } | ||
16496 | |||
16497 | if test "$hardcode_action_CXX" = relink || | ||
16498 | test "$inherit_rpath_CXX" = yes; then | ||
16499 | # Fast installation is not supported | ||
16500 | enable_fast_install=no | ||
16501 | elif test "$shlibpath_overrides_runpath" = yes || | ||
16502 | test "$enable_shared" = no; then | ||
16503 | # Fast installation is not necessary | ||
16504 | enable_fast_install=needless | ||
16505 | fi | ||
16506 | |||
16507 | |||
16508 | |||
16509 | |||
16510 | |||
16511 | |||
16512 | |||
16513 | fi # test -n "$compiler" | ||
16514 | |||
16515 | CC=$lt_save_CC | ||
16516 | LDCXX=$LD | ||
16517 | LD=$lt_save_LD | ||
16518 | GCC=$lt_save_GCC | ||
16519 | with_gnu_ld=$lt_save_with_gnu_ld | ||
16520 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
16521 | lt_cv_path_LD=$lt_save_path_LD | ||
16522 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
16523 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
16524 | fi # test "$_lt_caught_CXX_error" != yes | ||
16525 | |||
16526 | ac_ext=c | ||
16527 | ac_cpp='$CPP $CPPFLAGS' | ||
16528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
16529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
16530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
16531 | |||
16532 | |||
16533 | ac_ext=c | ||
16534 | ac_cpp='$CPP $CPPFLAGS' | ||
16535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
16536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
16537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
16538 | if test -n "$ac_tool_prefix"; then | ||
16539 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
16540 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
16541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16542 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16543 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
16544 | $as_echo_n "(cached) " >&6 | ||
16545 | else | ||
16546 | if test -n "$CC"; then | ||
16547 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
16548 | else | ||
16549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16550 | for as_dir in $PATH | ||
16551 | do | ||
16552 | IFS=$as_save_IFS | ||
16553 | test -z "$as_dir" && as_dir=. | ||
16554 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16556 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
16557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16558 | break 2 | ||
16559 | fi | ||
16560 | done | ||
16561 | done | ||
16562 | IFS=$as_save_IFS | ||
16563 | |||
16564 | fi | ||
16565 | fi | ||
16566 | CC=$ac_cv_prog_CC | ||
16567 | if test -n "$CC"; then | ||
16568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
16569 | $as_echo "$CC" >&6; } | ||
16570 | else | ||
16571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16572 | $as_echo "no" >&6; } | ||
16573 | fi | ||
16574 | |||
16575 | |||
16576 | fi | ||
16577 | if test -z "$ac_cv_prog_CC"; then | ||
16578 | ac_ct_CC=$CC | ||
16579 | # Extract the first word of "gcc", so it can be a program name with args. | ||
16580 | set dummy gcc; ac_word=$2 | ||
16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16582 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16583 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
16584 | $as_echo_n "(cached) " >&6 | ||
16585 | else | ||
16586 | if test -n "$ac_ct_CC"; then | ||
16587 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
16588 | else | ||
16589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16590 | for as_dir in $PATH | ||
16591 | do | ||
16592 | IFS=$as_save_IFS | ||
16593 | test -z "$as_dir" && as_dir=. | ||
16594 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16595 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16596 | ac_cv_prog_ac_ct_CC="gcc" | ||
16597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16598 | break 2 | ||
16599 | fi | ||
16600 | done | ||
16601 | done | ||
16602 | IFS=$as_save_IFS | ||
16603 | |||
16604 | fi | ||
16605 | fi | ||
16606 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
16607 | if test -n "$ac_ct_CC"; then | ||
16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
16609 | $as_echo "$ac_ct_CC" >&6; } | ||
16610 | else | ||
16611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16612 | $as_echo "no" >&6; } | ||
16613 | fi | ||
16614 | |||
16615 | if test "x$ac_ct_CC" = x; then | ||
16616 | CC="" | ||
16617 | else | ||
16618 | case $cross_compiling:$ac_tool_warned in | ||
16619 | yes:) | ||
16620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
16621 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
16622 | ac_tool_warned=yes ;; | ||
16623 | esac | ||
16624 | CC=$ac_ct_CC | ||
16625 | fi | ||
16626 | else | ||
16627 | CC="$ac_cv_prog_CC" | ||
16628 | fi | ||
16629 | |||
16630 | if test -z "$CC"; then | ||
16631 | if test -n "$ac_tool_prefix"; then | ||
16632 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
16633 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
16634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16635 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16636 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
16637 | $as_echo_n "(cached) " >&6 | ||
16638 | else | ||
16639 | if test -n "$CC"; then | ||
16640 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
16641 | else | ||
16642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16643 | for as_dir in $PATH | ||
16644 | do | ||
16645 | IFS=$as_save_IFS | ||
16646 | test -z "$as_dir" && as_dir=. | ||
16647 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16649 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
16650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16651 | break 2 | ||
16652 | fi | ||
16653 | done | ||
16654 | done | ||
16655 | IFS=$as_save_IFS | ||
16656 | |||
16657 | fi | ||
16658 | fi | ||
16659 | CC=$ac_cv_prog_CC | ||
16660 | if test -n "$CC"; then | ||
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
16662 | $as_echo "$CC" >&6; } | ||
16663 | else | ||
16664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16665 | $as_echo "no" >&6; } | ||
16666 | fi | ||
16667 | |||
16668 | |||
16669 | fi | ||
16670 | fi | ||
16671 | if test -z "$CC"; then | ||
16672 | # Extract the first word of "cc", so it can be a program name with args. | ||
16673 | set dummy cc; ac_word=$2 | ||
16674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16675 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16676 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
16677 | $as_echo_n "(cached) " >&6 | ||
16678 | else | ||
16679 | if test -n "$CC"; then | ||
16680 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
16681 | else | ||
16682 | ac_prog_rejected=no | ||
16683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16684 | for as_dir in $PATH | ||
16685 | do | ||
16686 | IFS=$as_save_IFS | ||
16687 | test -z "$as_dir" && as_dir=. | ||
16688 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16690 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
16691 | ac_prog_rejected=yes | ||
16692 | continue | ||
16693 | fi | ||
16694 | ac_cv_prog_CC="cc" | ||
16695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16696 | break 2 | ||
16697 | fi | ||
16698 | done | ||
16699 | done | ||
16700 | IFS=$as_save_IFS | ||
16701 | |||
16702 | if test $ac_prog_rejected = yes; then | ||
16703 | # We found a bogon in the path, so make sure we never use it. | ||
16704 | set dummy $ac_cv_prog_CC | ||
16705 | shift | ||
16706 | if test $# != 0; then | ||
16707 | # We chose a different compiler from the bogus one. | ||
16708 | # However, it has the same basename, so the bogon will be chosen | ||
16709 | # first if we set CC to just the basename; use the full file name. | ||
16710 | shift | ||
16711 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
16712 | fi | ||
16713 | fi | ||
16714 | fi | ||
16715 | fi | ||
16716 | CC=$ac_cv_prog_CC | ||
16717 | if test -n "$CC"; then | ||
16718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
16719 | $as_echo "$CC" >&6; } | ||
16720 | else | ||
16721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16722 | $as_echo "no" >&6; } | ||
16723 | fi | ||
16724 | |||
16725 | |||
16726 | fi | ||
16727 | if test -z "$CC"; then | ||
16728 | if test -n "$ac_tool_prefix"; then | ||
16729 | for ac_prog in cl.exe | ||
16730 | do | ||
16731 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
16732 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
16733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16734 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16735 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
16736 | $as_echo_n "(cached) " >&6 | ||
16737 | else | ||
16738 | if test -n "$CC"; then | ||
16739 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
16740 | else | ||
16741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16742 | for as_dir in $PATH | ||
16743 | do | ||
16744 | IFS=$as_save_IFS | ||
16745 | test -z "$as_dir" && as_dir=. | ||
16746 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16748 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
16749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16750 | break 2 | ||
16751 | fi | ||
16752 | done | ||
16753 | done | ||
16754 | IFS=$as_save_IFS | ||
16755 | |||
16756 | fi | ||
16757 | fi | ||
16758 | CC=$ac_cv_prog_CC | ||
16759 | if test -n "$CC"; then | ||
16760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
16761 | $as_echo "$CC" >&6; } | ||
16762 | else | ||
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16764 | $as_echo "no" >&6; } | ||
16765 | fi | ||
16766 | |||
16767 | |||
16768 | test -n "$CC" && break | ||
16769 | done | ||
16770 | fi | ||
16771 | if test -z "$CC"; then | ||
16772 | ac_ct_CC=$CC | ||
16773 | for ac_prog in cl.exe | ||
16774 | do | ||
16775 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
16776 | set dummy $ac_prog; ac_word=$2 | ||
16777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16778 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16779 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
16780 | $as_echo_n "(cached) " >&6 | ||
16781 | else | ||
16782 | if test -n "$ac_ct_CC"; then | ||
16783 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
16784 | else | ||
16785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16786 | for as_dir in $PATH | ||
16787 | do | ||
16788 | IFS=$as_save_IFS | ||
16789 | test -z "$as_dir" && as_dir=. | ||
16790 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16792 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
16793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16794 | break 2 | ||
16795 | fi | ||
16796 | done | ||
16797 | done | ||
16798 | IFS=$as_save_IFS | ||
16799 | |||
16800 | fi | ||
16801 | fi | ||
16802 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
16803 | if test -n "$ac_ct_CC"; then | ||
16804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
16805 | $as_echo "$ac_ct_CC" >&6; } | ||
16806 | else | ||
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16808 | $as_echo "no" >&6; } | ||
16809 | fi | ||
16810 | |||
16811 | |||
16812 | test -n "$ac_ct_CC" && break | ||
16813 | done | ||
16814 | |||
16815 | if test "x$ac_ct_CC" = x; then | ||
16816 | CC="" | ||
16817 | else | ||
16818 | case $cross_compiling:$ac_tool_warned in | ||
16819 | yes:) | ||
16820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
16821 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
16822 | ac_tool_warned=yes ;; | ||
16823 | esac | ||
16824 | CC=$ac_ct_CC | ||
16825 | fi | ||
16826 | fi | ||
16827 | |||
16828 | fi | ||
16829 | |||
16830 | |||
16831 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
16832 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
16833 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
16834 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
16835 | |||
16836 | # Provide some information about the compiler. | ||
16837 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
16838 | set X $ac_compile | ||
16839 | ac_compiler=$2 | ||
16840 | for ac_option in --version -v -V -qversion; do | ||
16841 | { { ac_try="$ac_compiler $ac_option >&5" | ||
16842 | case "(($ac_try" in | ||
16843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16844 | *) ac_try_echo=$ac_try;; | ||
16845 | esac | ||
16846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
16847 | $as_echo "$ac_try_echo"; } >&5 | ||
16848 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
16849 | ac_status=$? | ||
16850 | if test -s conftest.err; then | ||
16851 | sed '10a\ | ||
16852 | ... rest of stderr output deleted ... | ||
16853 | 10q' conftest.err >conftest.er1 | ||
16854 | cat conftest.er1 >&5 | ||
16855 | fi | ||
16856 | rm -f conftest.er1 conftest.err | ||
16857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16858 | test $ac_status = 0; } | ||
16859 | done | ||
16860 | |||
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
16862 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
16863 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
16864 | $as_echo_n "(cached) " >&6 | ||
16865 | else | ||
16866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16867 | /* end confdefs.h. */ | ||
16868 | |||
16869 | int | ||
16870 | main () | ||
16871 | { | ||
16872 | #ifndef __GNUC__ | ||
16873 | choke me | ||
16874 | #endif | ||
16875 | |||
16876 | ; | ||
16877 | return 0; | ||
16878 | } | ||
16879 | _ACEOF | ||
16880 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16881 | ac_compiler_gnu=yes | ||
16882 | else | ||
16883 | ac_compiler_gnu=no | ||
16884 | fi | ||
16885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16886 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
16887 | |||
16888 | fi | ||
16889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
16890 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
16891 | if test $ac_compiler_gnu = yes; then | ||
16892 | GCC=yes | ||
16893 | else | ||
16894 | GCC= | ||
16895 | fi | ||
16896 | ac_test_CFLAGS=${CFLAGS+set} | ||
16897 | ac_save_CFLAGS=$CFLAGS | ||
16898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
16899 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
16900 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
16901 | $as_echo_n "(cached) " >&6 | ||
16902 | else | ||
16903 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
16904 | ac_c_werror_flag=yes | ||
16905 | ac_cv_prog_cc_g=no | ||
16906 | CFLAGS="-g" | ||
16907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16908 | /* end confdefs.h. */ | ||
16909 | |||
16910 | int | ||
16911 | main () | ||
16912 | { | ||
16913 | |||
16914 | ; | ||
16915 | return 0; | ||
16916 | } | ||
16917 | _ACEOF | ||
16918 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16919 | ac_cv_prog_cc_g=yes | ||
16920 | else | ||
16921 | CFLAGS="" | ||
16922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16923 | /* end confdefs.h. */ | ||
16924 | |||
16925 | int | ||
16926 | main () | ||
16927 | { | ||
16928 | |||
16929 | ; | ||
16930 | return 0; | ||
16931 | } | ||
16932 | _ACEOF | ||
16933 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16934 | |||
16935 | else | ||
16936 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
16937 | CFLAGS="-g" | ||
16938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16939 | /* end confdefs.h. */ | ||
16940 | |||
16941 | int | ||
16942 | main () | ||
16943 | { | ||
16944 | |||
16945 | ; | ||
16946 | return 0; | ||
16947 | } | ||
16948 | _ACEOF | ||
16949 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16950 | ac_cv_prog_cc_g=yes | ||
16951 | fi | ||
16952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16953 | fi | ||
16954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16955 | fi | ||
16956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16957 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
16958 | fi | ||
16959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
16960 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
16961 | if test "$ac_test_CFLAGS" = set; then | ||
16962 | CFLAGS=$ac_save_CFLAGS | ||
16963 | elif test $ac_cv_prog_cc_g = yes; then | ||
16964 | if test "$GCC" = yes; then | ||
16965 | CFLAGS="-g -O2" | ||
16966 | else | ||
16967 | CFLAGS="-g" | ||
16968 | fi | ||
16969 | else | ||
16970 | if test "$GCC" = yes; then | ||
16971 | CFLAGS="-O2" | ||
16972 | else | ||
16973 | CFLAGS= | ||
16974 | fi | ||
16975 | fi | ||
16976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
16977 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
16978 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
16979 | $as_echo_n "(cached) " >&6 | ||
16980 | else | ||
16981 | ac_cv_prog_cc_c89=no | ||
16982 | ac_save_CC=$CC | ||
16983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16984 | /* end confdefs.h. */ | ||
16985 | #include <stdarg.h> | ||
16986 | #include <stdio.h> | ||
16987 | #include <sys/types.h> | ||
16988 | #include <sys/stat.h> | ||
16989 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
16990 | struct buf { int x; }; | ||
16991 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
16992 | static char *e (p, i) | ||
16993 | char **p; | ||
16994 | int i; | ||
16995 | { | ||
16996 | return p[i]; | ||
16997 | } | ||
16998 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
16999 | { | ||
17000 | char *s; | ||
17001 | va_list v; | ||
17002 | va_start (v,p); | ||
17003 | s = g (p, va_arg (v,int)); | ||
17004 | va_end (v); | ||
17005 | return s; | ||
17006 | } | ||
17007 | |||
17008 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
17009 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
17010 | These don't provoke an error unfortunately, instead are silently treated | ||
17011 | as 'x'. The following induces an error, until -std is added to get | ||
17012 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
17013 | array size at least. It's necessary to write '\x00'==0 to get something | ||
17014 | that's true only with -std. */ | ||
17015 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
17016 | |||
17017 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
17018 | inside strings and character constants. */ | ||
17019 | #define FOO(x) 'x' | ||
17020 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
17021 | |||
17022 | int test (int i, double x); | ||
17023 | struct s1 {int (*f) (int a);}; | ||
17024 | struct s2 {int (*f) (double a);}; | ||
17025 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
17026 | int argc; | ||
17027 | char **argv; | ||
17028 | int | ||
17029 | main () | ||
17030 | { | ||
17031 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
17032 | ; | ||
17033 | return 0; | ||
17034 | } | ||
17035 | _ACEOF | ||
17036 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
17037 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
17038 | do | ||
17039 | CC="$ac_save_CC $ac_arg" | ||
17040 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17041 | ac_cv_prog_cc_c89=$ac_arg | ||
17042 | fi | ||
17043 | rm -f core conftest.err conftest.$ac_objext | ||
17044 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
17045 | done | ||
17046 | rm -f conftest.$ac_ext | ||
17047 | CC=$ac_save_CC | ||
17048 | |||
17049 | fi | ||
17050 | # AC_CACHE_VAL | ||
17051 | case "x$ac_cv_prog_cc_c89" in | ||
17052 | x) | ||
17053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
17054 | $as_echo "none needed" >&6; } ;; | ||
17055 | xno) | ||
17056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
17057 | $as_echo "unsupported" >&6; } ;; | ||
17058 | *) | ||
17059 | CC="$CC $ac_cv_prog_cc_c89" | ||
17060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
17061 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
17062 | esac | ||
17063 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
17064 | |||
17065 | fi | ||
17066 | |||
17067 | ac_ext=c | ||
17068 | ac_cpp='$CPP $CPPFLAGS' | ||
17069 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
17070 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
17071 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
17072 | |||
17073 | depcc="$CC" am_compiler_list= | ||
17074 | |||
17075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
17076 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
17077 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
17078 | $as_echo_n "(cached) " >&6 | ||
17079 | else | ||
17080 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
17081 | # We make a subdir and do the tests there. Otherwise we can end up | ||
17082 | # making bogus files that we don't know about and never remove. For | ||
17083 | # instance it was reported that on HP-UX the gcc test will end up | ||
17084 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
17085 | # in D'. | ||
17086 | mkdir conftest.dir | ||
17087 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
17088 | # using a relative directory. | ||
17089 | cp "$am_depcomp" conftest.dir | ||
17090 | cd conftest.dir | ||
17091 | # We will build objects and dependencies in a subdirectory because | ||
17092 | # it helps to detect inapplicable dependency modes. For instance | ||
17093 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
17094 | # side effect of compilation, but ICC will put the dependencies in | ||
17095 | # the current directory while Tru64 will put them in the object | ||
17096 | # directory. | ||
17097 | mkdir sub | ||
17098 | |||
17099 | am_cv_CC_dependencies_compiler_type=none | ||
17100 | if test "$am_compiler_list" = ""; then | ||
17101 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
17102 | fi | ||
17103 | am__universal=false | ||
17104 | case " $depcc " in #( | ||
17105 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
17106 | esac | ||
17107 | |||
17108 | for depmode in $am_compiler_list; do | ||
17109 | # Setup a source with many dependencies, because some compilers | ||
17110 | # like to wrap large dependency lists on column 80 (with \), and | ||
17111 | # we should not choose a depcomp mode which is confused by this. | ||
17112 | # | ||
17113 | # We need to recreate these files for each test, as the compiler may | ||
17114 | # overwrite some of them when testing with obscure command lines. | ||
17115 | # This happens at least with the AIX C compiler. | ||
17116 | : > sub/conftest.c | ||
17117 | for i in 1 2 3 4 5 6; do | ||
17118 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
17119 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
17120 | # Solaris 8's {/usr,}/bin/sh. | ||
17121 | touch sub/conftst$i.h | ||
17122 | done | ||
17123 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
17124 | |||
17125 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
17126 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
17127 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
17128 | # versions had trouble with output in subdirs | ||
17129 | am__obj=sub/conftest.${OBJEXT-o} | ||
17130 | am__minus_obj="-o $am__obj" | ||
17131 | case $depmode in | ||
17132 | gcc) | ||
17133 | # This depmode causes a compiler race in universal mode. | ||
17134 | test "$am__universal" = false || continue | ||
17135 | ;; | ||
17136 | nosideeffect) | ||
17137 | # after this tag, mechanisms are not by side-effect, so they'll | ||
17138 | # only be used when explicitly requested | ||
17139 | if test "x$enable_dependency_tracking" = xyes; then | ||
17140 | continue | ||
17141 | else | ||
17142 | break | ||
17143 | fi | ||
17144 | ;; | ||
17145 | msvisualcpp | msvcmsys) | ||
17146 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
17147 | # not run yet. These depmodes are late enough in the game, and | ||
17148 | # so weak that their functioning should not be impacted. | ||
17149 | am__obj=conftest.${OBJEXT-o} | ||
17150 | am__minus_obj= | ||
17151 | ;; | ||
17152 | none) break ;; | ||
17153 | esac | ||
17154 | if depmode=$depmode \ | ||
17155 | source=sub/conftest.c object=$am__obj \ | ||
17156 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
17157 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
17158 | >/dev/null 2>conftest.err && | ||
17159 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
17160 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
17161 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
17162 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
17163 | # icc doesn't choke on unknown options, it will just issue warnings | ||
17164 | # or remarks (even with -Werror). So we grep stderr for any message | ||
17165 | # that says an option was ignored or not supported. | ||
17166 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
17167 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
17168 | # The diagnosis changed in icc 8.0: | ||
17169 | # icc: Command line remark: option '-MP' not supported | ||
17170 | if (grep 'ignoring option' conftest.err || | ||
17171 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
17172 | am_cv_CC_dependencies_compiler_type=$depmode | ||
17173 | break | ||
17174 | fi | ||
17175 | fi | ||
17176 | done | ||
17177 | |||
17178 | cd .. | ||
17179 | rm -rf conftest.dir | ||
17180 | else | ||
17181 | am_cv_CC_dependencies_compiler_type=none | ||
17182 | fi | ||
17183 | |||
17184 | fi | ||
17185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
17186 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
17187 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
17188 | |||
17189 | if | ||
17190 | test "x$enable_dependency_tracking" != xno \ | ||
17191 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
17192 | am__fastdepCC_TRUE= | ||
17193 | am__fastdepCC_FALSE='#' | ||
17194 | else | ||
17195 | am__fastdepCC_TRUE='#' | ||
17196 | am__fastdepCC_FALSE= | ||
17197 | fi | ||
17198 | |||
17199 | |||
17200 | |||
17201 | # pkg-config | ||
17202 | |||
17203 | |||
17204 | |||
17205 | |||
17206 | |||
17207 | |||
17208 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
17209 | if test -n "$ac_tool_prefix"; then | ||
17210 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
17211 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
17212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17213 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17214 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
17215 | $as_echo_n "(cached) " >&6 | ||
17216 | else | ||
17217 | case $PKG_CONFIG in | ||
17218 | [\\/]* | ?:[\\/]*) | ||
17219 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
17220 | ;; | ||
17221 | *) | ||
17222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17223 | for as_dir in $PATH | ||
17224 | do | ||
17225 | IFS=$as_save_IFS | ||
17226 | test -z "$as_dir" && as_dir=. | ||
17227 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17229 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
17230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17231 | break 2 | ||
17232 | fi | ||
17233 | done | ||
17234 | done | ||
17235 | IFS=$as_save_IFS | ||
17236 | |||
17237 | ;; | ||
17238 | esac | ||
17239 | fi | ||
17240 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
17241 | if test -n "$PKG_CONFIG"; then | ||
17242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
17243 | $as_echo "$PKG_CONFIG" >&6; } | ||
17244 | else | ||
17245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17246 | $as_echo "no" >&6; } | ||
17247 | fi | ||
17248 | |||
17249 | |||
17250 | fi | ||
17251 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
17252 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
17253 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
17254 | set dummy pkg-config; ac_word=$2 | ||
17255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17256 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17257 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
17258 | $as_echo_n "(cached) " >&6 | ||
17259 | else | ||
17260 | case $ac_pt_PKG_CONFIG in | ||
17261 | [\\/]* | ?:[\\/]*) | ||
17262 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
17263 | ;; | ||
17264 | *) | ||
17265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17266 | for as_dir in $PATH | ||
17267 | do | ||
17268 | IFS=$as_save_IFS | ||
17269 | test -z "$as_dir" && as_dir=. | ||
17270 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17272 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
17273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17274 | break 2 | ||
17275 | fi | ||
17276 | done | ||
17277 | done | ||
17278 | IFS=$as_save_IFS | ||
17279 | |||
17280 | ;; | ||
17281 | esac | ||
17282 | fi | ||
17283 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
17284 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
17285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
17286 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
17287 | else | ||
17288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17289 | $as_echo "no" >&6; } | ||
17290 | fi | ||
17291 | |||
17292 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
17293 | PKG_CONFIG="" | ||
17294 | else | ||
17295 | case $cross_compiling:$ac_tool_warned in | ||
17296 | yes:) | ||
17297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
17298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17299 | ac_tool_warned=yes ;; | ||
17300 | esac | ||
17301 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
17302 | fi | ||
17303 | else | ||
17304 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
17305 | fi | ||
17306 | |||
17307 | fi | ||
17308 | if test -n "$PKG_CONFIG"; then | ||
17309 | _pkg_min_version=0.9.0 | ||
17310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
17311 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
17312 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
17313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17314 | $as_echo "yes" >&6; } | ||
17315 | else | ||
17316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17317 | $as_echo "no" >&6; } | ||
17318 | PKG_CONFIG="" | ||
17319 | fi | ||
17320 | fi | ||
17321 | |||
17322 | # Check whether pkg-config supports Requires.private | ||
17323 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
17324 | pkgconfig_requires_private="Requires.private" | ||
17325 | else | ||
17326 | pkgconfig_requires_private="Requires" | ||
17327 | fi | ||
17328 | |||
17329 | |||
17330 | # doxygen program for documentation building | ||
17331 | |||
17332 | |||
17333 | # Check whether --enable-doc was given. | ||
17334 | if test "${enable_doc+set}" = set; then : | ||
17335 | enableval=$enable_doc; | ||
17336 | if test "x${enableval}" = "xyes" ; then | ||
17337 | efl_enable_doc="yes" | ||
17338 | else | ||
17339 | efl_enable_doc="no" | ||
17340 | fi | ||
17341 | |||
17342 | else | ||
17343 | efl_enable_doc="yes" | ||
17344 | fi | ||
17345 | |||
17346 | |||
17347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
17348 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
17349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
17350 | $as_echo "${efl_enable_doc}" >&6; } | ||
17351 | |||
17352 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
17353 | |||
17354 | |||
17355 | efl_doxygen="doxygen" | ||
17356 | |||
17357 | |||
17358 | # Check whether --with-doxygen was given. | ||
17359 | if test "${with_doxygen+set}" = set; then : | ||
17360 | withval=$with_doxygen; | ||
17361 | efl_doxygen=${withval} | ||
17362 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
17363 | set dummy ${efl_doxygen}; ac_word=$2 | ||
17364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17365 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17366 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
17367 | $as_echo_n "(cached) " >&6 | ||
17368 | else | ||
17369 | if test -n "$efl_have_doxygen"; then | ||
17370 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
17371 | else | ||
17372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17373 | for as_dir in $PATH | ||
17374 | do | ||
17375 | IFS=$as_save_IFS | ||
17376 | test -z "$as_dir" && as_dir=. | ||
17377 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17378 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17379 | ac_cv_prog_efl_have_doxygen="yes" | ||
17380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17381 | break 2 | ||
17382 | fi | ||
17383 | done | ||
17384 | done | ||
17385 | IFS=$as_save_IFS | ||
17386 | |||
17387 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
17388 | fi | ||
17389 | fi | ||
17390 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
17391 | if test -n "$efl_have_doxygen"; then | ||
17392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
17393 | $as_echo "$efl_have_doxygen" >&6; } | ||
17394 | else | ||
17395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17396 | $as_echo "no" >&6; } | ||
17397 | fi | ||
17398 | |||
17399 | |||
17400 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
17401 | echo "WARNING:" | ||
17402 | echo "The doxygen program you specified:" | ||
17403 | echo "${efl_doxygen}" | ||
17404 | echo "was not found. Please check the path and make sure " | ||
17405 | echo "the program exists and is executable." | ||
17406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
17407 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
17408 | fi | ||
17409 | |||
17410 | else | ||
17411 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
17412 | set dummy ${efl_doxygen}; ac_word=$2 | ||
17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17414 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17415 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
17416 | $as_echo_n "(cached) " >&6 | ||
17417 | else | ||
17418 | if test -n "$efl_have_doxygen"; then | ||
17419 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
17420 | else | ||
17421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17422 | for as_dir in $PATH | ||
17423 | do | ||
17424 | IFS=$as_save_IFS | ||
17425 | test -z "$as_dir" && as_dir=. | ||
17426 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17428 | ac_cv_prog_efl_have_doxygen="yes" | ||
17429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17430 | break 2 | ||
17431 | fi | ||
17432 | done | ||
17433 | done | ||
17434 | IFS=$as_save_IFS | ||
17435 | |||
17436 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
17437 | fi | ||
17438 | fi | ||
17439 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
17440 | if test -n "$efl_have_doxygen"; then | ||
17441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
17442 | $as_echo "$efl_have_doxygen" >&6; } | ||
17443 | else | ||
17444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17445 | $as_echo "no" >&6; } | ||
17446 | fi | ||
17447 | |||
17448 | |||
17449 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
17450 | echo "WARNING:" | ||
17451 | echo "The doxygen program was not found in your execute path." | ||
17452 | echo "You may have doxygen installed somewhere not covered by your path." | ||
17453 | echo "" | ||
17454 | echo "If this is the case make sure you have the packages installed, AND" | ||
17455 | echo "that the doxygen program is in your execute path (see your" | ||
17456 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
17457 | echo "alternatively, specify the program to use with --with-doxygen." | ||
17458 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
17459 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
17460 | fi | ||
17461 | |||
17462 | fi | ||
17463 | |||
17464 | fi | ||
17465 | |||
17466 | |||
17467 | |||
17468 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
17469 | efl_enable_doc="no" | ||
17470 | fi | ||
17471 | |||
17472 | if test "x${efl_enable_doc}" = "xyes"; then | ||
17473 | EFL_BUILD_DOC_TRUE= | ||
17474 | EFL_BUILD_DOC_FALSE='#' | ||
17475 | else | ||
17476 | EFL_BUILD_DOC_TRUE='#' | ||
17477 | EFL_BUILD_DOC_FALSE= | ||
17478 | fi | ||
17479 | |||
17480 | |||
17481 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
17482 | build_doc="yes" | ||
17483 | else | ||
17484 | build_doc="no" | ||
17485 | fi | ||
17486 | |||
17487 | |||
17488 | |||
17489 | |||
17490 | ### Checks for libraries | ||
17491 | |||
17492 | # Evil library for compilation on Windows CE | ||
17493 | |||
17494 | case "$host_os" in | ||
17495 | mingw*) | ||
17496 | |||
17497 | pkg_failed=no | ||
17498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
17499 | $as_echo_n "checking for EVIL... " >&6; } | ||
17500 | |||
17501 | if test -n "$EVIL_CFLAGS"; then | ||
17502 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
17503 | elif test -n "$PKG_CONFIG"; then | ||
17504 | if test -n "$PKG_CONFIG" && \ | ||
17505 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
17506 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
17507 | ac_status=$? | ||
17508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17509 | test $ac_status = 0; }; then | ||
17510 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
17511 | else | ||
17512 | pkg_failed=yes | ||
17513 | fi | ||
17514 | else | ||
17515 | pkg_failed=untried | ||
17516 | fi | ||
17517 | if test -n "$EVIL_LIBS"; then | ||
17518 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
17519 | elif test -n "$PKG_CONFIG"; then | ||
17520 | if test -n "$PKG_CONFIG" && \ | ||
17521 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
17522 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
17523 | ac_status=$? | ||
17524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17525 | test $ac_status = 0; }; then | ||
17526 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
17527 | else | ||
17528 | pkg_failed=yes | ||
17529 | fi | ||
17530 | else | ||
17531 | pkg_failed=untried | ||
17532 | fi | ||
17533 | |||
17534 | |||
17535 | |||
17536 | if test $pkg_failed = yes; then | ||
17537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17538 | $as_echo "no" >&6; } | ||
17539 | |||
17540 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17541 | _pkg_short_errors_supported=yes | ||
17542 | else | ||
17543 | _pkg_short_errors_supported=no | ||
17544 | fi | ||
17545 | if test $_pkg_short_errors_supported = yes; then | ||
17546 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
17547 | else | ||
17548 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
17549 | fi | ||
17550 | # Put the nasty error message in config.log where it belongs | ||
17551 | echo "$EVIL_PKG_ERRORS" >&5 | ||
17552 | |||
17553 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
17554 | |||
17555 | $EVIL_PKG_ERRORS | ||
17556 | |||
17557 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
17558 | installed software in a non-standard prefix. | ||
17559 | |||
17560 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
17561 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
17562 | See the pkg-config man page for more details." "$LINENO" 5 | ||
17563 | elif test $pkg_failed = untried; then | ||
17564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17565 | $as_echo "no" >&6; } | ||
17566 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17567 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17568 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
17569 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
17570 | path to pkg-config. | ||
17571 | |||
17572 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
17573 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
17574 | See the pkg-config man page for more details. | ||
17575 | |||
17576 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
17577 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17578 | else | ||
17579 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
17580 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
17581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17582 | $as_echo "yes" >&6; } | ||
17583 | |||
17584 | fi | ||
17585 | |||
17586 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
17587 | |||
17588 | requirement_evas="evil ${requirement_evas}" | ||
17589 | ;; | ||
17590 | esac | ||
17591 | |||
17592 | ## strong dependencies | ||
17593 | |||
17594 | # Eina | ||
17595 | |||
17596 | pkg_failed=no | ||
17597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EINA" >&5 | ||
17598 | $as_echo_n "checking for EINA... " >&6; } | ||
17599 | |||
17600 | if test -n "$EINA_CFLAGS"; then | ||
17601 | pkg_cv_EINA_CFLAGS="$EINA_CFLAGS" | ||
17602 | elif test -n "$PKG_CONFIG"; then | ||
17603 | if test -n "$PKG_CONFIG" && \ | ||
17604 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.1.0\""; } >&5 | ||
17605 | ($PKG_CONFIG --exists --print-errors "eina >= 1.1.0") 2>&5 | ||
17606 | ac_status=$? | ||
17607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17608 | test $ac_status = 0; }; then | ||
17609 | pkg_cv_EINA_CFLAGS=`$PKG_CONFIG --cflags "eina >= 1.1.0" 2>/dev/null` | ||
17610 | else | ||
17611 | pkg_failed=yes | ||
17612 | fi | ||
17613 | else | ||
17614 | pkg_failed=untried | ||
17615 | fi | ||
17616 | if test -n "$EINA_LIBS"; then | ||
17617 | pkg_cv_EINA_LIBS="$EINA_LIBS" | ||
17618 | elif test -n "$PKG_CONFIG"; then | ||
17619 | if test -n "$PKG_CONFIG" && \ | ||
17620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.1.0\""; } >&5 | ||
17621 | ($PKG_CONFIG --exists --print-errors "eina >= 1.1.0") 2>&5 | ||
17622 | ac_status=$? | ||
17623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17624 | test $ac_status = 0; }; then | ||
17625 | pkg_cv_EINA_LIBS=`$PKG_CONFIG --libs "eina >= 1.1.0" 2>/dev/null` | ||
17626 | else | ||
17627 | pkg_failed=yes | ||
17628 | fi | ||
17629 | else | ||
17630 | pkg_failed=untried | ||
17631 | fi | ||
17632 | |||
17633 | |||
17634 | |||
17635 | if test $pkg_failed = yes; then | ||
17636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17637 | $as_echo "no" >&6; } | ||
17638 | |||
17639 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17640 | _pkg_short_errors_supported=yes | ||
17641 | else | ||
17642 | _pkg_short_errors_supported=no | ||
17643 | fi | ||
17644 | if test $_pkg_short_errors_supported = yes; then | ||
17645 | EINA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eina >= 1.1.0" 2>&1` | ||
17646 | else | ||
17647 | EINA_PKG_ERRORS=`$PKG_CONFIG --print-errors "eina >= 1.1.0" 2>&1` | ||
17648 | fi | ||
17649 | # Put the nasty error message in config.log where it belongs | ||
17650 | echo "$EINA_PKG_ERRORS" >&5 | ||
17651 | |||
17652 | as_fn_error $? "Package requirements (eina >= 1.1.0) were not met: | ||
17653 | |||
17654 | $EINA_PKG_ERRORS | ||
17655 | |||
17656 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
17657 | installed software in a non-standard prefix. | ||
17658 | |||
17659 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
17660 | and EINA_LIBS to avoid the need to call pkg-config. | ||
17661 | See the pkg-config man page for more details." "$LINENO" 5 | ||
17662 | elif test $pkg_failed = untried; then | ||
17663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17664 | $as_echo "no" >&6; } | ||
17665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17666 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17667 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
17668 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
17669 | path to pkg-config. | ||
17670 | |||
17671 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
17672 | and EINA_LIBS to avoid the need to call pkg-config. | ||
17673 | See the pkg-config man page for more details. | ||
17674 | |||
17675 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
17676 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17677 | else | ||
17678 | EINA_CFLAGS=$pkg_cv_EINA_CFLAGS | ||
17679 | EINA_LIBS=$pkg_cv_EINA_LIBS | ||
17680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17681 | $as_echo "yes" >&6; } | ||
17682 | |||
17683 | fi | ||
17684 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
17685 | CPPFLAGS="$CPPFLAGS $EINA_CFLAGS" | ||
17686 | # The cast to long int works around a bug in the HP C Compiler | ||
17687 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
17688 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
17689 | # This bug is HP SR number 8606223364. | ||
17690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Eina_Unicode" >&5 | ||
17691 | $as_echo_n "checking size of Eina_Unicode... " >&6; } | ||
17692 | if test "${ac_cv_sizeof_Eina_Unicode+set}" = set; then : | ||
17693 | $as_echo_n "(cached) " >&6 | ||
17694 | else | ||
17695 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (Eina_Unicode))" "ac_cv_sizeof_Eina_Unicode" "#include <Eina.h> | ||
17696 | "; then : | ||
17697 | |||
17698 | else | ||
17699 | if test "$ac_cv_type_Eina_Unicode" = yes; then | ||
17700 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17701 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17702 | as_fn_error 77 "cannot compute sizeof (Eina_Unicode) | ||
17703 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17704 | else | ||
17705 | ac_cv_sizeof_Eina_Unicode=0 | ||
17706 | fi | ||
17707 | fi | ||
17708 | |||
17709 | fi | ||
17710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Eina_Unicode" >&5 | ||
17711 | $as_echo "$ac_cv_sizeof_Eina_Unicode" >&6; } | ||
17712 | |||
17713 | |||
17714 | |||
17715 | cat >>confdefs.h <<_ACEOF | ||
17716 | #define SIZEOF_EINA_UNICODE $ac_cv_sizeof_Eina_Unicode | ||
17717 | _ACEOF | ||
17718 | |||
17719 | |||
17720 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
17721 | |||
17722 | # Freetype | ||
17723 | |||
17724 | pkg_failed=no | ||
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 | ||
17726 | $as_echo_n "checking for FREETYPE... " >&6; } | ||
17727 | |||
17728 | if test -n "$FREETYPE_CFLAGS"; then | ||
17729 | pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" | ||
17730 | elif test -n "$PKG_CONFIG"; then | ||
17731 | if test -n "$PKG_CONFIG" && \ | ||
17732 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.3.0\""; } >&5 | ||
17733 | ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.3.0") 2>&5 | ||
17734 | ac_status=$? | ||
17735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17736 | test $ac_status = 0; }; then | ||
17737 | pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.3.0" 2>/dev/null` | ||
17738 | else | ||
17739 | pkg_failed=yes | ||
17740 | fi | ||
17741 | else | ||
17742 | pkg_failed=untried | ||
17743 | fi | ||
17744 | if test -n "$FREETYPE_LIBS"; then | ||
17745 | pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" | ||
17746 | elif test -n "$PKG_CONFIG"; then | ||
17747 | if test -n "$PKG_CONFIG" && \ | ||
17748 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.3.0\""; } >&5 | ||
17749 | ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.3.0") 2>&5 | ||
17750 | ac_status=$? | ||
17751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17752 | test $ac_status = 0; }; then | ||
17753 | pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.3.0" 2>/dev/null` | ||
17754 | else | ||
17755 | pkg_failed=yes | ||
17756 | fi | ||
17757 | else | ||
17758 | pkg_failed=untried | ||
17759 | fi | ||
17760 | |||
17761 | |||
17762 | |||
17763 | if test $pkg_failed = yes; then | ||
17764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17765 | $as_echo "no" >&6; } | ||
17766 | |||
17767 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17768 | _pkg_short_errors_supported=yes | ||
17769 | else | ||
17770 | _pkg_short_errors_supported=no | ||
17771 | fi | ||
17772 | if test $_pkg_short_errors_supported = yes; then | ||
17773 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 9.3.0" 2>&1` | ||
17774 | else | ||
17775 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 9.3.0" 2>&1` | ||
17776 | fi | ||
17777 | # Put the nasty error message in config.log where it belongs | ||
17778 | echo "$FREETYPE_PKG_ERRORS" >&5 | ||
17779 | |||
17780 | as_fn_error $? "Package requirements (freetype2 >= 9.3.0) were not met: | ||
17781 | |||
17782 | $FREETYPE_PKG_ERRORS | ||
17783 | |||
17784 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
17785 | installed software in a non-standard prefix. | ||
17786 | |||
17787 | Alternatively, you may set the environment variables FREETYPE_CFLAGS | ||
17788 | and FREETYPE_LIBS to avoid the need to call pkg-config. | ||
17789 | See the pkg-config man page for more details." "$LINENO" 5 | ||
17790 | elif test $pkg_failed = untried; then | ||
17791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17792 | $as_echo "no" >&6; } | ||
17793 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17794 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17795 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
17796 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
17797 | path to pkg-config. | ||
17798 | |||
17799 | Alternatively, you may set the environment variables FREETYPE_CFLAGS | ||
17800 | and FREETYPE_LIBS to avoid the need to call pkg-config. | ||
17801 | See the pkg-config man page for more details. | ||
17802 | |||
17803 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
17804 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17805 | else | ||
17806 | FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS | ||
17807 | FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS | ||
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17809 | $as_echo "yes" >&6; } | ||
17810 | |||
17811 | fi | ||
17812 | |||
17813 | requirement_evas="freetype2 eina >= 1.1.0 ${requirement_evas}" | ||
17814 | |||
17815 | ## optional dependencies | ||
17816 | |||
17817 | # FontConfig | ||
17818 | have_fontconfig="no" | ||
17819 | # Check whether --enable-fontconfig was given. | ||
17820 | if test "${enable_fontconfig+set}" = set; then : | ||
17821 | enableval=$enable_fontconfig; | ||
17822 | if test "x${enableval}" = "xyes" ; then | ||
17823 | want_fontconfig="yes" | ||
17824 | else | ||
17825 | want_fontconfig="no" | ||
17826 | fi | ||
17827 | |||
17828 | fi | ||
17829 | |||
17830 | |||
17831 | |||
17832 | if test "x${want_fontconfig}" = "xyes" -o "x${want_fontconfig}" = "xauto" ; then | ||
17833 | |||
17834 | pkg_failed=no | ||
17835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 | ||
17836 | $as_echo_n "checking for FONTCONFIG... " >&6; } | ||
17837 | |||
17838 | if test -n "$FONTCONFIG_CFLAGS"; then | ||
17839 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" | ||
17840 | elif test -n "$PKG_CONFIG"; then | ||
17841 | if test -n "$PKG_CONFIG" && \ | ||
17842 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.0\""; } >&5 | ||
17843 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.0") 2>&5 | ||
17844 | ac_status=$? | ||
17845 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17846 | test $ac_status = 0; }; then | ||
17847 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.0" 2>/dev/null` | ||
17848 | else | ||
17849 | pkg_failed=yes | ||
17850 | fi | ||
17851 | else | ||
17852 | pkg_failed=untried | ||
17853 | fi | ||
17854 | if test -n "$FONTCONFIG_LIBS"; then | ||
17855 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" | ||
17856 | elif test -n "$PKG_CONFIG"; then | ||
17857 | if test -n "$PKG_CONFIG" && \ | ||
17858 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.0\""; } >&5 | ||
17859 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.0") 2>&5 | ||
17860 | ac_status=$? | ||
17861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17862 | test $ac_status = 0; }; then | ||
17863 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.0" 2>/dev/null` | ||
17864 | else | ||
17865 | pkg_failed=yes | ||
17866 | fi | ||
17867 | else | ||
17868 | pkg_failed=untried | ||
17869 | fi | ||
17870 | |||
17871 | |||
17872 | |||
17873 | if test $pkg_failed = yes; then | ||
17874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17875 | $as_echo "no" >&6; } | ||
17876 | |||
17877 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17878 | _pkg_short_errors_supported=yes | ||
17879 | else | ||
17880 | _pkg_short_errors_supported=no | ||
17881 | fi | ||
17882 | if test $_pkg_short_errors_supported = yes; then | ||
17883 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.5.0" 2>&1` | ||
17884 | else | ||
17885 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.5.0" 2>&1` | ||
17886 | fi | ||
17887 | # Put the nasty error message in config.log where it belongs | ||
17888 | echo "$FONTCONFIG_PKG_ERRORS" >&5 | ||
17889 | |||
17890 | |||
17891 | if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
17892 | as_fn_error $? "Fontconfig not found (strict dependencies checking)" "$LINENO" 5 | ||
17893 | fi | ||
17894 | |||
17895 | elif test $pkg_failed = untried; then | ||
17896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17897 | $as_echo "no" >&6; } | ||
17898 | |||
17899 | if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
17900 | as_fn_error $? "Fontconfig not found (strict dependencies checking)" "$LINENO" 5 | ||
17901 | fi | ||
17902 | |||
17903 | else | ||
17904 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS | ||
17905 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS | ||
17906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17907 | $as_echo "yes" >&6; } | ||
17908 | |||
17909 | have_fontconfig="yes" | ||
17910 | |||
17911 | $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h | ||
17912 | |||
17913 | requirement_evas="fontconfig ${requirement_evas}" | ||
17914 | |||
17915 | fi | ||
17916 | fi | ||
17917 | |||
17918 | # linebreak | ||
17919 | have_linebreak="no" | ||
17920 | want_linebreak="yes" | ||
17921 | # Check whether --enable-liblinebreak was given. | ||
17922 | if test "${enable_liblinebreak+set}" = set; then : | ||
17923 | enableval=$enable_liblinebreak; | ||
17924 | if test "x${enableval}" = "xyes" ; then | ||
17925 | want_linebreak="yes" | ||
17926 | else | ||
17927 | want_linebreak="no" | ||
17928 | fi | ||
17929 | |||
17930 | fi | ||
17931 | |||
17932 | |||
17933 | |||
17934 | if test "x${want_linebreak}" = "xyes"; then | ||
17935 | EVAS_USE_LINEBREAK_TRUE= | ||
17936 | EVAS_USE_LINEBREAK_FALSE='#' | ||
17937 | else | ||
17938 | EVAS_USE_LINEBREAK_TRUE='#' | ||
17939 | EVAS_USE_LINEBREAK_FALSE= | ||
17940 | fi | ||
17941 | |||
17942 | if test "x${want_linebreak}" = "xyes" ; then | ||
17943 | have_linebreak="yes" | ||
17944 | LINEBREAK_CFLAGS='-I$(top_srcdir)/src/static_deps/liblinebreak' | ||
17945 | LINEBREAK_LIBS='$(top_builddir)/src/static_deps/liblinebreak/liblinebreak.la' | ||
17946 | |||
17947 | |||
17948 | |||
17949 | $as_echo "#define HAVE_LINEBREAK 1" >>confdefs.h | ||
17950 | |||
17951 | else | ||
17952 | have_linebreak="no" | ||
17953 | fi | ||
17954 | |||
17955 | # fribidi support | ||
17956 | have_fribidi="no" | ||
17957 | # Check whether --enable-fribidi was given. | ||
17958 | if test "${enable_fribidi+set}" = set; then : | ||
17959 | enableval=$enable_fribidi; | ||
17960 | if test "x${enableval}" = "xyes" ; then | ||
17961 | want_fribidi="yes" | ||
17962 | else | ||
17963 | want_fribidi="no" | ||
17964 | fi | ||
17965 | |||
17966 | fi | ||
17967 | |||
17968 | |||
17969 | if test "x${want_fribidi}" = "xyes" -o "x${want_fribidi}" = "xauto" ; then | ||
17970 | |||
17971 | pkg_failed=no | ||
17972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5 | ||
17973 | $as_echo_n "checking for FRIBIDI... " >&6; } | ||
17974 | |||
17975 | if test -n "$FRIBIDI_CFLAGS"; then | ||
17976 | pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS" | ||
17977 | elif test -n "$PKG_CONFIG"; then | ||
17978 | if test -n "$PKG_CONFIG" && \ | ||
17979 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.2\""; } >&5 | ||
17980 | ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.2") 2>&5 | ||
17981 | ac_status=$? | ||
17982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17983 | test $ac_status = 0; }; then | ||
17984 | pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.19.2" 2>/dev/null` | ||
17985 | else | ||
17986 | pkg_failed=yes | ||
17987 | fi | ||
17988 | else | ||
17989 | pkg_failed=untried | ||
17990 | fi | ||
17991 | if test -n "$FRIBIDI_LIBS"; then | ||
17992 | pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS" | ||
17993 | elif test -n "$PKG_CONFIG"; then | ||
17994 | if test -n "$PKG_CONFIG" && \ | ||
17995 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.2\""; } >&5 | ||
17996 | ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.2") 2>&5 | ||
17997 | ac_status=$? | ||
17998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17999 | test $ac_status = 0; }; then | ||
18000 | pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.19.2" 2>/dev/null` | ||
18001 | else | ||
18002 | pkg_failed=yes | ||
18003 | fi | ||
18004 | else | ||
18005 | pkg_failed=untried | ||
18006 | fi | ||
18007 | |||
18008 | |||
18009 | |||
18010 | if test $pkg_failed = yes; then | ||
18011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18012 | $as_echo "no" >&6; } | ||
18013 | |||
18014 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18015 | _pkg_short_errors_supported=yes | ||
18016 | else | ||
18017 | _pkg_short_errors_supported=no | ||
18018 | fi | ||
18019 | if test $_pkg_short_errors_supported = yes; then | ||
18020 | FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fribidi >= 0.19.2" 2>&1` | ||
18021 | else | ||
18022 | FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --print-errors "fribidi >= 0.19.2" 2>&1` | ||
18023 | fi | ||
18024 | # Put the nasty error message in config.log where it belongs | ||
18025 | echo "$FRIBIDI_PKG_ERRORS" >&5 | ||
18026 | |||
18027 | |||
18028 | if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18029 | as_fn_error $? "Fribidi not found (strict dependencies checking)" "$LINENO" 5 | ||
18030 | fi | ||
18031 | |||
18032 | elif test $pkg_failed = untried; then | ||
18033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18034 | $as_echo "no" >&6; } | ||
18035 | |||
18036 | if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18037 | as_fn_error $? "Fribidi not found (strict dependencies checking)" "$LINENO" 5 | ||
18038 | fi | ||
18039 | |||
18040 | else | ||
18041 | FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS | ||
18042 | FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS | ||
18043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18044 | $as_echo "yes" >&6; } | ||
18045 | |||
18046 | have_fribidi="yes" | ||
18047 | |||
18048 | $as_echo "#define HAVE_FRIBIDI 1" >>confdefs.h | ||
18049 | |||
18050 | requirement_evas="fribidi ${requirement_evas}" | ||
18051 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
18052 | CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS" | ||
18053 | # The cast to long int works around a bug in the HP C Compiler | ||
18054 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
18055 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
18056 | # This bug is HP SR number 8606223364. | ||
18057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of FriBidiChar" >&5 | ||
18058 | $as_echo_n "checking size of FriBidiChar... " >&6; } | ||
18059 | if test "${ac_cv_sizeof_FriBidiChar+set}" = set; then : | ||
18060 | $as_echo_n "(cached) " >&6 | ||
18061 | else | ||
18062 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (FriBidiChar))" "ac_cv_sizeof_FriBidiChar" "#include <fribidi/fribidi.h> | ||
18063 | "; then : | ||
18064 | |||
18065 | else | ||
18066 | if test "$ac_cv_type_FriBidiChar" = yes; then | ||
18067 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
18068 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
18069 | as_fn_error 77 "cannot compute sizeof (FriBidiChar) | ||
18070 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
18071 | else | ||
18072 | ac_cv_sizeof_FriBidiChar=0 | ||
18073 | fi | ||
18074 | fi | ||
18075 | |||
18076 | fi | ||
18077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_FriBidiChar" >&5 | ||
18078 | $as_echo "$ac_cv_sizeof_FriBidiChar" >&6; } | ||
18079 | |||
18080 | |||
18081 | |||
18082 | cat >>confdefs.h <<_ACEOF | ||
18083 | #define SIZEOF_FRIBIDICHAR $ac_cv_sizeof_FriBidiChar | ||
18084 | _ACEOF | ||
18085 | |||
18086 | |||
18087 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
18088 | |||
18089 | fi | ||
18090 | fi | ||
18091 | |||
18092 | if test "x${have_fribidi}" = "xno"; then | ||
18093 | HAS_BIDI=0 | ||
18094 | fi | ||
18095 | |||
18096 | # harfbuzz support | ||
18097 | have_harfbuzz="no" | ||
18098 | have_harfbuzz_ft="no" | ||
18099 | # Check whether --enable-harfbuzz was given. | ||
18100 | if test "${enable_harfbuzz+set}" = set; then : | ||
18101 | enableval=$enable_harfbuzz; | ||
18102 | if test "x${enableval}" = "xyes" ; then | ||
18103 | want_harfbuzz="yes" | ||
18104 | else | ||
18105 | want_harfbuzz="no" | ||
18106 | fi | ||
18107 | |||
18108 | fi | ||
18109 | |||
18110 | |||
18111 | if test "x${want_harfbuzz}" = "xyes" -o "x${want_harfbuzz}" = "xauto" ; then | ||
18112 | |||
18113 | pkg_failed=no | ||
18114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5 | ||
18115 | $as_echo_n "checking for HARFBUZZ... " >&6; } | ||
18116 | |||
18117 | if test -n "$HARFBUZZ_CFLAGS"; then | ||
18118 | pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS" | ||
18119 | elif test -n "$PKG_CONFIG"; then | ||
18120 | if test -n "$PKG_CONFIG" && \ | ||
18121 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 0.6.0\""; } >&5 | ||
18122 | ($PKG_CONFIG --exists --print-errors "harfbuzz >= 0.6.0") 2>&5 | ||
18123 | ac_status=$? | ||
18124 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18125 | test $ac_status = 0; }; then | ||
18126 | pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "harfbuzz >= 0.6.0" 2>/dev/null` | ||
18127 | else | ||
18128 | pkg_failed=yes | ||
18129 | fi | ||
18130 | else | ||
18131 | pkg_failed=untried | ||
18132 | fi | ||
18133 | if test -n "$HARFBUZZ_LIBS"; then | ||
18134 | pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS" | ||
18135 | elif test -n "$PKG_CONFIG"; then | ||
18136 | if test -n "$PKG_CONFIG" && \ | ||
18137 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 0.6.0\""; } >&5 | ||
18138 | ($PKG_CONFIG --exists --print-errors "harfbuzz >= 0.6.0") 2>&5 | ||
18139 | ac_status=$? | ||
18140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18141 | test $ac_status = 0; }; then | ||
18142 | pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "harfbuzz >= 0.6.0" 2>/dev/null` | ||
18143 | else | ||
18144 | pkg_failed=yes | ||
18145 | fi | ||
18146 | else | ||
18147 | pkg_failed=untried | ||
18148 | fi | ||
18149 | |||
18150 | |||
18151 | |||
18152 | if test $pkg_failed = yes; then | ||
18153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18154 | $as_echo "no" >&6; } | ||
18155 | |||
18156 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18157 | _pkg_short_errors_supported=yes | ||
18158 | else | ||
18159 | _pkg_short_errors_supported=no | ||
18160 | fi | ||
18161 | if test $_pkg_short_errors_supported = yes; then | ||
18162 | HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "harfbuzz >= 0.6.0" 2>&1` | ||
18163 | else | ||
18164 | HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors "harfbuzz >= 0.6.0" 2>&1` | ||
18165 | fi | ||
18166 | # Put the nasty error message in config.log where it belongs | ||
18167 | echo "$HARFBUZZ_PKG_ERRORS" >&5 | ||
18168 | |||
18169 | |||
18170 | if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18171 | as_fn_error $? "Harfbuzz not found (strict dependencies checking)" "$LINENO" 5 | ||
18172 | fi | ||
18173 | |||
18174 | elif test $pkg_failed = untried; then | ||
18175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18176 | $as_echo "no" >&6; } | ||
18177 | |||
18178 | if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18179 | as_fn_error $? "Harfbuzz not found (strict dependencies checking)" "$LINENO" 5 | ||
18180 | fi | ||
18181 | |||
18182 | else | ||
18183 | HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS | ||
18184 | HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS | ||
18185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18186 | $as_echo "yes" >&6; } | ||
18187 | |||
18188 | have_harfbuzz="yes" | ||
18189 | requirement_evas="harfbuzz ${requirement_evas}" | ||
18190 | |||
18191 | fi | ||
18192 | if test "x$have_harfbuzz" = "xyes" ; then | ||
18193 | |||
18194 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
18195 | CPPFLAGS="$CPPFLAGS $HARFBUZZ_CFLAGS $FREETYPE_CFLAGS" | ||
18196 | # must have for usage with harfbuzz although harfbuzz may not have it. | ||
18197 | |||
18198 | ac_fn_c_check_header_mongrel "$LINENO" "hb-ft.h" "ac_cv_header_hb_ft_h" "$ac_includes_default" | ||
18199 | if test "x$ac_cv_header_hb_ft_h" = x""yes; then : | ||
18200 | |||
18201 | have_harfbuzz_ft="yes" | ||
18202 | #Depend on harfbuzz ft for harfbuzz support | ||
18203 | |||
18204 | $as_echo "#define HAVE_HARFBUZZ 1" >>confdefs.h | ||
18205 | |||
18206 | |||
18207 | else | ||
18208 | |||
18209 | if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18210 | as_fn_error $? "Harfbuzz-ft not found (strict dependencies checking)" "$LINENO" 5 | ||
18211 | fi | ||
18212 | have_harfbuzz="no" | ||
18213 | |||
18214 | fi | ||
18215 | |||
18216 | |||
18217 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
18218 | fi | ||
18219 | fi | ||
18220 | |||
18221 | if test "x${have_harfbuzz}" = "xno"; then | ||
18222 | HAS_HARFBUZZ=0 | ||
18223 | fi | ||
18224 | |||
18225 | # Pixman | ||
18226 | have_pixman="no" | ||
18227 | # Check whether --enable-pixman was given. | ||
18228 | if test "${enable_pixman+set}" = set; then : | ||
18229 | enableval=$enable_pixman; | ||
18230 | if test "x${enableval}" = "xyes" ; then | ||
18231 | want_pixman="yes" | ||
18232 | else | ||
18233 | want_pixman="no" | ||
18234 | fi | ||
18235 | |||
18236 | fi | ||
18237 | |||
18238 | |||
18239 | |||
18240 | if test "x${want_pixman}" = "xyes" -o "x${want_pixman}" = "xauto" ; then | ||
18241 | |||
18242 | pkg_failed=no | ||
18243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 | ||
18244 | $as_echo_n "checking for PIXMAN... " >&6; } | ||
18245 | |||
18246 | if test -n "$PIXMAN_CFLAGS"; then | ||
18247 | pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" | ||
18248 | elif test -n "$PKG_CONFIG"; then | ||
18249 | if test -n "$PKG_CONFIG" && \ | ||
18250 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5 | ||
18251 | ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5 | ||
18252 | ac_status=$? | ||
18253 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18254 | test $ac_status = 0; }; then | ||
18255 | pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1" 2>/dev/null` | ||
18256 | else | ||
18257 | pkg_failed=yes | ||
18258 | fi | ||
18259 | else | ||
18260 | pkg_failed=untried | ||
18261 | fi | ||
18262 | if test -n "$PIXMAN_LIBS"; then | ||
18263 | pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" | ||
18264 | elif test -n "$PKG_CONFIG"; then | ||
18265 | if test -n "$PKG_CONFIG" && \ | ||
18266 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5 | ||
18267 | ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5 | ||
18268 | ac_status=$? | ||
18269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18270 | test $ac_status = 0; }; then | ||
18271 | pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "pixman-1" 2>/dev/null` | ||
18272 | else | ||
18273 | pkg_failed=yes | ||
18274 | fi | ||
18275 | else | ||
18276 | pkg_failed=untried | ||
18277 | fi | ||
18278 | |||
18279 | |||
18280 | |||
18281 | if test $pkg_failed = yes; then | ||
18282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18283 | $as_echo "no" >&6; } | ||
18284 | |||
18285 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18286 | _pkg_short_errors_supported=yes | ||
18287 | else | ||
18288 | _pkg_short_errors_supported=no | ||
18289 | fi | ||
18290 | if test $_pkg_short_errors_supported = yes; then | ||
18291 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pixman-1" 2>&1` | ||
18292 | else | ||
18293 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "pixman-1" 2>&1` | ||
18294 | fi | ||
18295 | # Put the nasty error message in config.log where it belongs | ||
18296 | echo "$PIXMAN_PKG_ERRORS" >&5 | ||
18297 | |||
18298 | |||
18299 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
18300 | as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5 | ||
18301 | fi | ||
18302 | |||
18303 | elif test $pkg_failed = untried; then | ||
18304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18305 | $as_echo "no" >&6; } | ||
18306 | |||
18307 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
18308 | as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5 | ||
18309 | fi | ||
18310 | |||
18311 | else | ||
18312 | PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS | ||
18313 | PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS | ||
18314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18315 | $as_echo "yes" >&6; } | ||
18316 | |||
18317 | have_pixman="yes" | ||
18318 | |||
18319 | $as_echo "#define HAVE_PIXMAN 1" >>confdefs.h | ||
18320 | |||
18321 | requirement_evas="pixman-1 ${requirement_evas}" | ||
18322 | |||
18323 | fi | ||
18324 | fi | ||
18325 | |||
18326 | ### Checks for header files | ||
18327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
18328 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
18329 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
18330 | $as_echo_n "(cached) " >&6 | ||
18331 | else | ||
18332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18333 | /* end confdefs.h. */ | ||
18334 | #include <stdlib.h> | ||
18335 | #include <stdarg.h> | ||
18336 | #include <string.h> | ||
18337 | #include <float.h> | ||
18338 | |||
18339 | int | ||
18340 | main () | ||
18341 | { | ||
18342 | |||
18343 | ; | ||
18344 | return 0; | ||
18345 | } | ||
18346 | _ACEOF | ||
18347 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18348 | ac_cv_header_stdc=yes | ||
18349 | else | ||
18350 | ac_cv_header_stdc=no | ||
18351 | fi | ||
18352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18353 | |||
18354 | if test $ac_cv_header_stdc = yes; then | ||
18355 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
18356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18357 | /* end confdefs.h. */ | ||
18358 | #include <string.h> | ||
18359 | |||
18360 | _ACEOF | ||
18361 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18362 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
18363 | |||
18364 | else | ||
18365 | ac_cv_header_stdc=no | ||
18366 | fi | ||
18367 | rm -f conftest* | ||
18368 | |||
18369 | fi | ||
18370 | |||
18371 | if test $ac_cv_header_stdc = yes; then | ||
18372 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
18373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18374 | /* end confdefs.h. */ | ||
18375 | #include <stdlib.h> | ||
18376 | |||
18377 | _ACEOF | ||
18378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18379 | $EGREP "free" >/dev/null 2>&1; then : | ||
18380 | |||
18381 | else | ||
18382 | ac_cv_header_stdc=no | ||
18383 | fi | ||
18384 | rm -f conftest* | ||
18385 | |||
18386 | fi | ||
18387 | |||
18388 | if test $ac_cv_header_stdc = yes; then | ||
18389 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
18390 | if test "$cross_compiling" = yes; then : | ||
18391 | : | ||
18392 | else | ||
18393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18394 | /* end confdefs.h. */ | ||
18395 | #include <ctype.h> | ||
18396 | #include <stdlib.h> | ||
18397 | #if ((' ' & 0x0FF) == 0x020) | ||
18398 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
18399 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
18400 | #else | ||
18401 | # define ISLOWER(c) \ | ||
18402 | (('a' <= (c) && (c) <= 'i') \ | ||
18403 | || ('j' <= (c) && (c) <= 'r') \ | ||
18404 | || ('s' <= (c) && (c) <= 'z')) | ||
18405 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
18406 | #endif | ||
18407 | |||
18408 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
18409 | int | ||
18410 | main () | ||
18411 | { | ||
18412 | int i; | ||
18413 | for (i = 0; i < 256; i++) | ||
18414 | if (XOR (islower (i), ISLOWER (i)) | ||
18415 | || toupper (i) != TOUPPER (i)) | ||
18416 | return 2; | ||
18417 | return 0; | ||
18418 | } | ||
18419 | _ACEOF | ||
18420 | if ac_fn_c_try_run "$LINENO"; then : | ||
18421 | |||
18422 | else | ||
18423 | ac_cv_header_stdc=no | ||
18424 | fi | ||
18425 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18426 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18427 | fi | ||
18428 | |||
18429 | fi | ||
18430 | fi | ||
18431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
18432 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
18433 | if test $ac_cv_header_stdc = yes; then | ||
18434 | |||
18435 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
18436 | |||
18437 | fi | ||
18438 | |||
18439 | for ac_header in unistd.h stdint.h sys/param.h netinet/in.h | ||
18440 | do : | ||
18441 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18442 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18443 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18444 | cat >>confdefs.h <<_ACEOF | ||
18445 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18446 | _ACEOF | ||
18447 | |||
18448 | fi | ||
18449 | |||
18450 | done | ||
18451 | |||
18452 | |||
18453 | |||
18454 | default_max="4096" | ||
18455 | ac_ext=c | ||
18456 | ac_cpp='$CPP $CPPFLAGS' | ||
18457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18460 | |||
18461 | |||
18462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
18463 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
18464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18465 | /* end confdefs.h. */ | ||
18466 | |||
18467 | #include <limits.h> | ||
18468 | |||
18469 | int | ||
18470 | main () | ||
18471 | { | ||
18472 | |||
18473 | int i = PATH_MAX; | ||
18474 | |||
18475 | ; | ||
18476 | return 0; | ||
18477 | } | ||
18478 | _ACEOF | ||
18479 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18481 | $as_echo "yes" >&6; } | ||
18482 | else | ||
18483 | |||
18484 | |||
18485 | cat >>confdefs.h <<_ACEOF | ||
18486 | #define PATH_MAX ${default_max} | ||
18487 | _ACEOF | ||
18488 | |||
18489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
18490 | $as_echo "no: using ${default_max}" >&6; } | ||
18491 | |||
18492 | fi | ||
18493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18494 | |||
18495 | ac_ext=c | ||
18496 | ac_cpp='$CPP $CPPFLAGS' | ||
18497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18500 | |||
18501 | |||
18502 | |||
18503 | |||
18504 | |||
18505 | ### Checks for types | ||
18506 | ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h> | ||
18507 | " | ||
18508 | if test "x$ac_cv_type_struct_sigaction" = x""yes; then : | ||
18509 | |||
18510 | cat >>confdefs.h <<_ACEOF | ||
18511 | #define HAVE_STRUCT_SIGACTION 1 | ||
18512 | _ACEOF | ||
18513 | |||
18514 | |||
18515 | fi | ||
18516 | |||
18517 | |||
18518 | |||
18519 | ### Checks for structures | ||
18520 | |||
18521 | |||
18522 | ### Checks for compiler characteristics | ||
18523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
18524 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
18525 | if test "${ac_cv_c_const+set}" = set; then : | ||
18526 | $as_echo_n "(cached) " >&6 | ||
18527 | else | ||
18528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18529 | /* end confdefs.h. */ | ||
18530 | |||
18531 | int | ||
18532 | main () | ||
18533 | { | ||
18534 | /* FIXME: Include the comments suggested by Paul. */ | ||
18535 | #ifndef __cplusplus | ||
18536 | /* Ultrix mips cc rejects this. */ | ||
18537 | typedef int charset[2]; | ||
18538 | const charset cs; | ||
18539 | /* SunOS 4.1.1 cc rejects this. */ | ||
18540 | char const *const *pcpcc; | ||
18541 | char **ppc; | ||
18542 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
18543 | struct point {int x, y;}; | ||
18544 | static struct point const zero = {0,0}; | ||
18545 | /* AIX XL C 1.02.0.0 rejects this. | ||
18546 | It does not let you subtract one const X* pointer from another in | ||
18547 | an arm of an if-expression whose if-part is not a constant | ||
18548 | expression */ | ||
18549 | const char *g = "string"; | ||
18550 | pcpcc = &g + (g ? g-g : 0); | ||
18551 | /* HPUX 7.0 cc rejects these. */ | ||
18552 | ++pcpcc; | ||
18553 | ppc = (char**) pcpcc; | ||
18554 | pcpcc = (char const *const *) ppc; | ||
18555 | { /* SCO 3.2v4 cc rejects this. */ | ||
18556 | char *t; | ||
18557 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
18558 | |||
18559 | *t++ = 0; | ||
18560 | if (s) return 0; | ||
18561 | } | ||
18562 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
18563 | int x[] = {25, 17}; | ||
18564 | const int *foo = &x[0]; | ||
18565 | ++foo; | ||
18566 | } | ||
18567 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
18568 | typedef const int *iptr; | ||
18569 | iptr p = 0; | ||
18570 | ++p; | ||
18571 | } | ||
18572 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
18573 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
18574 | struct s { int j; const int *ap[3]; }; | ||
18575 | struct s *b; b->j = 5; | ||
18576 | } | ||
18577 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
18578 | const int foo = 10; | ||
18579 | if (!foo) return 0; | ||
18580 | } | ||
18581 | return !cs[0] && !zero.x; | ||
18582 | #endif | ||
18583 | |||
18584 | ; | ||
18585 | return 0; | ||
18586 | } | ||
18587 | _ACEOF | ||
18588 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18589 | ac_cv_c_const=yes | ||
18590 | else | ||
18591 | ac_cv_c_const=no | ||
18592 | fi | ||
18593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18594 | fi | ||
18595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
18596 | $as_echo "$ac_cv_c_const" >&6; } | ||
18597 | if test $ac_cv_c_const = no; then | ||
18598 | |||
18599 | $as_echo "#define const /**/" >>confdefs.h | ||
18600 | |||
18601 | fi | ||
18602 | |||
18603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
18604 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
18605 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
18606 | $as_echo_n "(cached) " >&6 | ||
18607 | else | ||
18608 | ac_cv_c_bigendian=unknown | ||
18609 | # See if we're dealing with a universal compiler. | ||
18610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18611 | /* end confdefs.h. */ | ||
18612 | #ifndef __APPLE_CC__ | ||
18613 | not a universal capable compiler | ||
18614 | #endif | ||
18615 | typedef int dummy; | ||
18616 | |||
18617 | _ACEOF | ||
18618 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18619 | |||
18620 | # Check for potential -arch flags. It is not universal unless | ||
18621 | # there are at least two -arch flags with different values. | ||
18622 | ac_arch= | ||
18623 | ac_prev= | ||
18624 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
18625 | if test -n "$ac_prev"; then | ||
18626 | case $ac_word in | ||
18627 | i?86 | x86_64 | ppc | ppc64) | ||
18628 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
18629 | ac_arch=$ac_word | ||
18630 | else | ||
18631 | ac_cv_c_bigendian=universal | ||
18632 | break | ||
18633 | fi | ||
18634 | ;; | ||
18635 | esac | ||
18636 | ac_prev= | ||
18637 | elif test "x$ac_word" = "x-arch"; then | ||
18638 | ac_prev=arch | ||
18639 | fi | ||
18640 | done | ||
18641 | fi | ||
18642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18643 | if test $ac_cv_c_bigendian = unknown; then | ||
18644 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
18645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18646 | /* end confdefs.h. */ | ||
18647 | #include <sys/types.h> | ||
18648 | #include <sys/param.h> | ||
18649 | |||
18650 | int | ||
18651 | main () | ||
18652 | { | ||
18653 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
18654 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
18655 | && LITTLE_ENDIAN) | ||
18656 | bogus endian macros | ||
18657 | #endif | ||
18658 | |||
18659 | ; | ||
18660 | return 0; | ||
18661 | } | ||
18662 | _ACEOF | ||
18663 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18664 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
18665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18666 | /* end confdefs.h. */ | ||
18667 | #include <sys/types.h> | ||
18668 | #include <sys/param.h> | ||
18669 | |||
18670 | int | ||
18671 | main () | ||
18672 | { | ||
18673 | #if BYTE_ORDER != BIG_ENDIAN | ||
18674 | not big endian | ||
18675 | #endif | ||
18676 | |||
18677 | ; | ||
18678 | return 0; | ||
18679 | } | ||
18680 | _ACEOF | ||
18681 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18682 | ac_cv_c_bigendian=yes | ||
18683 | else | ||
18684 | ac_cv_c_bigendian=no | ||
18685 | fi | ||
18686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18687 | fi | ||
18688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18689 | fi | ||
18690 | if test $ac_cv_c_bigendian = unknown; then | ||
18691 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
18692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18693 | /* end confdefs.h. */ | ||
18694 | #include <limits.h> | ||
18695 | |||
18696 | int | ||
18697 | main () | ||
18698 | { | ||
18699 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
18700 | bogus endian macros | ||
18701 | #endif | ||
18702 | |||
18703 | ; | ||
18704 | return 0; | ||
18705 | } | ||
18706 | _ACEOF | ||
18707 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18708 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
18709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18710 | /* end confdefs.h. */ | ||
18711 | #include <limits.h> | ||
18712 | |||
18713 | int | ||
18714 | main () | ||
18715 | { | ||
18716 | #ifndef _BIG_ENDIAN | ||
18717 | not big endian | ||
18718 | #endif | ||
18719 | |||
18720 | ; | ||
18721 | return 0; | ||
18722 | } | ||
18723 | _ACEOF | ||
18724 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18725 | ac_cv_c_bigendian=yes | ||
18726 | else | ||
18727 | ac_cv_c_bigendian=no | ||
18728 | fi | ||
18729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18730 | fi | ||
18731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18732 | fi | ||
18733 | if test $ac_cv_c_bigendian = unknown; then | ||
18734 | # Compile a test program. | ||
18735 | if test "$cross_compiling" = yes; then : | ||
18736 | # Try to guess by grepping values from an object file. | ||
18737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18738 | /* end confdefs.h. */ | ||
18739 | short int ascii_mm[] = | ||
18740 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
18741 | short int ascii_ii[] = | ||
18742 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
18743 | int use_ascii (int i) { | ||
18744 | return ascii_mm[i] + ascii_ii[i]; | ||
18745 | } | ||
18746 | short int ebcdic_ii[] = | ||
18747 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
18748 | short int ebcdic_mm[] = | ||
18749 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
18750 | int use_ebcdic (int i) { | ||
18751 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
18752 | } | ||
18753 | extern int foo; | ||
18754 | |||
18755 | int | ||
18756 | main () | ||
18757 | { | ||
18758 | return use_ascii (foo) == use_ebcdic (foo); | ||
18759 | ; | ||
18760 | return 0; | ||
18761 | } | ||
18762 | _ACEOF | ||
18763 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18764 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
18765 | ac_cv_c_bigendian=yes | ||
18766 | fi | ||
18767 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
18768 | if test "$ac_cv_c_bigendian" = unknown; then | ||
18769 | ac_cv_c_bigendian=no | ||
18770 | else | ||
18771 | # finding both strings is unlikely to happen, but who knows? | ||
18772 | ac_cv_c_bigendian=unknown | ||
18773 | fi | ||
18774 | fi | ||
18775 | fi | ||
18776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18777 | else | ||
18778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18779 | /* end confdefs.h. */ | ||
18780 | $ac_includes_default | ||
18781 | int | ||
18782 | main () | ||
18783 | { | ||
18784 | |||
18785 | /* Are we little or big endian? From Harbison&Steele. */ | ||
18786 | union | ||
18787 | { | ||
18788 | long int l; | ||
18789 | char c[sizeof (long int)]; | ||
18790 | } u; | ||
18791 | u.l = 1; | ||
18792 | return u.c[sizeof (long int) - 1] == 1; | ||
18793 | |||
18794 | ; | ||
18795 | return 0; | ||
18796 | } | ||
18797 | _ACEOF | ||
18798 | if ac_fn_c_try_run "$LINENO"; then : | ||
18799 | ac_cv_c_bigendian=no | ||
18800 | else | ||
18801 | ac_cv_c_bigendian=yes | ||
18802 | fi | ||
18803 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18804 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18805 | fi | ||
18806 | |||
18807 | fi | ||
18808 | fi | ||
18809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
18810 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
18811 | case $ac_cv_c_bigendian in #( | ||
18812 | yes) | ||
18813 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
18814 | ;; #( | ||
18815 | no) | ||
18816 | ;; #( | ||
18817 | universal) | ||
18818 | |||
18819 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
18820 | |||
18821 | ;; #( | ||
18822 | *) | ||
18823 | as_fn_error $? "unknown endianness | ||
18824 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
18825 | esac | ||
18826 | |||
18827 | case $ac_cv_prog_cc_stdc in #( | ||
18828 | no) : | ||
18829 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
18830 | *) : | ||
18831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
18832 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
18833 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
18834 | $as_echo_n "(cached) " >&6 | ||
18835 | else | ||
18836 | ac_cv_prog_cc_c99=no | ||
18837 | ac_save_CC=$CC | ||
18838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18839 | /* end confdefs.h. */ | ||
18840 | #include <stdarg.h> | ||
18841 | #include <stdbool.h> | ||
18842 | #include <stdlib.h> | ||
18843 | #include <wchar.h> | ||
18844 | #include <stdio.h> | ||
18845 | |||
18846 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
18847 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
18848 | #define showlist(...) puts (#__VA_ARGS__) | ||
18849 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
18850 | static void | ||
18851 | test_varargs_macros (void) | ||
18852 | { | ||
18853 | int x = 1234; | ||
18854 | int y = 5678; | ||
18855 | debug ("Flag"); | ||
18856 | debug ("X = %d\n", x); | ||
18857 | showlist (The first, second, and third items.); | ||
18858 | report (x>y, "x is %d but y is %d", x, y); | ||
18859 | } | ||
18860 | |||
18861 | // Check long long types. | ||
18862 | #define BIG64 18446744073709551615ull | ||
18863 | #define BIG32 4294967295ul | ||
18864 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
18865 | #if !BIG_OK | ||
18866 | your preprocessor is broken; | ||
18867 | #endif | ||
18868 | #if BIG_OK | ||
18869 | #else | ||
18870 | your preprocessor is broken; | ||
18871 | #endif | ||
18872 | static long long int bignum = -9223372036854775807LL; | ||
18873 | static unsigned long long int ubignum = BIG64; | ||
18874 | |||
18875 | struct incomplete_array | ||
18876 | { | ||
18877 | int datasize; | ||
18878 | double data[]; | ||
18879 | }; | ||
18880 | |||
18881 | struct named_init { | ||
18882 | int number; | ||
18883 | const wchar_t *name; | ||
18884 | double average; | ||
18885 | }; | ||
18886 | |||
18887 | typedef const char *ccp; | ||
18888 | |||
18889 | static inline int | ||
18890 | test_restrict (ccp restrict text) | ||
18891 | { | ||
18892 | // See if C++-style comments work. | ||
18893 | // Iterate through items via the restricted pointer. | ||
18894 | // Also check for declarations in for loops. | ||
18895 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
18896 | continue; | ||
18897 | return 0; | ||
18898 | } | ||
18899 | |||
18900 | // Check varargs and va_copy. | ||
18901 | static void | ||
18902 | test_varargs (const char *format, ...) | ||
18903 | { | ||
18904 | va_list args; | ||
18905 | va_start (args, format); | ||
18906 | va_list args_copy; | ||
18907 | va_copy (args_copy, args); | ||
18908 | |||
18909 | const char *str; | ||
18910 | int number; | ||
18911 | float fnumber; | ||
18912 | |||
18913 | while (*format) | ||
18914 | { | ||
18915 | switch (*format++) | ||
18916 | { | ||
18917 | case 's': // string | ||
18918 | str = va_arg (args_copy, const char *); | ||
18919 | break; | ||
18920 | case 'd': // int | ||
18921 | number = va_arg (args_copy, int); | ||
18922 | break; | ||
18923 | case 'f': // float | ||
18924 | fnumber = va_arg (args_copy, double); | ||
18925 | break; | ||
18926 | default: | ||
18927 | break; | ||
18928 | } | ||
18929 | } | ||
18930 | va_end (args_copy); | ||
18931 | va_end (args); | ||
18932 | } | ||
18933 | |||
18934 | int | ||
18935 | main () | ||
18936 | { | ||
18937 | |||
18938 | // Check bool. | ||
18939 | _Bool success = false; | ||
18940 | |||
18941 | // Check restrict. | ||
18942 | if (test_restrict ("String literal") == 0) | ||
18943 | success = true; | ||
18944 | char *restrict newvar = "Another string"; | ||
18945 | |||
18946 | // Check varargs. | ||
18947 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
18948 | test_varargs_macros (); | ||
18949 | |||
18950 | // Check flexible array members. | ||
18951 | struct incomplete_array *ia = | ||
18952 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
18953 | ia->datasize = 10; | ||
18954 | for (int i = 0; i < ia->datasize; ++i) | ||
18955 | ia->data[i] = i * 1.234; | ||
18956 | |||
18957 | // Check named initializers. | ||
18958 | struct named_init ni = { | ||
18959 | .number = 34, | ||
18960 | .name = L"Test wide string", | ||
18961 | .average = 543.34343, | ||
18962 | }; | ||
18963 | |||
18964 | ni.number = 58; | ||
18965 | |||
18966 | int dynamic_array[ni.number]; | ||
18967 | dynamic_array[ni.number - 1] = 543; | ||
18968 | |||
18969 | // work around unused variable warnings | ||
18970 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
18971 | || dynamic_array[ni.number - 1] != 543); | ||
18972 | |||
18973 | ; | ||
18974 | return 0; | ||
18975 | } | ||
18976 | _ACEOF | ||
18977 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
18978 | do | ||
18979 | CC="$ac_save_CC $ac_arg" | ||
18980 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18981 | ac_cv_prog_cc_c99=$ac_arg | ||
18982 | fi | ||
18983 | rm -f core conftest.err conftest.$ac_objext | ||
18984 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
18985 | done | ||
18986 | rm -f conftest.$ac_ext | ||
18987 | CC=$ac_save_CC | ||
18988 | |||
18989 | fi | ||
18990 | # AC_CACHE_VAL | ||
18991 | case "x$ac_cv_prog_cc_c99" in | ||
18992 | x) | ||
18993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
18994 | $as_echo "none needed" >&6; } ;; | ||
18995 | xno) | ||
18996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
18997 | $as_echo "unsupported" >&6; } ;; | ||
18998 | *) | ||
18999 | CC="$CC $ac_cv_prog_cc_c99" | ||
19000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
19001 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
19002 | esac | ||
19003 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
19004 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
19005 | else | ||
19006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
19007 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
19008 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
19009 | $as_echo_n "(cached) " >&6 | ||
19010 | else | ||
19011 | ac_cv_prog_cc_c89=no | ||
19012 | ac_save_CC=$CC | ||
19013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19014 | /* end confdefs.h. */ | ||
19015 | #include <stdarg.h> | ||
19016 | #include <stdio.h> | ||
19017 | #include <sys/types.h> | ||
19018 | #include <sys/stat.h> | ||
19019 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
19020 | struct buf { int x; }; | ||
19021 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
19022 | static char *e (p, i) | ||
19023 | char **p; | ||
19024 | int i; | ||
19025 | { | ||
19026 | return p[i]; | ||
19027 | } | ||
19028 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
19029 | { | ||
19030 | char *s; | ||
19031 | va_list v; | ||
19032 | va_start (v,p); | ||
19033 | s = g (p, va_arg (v,int)); | ||
19034 | va_end (v); | ||
19035 | return s; | ||
19036 | } | ||
19037 | |||
19038 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
19039 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
19040 | These don't provoke an error unfortunately, instead are silently treated | ||
19041 | as 'x'. The following induces an error, until -std is added to get | ||
19042 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
19043 | array size at least. It's necessary to write '\x00'==0 to get something | ||
19044 | that's true only with -std. */ | ||
19045 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
19046 | |||
19047 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
19048 | inside strings and character constants. */ | ||
19049 | #define FOO(x) 'x' | ||
19050 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
19051 | |||
19052 | int test (int i, double x); | ||
19053 | struct s1 {int (*f) (int a);}; | ||
19054 | struct s2 {int (*f) (double a);}; | ||
19055 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
19056 | int argc; | ||
19057 | char **argv; | ||
19058 | int | ||
19059 | main () | ||
19060 | { | ||
19061 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
19062 | ; | ||
19063 | return 0; | ||
19064 | } | ||
19065 | _ACEOF | ||
19066 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
19067 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
19068 | do | ||
19069 | CC="$ac_save_CC $ac_arg" | ||
19070 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19071 | ac_cv_prog_cc_c89=$ac_arg | ||
19072 | fi | ||
19073 | rm -f core conftest.err conftest.$ac_objext | ||
19074 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
19075 | done | ||
19076 | rm -f conftest.$ac_ext | ||
19077 | CC=$ac_save_CC | ||
19078 | |||
19079 | fi | ||
19080 | # AC_CACHE_VAL | ||
19081 | case "x$ac_cv_prog_cc_c89" in | ||
19082 | x) | ||
19083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
19084 | $as_echo "none needed" >&6; } ;; | ||
19085 | xno) | ||
19086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
19087 | $as_echo "unsupported" >&6; } ;; | ||
19088 | *) | ||
19089 | CC="$CC $ac_cv_prog_cc_c89" | ||
19090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
19091 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
19092 | esac | ||
19093 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
19094 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
19095 | else | ||
19096 | ac_cv_prog_cc_stdc=no | ||
19097 | fi | ||
19098 | |||
19099 | fi | ||
19100 | ;; | ||
19101 | esac | ||
19102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
19103 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
19104 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
19105 | $as_echo_n "(cached) " >&6 | ||
19106 | fi | ||
19107 | |||
19108 | case $ac_cv_prog_cc_stdc in #( | ||
19109 | no) : | ||
19110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
19111 | $as_echo "unsupported" >&6; } ;; #( | ||
19112 | '') : | ||
19113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
19114 | $as_echo "none needed" >&6; } ;; #( | ||
19115 | *) : | ||
19116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
19117 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
19118 | esac | ||
19119 | |||
19120 | |||
19121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((unused))" >&5 | ||
19122 | $as_echo_n "checking for __attribute__ ((unused))... " >&6; } | ||
19123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19124 | /* end confdefs.h. */ | ||
19125 | |||
19126 | void foo(int x __attribute__ ((unused))) {} | ||
19127 | |||
19128 | int | ||
19129 | main () | ||
19130 | { | ||
19131 | |||
19132 | |||
19133 | ; | ||
19134 | return 0; | ||
19135 | } | ||
19136 | _ACEOF | ||
19137 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19138 | have_attribute_unused="yes" | ||
19139 | else | ||
19140 | have_attribute_unused="no" | ||
19141 | fi | ||
19142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_unused}" >&5 | ||
19144 | $as_echo "${have_attribute_unused}" >&6; } | ||
19145 | |||
19146 | if test "x${have_attribute_unused}" = "xyes" ; then | ||
19147 | |||
19148 | $as_echo "#define __UNUSED__ __attribute__ ((unused))" >>confdefs.h | ||
19149 | |||
19150 | else | ||
19151 | |||
19152 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
19153 | |||
19154 | fi | ||
19155 | |||
19156 | |||
19157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((vector))" >&5 | ||
19158 | $as_echo_n "checking for __attribute__ ((vector))... " >&6; } | ||
19159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19160 | /* end confdefs.h. */ | ||
19161 | |||
19162 | typedef int v4si __attribute__ ((vector_size (16))); | ||
19163 | |||
19164 | int | ||
19165 | main () | ||
19166 | { | ||
19167 | |||
19168 | if (sizeof(v4si) == 16) | ||
19169 | return 0; | ||
19170 | else | ||
19171 | return -1; | ||
19172 | |||
19173 | ; | ||
19174 | return 0; | ||
19175 | } | ||
19176 | _ACEOF | ||
19177 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19178 | have_attribute_vector="yes" | ||
19179 | else | ||
19180 | have_attribute_vector="no" | ||
19181 | fi | ||
19182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_vector}" >&5 | ||
19184 | $as_echo "${have_attribute_vector}" >&6; } | ||
19185 | |||
19186 | if test "x${have_attribute_vector}" = "xyes" ; then | ||
19187 | |||
19188 | $as_echo "#define HAVE_GCC_ATTRIBUTE_VECTOR 1" >>confdefs.h | ||
19189 | |||
19190 | fi | ||
19191 | |||
19192 | |||
19193 | |||
19194 | have_attribute_forceinline="no" | ||
19195 | |||
19196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __forceinline" >&5 | ||
19197 | $as_echo_n "checking for __forceinline... " >&6; } | ||
19198 | |||
19199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19200 | /* end confdefs.h. */ | ||
19201 | |||
19202 | #include <windows.h> | ||
19203 | __forceinline void foo(void) {} | ||
19204 | |||
19205 | int | ||
19206 | main () | ||
19207 | { | ||
19208 | |||
19209 | |||
19210 | ; | ||
19211 | return 0; | ||
19212 | } | ||
19213 | _ACEOF | ||
19214 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19215 | |||
19216 | have_attribute_always_inline="yes" | ||
19217 | have_attribute_forceinline="yes" | ||
19218 | |||
19219 | else | ||
19220 | have_attribute_always_inline="no" | ||
19221 | fi | ||
19222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19223 | |||
19224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_always_inline}" >&5 | ||
19225 | $as_echo "${have_attribute_always_inline}" >&6; } | ||
19226 | |||
19227 | if test "x${have_attribute_always_inline}" = "xno" ; then | ||
19228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__always_inline__))" >&5 | ||
19229 | $as_echo_n "checking for __attribute__ ((__always_inline__))... " >&6; } | ||
19230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19231 | /* end confdefs.h. */ | ||
19232 | |||
19233 | __attribute__((__always_inline__)) inline void foo(void) {} | ||
19234 | |||
19235 | int | ||
19236 | main () | ||
19237 | { | ||
19238 | |||
19239 | |||
19240 | ; | ||
19241 | return 0; | ||
19242 | } | ||
19243 | _ACEOF | ||
19244 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19245 | have_attribute_always_inline="yes" | ||
19246 | else | ||
19247 | have_attribute_always_inline="no" | ||
19248 | fi | ||
19249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_always_inline}" >&5 | ||
19251 | $as_echo "${have_attribute_always_inline}" >&6; } | ||
19252 | fi | ||
19253 | |||
19254 | if test "x${have_attribute_always_inline}" = "xyes" ; then | ||
19255 | if test "x${have_attribute_forceinline}" = "xyes" ; then | ||
19256 | |||
19257 | $as_echo "#define EFL_ALWAYS_INLINE __forceinline" >>confdefs.h | ||
19258 | |||
19259 | else | ||
19260 | |||
19261 | $as_echo "#define EFL_ALWAYS_INLINE __attribute__ ((__always_inline__)) inline" >>confdefs.h | ||
19262 | |||
19263 | fi | ||
19264 | else | ||
19265 | |||
19266 | $as_echo "#define EFL_ALWAYS_INLINE static inline" >>confdefs.h | ||
19267 | |||
19268 | fi | ||
19269 | |||
19270 | |||
19271 | WIN32_CPPFLAGS="" | ||
19272 | case "$host_os" in | ||
19273 | mingw32ce*) | ||
19274 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
19275 | ;; | ||
19276 | mingw*) | ||
19277 | WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500" | ||
19278 | ;; | ||
19279 | esac | ||
19280 | |||
19281 | |||
19282 | WIN32_CFLAGS="" | ||
19283 | |||
19284 | |||
19285 | |||
19286 | ### Checks for linker characteristics | ||
19287 | lt_enable_auto_import="" | ||
19288 | case "${host_os}" in | ||
19289 | mingw*) | ||
19290 | |||
19291 | $as_echo "#define EFL_EVAS_BUILD 1" >>confdefs.h | ||
19292 | |||
19293 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
19294 | ;; | ||
19295 | esac | ||
19296 | |||
19297 | |||
19298 | |||
19299 | ### Checks for library functions | ||
19300 | |||
19301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
19302 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
19303 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19304 | $as_echo_n "(cached) " >&6 | ||
19305 | else | ||
19306 | ac_func_search_save_LIBS=$LIBS | ||
19307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19308 | /* end confdefs.h. */ | ||
19309 | |||
19310 | /* Override any GCC internal prototype to avoid an error. | ||
19311 | Use char because int might match the return type of a GCC | ||
19312 | builtin and then its argument prototype would still apply. */ | ||
19313 | #ifdef __cplusplus | ||
19314 | extern "C" | ||
19315 | #endif | ||
19316 | char strerror (); | ||
19317 | int | ||
19318 | main () | ||
19319 | { | ||
19320 | return strerror (); | ||
19321 | ; | ||
19322 | return 0; | ||
19323 | } | ||
19324 | _ACEOF | ||
19325 | for ac_lib in '' cposix; do | ||
19326 | if test -z "$ac_lib"; then | ||
19327 | ac_res="none required" | ||
19328 | else | ||
19329 | ac_res=-l$ac_lib | ||
19330 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19331 | fi | ||
19332 | if ac_fn_c_try_link "$LINENO"; then : | ||
19333 | ac_cv_search_strerror=$ac_res | ||
19334 | fi | ||
19335 | rm -f core conftest.err conftest.$ac_objext \ | ||
19336 | conftest$ac_exeext | ||
19337 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19338 | break | ||
19339 | fi | ||
19340 | done | ||
19341 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19342 | |||
19343 | else | ||
19344 | ac_cv_search_strerror=no | ||
19345 | fi | ||
19346 | rm conftest.$ac_ext | ||
19347 | LIBS=$ac_func_search_save_LIBS | ||
19348 | fi | ||
19349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
19350 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
19351 | ac_res=$ac_cv_search_strerror | ||
19352 | if test "$ac_res" != no; then : | ||
19353 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19354 | |||
19355 | fi | ||
19356 | |||
19357 | for ac_func in siglongjmp | ||
19358 | do : | ||
19359 | ac_fn_c_check_func "$LINENO" "siglongjmp" "ac_cv_func_siglongjmp" | ||
19360 | if test "x$ac_cv_func_siglongjmp" = x""yes; then : | ||
19361 | cat >>confdefs.h <<_ACEOF | ||
19362 | #define HAVE_SIGLONGJMP 1 | ||
19363 | _ACEOF | ||
19364 | |||
19365 | fi | ||
19366 | done | ||
19367 | |||
19368 | |||
19369 | # alloca | ||
19370 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
19371 | # for constant arguments. Useless! | ||
19372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
19373 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
19374 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
19375 | $as_echo_n "(cached) " >&6 | ||
19376 | else | ||
19377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19378 | /* end confdefs.h. */ | ||
19379 | #include <alloca.h> | ||
19380 | int | ||
19381 | main () | ||
19382 | { | ||
19383 | char *p = (char *) alloca (2 * sizeof (int)); | ||
19384 | if (p) return 0; | ||
19385 | ; | ||
19386 | return 0; | ||
19387 | } | ||
19388 | _ACEOF | ||
19389 | if ac_fn_c_try_link "$LINENO"; then : | ||
19390 | ac_cv_working_alloca_h=yes | ||
19391 | else | ||
19392 | ac_cv_working_alloca_h=no | ||
19393 | fi | ||
19394 | rm -f core conftest.err conftest.$ac_objext \ | ||
19395 | conftest$ac_exeext conftest.$ac_ext | ||
19396 | fi | ||
19397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
19398 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
19399 | if test $ac_cv_working_alloca_h = yes; then | ||
19400 | |||
19401 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
19402 | |||
19403 | fi | ||
19404 | |||
19405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
19406 | $as_echo_n "checking for alloca... " >&6; } | ||
19407 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
19408 | $as_echo_n "(cached) " >&6 | ||
19409 | else | ||
19410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19411 | /* end confdefs.h. */ | ||
19412 | #ifdef __GNUC__ | ||
19413 | # define alloca __builtin_alloca | ||
19414 | #else | ||
19415 | # ifdef _MSC_VER | ||
19416 | # include <malloc.h> | ||
19417 | # define alloca _alloca | ||
19418 | # else | ||
19419 | # ifdef HAVE_ALLOCA_H | ||
19420 | # include <alloca.h> | ||
19421 | # else | ||
19422 | # ifdef _AIX | ||
19423 | #pragma alloca | ||
19424 | # else | ||
19425 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
19426 | char *alloca (); | ||
19427 | # endif | ||
19428 | # endif | ||
19429 | # endif | ||
19430 | # endif | ||
19431 | #endif | ||
19432 | |||
19433 | int | ||
19434 | main () | ||
19435 | { | ||
19436 | char *p = (char *) alloca (1); | ||
19437 | if (p) return 0; | ||
19438 | ; | ||
19439 | return 0; | ||
19440 | } | ||
19441 | _ACEOF | ||
19442 | if ac_fn_c_try_link "$LINENO"; then : | ||
19443 | ac_cv_func_alloca_works=yes | ||
19444 | else | ||
19445 | ac_cv_func_alloca_works=no | ||
19446 | fi | ||
19447 | rm -f core conftest.err conftest.$ac_objext \ | ||
19448 | conftest$ac_exeext conftest.$ac_ext | ||
19449 | fi | ||
19450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
19451 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
19452 | |||
19453 | if test $ac_cv_func_alloca_works = yes; then | ||
19454 | |||
19455 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
19456 | |||
19457 | else | ||
19458 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
19459 | # that cause trouble. Some versions do not even contain alloca or | ||
19460 | # contain a buggy version. If you still want to use their alloca, | ||
19461 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
19462 | |||
19463 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
19464 | |||
19465 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
19466 | |||
19467 | |||
19468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
19469 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
19470 | if test "${ac_cv_os_cray+set}" = set; then : | ||
19471 | $as_echo_n "(cached) " >&6 | ||
19472 | else | ||
19473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19474 | /* end confdefs.h. */ | ||
19475 | #if defined CRAY && ! defined CRAY2 | ||
19476 | webecray | ||
19477 | #else | ||
19478 | wenotbecray | ||
19479 | #endif | ||
19480 | |||
19481 | _ACEOF | ||
19482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19483 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
19484 | ac_cv_os_cray=yes | ||
19485 | else | ||
19486 | ac_cv_os_cray=no | ||
19487 | fi | ||
19488 | rm -f conftest* | ||
19489 | |||
19490 | fi | ||
19491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
19492 | $as_echo "$ac_cv_os_cray" >&6; } | ||
19493 | if test $ac_cv_os_cray = yes; then | ||
19494 | for ac_func in _getb67 GETB67 getb67; do | ||
19495 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19496 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
19497 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
19498 | |||
19499 | cat >>confdefs.h <<_ACEOF | ||
19500 | #define CRAY_STACKSEG_END $ac_func | ||
19501 | _ACEOF | ||
19502 | |||
19503 | break | ||
19504 | fi | ||
19505 | |||
19506 | done | ||
19507 | fi | ||
19508 | |||
19509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
19510 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
19511 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
19512 | $as_echo_n "(cached) " >&6 | ||
19513 | else | ||
19514 | if test "$cross_compiling" = yes; then : | ||
19515 | ac_cv_c_stack_direction=0 | ||
19516 | else | ||
19517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19518 | /* end confdefs.h. */ | ||
19519 | $ac_includes_default | ||
19520 | int | ||
19521 | find_stack_direction () | ||
19522 | { | ||
19523 | static char *addr = 0; | ||
19524 | auto char dummy; | ||
19525 | if (addr == 0) | ||
19526 | { | ||
19527 | addr = &dummy; | ||
19528 | return find_stack_direction (); | ||
19529 | } | ||
19530 | else | ||
19531 | return (&dummy > addr) ? 1 : -1; | ||
19532 | } | ||
19533 | |||
19534 | int | ||
19535 | main () | ||
19536 | { | ||
19537 | return find_stack_direction () < 0; | ||
19538 | } | ||
19539 | _ACEOF | ||
19540 | if ac_fn_c_try_run "$LINENO"; then : | ||
19541 | ac_cv_c_stack_direction=1 | ||
19542 | else | ||
19543 | ac_cv_c_stack_direction=-1 | ||
19544 | fi | ||
19545 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
19546 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
19547 | fi | ||
19548 | |||
19549 | fi | ||
19550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
19551 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
19552 | cat >>confdefs.h <<_ACEOF | ||
19553 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
19554 | _ACEOF | ||
19555 | |||
19556 | |||
19557 | fi | ||
19558 | |||
19559 | |||
19560 | # fnmatch | ||
19561 | |||
19562 | |||
19563 | ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" | ||
19564 | if test "x$ac_cv_header_fnmatch_h" = x""yes; then : | ||
19565 | _efl_have_fnmatch="yes" | ||
19566 | else | ||
19567 | _efl_have_fnmatch="no" | ||
19568 | fi | ||
19569 | |||
19570 | |||
19571 | |||
19572 | if test "x${_efl_have_fnmatch}" = "xyes" ; then | ||
19573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5 | ||
19574 | $as_echo_n "checking for library containing fnmatch... " >&6; } | ||
19575 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19576 | $as_echo_n "(cached) " >&6 | ||
19577 | else | ||
19578 | ac_func_search_save_LIBS=$LIBS | ||
19579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19580 | /* end confdefs.h. */ | ||
19581 | |||
19582 | /* Override any GCC internal prototype to avoid an error. | ||
19583 | Use char because int might match the return type of a GCC | ||
19584 | builtin and then its argument prototype would still apply. */ | ||
19585 | #ifdef __cplusplus | ||
19586 | extern "C" | ||
19587 | #endif | ||
19588 | char fnmatch (); | ||
19589 | int | ||
19590 | main () | ||
19591 | { | ||
19592 | return fnmatch (); | ||
19593 | ; | ||
19594 | return 0; | ||
19595 | } | ||
19596 | _ACEOF | ||
19597 | for ac_lib in '' fnmatch evil iberty; do | ||
19598 | if test -z "$ac_lib"; then | ||
19599 | ac_res="none required" | ||
19600 | else | ||
19601 | ac_res=-l$ac_lib | ||
19602 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19603 | fi | ||
19604 | if ac_fn_c_try_link "$LINENO"; then : | ||
19605 | ac_cv_search_fnmatch=$ac_res | ||
19606 | fi | ||
19607 | rm -f core conftest.err conftest.$ac_objext \ | ||
19608 | conftest$ac_exeext | ||
19609 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19610 | break | ||
19611 | fi | ||
19612 | done | ||
19613 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19614 | |||
19615 | else | ||
19616 | ac_cv_search_fnmatch=no | ||
19617 | fi | ||
19618 | rm conftest.$ac_ext | ||
19619 | LIBS=$ac_func_search_save_LIBS | ||
19620 | fi | ||
19621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5 | ||
19622 | $as_echo "$ac_cv_search_fnmatch" >&6; } | ||
19623 | ac_res=$ac_cv_search_fnmatch | ||
19624 | if test "$ac_res" != no; then : | ||
19625 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19626 | _efl_have_fnmatch="yes" | ||
19627 | else | ||
19628 | _efl_have_fnmatch="no" | ||
19629 | fi | ||
19630 | |||
19631 | fi | ||
19632 | |||
19633 | EFL_FNMATCH_LIBS="" | ||
19634 | |||
19635 | if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then | ||
19636 | EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} | ||
19637 | fi | ||
19638 | |||
19639 | |||
19640 | |||
19641 | if test "x$_efl_have_fnmatch" = "xyes"; then : | ||
19642 | |||
19643 | else | ||
19644 | as_fn_error $? "Cannot find fnmatch()" "$LINENO" 5 | ||
19645 | fi | ||
19646 | |||
19647 | |||
19648 | |||
19649 | # dlopen | ||
19650 | dlopen_libs="" | ||
19651 | case "$host_os" in | ||
19652 | mingw32ce*) | ||
19653 | # managed by evil | ||
19654 | $as_echo "#define HAVE_DLSYM 1" >>confdefs.h | ||
19655 | |||
19656 | ;; | ||
19657 | mingw*) | ||
19658 | # nothing on mingw platform | ||
19659 | ;; | ||
19660 | *) | ||
19661 | for ac_func in dlsym | ||
19662 | do : | ||
19663 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" | ||
19664 | if test "x$ac_cv_func_dlsym" = x""yes; then : | ||
19665 | cat >>confdefs.h <<_ACEOF | ||
19666 | #define HAVE_DLSYM 1 | ||
19667 | _ACEOF | ||
19668 | res=yes | ||
19669 | else | ||
19670 | res=no | ||
19671 | fi | ||
19672 | done | ||
19673 | |||
19674 | if test "x$res" = "xyes"; then | ||
19675 | $as_echo "#define HAVE_DLSYM 1" >>confdefs.h | ||
19676 | |||
19677 | else | ||
19678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
19679 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
19680 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then : | ||
19681 | $as_echo_n "(cached) " >&6 | ||
19682 | else | ||
19683 | ac_check_lib_save_LIBS=$LIBS | ||
19684 | LIBS="-ldl $LIBS" | ||
19685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19686 | /* end confdefs.h. */ | ||
19687 | |||
19688 | /* Override any GCC internal prototype to avoid an error. | ||
19689 | Use char because int might match the return type of a GCC | ||
19690 | builtin and then its argument prototype would still apply. */ | ||
19691 | #ifdef __cplusplus | ||
19692 | extern "C" | ||
19693 | #endif | ||
19694 | char dlsym (); | ||
19695 | int | ||
19696 | main () | ||
19697 | { | ||
19698 | return dlsym (); | ||
19699 | ; | ||
19700 | return 0; | ||
19701 | } | ||
19702 | _ACEOF | ||
19703 | if ac_fn_c_try_link "$LINENO"; then : | ||
19704 | ac_cv_lib_dl_dlsym=yes | ||
19705 | else | ||
19706 | ac_cv_lib_dl_dlsym=no | ||
19707 | fi | ||
19708 | rm -f core conftest.err conftest.$ac_objext \ | ||
19709 | conftest$ac_exeext conftest.$ac_ext | ||
19710 | LIBS=$ac_check_lib_save_LIBS | ||
19711 | fi | ||
19712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
19713 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
19714 | if test "x$ac_cv_lib_dl_dlsym" = x""yes; then : | ||
19715 | res=yes | ||
19716 | else | ||
19717 | res=no | ||
19718 | fi | ||
19719 | |||
19720 | if test "x$res" = "xyes"; then | ||
19721 | dlopen_libs=-ldl | ||
19722 | $as_echo "#define HAVE_DLSYM 1" >>confdefs.h | ||
19723 | |||
19724 | else | ||
19725 | want_evas_engine_gl_xlib="no" | ||
19726 | want_evas_engine_gl_xcb="no" | ||
19727 | want_evas_engine_gl_sdl="no" | ||
19728 | fi | ||
19729 | fi | ||
19730 | esac | ||
19731 | |||
19732 | |||
19733 | res=no | ||
19734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5 | ||
19735 | $as_echo_n "checking for lround in -lm... " >&6; } | ||
19736 | if test "${ac_cv_lib_m_lround+set}" = set; then : | ||
19737 | $as_echo_n "(cached) " >&6 | ||
19738 | else | ||
19739 | ac_check_lib_save_LIBS=$LIBS | ||
19740 | LIBS="-lm $LIBS" | ||
19741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19742 | /* end confdefs.h. */ | ||
19743 | |||
19744 | /* Override any GCC internal prototype to avoid an error. | ||
19745 | Use char because int might match the return type of a GCC | ||
19746 | builtin and then its argument prototype would still apply. */ | ||
19747 | #ifdef __cplusplus | ||
19748 | extern "C" | ||
19749 | #endif | ||
19750 | char lround (); | ||
19751 | int | ||
19752 | main () | ||
19753 | { | ||
19754 | return lround (); | ||
19755 | ; | ||
19756 | return 0; | ||
19757 | } | ||
19758 | _ACEOF | ||
19759 | if ac_fn_c_try_link "$LINENO"; then : | ||
19760 | ac_cv_lib_m_lround=yes | ||
19761 | else | ||
19762 | ac_cv_lib_m_lround=no | ||
19763 | fi | ||
19764 | rm -f core conftest.err conftest.$ac_objext \ | ||
19765 | conftest$ac_exeext conftest.$ac_ext | ||
19766 | LIBS=$ac_check_lib_save_LIBS | ||
19767 | fi | ||
19768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lround" >&5 | ||
19769 | $as_echo "$ac_cv_lib_m_lround" >&6; } | ||
19770 | if test "x$ac_cv_lib_m_lround" = x""yes; then : | ||
19771 | res=yes | ||
19772 | else | ||
19773 | res=no | ||
19774 | fi | ||
19775 | |||
19776 | if test "x$res" = "xyes"; then | ||
19777 | |||
19778 | $as_echo "#define HAVE_LROUND 1" >>confdefs.h | ||
19779 | |||
19780 | fi | ||
19781 | |||
19782 | SHM_OPEN_LINK="" | ||
19783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open() is present" >&5 | ||
19784 | $as_echo_n "checking whether shm_open() is present... " >&6; } | ||
19785 | LIBS_save=${LIBS} | ||
19786 | LIBS="${LIBS} -lrt" | ||
19787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19788 | /* end confdefs.h. */ | ||
19789 | |||
19790 | #include <sys/stat.h> | ||
19791 | #include <sys/mman.h> | ||
19792 | #include <fcntl.h> | ||
19793 | |||
19794 | int | ||
19795 | main () | ||
19796 | { | ||
19797 | |||
19798 | int fd; | ||
19799 | fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
19800 | shm_unlink("/"); | ||
19801 | |||
19802 | ; | ||
19803 | return 0; | ||
19804 | } | ||
19805 | _ACEOF | ||
19806 | if ac_fn_c_try_link "$LINENO"; then : | ||
19807 | |||
19808 | have_shm_open="yes" | ||
19809 | |||
19810 | $as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h | ||
19811 | |||
19812 | SHM_OPEN_LINK="-lrt" | ||
19813 | |||
19814 | else | ||
19815 | have_shm_open="no" | ||
19816 | fi | ||
19817 | rm -f core conftest.err conftest.$ac_objext \ | ||
19818 | conftest$ac_exeext conftest.$ac_ext | ||
19819 | LIBS=${LIBS_save} | ||
19820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_shm_open}" >&5 | ||
19821 | $as_echo "${have_shm_open}" >&6; } | ||
19822 | |||
19823 | |||
19824 | # (shm_open (for cache server) | ||
19825 | # Check whether --enable-evas-cserve was given. | ||
19826 | if test "${enable_evas_cserve+set}" = set; then : | ||
19827 | enableval=$enable_evas_cserve; | ||
19828 | if test "x${enableval}" = "xyes" ; then | ||
19829 | want_evas_cserve="yes" | ||
19830 | else | ||
19831 | want_evas_cserve="no" | ||
19832 | fi | ||
19833 | |||
19834 | fi | ||
19835 | |||
19836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared cache server and support" >&5 | ||
19837 | $as_echo_n "checking whether to build shared cache server and support... " >&6; } | ||
19838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_evas_cserve}" >&5 | ||
19839 | $as_echo "${want_evas_cserve}" >&6; } | ||
19840 | |||
19841 | if test "x${want_evas_cserve}" = "xyes" ; then | ||
19842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open() is present" >&5 | ||
19843 | $as_echo_n "checking whether shm_open() is present... " >&6; } | ||
19844 | LIBS_save=${LIBS} | ||
19845 | LIBS="${LIBS} -lrt" | ||
19846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19847 | /* end confdefs.h. */ | ||
19848 | |||
19849 | #include <sys/types.h> | ||
19850 | #include <sys/mman.h> | ||
19851 | #include <fcntl.h> | ||
19852 | |||
19853 | int | ||
19854 | main () | ||
19855 | { | ||
19856 | |||
19857 | int fd; | ||
19858 | fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
19859 | shm_unlink("/"); | ||
19860 | |||
19861 | ; | ||
19862 | return 0; | ||
19863 | } | ||
19864 | _ACEOF | ||
19865 | if ac_fn_c_try_link "$LINENO"; then : | ||
19866 | want_evas_cserve="yes" | ||
19867 | else | ||
19868 | want_evas_cserve="no" | ||
19869 | fi | ||
19870 | rm -f core conftest.err conftest.$ac_objext \ | ||
19871 | conftest$ac_exeext conftest.$ac_ext | ||
19872 | LIBS=${LIBS_save} | ||
19873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_evas_cserve}" >&5 | ||
19874 | $as_echo "${want_evas_cserve}" >&6; } | ||
19875 | fi | ||
19876 | |||
19877 | if test "x${want_evas_cserve}" = "xyes" ; then | ||
19878 | |||
19879 | $as_echo "#define EVAS_CSERVE 1" >>confdefs.h | ||
19880 | |||
19881 | fi | ||
19882 | |||
19883 | if test "x${want_evas_cserve}" = "xyes"; then | ||
19884 | EVAS_CSERVE_TRUE= | ||
19885 | EVAS_CSERVE_FALSE='#' | ||
19886 | else | ||
19887 | EVAS_CSERVE_TRUE='#' | ||
19888 | EVAS_CSERVE_FALSE= | ||
19889 | fi | ||
19890 | |||
19891 | |||
19892 | |||
19893 | |||
19894 | ####################################### | ||
19895 | ## GL force flavor gles | ||
19896 | gl_flavor_gles="no" | ||
19897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES flavor of GL" >&5 | ||
19898 | $as_echo_n "checking whether to build GLES flavor of GL... " >&6; } | ||
19899 | # Check whether --enable-gl-flavor-gles was given. | ||
19900 | if test "${enable_gl_flavor_gles+set}" = set; then : | ||
19901 | enableval=$enable_gl_flavor_gles; | ||
19902 | if test "x$enableval" = "xyes" ; then | ||
19903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19904 | $as_echo "yes" >&6; } | ||
19905 | gl_flavor_gles="yes" | ||
19906 | else | ||
19907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19908 | $as_echo "no" >&6; } | ||
19909 | gl_flavor_gles="no" | ||
19910 | fi | ||
19911 | |||
19912 | else | ||
19913 | |||
19914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19915 | $as_echo "no" >&6; } | ||
19916 | gl_flavor_gles="no" | ||
19917 | |||
19918 | |||
19919 | fi | ||
19920 | |||
19921 | |||
19922 | ####################################### | ||
19923 | ## GLES variety sgx | ||
19924 | gles_variety_sgx="no" | ||
19925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES variety for SGX" >&5 | ||
19926 | $as_echo_n "checking whether to build GLES variety for SGX... " >&6; } | ||
19927 | # Check whether --enable-gles-variety-sgx was given. | ||
19928 | if test "${enable_gles_variety_sgx+set}" = set; then : | ||
19929 | enableval=$enable_gles_variety_sgx; | ||
19930 | if test "x$enableval" = "xyes" ; then | ||
19931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19932 | $as_echo "yes" >&6; } | ||
19933 | |||
19934 | $as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h | ||
19935 | |||
19936 | gles_variety_sgx="yes" | ||
19937 | else | ||
19938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19939 | $as_echo "no" >&6; } | ||
19940 | gles_variety_sgx="no" | ||
19941 | fi | ||
19942 | |||
19943 | else | ||
19944 | |||
19945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19946 | $as_echo "no" >&6; } | ||
19947 | gles_variety_sgx="no" | ||
19948 | |||
19949 | |||
19950 | fi | ||
19951 | |||
19952 | |||
19953 | ####################################### | ||
19954 | ## GLES variety s3c6410 | ||
19955 | gles_variety_s3c6410="no" | ||
19956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES variety for s3c6410" >&5 | ||
19957 | $as_echo_n "checking whether to build GLES variety for s3c6410... " >&6; } | ||
19958 | # Check whether --enable-gles-variety-s3c6410 was given. | ||
19959 | if test "${enable_gles_variety_s3c6410+set}" = set; then : | ||
19960 | enableval=$enable_gles_variety_s3c6410; | ||
19961 | if test "x$enableval" = "xyes" ; then | ||
19962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19963 | $as_echo "yes" >&6; } | ||
19964 | |||
19965 | $as_echo "#define GLES_VARIETY_S3C6410 1" >>confdefs.h | ||
19966 | |||
19967 | gles_variety_s3c6410="yes" | ||
19968 | else | ||
19969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19970 | $as_echo "no" >&6; } | ||
19971 | gles_variety_s3c6410="no" | ||
19972 | fi | ||
19973 | |||
19974 | else | ||
19975 | |||
19976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19977 | $as_echo "no" >&6; } | ||
19978 | gles_variety_s3c6410="no" | ||
19979 | |||
19980 | |||
19981 | fi | ||
19982 | |||
19983 | |||
19984 | if test "x$gl_flavor_gles" = "xyes"; then | ||
19985 | eng="" | ||
19986 | if test "x$gles_variety_sgx" = "xyes"; then eng="x"$eng; fi | ||
19987 | if test "x$gles_variety_s3c6410" = "xyes"; then eng="x"$eng; fi | ||
19988 | if test "x$eng" = "xx"; then | ||
19989 | eng="" | ||
19990 | else | ||
19991 | as_fn_error $? "Please enable just 1 OpenGL-ES flavor. Choices are: | ||
19992 | --enable-gles-variety-sgx (Most GL-ES2 GPUs with shader compiler) | ||
19993 | --enable-gles-variety-s3c6410 (s3c6410 with offline shader compiler) | ||
19994 | You will also need to enable the OpenGL engine for X11 with: | ||
19995 | --enable-gl-xlib or --enable-gl-xcb | ||
19996 | " "$LINENO" 5 | ||
19997 | fi | ||
19998 | fi | ||
19999 | |||
20000 | ##################################################################### | ||
20001 | ## Engines | ||
20002 | |||
20003 | |||
20004 | |||
20005 | |||
20006 | want_engine="${want_evas_engine_buffer}" | ||
20007 | want_static_engine="no" | ||
20008 | have_engine="no" | ||
20009 | have_evas_engine_buffer="no" | ||
20010 | |||
20011 | # Check whether --enable-buffer was given. | ||
20012 | if test "${enable_buffer+set}" = set; then : | ||
20013 | enableval=$enable_buffer; | ||
20014 | if test "x${enableval}" = "xyes" ; then | ||
20015 | want_engine="yes" | ||
20016 | else | ||
20017 | if test "x${enableval}" = "xstatic" ; then | ||
20018 | want_engine="static" | ||
20019 | else | ||
20020 | want_engine="no" | ||
20021 | fi | ||
20022 | fi | ||
20023 | |||
20024 | fi | ||
20025 | |||
20026 | |||
20027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Buffer rendering backend" >&5 | ||
20028 | $as_echo_n "checking whether to enable Buffer rendering backend... " >&6; } | ||
20029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20030 | $as_echo "${want_engine}" >&6; } | ||
20031 | |||
20032 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20033 | |||
20034 | |||
20035 | have_dep="yes" | ||
20036 | evas_engine_buffer_cflags="" | ||
20037 | evas_engine_buffer_libs="" | ||
20038 | |||
20039 | |||
20040 | |||
20041 | |||
20042 | if test "x${have_dep}" = "xyes" ; then | ||
20043 | have_engine="yes" | ||
20044 | else | ||
20045 | have_engine="no" | ||
20046 | fi | ||
20047 | |||
20048 | |||
20049 | fi | ||
20050 | |||
20051 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20052 | as_fn_error $? "Buffer dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20053 | fi | ||
20054 | |||
20055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Buffer rendering backend will be built" >&5 | ||
20056 | $as_echo_n "checking whether Buffer rendering backend will be built... " >&6; } | ||
20057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20058 | $as_echo "${have_engine}" >&6; } | ||
20059 | |||
20060 | if test "x${have_engine}" = "xyes" ; then | ||
20061 | if test "x${want_engine}" = "xstatic" ; then | ||
20062 | have_evas_engine_buffer="static" | ||
20063 | want_static_engine="yes" | ||
20064 | else | ||
20065 | have_evas_engine_buffer="yes" | ||
20066 | fi | ||
20067 | fi | ||
20068 | |||
20069 | if test "x${have_engine}" = "xyes" ; then | ||
20070 | |||
20071 | $as_echo "#define BUILD_ENGINE_BUFFER 1" >>confdefs.h | ||
20072 | |||
20073 | fi | ||
20074 | |||
20075 | if test "x${have_engine}" = "xyes"; then | ||
20076 | BUILD_ENGINE_BUFFER_TRUE= | ||
20077 | BUILD_ENGINE_BUFFER_FALSE='#' | ||
20078 | else | ||
20079 | BUILD_ENGINE_BUFFER_TRUE='#' | ||
20080 | BUILD_ENGINE_BUFFER_FALSE= | ||
20081 | fi | ||
20082 | |||
20083 | |||
20084 | if test "x${want_static_engine}" = "xyes" ; then | ||
20085 | |||
20086 | $as_echo "#define EVAS_STATIC_BUILD_BUFFER 1" >>confdefs.h | ||
20087 | |||
20088 | have_static_module="yes" | ||
20089 | fi | ||
20090 | |||
20091 | if test "x${want_static_engine}" = "xyes"; then | ||
20092 | EVAS_STATIC_BUILD_BUFFER_TRUE= | ||
20093 | EVAS_STATIC_BUILD_BUFFER_FALSE='#' | ||
20094 | else | ||
20095 | EVAS_STATIC_BUILD_BUFFER_TRUE='#' | ||
20096 | EVAS_STATIC_BUILD_BUFFER_FALSE= | ||
20097 | fi | ||
20098 | |||
20099 | |||
20100 | |||
20101 | |||
20102 | |||
20103 | |||
20104 | |||
20105 | |||
20106 | |||
20107 | |||
20108 | want_engine="${want_evas_engine_software_gdi}" | ||
20109 | want_static_engine="no" | ||
20110 | have_engine="no" | ||
20111 | have_evas_engine_software_gdi="no" | ||
20112 | |||
20113 | # Check whether --enable-software-gdi was given. | ||
20114 | if test "${enable_software_gdi+set}" = set; then : | ||
20115 | enableval=$enable_software_gdi; | ||
20116 | if test "x${enableval}" = "xyes" ; then | ||
20117 | want_engine="yes" | ||
20118 | else | ||
20119 | if test "x${enableval}" = "xstatic" ; then | ||
20120 | want_engine="static" | ||
20121 | else | ||
20122 | want_engine="no" | ||
20123 | fi | ||
20124 | fi | ||
20125 | |||
20126 | fi | ||
20127 | |||
20128 | |||
20129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software GDI rendering backend" >&5 | ||
20130 | $as_echo_n "checking whether to enable Software GDI rendering backend... " >&6; } | ||
20131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20132 | $as_echo "${want_engine}" >&6; } | ||
20133 | |||
20134 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20135 | |||
20136 | |||
20137 | have_dep="no" | ||
20138 | evas_engine_software_gdi_cflags="" | ||
20139 | evas_engine_software_gdi_libs="" | ||
20140 | |||
20141 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | ||
20142 | if test "x$ac_cv_header_windows_h" = x""yes; then : | ||
20143 | |||
20144 | have_dep="yes" | ||
20145 | evas_engine_software_gdi_libs="-lgdi32" | ||
20146 | |||
20147 | |||
20148 | fi | ||
20149 | |||
20150 | |||
20151 | |||
20152 | |||
20153 | |||
20154 | |||
20155 | if test "x${have_dep}" = "xyes" ; then | ||
20156 | have_engine="yes" | ||
20157 | else | ||
20158 | have_engine="no" | ||
20159 | fi | ||
20160 | |||
20161 | |||
20162 | fi | ||
20163 | |||
20164 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20165 | as_fn_error $? "Software GDI dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20166 | fi | ||
20167 | |||
20168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software GDI rendering backend will be built" >&5 | ||
20169 | $as_echo_n "checking whether Software GDI rendering backend will be built... " >&6; } | ||
20170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20171 | $as_echo "${have_engine}" >&6; } | ||
20172 | |||
20173 | if test "x${have_engine}" = "xyes" ; then | ||
20174 | if test "x${want_engine}" = "xstatic" ; then | ||
20175 | have_evas_engine_software_gdi="static" | ||
20176 | want_static_engine="yes" | ||
20177 | else | ||
20178 | have_evas_engine_software_gdi="yes" | ||
20179 | fi | ||
20180 | fi | ||
20181 | |||
20182 | if test "x${have_engine}" = "xyes" ; then | ||
20183 | |||
20184 | $as_echo "#define BUILD_ENGINE_SOFTWARE_GDI 1" >>confdefs.h | ||
20185 | |||
20186 | fi | ||
20187 | |||
20188 | if test "x${have_engine}" = "xyes"; then | ||
20189 | BUILD_ENGINE_SOFTWARE_GDI_TRUE= | ||
20190 | BUILD_ENGINE_SOFTWARE_GDI_FALSE='#' | ||
20191 | else | ||
20192 | BUILD_ENGINE_SOFTWARE_GDI_TRUE='#' | ||
20193 | BUILD_ENGINE_SOFTWARE_GDI_FALSE= | ||
20194 | fi | ||
20195 | |||
20196 | |||
20197 | if test "x${want_static_engine}" = "xyes" ; then | ||
20198 | |||
20199 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_GDI 1" >>confdefs.h | ||
20200 | |||
20201 | have_static_module="yes" | ||
20202 | fi | ||
20203 | |||
20204 | if test "x${want_static_engine}" = "xyes"; then | ||
20205 | EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE= | ||
20206 | EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE='#' | ||
20207 | else | ||
20208 | EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE='#' | ||
20209 | EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE= | ||
20210 | fi | ||
20211 | |||
20212 | |||
20213 | |||
20214 | |||
20215 | |||
20216 | |||
20217 | |||
20218 | |||
20219 | |||
20220 | |||
20221 | want_engine="${want_evas_engine_software_ddraw}" | ||
20222 | want_static_engine="no" | ||
20223 | have_engine="no" | ||
20224 | have_evas_engine_software_ddraw="no" | ||
20225 | |||
20226 | # Check whether --enable-software-ddraw was given. | ||
20227 | if test "${enable_software_ddraw+set}" = set; then : | ||
20228 | enableval=$enable_software_ddraw; | ||
20229 | if test "x${enableval}" = "xyes" ; then | ||
20230 | want_engine="yes" | ||
20231 | else | ||
20232 | if test "x${enableval}" = "xstatic" ; then | ||
20233 | want_engine="static" | ||
20234 | else | ||
20235 | want_engine="no" | ||
20236 | fi | ||
20237 | fi | ||
20238 | |||
20239 | fi | ||
20240 | |||
20241 | |||
20242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software DirectDraw rendering backend" >&5 | ||
20243 | $as_echo_n "checking whether to enable Software DirectDraw rendering backend... " >&6; } | ||
20244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20245 | $as_echo "${want_engine}" >&6; } | ||
20246 | |||
20247 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20248 | |||
20249 | |||
20250 | have_dep="no" | ||
20251 | evas_engine_software_ddraw_cflags="" | ||
20252 | evas_engine_software_ddraw_libs="" | ||
20253 | |||
20254 | ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default" | ||
20255 | if test "x$ac_cv_header_ddraw_h" = x""yes; then : | ||
20256 | |||
20257 | have_dep="yes" | ||
20258 | evas_engine_software_ddraw_libs="-lddraw" | ||
20259 | |||
20260 | |||
20261 | fi | ||
20262 | |||
20263 | |||
20264 | |||
20265 | |||
20266 | |||
20267 | |||
20268 | if test "x${have_dep}" = "xyes" ; then | ||
20269 | have_engine="yes" | ||
20270 | else | ||
20271 | have_engine="no" | ||
20272 | fi | ||
20273 | |||
20274 | |||
20275 | fi | ||
20276 | |||
20277 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20278 | as_fn_error $? "Software DirectDraw dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20279 | fi | ||
20280 | |||
20281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software DirectDraw rendering backend will be built" >&5 | ||
20282 | $as_echo_n "checking whether Software DirectDraw rendering backend will be built... " >&6; } | ||
20283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20284 | $as_echo "${have_engine}" >&6; } | ||
20285 | |||
20286 | if test "x${have_engine}" = "xyes" ; then | ||
20287 | if test "x${want_engine}" = "xstatic" ; then | ||
20288 | have_evas_engine_software_ddraw="static" | ||
20289 | want_static_engine="yes" | ||
20290 | else | ||
20291 | have_evas_engine_software_ddraw="yes" | ||
20292 | fi | ||
20293 | fi | ||
20294 | |||
20295 | if test "x${have_engine}" = "xyes" ; then | ||
20296 | |||
20297 | $as_echo "#define BUILD_ENGINE_SOFTWARE_DDRAW 1" >>confdefs.h | ||
20298 | |||
20299 | fi | ||
20300 | |||
20301 | if test "x${have_engine}" = "xyes"; then | ||
20302 | BUILD_ENGINE_SOFTWARE_DDRAW_TRUE= | ||
20303 | BUILD_ENGINE_SOFTWARE_DDRAW_FALSE='#' | ||
20304 | else | ||
20305 | BUILD_ENGINE_SOFTWARE_DDRAW_TRUE='#' | ||
20306 | BUILD_ENGINE_SOFTWARE_DDRAW_FALSE= | ||
20307 | fi | ||
20308 | |||
20309 | |||
20310 | if test "x${want_static_engine}" = "xyes" ; then | ||
20311 | |||
20312 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_DDRAW 1" >>confdefs.h | ||
20313 | |||
20314 | have_static_module="yes" | ||
20315 | fi | ||
20316 | |||
20317 | if test "x${want_static_engine}" = "xyes"; then | ||
20318 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE= | ||
20319 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE='#' | ||
20320 | else | ||
20321 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE='#' | ||
20322 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE= | ||
20323 | fi | ||
20324 | |||
20325 | |||
20326 | |||
20327 | |||
20328 | |||
20329 | |||
20330 | |||
20331 | |||
20332 | |||
20333 | |||
20334 | want_engine="${want_evas_engine_direct3d}" | ||
20335 | want_static_engine="no" | ||
20336 | have_engine="no" | ||
20337 | have_evas_engine_direct3d="no" | ||
20338 | |||
20339 | # Check whether --enable-direct3d was given. | ||
20340 | if test "${enable_direct3d+set}" = set; then : | ||
20341 | enableval=$enable_direct3d; | ||
20342 | if test "x${enableval}" = "xyes" ; then | ||
20343 | want_engine="yes" | ||
20344 | else | ||
20345 | if test "x${enableval}" = "xstatic" ; then | ||
20346 | want_engine="static" | ||
20347 | else | ||
20348 | want_engine="no" | ||
20349 | fi | ||
20350 | fi | ||
20351 | |||
20352 | fi | ||
20353 | |||
20354 | |||
20355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Direct3D rendering backend" >&5 | ||
20356 | $as_echo_n "checking whether to enable Direct3D rendering backend... " >&6; } | ||
20357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20358 | $as_echo "${want_engine}" >&6; } | ||
20359 | |||
20360 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20361 | |||
20362 | |||
20363 | evas_engine_direct3d_cflags="" | ||
20364 | evas_engine_direct3d_libs="" | ||
20365 | |||
20366 | for ac_header in d3d9.h d3dx9.h | ||
20367 | do : | ||
20368 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
20369 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
20370 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
20371 | cat >>confdefs.h <<_ACEOF | ||
20372 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
20373 | _ACEOF | ||
20374 | |||
20375 | have_dep="yes" | ||
20376 | evas_engine_direct3d_libs="-ld3d9 -ld3dx9 -lgdi32" | ||
20377 | |||
20378 | else | ||
20379 | have_dep="no"; break | ||
20380 | |||
20381 | fi | ||
20382 | |||
20383 | done | ||
20384 | |||
20385 | |||
20386 | |||
20387 | |||
20388 | |||
20389 | if test "x${have_dep}" = "xyes" ; then | ||
20390 | have_engine="yes" | ||
20391 | else | ||
20392 | have_engine="no" | ||
20393 | fi | ||
20394 | |||
20395 | |||
20396 | fi | ||
20397 | |||
20398 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20399 | as_fn_error $? "Direct3D dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20400 | fi | ||
20401 | |||
20402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Direct3D rendering backend will be built" >&5 | ||
20403 | $as_echo_n "checking whether Direct3D rendering backend will be built... " >&6; } | ||
20404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20405 | $as_echo "${have_engine}" >&6; } | ||
20406 | |||
20407 | if test "x${have_engine}" = "xyes" ; then | ||
20408 | if test "x${want_engine}" = "xstatic" ; then | ||
20409 | have_evas_engine_direct3d="static" | ||
20410 | want_static_engine="yes" | ||
20411 | else | ||
20412 | have_evas_engine_direct3d="yes" | ||
20413 | fi | ||
20414 | fi | ||
20415 | |||
20416 | if test "x${have_engine}" = "xyes" ; then | ||
20417 | |||
20418 | $as_echo "#define BUILD_ENGINE_DIRECT3D 1" >>confdefs.h | ||
20419 | |||
20420 | fi | ||
20421 | |||
20422 | if test "x${have_engine}" = "xyes"; then | ||
20423 | BUILD_ENGINE_DIRECT3D_TRUE= | ||
20424 | BUILD_ENGINE_DIRECT3D_FALSE='#' | ||
20425 | else | ||
20426 | BUILD_ENGINE_DIRECT3D_TRUE='#' | ||
20427 | BUILD_ENGINE_DIRECT3D_FALSE= | ||
20428 | fi | ||
20429 | |||
20430 | |||
20431 | if test "x${want_static_engine}" = "xyes" ; then | ||
20432 | |||
20433 | $as_echo "#define EVAS_STATIC_BUILD_DIRECT3D 1" >>confdefs.h | ||
20434 | |||
20435 | have_static_module="yes" | ||
20436 | fi | ||
20437 | |||
20438 | if test "x${want_static_engine}" = "xyes"; then | ||
20439 | EVAS_STATIC_BUILD_DIRECT3D_TRUE= | ||
20440 | EVAS_STATIC_BUILD_DIRECT3D_FALSE='#' | ||
20441 | else | ||
20442 | EVAS_STATIC_BUILD_DIRECT3D_TRUE='#' | ||
20443 | EVAS_STATIC_BUILD_DIRECT3D_FALSE= | ||
20444 | fi | ||
20445 | |||
20446 | |||
20447 | |||
20448 | |||
20449 | |||
20450 | |||
20451 | |||
20452 | |||
20453 | |||
20454 | |||
20455 | want_engine="${want_evas_engine_software_sdl}" | ||
20456 | want_static_engine="no" | ||
20457 | have_engine="no" | ||
20458 | have_evas_engine_software_sdl="no" | ||
20459 | |||
20460 | # Check whether --enable-software-sdl was given. | ||
20461 | if test "${enable_software_sdl+set}" = set; then : | ||
20462 | enableval=$enable_software_sdl; | ||
20463 | if test "x${enableval}" = "xyes" ; then | ||
20464 | want_engine="yes" | ||
20465 | else | ||
20466 | if test "x${enableval}" = "xstatic" ; then | ||
20467 | want_engine="static" | ||
20468 | else | ||
20469 | want_engine="no" | ||
20470 | fi | ||
20471 | fi | ||
20472 | |||
20473 | fi | ||
20474 | |||
20475 | |||
20476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software SDL rendering backend" >&5 | ||
20477 | $as_echo_n "checking whether to enable Software SDL rendering backend... " >&6; } | ||
20478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20479 | $as_echo "${want_engine}" >&6; } | ||
20480 | |||
20481 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20482 | |||
20483 | |||
20484 | requirement="" | ||
20485 | have_dep="no" | ||
20486 | evas_engine_software_sdl_cflags="" | ||
20487 | evas_engine_software_sdl_libs="" | ||
20488 | |||
20489 | |||
20490 | pkg_failed=no | ||
20491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 | ||
20492 | $as_echo_n "checking for SDL... " >&6; } | ||
20493 | |||
20494 | if test -n "$SDL_CFLAGS"; then | ||
20495 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | ||
20496 | elif test -n "$PKG_CONFIG"; then | ||
20497 | if test -n "$PKG_CONFIG" && \ | ||
20498 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20499 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20500 | ac_status=$? | ||
20501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20502 | test $ac_status = 0; }; then | ||
20503 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null` | ||
20504 | else | ||
20505 | pkg_failed=yes | ||
20506 | fi | ||
20507 | else | ||
20508 | pkg_failed=untried | ||
20509 | fi | ||
20510 | if test -n "$SDL_LIBS"; then | ||
20511 | pkg_cv_SDL_LIBS="$SDL_LIBS" | ||
20512 | elif test -n "$PKG_CONFIG"; then | ||
20513 | if test -n "$PKG_CONFIG" && \ | ||
20514 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20515 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20516 | ac_status=$? | ||
20517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20518 | test $ac_status = 0; }; then | ||
20519 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null` | ||
20520 | else | ||
20521 | pkg_failed=yes | ||
20522 | fi | ||
20523 | else | ||
20524 | pkg_failed=untried | ||
20525 | fi | ||
20526 | |||
20527 | |||
20528 | |||
20529 | if test $pkg_failed = yes; then | ||
20530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20531 | $as_echo "no" >&6; } | ||
20532 | |||
20533 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20534 | _pkg_short_errors_supported=yes | ||
20535 | else | ||
20536 | _pkg_short_errors_supported=no | ||
20537 | fi | ||
20538 | if test $_pkg_short_errors_supported = yes; then | ||
20539 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1` | ||
20540 | else | ||
20541 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1` | ||
20542 | fi | ||
20543 | # Put the nasty error message in config.log where it belongs | ||
20544 | echo "$SDL_PKG_ERRORS" >&5 | ||
20545 | |||
20546 | as_fn_error $? "Package requirements (sdl >= 1.2.0) were not met: | ||
20547 | |||
20548 | $SDL_PKG_ERRORS | ||
20549 | |||
20550 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
20551 | installed software in a non-standard prefix. | ||
20552 | |||
20553 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
20554 | and SDL_LIBS to avoid the need to call pkg-config. | ||
20555 | See the pkg-config man page for more details." "$LINENO" 5 | ||
20556 | elif test $pkg_failed = untried; then | ||
20557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20558 | $as_echo "no" >&6; } | ||
20559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
20560 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
20561 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
20562 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
20563 | path to pkg-config. | ||
20564 | |||
20565 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
20566 | and SDL_LIBS to avoid the need to call pkg-config. | ||
20567 | See the pkg-config man page for more details. | ||
20568 | |||
20569 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
20570 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
20571 | else | ||
20572 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | ||
20573 | SDL_LIBS=$pkg_cv_SDL_LIBS | ||
20574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20575 | $as_echo "yes" >&6; } | ||
20576 | |||
20577 | have_dep="yes" | ||
20578 | requirement="sdl" | ||
20579 | evas_engine_software_sdl_cflags="${SDL_CFLAGS}" | ||
20580 | evas_engine_software_sdl_libs="${SDL_LIBS}" | ||
20581 | |||
20582 | |||
20583 | fi | ||
20584 | |||
20585 | |||
20586 | |||
20587 | |||
20588 | if test "x${want_engine}" = "xstatic" ; then | ||
20589 | requirement_evas="${requirement} ${requirement_evas}" | ||
20590 | fi | ||
20591 | |||
20592 | if test "x${have_dep}" = "xyes" ; then | ||
20593 | have_engine="yes" | ||
20594 | else | ||
20595 | have_engine="no" | ||
20596 | fi | ||
20597 | |||
20598 | |||
20599 | fi | ||
20600 | |||
20601 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20602 | as_fn_error $? "Software SDL dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20603 | fi | ||
20604 | |||
20605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software SDL rendering backend will be built" >&5 | ||
20606 | $as_echo_n "checking whether Software SDL rendering backend will be built... " >&6; } | ||
20607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20608 | $as_echo "${have_engine}" >&6; } | ||
20609 | |||
20610 | if test "x${have_engine}" = "xyes" ; then | ||
20611 | if test "x${want_engine}" = "xstatic" ; then | ||
20612 | have_evas_engine_software_sdl="static" | ||
20613 | want_static_engine="yes" | ||
20614 | else | ||
20615 | have_evas_engine_software_sdl="yes" | ||
20616 | fi | ||
20617 | fi | ||
20618 | |||
20619 | if test "x${have_engine}" = "xyes" ; then | ||
20620 | |||
20621 | $as_echo "#define BUILD_ENGINE_SOFTWARE_SDL 1" >>confdefs.h | ||
20622 | |||
20623 | fi | ||
20624 | |||
20625 | if test "x${have_engine}" = "xyes"; then | ||
20626 | BUILD_ENGINE_SOFTWARE_SDL_TRUE= | ||
20627 | BUILD_ENGINE_SOFTWARE_SDL_FALSE='#' | ||
20628 | else | ||
20629 | BUILD_ENGINE_SOFTWARE_SDL_TRUE='#' | ||
20630 | BUILD_ENGINE_SOFTWARE_SDL_FALSE= | ||
20631 | fi | ||
20632 | |||
20633 | |||
20634 | if test "x${want_static_engine}" = "xyes" ; then | ||
20635 | |||
20636 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_SDL 1" >>confdefs.h | ||
20637 | |||
20638 | have_static_module="yes" | ||
20639 | fi | ||
20640 | |||
20641 | if test "x${want_static_engine}" = "xyes"; then | ||
20642 | EVAS_STATIC_BUILD_SOFTWARE_SDL_TRUE= | ||
20643 | EVAS_STATIC_BUILD_SOFTWARE_SDL_FALSE='#' | ||
20644 | else | ||
20645 | EVAS_STATIC_BUILD_SOFTWARE_SDL_TRUE='#' | ||
20646 | EVAS_STATIC_BUILD_SOFTWARE_SDL_FALSE= | ||
20647 | fi | ||
20648 | |||
20649 | |||
20650 | |||
20651 | |||
20652 | |||
20653 | |||
20654 | |||
20655 | |||
20656 | |||
20657 | |||
20658 | want_engine="${want_evas_engine_psl1ght}" | ||
20659 | want_static_engine="no" | ||
20660 | have_engine="no" | ||
20661 | have_evas_engine_psl1ght="no" | ||
20662 | |||
20663 | # Check whether --enable-psl1ght was given. | ||
20664 | if test "${enable_psl1ght+set}" = set; then : | ||
20665 | enableval=$enable_psl1ght; | ||
20666 | if test "x${enableval}" = "xyes" ; then | ||
20667 | want_engine="yes" | ||
20668 | else | ||
20669 | if test "x${enableval}" = "xstatic" ; then | ||
20670 | want_engine="static" | ||
20671 | else | ||
20672 | want_engine="no" | ||
20673 | fi | ||
20674 | fi | ||
20675 | |||
20676 | fi | ||
20677 | |||
20678 | |||
20679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PSL1GHT rendering backend" >&5 | ||
20680 | $as_echo_n "checking whether to enable PSL1GHT rendering backend... " >&6; } | ||
20681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20682 | $as_echo "${want_engine}" >&6; } | ||
20683 | |||
20684 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20685 | |||
20686 | |||
20687 | have_dep="no" | ||
20688 | evas_engine_psl1ght_cflags="" | ||
20689 | evas_engine_psl1ght_libs="" | ||
20690 | |||
20691 | ac_fn_c_check_header_mongrel "$LINENO" "rsx/rsx.h" "ac_cv_header_rsx_rsx_h" "$ac_includes_default" | ||
20692 | if test "x$ac_cv_header_rsx_rsx_h" = x""yes; then : | ||
20693 | have_dep="yes" | ||
20694 | fi | ||
20695 | |||
20696 | |||
20697 | |||
20698 | |||
20699 | |||
20700 | |||
20701 | if test "x${have_dep}" = "xyes" ; then | ||
20702 | have_engine="yes" | ||
20703 | else | ||
20704 | have_engine="no" | ||
20705 | fi | ||
20706 | |||
20707 | |||
20708 | fi | ||
20709 | |||
20710 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20711 | as_fn_error $? "PSL1GHT dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20712 | fi | ||
20713 | |||
20714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PSL1GHT rendering backend will be built" >&5 | ||
20715 | $as_echo_n "checking whether PSL1GHT rendering backend will be built... " >&6; } | ||
20716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20717 | $as_echo "${have_engine}" >&6; } | ||
20718 | |||
20719 | if test "x${have_engine}" = "xyes" ; then | ||
20720 | if test "x${want_engine}" = "xstatic" ; then | ||
20721 | have_evas_engine_psl1ght="static" | ||
20722 | want_static_engine="yes" | ||
20723 | else | ||
20724 | have_evas_engine_psl1ght="yes" | ||
20725 | fi | ||
20726 | fi | ||
20727 | |||
20728 | if test "x${have_engine}" = "xyes" ; then | ||
20729 | |||
20730 | $as_echo "#define BUILD_ENGINE_PSL1GHT 1" >>confdefs.h | ||
20731 | |||
20732 | fi | ||
20733 | |||
20734 | if test "x${have_engine}" = "xyes"; then | ||
20735 | BUILD_ENGINE_PSL1GHT_TRUE= | ||
20736 | BUILD_ENGINE_PSL1GHT_FALSE='#' | ||
20737 | else | ||
20738 | BUILD_ENGINE_PSL1GHT_TRUE='#' | ||
20739 | BUILD_ENGINE_PSL1GHT_FALSE= | ||
20740 | fi | ||
20741 | |||
20742 | |||
20743 | if test "x${want_static_engine}" = "xyes" ; then | ||
20744 | |||
20745 | $as_echo "#define EVAS_STATIC_BUILD_PSL1GHT 1" >>confdefs.h | ||
20746 | |||
20747 | have_static_module="yes" | ||
20748 | fi | ||
20749 | |||
20750 | if test "x${want_static_engine}" = "xyes"; then | ||
20751 | EVAS_STATIC_BUILD_PSL1GHT_TRUE= | ||
20752 | EVAS_STATIC_BUILD_PSL1GHT_FALSE='#' | ||
20753 | else | ||
20754 | EVAS_STATIC_BUILD_PSL1GHT_TRUE='#' | ||
20755 | EVAS_STATIC_BUILD_PSL1GHT_FALSE= | ||
20756 | fi | ||
20757 | |||
20758 | |||
20759 | |||
20760 | |||
20761 | |||
20762 | |||
20763 | |||
20764 | |||
20765 | |||
20766 | |||
20767 | want_engine="${want_evas_engine_gl_sdl}" | ||
20768 | want_static_engine="no" | ||
20769 | have_engine="no" | ||
20770 | have_evas_engine_gl_sdl="no" | ||
20771 | |||
20772 | # Check whether --enable-gl-sdl was given. | ||
20773 | if test "${enable_gl_sdl+set}" = set; then : | ||
20774 | enableval=$enable_gl_sdl; | ||
20775 | if test "x${enableval}" = "xyes" ; then | ||
20776 | want_engine="yes" | ||
20777 | else | ||
20778 | if test "x${enableval}" = "xstatic" ; then | ||
20779 | want_engine="static" | ||
20780 | else | ||
20781 | want_engine="no" | ||
20782 | fi | ||
20783 | fi | ||
20784 | |||
20785 | fi | ||
20786 | |||
20787 | |||
20788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL SDL rendering backend" >&5 | ||
20789 | $as_echo_n "checking whether to enable OpenGL SDL rendering backend... " >&6; } | ||
20790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20791 | $as_echo "${want_engine}" >&6; } | ||
20792 | |||
20793 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20794 | |||
20795 | |||
20796 | requirement="" | ||
20797 | have_dep="no" | ||
20798 | evas_engine_gl_sdl_cflags="" | ||
20799 | evas_engine_gl_sdl_libs="" | ||
20800 | |||
20801 | |||
20802 | pkg_failed=no | ||
20803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 | ||
20804 | $as_echo_n "checking for SDL... " >&6; } | ||
20805 | |||
20806 | if test -n "$SDL_CFLAGS"; then | ||
20807 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | ||
20808 | elif test -n "$PKG_CONFIG"; then | ||
20809 | if test -n "$PKG_CONFIG" && \ | ||
20810 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20811 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20812 | ac_status=$? | ||
20813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20814 | test $ac_status = 0; }; then | ||
20815 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null` | ||
20816 | else | ||
20817 | pkg_failed=yes | ||
20818 | fi | ||
20819 | else | ||
20820 | pkg_failed=untried | ||
20821 | fi | ||
20822 | if test -n "$SDL_LIBS"; then | ||
20823 | pkg_cv_SDL_LIBS="$SDL_LIBS" | ||
20824 | elif test -n "$PKG_CONFIG"; then | ||
20825 | if test -n "$PKG_CONFIG" && \ | ||
20826 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20827 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20828 | ac_status=$? | ||
20829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20830 | test $ac_status = 0; }; then | ||
20831 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null` | ||
20832 | else | ||
20833 | pkg_failed=yes | ||
20834 | fi | ||
20835 | else | ||
20836 | pkg_failed=untried | ||
20837 | fi | ||
20838 | |||
20839 | |||
20840 | |||
20841 | if test $pkg_failed = yes; then | ||
20842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20843 | $as_echo "no" >&6; } | ||
20844 | |||
20845 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20846 | _pkg_short_errors_supported=yes | ||
20847 | else | ||
20848 | _pkg_short_errors_supported=no | ||
20849 | fi | ||
20850 | if test $_pkg_short_errors_supported = yes; then | ||
20851 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1` | ||
20852 | else | ||
20853 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1` | ||
20854 | fi | ||
20855 | # Put the nasty error message in config.log where it belongs | ||
20856 | echo "$SDL_PKG_ERRORS" >&5 | ||
20857 | |||
20858 | as_fn_error $? "Package requirements (sdl >= 1.2.0) were not met: | ||
20859 | |||
20860 | $SDL_PKG_ERRORS | ||
20861 | |||
20862 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
20863 | installed software in a non-standard prefix. | ||
20864 | |||
20865 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
20866 | and SDL_LIBS to avoid the need to call pkg-config. | ||
20867 | See the pkg-config man page for more details." "$LINENO" 5 | ||
20868 | elif test $pkg_failed = untried; then | ||
20869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20870 | $as_echo "no" >&6; } | ||
20871 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
20872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
20873 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
20874 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
20875 | path to pkg-config. | ||
20876 | |||
20877 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
20878 | and SDL_LIBS to avoid the need to call pkg-config. | ||
20879 | See the pkg-config man page for more details. | ||
20880 | |||
20881 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
20882 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
20883 | else | ||
20884 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | ||
20885 | SDL_LIBS=$pkg_cv_SDL_LIBS | ||
20886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20887 | $as_echo "yes" >&6; } | ||
20888 | |||
20889 | have_dep="yes" | ||
20890 | requirement="sdl" | ||
20891 | evas_engine_gl_sdl_cflags="${SDL_CFLAGS}" | ||
20892 | evas_engine_gl_sdl_libs="${SDL_LIBS}" | ||
20893 | |||
20894 | |||
20895 | fi | ||
20896 | |||
20897 | gl_pt_lib=""; | ||
20898 | have_gl_pt="no" | ||
20899 | |||
20900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5 | ||
20901 | $as_echo_n "checking whether pthread_create() is supported... " >&6; } | ||
20902 | CFLAGS_save="${CFLAGS}" | ||
20903 | CFLAGS="${CFLAGS} -pthread" | ||
20904 | LIBS_save="${LIBS}" | ||
20905 | LIBS="${LIBS} -pthread" | ||
20906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20907 | /* end confdefs.h. */ | ||
20908 | |||
20909 | #include <pthread.h> | ||
20910 | |||
20911 | int | ||
20912 | main () | ||
20913 | { | ||
20914 | |||
20915 | pthread_create(NULL, NULL, NULL, NULL); | ||
20916 | |||
20917 | ; | ||
20918 | return 0; | ||
20919 | } | ||
20920 | _ACEOF | ||
20921 | if ac_fn_c_try_link "$LINENO"; then : | ||
20922 | have_gl_pt="yes" | ||
20923 | else | ||
20924 | have_gl_pt="no" | ||
20925 | fi | ||
20926 | rm -f core conftest.err conftest.$ac_objext \ | ||
20927 | conftest$ac_exeext conftest.$ac_ext | ||
20928 | CFLAGS=${CFLAGS_save} | ||
20929 | LIBS=${LIBS_save} | ||
20930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5 | ||
20931 | $as_echo "${have_gl_pt}" >&6; } | ||
20932 | |||
20933 | if test "x$have_gl_pt" = "xyes" ; then | ||
20934 | gl_pt_lib=" -pthread" | ||
20935 | fi | ||
20936 | |||
20937 | ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" " | ||
20938 | #include <GL/gl.h> | ||
20939 | #include <GL/glext.h> | ||
20940 | |||
20941 | " | ||
20942 | if test "x$ac_cv_header_GL_gl_h" = x""yes; then : | ||
20943 | have_dep="yes" | ||
20944 | else | ||
20945 | have_dep="no" | ||
20946 | fi | ||
20947 | |||
20948 | |||
20949 | |||
20950 | if test "x$gl_flavor_gles" = "xyes" ; then | ||
20951 | have_dep=no | ||
20952 | fi | ||
20953 | |||
20954 | if test "x${have_dep}" = "xyes" ; then | ||
20955 | evas_engine_gl_sdl_cflags="${SDL_CFLAGS}" | ||
20956 | evas_engine_gl_sdl_libs="${SDL_LIBS} -lGL -lm $gl_pt_lib" | ||
20957 | evas_engine_gl_common_libs="-lGL -lm $gl_pt_lib" | ||
20958 | else | ||
20959 | ac_fn_c_check_header_compile "$LINENO" "SDL/SDL_opengles.h" "ac_cv_header_SDL_SDL_opengles_h" " | ||
20960 | #include <SDL/SDL_opengles.h> | ||
20961 | #include <EGL/egl.h> | ||
20962 | |||
20963 | " | ||
20964 | if test "x$ac_cv_header_SDL_SDL_opengles_h" = x""yes; then : | ||
20965 | have_egl="yes" | ||
20966 | else | ||
20967 | have_egl="no" | ||
20968 | fi | ||
20969 | |||
20970 | |||
20971 | if test "x${have_egl}" = "xyes" ; then | ||
20972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5 | ||
20973 | $as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; } | ||
20974 | if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then : | ||
20975 | $as_echo_n "(cached) " >&6 | ||
20976 | else | ||
20977 | ac_check_lib_save_LIBS=$LIBS | ||
20978 | LIBS="-lGLESv2 -lEGL -lm $gl_pt_lib $LIBS" | ||
20979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20980 | /* end confdefs.h. */ | ||
20981 | |||
20982 | /* Override any GCC internal prototype to avoid an error. | ||
20983 | Use char because int might match the return type of a GCC | ||
20984 | builtin and then its argument prototype would still apply. */ | ||
20985 | #ifdef __cplusplus | ||
20986 | extern "C" | ||
20987 | #endif | ||
20988 | char glTexImage2D (); | ||
20989 | int | ||
20990 | main () | ||
20991 | { | ||
20992 | return glTexImage2D (); | ||
20993 | ; | ||
20994 | return 0; | ||
20995 | } | ||
20996 | _ACEOF | ||
20997 | if ac_fn_c_try_link "$LINENO"; then : | ||
20998 | ac_cv_lib_GLESv2_glTexImage2D=yes | ||
20999 | else | ||
21000 | ac_cv_lib_GLESv2_glTexImage2D=no | ||
21001 | fi | ||
21002 | rm -f core conftest.err conftest.$ac_objext \ | ||
21003 | conftest$ac_exeext conftest.$ac_ext | ||
21004 | LIBS=$ac_check_lib_save_LIBS | ||
21005 | fi | ||
21006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5 | ||
21007 | $as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; } | ||
21008 | if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then : | ||
21009 | have_glesv2="yes" | ||
21010 | fi | ||
21011 | |||
21012 | if test "x${have_glesv2}" = "xyes" ; then | ||
21013 | evas_engine_gl_sdl_cflags="${SDL_CFLAGS}" | ||
21014 | evas_engine_gl_sdl_libs="${SDL_LIBS} -lGLESv2 -lEGL -lm $gl_pt_lib" | ||
21015 | evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib" | ||
21016 | have_dep="yes" | ||
21017 | gl_flavor_gles="no" | ||
21018 | |||
21019 | $as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h | ||
21020 | |||
21021 | gles_variety_sgx="yes" | ||
21022 | fi | ||
21023 | fi | ||
21024 | fi | ||
21025 | |||
21026 | |||
21027 | |||
21028 | |||
21029 | if test "x${want_engine}" = "xstatic" ; then | ||
21030 | requirement_evas="${requirement} ${requirement_evas}" | ||
21031 | fi | ||
21032 | |||
21033 | if test "x${have_dep}" = "xyes" ; then | ||
21034 | have_engine="yes" | ||
21035 | else | ||
21036 | have_engine="no" | ||
21037 | fi | ||
21038 | |||
21039 | |||
21040 | fi | ||
21041 | |||
21042 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21043 | as_fn_error $? "OpenGL SDL dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21044 | fi | ||
21045 | |||
21046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL SDL rendering backend will be built" >&5 | ||
21047 | $as_echo_n "checking whether OpenGL SDL rendering backend will be built... " >&6; } | ||
21048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21049 | $as_echo "${have_engine}" >&6; } | ||
21050 | |||
21051 | if test "x${have_engine}" = "xyes" ; then | ||
21052 | if test "x${want_engine}" = "xstatic" ; then | ||
21053 | have_evas_engine_gl_sdl="static" | ||
21054 | want_static_engine="yes" | ||
21055 | else | ||
21056 | have_evas_engine_gl_sdl="yes" | ||
21057 | fi | ||
21058 | fi | ||
21059 | |||
21060 | if test "x${have_engine}" = "xyes" ; then | ||
21061 | |||
21062 | $as_echo "#define BUILD_ENGINE_GL_SDL 1" >>confdefs.h | ||
21063 | |||
21064 | fi | ||
21065 | |||
21066 | if test "x${have_engine}" = "xyes"; then | ||
21067 | BUILD_ENGINE_GL_SDL_TRUE= | ||
21068 | BUILD_ENGINE_GL_SDL_FALSE='#' | ||
21069 | else | ||
21070 | BUILD_ENGINE_GL_SDL_TRUE='#' | ||
21071 | BUILD_ENGINE_GL_SDL_FALSE= | ||
21072 | fi | ||
21073 | |||
21074 | |||
21075 | if test "x${want_static_engine}" = "xyes" ; then | ||
21076 | |||
21077 | $as_echo "#define EVAS_STATIC_BUILD_GL_SDL 1" >>confdefs.h | ||
21078 | |||
21079 | have_static_module="yes" | ||
21080 | fi | ||
21081 | |||
21082 | if test "x${want_static_engine}" = "xyes"; then | ||
21083 | EVAS_STATIC_BUILD_GL_SDL_TRUE= | ||
21084 | EVAS_STATIC_BUILD_GL_SDL_FALSE='#' | ||
21085 | else | ||
21086 | EVAS_STATIC_BUILD_GL_SDL_TRUE='#' | ||
21087 | EVAS_STATIC_BUILD_GL_SDL_FALSE= | ||
21088 | fi | ||
21089 | |||
21090 | |||
21091 | |||
21092 | |||
21093 | |||
21094 | |||
21095 | |||
21096 | |||
21097 | |||
21098 | |||
21099 | want_engine="${want_evas_engine_gl_cocoa}" | ||
21100 | want_static_engine="no" | ||
21101 | have_engine="no" | ||
21102 | have_evas_engine_gl_cocoa="no" | ||
21103 | |||
21104 | # Check whether --enable-gl-cocoa was given. | ||
21105 | if test "${enable_gl_cocoa+set}" = set; then : | ||
21106 | enableval=$enable_gl_cocoa; | ||
21107 | if test "x${enableval}" = "xyes" ; then | ||
21108 | want_engine="yes" | ||
21109 | else | ||
21110 | if test "x${enableval}" = "xstatic" ; then | ||
21111 | want_engine="static" | ||
21112 | else | ||
21113 | want_engine="no" | ||
21114 | fi | ||
21115 | fi | ||
21116 | |||
21117 | fi | ||
21118 | |||
21119 | |||
21120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL Cocoa rendering backend" >&5 | ||
21121 | $as_echo_n "checking whether to enable OpenGL Cocoa rendering backend... " >&6; } | ||
21122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21123 | $as_echo "${want_engine}" >&6; } | ||
21124 | |||
21125 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21126 | |||
21127 | |||
21128 | evas_engine_gl_cocoa_cflags="" | ||
21129 | evas_engine_gl_cocoa_libs="" | ||
21130 | |||
21131 | ac_ext=m | ||
21132 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
21133 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
21134 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
21135 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
21136 | |||
21137 | |||
21138 | LIBS_save="$LIBS" | ||
21139 | LIBS="$LIBS -framework Cocoa" | ||
21140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21141 | /* end confdefs.h. */ | ||
21142 | |||
21143 | #include <Cocoa/Cocoa.h> | ||
21144 | |||
21145 | int | ||
21146 | main () | ||
21147 | { | ||
21148 | |||
21149 | NSWindow *window; | ||
21150 | window = [[NSWindow alloc] | ||
21151 | initWithContentRect:NSMakeRect(0, 0, 1, 1) | ||
21152 | styleMask:(NSTitledWindowMask) | ||
21153 | backing:NSBackingStoreBuffered | ||
21154 | defer:NO | ||
21155 | screen:nil | ||
21156 | ]; | ||
21157 | |||
21158 | ; | ||
21159 | return 0; | ||
21160 | } | ||
21161 | _ACEOF | ||
21162 | if ac_fn_objc_try_link "$LINENO"; then : | ||
21163 | |||
21164 | have_dep="yes" | ||
21165 | evas_engine_gl_cocoa_libs="-framework Cocoa" | ||
21166 | |||
21167 | else | ||
21168 | have_dep="no" | ||
21169 | fi | ||
21170 | rm -f core conftest.err conftest.$ac_objext \ | ||
21171 | conftest$ac_exeext conftest.$ac_ext | ||
21172 | LIBS="$LIBS_save" | ||
21173 | |||
21174 | ac_ext=c | ||
21175 | ac_cpp='$CPP $CPPFLAGS' | ||
21176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
21177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
21178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
21179 | |||
21180 | |||
21181 | if test "x${have_dep}" = "xyes" ; then | ||
21182 | |||
21183 | pkg_failed=no | ||
21184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
21185 | $as_echo_n "checking for GL_EET... " >&6; } | ||
21186 | |||
21187 | if test -n "$GL_EET_CFLAGS"; then | ||
21188 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
21189 | elif test -n "$PKG_CONFIG"; then | ||
21190 | if test -n "$PKG_CONFIG" && \ | ||
21191 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
21192 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
21193 | ac_status=$? | ||
21194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21195 | test $ac_status = 0; }; then | ||
21196 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null` | ||
21197 | else | ||
21198 | pkg_failed=yes | ||
21199 | fi | ||
21200 | else | ||
21201 | pkg_failed=untried | ||
21202 | fi | ||
21203 | if test -n "$GL_EET_LIBS"; then | ||
21204 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
21205 | elif test -n "$PKG_CONFIG"; then | ||
21206 | if test -n "$PKG_CONFIG" && \ | ||
21207 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
21208 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
21209 | ac_status=$? | ||
21210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21211 | test $ac_status = 0; }; then | ||
21212 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null` | ||
21213 | else | ||
21214 | pkg_failed=yes | ||
21215 | fi | ||
21216 | else | ||
21217 | pkg_failed=untried | ||
21218 | fi | ||
21219 | |||
21220 | |||
21221 | |||
21222 | if test $pkg_failed = yes; then | ||
21223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21224 | $as_echo "no" >&6; } | ||
21225 | |||
21226 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21227 | _pkg_short_errors_supported=yes | ||
21228 | else | ||
21229 | _pkg_short_errors_supported=no | ||
21230 | fi | ||
21231 | if test $_pkg_short_errors_supported = yes; then | ||
21232 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1` | ||
21233 | else | ||
21234 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1` | ||
21235 | fi | ||
21236 | # Put the nasty error message in config.log where it belongs | ||
21237 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
21238 | |||
21239 | have_dep="no" | ||
21240 | elif test $pkg_failed = untried; then | ||
21241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21242 | $as_echo "no" >&6; } | ||
21243 | have_dep="no" | ||
21244 | else | ||
21245 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
21246 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
21247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21248 | $as_echo "yes" >&6; } | ||
21249 | have_dep="yes" | ||
21250 | fi | ||
21251 | fi | ||
21252 | |||
21253 | |||
21254 | |||
21255 | |||
21256 | if test "x${have_dep}" = "xyes" ; then | ||
21257 | have_engine="yes" | ||
21258 | else | ||
21259 | have_engine="no" | ||
21260 | fi | ||
21261 | |||
21262 | |||
21263 | fi | ||
21264 | |||
21265 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21266 | as_fn_error $? "OpenGL Cocoa dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21267 | fi | ||
21268 | |||
21269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL Cocoa rendering backend will be built" >&5 | ||
21270 | $as_echo_n "checking whether OpenGL Cocoa rendering backend will be built... " >&6; } | ||
21271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21272 | $as_echo "${have_engine}" >&6; } | ||
21273 | |||
21274 | if test "x${have_engine}" = "xyes" ; then | ||
21275 | if test "x${want_engine}" = "xstatic" ; then | ||
21276 | have_evas_engine_gl_cocoa="static" | ||
21277 | want_static_engine="yes" | ||
21278 | else | ||
21279 | have_evas_engine_gl_cocoa="yes" | ||
21280 | fi | ||
21281 | fi | ||
21282 | |||
21283 | if test "x${have_engine}" = "xyes" ; then | ||
21284 | |||
21285 | $as_echo "#define BUILD_ENGINE_GL_COCOA 1" >>confdefs.h | ||
21286 | |||
21287 | fi | ||
21288 | |||
21289 | if test "x${have_engine}" = "xyes"; then | ||
21290 | BUILD_ENGINE_GL_COCOA_TRUE= | ||
21291 | BUILD_ENGINE_GL_COCOA_FALSE='#' | ||
21292 | else | ||
21293 | BUILD_ENGINE_GL_COCOA_TRUE='#' | ||
21294 | BUILD_ENGINE_GL_COCOA_FALSE= | ||
21295 | fi | ||
21296 | |||
21297 | |||
21298 | if test "x${want_static_engine}" = "xyes" ; then | ||
21299 | |||
21300 | $as_echo "#define EVAS_STATIC_BUILD_GL_COCOA 1" >>confdefs.h | ||
21301 | |||
21302 | have_static_module="yes" | ||
21303 | fi | ||
21304 | |||
21305 | if test "x${want_static_engine}" = "xyes"; then | ||
21306 | EVAS_STATIC_BUILD_GL_COCOA_TRUE= | ||
21307 | EVAS_STATIC_BUILD_GL_COCOA_FALSE='#' | ||
21308 | else | ||
21309 | EVAS_STATIC_BUILD_GL_COCOA_TRUE='#' | ||
21310 | EVAS_STATIC_BUILD_GL_COCOA_FALSE= | ||
21311 | fi | ||
21312 | |||
21313 | |||
21314 | |||
21315 | |||
21316 | |||
21317 | |||
21318 | |||
21319 | |||
21320 | |||
21321 | |||
21322 | want_engine="${want_evas_engine_fb}" | ||
21323 | want_static_engine="no" | ||
21324 | have_engine="no" | ||
21325 | have_evas_engine_fb="no" | ||
21326 | |||
21327 | # Check whether --enable-fb was given. | ||
21328 | if test "${enable_fb+set}" = set; then : | ||
21329 | enableval=$enable_fb; | ||
21330 | if test "x${enableval}" = "xyes" ; then | ||
21331 | want_engine="yes" | ||
21332 | else | ||
21333 | if test "x${enableval}" = "xstatic" ; then | ||
21334 | want_engine="static" | ||
21335 | else | ||
21336 | want_engine="no" | ||
21337 | fi | ||
21338 | fi | ||
21339 | |||
21340 | fi | ||
21341 | |||
21342 | |||
21343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Framebuffer rendering backend" >&5 | ||
21344 | $as_echo_n "checking whether to enable Framebuffer rendering backend... " >&6; } | ||
21345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21346 | $as_echo "${want_engine}" >&6; } | ||
21347 | |||
21348 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21349 | |||
21350 | |||
21351 | have_dep="no" | ||
21352 | evas_engine_fb_cflags="" | ||
21353 | evas_engine_fb_libs="" | ||
21354 | |||
21355 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" | ||
21356 | if test "x$ac_cv_header_linux_fb_h" = x""yes; then : | ||
21357 | have_dep="yes" | ||
21358 | fi | ||
21359 | |||
21360 | |||
21361 | |||
21362 | |||
21363 | |||
21364 | |||
21365 | if test "x${have_dep}" = "xyes" ; then | ||
21366 | have_engine="yes" | ||
21367 | else | ||
21368 | have_engine="no" | ||
21369 | fi | ||
21370 | |||
21371 | |||
21372 | fi | ||
21373 | |||
21374 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21375 | as_fn_error $? "Framebuffer dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21376 | fi | ||
21377 | |||
21378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Framebuffer rendering backend will be built" >&5 | ||
21379 | $as_echo_n "checking whether Framebuffer rendering backend will be built... " >&6; } | ||
21380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21381 | $as_echo "${have_engine}" >&6; } | ||
21382 | |||
21383 | if test "x${have_engine}" = "xyes" ; then | ||
21384 | if test "x${want_engine}" = "xstatic" ; then | ||
21385 | have_evas_engine_fb="static" | ||
21386 | want_static_engine="yes" | ||
21387 | else | ||
21388 | have_evas_engine_fb="yes" | ||
21389 | fi | ||
21390 | fi | ||
21391 | |||
21392 | if test "x${have_engine}" = "xyes" ; then | ||
21393 | |||
21394 | $as_echo "#define BUILD_ENGINE_FB 1" >>confdefs.h | ||
21395 | |||
21396 | fi | ||
21397 | |||
21398 | if test "x${have_engine}" = "xyes"; then | ||
21399 | BUILD_ENGINE_FB_TRUE= | ||
21400 | BUILD_ENGINE_FB_FALSE='#' | ||
21401 | else | ||
21402 | BUILD_ENGINE_FB_TRUE='#' | ||
21403 | BUILD_ENGINE_FB_FALSE= | ||
21404 | fi | ||
21405 | |||
21406 | |||
21407 | if test "x${want_static_engine}" = "xyes" ; then | ||
21408 | |||
21409 | $as_echo "#define EVAS_STATIC_BUILD_FB 1" >>confdefs.h | ||
21410 | |||
21411 | have_static_module="yes" | ||
21412 | fi | ||
21413 | |||
21414 | if test "x${want_static_engine}" = "xyes"; then | ||
21415 | EVAS_STATIC_BUILD_FB_TRUE= | ||
21416 | EVAS_STATIC_BUILD_FB_FALSE='#' | ||
21417 | else | ||
21418 | EVAS_STATIC_BUILD_FB_TRUE='#' | ||
21419 | EVAS_STATIC_BUILD_FB_FALSE= | ||
21420 | fi | ||
21421 | |||
21422 | |||
21423 | |||
21424 | |||
21425 | |||
21426 | |||
21427 | |||
21428 | |||
21429 | |||
21430 | |||
21431 | want_engine="${want_evas_engine_directfb}" | ||
21432 | want_static_engine="no" | ||
21433 | have_engine="no" | ||
21434 | have_evas_engine_directfb="no" | ||
21435 | |||
21436 | # Check whether --enable-directfb was given. | ||
21437 | if test "${enable_directfb+set}" = set; then : | ||
21438 | enableval=$enable_directfb; | ||
21439 | if test "x${enableval}" = "xyes" ; then | ||
21440 | want_engine="yes" | ||
21441 | else | ||
21442 | if test "x${enableval}" = "xstatic" ; then | ||
21443 | want_engine="static" | ||
21444 | else | ||
21445 | want_engine="no" | ||
21446 | fi | ||
21447 | fi | ||
21448 | |||
21449 | fi | ||
21450 | |||
21451 | |||
21452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DirectFB rendering backend" >&5 | ||
21453 | $as_echo_n "checking whether to enable DirectFB rendering backend... " >&6; } | ||
21454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21455 | $as_echo "${want_engine}" >&6; } | ||
21456 | |||
21457 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21458 | |||
21459 | |||
21460 | requirement="" | ||
21461 | have_dep="no" | ||
21462 | evas_engine_directfb_cflags="" | ||
21463 | evas_engine_directfb_libs="" | ||
21464 | |||
21465 | |||
21466 | pkg_failed=no | ||
21467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5 | ||
21468 | $as_echo_n "checking for DIRECTFB... " >&6; } | ||
21469 | |||
21470 | if test -n "$DIRECTFB_CFLAGS"; then | ||
21471 | pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" | ||
21472 | elif test -n "$PKG_CONFIG"; then | ||
21473 | if test -n "$PKG_CONFIG" && \ | ||
21474 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5 | ||
21475 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5 | ||
21476 | ac_status=$? | ||
21477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21478 | test $ac_status = 0; }; then | ||
21479 | pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.16" 2>/dev/null` | ||
21480 | else | ||
21481 | pkg_failed=yes | ||
21482 | fi | ||
21483 | else | ||
21484 | pkg_failed=untried | ||
21485 | fi | ||
21486 | if test -n "$DIRECTFB_LIBS"; then | ||
21487 | pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" | ||
21488 | elif test -n "$PKG_CONFIG"; then | ||
21489 | if test -n "$PKG_CONFIG" && \ | ||
21490 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5 | ||
21491 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5 | ||
21492 | ac_status=$? | ||
21493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21494 | test $ac_status = 0; }; then | ||
21495 | pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.16" 2>/dev/null` | ||
21496 | else | ||
21497 | pkg_failed=yes | ||
21498 | fi | ||
21499 | else | ||
21500 | pkg_failed=untried | ||
21501 | fi | ||
21502 | |||
21503 | |||
21504 | |||
21505 | if test $pkg_failed = yes; then | ||
21506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21507 | $as_echo "no" >&6; } | ||
21508 | |||
21509 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21510 | _pkg_short_errors_supported=yes | ||
21511 | else | ||
21512 | _pkg_short_errors_supported=no | ||
21513 | fi | ||
21514 | if test $_pkg_short_errors_supported = yes; then | ||
21515 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 0.9.16" 2>&1` | ||
21516 | else | ||
21517 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 0.9.16" 2>&1` | ||
21518 | fi | ||
21519 | # Put the nasty error message in config.log where it belongs | ||
21520 | echo "$DIRECTFB_PKG_ERRORS" >&5 | ||
21521 | |||
21522 | as_fn_error $? "Package requirements (directfb >= 0.9.16) were not met: | ||
21523 | |||
21524 | $DIRECTFB_PKG_ERRORS | ||
21525 | |||
21526 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
21527 | installed software in a non-standard prefix. | ||
21528 | |||
21529 | Alternatively, you may set the environment variables DIRECTFB_CFLAGS | ||
21530 | and DIRECTFB_LIBS to avoid the need to call pkg-config. | ||
21531 | See the pkg-config man page for more details." "$LINENO" 5 | ||
21532 | elif test $pkg_failed = untried; then | ||
21533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21534 | $as_echo "no" >&6; } | ||
21535 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
21536 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
21537 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
21538 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
21539 | path to pkg-config. | ||
21540 | |||
21541 | Alternatively, you may set the environment variables DIRECTFB_CFLAGS | ||
21542 | and DIRECTFB_LIBS to avoid the need to call pkg-config. | ||
21543 | See the pkg-config man page for more details. | ||
21544 | |||
21545 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
21546 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
21547 | else | ||
21548 | DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS | ||
21549 | DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS | ||
21550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21551 | $as_echo "yes" >&6; } | ||
21552 | |||
21553 | have_dep="yes" | ||
21554 | requirement="directfb" | ||
21555 | evas_engine_directfb_cflags="${DIRECTFB_CFLAGS}" | ||
21556 | evas_engine_directfb_libs="${DIRECTFB_LIBS}" | ||
21557 | |||
21558 | |||
21559 | fi | ||
21560 | |||
21561 | |||
21562 | |||
21563 | |||
21564 | if test "x${want_engine}" = "xstatic" ; then | ||
21565 | requirement_evas="${requirement} ${requirement_evas}" | ||
21566 | fi | ||
21567 | |||
21568 | if test "x${have_dep}" = "xyes" ; then | ||
21569 | have_engine="yes" | ||
21570 | else | ||
21571 | have_engine="no" | ||
21572 | fi | ||
21573 | |||
21574 | |||
21575 | fi | ||
21576 | |||
21577 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21578 | as_fn_error $? "DirectFB dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21579 | fi | ||
21580 | |||
21581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DirectFB rendering backend will be built" >&5 | ||
21582 | $as_echo_n "checking whether DirectFB rendering backend will be built... " >&6; } | ||
21583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21584 | $as_echo "${have_engine}" >&6; } | ||
21585 | |||
21586 | if test "x${have_engine}" = "xyes" ; then | ||
21587 | if test "x${want_engine}" = "xstatic" ; then | ||
21588 | have_evas_engine_directfb="static" | ||
21589 | want_static_engine="yes" | ||
21590 | else | ||
21591 | have_evas_engine_directfb="yes" | ||
21592 | fi | ||
21593 | fi | ||
21594 | |||
21595 | if test "x${have_engine}" = "xyes" ; then | ||
21596 | |||
21597 | $as_echo "#define BUILD_ENGINE_DIRECTFB 1" >>confdefs.h | ||
21598 | |||
21599 | fi | ||
21600 | |||
21601 | if test "x${have_engine}" = "xyes"; then | ||
21602 | BUILD_ENGINE_DIRECTFB_TRUE= | ||
21603 | BUILD_ENGINE_DIRECTFB_FALSE='#' | ||
21604 | else | ||
21605 | BUILD_ENGINE_DIRECTFB_TRUE='#' | ||
21606 | BUILD_ENGINE_DIRECTFB_FALSE= | ||
21607 | fi | ||
21608 | |||
21609 | |||
21610 | if test "x${want_static_engine}" = "xyes" ; then | ||
21611 | |||
21612 | $as_echo "#define EVAS_STATIC_BUILD_DIRECTFB 1" >>confdefs.h | ||
21613 | |||
21614 | have_static_module="yes" | ||
21615 | fi | ||
21616 | |||
21617 | if test "x${want_static_engine}" = "xyes"; then | ||
21618 | EVAS_STATIC_BUILD_DIRECTFB_TRUE= | ||
21619 | EVAS_STATIC_BUILD_DIRECTFB_FALSE='#' | ||
21620 | else | ||
21621 | EVAS_STATIC_BUILD_DIRECTFB_TRUE='#' | ||
21622 | EVAS_STATIC_BUILD_DIRECTFB_FALSE= | ||
21623 | fi | ||
21624 | |||
21625 | |||
21626 | |||
21627 | |||
21628 | |||
21629 | |||
21630 | |||
21631 | |||
21632 | |||
21633 | |||
21634 | want_engine="${want_evas_engine_software_8_x11}" | ||
21635 | want_static_engine="no" | ||
21636 | have_engine="no" | ||
21637 | have_evas_engine_software_8_x11="no" | ||
21638 | |||
21639 | # Check whether --enable-software-8-x11 was given. | ||
21640 | if test "${enable_software_8_x11+set}" = set; then : | ||
21641 | enableval=$enable_software_8_x11; | ||
21642 | if test "x${enableval}" = "xyes" ; then | ||
21643 | want_engine="yes" | ||
21644 | else | ||
21645 | if test "x${enableval}" = "xstatic" ; then | ||
21646 | want_engine="static" | ||
21647 | else | ||
21648 | want_engine="no" | ||
21649 | fi | ||
21650 | fi | ||
21651 | |||
21652 | fi | ||
21653 | |||
21654 | |||
21655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software X11 8 bits grayscale rendering backend" >&5 | ||
21656 | $as_echo_n "checking whether to enable Software X11 8 bits grayscale rendering backend... " >&6; } | ||
21657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21658 | $as_echo "${want_engine}" >&6; } | ||
21659 | |||
21660 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21661 | |||
21662 | |||
21663 | have_dep="no" | ||
21664 | evas_engine_software_8_x11_cflags="" | ||
21665 | evas_engine_software_8_x11_libs="" | ||
21666 | |||
21667 | |||
21668 | pkg_failed=no | ||
21669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5 | ||
21670 | $as_echo_n "checking for XCB... " >&6; } | ||
21671 | |||
21672 | if test -n "$XCB_CFLAGS"; then | ||
21673 | pkg_cv_XCB_CFLAGS="$XCB_CFLAGS" | ||
21674 | elif test -n "$PKG_CONFIG"; then | ||
21675 | if test -n "$PKG_CONFIG" && \ | ||
21676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5 | ||
21677 | ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5 | ||
21678 | ac_status=$? | ||
21679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21680 | test $ac_status = 0; }; then | ||
21681 | pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null` | ||
21682 | else | ||
21683 | pkg_failed=yes | ||
21684 | fi | ||
21685 | else | ||
21686 | pkg_failed=untried | ||
21687 | fi | ||
21688 | if test -n "$XCB_LIBS"; then | ||
21689 | pkg_cv_XCB_LIBS="$XCB_LIBS" | ||
21690 | elif test -n "$PKG_CONFIG"; then | ||
21691 | if test -n "$PKG_CONFIG" && \ | ||
21692 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5 | ||
21693 | ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5 | ||
21694 | ac_status=$? | ||
21695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21696 | test $ac_status = 0; }; then | ||
21697 | pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null` | ||
21698 | else | ||
21699 | pkg_failed=yes | ||
21700 | fi | ||
21701 | else | ||
21702 | pkg_failed=untried | ||
21703 | fi | ||
21704 | |||
21705 | |||
21706 | |||
21707 | if test $pkg_failed = yes; then | ||
21708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21709 | $as_echo "no" >&6; } | ||
21710 | |||
21711 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21712 | _pkg_short_errors_supported=yes | ||
21713 | else | ||
21714 | _pkg_short_errors_supported=no | ||
21715 | fi | ||
21716 | if test $_pkg_short_errors_supported = yes; then | ||
21717 | XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1` | ||
21718 | else | ||
21719 | XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1` | ||
21720 | fi | ||
21721 | # Put the nasty error message in config.log where it belongs | ||
21722 | echo "$XCB_PKG_ERRORS" >&5 | ||
21723 | |||
21724 | |||
21725 | have_dep="no" | ||
21726 | |||
21727 | |||
21728 | elif test $pkg_failed = untried; then | ||
21729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21730 | $as_echo "no" >&6; } | ||
21731 | |||
21732 | have_dep="no" | ||
21733 | |||
21734 | |||
21735 | else | ||
21736 | XCB_CFLAGS=$pkg_cv_XCB_CFLAGS | ||
21737 | XCB_LIBS=$pkg_cv_XCB_LIBS | ||
21738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21739 | $as_echo "yes" >&6; } | ||
21740 | |||
21741 | have_dep="yes" | ||
21742 | requirement="xcb xcb-shm xcb-image pixman-1" | ||
21743 | evas_engine_software_8_x11_cflags="${XCB_CFLAGS}" | ||
21744 | evas_engine_software_8_x11_libs="${XCB_LIBS}" | ||
21745 | |||
21746 | fi | ||
21747 | |||
21748 | |||
21749 | |||
21750 | |||
21751 | if test "x${want_engine}" = "xstatic" ; then | ||
21752 | requirement_evas="${requirement} ${requirement_evas}" | ||
21753 | fi | ||
21754 | |||
21755 | if test "x${have_dep}" = "xyes" ; then | ||
21756 | have_engine="yes" | ||
21757 | else | ||
21758 | have_engine="no" | ||
21759 | fi | ||
21760 | |||
21761 | |||
21762 | fi | ||
21763 | |||
21764 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21765 | as_fn_error $? "Software X11 8 bits grayscale dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21766 | fi | ||
21767 | |||
21768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software X11 8 bits grayscale rendering backend will be built" >&5 | ||
21769 | $as_echo_n "checking whether Software X11 8 bits grayscale rendering backend will be built... " >&6; } | ||
21770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21771 | $as_echo "${have_engine}" >&6; } | ||
21772 | |||
21773 | if test "x${have_engine}" = "xyes" ; then | ||
21774 | if test "x${want_engine}" = "xstatic" ; then | ||
21775 | have_evas_engine_software_8_x11="static" | ||
21776 | want_static_engine="yes" | ||
21777 | else | ||
21778 | have_evas_engine_software_8_x11="yes" | ||
21779 | fi | ||
21780 | fi | ||
21781 | |||
21782 | if test "x${have_engine}" = "xyes" ; then | ||
21783 | |||
21784 | $as_echo "#define BUILD_ENGINE_SOFTWARE_8_X11 1" >>confdefs.h | ||
21785 | |||
21786 | fi | ||
21787 | |||
21788 | if test "x${have_engine}" = "xyes"; then | ||
21789 | BUILD_ENGINE_SOFTWARE_8_X11_TRUE= | ||
21790 | BUILD_ENGINE_SOFTWARE_8_X11_FALSE='#' | ||
21791 | else | ||
21792 | BUILD_ENGINE_SOFTWARE_8_X11_TRUE='#' | ||
21793 | BUILD_ENGINE_SOFTWARE_8_X11_FALSE= | ||
21794 | fi | ||
21795 | |||
21796 | |||
21797 | if test "x${want_static_engine}" = "xyes" ; then | ||
21798 | |||
21799 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_8_X11 1" >>confdefs.h | ||
21800 | |||
21801 | have_static_module="yes" | ||
21802 | fi | ||
21803 | |||
21804 | if test "x${want_static_engine}" = "xyes"; then | ||
21805 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE= | ||
21806 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE='#' | ||
21807 | else | ||
21808 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE='#' | ||
21809 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE= | ||
21810 | fi | ||
21811 | |||
21812 | |||
21813 | |||
21814 | |||
21815 | |||
21816 | |||
21817 | |||
21818 | |||
21819 | |||
21820 | |||
21821 | want_engine="${want_evas_engine_software_16_x11}" | ||
21822 | want_static_engine="no" | ||
21823 | have_engine="no" | ||
21824 | have_evas_engine_software_16_x11="no" | ||
21825 | |||
21826 | # Check whether --enable-software-16-x11 was given. | ||
21827 | if test "${enable_software_16_x11+set}" = set; then : | ||
21828 | enableval=$enable_software_16_x11; | ||
21829 | if test "x${enableval}" = "xyes" ; then | ||
21830 | want_engine="yes" | ||
21831 | else | ||
21832 | if test "x${enableval}" = "xstatic" ; then | ||
21833 | want_engine="static" | ||
21834 | else | ||
21835 | want_engine="no" | ||
21836 | fi | ||
21837 | fi | ||
21838 | |||
21839 | fi | ||
21840 | |||
21841 | |||
21842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software X11 16 bits rendering backend" >&5 | ||
21843 | $as_echo_n "checking whether to enable Software X11 16 bits rendering backend... " >&6; } | ||
21844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21845 | $as_echo "${want_engine}" >&6; } | ||
21846 | |||
21847 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21848 | |||
21849 | |||
21850 | have_dep="no" | ||
21851 | evas_engine_software_16_x11_cflags="" | ||
21852 | evas_engine_software_16_x11_libs="" | ||
21853 | |||
21854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
21855 | $as_echo_n "checking for X... " >&6; } | ||
21856 | |||
21857 | |||
21858 | # Check whether --with-x was given. | ||
21859 | if test "${with_x+set}" = set; then : | ||
21860 | withval=$with_x; | ||
21861 | fi | ||
21862 | |||
21863 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
21864 | if test "x$with_x" = xno; then | ||
21865 | # The user explicitly disabled X. | ||
21866 | have_x=disabled | ||
21867 | else | ||
21868 | case $x_includes,$x_libraries in #( | ||
21869 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
21870 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
21871 | $as_echo_n "(cached) " >&6 | ||
21872 | else | ||
21873 | # One or both of the vars are not set, and there is no cached value. | ||
21874 | ac_x_includes=no ac_x_libraries=no | ||
21875 | rm -f -r conftest.dir | ||
21876 | if mkdir conftest.dir; then | ||
21877 | cd conftest.dir | ||
21878 | cat >Imakefile <<'_ACEOF' | ||
21879 | incroot: | ||
21880 | @echo incroot='${INCROOT}' | ||
21881 | usrlibdir: | ||
21882 | @echo usrlibdir='${USRLIBDIR}' | ||
21883 | libdir: | ||
21884 | @echo libdir='${LIBDIR}' | ||
21885 | _ACEOF | ||
21886 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
21887 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
21888 | for ac_var in incroot usrlibdir libdir; do | ||
21889 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
21890 | done | ||
21891 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
21892 | for ac_extension in a so sl dylib la dll; do | ||
21893 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
21894 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
21895 | ac_im_usrlibdir=$ac_im_libdir; break | ||
21896 | fi | ||
21897 | done | ||
21898 | # Screen out bogus values from the imake configuration. They are | ||
21899 | # bogus both because they are the default anyway, and because | ||
21900 | # using them would break gcc on systems where it needs fixed includes. | ||
21901 | case $ac_im_incroot in | ||
21902 | /usr/include) ac_x_includes= ;; | ||
21903 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
21904 | esac | ||
21905 | case $ac_im_usrlibdir in | ||
21906 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
21907 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
21908 | esac | ||
21909 | fi | ||
21910 | cd .. | ||
21911 | rm -f -r conftest.dir | ||
21912 | fi | ||
21913 | |||
21914 | # Standard set of common directories for X headers. | ||
21915 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
21916 | ac_x_header_dirs=' | ||
21917 | /usr/X11/include | ||
21918 | /usr/X11R7/include | ||
21919 | /usr/X11R6/include | ||
21920 | /usr/X11R5/include | ||
21921 | /usr/X11R4/include | ||
21922 | |||
21923 | /usr/include/X11 | ||
21924 | /usr/include/X11R7 | ||
21925 | /usr/include/X11R6 | ||
21926 | /usr/include/X11R5 | ||
21927 | /usr/include/X11R4 | ||
21928 | |||
21929 | /usr/local/X11/include | ||
21930 | /usr/local/X11R7/include | ||
21931 | /usr/local/X11R6/include | ||
21932 | /usr/local/X11R5/include | ||
21933 | /usr/local/X11R4/include | ||
21934 | |||
21935 | /usr/local/include/X11 | ||
21936 | /usr/local/include/X11R7 | ||
21937 | /usr/local/include/X11R6 | ||
21938 | /usr/local/include/X11R5 | ||
21939 | /usr/local/include/X11R4 | ||
21940 | |||
21941 | /usr/X386/include | ||
21942 | /usr/x386/include | ||
21943 | /usr/XFree86/include/X11 | ||
21944 | |||
21945 | /usr/include | ||
21946 | /usr/local/include | ||
21947 | /usr/unsupported/include | ||
21948 | /usr/athena/include | ||
21949 | /usr/local/x11r5/include | ||
21950 | /usr/lpp/Xamples/include | ||
21951 | |||
21952 | /usr/openwin/include | ||
21953 | /usr/openwin/share/include' | ||
21954 | |||
21955 | if test "$ac_x_includes" = no; then | ||
21956 | # Guess where to find include files, by looking for Xlib.h. | ||
21957 | # First, try using that file with no special directory specified. | ||
21958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21959 | /* end confdefs.h. */ | ||
21960 | #include <X11/Xlib.h> | ||
21961 | _ACEOF | ||
21962 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
21963 | # We can compile using X headers with no special include directory. | ||
21964 | ac_x_includes= | ||
21965 | else | ||
21966 | for ac_dir in $ac_x_header_dirs; do | ||
21967 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
21968 | ac_x_includes=$ac_dir | ||
21969 | break | ||
21970 | fi | ||
21971 | done | ||
21972 | fi | ||
21973 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
21974 | fi # $ac_x_includes = no | ||
21975 | |||
21976 | if test "$ac_x_libraries" = no; then | ||
21977 | # Check for the libraries. | ||
21978 | # See if we find them without any special options. | ||
21979 | # Don't add to $LIBS permanently. | ||
21980 | ac_save_LIBS=$LIBS | ||
21981 | LIBS="-lX11 $LIBS" | ||
21982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21983 | /* end confdefs.h. */ | ||
21984 | #include <X11/Xlib.h> | ||
21985 | int | ||
21986 | main () | ||
21987 | { | ||
21988 | XrmInitialize () | ||
21989 | ; | ||
21990 | return 0; | ||
21991 | } | ||
21992 | _ACEOF | ||
21993 | if ac_fn_c_try_link "$LINENO"; then : | ||
21994 | LIBS=$ac_save_LIBS | ||
21995 | # We can link X programs with no special library path. | ||
21996 | ac_x_libraries= | ||
21997 | else | ||
21998 | LIBS=$ac_save_LIBS | ||
21999 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
22000 | do | ||
22001 | # Don't even attempt the hair of trying to link an X program! | ||
22002 | for ac_extension in a so sl dylib la dll; do | ||
22003 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
22004 | ac_x_libraries=$ac_dir | ||
22005 | break 2 | ||
22006 | fi | ||
22007 | done | ||
22008 | done | ||
22009 | fi | ||
22010 | rm -f core conftest.err conftest.$ac_objext \ | ||
22011 | conftest$ac_exeext conftest.$ac_ext | ||
22012 | fi # $ac_x_libraries = no | ||
22013 | |||
22014 | case $ac_x_includes,$ac_x_libraries in #( | ||
22015 | no,* | *,no | *\'*) | ||
22016 | # Didn't find X, or a directory has "'" in its name. | ||
22017 | ac_cv_have_x="have_x=no";; #( | ||
22018 | *) | ||
22019 | # Record where we found X for the cache. | ||
22020 | ac_cv_have_x="have_x=yes\ | ||
22021 | ac_x_includes='$ac_x_includes'\ | ||
22022 | ac_x_libraries='$ac_x_libraries'" | ||
22023 | esac | ||
22024 | fi | ||
22025 | ;; #( | ||
22026 | *) have_x=yes;; | ||
22027 | esac | ||
22028 | eval "$ac_cv_have_x" | ||
22029 | fi # $with_x != no | ||
22030 | |||
22031 | if test "$have_x" != yes; then | ||
22032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
22033 | $as_echo "$have_x" >&6; } | ||
22034 | no_x=yes | ||
22035 | else | ||
22036 | # If each of the values was on the command line, it overrides each guess. | ||
22037 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
22038 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
22039 | # Update the cache value to reflect the command line values. | ||
22040 | ac_cv_have_x="have_x=yes\ | ||
22041 | ac_x_includes='$x_includes'\ | ||
22042 | ac_x_libraries='$x_libraries'" | ||
22043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
22044 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
22045 | fi | ||
22046 | |||
22047 | if test "$no_x" = yes; then | ||
22048 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
22049 | |||
22050 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
22051 | |||
22052 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
22053 | else | ||
22054 | if test -n "$x_includes"; then | ||
22055 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
22056 | fi | ||
22057 | |||
22058 | # It would also be nice to do this for all -L options, not just this one. | ||
22059 | if test -n "$x_libraries"; then | ||
22060 | X_LIBS="$X_LIBS -L$x_libraries" | ||
22061 | # For Solaris; some versions of Sun CC require a space after -R and | ||
22062 | # others require no space. Words are not sufficient . . . . | ||
22063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
22064 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
22065 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
22066 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
22067 | ac_c_werror_flag=yes | ||
22068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22069 | /* end confdefs.h. */ | ||
22070 | |||
22071 | int | ||
22072 | main () | ||
22073 | { | ||
22074 | |||
22075 | ; | ||
22076 | return 0; | ||
22077 | } | ||
22078 | _ACEOF | ||
22079 | if ac_fn_c_try_link "$LINENO"; then : | ||
22080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22081 | $as_echo "no" >&6; } | ||
22082 | X_LIBS="$X_LIBS -R$x_libraries" | ||
22083 | else | ||
22084 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
22085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22086 | /* end confdefs.h. */ | ||
22087 | |||
22088 | int | ||
22089 | main () | ||
22090 | { | ||
22091 | |||
22092 | ; | ||
22093 | return 0; | ||
22094 | } | ||
22095 | _ACEOF | ||
22096 | if ac_fn_c_try_link "$LINENO"; then : | ||
22097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22098 | $as_echo "yes" >&6; } | ||
22099 | X_LIBS="$X_LIBS -R $x_libraries" | ||
22100 | else | ||
22101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
22102 | $as_echo "neither works" >&6; } | ||
22103 | fi | ||
22104 | rm -f core conftest.err conftest.$ac_objext \ | ||
22105 | conftest$ac_exeext conftest.$ac_ext | ||
22106 | fi | ||
22107 | rm -f core conftest.err conftest.$ac_objext \ | ||
22108 | conftest$ac_exeext conftest.$ac_ext | ||
22109 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
22110 | LIBS=$ac_xsave_LIBS | ||
22111 | fi | ||
22112 | |||
22113 | # Check for system-dependent libraries X programs must link with. | ||
22114 | # Do this before checking for the system-independent R6 libraries | ||
22115 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
22116 | |||
22117 | if test "$ISC" = yes; then | ||
22118 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
22119 | else | ||
22120 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
22121 | # libraries were built with DECnet support. And Karl Berry says | ||
22122 | # the Alpha needs dnet_stub (dnet does not exist). | ||
22123 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
22124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22125 | /* end confdefs.h. */ | ||
22126 | |||
22127 | /* Override any GCC internal prototype to avoid an error. | ||
22128 | Use char because int might match the return type of a GCC | ||
22129 | builtin and then its argument prototype would still apply. */ | ||
22130 | #ifdef __cplusplus | ||
22131 | extern "C" | ||
22132 | #endif | ||
22133 | char XOpenDisplay (); | ||
22134 | int | ||
22135 | main () | ||
22136 | { | ||
22137 | return XOpenDisplay (); | ||
22138 | ; | ||
22139 | return 0; | ||
22140 | } | ||
22141 | _ACEOF | ||
22142 | if ac_fn_c_try_link "$LINENO"; then : | ||
22143 | |||
22144 | else | ||
22145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
22146 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
22147 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
22148 | $as_echo_n "(cached) " >&6 | ||
22149 | else | ||
22150 | ac_check_lib_save_LIBS=$LIBS | ||
22151 | LIBS="-ldnet $LIBS" | ||
22152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22153 | /* end confdefs.h. */ | ||
22154 | |||
22155 | /* Override any GCC internal prototype to avoid an error. | ||
22156 | Use char because int might match the return type of a GCC | ||
22157 | builtin and then its argument prototype would still apply. */ | ||
22158 | #ifdef __cplusplus | ||
22159 | extern "C" | ||
22160 | #endif | ||
22161 | char dnet_ntoa (); | ||
22162 | int | ||
22163 | main () | ||
22164 | { | ||
22165 | return dnet_ntoa (); | ||
22166 | ; | ||
22167 | return 0; | ||
22168 | } | ||
22169 | _ACEOF | ||
22170 | if ac_fn_c_try_link "$LINENO"; then : | ||
22171 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
22172 | else | ||
22173 | ac_cv_lib_dnet_dnet_ntoa=no | ||
22174 | fi | ||
22175 | rm -f core conftest.err conftest.$ac_objext \ | ||
22176 | conftest$ac_exeext conftest.$ac_ext | ||
22177 | LIBS=$ac_check_lib_save_LIBS | ||
22178 | fi | ||
22179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
22180 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
22181 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
22182 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
22183 | fi | ||
22184 | |||
22185 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
22186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
22187 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
22188 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
22189 | $as_echo_n "(cached) " >&6 | ||
22190 | else | ||
22191 | ac_check_lib_save_LIBS=$LIBS | ||
22192 | LIBS="-ldnet_stub $LIBS" | ||
22193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22194 | /* end confdefs.h. */ | ||
22195 | |||
22196 | /* Override any GCC internal prototype to avoid an error. | ||
22197 | Use char because int might match the return type of a GCC | ||
22198 | builtin and then its argument prototype would still apply. */ | ||
22199 | #ifdef __cplusplus | ||
22200 | extern "C" | ||
22201 | #endif | ||
22202 | char dnet_ntoa (); | ||
22203 | int | ||
22204 | main () | ||
22205 | { | ||
22206 | return dnet_ntoa (); | ||
22207 | ; | ||
22208 | return 0; | ||
22209 | } | ||
22210 | _ACEOF | ||
22211 | if ac_fn_c_try_link "$LINENO"; then : | ||
22212 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
22213 | else | ||
22214 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
22215 | fi | ||
22216 | rm -f core conftest.err conftest.$ac_objext \ | ||
22217 | conftest$ac_exeext conftest.$ac_ext | ||
22218 | LIBS=$ac_check_lib_save_LIBS | ||
22219 | fi | ||
22220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
22221 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
22222 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
22223 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
22224 | fi | ||
22225 | |||
22226 | fi | ||
22227 | fi | ||
22228 | rm -f core conftest.err conftest.$ac_objext \ | ||
22229 | conftest$ac_exeext conftest.$ac_ext | ||
22230 | LIBS="$ac_xsave_LIBS" | ||
22231 | |||
22232 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
22233 | # to get the SysV transport functions. | ||
22234 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
22235 | # needs -lnsl. | ||
22236 | # The nsl library prevents programs from opening the X display | ||
22237 | # on Irix 5.2, according to T.E. Dickey. | ||
22238 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
22239 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
22240 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
22241 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
22242 | |||
22243 | fi | ||
22244 | |||
22245 | if test $ac_cv_func_gethostbyname = no; then | ||
22246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
22247 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
22248 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
22249 | $as_echo_n "(cached) " >&6 | ||
22250 | else | ||
22251 | ac_check_lib_save_LIBS=$LIBS | ||
22252 | LIBS="-lnsl $LIBS" | ||
22253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22254 | /* end confdefs.h. */ | ||
22255 | |||
22256 | /* Override any GCC internal prototype to avoid an error. | ||
22257 | Use char because int might match the return type of a GCC | ||
22258 | builtin and then its argument prototype would still apply. */ | ||
22259 | #ifdef __cplusplus | ||
22260 | extern "C" | ||
22261 | #endif | ||
22262 | char gethostbyname (); | ||
22263 | int | ||
22264 | main () | ||
22265 | { | ||
22266 | return gethostbyname (); | ||
22267 | ; | ||
22268 | return 0; | ||
22269 | } | ||
22270 | _ACEOF | ||
22271 | if ac_fn_c_try_link "$LINENO"; then : | ||
22272 | ac_cv_lib_nsl_gethostbyname=yes | ||
22273 | else | ||
22274 | ac_cv_lib_nsl_gethostbyname=no | ||
22275 | fi | ||
22276 | rm -f core conftest.err conftest.$ac_objext \ | ||
22277 | conftest$ac_exeext conftest.$ac_ext | ||
22278 | LIBS=$ac_check_lib_save_LIBS | ||
22279 | fi | ||
22280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
22281 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
22282 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
22283 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
22284 | fi | ||
22285 | |||
22286 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
22287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
22288 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
22289 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
22290 | $as_echo_n "(cached) " >&6 | ||
22291 | else | ||
22292 | ac_check_lib_save_LIBS=$LIBS | ||
22293 | LIBS="-lbsd $LIBS" | ||
22294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22295 | /* end confdefs.h. */ | ||
22296 | |||
22297 | /* Override any GCC internal prototype to avoid an error. | ||
22298 | Use char because int might match the return type of a GCC | ||
22299 | builtin and then its argument prototype would still apply. */ | ||
22300 | #ifdef __cplusplus | ||
22301 | extern "C" | ||
22302 | #endif | ||
22303 | char gethostbyname (); | ||
22304 | int | ||
22305 | main () | ||
22306 | { | ||
22307 | return gethostbyname (); | ||
22308 | ; | ||
22309 | return 0; | ||
22310 | } | ||
22311 | _ACEOF | ||
22312 | if ac_fn_c_try_link "$LINENO"; then : | ||
22313 | ac_cv_lib_bsd_gethostbyname=yes | ||
22314 | else | ||
22315 | ac_cv_lib_bsd_gethostbyname=no | ||
22316 | fi | ||
22317 | rm -f core conftest.err conftest.$ac_objext \ | ||
22318 | conftest$ac_exeext conftest.$ac_ext | ||
22319 | LIBS=$ac_check_lib_save_LIBS | ||
22320 | fi | ||
22321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
22322 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
22323 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
22324 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
22325 | fi | ||
22326 | |||
22327 | fi | ||
22328 | fi | ||
22329 | |||
22330 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
22331 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
22332 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
22333 | # on later versions), says Simon Leinen: it contains gethostby* | ||
22334 | # variants that don't use the name server (or something). -lsocket | ||
22335 | # must be given before -lnsl if both are needed. We assume that | ||
22336 | # if connect needs -lnsl, so does gethostbyname. | ||
22337 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
22338 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
22339 | |||
22340 | fi | ||
22341 | |||
22342 | if test $ac_cv_func_connect = no; then | ||
22343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
22344 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
22345 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
22346 | $as_echo_n "(cached) " >&6 | ||
22347 | else | ||
22348 | ac_check_lib_save_LIBS=$LIBS | ||
22349 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
22350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22351 | /* end confdefs.h. */ | ||
22352 | |||
22353 | /* Override any GCC internal prototype to avoid an error. | ||
22354 | Use char because int might match the return type of a GCC | ||
22355 | builtin and then its argument prototype would still apply. */ | ||
22356 | #ifdef __cplusplus | ||
22357 | extern "C" | ||
22358 | #endif | ||
22359 | char connect (); | ||
22360 | int | ||
22361 | main () | ||
22362 | { | ||
22363 | return connect (); | ||
22364 | ; | ||
22365 | return 0; | ||
22366 | } | ||
22367 | _ACEOF | ||
22368 | if ac_fn_c_try_link "$LINENO"; then : | ||
22369 | ac_cv_lib_socket_connect=yes | ||
22370 | else | ||
22371 | ac_cv_lib_socket_connect=no | ||
22372 | fi | ||
22373 | rm -f core conftest.err conftest.$ac_objext \ | ||
22374 | conftest$ac_exeext conftest.$ac_ext | ||
22375 | LIBS=$ac_check_lib_save_LIBS | ||
22376 | fi | ||
22377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
22378 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
22379 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
22380 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
22381 | fi | ||
22382 | |||
22383 | fi | ||
22384 | |||
22385 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
22386 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
22387 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
22388 | |||
22389 | fi | ||
22390 | |||
22391 | if test $ac_cv_func_remove = no; then | ||
22392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
22393 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
22394 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
22395 | $as_echo_n "(cached) " >&6 | ||
22396 | else | ||
22397 | ac_check_lib_save_LIBS=$LIBS | ||
22398 | LIBS="-lposix $LIBS" | ||
22399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22400 | /* end confdefs.h. */ | ||
22401 | |||
22402 | /* Override any GCC internal prototype to avoid an error. | ||
22403 | Use char because int might match the return type of a GCC | ||
22404 | builtin and then its argument prototype would still apply. */ | ||
22405 | #ifdef __cplusplus | ||
22406 | extern "C" | ||
22407 | #endif | ||
22408 | char remove (); | ||
22409 | int | ||
22410 | main () | ||
22411 | { | ||
22412 | return remove (); | ||
22413 | ; | ||
22414 | return 0; | ||
22415 | } | ||
22416 | _ACEOF | ||
22417 | if ac_fn_c_try_link "$LINENO"; then : | ||
22418 | ac_cv_lib_posix_remove=yes | ||
22419 | else | ||
22420 | ac_cv_lib_posix_remove=no | ||
22421 | fi | ||
22422 | rm -f core conftest.err conftest.$ac_objext \ | ||
22423 | conftest$ac_exeext conftest.$ac_ext | ||
22424 | LIBS=$ac_check_lib_save_LIBS | ||
22425 | fi | ||
22426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
22427 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
22428 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
22429 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
22430 | fi | ||
22431 | |||
22432 | fi | ||
22433 | |||
22434 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
22435 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
22436 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
22437 | |||
22438 | fi | ||
22439 | |||
22440 | if test $ac_cv_func_shmat = no; then | ||
22441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
22442 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
22443 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
22444 | $as_echo_n "(cached) " >&6 | ||
22445 | else | ||
22446 | ac_check_lib_save_LIBS=$LIBS | ||
22447 | LIBS="-lipc $LIBS" | ||
22448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22449 | /* end confdefs.h. */ | ||
22450 | |||
22451 | /* Override any GCC internal prototype to avoid an error. | ||
22452 | Use char because int might match the return type of a GCC | ||
22453 | builtin and then its argument prototype would still apply. */ | ||
22454 | #ifdef __cplusplus | ||
22455 | extern "C" | ||
22456 | #endif | ||
22457 | char shmat (); | ||
22458 | int | ||
22459 | main () | ||
22460 | { | ||
22461 | return shmat (); | ||
22462 | ; | ||
22463 | return 0; | ||
22464 | } | ||
22465 | _ACEOF | ||
22466 | if ac_fn_c_try_link "$LINENO"; then : | ||
22467 | ac_cv_lib_ipc_shmat=yes | ||
22468 | else | ||
22469 | ac_cv_lib_ipc_shmat=no | ||
22470 | fi | ||
22471 | rm -f core conftest.err conftest.$ac_objext \ | ||
22472 | conftest$ac_exeext conftest.$ac_ext | ||
22473 | LIBS=$ac_check_lib_save_LIBS | ||
22474 | fi | ||
22475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
22476 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
22477 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
22478 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
22479 | fi | ||
22480 | |||
22481 | fi | ||
22482 | fi | ||
22483 | |||
22484 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
22485 | ac_save_LDFLAGS=$LDFLAGS | ||
22486 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
22487 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
22488 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
22489 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
22490 | # These have to be linked with before -lX11, unlike the other | ||
22491 | # libraries we check for below, so use a different variable. | ||
22492 | # John Interrante, Karl Berry | ||
22493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
22494 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
22495 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
22496 | $as_echo_n "(cached) " >&6 | ||
22497 | else | ||
22498 | ac_check_lib_save_LIBS=$LIBS | ||
22499 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
22500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22501 | /* end confdefs.h. */ | ||
22502 | |||
22503 | /* Override any GCC internal prototype to avoid an error. | ||
22504 | Use char because int might match the return type of a GCC | ||
22505 | builtin and then its argument prototype would still apply. */ | ||
22506 | #ifdef __cplusplus | ||
22507 | extern "C" | ||
22508 | #endif | ||
22509 | char IceConnectionNumber (); | ||
22510 | int | ||
22511 | main () | ||
22512 | { | ||
22513 | return IceConnectionNumber (); | ||
22514 | ; | ||
22515 | return 0; | ||
22516 | } | ||
22517 | _ACEOF | ||
22518 | if ac_fn_c_try_link "$LINENO"; then : | ||
22519 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
22520 | else | ||
22521 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
22522 | fi | ||
22523 | rm -f core conftest.err conftest.$ac_objext \ | ||
22524 | conftest$ac_exeext conftest.$ac_ext | ||
22525 | LIBS=$ac_check_lib_save_LIBS | ||
22526 | fi | ||
22527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
22528 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
22529 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
22530 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
22531 | fi | ||
22532 | |||
22533 | LDFLAGS=$ac_save_LDFLAGS | ||
22534 | |||
22535 | fi | ||
22536 | |||
22537 | |||
22538 | ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default" | ||
22539 | if test "x$ac_cv_header_X11_X_h" = x""yes; then : | ||
22540 | have_dep="yes" | ||
22541 | fi | ||
22542 | |||
22543 | |||
22544 | |||
22545 | if test "x${have_dep}" = "xyes" ; then | ||
22546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateImage in -lX11" >&5 | ||
22547 | $as_echo_n "checking for XCreateImage in -lX11... " >&6; } | ||
22548 | if test "${ac_cv_lib_X11_XCreateImage+set}" = set; then : | ||
22549 | $as_echo_n "(cached) " >&6 | ||
22550 | else | ||
22551 | ac_check_lib_save_LIBS=$LIBS | ||
22552 | LIBS="-lX11 $LIBS" | ||
22553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22554 | /* end confdefs.h. */ | ||
22555 | |||
22556 | /* Override any GCC internal prototype to avoid an error. | ||
22557 | Use char because int might match the return type of a GCC | ||
22558 | builtin and then its argument prototype would still apply. */ | ||
22559 | #ifdef __cplusplus | ||
22560 | extern "C" | ||
22561 | #endif | ||
22562 | char XCreateImage (); | ||
22563 | int | ||
22564 | main () | ||
22565 | { | ||
22566 | return XCreateImage (); | ||
22567 | ; | ||
22568 | return 0; | ||
22569 | } | ||
22570 | _ACEOF | ||
22571 | if ac_fn_c_try_link "$LINENO"; then : | ||
22572 | ac_cv_lib_X11_XCreateImage=yes | ||
22573 | else | ||
22574 | ac_cv_lib_X11_XCreateImage=no | ||
22575 | fi | ||
22576 | rm -f core conftest.err conftest.$ac_objext \ | ||
22577 | conftest$ac_exeext conftest.$ac_ext | ||
22578 | LIBS=$ac_check_lib_save_LIBS | ||
22579 | fi | ||
22580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateImage" >&5 | ||
22581 | $as_echo "$ac_cv_lib_X11_XCreateImage" >&6; } | ||
22582 | if test "x$ac_cv_lib_X11_XCreateImage" = x""yes; then : | ||
22583 | have_dep="yes" | ||
22584 | else | ||
22585 | have_dep="no" | ||
22586 | fi | ||
22587 | |||
22588 | fi | ||
22589 | |||
22590 | if test "x${have_dep}" = "xyes" ; then | ||
22591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5 | ||
22592 | $as_echo_n "checking for XShmCreateImage in -lXext... " >&6; } | ||
22593 | if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then : | ||
22594 | $as_echo_n "(cached) " >&6 | ||
22595 | else | ||
22596 | ac_check_lib_save_LIBS=$LIBS | ||
22597 | LIBS="-lXext $LIBS" | ||
22598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22599 | /* end confdefs.h. */ | ||
22600 | |||
22601 | /* Override any GCC internal prototype to avoid an error. | ||
22602 | Use char because int might match the return type of a GCC | ||
22603 | builtin and then its argument prototype would still apply. */ | ||
22604 | #ifdef __cplusplus | ||
22605 | extern "C" | ||
22606 | #endif | ||
22607 | char XShmCreateImage (); | ||
22608 | int | ||
22609 | main () | ||
22610 | { | ||
22611 | return XShmCreateImage (); | ||
22612 | ; | ||
22613 | return 0; | ||
22614 | } | ||
22615 | _ACEOF | ||
22616 | if ac_fn_c_try_link "$LINENO"; then : | ||
22617 | ac_cv_lib_Xext_XShmCreateImage=yes | ||
22618 | else | ||
22619 | ac_cv_lib_Xext_XShmCreateImage=no | ||
22620 | fi | ||
22621 | rm -f core conftest.err conftest.$ac_objext \ | ||
22622 | conftest$ac_exeext conftest.$ac_ext | ||
22623 | LIBS=$ac_check_lib_save_LIBS | ||
22624 | fi | ||
22625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5 | ||
22626 | $as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; } | ||
22627 | if test "x$ac_cv_lib_Xext_XShmCreateImage" = x""yes; then : | ||
22628 | have_dep="yes" | ||
22629 | else | ||
22630 | have_dep="no" | ||
22631 | fi | ||
22632 | |||
22633 | fi | ||
22634 | |||
22635 | if test "x${have_dep}" = "xyes" ; then | ||
22636 | if test "xno" = "xyes" ; then | ||
22637 | x_libs="${x_libs} -lX11 -lXext" | ||
22638 | else | ||
22639 | x_dir=${x_dir:-/usr/X11R6} | ||
22640 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
22641 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" | ||
22642 | fi | ||
22643 | evas_engine_software_16_x11_cflags="${x_cflags}" | ||
22644 | evas_engine_software_16_x11_libs="${x_libs}" | ||
22645 | fi | ||
22646 | |||
22647 | |||
22648 | |||
22649 | |||
22650 | if test "x${have_dep}" = "xyes" ; then | ||
22651 | have_engine="yes" | ||
22652 | else | ||
22653 | have_engine="no" | ||
22654 | fi | ||
22655 | |||
22656 | |||
22657 | fi | ||
22658 | |||
22659 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
22660 | as_fn_error $? "Software X11 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
22661 | fi | ||
22662 | |||
22663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software X11 16 bits rendering backend will be built" >&5 | ||
22664 | $as_echo_n "checking whether Software X11 16 bits rendering backend will be built... " >&6; } | ||
22665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
22666 | $as_echo "${have_engine}" >&6; } | ||
22667 | |||
22668 | if test "x${have_engine}" = "xyes" ; then | ||
22669 | if test "x${want_engine}" = "xstatic" ; then | ||
22670 | have_evas_engine_software_16_x11="static" | ||
22671 | want_static_engine="yes" | ||
22672 | else | ||
22673 | have_evas_engine_software_16_x11="yes" | ||
22674 | fi | ||
22675 | fi | ||
22676 | |||
22677 | if test "x${have_engine}" = "xyes" ; then | ||
22678 | |||
22679 | $as_echo "#define BUILD_ENGINE_SOFTWARE_16_X11 1" >>confdefs.h | ||
22680 | |||
22681 | fi | ||
22682 | |||
22683 | if test "x${have_engine}" = "xyes"; then | ||
22684 | BUILD_ENGINE_SOFTWARE_16_X11_TRUE= | ||
22685 | BUILD_ENGINE_SOFTWARE_16_X11_FALSE='#' | ||
22686 | else | ||
22687 | BUILD_ENGINE_SOFTWARE_16_X11_TRUE='#' | ||
22688 | BUILD_ENGINE_SOFTWARE_16_X11_FALSE= | ||
22689 | fi | ||
22690 | |||
22691 | |||
22692 | if test "x${want_static_engine}" = "xyes" ; then | ||
22693 | |||
22694 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_X11 1" >>confdefs.h | ||
22695 | |||
22696 | have_static_module="yes" | ||
22697 | fi | ||
22698 | |||
22699 | if test "x${want_static_engine}" = "xyes"; then | ||
22700 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE= | ||
22701 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE='#' | ||
22702 | else | ||
22703 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE='#' | ||
22704 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE= | ||
22705 | fi | ||
22706 | |||
22707 | |||
22708 | |||
22709 | |||
22710 | |||
22711 | |||
22712 | |||
22713 | |||
22714 | |||
22715 | |||
22716 | want_engine="${want_evas_engine_software_16_ddraw}" | ||
22717 | want_static_engine="no" | ||
22718 | have_engine="no" | ||
22719 | have_evas_engine_software_16_ddraw="no" | ||
22720 | |||
22721 | # Check whether --enable-software-16-ddraw was given. | ||
22722 | if test "${enable_software_16_ddraw+set}" = set; then : | ||
22723 | enableval=$enable_software_16_ddraw; | ||
22724 | if test "x${enableval}" = "xyes" ; then | ||
22725 | want_engine="yes" | ||
22726 | else | ||
22727 | if test "x${enableval}" = "xstatic" ; then | ||
22728 | want_engine="static" | ||
22729 | else | ||
22730 | want_engine="no" | ||
22731 | fi | ||
22732 | fi | ||
22733 | |||
22734 | fi | ||
22735 | |||
22736 | |||
22737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software DirectDraw 16 bits rendering backend" >&5 | ||
22738 | $as_echo_n "checking whether to enable Software DirectDraw 16 bits rendering backend... " >&6; } | ||
22739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
22740 | $as_echo "${want_engine}" >&6; } | ||
22741 | |||
22742 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
22743 | |||
22744 | |||
22745 | have_dep="no" | ||
22746 | evas_engine_software_16_ddraw_cflags="" | ||
22747 | evas_engine_software_16_ddraw_libs="" | ||
22748 | |||
22749 | ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default" | ||
22750 | if test "x$ac_cv_header_ddraw_h" = x""yes; then : | ||
22751 | |||
22752 | have_dep="yes" | ||
22753 | evas_engine_software_16_ddraw_libs="-lddraw -lgdi32" | ||
22754 | |||
22755 | |||
22756 | fi | ||
22757 | |||
22758 | |||
22759 | |||
22760 | |||
22761 | |||
22762 | |||
22763 | if test "x${have_dep}" = "xyes" ; then | ||
22764 | have_engine="yes" | ||
22765 | else | ||
22766 | have_engine="no" | ||
22767 | fi | ||
22768 | |||
22769 | |||
22770 | fi | ||
22771 | |||
22772 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
22773 | as_fn_error $? "Software DirectDraw 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
22774 | fi | ||
22775 | |||
22776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software DirectDraw 16 bits rendering backend will be built" >&5 | ||
22777 | $as_echo_n "checking whether Software DirectDraw 16 bits rendering backend will be built... " >&6; } | ||
22778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
22779 | $as_echo "${have_engine}" >&6; } | ||
22780 | |||
22781 | if test "x${have_engine}" = "xyes" ; then | ||
22782 | if test "x${want_engine}" = "xstatic" ; then | ||
22783 | have_evas_engine_software_16_ddraw="static" | ||
22784 | want_static_engine="yes" | ||
22785 | else | ||
22786 | have_evas_engine_software_16_ddraw="yes" | ||
22787 | fi | ||
22788 | fi | ||
22789 | |||
22790 | if test "x${have_engine}" = "xyes" ; then | ||
22791 | |||
22792 | $as_echo "#define BUILD_ENGINE_SOFTWARE_16_DDRAW 1" >>confdefs.h | ||
22793 | |||
22794 | fi | ||
22795 | |||
22796 | if test "x${have_engine}" = "xyes"; then | ||
22797 | BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE= | ||
22798 | BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE='#' | ||
22799 | else | ||
22800 | BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE='#' | ||
22801 | BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE= | ||
22802 | fi | ||
22803 | |||
22804 | |||
22805 | if test "x${want_static_engine}" = "xyes" ; then | ||
22806 | |||
22807 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW 1" >>confdefs.h | ||
22808 | |||
22809 | have_static_module="yes" | ||
22810 | fi | ||
22811 | |||
22812 | if test "x${want_static_engine}" = "xyes"; then | ||
22813 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE= | ||
22814 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE='#' | ||
22815 | else | ||
22816 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE='#' | ||
22817 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE= | ||
22818 | fi | ||
22819 | |||
22820 | |||
22821 | |||
22822 | |||
22823 | |||
22824 | |||
22825 | |||
22826 | |||
22827 | |||
22828 | |||
22829 | want_engine="${want_evas_engine_software_16_wince}" | ||
22830 | want_static_engine="no" | ||
22831 | have_engine="no" | ||
22832 | have_evas_engine_software_16_wince="no" | ||
22833 | |||
22834 | # Check whether --enable-software-16-wince was given. | ||
22835 | if test "${enable_software_16_wince+set}" = set; then : | ||
22836 | enableval=$enable_software_16_wince; | ||
22837 | if test "x${enableval}" = "xyes" ; then | ||
22838 | want_engine="yes" | ||
22839 | else | ||
22840 | if test "x${enableval}" = "xstatic" ; then | ||
22841 | want_engine="static" | ||
22842 | else | ||
22843 | want_engine="no" | ||
22844 | fi | ||
22845 | fi | ||
22846 | |||
22847 | fi | ||
22848 | |||
22849 | |||
22850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software Windows CE 16 bits rendering backend" >&5 | ||
22851 | $as_echo_n "checking whether to enable Software Windows CE 16 bits rendering backend... " >&6; } | ||
22852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
22853 | $as_echo "${want_engine}" >&6; } | ||
22854 | |||
22855 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
22856 | |||
22857 | |||
22858 | have_dep="yes" | ||
22859 | evas_engine_software_16_wince_cflags="" | ||
22860 | evas_engine_software_16_wince_libs="" | ||
22861 | |||
22862 | |||
22863 | |||
22864 | |||
22865 | if test "x${have_dep}" = "xyes" ; then | ||
22866 | have_engine="yes" | ||
22867 | else | ||
22868 | have_engine="no" | ||
22869 | fi | ||
22870 | |||
22871 | |||
22872 | fi | ||
22873 | |||
22874 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
22875 | as_fn_error $? "Software Windows CE 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
22876 | fi | ||
22877 | |||
22878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software Windows CE 16 bits rendering backend will be built" >&5 | ||
22879 | $as_echo_n "checking whether Software Windows CE 16 bits rendering backend will be built... " >&6; } | ||
22880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
22881 | $as_echo "${have_engine}" >&6; } | ||
22882 | |||
22883 | if test "x${have_engine}" = "xyes" ; then | ||
22884 | if test "x${want_engine}" = "xstatic" ; then | ||
22885 | have_evas_engine_software_16_wince="static" | ||
22886 | want_static_engine="yes" | ||
22887 | else | ||
22888 | have_evas_engine_software_16_wince="yes" | ||
22889 | fi | ||
22890 | fi | ||
22891 | |||
22892 | if test "x${have_engine}" = "xyes" ; then | ||
22893 | |||
22894 | $as_echo "#define BUILD_ENGINE_SOFTWARE_16_WINCE 1" >>confdefs.h | ||
22895 | |||
22896 | fi | ||
22897 | |||
22898 | if test "x${have_engine}" = "xyes"; then | ||
22899 | BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE= | ||
22900 | BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE='#' | ||
22901 | else | ||
22902 | BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE='#' | ||
22903 | BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE= | ||
22904 | fi | ||
22905 | |||
22906 | |||
22907 | if test "x${want_static_engine}" = "xyes" ; then | ||
22908 | |||
22909 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_WINCE 1" >>confdefs.h | ||
22910 | |||
22911 | have_static_module="yes" | ||
22912 | fi | ||
22913 | |||
22914 | if test "x${want_static_engine}" = "xyes"; then | ||
22915 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE= | ||
22916 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE='#' | ||
22917 | else | ||
22918 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE='#' | ||
22919 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE= | ||
22920 | fi | ||
22921 | |||
22922 | |||
22923 | |||
22924 | |||
22925 | |||
22926 | |||
22927 | |||
22928 | |||
22929 | |||
22930 | |||
22931 | want_engine="${want_evas_engine_software_16_sdl}" | ||
22932 | want_static_engine="no" | ||
22933 | have_engine="no" | ||
22934 | have_evas_engine_software_16_sdl="no" | ||
22935 | |||
22936 | # Check whether --enable-software-16-sdl was given. | ||
22937 | if test "${enable_software_16_sdl+set}" = set; then : | ||
22938 | enableval=$enable_software_16_sdl; | ||
22939 | if test "x${enableval}" = "xyes" ; then | ||
22940 | want_engine="yes" | ||
22941 | else | ||
22942 | if test "x${enableval}" = "xstatic" ; then | ||
22943 | want_engine="static" | ||
22944 | else | ||
22945 | want_engine="no" | ||
22946 | fi | ||
22947 | fi | ||
22948 | |||
22949 | fi | ||
22950 | |||
22951 | |||
22952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software SDL 16 bits rendering backend" >&5 | ||
22953 | $as_echo_n "checking whether to enable Software SDL 16 bits rendering backend... " >&6; } | ||
22954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
22955 | $as_echo "${want_engine}" >&6; } | ||
22956 | |||
22957 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
22958 | |||
22959 | |||
22960 | requirement="" | ||
22961 | have_dep="no" | ||
22962 | evas_engine_software_16_sdl_cflags="" | ||
22963 | evas_engine_software_16_sdl_libs="" | ||
22964 | |||
22965 | |||
22966 | pkg_failed=no | ||
22967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 | ||
22968 | $as_echo_n "checking for SDL... " >&6; } | ||
22969 | |||
22970 | if test -n "$SDL_CFLAGS"; then | ||
22971 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | ||
22972 | elif test -n "$PKG_CONFIG"; then | ||
22973 | if test -n "$PKG_CONFIG" && \ | ||
22974 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
22975 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
22976 | ac_status=$? | ||
22977 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22978 | test $ac_status = 0; }; then | ||
22979 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null` | ||
22980 | else | ||
22981 | pkg_failed=yes | ||
22982 | fi | ||
22983 | else | ||
22984 | pkg_failed=untried | ||
22985 | fi | ||
22986 | if test -n "$SDL_LIBS"; then | ||
22987 | pkg_cv_SDL_LIBS="$SDL_LIBS" | ||
22988 | elif test -n "$PKG_CONFIG"; then | ||
22989 | if test -n "$PKG_CONFIG" && \ | ||
22990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
22991 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
22992 | ac_status=$? | ||
22993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22994 | test $ac_status = 0; }; then | ||
22995 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null` | ||
22996 | else | ||
22997 | pkg_failed=yes | ||
22998 | fi | ||
22999 | else | ||
23000 | pkg_failed=untried | ||
23001 | fi | ||
23002 | |||
23003 | |||
23004 | |||
23005 | if test $pkg_failed = yes; then | ||
23006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23007 | $as_echo "no" >&6; } | ||
23008 | |||
23009 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
23010 | _pkg_short_errors_supported=yes | ||
23011 | else | ||
23012 | _pkg_short_errors_supported=no | ||
23013 | fi | ||
23014 | if test $_pkg_short_errors_supported = yes; then | ||
23015 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1` | ||
23016 | else | ||
23017 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1` | ||
23018 | fi | ||
23019 | # Put the nasty error message in config.log where it belongs | ||
23020 | echo "$SDL_PKG_ERRORS" >&5 | ||
23021 | |||
23022 | as_fn_error $? "Package requirements (sdl >= 1.2.0) were not met: | ||
23023 | |||
23024 | $SDL_PKG_ERRORS | ||
23025 | |||
23026 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
23027 | installed software in a non-standard prefix. | ||
23028 | |||
23029 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
23030 | and SDL_LIBS to avoid the need to call pkg-config. | ||
23031 | See the pkg-config man page for more details." "$LINENO" 5 | ||
23032 | elif test $pkg_failed = untried; then | ||
23033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23034 | $as_echo "no" >&6; } | ||
23035 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
23036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
23037 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
23038 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
23039 | path to pkg-config. | ||
23040 | |||
23041 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
23042 | and SDL_LIBS to avoid the need to call pkg-config. | ||
23043 | See the pkg-config man page for more details. | ||
23044 | |||
23045 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
23046 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
23047 | else | ||
23048 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | ||
23049 | SDL_LIBS=$pkg_cv_SDL_LIBS | ||
23050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
23051 | $as_echo "yes" >&6; } | ||
23052 | |||
23053 | have_dep="yes" | ||
23054 | requirement="sdl" | ||
23055 | evas_engine_software_16_sdl_cflags="${SDL_CFLAGS}" | ||
23056 | evas_engine_software_16_sdl_libs="${SDL_LIBS}" | ||
23057 | |||
23058 | |||
23059 | fi | ||
23060 | |||
23061 | |||
23062 | |||
23063 | |||
23064 | if test "x${want_engine}" = "xstatic" ; then | ||
23065 | requirement_evas="${requirement} ${requirement_evas}" | ||
23066 | fi | ||
23067 | |||
23068 | if test "x${have_dep}" = "xyes" ; then | ||
23069 | have_engine="yes" | ||
23070 | else | ||
23071 | have_engine="no" | ||
23072 | fi | ||
23073 | |||
23074 | |||
23075 | fi | ||
23076 | |||
23077 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
23078 | as_fn_error $? "Software SDL 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
23079 | fi | ||
23080 | |||
23081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software SDL 16 bits rendering backend will be built" >&5 | ||
23082 | $as_echo_n "checking whether Software SDL 16 bits rendering backend will be built... " >&6; } | ||
23083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
23084 | $as_echo "${have_engine}" >&6; } | ||
23085 | |||
23086 | if test "x${have_engine}" = "xyes" ; then | ||
23087 | if test "x${want_engine}" = "xstatic" ; then | ||
23088 | have_evas_engine_software_16_sdl="static" | ||
23089 | want_static_engine="yes" | ||
23090 | else | ||
23091 | have_evas_engine_software_16_sdl="yes" | ||
23092 | fi | ||
23093 | fi | ||
23094 | |||
23095 | if test "x${have_engine}" = "xyes" ; then | ||
23096 | |||
23097 | $as_echo "#define BUILD_ENGINE_SOFTWARE_16_SDL 1" >>confdefs.h | ||
23098 | |||
23099 | fi | ||
23100 | |||
23101 | if test "x${have_engine}" = "xyes"; then | ||
23102 | BUILD_ENGINE_SOFTWARE_16_SDL_TRUE= | ||
23103 | BUILD_ENGINE_SOFTWARE_16_SDL_FALSE='#' | ||
23104 | else | ||
23105 | BUILD_ENGINE_SOFTWARE_16_SDL_TRUE='#' | ||
23106 | BUILD_ENGINE_SOFTWARE_16_SDL_FALSE= | ||
23107 | fi | ||
23108 | |||
23109 | |||
23110 | if test "x${want_static_engine}" = "xyes" ; then | ||
23111 | |||
23112 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_SDL 1" >>confdefs.h | ||
23113 | |||
23114 | have_static_module="yes" | ||
23115 | fi | ||
23116 | |||
23117 | if test "x${want_static_engine}" = "xyes"; then | ||
23118 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE= | ||
23119 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE='#' | ||
23120 | else | ||
23121 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE='#' | ||
23122 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE= | ||
23123 | fi | ||
23124 | |||
23125 | |||
23126 | |||
23127 | |||
23128 | |||
23129 | |||
23130 | |||
23131 | # SDL primitive | ||
23132 | sdl_primitive="no" | ||
23133 | |||
23134 | # Check whether --enable-sdl-primitive was given. | ||
23135 | if test "${enable_sdl_primitive+set}" = set; then : | ||
23136 | enableval=$enable_sdl_primitive; sdl_primitive=${enableval} | ||
23137 | |||
23138 | fi | ||
23139 | |||
23140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SDL primitive when possible" >&5 | ||
23141 | $as_echo_n "checking whether to use SDL primitive when possible... " >&6; } | ||
23142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sdl_primitive}" >&5 | ||
23143 | $as_echo "${sdl_primitive}" >&6; } | ||
23144 | |||
23145 | if test "x${sdl_primitive}" = "xyes" ; then | ||
23146 | |||
23147 | $as_echo "#define ENGINE_SDL_PRIMITIVE 1" >>confdefs.h | ||
23148 | |||
23149 | fi | ||
23150 | |||
23151 | # if software generic need to be build as part of libevas.so | ||
23152 | have_static_software_generic="no" | ||
23153 | # Check whether --enable-static-software-generic was given. | ||
23154 | if test "${enable_static_software_generic+set}" = set; then : | ||
23155 | enableval=$enable_static_software_generic; have_static_software_generic=${enableval} | ||
23156 | |||
23157 | fi | ||
23158 | |||
23159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software generic engine as part of libevas" >&5 | ||
23160 | $as_echo_n "checking Whether to build software generic engine as part of libevas... " >&6; } | ||
23161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_generic}" >&5 | ||
23162 | $as_echo "${have_static_software_generic}" >&6; } | ||
23163 | |||
23164 | if test "x${have_static_module}" = "xyes" -a "x${have_static_software_generic}" = "xno"; then | ||
23165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Forcing --enable-static-software-generic as engines must be compiled statically" >&5 | ||
23166 | $as_echo "$as_me: WARNING: Forcing --enable-static-software-generic as engines must be compiled statically" >&2;} | ||
23167 | have_static_software_generic="yes" | ||
23168 | fi | ||
23169 | |||
23170 | if test "x${have_static_software_generic}" = "xyes"; then | ||
23171 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE= | ||
23172 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE='#' | ||
23173 | else | ||
23174 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE='#' | ||
23175 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE= | ||
23176 | fi | ||
23177 | |||
23178 | if test "x${have_static_software_generic}" = "xyes"; then | ||
23179 | |||
23180 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_GENERIC 1" >>confdefs.h | ||
23181 | |||
23182 | fi | ||
23183 | |||
23184 | |||
23185 | ######## Software Engine ######## | ||
23186 | have_evas_engine_software_x11="no" | ||
23187 | have_evas_engine_software_xcb="no" | ||
23188 | have_evas_engine_software_xlib="no" | ||
23189 | build_software_xcb= | ||
23190 | |||
23191 | ## XCB Checks ## | ||
23192 | want_xcb="no" | ||
23193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Software XCB Engine" >&5 | ||
23194 | $as_echo_n "checking whether to build Software XCB Engine... " >&6; } | ||
23195 | # Check whether --enable-software-xcb was given. | ||
23196 | if test "${enable_software_xcb+set}" = set; then : | ||
23197 | enableval=$enable_software_xcb; want_xcb=$enableval | ||
23198 | |||
23199 | fi | ||
23200 | |||
23201 | if test "x$want_xcb" != "xno" ; then | ||
23202 | |||
23203 | |||
23204 | |||
23205 | want_engine="${want_evas_engine_software_xcb}" | ||
23206 | want_static_engine="no" | ||
23207 | have_engine="no" | ||
23208 | have_evas_engine_software_xcb="no" | ||
23209 | |||
23210 | # Check whether --enable-software-xcb was given. | ||
23211 | if test "${enable_software_xcb+set}" = set; then : | ||
23212 | enableval=$enable_software_xcb; | ||
23213 | if test "x${enableval}" = "xyes" ; then | ||
23214 | want_engine="yes" | ||
23215 | else | ||
23216 | if test "x${enableval}" = "xstatic" ; then | ||
23217 | want_engine="static" | ||
23218 | else | ||
23219 | want_engine="no" | ||
23220 | fi | ||
23221 | fi | ||
23222 | |||
23223 | fi | ||
23224 | |||
23225 | |||
23226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software XCB rendering backend" >&5 | ||
23227 | $as_echo_n "checking whether to enable Software XCB rendering backend... " >&6; } | ||
23228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
23229 | $as_echo "${want_engine}" >&6; } | ||
23230 | |||
23231 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
23232 | |||
23233 | |||
23234 | requirement="" | ||
23235 | have_dep="no" | ||
23236 | evas_engine_software_xcb_cflags="" | ||
23237 | evas_engine_software_xcb_libs="" | ||
23238 | |||
23239 | |||
23240 | pkg_failed=no | ||
23241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5 | ||
23242 | $as_echo_n "checking for XCB... " >&6; } | ||
23243 | |||
23244 | if test -n "$XCB_CFLAGS"; then | ||
23245 | pkg_cv_XCB_CFLAGS="$XCB_CFLAGS" | ||
23246 | elif test -n "$PKG_CONFIG"; then | ||
23247 | if test -n "$PKG_CONFIG" && \ | ||
23248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5 | ||
23249 | ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5 | ||
23250 | ac_status=$? | ||
23251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
23252 | test $ac_status = 0; }; then | ||
23253 | pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null` | ||
23254 | else | ||
23255 | pkg_failed=yes | ||
23256 | fi | ||
23257 | else | ||
23258 | pkg_failed=untried | ||
23259 | fi | ||
23260 | if test -n "$XCB_LIBS"; then | ||
23261 | pkg_cv_XCB_LIBS="$XCB_LIBS" | ||
23262 | elif test -n "$PKG_CONFIG"; then | ||
23263 | if test -n "$PKG_CONFIG" && \ | ||
23264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5 | ||
23265 | ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5 | ||
23266 | ac_status=$? | ||
23267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
23268 | test $ac_status = 0; }; then | ||
23269 | pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null` | ||
23270 | else | ||
23271 | pkg_failed=yes | ||
23272 | fi | ||
23273 | else | ||
23274 | pkg_failed=untried | ||
23275 | fi | ||
23276 | |||
23277 | |||
23278 | |||
23279 | if test $pkg_failed = yes; then | ||
23280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23281 | $as_echo "no" >&6; } | ||
23282 | |||
23283 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
23284 | _pkg_short_errors_supported=yes | ||
23285 | else | ||
23286 | _pkg_short_errors_supported=no | ||
23287 | fi | ||
23288 | if test $_pkg_short_errors_supported = yes; then | ||
23289 | XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1` | ||
23290 | else | ||
23291 | XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1` | ||
23292 | fi | ||
23293 | # Put the nasty error message in config.log where it belongs | ||
23294 | echo "$XCB_PKG_ERRORS" >&5 | ||
23295 | |||
23296 | |||
23297 | have_dep="no" | ||
23298 | |||
23299 | |||
23300 | elif test $pkg_failed = untried; then | ||
23301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23302 | $as_echo "no" >&6; } | ||
23303 | |||
23304 | have_dep="no" | ||
23305 | |||
23306 | |||
23307 | else | ||
23308 | XCB_CFLAGS=$pkg_cv_XCB_CFLAGS | ||
23309 | XCB_LIBS=$pkg_cv_XCB_LIBS | ||
23310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
23311 | $as_echo "yes" >&6; } | ||
23312 | |||
23313 | have_dep="yes" | ||
23314 | requirement="xcb xcb-shm xcb-image pixman-1" | ||
23315 | evas_engine_software_xcb_cflags="${XCB_CFLAGS}" | ||
23316 | evas_engine_software_xcb_libs="${XCB_LIBS}" | ||
23317 | |||
23318 | fi | ||
23319 | |||
23320 | |||
23321 | |||
23322 | |||
23323 | if test "x${want_engine}" = "xstatic" ; then | ||
23324 | requirement_evas="${requirement} ${requirement_evas}" | ||
23325 | fi | ||
23326 | |||
23327 | if test "x${have_dep}" = "xyes" ; then | ||
23328 | have_engine="yes" | ||
23329 | else | ||
23330 | have_engine="no" | ||
23331 | fi | ||
23332 | |||
23333 | |||
23334 | fi | ||
23335 | |||
23336 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
23337 | as_fn_error $? "Software XCB dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
23338 | fi | ||
23339 | |||
23340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software XCB rendering backend will be built" >&5 | ||
23341 | $as_echo_n "checking whether Software XCB rendering backend will be built... " >&6; } | ||
23342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
23343 | $as_echo "${have_engine}" >&6; } | ||
23344 | |||
23345 | if test "x${have_engine}" = "xyes" ; then | ||
23346 | if test "x${want_engine}" = "xstatic" ; then | ||
23347 | have_evas_engine_software_xcb="static" | ||
23348 | want_static_engine="yes" | ||
23349 | else | ||
23350 | have_evas_engine_software_xcb="yes" | ||
23351 | fi | ||
23352 | fi | ||
23353 | |||
23354 | if test "x${have_engine}" = "xyes" ; then | ||
23355 | |||
23356 | $as_echo "#define BUILD_ENGINE_SOFTWARE_XCB 1" >>confdefs.h | ||
23357 | |||
23358 | fi | ||
23359 | |||
23360 | if test "x${have_engine}" = "xyes"; then | ||
23361 | BUILD_ENGINE_SOFTWARE_XCB_TRUE= | ||
23362 | BUILD_ENGINE_SOFTWARE_XCB_FALSE='#' | ||
23363 | else | ||
23364 | BUILD_ENGINE_SOFTWARE_XCB_TRUE='#' | ||
23365 | BUILD_ENGINE_SOFTWARE_XCB_FALSE= | ||
23366 | fi | ||
23367 | |||
23368 | |||
23369 | if test "x${want_static_engine}" = "xyes" ; then | ||
23370 | |||
23371 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_XCB 1" >>confdefs.h | ||
23372 | |||
23373 | have_static_module="yes" | ||
23374 | fi | ||
23375 | |||
23376 | if test "x${want_static_engine}" = "xyes"; then | ||
23377 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE= | ||
23378 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE='#' | ||
23379 | else | ||
23380 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE='#' | ||
23381 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE= | ||
23382 | fi | ||
23383 | |||
23384 | |||
23385 | |||
23386 | |||
23387 | |||
23388 | |||
23389 | if test "x$have_evas_engine_software_xcb" != "xno" ; then | ||
23390 | build_software_xcb="yes" | ||
23391 | have_evas_engine_software_x11="yes" | ||
23392 | |||
23393 | cat >>confdefs.h <<_ACEOF | ||
23394 | #define BUILD_ENGINE_SOFTWARE_X11 1 | ||
23395 | _ACEOF | ||
23396 | |||
23397 | |||
23398 | cat >>confdefs.h <<_ACEOF | ||
23399 | #define BUILD_ENGINE_SOFTWARE_XCB 1 | ||
23400 | _ACEOF | ||
23401 | |||
23402 | fi | ||
23403 | else | ||
23404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23405 | $as_echo "no" >&6; } | ||
23406 | build_software_xcb="no" | ||
23407 | fi | ||
23408 | |||
23409 | ## If we are not building XCB, then we can build XLib ## | ||
23410 | |||
23411 | if test "x$build_software_xcb" = "xno" ; then | ||
23412 | |||
23413 | |||
23414 | |||
23415 | want_engine="${want_evas_engine_software_xlib}" | ||
23416 | want_static_engine="no" | ||
23417 | have_engine="no" | ||
23418 | have_evas_engine_software_xlib="no" | ||
23419 | |||
23420 | # Check whether --enable-software-xlib was given. | ||
23421 | if test "${enable_software_xlib+set}" = set; then : | ||
23422 | enableval=$enable_software_xlib; | ||
23423 | if test "x${enableval}" = "xyes" ; then | ||
23424 | want_engine="yes" | ||
23425 | else | ||
23426 | if test "x${enableval}" = "xstatic" ; then | ||
23427 | want_engine="static" | ||
23428 | else | ||
23429 | want_engine="no" | ||
23430 | fi | ||
23431 | fi | ||
23432 | |||
23433 | fi | ||
23434 | |||
23435 | |||
23436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software Xlib rendering backend" >&5 | ||
23437 | $as_echo_n "checking whether to enable Software Xlib rendering backend... " >&6; } | ||
23438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
23439 | $as_echo "${want_engine}" >&6; } | ||
23440 | |||
23441 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
23442 | |||
23443 | |||
23444 | have_dep="no" | ||
23445 | evas_engine_software_xlib_cflags="" | ||
23446 | evas_engine_software_xlib_libs="" | ||
23447 | |||
23448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
23449 | $as_echo_n "checking for X... " >&6; } | ||
23450 | |||
23451 | |||
23452 | # Check whether --with-x was given. | ||
23453 | if test "${with_x+set}" = set; then : | ||
23454 | withval=$with_x; | ||
23455 | fi | ||
23456 | |||
23457 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
23458 | if test "x$with_x" = xno; then | ||
23459 | # The user explicitly disabled X. | ||
23460 | have_x=disabled | ||
23461 | else | ||
23462 | case $x_includes,$x_libraries in #( | ||
23463 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
23464 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
23465 | $as_echo_n "(cached) " >&6 | ||
23466 | else | ||
23467 | # One or both of the vars are not set, and there is no cached value. | ||
23468 | ac_x_includes=no ac_x_libraries=no | ||
23469 | rm -f -r conftest.dir | ||
23470 | if mkdir conftest.dir; then | ||
23471 | cd conftest.dir | ||
23472 | cat >Imakefile <<'_ACEOF' | ||
23473 | incroot: | ||
23474 | @echo incroot='${INCROOT}' | ||
23475 | usrlibdir: | ||
23476 | @echo usrlibdir='${USRLIBDIR}' | ||
23477 | libdir: | ||
23478 | @echo libdir='${LIBDIR}' | ||
23479 | _ACEOF | ||
23480 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
23481 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
23482 | for ac_var in incroot usrlibdir libdir; do | ||
23483 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
23484 | done | ||
23485 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
23486 | for ac_extension in a so sl dylib la dll; do | ||
23487 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
23488 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
23489 | ac_im_usrlibdir=$ac_im_libdir; break | ||
23490 | fi | ||
23491 | done | ||
23492 | # Screen out bogus values from the imake configuration. They are | ||
23493 | # bogus both because they are the default anyway, and because | ||
23494 | # using them would break gcc on systems where it needs fixed includes. | ||
23495 | case $ac_im_incroot in | ||
23496 | /usr/include) ac_x_includes= ;; | ||
23497 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
23498 | esac | ||
23499 | case $ac_im_usrlibdir in | ||
23500 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
23501 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
23502 | esac | ||
23503 | fi | ||
23504 | cd .. | ||
23505 | rm -f -r conftest.dir | ||
23506 | fi | ||
23507 | |||
23508 | # Standard set of common directories for X headers. | ||
23509 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
23510 | ac_x_header_dirs=' | ||
23511 | /usr/X11/include | ||
23512 | /usr/X11R7/include | ||
23513 | /usr/X11R6/include | ||
23514 | /usr/X11R5/include | ||
23515 | /usr/X11R4/include | ||
23516 | |||
23517 | /usr/include/X11 | ||
23518 | /usr/include/X11R7 | ||
23519 | /usr/include/X11R6 | ||
23520 | /usr/include/X11R5 | ||
23521 | /usr/include/X11R4 | ||
23522 | |||
23523 | /usr/local/X11/include | ||
23524 | /usr/local/X11R7/include | ||
23525 | /usr/local/X11R6/include | ||
23526 | /usr/local/X11R5/include | ||
23527 | /usr/local/X11R4/include | ||
23528 | |||
23529 | /usr/local/include/X11 | ||
23530 | /usr/local/include/X11R7 | ||
23531 | /usr/local/include/X11R6 | ||
23532 | /usr/local/include/X11R5 | ||
23533 | /usr/local/include/X11R4 | ||
23534 | |||
23535 | /usr/X386/include | ||
23536 | /usr/x386/include | ||
23537 | /usr/XFree86/include/X11 | ||
23538 | |||
23539 | /usr/include | ||
23540 | /usr/local/include | ||
23541 | /usr/unsupported/include | ||
23542 | /usr/athena/include | ||
23543 | /usr/local/x11r5/include | ||
23544 | /usr/lpp/Xamples/include | ||
23545 | |||
23546 | /usr/openwin/include | ||
23547 | /usr/openwin/share/include' | ||
23548 | |||
23549 | if test "$ac_x_includes" = no; then | ||
23550 | # Guess where to find include files, by looking for Xlib.h. | ||
23551 | # First, try using that file with no special directory specified. | ||
23552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23553 | /* end confdefs.h. */ | ||
23554 | #include <X11/Xlib.h> | ||
23555 | _ACEOF | ||
23556 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
23557 | # We can compile using X headers with no special include directory. | ||
23558 | ac_x_includes= | ||
23559 | else | ||
23560 | for ac_dir in $ac_x_header_dirs; do | ||
23561 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
23562 | ac_x_includes=$ac_dir | ||
23563 | break | ||
23564 | fi | ||
23565 | done | ||
23566 | fi | ||
23567 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
23568 | fi # $ac_x_includes = no | ||
23569 | |||
23570 | if test "$ac_x_libraries" = no; then | ||
23571 | # Check for the libraries. | ||
23572 | # See if we find them without any special options. | ||
23573 | # Don't add to $LIBS permanently. | ||
23574 | ac_save_LIBS=$LIBS | ||
23575 | LIBS="-lX11 $LIBS" | ||
23576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23577 | /* end confdefs.h. */ | ||
23578 | #include <X11/Xlib.h> | ||
23579 | int | ||
23580 | main () | ||
23581 | { | ||
23582 | XrmInitialize () | ||
23583 | ; | ||
23584 | return 0; | ||
23585 | } | ||
23586 | _ACEOF | ||
23587 | if ac_fn_c_try_link "$LINENO"; then : | ||
23588 | LIBS=$ac_save_LIBS | ||
23589 | # We can link X programs with no special library path. | ||
23590 | ac_x_libraries= | ||
23591 | else | ||
23592 | LIBS=$ac_save_LIBS | ||
23593 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
23594 | do | ||
23595 | # Don't even attempt the hair of trying to link an X program! | ||
23596 | for ac_extension in a so sl dylib la dll; do | ||
23597 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
23598 | ac_x_libraries=$ac_dir | ||
23599 | break 2 | ||
23600 | fi | ||
23601 | done | ||
23602 | done | ||
23603 | fi | ||
23604 | rm -f core conftest.err conftest.$ac_objext \ | ||
23605 | conftest$ac_exeext conftest.$ac_ext | ||
23606 | fi # $ac_x_libraries = no | ||
23607 | |||
23608 | case $ac_x_includes,$ac_x_libraries in #( | ||
23609 | no,* | *,no | *\'*) | ||
23610 | # Didn't find X, or a directory has "'" in its name. | ||
23611 | ac_cv_have_x="have_x=no";; #( | ||
23612 | *) | ||
23613 | # Record where we found X for the cache. | ||
23614 | ac_cv_have_x="have_x=yes\ | ||
23615 | ac_x_includes='$ac_x_includes'\ | ||
23616 | ac_x_libraries='$ac_x_libraries'" | ||
23617 | esac | ||
23618 | fi | ||
23619 | ;; #( | ||
23620 | *) have_x=yes;; | ||
23621 | esac | ||
23622 | eval "$ac_cv_have_x" | ||
23623 | fi # $with_x != no | ||
23624 | |||
23625 | if test "$have_x" != yes; then | ||
23626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
23627 | $as_echo "$have_x" >&6; } | ||
23628 | no_x=yes | ||
23629 | else | ||
23630 | # If each of the values was on the command line, it overrides each guess. | ||
23631 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
23632 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
23633 | # Update the cache value to reflect the command line values. | ||
23634 | ac_cv_have_x="have_x=yes\ | ||
23635 | ac_x_includes='$x_includes'\ | ||
23636 | ac_x_libraries='$x_libraries'" | ||
23637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
23638 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
23639 | fi | ||
23640 | |||
23641 | if test "$no_x" = yes; then | ||
23642 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
23643 | |||
23644 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
23645 | |||
23646 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
23647 | else | ||
23648 | if test -n "$x_includes"; then | ||
23649 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
23650 | fi | ||
23651 | |||
23652 | # It would also be nice to do this for all -L options, not just this one. | ||
23653 | if test -n "$x_libraries"; then | ||
23654 | X_LIBS="$X_LIBS -L$x_libraries" | ||
23655 | # For Solaris; some versions of Sun CC require a space after -R and | ||
23656 | # others require no space. Words are not sufficient . . . . | ||
23657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
23658 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
23659 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
23660 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
23661 | ac_c_werror_flag=yes | ||
23662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23663 | /* end confdefs.h. */ | ||
23664 | |||
23665 | int | ||
23666 | main () | ||
23667 | { | ||
23668 | |||
23669 | ; | ||
23670 | return 0; | ||
23671 | } | ||
23672 | _ACEOF | ||
23673 | if ac_fn_c_try_link "$LINENO"; then : | ||
23674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23675 | $as_echo "no" >&6; } | ||
23676 | X_LIBS="$X_LIBS -R$x_libraries" | ||
23677 | else | ||
23678 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
23679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23680 | /* end confdefs.h. */ | ||
23681 | |||
23682 | int | ||
23683 | main () | ||
23684 | { | ||
23685 | |||
23686 | ; | ||
23687 | return 0; | ||
23688 | } | ||
23689 | _ACEOF | ||
23690 | if ac_fn_c_try_link "$LINENO"; then : | ||
23691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
23692 | $as_echo "yes" >&6; } | ||
23693 | X_LIBS="$X_LIBS -R $x_libraries" | ||
23694 | else | ||
23695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
23696 | $as_echo "neither works" >&6; } | ||
23697 | fi | ||
23698 | rm -f core conftest.err conftest.$ac_objext \ | ||
23699 | conftest$ac_exeext conftest.$ac_ext | ||
23700 | fi | ||
23701 | rm -f core conftest.err conftest.$ac_objext \ | ||
23702 | conftest$ac_exeext conftest.$ac_ext | ||
23703 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
23704 | LIBS=$ac_xsave_LIBS | ||
23705 | fi | ||
23706 | |||
23707 | # Check for system-dependent libraries X programs must link with. | ||
23708 | # Do this before checking for the system-independent R6 libraries | ||
23709 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
23710 | |||
23711 | if test "$ISC" = yes; then | ||
23712 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
23713 | else | ||
23714 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
23715 | # libraries were built with DECnet support. And Karl Berry says | ||
23716 | # the Alpha needs dnet_stub (dnet does not exist). | ||
23717 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
23718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23719 | /* end confdefs.h. */ | ||
23720 | |||
23721 | /* Override any GCC internal prototype to avoid an error. | ||
23722 | Use char because int might match the return type of a GCC | ||
23723 | builtin and then its argument prototype would still apply. */ | ||
23724 | #ifdef __cplusplus | ||
23725 | extern "C" | ||
23726 | #endif | ||
23727 | char XOpenDisplay (); | ||
23728 | int | ||
23729 | main () | ||
23730 | { | ||
23731 | return XOpenDisplay (); | ||
23732 | ; | ||
23733 | return 0; | ||
23734 | } | ||
23735 | _ACEOF | ||
23736 | if ac_fn_c_try_link "$LINENO"; then : | ||
23737 | |||
23738 | else | ||
23739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
23740 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
23741 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
23742 | $as_echo_n "(cached) " >&6 | ||
23743 | else | ||
23744 | ac_check_lib_save_LIBS=$LIBS | ||
23745 | LIBS="-ldnet $LIBS" | ||
23746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23747 | /* end confdefs.h. */ | ||
23748 | |||
23749 | /* Override any GCC internal prototype to avoid an error. | ||
23750 | Use char because int might match the return type of a GCC | ||
23751 | builtin and then its argument prototype would still apply. */ | ||
23752 | #ifdef __cplusplus | ||
23753 | extern "C" | ||
23754 | #endif | ||
23755 | char dnet_ntoa (); | ||
23756 | int | ||
23757 | main () | ||
23758 | { | ||
23759 | return dnet_ntoa (); | ||
23760 | ; | ||
23761 | return 0; | ||
23762 | } | ||
23763 | _ACEOF | ||
23764 | if ac_fn_c_try_link "$LINENO"; then : | ||
23765 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
23766 | else | ||
23767 | ac_cv_lib_dnet_dnet_ntoa=no | ||
23768 | fi | ||
23769 | rm -f core conftest.err conftest.$ac_objext \ | ||
23770 | conftest$ac_exeext conftest.$ac_ext | ||
23771 | LIBS=$ac_check_lib_save_LIBS | ||
23772 | fi | ||
23773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
23774 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
23775 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
23776 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
23777 | fi | ||
23778 | |||
23779 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
23780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
23781 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
23782 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
23783 | $as_echo_n "(cached) " >&6 | ||
23784 | else | ||
23785 | ac_check_lib_save_LIBS=$LIBS | ||
23786 | LIBS="-ldnet_stub $LIBS" | ||
23787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23788 | /* end confdefs.h. */ | ||
23789 | |||
23790 | /* Override any GCC internal prototype to avoid an error. | ||
23791 | Use char because int might match the return type of a GCC | ||
23792 | builtin and then its argument prototype would still apply. */ | ||
23793 | #ifdef __cplusplus | ||
23794 | extern "C" | ||
23795 | #endif | ||
23796 | char dnet_ntoa (); | ||
23797 | int | ||
23798 | main () | ||
23799 | { | ||
23800 | return dnet_ntoa (); | ||
23801 | ; | ||
23802 | return 0; | ||
23803 | } | ||
23804 | _ACEOF | ||
23805 | if ac_fn_c_try_link "$LINENO"; then : | ||
23806 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
23807 | else | ||
23808 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
23809 | fi | ||
23810 | rm -f core conftest.err conftest.$ac_objext \ | ||
23811 | conftest$ac_exeext conftest.$ac_ext | ||
23812 | LIBS=$ac_check_lib_save_LIBS | ||
23813 | fi | ||
23814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
23815 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
23816 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
23817 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
23818 | fi | ||
23819 | |||
23820 | fi | ||
23821 | fi | ||
23822 | rm -f core conftest.err conftest.$ac_objext \ | ||
23823 | conftest$ac_exeext conftest.$ac_ext | ||
23824 | LIBS="$ac_xsave_LIBS" | ||
23825 | |||
23826 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
23827 | # to get the SysV transport functions. | ||
23828 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
23829 | # needs -lnsl. | ||
23830 | # The nsl library prevents programs from opening the X display | ||
23831 | # on Irix 5.2, according to T.E. Dickey. | ||
23832 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
23833 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
23834 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
23835 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
23836 | |||
23837 | fi | ||
23838 | |||
23839 | if test $ac_cv_func_gethostbyname = no; then | ||
23840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
23841 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
23842 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
23843 | $as_echo_n "(cached) " >&6 | ||
23844 | else | ||
23845 | ac_check_lib_save_LIBS=$LIBS | ||
23846 | LIBS="-lnsl $LIBS" | ||
23847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23848 | /* end confdefs.h. */ | ||
23849 | |||
23850 | /* Override any GCC internal prototype to avoid an error. | ||
23851 | Use char because int might match the return type of a GCC | ||
23852 | builtin and then its argument prototype would still apply. */ | ||
23853 | #ifdef __cplusplus | ||
23854 | extern "C" | ||
23855 | #endif | ||
23856 | char gethostbyname (); | ||
23857 | int | ||
23858 | main () | ||
23859 | { | ||
23860 | return gethostbyname (); | ||
23861 | ; | ||
23862 | return 0; | ||
23863 | } | ||
23864 | _ACEOF | ||
23865 | if ac_fn_c_try_link "$LINENO"; then : | ||
23866 | ac_cv_lib_nsl_gethostbyname=yes | ||
23867 | else | ||
23868 | ac_cv_lib_nsl_gethostbyname=no | ||
23869 | fi | ||
23870 | rm -f core conftest.err conftest.$ac_objext \ | ||
23871 | conftest$ac_exeext conftest.$ac_ext | ||
23872 | LIBS=$ac_check_lib_save_LIBS | ||
23873 | fi | ||
23874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
23875 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
23876 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
23877 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
23878 | fi | ||
23879 | |||
23880 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
23881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
23882 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
23883 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
23884 | $as_echo_n "(cached) " >&6 | ||
23885 | else | ||
23886 | ac_check_lib_save_LIBS=$LIBS | ||
23887 | LIBS="-lbsd $LIBS" | ||
23888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23889 | /* end confdefs.h. */ | ||
23890 | |||
23891 | /* Override any GCC internal prototype to avoid an error. | ||
23892 | Use char because int might match the return type of a GCC | ||
23893 | builtin and then its argument prototype would still apply. */ | ||
23894 | #ifdef __cplusplus | ||
23895 | extern "C" | ||
23896 | #endif | ||
23897 | char gethostbyname (); | ||
23898 | int | ||
23899 | main () | ||
23900 | { | ||
23901 | return gethostbyname (); | ||
23902 | ; | ||
23903 | return 0; | ||
23904 | } | ||
23905 | _ACEOF | ||
23906 | if ac_fn_c_try_link "$LINENO"; then : | ||
23907 | ac_cv_lib_bsd_gethostbyname=yes | ||
23908 | else | ||
23909 | ac_cv_lib_bsd_gethostbyname=no | ||
23910 | fi | ||
23911 | rm -f core conftest.err conftest.$ac_objext \ | ||
23912 | conftest$ac_exeext conftest.$ac_ext | ||
23913 | LIBS=$ac_check_lib_save_LIBS | ||
23914 | fi | ||
23915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
23916 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
23917 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
23918 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
23919 | fi | ||
23920 | |||
23921 | fi | ||
23922 | fi | ||
23923 | |||
23924 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
23925 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
23926 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
23927 | # on later versions), says Simon Leinen: it contains gethostby* | ||
23928 | # variants that don't use the name server (or something). -lsocket | ||
23929 | # must be given before -lnsl if both are needed. We assume that | ||
23930 | # if connect needs -lnsl, so does gethostbyname. | ||
23931 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
23932 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
23933 | |||
23934 | fi | ||
23935 | |||
23936 | if test $ac_cv_func_connect = no; then | ||
23937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
23938 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
23939 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
23940 | $as_echo_n "(cached) " >&6 | ||
23941 | else | ||
23942 | ac_check_lib_save_LIBS=$LIBS | ||
23943 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
23944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23945 | /* end confdefs.h. */ | ||
23946 | |||
23947 | /* Override any GCC internal prototype to avoid an error. | ||
23948 | Use char because int might match the return type of a GCC | ||
23949 | builtin and then its argument prototype would still apply. */ | ||
23950 | #ifdef __cplusplus | ||
23951 | extern "C" | ||
23952 | #endif | ||
23953 | char connect (); | ||
23954 | int | ||
23955 | main () | ||
23956 | { | ||
23957 | return connect (); | ||
23958 | ; | ||
23959 | return 0; | ||
23960 | } | ||
23961 | _ACEOF | ||
23962 | if ac_fn_c_try_link "$LINENO"; then : | ||
23963 | ac_cv_lib_socket_connect=yes | ||
23964 | else | ||
23965 | ac_cv_lib_socket_connect=no | ||
23966 | fi | ||
23967 | rm -f core conftest.err conftest.$ac_objext \ | ||
23968 | conftest$ac_exeext conftest.$ac_ext | ||
23969 | LIBS=$ac_check_lib_save_LIBS | ||
23970 | fi | ||
23971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
23972 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
23973 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
23974 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
23975 | fi | ||
23976 | |||
23977 | fi | ||
23978 | |||
23979 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
23980 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
23981 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
23982 | |||
23983 | fi | ||
23984 | |||
23985 | if test $ac_cv_func_remove = no; then | ||
23986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
23987 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
23988 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
23989 | $as_echo_n "(cached) " >&6 | ||
23990 | else | ||
23991 | ac_check_lib_save_LIBS=$LIBS | ||
23992 | LIBS="-lposix $LIBS" | ||
23993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23994 | /* end confdefs.h. */ | ||
23995 | |||
23996 | /* Override any GCC internal prototype to avoid an error. | ||
23997 | Use char because int might match the return type of a GCC | ||
23998 | builtin and then its argument prototype would still apply. */ | ||
23999 | #ifdef __cplusplus | ||
24000 | extern "C" | ||
24001 | #endif | ||
24002 | char remove (); | ||
24003 | int | ||
24004 | main () | ||
24005 | { | ||
24006 | return remove (); | ||
24007 | ; | ||
24008 | return 0; | ||
24009 | } | ||
24010 | _ACEOF | ||
24011 | if ac_fn_c_try_link "$LINENO"; then : | ||
24012 | ac_cv_lib_posix_remove=yes | ||
24013 | else | ||
24014 | ac_cv_lib_posix_remove=no | ||
24015 | fi | ||
24016 | rm -f core conftest.err conftest.$ac_objext \ | ||
24017 | conftest$ac_exeext conftest.$ac_ext | ||
24018 | LIBS=$ac_check_lib_save_LIBS | ||
24019 | fi | ||
24020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
24021 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
24022 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
24023 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
24024 | fi | ||
24025 | |||
24026 | fi | ||
24027 | |||
24028 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
24029 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
24030 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
24031 | |||
24032 | fi | ||
24033 | |||
24034 | if test $ac_cv_func_shmat = no; then | ||
24035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
24036 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
24037 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
24038 | $as_echo_n "(cached) " >&6 | ||
24039 | else | ||
24040 | ac_check_lib_save_LIBS=$LIBS | ||
24041 | LIBS="-lipc $LIBS" | ||
24042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24043 | /* end confdefs.h. */ | ||
24044 | |||
24045 | /* Override any GCC internal prototype to avoid an error. | ||
24046 | Use char because int might match the return type of a GCC | ||
24047 | builtin and then its argument prototype would still apply. */ | ||
24048 | #ifdef __cplusplus | ||
24049 | extern "C" | ||
24050 | #endif | ||
24051 | char shmat (); | ||
24052 | int | ||
24053 | main () | ||
24054 | { | ||
24055 | return shmat (); | ||
24056 | ; | ||
24057 | return 0; | ||
24058 | } | ||
24059 | _ACEOF | ||
24060 | if ac_fn_c_try_link "$LINENO"; then : | ||
24061 | ac_cv_lib_ipc_shmat=yes | ||
24062 | else | ||
24063 | ac_cv_lib_ipc_shmat=no | ||
24064 | fi | ||
24065 | rm -f core conftest.err conftest.$ac_objext \ | ||
24066 | conftest$ac_exeext conftest.$ac_ext | ||
24067 | LIBS=$ac_check_lib_save_LIBS | ||
24068 | fi | ||
24069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
24070 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
24071 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
24072 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
24073 | fi | ||
24074 | |||
24075 | fi | ||
24076 | fi | ||
24077 | |||
24078 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
24079 | ac_save_LDFLAGS=$LDFLAGS | ||
24080 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
24081 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
24082 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
24083 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
24084 | # These have to be linked with before -lX11, unlike the other | ||
24085 | # libraries we check for below, so use a different variable. | ||
24086 | # John Interrante, Karl Berry | ||
24087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
24088 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
24089 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
24090 | $as_echo_n "(cached) " >&6 | ||
24091 | else | ||
24092 | ac_check_lib_save_LIBS=$LIBS | ||
24093 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
24094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24095 | /* end confdefs.h. */ | ||
24096 | |||
24097 | /* Override any GCC internal prototype to avoid an error. | ||
24098 | Use char because int might match the return type of a GCC | ||
24099 | builtin and then its argument prototype would still apply. */ | ||
24100 | #ifdef __cplusplus | ||
24101 | extern "C" | ||
24102 | #endif | ||
24103 | char IceConnectionNumber (); | ||
24104 | int | ||
24105 | main () | ||
24106 | { | ||
24107 | return IceConnectionNumber (); | ||
24108 | ; | ||
24109 | return 0; | ||
24110 | } | ||
24111 | _ACEOF | ||
24112 | if ac_fn_c_try_link "$LINENO"; then : | ||
24113 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
24114 | else | ||
24115 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
24116 | fi | ||
24117 | rm -f core conftest.err conftest.$ac_objext \ | ||
24118 | conftest$ac_exeext conftest.$ac_ext | ||
24119 | LIBS=$ac_check_lib_save_LIBS | ||
24120 | fi | ||
24121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
24122 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
24123 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
24124 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
24125 | fi | ||
24126 | |||
24127 | LDFLAGS=$ac_save_LDFLAGS | ||
24128 | |||
24129 | fi | ||
24130 | |||
24131 | |||
24132 | ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default" | ||
24133 | if test "x$ac_cv_header_X11_X_h" = x""yes; then : | ||
24134 | have_dep="yes" | ||
24135 | fi | ||
24136 | |||
24137 | |||
24138 | |||
24139 | if test "x${have_dep}" = "xyes" ; then | ||
24140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateImage in -lX11" >&5 | ||
24141 | $as_echo_n "checking for XCreateImage in -lX11... " >&6; } | ||
24142 | if test "${ac_cv_lib_X11_XCreateImage+set}" = set; then : | ||
24143 | $as_echo_n "(cached) " >&6 | ||
24144 | else | ||
24145 | ac_check_lib_save_LIBS=$LIBS | ||
24146 | LIBS="-lX11 $LIBS" | ||
24147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24148 | /* end confdefs.h. */ | ||
24149 | |||
24150 | /* Override any GCC internal prototype to avoid an error. | ||
24151 | Use char because int might match the return type of a GCC | ||
24152 | builtin and then its argument prototype would still apply. */ | ||
24153 | #ifdef __cplusplus | ||
24154 | extern "C" | ||
24155 | #endif | ||
24156 | char XCreateImage (); | ||
24157 | int | ||
24158 | main () | ||
24159 | { | ||
24160 | return XCreateImage (); | ||
24161 | ; | ||
24162 | return 0; | ||
24163 | } | ||
24164 | _ACEOF | ||
24165 | if ac_fn_c_try_link "$LINENO"; then : | ||
24166 | ac_cv_lib_X11_XCreateImage=yes | ||
24167 | else | ||
24168 | ac_cv_lib_X11_XCreateImage=no | ||
24169 | fi | ||
24170 | rm -f core conftest.err conftest.$ac_objext \ | ||
24171 | conftest$ac_exeext conftest.$ac_ext | ||
24172 | LIBS=$ac_check_lib_save_LIBS | ||
24173 | fi | ||
24174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateImage" >&5 | ||
24175 | $as_echo "$ac_cv_lib_X11_XCreateImage" >&6; } | ||
24176 | if test "x$ac_cv_lib_X11_XCreateImage" = x""yes; then : | ||
24177 | have_dep="yes" | ||
24178 | else | ||
24179 | have_dep="no" | ||
24180 | fi | ||
24181 | |||
24182 | fi | ||
24183 | |||
24184 | if test "x${have_dep}" = "xyes" ; then | ||
24185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5 | ||
24186 | $as_echo_n "checking for XShmCreateImage in -lXext... " >&6; } | ||
24187 | if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then : | ||
24188 | $as_echo_n "(cached) " >&6 | ||
24189 | else | ||
24190 | ac_check_lib_save_LIBS=$LIBS | ||
24191 | LIBS="-lXext $LIBS" | ||
24192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24193 | /* end confdefs.h. */ | ||
24194 | |||
24195 | /* Override any GCC internal prototype to avoid an error. | ||
24196 | Use char because int might match the return type of a GCC | ||
24197 | builtin and then its argument prototype would still apply. */ | ||
24198 | #ifdef __cplusplus | ||
24199 | extern "C" | ||
24200 | #endif | ||
24201 | char XShmCreateImage (); | ||
24202 | int | ||
24203 | main () | ||
24204 | { | ||
24205 | return XShmCreateImage (); | ||
24206 | ; | ||
24207 | return 0; | ||
24208 | } | ||
24209 | _ACEOF | ||
24210 | if ac_fn_c_try_link "$LINENO"; then : | ||
24211 | ac_cv_lib_Xext_XShmCreateImage=yes | ||
24212 | else | ||
24213 | ac_cv_lib_Xext_XShmCreateImage=no | ||
24214 | fi | ||
24215 | rm -f core conftest.err conftest.$ac_objext \ | ||
24216 | conftest$ac_exeext conftest.$ac_ext | ||
24217 | LIBS=$ac_check_lib_save_LIBS | ||
24218 | fi | ||
24219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5 | ||
24220 | $as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; } | ||
24221 | if test "x$ac_cv_lib_Xext_XShmCreateImage" = x""yes; then : | ||
24222 | have_dep="yes" | ||
24223 | else | ||
24224 | have_dep="no" | ||
24225 | fi | ||
24226 | |||
24227 | fi | ||
24228 | |||
24229 | if test "x${have_dep}" = "xyes" ; then | ||
24230 | if test "xno" = "xyes" ; then | ||
24231 | x_libs="${x_libs} -lX11 -lXext" | ||
24232 | else | ||
24233 | x_dir=${x_dir:-/usr/X11R6} | ||
24234 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
24235 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" | ||
24236 | fi | ||
24237 | evas_engine_software_xlib_cflags="${x_cflags}" | ||
24238 | evas_engine_software_xlib_libs="${x_libs}" | ||
24239 | fi | ||
24240 | |||
24241 | |||
24242 | |||
24243 | |||
24244 | if test "x${have_dep}" = "xyes" ; then | ||
24245 | have_engine="yes" | ||
24246 | else | ||
24247 | have_engine="no" | ||
24248 | fi | ||
24249 | |||
24250 | |||
24251 | fi | ||
24252 | |||
24253 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
24254 | as_fn_error $? "Software Xlib dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
24255 | fi | ||
24256 | |||
24257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software Xlib rendering backend will be built" >&5 | ||
24258 | $as_echo_n "checking whether Software Xlib rendering backend will be built... " >&6; } | ||
24259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
24260 | $as_echo "${have_engine}" >&6; } | ||
24261 | |||
24262 | if test "x${have_engine}" = "xyes" ; then | ||
24263 | if test "x${want_engine}" = "xstatic" ; then | ||
24264 | have_evas_engine_software_xlib="static" | ||
24265 | want_static_engine="yes" | ||
24266 | else | ||
24267 | have_evas_engine_software_xlib="yes" | ||
24268 | fi | ||
24269 | fi | ||
24270 | |||
24271 | if test "x${have_engine}" = "xyes" ; then | ||
24272 | |||
24273 | $as_echo "#define BUILD_ENGINE_SOFTWARE_XLIB 1" >>confdefs.h | ||
24274 | |||
24275 | fi | ||
24276 | |||
24277 | if test "x${have_engine}" = "xyes"; then | ||
24278 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE= | ||
24279 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE='#' | ||
24280 | else | ||
24281 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE='#' | ||
24282 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE= | ||
24283 | fi | ||
24284 | |||
24285 | |||
24286 | if test "x${want_static_engine}" = "xyes" ; then | ||
24287 | |||
24288 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_XLIB 1" >>confdefs.h | ||
24289 | |||
24290 | have_static_module="yes" | ||
24291 | fi | ||
24292 | |||
24293 | if test "x${want_static_engine}" = "xyes"; then | ||
24294 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE= | ||
24295 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE='#' | ||
24296 | else | ||
24297 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE='#' | ||
24298 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE= | ||
24299 | fi | ||
24300 | |||
24301 | |||
24302 | |||
24303 | |||
24304 | |||
24305 | |||
24306 | # if software_x11 is available, define everything needed for X11 | ||
24307 | if test "x$have_evas_engine_software_xlib" != "xno" ; then | ||
24308 | have_evas_engine_software_x11="yes" | ||
24309 | |||
24310 | cat >>confdefs.h <<_ACEOF | ||
24311 | #define BUILD_ENGINE_SOFTWARE_X11 1 | ||
24312 | _ACEOF | ||
24313 | |||
24314 | |||
24315 | cat >>confdefs.h <<_ACEOF | ||
24316 | #define BUILD_ENGINE_SOFTWARE_XLIB 1 | ||
24317 | _ACEOF | ||
24318 | |||
24319 | fi | ||
24320 | else | ||
24321 | have_evas_engine_software_xlib="no" | ||
24322 | fi | ||
24323 | |||
24324 | if test "x$have_evas_engine_software_xlib" = "xstatic" -o "x$have_evas_engine_software_xcb" = "xstatic"; then | ||
24325 | |||
24326 | cat >>confdefs.h <<_ACEOF | ||
24327 | #define EVAS_STATIC_BUILD_SOFTWARE_X11 1 | ||
24328 | _ACEOF | ||
24329 | |||
24330 | fi | ||
24331 | |||
24332 | |||
24333 | |||
24334 | |||
24335 | if test "x${have_evas_engine_software_xlib}" != "xno"; then | ||
24336 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE= | ||
24337 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE='#' | ||
24338 | else | ||
24339 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE='#' | ||
24340 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE= | ||
24341 | fi | ||
24342 | |||
24343 | if test "x${have_evas_engine_software_xcb}" != "xno"; then | ||
24344 | BUILD_ENGINE_SOFTWARE_XCB_TRUE= | ||
24345 | BUILD_ENGINE_SOFTWARE_XCB_FALSE='#' | ||
24346 | else | ||
24347 | BUILD_ENGINE_SOFTWARE_XCB_TRUE='#' | ||
24348 | BUILD_ENGINE_SOFTWARE_XCB_FALSE= | ||
24349 | fi | ||
24350 | |||
24351 | if test "x${have_evas_engine_software_x11}" != "xno"; then | ||
24352 | BUILD_ENGINE_SOFTWARE_X11_TRUE= | ||
24353 | BUILD_ENGINE_SOFTWARE_X11_FALSE='#' | ||
24354 | else | ||
24355 | BUILD_ENGINE_SOFTWARE_X11_TRUE='#' | ||
24356 | BUILD_ENGINE_SOFTWARE_X11_FALSE= | ||
24357 | fi | ||
24358 | |||
24359 | |||
24360 | if test "x${have_evas_engine_software_xcb}" = "xstatic" -o "x${have_evas_engine_software_xlib}" = "xstatic"; then | ||
24361 | EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE= | ||
24362 | EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE='#' | ||
24363 | else | ||
24364 | EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE='#' | ||
24365 | EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE= | ||
24366 | fi | ||
24367 | |||
24368 | if test "x${have_evas_engine_software_xlib}" = "xstatic"; then | ||
24369 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE= | ||
24370 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE='#' | ||
24371 | else | ||
24372 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE='#' | ||
24373 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE= | ||
24374 | fi | ||
24375 | |||
24376 | if test "x${have_evas_engine_software_xcb}" = "xstatic"; then | ||
24377 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE= | ||
24378 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE='#' | ||
24379 | else | ||
24380 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE='#' | ||
24381 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE= | ||
24382 | fi | ||
24383 | |||
24384 | |||
24385 | |||
24386 | |||
24387 | |||
24388 | ######## OpenGL Engine ######## | ||
24389 | have_evas_engine_gl_x11="no" | ||
24390 | have_evas_engine_gl_xcb="no" | ||
24391 | build_gl_xcb="no" | ||
24392 | |||
24393 | ## XCB Checks ## | ||
24394 | want_gl_xcb="no" | ||
24395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenGL XCB Engine" >&5 | ||
24396 | $as_echo_n "checking whether to build OpenGL XCB Engine... " >&6; } | ||
24397 | # Check whether --enable-gl-xcb was given. | ||
24398 | if test "${enable_gl_xcb+set}" = set; then : | ||
24399 | enableval=$enable_gl_xcb; want_gl_xcb=$enableval | ||
24400 | |||
24401 | fi | ||
24402 | |||
24403 | if test "x$want_gl_xcb" = "xyes" ; then | ||
24404 | |||
24405 | |||
24406 | |||
24407 | want_engine="${want_evas_engine_gl_xcb}" | ||
24408 | want_static_engine="no" | ||
24409 | have_engine="no" | ||
24410 | have_evas_engine_gl_xcb="no" | ||
24411 | |||
24412 | # Check whether --enable-gl-xcb was given. | ||
24413 | if test "${enable_gl_xcb+set}" = set; then : | ||
24414 | enableval=$enable_gl_xcb; | ||
24415 | if test "x${enableval}" = "xyes" ; then | ||
24416 | want_engine="yes" | ||
24417 | else | ||
24418 | if test "x${enableval}" = "xstatic" ; then | ||
24419 | want_engine="static" | ||
24420 | else | ||
24421 | want_engine="no" | ||
24422 | fi | ||
24423 | fi | ||
24424 | |||
24425 | fi | ||
24426 | |||
24427 | |||
24428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL XCB rendering backend" >&5 | ||
24429 | $as_echo_n "checking whether to enable OpenGL XCB rendering backend... " >&6; } | ||
24430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
24431 | $as_echo "${want_engine}" >&6; } | ||
24432 | |||
24433 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
24434 | |||
24435 | |||
24436 | evas_engine_gl_xcb_cflags="" | ||
24437 | evas_engine_gl_xcb_libs="" | ||
24438 | |||
24439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
24440 | $as_echo_n "checking for X... " >&6; } | ||
24441 | |||
24442 | |||
24443 | # Check whether --with-x was given. | ||
24444 | if test "${with_x+set}" = set; then : | ||
24445 | withval=$with_x; | ||
24446 | fi | ||
24447 | |||
24448 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
24449 | if test "x$with_x" = xno; then | ||
24450 | # The user explicitly disabled X. | ||
24451 | have_x=disabled | ||
24452 | else | ||
24453 | case $x_includes,$x_libraries in #( | ||
24454 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
24455 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
24456 | $as_echo_n "(cached) " >&6 | ||
24457 | else | ||
24458 | # One or both of the vars are not set, and there is no cached value. | ||
24459 | ac_x_includes=no ac_x_libraries=no | ||
24460 | rm -f -r conftest.dir | ||
24461 | if mkdir conftest.dir; then | ||
24462 | cd conftest.dir | ||
24463 | cat >Imakefile <<'_ACEOF' | ||
24464 | incroot: | ||
24465 | @echo incroot='${INCROOT}' | ||
24466 | usrlibdir: | ||
24467 | @echo usrlibdir='${USRLIBDIR}' | ||
24468 | libdir: | ||
24469 | @echo libdir='${LIBDIR}' | ||
24470 | _ACEOF | ||
24471 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
24472 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
24473 | for ac_var in incroot usrlibdir libdir; do | ||
24474 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
24475 | done | ||
24476 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
24477 | for ac_extension in a so sl dylib la dll; do | ||
24478 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
24479 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
24480 | ac_im_usrlibdir=$ac_im_libdir; break | ||
24481 | fi | ||
24482 | done | ||
24483 | # Screen out bogus values from the imake configuration. They are | ||
24484 | # bogus both because they are the default anyway, and because | ||
24485 | # using them would break gcc on systems where it needs fixed includes. | ||
24486 | case $ac_im_incroot in | ||
24487 | /usr/include) ac_x_includes= ;; | ||
24488 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
24489 | esac | ||
24490 | case $ac_im_usrlibdir in | ||
24491 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
24492 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
24493 | esac | ||
24494 | fi | ||
24495 | cd .. | ||
24496 | rm -f -r conftest.dir | ||
24497 | fi | ||
24498 | |||
24499 | # Standard set of common directories for X headers. | ||
24500 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
24501 | ac_x_header_dirs=' | ||
24502 | /usr/X11/include | ||
24503 | /usr/X11R7/include | ||
24504 | /usr/X11R6/include | ||
24505 | /usr/X11R5/include | ||
24506 | /usr/X11R4/include | ||
24507 | |||
24508 | /usr/include/X11 | ||
24509 | /usr/include/X11R7 | ||
24510 | /usr/include/X11R6 | ||
24511 | /usr/include/X11R5 | ||
24512 | /usr/include/X11R4 | ||
24513 | |||
24514 | /usr/local/X11/include | ||
24515 | /usr/local/X11R7/include | ||
24516 | /usr/local/X11R6/include | ||
24517 | /usr/local/X11R5/include | ||
24518 | /usr/local/X11R4/include | ||
24519 | |||
24520 | /usr/local/include/X11 | ||
24521 | /usr/local/include/X11R7 | ||
24522 | /usr/local/include/X11R6 | ||
24523 | /usr/local/include/X11R5 | ||
24524 | /usr/local/include/X11R4 | ||
24525 | |||
24526 | /usr/X386/include | ||
24527 | /usr/x386/include | ||
24528 | /usr/XFree86/include/X11 | ||
24529 | |||
24530 | /usr/include | ||
24531 | /usr/local/include | ||
24532 | /usr/unsupported/include | ||
24533 | /usr/athena/include | ||
24534 | /usr/local/x11r5/include | ||
24535 | /usr/lpp/Xamples/include | ||
24536 | |||
24537 | /usr/openwin/include | ||
24538 | /usr/openwin/share/include' | ||
24539 | |||
24540 | if test "$ac_x_includes" = no; then | ||
24541 | # Guess where to find include files, by looking for Xlib.h. | ||
24542 | # First, try using that file with no special directory specified. | ||
24543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24544 | /* end confdefs.h. */ | ||
24545 | #include <X11/Xlib.h> | ||
24546 | _ACEOF | ||
24547 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
24548 | # We can compile using X headers with no special include directory. | ||
24549 | ac_x_includes= | ||
24550 | else | ||
24551 | for ac_dir in $ac_x_header_dirs; do | ||
24552 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
24553 | ac_x_includes=$ac_dir | ||
24554 | break | ||
24555 | fi | ||
24556 | done | ||
24557 | fi | ||
24558 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
24559 | fi # $ac_x_includes = no | ||
24560 | |||
24561 | if test "$ac_x_libraries" = no; then | ||
24562 | # Check for the libraries. | ||
24563 | # See if we find them without any special options. | ||
24564 | # Don't add to $LIBS permanently. | ||
24565 | ac_save_LIBS=$LIBS | ||
24566 | LIBS="-lX11 $LIBS" | ||
24567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24568 | /* end confdefs.h. */ | ||
24569 | #include <X11/Xlib.h> | ||
24570 | int | ||
24571 | main () | ||
24572 | { | ||
24573 | XrmInitialize () | ||
24574 | ; | ||
24575 | return 0; | ||
24576 | } | ||
24577 | _ACEOF | ||
24578 | if ac_fn_c_try_link "$LINENO"; then : | ||
24579 | LIBS=$ac_save_LIBS | ||
24580 | # We can link X programs with no special library path. | ||
24581 | ac_x_libraries= | ||
24582 | else | ||
24583 | LIBS=$ac_save_LIBS | ||
24584 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
24585 | do | ||
24586 | # Don't even attempt the hair of trying to link an X program! | ||
24587 | for ac_extension in a so sl dylib la dll; do | ||
24588 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
24589 | ac_x_libraries=$ac_dir | ||
24590 | break 2 | ||
24591 | fi | ||
24592 | done | ||
24593 | done | ||
24594 | fi | ||
24595 | rm -f core conftest.err conftest.$ac_objext \ | ||
24596 | conftest$ac_exeext conftest.$ac_ext | ||
24597 | fi # $ac_x_libraries = no | ||
24598 | |||
24599 | case $ac_x_includes,$ac_x_libraries in #( | ||
24600 | no,* | *,no | *\'*) | ||
24601 | # Didn't find X, or a directory has "'" in its name. | ||
24602 | ac_cv_have_x="have_x=no";; #( | ||
24603 | *) | ||
24604 | # Record where we found X for the cache. | ||
24605 | ac_cv_have_x="have_x=yes\ | ||
24606 | ac_x_includes='$ac_x_includes'\ | ||
24607 | ac_x_libraries='$ac_x_libraries'" | ||
24608 | esac | ||
24609 | fi | ||
24610 | ;; #( | ||
24611 | *) have_x=yes;; | ||
24612 | esac | ||
24613 | eval "$ac_cv_have_x" | ||
24614 | fi # $with_x != no | ||
24615 | |||
24616 | if test "$have_x" != yes; then | ||
24617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
24618 | $as_echo "$have_x" >&6; } | ||
24619 | no_x=yes | ||
24620 | else | ||
24621 | # If each of the values was on the command line, it overrides each guess. | ||
24622 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
24623 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
24624 | # Update the cache value to reflect the command line values. | ||
24625 | ac_cv_have_x="have_x=yes\ | ||
24626 | ac_x_includes='$x_includes'\ | ||
24627 | ac_x_libraries='$x_libraries'" | ||
24628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
24629 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
24630 | fi | ||
24631 | |||
24632 | if test "$no_x" = yes; then | ||
24633 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
24634 | |||
24635 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
24636 | |||
24637 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
24638 | else | ||
24639 | if test -n "$x_includes"; then | ||
24640 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
24641 | fi | ||
24642 | |||
24643 | # It would also be nice to do this for all -L options, not just this one. | ||
24644 | if test -n "$x_libraries"; then | ||
24645 | X_LIBS="$X_LIBS -L$x_libraries" | ||
24646 | # For Solaris; some versions of Sun CC require a space after -R and | ||
24647 | # others require no space. Words are not sufficient . . . . | ||
24648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
24649 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
24650 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
24651 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
24652 | ac_c_werror_flag=yes | ||
24653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24654 | /* end confdefs.h. */ | ||
24655 | |||
24656 | int | ||
24657 | main () | ||
24658 | { | ||
24659 | |||
24660 | ; | ||
24661 | return 0; | ||
24662 | } | ||
24663 | _ACEOF | ||
24664 | if ac_fn_c_try_link "$LINENO"; then : | ||
24665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24666 | $as_echo "no" >&6; } | ||
24667 | X_LIBS="$X_LIBS -R$x_libraries" | ||
24668 | else | ||
24669 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
24670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24671 | /* end confdefs.h. */ | ||
24672 | |||
24673 | int | ||
24674 | main () | ||
24675 | { | ||
24676 | |||
24677 | ; | ||
24678 | return 0; | ||
24679 | } | ||
24680 | _ACEOF | ||
24681 | if ac_fn_c_try_link "$LINENO"; then : | ||
24682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
24683 | $as_echo "yes" >&6; } | ||
24684 | X_LIBS="$X_LIBS -R $x_libraries" | ||
24685 | else | ||
24686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
24687 | $as_echo "neither works" >&6; } | ||
24688 | fi | ||
24689 | rm -f core conftest.err conftest.$ac_objext \ | ||
24690 | conftest$ac_exeext conftest.$ac_ext | ||
24691 | fi | ||
24692 | rm -f core conftest.err conftest.$ac_objext \ | ||
24693 | conftest$ac_exeext conftest.$ac_ext | ||
24694 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
24695 | LIBS=$ac_xsave_LIBS | ||
24696 | fi | ||
24697 | |||
24698 | # Check for system-dependent libraries X programs must link with. | ||
24699 | # Do this before checking for the system-independent R6 libraries | ||
24700 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
24701 | |||
24702 | if test "$ISC" = yes; then | ||
24703 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
24704 | else | ||
24705 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
24706 | # libraries were built with DECnet support. And Karl Berry says | ||
24707 | # the Alpha needs dnet_stub (dnet does not exist). | ||
24708 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
24709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24710 | /* end confdefs.h. */ | ||
24711 | |||
24712 | /* Override any GCC internal prototype to avoid an error. | ||
24713 | Use char because int might match the return type of a GCC | ||
24714 | builtin and then its argument prototype would still apply. */ | ||
24715 | #ifdef __cplusplus | ||
24716 | extern "C" | ||
24717 | #endif | ||
24718 | char XOpenDisplay (); | ||
24719 | int | ||
24720 | main () | ||
24721 | { | ||
24722 | return XOpenDisplay (); | ||
24723 | ; | ||
24724 | return 0; | ||
24725 | } | ||
24726 | _ACEOF | ||
24727 | if ac_fn_c_try_link "$LINENO"; then : | ||
24728 | |||
24729 | else | ||
24730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
24731 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
24732 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
24733 | $as_echo_n "(cached) " >&6 | ||
24734 | else | ||
24735 | ac_check_lib_save_LIBS=$LIBS | ||
24736 | LIBS="-ldnet $LIBS" | ||
24737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24738 | /* end confdefs.h. */ | ||
24739 | |||
24740 | /* Override any GCC internal prototype to avoid an error. | ||
24741 | Use char because int might match the return type of a GCC | ||
24742 | builtin and then its argument prototype would still apply. */ | ||
24743 | #ifdef __cplusplus | ||
24744 | extern "C" | ||
24745 | #endif | ||
24746 | char dnet_ntoa (); | ||
24747 | int | ||
24748 | main () | ||
24749 | { | ||
24750 | return dnet_ntoa (); | ||
24751 | ; | ||
24752 | return 0; | ||
24753 | } | ||
24754 | _ACEOF | ||
24755 | if ac_fn_c_try_link "$LINENO"; then : | ||
24756 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
24757 | else | ||
24758 | ac_cv_lib_dnet_dnet_ntoa=no | ||
24759 | fi | ||
24760 | rm -f core conftest.err conftest.$ac_objext \ | ||
24761 | conftest$ac_exeext conftest.$ac_ext | ||
24762 | LIBS=$ac_check_lib_save_LIBS | ||
24763 | fi | ||
24764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
24765 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
24766 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
24767 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
24768 | fi | ||
24769 | |||
24770 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
24771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
24772 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
24773 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
24774 | $as_echo_n "(cached) " >&6 | ||
24775 | else | ||
24776 | ac_check_lib_save_LIBS=$LIBS | ||
24777 | LIBS="-ldnet_stub $LIBS" | ||
24778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24779 | /* end confdefs.h. */ | ||
24780 | |||
24781 | /* Override any GCC internal prototype to avoid an error. | ||
24782 | Use char because int might match the return type of a GCC | ||
24783 | builtin and then its argument prototype would still apply. */ | ||
24784 | #ifdef __cplusplus | ||
24785 | extern "C" | ||
24786 | #endif | ||
24787 | char dnet_ntoa (); | ||
24788 | int | ||
24789 | main () | ||
24790 | { | ||
24791 | return dnet_ntoa (); | ||
24792 | ; | ||
24793 | return 0; | ||
24794 | } | ||
24795 | _ACEOF | ||
24796 | if ac_fn_c_try_link "$LINENO"; then : | ||
24797 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
24798 | else | ||
24799 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
24800 | fi | ||
24801 | rm -f core conftest.err conftest.$ac_objext \ | ||
24802 | conftest$ac_exeext conftest.$ac_ext | ||
24803 | LIBS=$ac_check_lib_save_LIBS | ||
24804 | fi | ||
24805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
24806 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
24807 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
24808 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
24809 | fi | ||
24810 | |||
24811 | fi | ||
24812 | fi | ||
24813 | rm -f core conftest.err conftest.$ac_objext \ | ||
24814 | conftest$ac_exeext conftest.$ac_ext | ||
24815 | LIBS="$ac_xsave_LIBS" | ||
24816 | |||
24817 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
24818 | # to get the SysV transport functions. | ||
24819 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
24820 | # needs -lnsl. | ||
24821 | # The nsl library prevents programs from opening the X display | ||
24822 | # on Irix 5.2, according to T.E. Dickey. | ||
24823 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
24824 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
24825 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
24826 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
24827 | |||
24828 | fi | ||
24829 | |||
24830 | if test $ac_cv_func_gethostbyname = no; then | ||
24831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
24832 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
24833 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
24834 | $as_echo_n "(cached) " >&6 | ||
24835 | else | ||
24836 | ac_check_lib_save_LIBS=$LIBS | ||
24837 | LIBS="-lnsl $LIBS" | ||
24838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24839 | /* end confdefs.h. */ | ||
24840 | |||
24841 | /* Override any GCC internal prototype to avoid an error. | ||
24842 | Use char because int might match the return type of a GCC | ||
24843 | builtin and then its argument prototype would still apply. */ | ||
24844 | #ifdef __cplusplus | ||
24845 | extern "C" | ||
24846 | #endif | ||
24847 | char gethostbyname (); | ||
24848 | int | ||
24849 | main () | ||
24850 | { | ||
24851 | return gethostbyname (); | ||
24852 | ; | ||
24853 | return 0; | ||
24854 | } | ||
24855 | _ACEOF | ||
24856 | if ac_fn_c_try_link "$LINENO"; then : | ||
24857 | ac_cv_lib_nsl_gethostbyname=yes | ||
24858 | else | ||
24859 | ac_cv_lib_nsl_gethostbyname=no | ||
24860 | fi | ||
24861 | rm -f core conftest.err conftest.$ac_objext \ | ||
24862 | conftest$ac_exeext conftest.$ac_ext | ||
24863 | LIBS=$ac_check_lib_save_LIBS | ||
24864 | fi | ||
24865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
24866 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
24867 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
24868 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
24869 | fi | ||
24870 | |||
24871 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
24872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
24873 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
24874 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
24875 | $as_echo_n "(cached) " >&6 | ||
24876 | else | ||
24877 | ac_check_lib_save_LIBS=$LIBS | ||
24878 | LIBS="-lbsd $LIBS" | ||
24879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24880 | /* end confdefs.h. */ | ||
24881 | |||
24882 | /* Override any GCC internal prototype to avoid an error. | ||
24883 | Use char because int might match the return type of a GCC | ||
24884 | builtin and then its argument prototype would still apply. */ | ||
24885 | #ifdef __cplusplus | ||
24886 | extern "C" | ||
24887 | #endif | ||
24888 | char gethostbyname (); | ||
24889 | int | ||
24890 | main () | ||
24891 | { | ||
24892 | return gethostbyname (); | ||
24893 | ; | ||
24894 | return 0; | ||
24895 | } | ||
24896 | _ACEOF | ||
24897 | if ac_fn_c_try_link "$LINENO"; then : | ||
24898 | ac_cv_lib_bsd_gethostbyname=yes | ||
24899 | else | ||
24900 | ac_cv_lib_bsd_gethostbyname=no | ||
24901 | fi | ||
24902 | rm -f core conftest.err conftest.$ac_objext \ | ||
24903 | conftest$ac_exeext conftest.$ac_ext | ||
24904 | LIBS=$ac_check_lib_save_LIBS | ||
24905 | fi | ||
24906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
24907 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
24908 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
24909 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
24910 | fi | ||
24911 | |||
24912 | fi | ||
24913 | fi | ||
24914 | |||
24915 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
24916 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
24917 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
24918 | # on later versions), says Simon Leinen: it contains gethostby* | ||
24919 | # variants that don't use the name server (or something). -lsocket | ||
24920 | # must be given before -lnsl if both are needed. We assume that | ||
24921 | # if connect needs -lnsl, so does gethostbyname. | ||
24922 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
24923 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
24924 | |||
24925 | fi | ||
24926 | |||
24927 | if test $ac_cv_func_connect = no; then | ||
24928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
24929 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
24930 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
24931 | $as_echo_n "(cached) " >&6 | ||
24932 | else | ||
24933 | ac_check_lib_save_LIBS=$LIBS | ||
24934 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
24935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24936 | /* end confdefs.h. */ | ||
24937 | |||
24938 | /* Override any GCC internal prototype to avoid an error. | ||
24939 | Use char because int might match the return type of a GCC | ||
24940 | builtin and then its argument prototype would still apply. */ | ||
24941 | #ifdef __cplusplus | ||
24942 | extern "C" | ||
24943 | #endif | ||
24944 | char connect (); | ||
24945 | int | ||
24946 | main () | ||
24947 | { | ||
24948 | return connect (); | ||
24949 | ; | ||
24950 | return 0; | ||
24951 | } | ||
24952 | _ACEOF | ||
24953 | if ac_fn_c_try_link "$LINENO"; then : | ||
24954 | ac_cv_lib_socket_connect=yes | ||
24955 | else | ||
24956 | ac_cv_lib_socket_connect=no | ||
24957 | fi | ||
24958 | rm -f core conftest.err conftest.$ac_objext \ | ||
24959 | conftest$ac_exeext conftest.$ac_ext | ||
24960 | LIBS=$ac_check_lib_save_LIBS | ||
24961 | fi | ||
24962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
24963 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
24964 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
24965 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
24966 | fi | ||
24967 | |||
24968 | fi | ||
24969 | |||
24970 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
24971 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
24972 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
24973 | |||
24974 | fi | ||
24975 | |||
24976 | if test $ac_cv_func_remove = no; then | ||
24977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
24978 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
24979 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
24980 | $as_echo_n "(cached) " >&6 | ||
24981 | else | ||
24982 | ac_check_lib_save_LIBS=$LIBS | ||
24983 | LIBS="-lposix $LIBS" | ||
24984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24985 | /* end confdefs.h. */ | ||
24986 | |||
24987 | /* Override any GCC internal prototype to avoid an error. | ||
24988 | Use char because int might match the return type of a GCC | ||
24989 | builtin and then its argument prototype would still apply. */ | ||
24990 | #ifdef __cplusplus | ||
24991 | extern "C" | ||
24992 | #endif | ||
24993 | char remove (); | ||
24994 | int | ||
24995 | main () | ||
24996 | { | ||
24997 | return remove (); | ||
24998 | ; | ||
24999 | return 0; | ||
25000 | } | ||
25001 | _ACEOF | ||
25002 | if ac_fn_c_try_link "$LINENO"; then : | ||
25003 | ac_cv_lib_posix_remove=yes | ||
25004 | else | ||
25005 | ac_cv_lib_posix_remove=no | ||
25006 | fi | ||
25007 | rm -f core conftest.err conftest.$ac_objext \ | ||
25008 | conftest$ac_exeext conftest.$ac_ext | ||
25009 | LIBS=$ac_check_lib_save_LIBS | ||
25010 | fi | ||
25011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
25012 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
25013 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
25014 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
25015 | fi | ||
25016 | |||
25017 | fi | ||
25018 | |||
25019 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
25020 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
25021 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
25022 | |||
25023 | fi | ||
25024 | |||
25025 | if test $ac_cv_func_shmat = no; then | ||
25026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
25027 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
25028 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
25029 | $as_echo_n "(cached) " >&6 | ||
25030 | else | ||
25031 | ac_check_lib_save_LIBS=$LIBS | ||
25032 | LIBS="-lipc $LIBS" | ||
25033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25034 | /* end confdefs.h. */ | ||
25035 | |||
25036 | /* Override any GCC internal prototype to avoid an error. | ||
25037 | Use char because int might match the return type of a GCC | ||
25038 | builtin and then its argument prototype would still apply. */ | ||
25039 | #ifdef __cplusplus | ||
25040 | extern "C" | ||
25041 | #endif | ||
25042 | char shmat (); | ||
25043 | int | ||
25044 | main () | ||
25045 | { | ||
25046 | return shmat (); | ||
25047 | ; | ||
25048 | return 0; | ||
25049 | } | ||
25050 | _ACEOF | ||
25051 | if ac_fn_c_try_link "$LINENO"; then : | ||
25052 | ac_cv_lib_ipc_shmat=yes | ||
25053 | else | ||
25054 | ac_cv_lib_ipc_shmat=no | ||
25055 | fi | ||
25056 | rm -f core conftest.err conftest.$ac_objext \ | ||
25057 | conftest$ac_exeext conftest.$ac_ext | ||
25058 | LIBS=$ac_check_lib_save_LIBS | ||
25059 | fi | ||
25060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
25061 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
25062 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
25063 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
25064 | fi | ||
25065 | |||
25066 | fi | ||
25067 | fi | ||
25068 | |||
25069 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
25070 | ac_save_LDFLAGS=$LDFLAGS | ||
25071 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
25072 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
25073 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
25074 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
25075 | # These have to be linked with before -lX11, unlike the other | ||
25076 | # libraries we check for below, so use a different variable. | ||
25077 | # John Interrante, Karl Berry | ||
25078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
25079 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
25080 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
25081 | $as_echo_n "(cached) " >&6 | ||
25082 | else | ||
25083 | ac_check_lib_save_LIBS=$LIBS | ||
25084 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
25085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25086 | /* end confdefs.h. */ | ||
25087 | |||
25088 | /* Override any GCC internal prototype to avoid an error. | ||
25089 | Use char because int might match the return type of a GCC | ||
25090 | builtin and then its argument prototype would still apply. */ | ||
25091 | #ifdef __cplusplus | ||
25092 | extern "C" | ||
25093 | #endif | ||
25094 | char IceConnectionNumber (); | ||
25095 | int | ||
25096 | main () | ||
25097 | { | ||
25098 | return IceConnectionNumber (); | ||
25099 | ; | ||
25100 | return 0; | ||
25101 | } | ||
25102 | _ACEOF | ||
25103 | if ac_fn_c_try_link "$LINENO"; then : | ||
25104 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
25105 | else | ||
25106 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
25107 | fi | ||
25108 | rm -f core conftest.err conftest.$ac_objext \ | ||
25109 | conftest$ac_exeext conftest.$ac_ext | ||
25110 | LIBS=$ac_check_lib_save_LIBS | ||
25111 | fi | ||
25112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
25113 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
25114 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
25115 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
25116 | fi | ||
25117 | |||
25118 | LDFLAGS=$ac_save_LDFLAGS | ||
25119 | |||
25120 | fi | ||
25121 | |||
25122 | |||
25123 | ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" " | ||
25124 | #include <GL/gl.h> | ||
25125 | #include <GL/glext.h> | ||
25126 | #include <GL/glx.h> | ||
25127 | |||
25128 | " | ||
25129 | if test "x$ac_cv_header_GL_gl_h" = x""yes; then : | ||
25130 | have_dep="yes" | ||
25131 | else | ||
25132 | have_dep="no" | ||
25133 | fi | ||
25134 | |||
25135 | |||
25136 | |||
25137 | gl_pt_lib=""; | ||
25138 | have_gl_pt="no" | ||
25139 | |||
25140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5 | ||
25141 | $as_echo_n "checking whether pthread_create() is supported... " >&6; } | ||
25142 | CFLAGS_save="${CFLAGS}" | ||
25143 | CFLAGS="${CFLAGS} -pthread" | ||
25144 | LIBS_save="${LIBS}" | ||
25145 | LIBS="${LIBS} -pthread" | ||
25146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25147 | /* end confdefs.h. */ | ||
25148 | |||
25149 | #include <pthread.h> | ||
25150 | |||
25151 | int | ||
25152 | main () | ||
25153 | { | ||
25154 | |||
25155 | pthread_create(NULL, NULL, NULL, NULL); | ||
25156 | |||
25157 | ; | ||
25158 | return 0; | ||
25159 | } | ||
25160 | _ACEOF | ||
25161 | if ac_fn_c_try_link "$LINENO"; then : | ||
25162 | have_gl_pt="yes" | ||
25163 | else | ||
25164 | have_gl_pt="no" | ||
25165 | fi | ||
25166 | rm -f core conftest.err conftest.$ac_objext \ | ||
25167 | conftest$ac_exeext conftest.$ac_ext | ||
25168 | CFLAGS=${CFLAGS_save} | ||
25169 | LIBS=${LIBS_save} | ||
25170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5 | ||
25171 | $as_echo "${have_gl_pt}" >&6; } | ||
25172 | |||
25173 | if test "x$have_gl_pt" = "xyes" ; then | ||
25174 | gl_pt_lib=" -pthread" | ||
25175 | fi | ||
25176 | |||
25177 | if test "x${have_dep}" = "xyes" ; then | ||
25178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateColormap in -lX11" >&5 | ||
25179 | $as_echo_n "checking for XCreateColormap in -lX11... " >&6; } | ||
25180 | if test "${ac_cv_lib_X11_XCreateColormap+set}" = set; then : | ||
25181 | $as_echo_n "(cached) " >&6 | ||
25182 | else | ||
25183 | ac_check_lib_save_LIBS=$LIBS | ||
25184 | LIBS="-lX11 $LIBS" | ||
25185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25186 | /* end confdefs.h. */ | ||
25187 | |||
25188 | /* Override any GCC internal prototype to avoid an error. | ||
25189 | Use char because int might match the return type of a GCC | ||
25190 | builtin and then its argument prototype would still apply. */ | ||
25191 | #ifdef __cplusplus | ||
25192 | extern "C" | ||
25193 | #endif | ||
25194 | char XCreateColormap (); | ||
25195 | int | ||
25196 | main () | ||
25197 | { | ||
25198 | return XCreateColormap (); | ||
25199 | ; | ||
25200 | return 0; | ||
25201 | } | ||
25202 | _ACEOF | ||
25203 | if ac_fn_c_try_link "$LINENO"; then : | ||
25204 | ac_cv_lib_X11_XCreateColormap=yes | ||
25205 | else | ||
25206 | ac_cv_lib_X11_XCreateColormap=no | ||
25207 | fi | ||
25208 | rm -f core conftest.err conftest.$ac_objext \ | ||
25209 | conftest$ac_exeext conftest.$ac_ext | ||
25210 | LIBS=$ac_check_lib_save_LIBS | ||
25211 | fi | ||
25212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateColormap" >&5 | ||
25213 | $as_echo "$ac_cv_lib_X11_XCreateColormap" >&6; } | ||
25214 | if test "x$ac_cv_lib_X11_XCreateColormap" = x""yes; then : | ||
25215 | have_dep="yes" | ||
25216 | else | ||
25217 | have_dep="no" | ||
25218 | fi | ||
25219 | |||
25220 | fi | ||
25221 | |||
25222 | if test "x${have_dep}" = "xyes" ; then | ||
25223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreatePicture in -lXrender" >&5 | ||
25224 | $as_echo_n "checking for XRenderCreatePicture in -lXrender... " >&6; } | ||
25225 | if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then : | ||
25226 | $as_echo_n "(cached) " >&6 | ||
25227 | else | ||
25228 | ac_check_lib_save_LIBS=$LIBS | ||
25229 | LIBS="-lXrender $LIBS" | ||
25230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25231 | /* end confdefs.h. */ | ||
25232 | |||
25233 | /* Override any GCC internal prototype to avoid an error. | ||
25234 | Use char because int might match the return type of a GCC | ||
25235 | builtin and then its argument prototype would still apply. */ | ||
25236 | #ifdef __cplusplus | ||
25237 | extern "C" | ||
25238 | #endif | ||
25239 | char XRenderCreatePicture (); | ||
25240 | int | ||
25241 | main () | ||
25242 | { | ||
25243 | return XRenderCreatePicture (); | ||
25244 | ; | ||
25245 | return 0; | ||
25246 | } | ||
25247 | _ACEOF | ||
25248 | if ac_fn_c_try_link "$LINENO"; then : | ||
25249 | ac_cv_lib_Xrender_XRenderCreatePicture=yes | ||
25250 | else | ||
25251 | ac_cv_lib_Xrender_XRenderCreatePicture=no | ||
25252 | fi | ||
25253 | rm -f core conftest.err conftest.$ac_objext \ | ||
25254 | conftest$ac_exeext conftest.$ac_ext | ||
25255 | LIBS=$ac_check_lib_save_LIBS | ||
25256 | fi | ||
25257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5 | ||
25258 | $as_echo "$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; } | ||
25259 | if test "x$ac_cv_lib_Xrender_XRenderCreatePicture" = x""yes; then : | ||
25260 | have_dep="yes" | ||
25261 | else | ||
25262 | have_dep="no" | ||
25263 | fi | ||
25264 | |||
25265 | fi | ||
25266 | |||
25267 | if test "x${have_dep}" = "xyes" ; then | ||
25268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5 | ||
25269 | $as_echo_n "checking for glXCreateContext in -lGL... " >&6; } | ||
25270 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then : | ||
25271 | $as_echo_n "(cached) " >&6 | ||
25272 | else | ||
25273 | ac_check_lib_save_LIBS=$LIBS | ||
25274 | LIBS="-lGL -lX11 -lXext -lXrender -lm $gl_pt_lib $LIBS" | ||
25275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25276 | /* end confdefs.h. */ | ||
25277 | |||
25278 | /* Override any GCC internal prototype to avoid an error. | ||
25279 | Use char because int might match the return type of a GCC | ||
25280 | builtin and then its argument prototype would still apply. */ | ||
25281 | #ifdef __cplusplus | ||
25282 | extern "C" | ||
25283 | #endif | ||
25284 | char glXCreateContext (); | ||
25285 | int | ||
25286 | main () | ||
25287 | { | ||
25288 | return glXCreateContext (); | ||
25289 | ; | ||
25290 | return 0; | ||
25291 | } | ||
25292 | _ACEOF | ||
25293 | if ac_fn_c_try_link "$LINENO"; then : | ||
25294 | ac_cv_lib_GL_glXCreateContext=yes | ||
25295 | else | ||
25296 | ac_cv_lib_GL_glXCreateContext=no | ||
25297 | fi | ||
25298 | rm -f core conftest.err conftest.$ac_objext \ | ||
25299 | conftest$ac_exeext conftest.$ac_ext | ||
25300 | LIBS=$ac_check_lib_save_LIBS | ||
25301 | fi | ||
25302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5 | ||
25303 | $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; } | ||
25304 | if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then : | ||
25305 | have_dep="yes" | ||
25306 | else | ||
25307 | have_dep="no" | ||
25308 | fi | ||
25309 | |||
25310 | fi | ||
25311 | |||
25312 | |||
25313 | pkg_failed=no | ||
25314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_GL" >&5 | ||
25315 | $as_echo_n "checking for XCB_GL... " >&6; } | ||
25316 | |||
25317 | if test -n "$XCB_GL_CFLAGS"; then | ||
25318 | pkg_cv_XCB_GL_CFLAGS="$XCB_GL_CFLAGS" | ||
25319 | elif test -n "$PKG_CONFIG"; then | ||
25320 | if test -n "$PKG_CONFIG" && \ | ||
25321 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-glx xcb-render xcb-renderutil\""; } >&5 | ||
25322 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil") 2>&5 | ||
25323 | ac_status=$? | ||
25324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25325 | test $ac_status = 0; }; then | ||
25326 | pkg_cv_XCB_GL_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>/dev/null` | ||
25327 | else | ||
25328 | pkg_failed=yes | ||
25329 | fi | ||
25330 | else | ||
25331 | pkg_failed=untried | ||
25332 | fi | ||
25333 | if test -n "$XCB_GL_LIBS"; then | ||
25334 | pkg_cv_XCB_GL_LIBS="$XCB_GL_LIBS" | ||
25335 | elif test -n "$PKG_CONFIG"; then | ||
25336 | if test -n "$PKG_CONFIG" && \ | ||
25337 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-glx xcb-render xcb-renderutil\""; } >&5 | ||
25338 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil") 2>&5 | ||
25339 | ac_status=$? | ||
25340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25341 | test $ac_status = 0; }; then | ||
25342 | pkg_cv_XCB_GL_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>/dev/null` | ||
25343 | else | ||
25344 | pkg_failed=yes | ||
25345 | fi | ||
25346 | else | ||
25347 | pkg_failed=untried | ||
25348 | fi | ||
25349 | |||
25350 | |||
25351 | |||
25352 | if test $pkg_failed = yes; then | ||
25353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25354 | $as_echo "no" >&6; } | ||
25355 | |||
25356 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
25357 | _pkg_short_errors_supported=yes | ||
25358 | else | ||
25359 | _pkg_short_errors_supported=no | ||
25360 | fi | ||
25361 | if test $_pkg_short_errors_supported = yes; then | ||
25362 | XCB_GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>&1` | ||
25363 | else | ||
25364 | XCB_GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>&1` | ||
25365 | fi | ||
25366 | # Put the nasty error message in config.log where it belongs | ||
25367 | echo "$XCB_GL_PKG_ERRORS" >&5 | ||
25368 | |||
25369 | |||
25370 | have_dep="no" | ||
25371 | |||
25372 | |||
25373 | elif test $pkg_failed = untried; then | ||
25374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25375 | $as_echo "no" >&6; } | ||
25376 | |||
25377 | have_dep="no" | ||
25378 | |||
25379 | |||
25380 | else | ||
25381 | XCB_GL_CFLAGS=$pkg_cv_XCB_GL_CFLAGS | ||
25382 | XCB_GL_LIBS=$pkg_cv_XCB_GL_LIBS | ||
25383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
25384 | $as_echo "yes" >&6; } | ||
25385 | |||
25386 | have_dep="yes" | ||
25387 | requirement="x11-xcb xcb xcb-glx xcb-render xcb-renderutil" | ||
25388 | evas_engine_gl_xcb_cflags="${XCB_GL_CFLAGS}" | ||
25389 | evas_engine_gl_xcb_libs="${XCB_GL_LIBS}" | ||
25390 | |||
25391 | fi | ||
25392 | |||
25393 | if test "x$gl_flavor_gles" = "xyes" ; then | ||
25394 | have_dep=no | ||
25395 | fi | ||
25396 | |||
25397 | if test "x${have_dep}" = "xyes" ; then | ||
25398 | |||
25399 | pkg_failed=no | ||
25400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
25401 | $as_echo_n "checking for GL_EET... " >&6; } | ||
25402 | |||
25403 | if test -n "$GL_EET_CFLAGS"; then | ||
25404 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
25405 | elif test -n "$PKG_CONFIG"; then | ||
25406 | if test -n "$PKG_CONFIG" && \ | ||
25407 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
25408 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
25409 | ac_status=$? | ||
25410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25411 | test $ac_status = 0; }; then | ||
25412 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null` | ||
25413 | else | ||
25414 | pkg_failed=yes | ||
25415 | fi | ||
25416 | else | ||
25417 | pkg_failed=untried | ||
25418 | fi | ||
25419 | if test -n "$GL_EET_LIBS"; then | ||
25420 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
25421 | elif test -n "$PKG_CONFIG"; then | ||
25422 | if test -n "$PKG_CONFIG" && \ | ||
25423 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
25424 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
25425 | ac_status=$? | ||
25426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25427 | test $ac_status = 0; }; then | ||
25428 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null` | ||
25429 | else | ||
25430 | pkg_failed=yes | ||
25431 | fi | ||
25432 | else | ||
25433 | pkg_failed=untried | ||
25434 | fi | ||
25435 | |||
25436 | |||
25437 | |||
25438 | if test $pkg_failed = yes; then | ||
25439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25440 | $as_echo "no" >&6; } | ||
25441 | |||
25442 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
25443 | _pkg_short_errors_supported=yes | ||
25444 | else | ||
25445 | _pkg_short_errors_supported=no | ||
25446 | fi | ||
25447 | if test $_pkg_short_errors_supported = yes; then | ||
25448 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1` | ||
25449 | else | ||
25450 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1` | ||
25451 | fi | ||
25452 | # Put the nasty error message in config.log where it belongs | ||
25453 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
25454 | |||
25455 | have_dep="no" | ||
25456 | elif test $pkg_failed = untried; then | ||
25457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25458 | $as_echo "no" >&6; } | ||
25459 | have_dep="no" | ||
25460 | else | ||
25461 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
25462 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
25463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
25464 | $as_echo "yes" >&6; } | ||
25465 | have_dep="yes" | ||
25466 | fi | ||
25467 | if test "x${have_dep}" = "xyes" ; then | ||
25468 | if test "xno" = "xyes" ; then | ||
25469 | x_libs="${x_libs} -lX11 -lXext -lXrender" | ||
25470 | else | ||
25471 | x_dir=${x_dir:-/usr/X11R6} | ||
25472 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
25473 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" | ||
25474 | fi | ||
25475 | evas_engine_gl_xcb_cflags="-I/usr/include ${XCB_GL_CFLAGS} ${x_cflags}" | ||
25476 | evas_engine_gl_xcb_libs="${XCB_GL_LIBS} ${x_libs} -lGL $gl_pt_lib" | ||
25477 | evas_engine_gl_common_libs="-lGL $gl_pt_lib" | ||
25478 | fi | ||
25479 | else | ||
25480 | if test "xno" = "xyes" ; then | ||
25481 | x_libs="${x_libs} -lX11 -lXext -lXrender" | ||
25482 | else | ||
25483 | x_dir=${x_dir:-/usr/X11R6} | ||
25484 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
25485 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" | ||
25486 | fi | ||
25487 | ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" " | ||
25488 | #include <GLES2/gl2.h> | ||
25489 | #include <GLES2/gl2ext.h> | ||
25490 | #include <EGL/egl.h> | ||
25491 | |||
25492 | " | ||
25493 | if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then : | ||
25494 | have_egl="yes" | ||
25495 | else | ||
25496 | have_egl="no" | ||
25497 | fi | ||
25498 | |||
25499 | |||
25500 | if test "x${have_egl}" = "xyes" ; then | ||
25501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5 | ||
25502 | $as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; } | ||
25503 | if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then : | ||
25504 | $as_echo_n "(cached) " >&6 | ||
25505 | else | ||
25506 | ac_check_lib_save_LIBS=$LIBS | ||
25507 | LIBS="-lGLESv2 -lEGL ${x_libs} -lm $gl_pt_lib $LIBS" | ||
25508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25509 | /* end confdefs.h. */ | ||
25510 | |||
25511 | /* Override any GCC internal prototype to avoid an error. | ||
25512 | Use char because int might match the return type of a GCC | ||
25513 | builtin and then its argument prototype would still apply. */ | ||
25514 | #ifdef __cplusplus | ||
25515 | extern "C" | ||
25516 | #endif | ||
25517 | char glTexImage2D (); | ||
25518 | int | ||
25519 | main () | ||
25520 | { | ||
25521 | return glTexImage2D (); | ||
25522 | ; | ||
25523 | return 0; | ||
25524 | } | ||
25525 | _ACEOF | ||
25526 | if ac_fn_c_try_link "$LINENO"; then : | ||
25527 | ac_cv_lib_GLESv2_glTexImage2D=yes | ||
25528 | else | ||
25529 | ac_cv_lib_GLESv2_glTexImage2D=no | ||
25530 | fi | ||
25531 | rm -f core conftest.err conftest.$ac_objext \ | ||
25532 | conftest$ac_exeext conftest.$ac_ext | ||
25533 | LIBS=$ac_check_lib_save_LIBS | ||
25534 | fi | ||
25535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5 | ||
25536 | $as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; } | ||
25537 | if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then : | ||
25538 | have_glesv2="yes" | ||
25539 | fi | ||
25540 | |||
25541 | if test "x${have_glesv2}" = "xyes" ; then | ||
25542 | |||
25543 | pkg_failed=no | ||
25544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
25545 | $as_echo_n "checking for GL_EET... " >&6; } | ||
25546 | |||
25547 | if test -n "$GL_EET_CFLAGS"; then | ||
25548 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
25549 | elif test -n "$PKG_CONFIG"; then | ||
25550 | if test -n "$PKG_CONFIG" && \ | ||
25551 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
25552 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
25553 | ac_status=$? | ||
25554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25555 | test $ac_status = 0; }; then | ||
25556 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null` | ||
25557 | else | ||
25558 | pkg_failed=yes | ||
25559 | fi | ||
25560 | else | ||
25561 | pkg_failed=untried | ||
25562 | fi | ||
25563 | if test -n "$GL_EET_LIBS"; then | ||
25564 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
25565 | elif test -n "$PKG_CONFIG"; then | ||
25566 | if test -n "$PKG_CONFIG" && \ | ||
25567 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
25568 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
25569 | ac_status=$? | ||
25570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25571 | test $ac_status = 0; }; then | ||
25572 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null` | ||
25573 | else | ||
25574 | pkg_failed=yes | ||
25575 | fi | ||
25576 | else | ||
25577 | pkg_failed=untried | ||
25578 | fi | ||
25579 | |||
25580 | |||
25581 | |||
25582 | if test $pkg_failed = yes; then | ||
25583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25584 | $as_echo "no" >&6; } | ||
25585 | |||
25586 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
25587 | _pkg_short_errors_supported=yes | ||
25588 | else | ||
25589 | _pkg_short_errors_supported=no | ||
25590 | fi | ||
25591 | if test $_pkg_short_errors_supported = yes; then | ||
25592 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1` | ||
25593 | else | ||
25594 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1` | ||
25595 | fi | ||
25596 | # Put the nasty error message in config.log where it belongs | ||
25597 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
25598 | |||
25599 | have_dep="no" | ||
25600 | elif test $pkg_failed = untried; then | ||
25601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25602 | $as_echo "no" >&6; } | ||
25603 | have_dep="no" | ||
25604 | else | ||
25605 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
25606 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
25607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
25608 | $as_echo "yes" >&6; } | ||
25609 | have_dep="yes" | ||
25610 | fi | ||
25611 | if test "x${have_dep}" = "xyes" ; then | ||
25612 | evas_engine_gl_xcb_cflags="${XCB_GL_CFLAGS} ${x_cflags}" | ||
25613 | evas_engine_gl_xcb_libs="${XCB_GL_LIBS} ${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib" | ||
25614 | evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib" | ||
25615 | have_dep="yes" | ||
25616 | gl_flavor_gles="no" | ||
25617 | |||
25618 | $as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h | ||
25619 | |||
25620 | gles_variety_sgx="yes" | ||
25621 | fi | ||
25622 | fi | ||
25623 | fi | ||
25624 | fi | ||
25625 | |||
25626 | |||
25627 | |||
25628 | |||
25629 | if test "x${have_dep}" = "xyes" ; then | ||
25630 | have_engine="yes" | ||
25631 | else | ||
25632 | have_engine="no" | ||
25633 | fi | ||
25634 | |||
25635 | |||
25636 | fi | ||
25637 | |||
25638 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
25639 | as_fn_error $? "OpenGL XCB dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
25640 | fi | ||
25641 | |||
25642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL XCB rendering backend will be built" >&5 | ||
25643 | $as_echo_n "checking whether OpenGL XCB rendering backend will be built... " >&6; } | ||
25644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
25645 | $as_echo "${have_engine}" >&6; } | ||
25646 | |||
25647 | if test "x${have_engine}" = "xyes" ; then | ||
25648 | if test "x${want_engine}" = "xstatic" ; then | ||
25649 | have_evas_engine_gl_xcb="static" | ||
25650 | want_static_engine="yes" | ||
25651 | else | ||
25652 | have_evas_engine_gl_xcb="yes" | ||
25653 | fi | ||
25654 | fi | ||
25655 | |||
25656 | if test "x${have_engine}" = "xyes" ; then | ||
25657 | |||
25658 | $as_echo "#define BUILD_ENGINE_GL_XCB 1" >>confdefs.h | ||
25659 | |||
25660 | fi | ||
25661 | |||
25662 | if test "x${have_engine}" = "xyes"; then | ||
25663 | BUILD_ENGINE_GL_XCB_TRUE= | ||
25664 | BUILD_ENGINE_GL_XCB_FALSE='#' | ||
25665 | else | ||
25666 | BUILD_ENGINE_GL_XCB_TRUE='#' | ||
25667 | BUILD_ENGINE_GL_XCB_FALSE= | ||
25668 | fi | ||
25669 | |||
25670 | |||
25671 | if test "x${want_static_engine}" = "xyes" ; then | ||
25672 | |||
25673 | $as_echo "#define EVAS_STATIC_BUILD_GL_XCB 1" >>confdefs.h | ||
25674 | |||
25675 | have_static_module="yes" | ||
25676 | fi | ||
25677 | |||
25678 | if test "x${want_static_engine}" = "xyes"; then | ||
25679 | EVAS_STATIC_BUILD_GL_XCB_TRUE= | ||
25680 | EVAS_STATIC_BUILD_GL_XCB_FALSE='#' | ||
25681 | else | ||
25682 | EVAS_STATIC_BUILD_GL_XCB_TRUE='#' | ||
25683 | EVAS_STATIC_BUILD_GL_XCB_FALSE= | ||
25684 | fi | ||
25685 | |||
25686 | |||
25687 | |||
25688 | |||
25689 | |||
25690 | |||
25691 | if test "x$have_evas_engine_gl_xcb" != "xno" ; then | ||
25692 | build_gl_xcb="yes" | ||
25693 | have_evas_engine_gl_x11="yes" | ||
25694 | |||
25695 | $as_echo "#define BUILD_ENGINE_GL_X11 1" >>confdefs.h | ||
25696 | |||
25697 | |||
25698 | $as_echo "#define BUILD_ENGINE_GL_XCB 1" >>confdefs.h | ||
25699 | |||
25700 | if test "x$have_evas_engine_gl_xcb" = "xstatic" ; then | ||
25701 | |||
25702 | $as_echo "#define EVAS_STATIC_BUILD_GL_X11 1" >>confdefs.h | ||
25703 | |||
25704 | fi | ||
25705 | fi | ||
25706 | |||
25707 | else | ||
25708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25709 | $as_echo "no" >&6; } | ||
25710 | build_gl_xcb="no" | ||
25711 | fi | ||
25712 | |||
25713 | ## If we are not building XCB, then we can build XLib ## | ||
25714 | |||
25715 | if test "x$build_gl_xcb" = "xno" ; then | ||
25716 | |||
25717 | |||
25718 | |||
25719 | want_engine="${want_evas_engine_gl_xlib}" | ||
25720 | want_static_engine="no" | ||
25721 | have_engine="no" | ||
25722 | have_evas_engine_gl_xlib="no" | ||
25723 | |||
25724 | # Check whether --enable-gl-xlib was given. | ||
25725 | if test "${enable_gl_xlib+set}" = set; then : | ||
25726 | enableval=$enable_gl_xlib; | ||
25727 | if test "x${enableval}" = "xyes" ; then | ||
25728 | want_engine="yes" | ||
25729 | else | ||
25730 | if test "x${enableval}" = "xstatic" ; then | ||
25731 | want_engine="static" | ||
25732 | else | ||
25733 | want_engine="no" | ||
25734 | fi | ||
25735 | fi | ||
25736 | |||
25737 | fi | ||
25738 | |||
25739 | |||
25740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL XLib rendering backend" >&5 | ||
25741 | $as_echo_n "checking whether to enable OpenGL XLib rendering backend... " >&6; } | ||
25742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
25743 | $as_echo "${want_engine}" >&6; } | ||
25744 | |||
25745 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
25746 | |||
25747 | |||
25748 | evas_engine_gl_xlib_cflags="" | ||
25749 | evas_engine_gl_xlib_libs="" | ||
25750 | |||
25751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
25752 | $as_echo_n "checking for X... " >&6; } | ||
25753 | |||
25754 | |||
25755 | # Check whether --with-x was given. | ||
25756 | if test "${with_x+set}" = set; then : | ||
25757 | withval=$with_x; | ||
25758 | fi | ||
25759 | |||
25760 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
25761 | if test "x$with_x" = xno; then | ||
25762 | # The user explicitly disabled X. | ||
25763 | have_x=disabled | ||
25764 | else | ||
25765 | case $x_includes,$x_libraries in #( | ||
25766 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
25767 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
25768 | $as_echo_n "(cached) " >&6 | ||
25769 | else | ||
25770 | # One or both of the vars are not set, and there is no cached value. | ||
25771 | ac_x_includes=no ac_x_libraries=no | ||
25772 | rm -f -r conftest.dir | ||
25773 | if mkdir conftest.dir; then | ||
25774 | cd conftest.dir | ||
25775 | cat >Imakefile <<'_ACEOF' | ||
25776 | incroot: | ||
25777 | @echo incroot='${INCROOT}' | ||
25778 | usrlibdir: | ||
25779 | @echo usrlibdir='${USRLIBDIR}' | ||
25780 | libdir: | ||
25781 | @echo libdir='${LIBDIR}' | ||
25782 | _ACEOF | ||
25783 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
25784 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
25785 | for ac_var in incroot usrlibdir libdir; do | ||
25786 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
25787 | done | ||
25788 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
25789 | for ac_extension in a so sl dylib la dll; do | ||
25790 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
25791 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
25792 | ac_im_usrlibdir=$ac_im_libdir; break | ||
25793 | fi | ||
25794 | done | ||
25795 | # Screen out bogus values from the imake configuration. They are | ||
25796 | # bogus both because they are the default anyway, and because | ||
25797 | # using them would break gcc on systems where it needs fixed includes. | ||
25798 | case $ac_im_incroot in | ||
25799 | /usr/include) ac_x_includes= ;; | ||
25800 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
25801 | esac | ||
25802 | case $ac_im_usrlibdir in | ||
25803 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
25804 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
25805 | esac | ||
25806 | fi | ||
25807 | cd .. | ||
25808 | rm -f -r conftest.dir | ||
25809 | fi | ||
25810 | |||
25811 | # Standard set of common directories for X headers. | ||
25812 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
25813 | ac_x_header_dirs=' | ||
25814 | /usr/X11/include | ||
25815 | /usr/X11R7/include | ||
25816 | /usr/X11R6/include | ||
25817 | /usr/X11R5/include | ||
25818 | /usr/X11R4/include | ||
25819 | |||
25820 | /usr/include/X11 | ||
25821 | /usr/include/X11R7 | ||
25822 | /usr/include/X11R6 | ||
25823 | /usr/include/X11R5 | ||
25824 | /usr/include/X11R4 | ||
25825 | |||
25826 | /usr/local/X11/include | ||
25827 | /usr/local/X11R7/include | ||
25828 | /usr/local/X11R6/include | ||
25829 | /usr/local/X11R5/include | ||
25830 | /usr/local/X11R4/include | ||
25831 | |||
25832 | /usr/local/include/X11 | ||
25833 | /usr/local/include/X11R7 | ||
25834 | /usr/local/include/X11R6 | ||
25835 | /usr/local/include/X11R5 | ||
25836 | /usr/local/include/X11R4 | ||
25837 | |||
25838 | /usr/X386/include | ||
25839 | /usr/x386/include | ||
25840 | /usr/XFree86/include/X11 | ||
25841 | |||
25842 | /usr/include | ||
25843 | /usr/local/include | ||
25844 | /usr/unsupported/include | ||
25845 | /usr/athena/include | ||
25846 | /usr/local/x11r5/include | ||
25847 | /usr/lpp/Xamples/include | ||
25848 | |||
25849 | /usr/openwin/include | ||
25850 | /usr/openwin/share/include' | ||
25851 | |||
25852 | if test "$ac_x_includes" = no; then | ||
25853 | # Guess where to find include files, by looking for Xlib.h. | ||
25854 | # First, try using that file with no special directory specified. | ||
25855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25856 | /* end confdefs.h. */ | ||
25857 | #include <X11/Xlib.h> | ||
25858 | _ACEOF | ||
25859 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
25860 | # We can compile using X headers with no special include directory. | ||
25861 | ac_x_includes= | ||
25862 | else | ||
25863 | for ac_dir in $ac_x_header_dirs; do | ||
25864 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
25865 | ac_x_includes=$ac_dir | ||
25866 | break | ||
25867 | fi | ||
25868 | done | ||
25869 | fi | ||
25870 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
25871 | fi # $ac_x_includes = no | ||
25872 | |||
25873 | if test "$ac_x_libraries" = no; then | ||
25874 | # Check for the libraries. | ||
25875 | # See if we find them without any special options. | ||
25876 | # Don't add to $LIBS permanently. | ||
25877 | ac_save_LIBS=$LIBS | ||
25878 | LIBS="-lX11 $LIBS" | ||
25879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25880 | /* end confdefs.h. */ | ||
25881 | #include <X11/Xlib.h> | ||
25882 | int | ||
25883 | main () | ||
25884 | { | ||
25885 | XrmInitialize () | ||
25886 | ; | ||
25887 | return 0; | ||
25888 | } | ||
25889 | _ACEOF | ||
25890 | if ac_fn_c_try_link "$LINENO"; then : | ||
25891 | LIBS=$ac_save_LIBS | ||
25892 | # We can link X programs with no special library path. | ||
25893 | ac_x_libraries= | ||
25894 | else | ||
25895 | LIBS=$ac_save_LIBS | ||
25896 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
25897 | do | ||
25898 | # Don't even attempt the hair of trying to link an X program! | ||
25899 | for ac_extension in a so sl dylib la dll; do | ||
25900 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
25901 | ac_x_libraries=$ac_dir | ||
25902 | break 2 | ||
25903 | fi | ||
25904 | done | ||
25905 | done | ||
25906 | fi | ||
25907 | rm -f core conftest.err conftest.$ac_objext \ | ||
25908 | conftest$ac_exeext conftest.$ac_ext | ||
25909 | fi # $ac_x_libraries = no | ||
25910 | |||
25911 | case $ac_x_includes,$ac_x_libraries in #( | ||
25912 | no,* | *,no | *\'*) | ||
25913 | # Didn't find X, or a directory has "'" in its name. | ||
25914 | ac_cv_have_x="have_x=no";; #( | ||
25915 | *) | ||
25916 | # Record where we found X for the cache. | ||
25917 | ac_cv_have_x="have_x=yes\ | ||
25918 | ac_x_includes='$ac_x_includes'\ | ||
25919 | ac_x_libraries='$ac_x_libraries'" | ||
25920 | esac | ||
25921 | fi | ||
25922 | ;; #( | ||
25923 | *) have_x=yes;; | ||
25924 | esac | ||
25925 | eval "$ac_cv_have_x" | ||
25926 | fi # $with_x != no | ||
25927 | |||
25928 | if test "$have_x" != yes; then | ||
25929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
25930 | $as_echo "$have_x" >&6; } | ||
25931 | no_x=yes | ||
25932 | else | ||
25933 | # If each of the values was on the command line, it overrides each guess. | ||
25934 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
25935 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
25936 | # Update the cache value to reflect the command line values. | ||
25937 | ac_cv_have_x="have_x=yes\ | ||
25938 | ac_x_includes='$x_includes'\ | ||
25939 | ac_x_libraries='$x_libraries'" | ||
25940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
25941 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
25942 | fi | ||
25943 | |||
25944 | if test "$no_x" = yes; then | ||
25945 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
25946 | |||
25947 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
25948 | |||
25949 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
25950 | else | ||
25951 | if test -n "$x_includes"; then | ||
25952 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
25953 | fi | ||
25954 | |||
25955 | # It would also be nice to do this for all -L options, not just this one. | ||
25956 | if test -n "$x_libraries"; then | ||
25957 | X_LIBS="$X_LIBS -L$x_libraries" | ||
25958 | # For Solaris; some versions of Sun CC require a space after -R and | ||
25959 | # others require no space. Words are not sufficient . . . . | ||
25960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
25961 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
25962 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
25963 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
25964 | ac_c_werror_flag=yes | ||
25965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25966 | /* end confdefs.h. */ | ||
25967 | |||
25968 | int | ||
25969 | main () | ||
25970 | { | ||
25971 | |||
25972 | ; | ||
25973 | return 0; | ||
25974 | } | ||
25975 | _ACEOF | ||
25976 | if ac_fn_c_try_link "$LINENO"; then : | ||
25977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25978 | $as_echo "no" >&6; } | ||
25979 | X_LIBS="$X_LIBS -R$x_libraries" | ||
25980 | else | ||
25981 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
25982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25983 | /* end confdefs.h. */ | ||
25984 | |||
25985 | int | ||
25986 | main () | ||
25987 | { | ||
25988 | |||
25989 | ; | ||
25990 | return 0; | ||
25991 | } | ||
25992 | _ACEOF | ||
25993 | if ac_fn_c_try_link "$LINENO"; then : | ||
25994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
25995 | $as_echo "yes" >&6; } | ||
25996 | X_LIBS="$X_LIBS -R $x_libraries" | ||
25997 | else | ||
25998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
25999 | $as_echo "neither works" >&6; } | ||
26000 | fi | ||
26001 | rm -f core conftest.err conftest.$ac_objext \ | ||
26002 | conftest$ac_exeext conftest.$ac_ext | ||
26003 | fi | ||
26004 | rm -f core conftest.err conftest.$ac_objext \ | ||
26005 | conftest$ac_exeext conftest.$ac_ext | ||
26006 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
26007 | LIBS=$ac_xsave_LIBS | ||
26008 | fi | ||
26009 | |||
26010 | # Check for system-dependent libraries X programs must link with. | ||
26011 | # Do this before checking for the system-independent R6 libraries | ||
26012 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
26013 | |||
26014 | if test "$ISC" = yes; then | ||
26015 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
26016 | else | ||
26017 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
26018 | # libraries were built with DECnet support. And Karl Berry says | ||
26019 | # the Alpha needs dnet_stub (dnet does not exist). | ||
26020 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
26021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26022 | /* end confdefs.h. */ | ||
26023 | |||
26024 | /* Override any GCC internal prototype to avoid an error. | ||
26025 | Use char because int might match the return type of a GCC | ||
26026 | builtin and then its argument prototype would still apply. */ | ||
26027 | #ifdef __cplusplus | ||
26028 | extern "C" | ||
26029 | #endif | ||
26030 | char XOpenDisplay (); | ||
26031 | int | ||
26032 | main () | ||
26033 | { | ||
26034 | return XOpenDisplay (); | ||
26035 | ; | ||
26036 | return 0; | ||
26037 | } | ||
26038 | _ACEOF | ||
26039 | if ac_fn_c_try_link "$LINENO"; then : | ||
26040 | |||
26041 | else | ||
26042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
26043 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
26044 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
26045 | $as_echo_n "(cached) " >&6 | ||
26046 | else | ||
26047 | ac_check_lib_save_LIBS=$LIBS | ||
26048 | LIBS="-ldnet $LIBS" | ||
26049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26050 | /* end confdefs.h. */ | ||
26051 | |||
26052 | /* Override any GCC internal prototype to avoid an error. | ||
26053 | Use char because int might match the return type of a GCC | ||
26054 | builtin and then its argument prototype would still apply. */ | ||
26055 | #ifdef __cplusplus | ||
26056 | extern "C" | ||
26057 | #endif | ||
26058 | char dnet_ntoa (); | ||
26059 | int | ||
26060 | main () | ||
26061 | { | ||
26062 | return dnet_ntoa (); | ||
26063 | ; | ||
26064 | return 0; | ||
26065 | } | ||
26066 | _ACEOF | ||
26067 | if ac_fn_c_try_link "$LINENO"; then : | ||
26068 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
26069 | else | ||
26070 | ac_cv_lib_dnet_dnet_ntoa=no | ||
26071 | fi | ||
26072 | rm -f core conftest.err conftest.$ac_objext \ | ||
26073 | conftest$ac_exeext conftest.$ac_ext | ||
26074 | LIBS=$ac_check_lib_save_LIBS | ||
26075 | fi | ||
26076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
26077 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
26078 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
26079 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
26080 | fi | ||
26081 | |||
26082 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
26083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
26084 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
26085 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
26086 | $as_echo_n "(cached) " >&6 | ||
26087 | else | ||
26088 | ac_check_lib_save_LIBS=$LIBS | ||
26089 | LIBS="-ldnet_stub $LIBS" | ||
26090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26091 | /* end confdefs.h. */ | ||
26092 | |||
26093 | /* Override any GCC internal prototype to avoid an error. | ||
26094 | Use char because int might match the return type of a GCC | ||
26095 | builtin and then its argument prototype would still apply. */ | ||
26096 | #ifdef __cplusplus | ||
26097 | extern "C" | ||
26098 | #endif | ||
26099 | char dnet_ntoa (); | ||
26100 | int | ||
26101 | main () | ||
26102 | { | ||
26103 | return dnet_ntoa (); | ||
26104 | ; | ||
26105 | return 0; | ||
26106 | } | ||
26107 | _ACEOF | ||
26108 | if ac_fn_c_try_link "$LINENO"; then : | ||
26109 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
26110 | else | ||
26111 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
26112 | fi | ||
26113 | rm -f core conftest.err conftest.$ac_objext \ | ||
26114 | conftest$ac_exeext conftest.$ac_ext | ||
26115 | LIBS=$ac_check_lib_save_LIBS | ||
26116 | fi | ||
26117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
26118 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
26119 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
26120 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
26121 | fi | ||
26122 | |||
26123 | fi | ||
26124 | fi | ||
26125 | rm -f core conftest.err conftest.$ac_objext \ | ||
26126 | conftest$ac_exeext conftest.$ac_ext | ||
26127 | LIBS="$ac_xsave_LIBS" | ||
26128 | |||
26129 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
26130 | # to get the SysV transport functions. | ||
26131 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
26132 | # needs -lnsl. | ||
26133 | # The nsl library prevents programs from opening the X display | ||
26134 | # on Irix 5.2, according to T.E. Dickey. | ||
26135 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
26136 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
26137 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
26138 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
26139 | |||
26140 | fi | ||
26141 | |||
26142 | if test $ac_cv_func_gethostbyname = no; then | ||
26143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
26144 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
26145 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
26146 | $as_echo_n "(cached) " >&6 | ||
26147 | else | ||
26148 | ac_check_lib_save_LIBS=$LIBS | ||
26149 | LIBS="-lnsl $LIBS" | ||
26150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26151 | /* end confdefs.h. */ | ||
26152 | |||
26153 | /* Override any GCC internal prototype to avoid an error. | ||
26154 | Use char because int might match the return type of a GCC | ||
26155 | builtin and then its argument prototype would still apply. */ | ||
26156 | #ifdef __cplusplus | ||
26157 | extern "C" | ||
26158 | #endif | ||
26159 | char gethostbyname (); | ||
26160 | int | ||
26161 | main () | ||
26162 | { | ||
26163 | return gethostbyname (); | ||
26164 | ; | ||
26165 | return 0; | ||
26166 | } | ||
26167 | _ACEOF | ||
26168 | if ac_fn_c_try_link "$LINENO"; then : | ||
26169 | ac_cv_lib_nsl_gethostbyname=yes | ||
26170 | else | ||
26171 | ac_cv_lib_nsl_gethostbyname=no | ||
26172 | fi | ||
26173 | rm -f core conftest.err conftest.$ac_objext \ | ||
26174 | conftest$ac_exeext conftest.$ac_ext | ||
26175 | LIBS=$ac_check_lib_save_LIBS | ||
26176 | fi | ||
26177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
26178 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
26179 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
26180 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
26181 | fi | ||
26182 | |||
26183 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
26184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
26185 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
26186 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
26187 | $as_echo_n "(cached) " >&6 | ||
26188 | else | ||
26189 | ac_check_lib_save_LIBS=$LIBS | ||
26190 | LIBS="-lbsd $LIBS" | ||
26191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26192 | /* end confdefs.h. */ | ||
26193 | |||
26194 | /* Override any GCC internal prototype to avoid an error. | ||
26195 | Use char because int might match the return type of a GCC | ||
26196 | builtin and then its argument prototype would still apply. */ | ||
26197 | #ifdef __cplusplus | ||
26198 | extern "C" | ||
26199 | #endif | ||
26200 | char gethostbyname (); | ||
26201 | int | ||
26202 | main () | ||
26203 | { | ||
26204 | return gethostbyname (); | ||
26205 | ; | ||
26206 | return 0; | ||
26207 | } | ||
26208 | _ACEOF | ||
26209 | if ac_fn_c_try_link "$LINENO"; then : | ||
26210 | ac_cv_lib_bsd_gethostbyname=yes | ||
26211 | else | ||
26212 | ac_cv_lib_bsd_gethostbyname=no | ||
26213 | fi | ||
26214 | rm -f core conftest.err conftest.$ac_objext \ | ||
26215 | conftest$ac_exeext conftest.$ac_ext | ||
26216 | LIBS=$ac_check_lib_save_LIBS | ||
26217 | fi | ||
26218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
26219 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
26220 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
26221 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
26222 | fi | ||
26223 | |||
26224 | fi | ||
26225 | fi | ||
26226 | |||
26227 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
26228 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
26229 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
26230 | # on later versions), says Simon Leinen: it contains gethostby* | ||
26231 | # variants that don't use the name server (or something). -lsocket | ||
26232 | # must be given before -lnsl if both are needed. We assume that | ||
26233 | # if connect needs -lnsl, so does gethostbyname. | ||
26234 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
26235 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
26236 | |||
26237 | fi | ||
26238 | |||
26239 | if test $ac_cv_func_connect = no; then | ||
26240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
26241 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
26242 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
26243 | $as_echo_n "(cached) " >&6 | ||
26244 | else | ||
26245 | ac_check_lib_save_LIBS=$LIBS | ||
26246 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
26247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26248 | /* end confdefs.h. */ | ||
26249 | |||
26250 | /* Override any GCC internal prototype to avoid an error. | ||
26251 | Use char because int might match the return type of a GCC | ||
26252 | builtin and then its argument prototype would still apply. */ | ||
26253 | #ifdef __cplusplus | ||
26254 | extern "C" | ||
26255 | #endif | ||
26256 | char connect (); | ||
26257 | int | ||
26258 | main () | ||
26259 | { | ||
26260 | return connect (); | ||
26261 | ; | ||
26262 | return 0; | ||
26263 | } | ||
26264 | _ACEOF | ||
26265 | if ac_fn_c_try_link "$LINENO"; then : | ||
26266 | ac_cv_lib_socket_connect=yes | ||
26267 | else | ||
26268 | ac_cv_lib_socket_connect=no | ||
26269 | fi | ||
26270 | rm -f core conftest.err conftest.$ac_objext \ | ||
26271 | conftest$ac_exeext conftest.$ac_ext | ||
26272 | LIBS=$ac_check_lib_save_LIBS | ||
26273 | fi | ||
26274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
26275 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
26276 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
26277 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
26278 | fi | ||
26279 | |||
26280 | fi | ||
26281 | |||
26282 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
26283 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
26284 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
26285 | |||
26286 | fi | ||
26287 | |||
26288 | if test $ac_cv_func_remove = no; then | ||
26289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
26290 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
26291 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
26292 | $as_echo_n "(cached) " >&6 | ||
26293 | else | ||
26294 | ac_check_lib_save_LIBS=$LIBS | ||
26295 | LIBS="-lposix $LIBS" | ||
26296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26297 | /* end confdefs.h. */ | ||
26298 | |||
26299 | /* Override any GCC internal prototype to avoid an error. | ||
26300 | Use char because int might match the return type of a GCC | ||
26301 | builtin and then its argument prototype would still apply. */ | ||
26302 | #ifdef __cplusplus | ||
26303 | extern "C" | ||
26304 | #endif | ||
26305 | char remove (); | ||
26306 | int | ||
26307 | main () | ||
26308 | { | ||
26309 | return remove (); | ||
26310 | ; | ||
26311 | return 0; | ||
26312 | } | ||
26313 | _ACEOF | ||
26314 | if ac_fn_c_try_link "$LINENO"; then : | ||
26315 | ac_cv_lib_posix_remove=yes | ||
26316 | else | ||
26317 | ac_cv_lib_posix_remove=no | ||
26318 | fi | ||
26319 | rm -f core conftest.err conftest.$ac_objext \ | ||
26320 | conftest$ac_exeext conftest.$ac_ext | ||
26321 | LIBS=$ac_check_lib_save_LIBS | ||
26322 | fi | ||
26323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
26324 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
26325 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
26326 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
26327 | fi | ||
26328 | |||
26329 | fi | ||
26330 | |||
26331 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
26332 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
26333 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
26334 | |||
26335 | fi | ||
26336 | |||
26337 | if test $ac_cv_func_shmat = no; then | ||
26338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
26339 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
26340 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
26341 | $as_echo_n "(cached) " >&6 | ||
26342 | else | ||
26343 | ac_check_lib_save_LIBS=$LIBS | ||
26344 | LIBS="-lipc $LIBS" | ||
26345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26346 | /* end confdefs.h. */ | ||
26347 | |||
26348 | /* Override any GCC internal prototype to avoid an error. | ||
26349 | Use char because int might match the return type of a GCC | ||
26350 | builtin and then its argument prototype would still apply. */ | ||
26351 | #ifdef __cplusplus | ||
26352 | extern "C" | ||
26353 | #endif | ||
26354 | char shmat (); | ||
26355 | int | ||
26356 | main () | ||
26357 | { | ||
26358 | return shmat (); | ||
26359 | ; | ||
26360 | return 0; | ||
26361 | } | ||
26362 | _ACEOF | ||
26363 | if ac_fn_c_try_link "$LINENO"; then : | ||
26364 | ac_cv_lib_ipc_shmat=yes | ||
26365 | else | ||
26366 | ac_cv_lib_ipc_shmat=no | ||
26367 | fi | ||
26368 | rm -f core conftest.err conftest.$ac_objext \ | ||
26369 | conftest$ac_exeext conftest.$ac_ext | ||
26370 | LIBS=$ac_check_lib_save_LIBS | ||
26371 | fi | ||
26372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
26373 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
26374 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
26375 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
26376 | fi | ||
26377 | |||
26378 | fi | ||
26379 | fi | ||
26380 | |||
26381 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
26382 | ac_save_LDFLAGS=$LDFLAGS | ||
26383 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
26384 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
26385 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
26386 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
26387 | # These have to be linked with before -lX11, unlike the other | ||
26388 | # libraries we check for below, so use a different variable. | ||
26389 | # John Interrante, Karl Berry | ||
26390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
26391 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
26392 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
26393 | $as_echo_n "(cached) " >&6 | ||
26394 | else | ||
26395 | ac_check_lib_save_LIBS=$LIBS | ||
26396 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
26397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26398 | /* end confdefs.h. */ | ||
26399 | |||
26400 | /* Override any GCC internal prototype to avoid an error. | ||
26401 | Use char because int might match the return type of a GCC | ||
26402 | builtin and then its argument prototype would still apply. */ | ||
26403 | #ifdef __cplusplus | ||
26404 | extern "C" | ||
26405 | #endif | ||
26406 | char IceConnectionNumber (); | ||
26407 | int | ||
26408 | main () | ||
26409 | { | ||
26410 | return IceConnectionNumber (); | ||
26411 | ; | ||
26412 | return 0; | ||
26413 | } | ||
26414 | _ACEOF | ||
26415 | if ac_fn_c_try_link "$LINENO"; then : | ||
26416 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
26417 | else | ||
26418 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
26419 | fi | ||
26420 | rm -f core conftest.err conftest.$ac_objext \ | ||
26421 | conftest$ac_exeext conftest.$ac_ext | ||
26422 | LIBS=$ac_check_lib_save_LIBS | ||
26423 | fi | ||
26424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
26425 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
26426 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
26427 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
26428 | fi | ||
26429 | |||
26430 | LDFLAGS=$ac_save_LDFLAGS | ||
26431 | |||
26432 | fi | ||
26433 | |||
26434 | |||
26435 | ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" " | ||
26436 | #include <GL/gl.h> | ||
26437 | #include <GL/glext.h> | ||
26438 | #include <GL/glx.h> | ||
26439 | #include <X11/Xlib.h> | ||
26440 | #include <X11/Xatom.h> | ||
26441 | #include <X11/Xutil.h> | ||
26442 | #include <X11/extensions/Xrender.h> | ||
26443 | #include <X11/Xresource.h> | ||
26444 | |||
26445 | " | ||
26446 | if test "x$ac_cv_header_GL_gl_h" = x""yes; then : | ||
26447 | have_dep="yes" | ||
26448 | else | ||
26449 | have_dep="no" | ||
26450 | fi | ||
26451 | |||
26452 | |||
26453 | |||
26454 | gl_pt_lib=""; | ||
26455 | have_gl_pt="no" | ||
26456 | |||
26457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5 | ||
26458 | $as_echo_n "checking whether pthread_create() is supported... " >&6; } | ||
26459 | CFLAGS_save="${CFLAGS}" | ||
26460 | CFLAGS="${CFLAGS} -pthread" | ||
26461 | LIBS_save="${LIBS}" | ||
26462 | LIBS="${LIBS} -pthread" | ||
26463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26464 | /* end confdefs.h. */ | ||
26465 | |||
26466 | #include <pthread.h> | ||
26467 | |||
26468 | int | ||
26469 | main () | ||
26470 | { | ||
26471 | |||
26472 | pthread_create(NULL, NULL, NULL, NULL); | ||
26473 | |||
26474 | ; | ||
26475 | return 0; | ||
26476 | } | ||
26477 | _ACEOF | ||
26478 | if ac_fn_c_try_link "$LINENO"; then : | ||
26479 | have_gl_pt="yes" | ||
26480 | else | ||
26481 | have_gl_pt="no" | ||
26482 | fi | ||
26483 | rm -f core conftest.err conftest.$ac_objext \ | ||
26484 | conftest$ac_exeext conftest.$ac_ext | ||
26485 | CFLAGS=${CFLAGS_save} | ||
26486 | LIBS=${LIBS_save} | ||
26487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5 | ||
26488 | $as_echo "${have_gl_pt}" >&6; } | ||
26489 | |||
26490 | if test "x$have_gl_pt" = "xyes" ; then | ||
26491 | gl_pt_lib=" -pthread" | ||
26492 | fi | ||
26493 | |||
26494 | if test "x${have_dep}" = "xyes" ; then | ||
26495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateColormap in -lX11" >&5 | ||
26496 | $as_echo_n "checking for XCreateColormap in -lX11... " >&6; } | ||
26497 | if test "${ac_cv_lib_X11_XCreateColormap+set}" = set; then : | ||
26498 | $as_echo_n "(cached) " >&6 | ||
26499 | else | ||
26500 | ac_check_lib_save_LIBS=$LIBS | ||
26501 | LIBS="-lX11 $LIBS" | ||
26502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26503 | /* end confdefs.h. */ | ||
26504 | |||
26505 | /* Override any GCC internal prototype to avoid an error. | ||
26506 | Use char because int might match the return type of a GCC | ||
26507 | builtin and then its argument prototype would still apply. */ | ||
26508 | #ifdef __cplusplus | ||
26509 | extern "C" | ||
26510 | #endif | ||
26511 | char XCreateColormap (); | ||
26512 | int | ||
26513 | main () | ||
26514 | { | ||
26515 | return XCreateColormap (); | ||
26516 | ; | ||
26517 | return 0; | ||
26518 | } | ||
26519 | _ACEOF | ||
26520 | if ac_fn_c_try_link "$LINENO"; then : | ||
26521 | ac_cv_lib_X11_XCreateColormap=yes | ||
26522 | else | ||
26523 | ac_cv_lib_X11_XCreateColormap=no | ||
26524 | fi | ||
26525 | rm -f core conftest.err conftest.$ac_objext \ | ||
26526 | conftest$ac_exeext conftest.$ac_ext | ||
26527 | LIBS=$ac_check_lib_save_LIBS | ||
26528 | fi | ||
26529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateColormap" >&5 | ||
26530 | $as_echo "$ac_cv_lib_X11_XCreateColormap" >&6; } | ||
26531 | if test "x$ac_cv_lib_X11_XCreateColormap" = x""yes; then : | ||
26532 | have_dep="yes" | ||
26533 | else | ||
26534 | have_dep="no" | ||
26535 | fi | ||
26536 | |||
26537 | fi | ||
26538 | |||
26539 | if test "x${have_dep}" = "xyes" ; then | ||
26540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreatePicture in -lXrender" >&5 | ||
26541 | $as_echo_n "checking for XRenderCreatePicture in -lXrender... " >&6; } | ||
26542 | if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then : | ||
26543 | $as_echo_n "(cached) " >&6 | ||
26544 | else | ||
26545 | ac_check_lib_save_LIBS=$LIBS | ||
26546 | LIBS="-lXrender $LIBS" | ||
26547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26548 | /* end confdefs.h. */ | ||
26549 | |||
26550 | /* Override any GCC internal prototype to avoid an error. | ||
26551 | Use char because int might match the return type of a GCC | ||
26552 | builtin and then its argument prototype would still apply. */ | ||
26553 | #ifdef __cplusplus | ||
26554 | extern "C" | ||
26555 | #endif | ||
26556 | char XRenderCreatePicture (); | ||
26557 | int | ||
26558 | main () | ||
26559 | { | ||
26560 | return XRenderCreatePicture (); | ||
26561 | ; | ||
26562 | return 0; | ||
26563 | } | ||
26564 | _ACEOF | ||
26565 | if ac_fn_c_try_link "$LINENO"; then : | ||
26566 | ac_cv_lib_Xrender_XRenderCreatePicture=yes | ||
26567 | else | ||
26568 | ac_cv_lib_Xrender_XRenderCreatePicture=no | ||
26569 | fi | ||
26570 | rm -f core conftest.err conftest.$ac_objext \ | ||
26571 | conftest$ac_exeext conftest.$ac_ext | ||
26572 | LIBS=$ac_check_lib_save_LIBS | ||
26573 | fi | ||
26574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5 | ||
26575 | $as_echo "$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; } | ||
26576 | if test "x$ac_cv_lib_Xrender_XRenderCreatePicture" = x""yes; then : | ||
26577 | have_dep="yes" | ||
26578 | else | ||
26579 | have_dep="no" | ||
26580 | fi | ||
26581 | |||
26582 | fi | ||
26583 | |||
26584 | if test "x${have_dep}" = "xyes" ; then | ||
26585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5 | ||
26586 | $as_echo_n "checking for glXCreateContext in -lGL... " >&6; } | ||
26587 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then : | ||
26588 | $as_echo_n "(cached) " >&6 | ||
26589 | else | ||
26590 | ac_check_lib_save_LIBS=$LIBS | ||
26591 | LIBS="-lGL -lX11 -lXext -lXrender -lm $gl_pt_lib $LIBS" | ||
26592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26593 | /* end confdefs.h. */ | ||
26594 | |||
26595 | /* Override any GCC internal prototype to avoid an error. | ||
26596 | Use char because int might match the return type of a GCC | ||
26597 | builtin and then its argument prototype would still apply. */ | ||
26598 | #ifdef __cplusplus | ||
26599 | extern "C" | ||
26600 | #endif | ||
26601 | char glXCreateContext (); | ||
26602 | int | ||
26603 | main () | ||
26604 | { | ||
26605 | return glXCreateContext (); | ||
26606 | ; | ||
26607 | return 0; | ||
26608 | } | ||
26609 | _ACEOF | ||
26610 | if ac_fn_c_try_link "$LINENO"; then : | ||
26611 | ac_cv_lib_GL_glXCreateContext=yes | ||
26612 | else | ||
26613 | ac_cv_lib_GL_glXCreateContext=no | ||
26614 | fi | ||
26615 | rm -f core conftest.err conftest.$ac_objext \ | ||
26616 | conftest$ac_exeext conftest.$ac_ext | ||
26617 | LIBS=$ac_check_lib_save_LIBS | ||
26618 | fi | ||
26619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5 | ||
26620 | $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; } | ||
26621 | if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then : | ||
26622 | have_dep="yes" | ||
26623 | else | ||
26624 | have_dep="no" | ||
26625 | fi | ||
26626 | |||
26627 | fi | ||
26628 | |||
26629 | if test "x$gl_flavor_gles" = "xyes" ; then | ||
26630 | have_dep=no | ||
26631 | fi | ||
26632 | |||
26633 | if test "x${have_dep}" = "xyes" ; then | ||
26634 | |||
26635 | pkg_failed=no | ||
26636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
26637 | $as_echo_n "checking for GL_EET... " >&6; } | ||
26638 | |||
26639 | if test -n "$GL_EET_CFLAGS"; then | ||
26640 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
26641 | elif test -n "$PKG_CONFIG"; then | ||
26642 | if test -n "$PKG_CONFIG" && \ | ||
26643 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
26644 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
26645 | ac_status=$? | ||
26646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26647 | test $ac_status = 0; }; then | ||
26648 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null` | ||
26649 | else | ||
26650 | pkg_failed=yes | ||
26651 | fi | ||
26652 | else | ||
26653 | pkg_failed=untried | ||
26654 | fi | ||
26655 | if test -n "$GL_EET_LIBS"; then | ||
26656 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
26657 | elif test -n "$PKG_CONFIG"; then | ||
26658 | if test -n "$PKG_CONFIG" && \ | ||
26659 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
26660 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
26661 | ac_status=$? | ||
26662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26663 | test $ac_status = 0; }; then | ||
26664 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null` | ||
26665 | else | ||
26666 | pkg_failed=yes | ||
26667 | fi | ||
26668 | else | ||
26669 | pkg_failed=untried | ||
26670 | fi | ||
26671 | |||
26672 | |||
26673 | |||
26674 | if test $pkg_failed = yes; then | ||
26675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26676 | $as_echo "no" >&6; } | ||
26677 | |||
26678 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
26679 | _pkg_short_errors_supported=yes | ||
26680 | else | ||
26681 | _pkg_short_errors_supported=no | ||
26682 | fi | ||
26683 | if test $_pkg_short_errors_supported = yes; then | ||
26684 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1` | ||
26685 | else | ||
26686 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1` | ||
26687 | fi | ||
26688 | # Put the nasty error message in config.log where it belongs | ||
26689 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
26690 | |||
26691 | have_dep="no" | ||
26692 | elif test $pkg_failed = untried; then | ||
26693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26694 | $as_echo "no" >&6; } | ||
26695 | have_dep="no" | ||
26696 | else | ||
26697 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
26698 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
26699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26700 | $as_echo "yes" >&6; } | ||
26701 | have_dep="yes" | ||
26702 | fi | ||
26703 | if test "x${have_dep}" = "xyes" ; then | ||
26704 | if test "xno" = "xyes" ; then | ||
26705 | x_libs="${x_libs} -lX11 -lXext -lXrender" | ||
26706 | else | ||
26707 | x_dir=${x_dir:-/usr/X11R6} | ||
26708 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
26709 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" | ||
26710 | fi | ||
26711 | evas_engine_gl_xlib_cflags="-I/usr/include ${x_cflags}" | ||
26712 | evas_engine_gl_xlib_libs="${x_libs} -lGL $gl_pt_lib" | ||
26713 | evas_engine_gl_common_libs="-lGL $gl_pt_lib" | ||
26714 | fi | ||
26715 | else | ||
26716 | if test "xno" = "xyes" ; then | ||
26717 | x_libs="${x_libs} -lX11 -lXext -lXrender" | ||
26718 | else | ||
26719 | x_dir=${x_dir:-/usr/X11R6} | ||
26720 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
26721 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" | ||
26722 | fi | ||
26723 | ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" " | ||
26724 | #include <GLES2/gl2.h> | ||
26725 | #include <GLES2/gl2ext.h> | ||
26726 | #include <EGL/egl.h> | ||
26727 | #include <X11/Xlib.h> | ||
26728 | #include <X11/Xatom.h> | ||
26729 | #include <X11/Xutil.h> | ||
26730 | #include <X11/extensions/Xrender.h> | ||
26731 | #include <X11/Xresource.h> | ||
26732 | |||
26733 | " | ||
26734 | if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then : | ||
26735 | have_egl="yes" | ||
26736 | else | ||
26737 | have_egl="no" | ||
26738 | fi | ||
26739 | |||
26740 | |||
26741 | if test "x${have_egl}" = "xyes" ; then | ||
26742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5 | ||
26743 | $as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; } | ||
26744 | if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then : | ||
26745 | $as_echo_n "(cached) " >&6 | ||
26746 | else | ||
26747 | ac_check_lib_save_LIBS=$LIBS | ||
26748 | LIBS="-lGLESv2 -lEGL ${x_libs} -lm $gl_pt_lib $LIBS" | ||
26749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26750 | /* end confdefs.h. */ | ||
26751 | |||
26752 | /* Override any GCC internal prototype to avoid an error. | ||
26753 | Use char because int might match the return type of a GCC | ||
26754 | builtin and then its argument prototype would still apply. */ | ||
26755 | #ifdef __cplusplus | ||
26756 | extern "C" | ||
26757 | #endif | ||
26758 | char glTexImage2D (); | ||
26759 | int | ||
26760 | main () | ||
26761 | { | ||
26762 | return glTexImage2D (); | ||
26763 | ; | ||
26764 | return 0; | ||
26765 | } | ||
26766 | _ACEOF | ||
26767 | if ac_fn_c_try_link "$LINENO"; then : | ||
26768 | ac_cv_lib_GLESv2_glTexImage2D=yes | ||
26769 | else | ||
26770 | ac_cv_lib_GLESv2_glTexImage2D=no | ||
26771 | fi | ||
26772 | rm -f core conftest.err conftest.$ac_objext \ | ||
26773 | conftest$ac_exeext conftest.$ac_ext | ||
26774 | LIBS=$ac_check_lib_save_LIBS | ||
26775 | fi | ||
26776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5 | ||
26777 | $as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; } | ||
26778 | if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then : | ||
26779 | have_glesv2="yes" | ||
26780 | fi | ||
26781 | |||
26782 | if test "x${have_glesv2}" = "xyes" ; then | ||
26783 | |||
26784 | pkg_failed=no | ||
26785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
26786 | $as_echo_n "checking for GL_EET... " >&6; } | ||
26787 | |||
26788 | if test -n "$GL_EET_CFLAGS"; then | ||
26789 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
26790 | elif test -n "$PKG_CONFIG"; then | ||
26791 | if test -n "$PKG_CONFIG" && \ | ||
26792 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
26793 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
26794 | ac_status=$? | ||
26795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26796 | test $ac_status = 0; }; then | ||
26797 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null` | ||
26798 | else | ||
26799 | pkg_failed=yes | ||
26800 | fi | ||
26801 | else | ||
26802 | pkg_failed=untried | ||
26803 | fi | ||
26804 | if test -n "$GL_EET_LIBS"; then | ||
26805 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
26806 | elif test -n "$PKG_CONFIG"; then | ||
26807 | if test -n "$PKG_CONFIG" && \ | ||
26808 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
26809 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
26810 | ac_status=$? | ||
26811 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26812 | test $ac_status = 0; }; then | ||
26813 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null` | ||
26814 | else | ||
26815 | pkg_failed=yes | ||
26816 | fi | ||
26817 | else | ||
26818 | pkg_failed=untried | ||
26819 | fi | ||
26820 | |||
26821 | |||
26822 | |||
26823 | if test $pkg_failed = yes; then | ||
26824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26825 | $as_echo "no" >&6; } | ||
26826 | |||
26827 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
26828 | _pkg_short_errors_supported=yes | ||
26829 | else | ||
26830 | _pkg_short_errors_supported=no | ||
26831 | fi | ||
26832 | if test $_pkg_short_errors_supported = yes; then | ||
26833 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1` | ||
26834 | else | ||
26835 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1` | ||
26836 | fi | ||
26837 | # Put the nasty error message in config.log where it belongs | ||
26838 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
26839 | |||
26840 | have_dep="no" | ||
26841 | elif test $pkg_failed = untried; then | ||
26842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26843 | $as_echo "no" >&6; } | ||
26844 | have_dep="no" | ||
26845 | else | ||
26846 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
26847 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
26848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26849 | $as_echo "yes" >&6; } | ||
26850 | have_dep="yes" | ||
26851 | fi | ||
26852 | if test "x${have_dep}" = "xyes" ; then | ||
26853 | evas_engine_gl_xlib_cflags="${x_cflags}" | ||
26854 | evas_engine_gl_xlib_libs="${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib" | ||
26855 | evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib" | ||
26856 | have_dep="yes" | ||
26857 | gl_flavor_gles="no" | ||
26858 | |||
26859 | $as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h | ||
26860 | |||
26861 | gles_variety_sgx="yes" | ||
26862 | fi | ||
26863 | fi | ||
26864 | fi | ||
26865 | fi | ||
26866 | |||
26867 | |||
26868 | |||
26869 | |||
26870 | |||
26871 | if test "x${have_dep}" = "xyes" ; then | ||
26872 | have_engine="yes" | ||
26873 | else | ||
26874 | have_engine="no" | ||
26875 | fi | ||
26876 | |||
26877 | |||
26878 | fi | ||
26879 | |||
26880 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
26881 | as_fn_error $? "OpenGL XLib dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
26882 | fi | ||
26883 | |||
26884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL XLib rendering backend will be built" >&5 | ||
26885 | $as_echo_n "checking whether OpenGL XLib rendering backend will be built... " >&6; } | ||
26886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
26887 | $as_echo "${have_engine}" >&6; } | ||
26888 | |||
26889 | if test "x${have_engine}" = "xyes" ; then | ||
26890 | if test "x${want_engine}" = "xstatic" ; then | ||
26891 | have_evas_engine_gl_xlib="static" | ||
26892 | want_static_engine="yes" | ||
26893 | else | ||
26894 | have_evas_engine_gl_xlib="yes" | ||
26895 | fi | ||
26896 | fi | ||
26897 | |||
26898 | if test "x${have_engine}" = "xyes" ; then | ||
26899 | |||
26900 | $as_echo "#define BUILD_ENGINE_GL_XLIB 1" >>confdefs.h | ||
26901 | |||
26902 | fi | ||
26903 | |||
26904 | if test "x${have_engine}" = "xyes"; then | ||
26905 | BUILD_ENGINE_GL_XLIB_TRUE= | ||
26906 | BUILD_ENGINE_GL_XLIB_FALSE='#' | ||
26907 | else | ||
26908 | BUILD_ENGINE_GL_XLIB_TRUE='#' | ||
26909 | BUILD_ENGINE_GL_XLIB_FALSE= | ||
26910 | fi | ||
26911 | |||
26912 | |||
26913 | if test "x${want_static_engine}" = "xyes" ; then | ||
26914 | |||
26915 | $as_echo "#define EVAS_STATIC_BUILD_GL_XLIB 1" >>confdefs.h | ||
26916 | |||
26917 | have_static_module="yes" | ||
26918 | fi | ||
26919 | |||
26920 | if test "x${want_static_engine}" = "xyes"; then | ||
26921 | EVAS_STATIC_BUILD_GL_XLIB_TRUE= | ||
26922 | EVAS_STATIC_BUILD_GL_XLIB_FALSE='#' | ||
26923 | else | ||
26924 | EVAS_STATIC_BUILD_GL_XLIB_TRUE='#' | ||
26925 | EVAS_STATIC_BUILD_GL_XLIB_FALSE= | ||
26926 | fi | ||
26927 | |||
26928 | |||
26929 | |||
26930 | |||
26931 | |||
26932 | |||
26933 | if test "x$have_evas_engine_gl_xlib" != "xno" ; then | ||
26934 | have_evas_engine_gl_x11="yes" | ||
26935 | |||
26936 | cat >>confdefs.h <<_ACEOF | ||
26937 | #define BUILD_ENGINE_GL_X11 1 | ||
26938 | _ACEOF | ||
26939 | |||
26940 | |||
26941 | cat >>confdefs.h <<_ACEOF | ||
26942 | #define BUILD_ENGINE_GL_XLIB 1 | ||
26943 | _ACEOF | ||
26944 | |||
26945 | if test "x$have_evas_engine_gl_xlib" = "xstatic" ; then | ||
26946 | |||
26947 | cat >>confdefs.h <<_ACEOF | ||
26948 | #define EVAS_STATIC_BUILD_GL_X11 1 | ||
26949 | _ACEOF | ||
26950 | |||
26951 | fi | ||
26952 | fi | ||
26953 | else | ||
26954 | have_evas_engine_gl_xlib="no" | ||
26955 | fi | ||
26956 | |||
26957 | |||
26958 | if test "x${have_evas_engine_gl_xlib}" != "xno"; then | ||
26959 | BUILD_ENGINE_GL_XLIB_TRUE= | ||
26960 | BUILD_ENGINE_GL_XLIB_FALSE='#' | ||
26961 | else | ||
26962 | BUILD_ENGINE_GL_XLIB_TRUE='#' | ||
26963 | BUILD_ENGINE_GL_XLIB_FALSE= | ||
26964 | fi | ||
26965 | |||
26966 | if test "x${have_evas_engine_gl_xcb}" != "xno"; then | ||
26967 | BUILD_ENGINE_GL_XCB_TRUE= | ||
26968 | BUILD_ENGINE_GL_XCB_FALSE='#' | ||
26969 | else | ||
26970 | BUILD_ENGINE_GL_XCB_TRUE='#' | ||
26971 | BUILD_ENGINE_GL_XCB_FALSE= | ||
26972 | fi | ||
26973 | |||
26974 | if test "x${have_evas_engine_gl_x11}" != "xno"; then | ||
26975 | BUILD_ENGINE_GL_X11_TRUE= | ||
26976 | BUILD_ENGINE_GL_X11_FALSE='#' | ||
26977 | else | ||
26978 | BUILD_ENGINE_GL_X11_TRUE='#' | ||
26979 | BUILD_ENGINE_GL_X11_FALSE= | ||
26980 | fi | ||
26981 | |||
26982 | |||
26983 | if test "x${have_evas_engine_gl_xcb}" = "xstatic" -o "x${have_evas_engine_gl_xlib}" = "xstatic"; then | ||
26984 | EVAS_STATIC_BUILD_GL_X11_TRUE= | ||
26985 | EVAS_STATIC_BUILD_GL_X11_FALSE='#' | ||
26986 | else | ||
26987 | EVAS_STATIC_BUILD_GL_X11_TRUE='#' | ||
26988 | EVAS_STATIC_BUILD_GL_X11_FALSE= | ||
26989 | fi | ||
26990 | |||
26991 | if test "x${have_evas_engine_gl_xlib}" = "xstatic"; then | ||
26992 | EVAS_STATIC_BUILD_GL_XLIB_TRUE= | ||
26993 | EVAS_STATIC_BUILD_GL_XLIB_FALSE='#' | ||
26994 | else | ||
26995 | EVAS_STATIC_BUILD_GL_XLIB_TRUE='#' | ||
26996 | EVAS_STATIC_BUILD_GL_XLIB_FALSE= | ||
26997 | fi | ||
26998 | |||
26999 | if test "x${have_evas_engine_gl_xcb}" = "xstatic"; then | ||
27000 | EVAS_STATIC_BUILD_GL_XCB_TRUE= | ||
27001 | EVAS_STATIC_BUILD_GL_XCB_FALSE='#' | ||
27002 | else | ||
27003 | EVAS_STATIC_BUILD_GL_XCB_TRUE='#' | ||
27004 | EVAS_STATIC_BUILD_GL_XCB_FALSE= | ||
27005 | fi | ||
27006 | |||
27007 | |||
27008 | |||
27009 | |||
27010 | # common gl | ||
27011 | have_evas_engine_gl_common="no" | ||
27012 | have_static_evas_engine_gl_common="no" | ||
27013 | if test "x$have_evas_engine_gl_xlib" = "xyes" \ | ||
27014 | || test "x$have_evas_engine_gl_xcb" = "xyes" \ | ||
27015 | || test "x$have_evas_engine_gl_sdl" = "xyes" \ | ||
27016 | || test "x$have_evas_engine_gl_cocoa" = "xyes"; then | ||
27017 | have_evas_engine_gl_common="yes" | ||
27018 | fi | ||
27019 | if test "x$have_evas_engine_gl_xlib" = "xstatic" \ | ||
27020 | || test "x$have_evas_engine_gl_xcb" = "xstatic" \ | ||
27021 | || test "x$have_evas_engine_gl_sdl" = "xstatic" \ | ||
27022 | || test "x$have_evas_engine_gl_cocoa" = "xstatic"; then | ||
27023 | have_evas_engine_gl_common="yes" | ||
27024 | have_static_evas_engine_gl_common="yes" | ||
27025 | fi | ||
27026 | |||
27027 | if test "x$have_evas_engine_gl_common" = "xyes"; then | ||
27028 | evas_engine_gl_common_libs="" | ||
27029 | |||
27030 | $as_echo "#define BUILD_ENGINE_GL_COMMON 1" >>confdefs.h | ||
27031 | |||
27032 | fi | ||
27033 | |||
27034 | |||
27035 | |||
27036 | if test "x$have_evas_engine_gl_common" = "xyes"; then | ||
27037 | BUILD_ENGINE_GL_COMMON_TRUE= | ||
27038 | BUILD_ENGINE_GL_COMMON_FALSE='#' | ||
27039 | else | ||
27040 | BUILD_ENGINE_GL_COMMON_TRUE='#' | ||
27041 | BUILD_ENGINE_GL_COMMON_FALSE= | ||
27042 | fi | ||
27043 | |||
27044 | |||
27045 | if test "x${have_static_evas_engine_gl_common}" = "xyes"; then | ||
27046 | EVAS_STATIC_BUILD_GL_COMMON_TRUE= | ||
27047 | EVAS_STATIC_BUILD_GL_COMMON_FALSE='#' | ||
27048 | else | ||
27049 | EVAS_STATIC_BUILD_GL_COMMON_TRUE='#' | ||
27050 | EVAS_STATIC_BUILD_GL_COMMON_FALSE= | ||
27051 | fi | ||
27052 | |||
27053 | if test "x${have_static_evas_engine_gl_common}" = "xyes"; then | ||
27054 | |||
27055 | $as_echo "#define EVAS_STATIC_BUILD_GL_COMMON 1" >>confdefs.h | ||
27056 | |||
27057 | fi | ||
27058 | |||
27059 | # gl_sdl | ||
27060 | if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then | ||
27061 | ac_fn_c_check_decl "$LINENO" "SDL_GL_CONTEXT_MAJOR_VERSION" "ac_cv_have_decl_SDL_GL_CONTEXT_MAJOR_VERSION" "#include <SDL/SDL_video.h> | ||
27062 | " | ||
27063 | if test "x$ac_cv_have_decl_SDL_GL_CONTEXT_MAJOR_VERSION" = x""yes; then : | ||
27064 | |||
27065 | $as_echo "#define HAVE_SDL_GL_CONTEXT_VERSION 1" >>confdefs.h | ||
27066 | |||
27067 | fi | ||
27068 | |||
27069 | fi | ||
27070 | |||
27071 | if test "x$gl_flavor_gles" = "xyes"; then | ||
27072 | ac_fn_c_check_decl "$LINENO" "SDL_OPENGLES" "ac_cv_have_decl_SDL_OPENGLES" "#include <SDL/SDL_video.h> | ||
27073 | " | ||
27074 | if test "x$ac_cv_have_decl_SDL_OPENGLES" = x""yes; then : | ||
27075 | |||
27076 | $as_echo "#define HAVE_SDL_FLAG_OPENGLES 1" >>confdefs.h | ||
27077 | |||
27078 | fi | ||
27079 | |||
27080 | fi | ||
27081 | |||
27082 | # if software 16 x11 is enabled - build software_16 (the generic 16bit | ||
27083 | # engine). later enable it fb_16 or other "16" bit engines are enabled. | ||
27084 | have_evas_engine_software_16="no" | ||
27085 | if test "x$have_evas_engine_software_16_x11" = "xyes" -o "x$have_evas_engine_software_16_x11" = "xstatic"; then | ||
27086 | have_evas_engine_software_16="yes" | ||
27087 | fi | ||
27088 | if test "x$have_evas_engine_software_16_sdl" = "xyes" -o "x$have_evas_engine_software_16_sdl" = "xstatic"; then | ||
27089 | have_evas_engine_software_16="yes" | ||
27090 | fi | ||
27091 | if test "x$have_evas_engine_software_16_ddraw" = "xyes" -o "x$have_evas_engine_software_16_ddraw" = "xstatic"; then | ||
27092 | have_evas_engine_software_16="yes" | ||
27093 | fi | ||
27094 | if test "x$have_evas_engine_software_16_wince" = "xyes" -o "x$have_evas_engine_software_16_wince" = "xstatic"; then | ||
27095 | have_evas_engine_software_16="yes" | ||
27096 | fi | ||
27097 | if test "x$have_evas_engine_software_16" = "xyes"; then | ||
27098 | BUILD_ENGINE_SOFTWARE_16_TRUE= | ||
27099 | BUILD_ENGINE_SOFTWARE_16_FALSE='#' | ||
27100 | else | ||
27101 | BUILD_ENGINE_SOFTWARE_16_TRUE='#' | ||
27102 | BUILD_ENGINE_SOFTWARE_16_FALSE= | ||
27103 | fi | ||
27104 | |||
27105 | |||
27106 | # if software 16 need to be build as part of libevas.so | ||
27107 | have_static_software_16="no" | ||
27108 | # Check whether --enable-static-software-16 was given. | ||
27109 | if test "${enable_static_software_16+set}" = set; then : | ||
27110 | enableval=$enable_static_software_16; have_static_software_16=${enableval} | ||
27111 | |||
27112 | fi | ||
27113 | |||
27114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software 16 engine as part of libevas" >&5 | ||
27115 | $as_echo_n "checking Whether to build software 16 engine as part of libevas... " >&6; } | ||
27116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_16}" >&5 | ||
27117 | $as_echo "${have_static_software_16}" >&6; } | ||
27118 | |||
27119 | if test "x${have_static_software_16}" = "xyes"; then | ||
27120 | EVAS_STATIC_BUILD_SOFTWARE_16_TRUE= | ||
27121 | EVAS_STATIC_BUILD_SOFTWARE_16_FALSE='#' | ||
27122 | else | ||
27123 | EVAS_STATIC_BUILD_SOFTWARE_16_TRUE='#' | ||
27124 | EVAS_STATIC_BUILD_SOFTWARE_16_FALSE= | ||
27125 | fi | ||
27126 | |||
27127 | if test "x${have_static_software_16}" = "xyes"; then | ||
27128 | |||
27129 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16 1" >>confdefs.h | ||
27130 | |||
27131 | fi | ||
27132 | |||
27133 | # if software 8 x11 is enabled - build software_8 (the generic 8bit | ||
27134 | # engine). | ||
27135 | have_evas_engine_software_8="no" | ||
27136 | if test "x$have_evas_engine_software_8_x11" = "xyes" -o "x$have_evas_engine_software_8_x11" = "xstatic"; then | ||
27137 | have_evas_engine_software_8="yes" | ||
27138 | fi | ||
27139 | if test "x$have_evas_engine_software_8" = "xyes"; then | ||
27140 | BUILD_ENGINE_SOFTWARE_8_TRUE= | ||
27141 | BUILD_ENGINE_SOFTWARE_8_FALSE='#' | ||
27142 | else | ||
27143 | BUILD_ENGINE_SOFTWARE_8_TRUE='#' | ||
27144 | BUILD_ENGINE_SOFTWARE_8_FALSE= | ||
27145 | fi | ||
27146 | |||
27147 | |||
27148 | # if software 8 need to be build as part of libevas.so | ||
27149 | have_static_software_8="no" | ||
27150 | # Check whether --enable-static-software-8 was given. | ||
27151 | if test "${enable_static_software_8+set}" = set; then : | ||
27152 | enableval=$enable_static_software_8; have_static_software_8=${enableval} | ||
27153 | |||
27154 | fi | ||
27155 | |||
27156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software 8 engine as part of libevas" >&5 | ||
27157 | $as_echo_n "checking Whether to build software 8 engine as part of libevas... " >&6; } | ||
27158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_8}" >&5 | ||
27159 | $as_echo "${have_static_software_8}" >&6; } | ||
27160 | |||
27161 | if test "x${have_static_software_8}" = "xyes"; then | ||
27162 | EVAS_STATIC_BUILD_SOFTWARE_8_TRUE= | ||
27163 | EVAS_STATIC_BUILD_SOFTWARE_8_FALSE='#' | ||
27164 | else | ||
27165 | EVAS_STATIC_BUILD_SOFTWARE_8_TRUE='#' | ||
27166 | EVAS_STATIC_BUILD_SOFTWARE_8_FALSE= | ||
27167 | fi | ||
27168 | |||
27169 | if test "x${have_static_software_8}" = "xyes"; then | ||
27170 | |||
27171 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_8 1" >>confdefs.h | ||
27172 | |||
27173 | fi | ||
27174 | |||
27175 | ##################################################################### | ||
27176 | ## Image loaders | ||
27177 | |||
27178 | |||
27179 | |||
27180 | |||
27181 | |||
27182 | |||
27183 | want_loader="${want_evas_image_loader_edb}" | ||
27184 | want_static_loader="no" | ||
27185 | have_loader="no" | ||
27186 | have_evas_image_loader_edb="no" | ||
27187 | |||
27188 | # Check whether --enable-image-loader-edb was given. | ||
27189 | if test "${enable_image_loader_edb+set}" = set; then : | ||
27190 | enableval=$enable_image_loader_edb; | ||
27191 | if test "x${enableval}" = "xyes" ; then | ||
27192 | want_loader="yes" | ||
27193 | else | ||
27194 | if test "x${enableval}" = "xstatic" ; then | ||
27195 | want_loader="static" | ||
27196 | else | ||
27197 | want_loader="no" | ||
27198 | fi | ||
27199 | fi | ||
27200 | |||
27201 | |||
27202 | fi | ||
27203 | |||
27204 | |||
27205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Edb image loader" >&5 | ||
27206 | $as_echo_n "checking whether to enable Edb image loader... " >&6; } | ||
27207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
27208 | $as_echo "${want_loader}" >&6; } | ||
27209 | |||
27210 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
27211 | |||
27212 | |||
27213 | requirement="" | ||
27214 | have_dep="no" | ||
27215 | evas_image_loader_edb_cflags="" | ||
27216 | evas_image_loader_edb_libs="" | ||
27217 | |||
27218 | |||
27219 | pkg_failed=no | ||
27220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDB" >&5 | ||
27221 | $as_echo_n "checking for EDB... " >&6; } | ||
27222 | |||
27223 | if test -n "$EDB_CFLAGS"; then | ||
27224 | pkg_cv_EDB_CFLAGS="$EDB_CFLAGS" | ||
27225 | elif test -n "$PKG_CONFIG"; then | ||
27226 | if test -n "$PKG_CONFIG" && \ | ||
27227 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edb\""; } >&5 | ||
27228 | ($PKG_CONFIG --exists --print-errors "edb") 2>&5 | ||
27229 | ac_status=$? | ||
27230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27231 | test $ac_status = 0; }; then | ||
27232 | pkg_cv_EDB_CFLAGS=`$PKG_CONFIG --cflags "edb" 2>/dev/null` | ||
27233 | else | ||
27234 | pkg_failed=yes | ||
27235 | fi | ||
27236 | else | ||
27237 | pkg_failed=untried | ||
27238 | fi | ||
27239 | if test -n "$EDB_LIBS"; then | ||
27240 | pkg_cv_EDB_LIBS="$EDB_LIBS" | ||
27241 | elif test -n "$PKG_CONFIG"; then | ||
27242 | if test -n "$PKG_CONFIG" && \ | ||
27243 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edb\""; } >&5 | ||
27244 | ($PKG_CONFIG --exists --print-errors "edb") 2>&5 | ||
27245 | ac_status=$? | ||
27246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27247 | test $ac_status = 0; }; then | ||
27248 | pkg_cv_EDB_LIBS=`$PKG_CONFIG --libs "edb" 2>/dev/null` | ||
27249 | else | ||
27250 | pkg_failed=yes | ||
27251 | fi | ||
27252 | else | ||
27253 | pkg_failed=untried | ||
27254 | fi | ||
27255 | |||
27256 | |||
27257 | |||
27258 | if test $pkg_failed = yes; then | ||
27259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27260 | $as_echo "no" >&6; } | ||
27261 | |||
27262 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27263 | _pkg_short_errors_supported=yes | ||
27264 | else | ||
27265 | _pkg_short_errors_supported=no | ||
27266 | fi | ||
27267 | if test $_pkg_short_errors_supported = yes; then | ||
27268 | EDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "edb" 2>&1` | ||
27269 | else | ||
27270 | EDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "edb" 2>&1` | ||
27271 | fi | ||
27272 | # Put the nasty error message in config.log where it belongs | ||
27273 | echo "$EDB_PKG_ERRORS" >&5 | ||
27274 | |||
27275 | have_dep="no" | ||
27276 | elif test $pkg_failed = untried; then | ||
27277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27278 | $as_echo "no" >&6; } | ||
27279 | have_dep="no" | ||
27280 | else | ||
27281 | EDB_CFLAGS=$pkg_cv_EDB_CFLAGS | ||
27282 | EDB_LIBS=$pkg_cv_EDB_LIBS | ||
27283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27284 | $as_echo "yes" >&6; } | ||
27285 | have_dep="yes" requirement="edb" | ||
27286 | fi | ||
27287 | evas_image_loader_edb_cflags="${EDB_CFLAGS}" | ||
27288 | evas_image_loader_edb_libs="${EDB_LIBS}" | ||
27289 | |||
27290 | |||
27291 | |||
27292 | |||
27293 | if test "x${want_loader}" = "xstatic" ; then | ||
27294 | requirement_evas="${requirement} ${requirement_evas}" | ||
27295 | fi | ||
27296 | |||
27297 | if test "x${have_dep}" = "xyes" ; then | ||
27298 | have_loader="yes" | ||
27299 | else | ||
27300 | have_loader="no" | ||
27301 | fi | ||
27302 | |||
27303 | |||
27304 | fi | ||
27305 | |||
27306 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
27307 | as_fn_error $? "Edb dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
27308 | fi | ||
27309 | |||
27310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Edb image loader will be built" >&5 | ||
27311 | $as_echo_n "checking whether Edb image loader will be built... " >&6; } | ||
27312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
27313 | $as_echo "${have_loader}" >&6; } | ||
27314 | |||
27315 | if test "x${have_loader}" = "xyes" ; then | ||
27316 | if test "x${want_loader}" = "xstatic" ; then | ||
27317 | have_evas_image_loader_edb="static" | ||
27318 | want_static_loader="yes" | ||
27319 | else | ||
27320 | have_evas_image_loader_edb="yes" | ||
27321 | fi | ||
27322 | fi | ||
27323 | |||
27324 | if test "x${have_loader}" = "xyes" ; then | ||
27325 | |||
27326 | $as_echo "#define BUILD_LOADER_EDB 1" >>confdefs.h | ||
27327 | |||
27328 | fi | ||
27329 | |||
27330 | if test "x${have_loader}" = "xyes"; then | ||
27331 | BUILD_LOADER_EDB_TRUE= | ||
27332 | BUILD_LOADER_EDB_FALSE='#' | ||
27333 | else | ||
27334 | BUILD_LOADER_EDB_TRUE='#' | ||
27335 | BUILD_LOADER_EDB_FALSE= | ||
27336 | fi | ||
27337 | |||
27338 | |||
27339 | if test "x${want_static_loader}" = "xyes" ; then | ||
27340 | |||
27341 | $as_echo "#define EVAS_STATIC_BUILD_EDB 1" >>confdefs.h | ||
27342 | |||
27343 | have_static_module="yes" | ||
27344 | fi | ||
27345 | |||
27346 | if test "x${want_static_loader}" = "xyes"; then | ||
27347 | EVAS_STATIC_BUILD_EDB_TRUE= | ||
27348 | EVAS_STATIC_BUILD_EDB_FALSE='#' | ||
27349 | else | ||
27350 | EVAS_STATIC_BUILD_EDB_TRUE='#' | ||
27351 | EVAS_STATIC_BUILD_EDB_FALSE= | ||
27352 | fi | ||
27353 | |||
27354 | |||
27355 | |||
27356 | |||
27357 | |||
27358 | |||
27359 | |||
27360 | |||
27361 | |||
27362 | |||
27363 | |||
27364 | |||
27365 | want_loader="${want_evas_image_loader_eet}" | ||
27366 | want_static_loader="no" | ||
27367 | have_loader="no" | ||
27368 | have_evas_image_loader_eet="no" | ||
27369 | |||
27370 | # Check whether --enable-image-loader-eet was given. | ||
27371 | if test "${enable_image_loader_eet+set}" = set; then : | ||
27372 | enableval=$enable_image_loader_eet; | ||
27373 | if test "x${enableval}" = "xyes" ; then | ||
27374 | want_loader="yes" | ||
27375 | else | ||
27376 | if test "x${enableval}" = "xstatic" ; then | ||
27377 | want_loader="static" | ||
27378 | else | ||
27379 | want_loader="no" | ||
27380 | fi | ||
27381 | fi | ||
27382 | |||
27383 | |||
27384 | fi | ||
27385 | |||
27386 | |||
27387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Eet image loader" >&5 | ||
27388 | $as_echo_n "checking whether to enable Eet image loader... " >&6; } | ||
27389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
27390 | $as_echo "${want_loader}" >&6; } | ||
27391 | |||
27392 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
27393 | |||
27394 | |||
27395 | requirement="" | ||
27396 | have_dep="no" | ||
27397 | evas_image_loader_eet_cflags="" | ||
27398 | evas_image_loader_eet_libs="" | ||
27399 | |||
27400 | |||
27401 | pkg_failed=no | ||
27402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EET" >&5 | ||
27403 | $as_echo_n "checking for EET... " >&6; } | ||
27404 | |||
27405 | if test -n "$EET_CFLAGS"; then | ||
27406 | pkg_cv_EET_CFLAGS="$EET_CFLAGS" | ||
27407 | elif test -n "$PKG_CONFIG"; then | ||
27408 | if test -n "$PKG_CONFIG" && \ | ||
27409 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
27410 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
27411 | ac_status=$? | ||
27412 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27413 | test $ac_status = 0; }; then | ||
27414 | pkg_cv_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null` | ||
27415 | else | ||
27416 | pkg_failed=yes | ||
27417 | fi | ||
27418 | else | ||
27419 | pkg_failed=untried | ||
27420 | fi | ||
27421 | if test -n "$EET_LIBS"; then | ||
27422 | pkg_cv_EET_LIBS="$EET_LIBS" | ||
27423 | elif test -n "$PKG_CONFIG"; then | ||
27424 | if test -n "$PKG_CONFIG" && \ | ||
27425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
27426 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
27427 | ac_status=$? | ||
27428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27429 | test $ac_status = 0; }; then | ||
27430 | pkg_cv_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null` | ||
27431 | else | ||
27432 | pkg_failed=yes | ||
27433 | fi | ||
27434 | else | ||
27435 | pkg_failed=untried | ||
27436 | fi | ||
27437 | |||
27438 | |||
27439 | |||
27440 | if test $pkg_failed = yes; then | ||
27441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27442 | $as_echo "no" >&6; } | ||
27443 | |||
27444 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27445 | _pkg_short_errors_supported=yes | ||
27446 | else | ||
27447 | _pkg_short_errors_supported=no | ||
27448 | fi | ||
27449 | if test $_pkg_short_errors_supported = yes; then | ||
27450 | EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1` | ||
27451 | else | ||
27452 | EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1` | ||
27453 | fi | ||
27454 | # Put the nasty error message in config.log where it belongs | ||
27455 | echo "$EET_PKG_ERRORS" >&5 | ||
27456 | |||
27457 | have_dep="no" | ||
27458 | elif test $pkg_failed = untried; then | ||
27459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27460 | $as_echo "no" >&6; } | ||
27461 | have_dep="no" | ||
27462 | else | ||
27463 | EET_CFLAGS=$pkg_cv_EET_CFLAGS | ||
27464 | EET_LIBS=$pkg_cv_EET_LIBS | ||
27465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27466 | $as_echo "yes" >&6; } | ||
27467 | have_dep="yes" requirement="eet >= 1.4.0" | ||
27468 | fi | ||
27469 | evas_image_loader_eet_cflags="${EET_CFLAGS}" | ||
27470 | evas_image_loader_eet_libs="${EET_LIBS}" | ||
27471 | |||
27472 | |||
27473 | |||
27474 | |||
27475 | if test "x${want_loader}" = "xstatic" ; then | ||
27476 | requirement_evas="${requirement} ${requirement_evas}" | ||
27477 | fi | ||
27478 | |||
27479 | if test "x${have_dep}" = "xyes" ; then | ||
27480 | have_loader="yes" | ||
27481 | else | ||
27482 | have_loader="no" | ||
27483 | fi | ||
27484 | |||
27485 | |||
27486 | fi | ||
27487 | |||
27488 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
27489 | as_fn_error $? "Eet dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
27490 | fi | ||
27491 | |||
27492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Eet image loader will be built" >&5 | ||
27493 | $as_echo_n "checking whether Eet image loader will be built... " >&6; } | ||
27494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
27495 | $as_echo "${have_loader}" >&6; } | ||
27496 | |||
27497 | if test "x${have_loader}" = "xyes" ; then | ||
27498 | if test "x${want_loader}" = "xstatic" ; then | ||
27499 | have_evas_image_loader_eet="static" | ||
27500 | want_static_loader="yes" | ||
27501 | else | ||
27502 | have_evas_image_loader_eet="yes" | ||
27503 | fi | ||
27504 | fi | ||
27505 | |||
27506 | if test "x${have_loader}" = "xyes" ; then | ||
27507 | |||
27508 | $as_echo "#define BUILD_LOADER_EET 1" >>confdefs.h | ||
27509 | |||
27510 | fi | ||
27511 | |||
27512 | if test "x${have_loader}" = "xyes"; then | ||
27513 | BUILD_LOADER_EET_TRUE= | ||
27514 | BUILD_LOADER_EET_FALSE='#' | ||
27515 | else | ||
27516 | BUILD_LOADER_EET_TRUE='#' | ||
27517 | BUILD_LOADER_EET_FALSE= | ||
27518 | fi | ||
27519 | |||
27520 | |||
27521 | if test "x${want_static_loader}" = "xyes" ; then | ||
27522 | |||
27523 | $as_echo "#define EVAS_STATIC_BUILD_EET 1" >>confdefs.h | ||
27524 | |||
27525 | have_static_module="yes" | ||
27526 | fi | ||
27527 | |||
27528 | if test "x${want_static_loader}" = "xyes"; then | ||
27529 | EVAS_STATIC_BUILD_EET_TRUE= | ||
27530 | EVAS_STATIC_BUILD_EET_FALSE='#' | ||
27531 | else | ||
27532 | EVAS_STATIC_BUILD_EET_TRUE='#' | ||
27533 | EVAS_STATIC_BUILD_EET_FALSE= | ||
27534 | fi | ||
27535 | |||
27536 | |||
27537 | |||
27538 | |||
27539 | |||
27540 | |||
27541 | |||
27542 | |||
27543 | |||
27544 | want_loader="${want_evas_font_loader_eet}" | ||
27545 | have_evas_font_loader_eet="no" | ||
27546 | |||
27547 | # Check whether --enable-font-loader-eet was given. | ||
27548 | if test "${enable_font_loader_eet+set}" = set; then : | ||
27549 | enableval=$enable_font_loader_eet; want_loader=${enableval} | ||
27550 | |||
27551 | fi | ||
27552 | |||
27553 | |||
27554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Eet font loader" >&5 | ||
27555 | $as_echo_n "checking whether to enable Eet font loader... " >&6; } | ||
27556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
27557 | $as_echo "${want_loader}" >&6; } | ||
27558 | |||
27559 | if test "x$want_loader" = "xyes" -o "x$want_loader" = "xauto"; then | ||
27560 | |||
27561 | pkg_failed=no | ||
27562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EET" >&5 | ||
27563 | $as_echo_n "checking for EET... " >&6; } | ||
27564 | |||
27565 | if test -n "$EET_CFLAGS"; then | ||
27566 | pkg_cv_EET_CFLAGS="$EET_CFLAGS" | ||
27567 | elif test -n "$PKG_CONFIG"; then | ||
27568 | if test -n "$PKG_CONFIG" && \ | ||
27569 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
27570 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
27571 | ac_status=$? | ||
27572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27573 | test $ac_status = 0; }; then | ||
27574 | pkg_cv_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null` | ||
27575 | else | ||
27576 | pkg_failed=yes | ||
27577 | fi | ||
27578 | else | ||
27579 | pkg_failed=untried | ||
27580 | fi | ||
27581 | if test -n "$EET_LIBS"; then | ||
27582 | pkg_cv_EET_LIBS="$EET_LIBS" | ||
27583 | elif test -n "$PKG_CONFIG"; then | ||
27584 | if test -n "$PKG_CONFIG" && \ | ||
27585 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5 | ||
27586 | ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5 | ||
27587 | ac_status=$? | ||
27588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27589 | test $ac_status = 0; }; then | ||
27590 | pkg_cv_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null` | ||
27591 | else | ||
27592 | pkg_failed=yes | ||
27593 | fi | ||
27594 | else | ||
27595 | pkg_failed=untried | ||
27596 | fi | ||
27597 | |||
27598 | |||
27599 | |||
27600 | if test $pkg_failed = yes; then | ||
27601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27602 | $as_echo "no" >&6; } | ||
27603 | |||
27604 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27605 | _pkg_short_errors_supported=yes | ||
27606 | else | ||
27607 | _pkg_short_errors_supported=no | ||
27608 | fi | ||
27609 | if test $_pkg_short_errors_supported = yes; then | ||
27610 | EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1` | ||
27611 | else | ||
27612 | EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1` | ||
27613 | fi | ||
27614 | # Put the nasty error message in config.log where it belongs | ||
27615 | echo "$EET_PKG_ERRORS" >&5 | ||
27616 | |||
27617 | have_evas_font_loader_eet="no" | ||
27618 | elif test $pkg_failed = untried; then | ||
27619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27620 | $as_echo "no" >&6; } | ||
27621 | have_evas_font_loader_eet="no" | ||
27622 | else | ||
27623 | EET_CFLAGS=$pkg_cv_EET_CFLAGS | ||
27624 | EET_LIBS=$pkg_cv_EET_LIBS | ||
27625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27626 | $as_echo "yes" >&6; } | ||
27627 | have_evas_font_loader_eet="yes" | ||
27628 | fi | ||
27629 | fi | ||
27630 | |||
27631 | if test "x${have_evas_font_loader_eet}" = "xno" -a "x$want_loader" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
27632 | as_fn_error $? "Eet dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
27633 | fi | ||
27634 | |||
27635 | if test "x$have_evas_font_loader_eet" = "xyes" ; then | ||
27636 | |||
27637 | $as_echo "#define BUILD_FONT_LOADER_EET 1" >>confdefs.h | ||
27638 | |||
27639 | requirement_evas="eet >= 1.5.0 ${requirement_evas}" | ||
27640 | fi | ||
27641 | |||
27642 | |||
27643 | |||
27644 | |||
27645 | |||
27646 | |||
27647 | |||
27648 | |||
27649 | |||
27650 | |||
27651 | |||
27652 | want_loader="${want_evas_image_loader_gif}" | ||
27653 | want_static_loader="no" | ||
27654 | have_loader="no" | ||
27655 | have_evas_image_loader_gif="no" | ||
27656 | |||
27657 | # Check whether --enable-image-loader-gif was given. | ||
27658 | if test "${enable_image_loader_gif+set}" = set; then : | ||
27659 | enableval=$enable_image_loader_gif; | ||
27660 | if test "x${enableval}" = "xyes" ; then | ||
27661 | want_loader="yes" | ||
27662 | else | ||
27663 | if test "x${enableval}" = "xstatic" ; then | ||
27664 | want_loader="static" | ||
27665 | else | ||
27666 | want_loader="no" | ||
27667 | fi | ||
27668 | fi | ||
27669 | |||
27670 | |||
27671 | fi | ||
27672 | |||
27673 | |||
27674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Gif image loader" >&5 | ||
27675 | $as_echo_n "checking whether to enable Gif image loader... " >&6; } | ||
27676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
27677 | $as_echo "${want_loader}" >&6; } | ||
27678 | |||
27679 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
27680 | |||
27681 | |||
27682 | have_dep="no" | ||
27683 | evas_image_loader_gif_cflags="" | ||
27684 | evas_image_loader_gif_libs="" | ||
27685 | |||
27686 | ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" | ||
27687 | if test "x$ac_cv_header_gif_lib_h" = x""yes; then : | ||
27688 | have_dep="yes" | ||
27689 | fi | ||
27690 | |||
27691 | |||
27692 | |||
27693 | if test "x${have_dep}" = "xyes" ; then | ||
27694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lgif" >&5 | ||
27695 | $as_echo_n "checking for DGifOpenFileName in -lgif... " >&6; } | ||
27696 | if test "${ac_cv_lib_gif_DGifOpenFileName+set}" = set; then : | ||
27697 | $as_echo_n "(cached) " >&6 | ||
27698 | else | ||
27699 | ac_check_lib_save_LIBS=$LIBS | ||
27700 | LIBS="-lgif $LIBS" | ||
27701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27702 | /* end confdefs.h. */ | ||
27703 | |||
27704 | /* Override any GCC internal prototype to avoid an error. | ||
27705 | Use char because int might match the return type of a GCC | ||
27706 | builtin and then its argument prototype would still apply. */ | ||
27707 | #ifdef __cplusplus | ||
27708 | extern "C" | ||
27709 | #endif | ||
27710 | char DGifOpenFileName (); | ||
27711 | int | ||
27712 | main () | ||
27713 | { | ||
27714 | return DGifOpenFileName (); | ||
27715 | ; | ||
27716 | return 0; | ||
27717 | } | ||
27718 | _ACEOF | ||
27719 | if ac_fn_c_try_link "$LINENO"; then : | ||
27720 | ac_cv_lib_gif_DGifOpenFileName=yes | ||
27721 | else | ||
27722 | ac_cv_lib_gif_DGifOpenFileName=no | ||
27723 | fi | ||
27724 | rm -f core conftest.err conftest.$ac_objext \ | ||
27725 | conftest$ac_exeext conftest.$ac_ext | ||
27726 | LIBS=$ac_check_lib_save_LIBS | ||
27727 | fi | ||
27728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileName" >&5 | ||
27729 | $as_echo "$ac_cv_lib_gif_DGifOpenFileName" >&6; } | ||
27730 | if test "x$ac_cv_lib_gif_DGifOpenFileName" = x""yes; then : | ||
27731 | |||
27732 | evas_image_loader_gif_libs="-lgif" | ||
27733 | |||
27734 | else | ||
27735 | have_dep="no" | ||
27736 | |||
27737 | fi | ||
27738 | |||
27739 | |||
27740 | if test "x${have_dep}" = "xno" ; then | ||
27741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lungif" >&5 | ||
27742 | $as_echo_n "checking for DGifOpenFileName in -lungif... " >&6; } | ||
27743 | if test "${ac_cv_lib_ungif_DGifOpenFileName+set}" = set; then : | ||
27744 | $as_echo_n "(cached) " >&6 | ||
27745 | else | ||
27746 | ac_check_lib_save_LIBS=$LIBS | ||
27747 | LIBS="-lungif $LIBS" | ||
27748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27749 | /* end confdefs.h. */ | ||
27750 | |||
27751 | /* Override any GCC internal prototype to avoid an error. | ||
27752 | Use char because int might match the return type of a GCC | ||
27753 | builtin and then its argument prototype would still apply. */ | ||
27754 | #ifdef __cplusplus | ||
27755 | extern "C" | ||
27756 | #endif | ||
27757 | char DGifOpenFileName (); | ||
27758 | int | ||
27759 | main () | ||
27760 | { | ||
27761 | return DGifOpenFileName (); | ||
27762 | ; | ||
27763 | return 0; | ||
27764 | } | ||
27765 | _ACEOF | ||
27766 | if ac_fn_c_try_link "$LINENO"; then : | ||
27767 | ac_cv_lib_ungif_DGifOpenFileName=yes | ||
27768 | else | ||
27769 | ac_cv_lib_ungif_DGifOpenFileName=no | ||
27770 | fi | ||
27771 | rm -f core conftest.err conftest.$ac_objext \ | ||
27772 | conftest$ac_exeext conftest.$ac_ext | ||
27773 | LIBS=$ac_check_lib_save_LIBS | ||
27774 | fi | ||
27775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpenFileName" >&5 | ||
27776 | $as_echo "$ac_cv_lib_ungif_DGifOpenFileName" >&6; } | ||
27777 | if test "x$ac_cv_lib_ungif_DGifOpenFileName" = x""yes; then : | ||
27778 | |||
27779 | have_dep="yes" | ||
27780 | evas_image_loader_gif_libs="-lungif" | ||
27781 | |||
27782 | |||
27783 | fi | ||
27784 | |||
27785 | fi | ||
27786 | fi | ||
27787 | |||
27788 | |||
27789 | |||
27790 | |||
27791 | if test "x${have_dep}" = "xyes" ; then | ||
27792 | have_loader="yes" | ||
27793 | else | ||
27794 | have_loader="no" | ||
27795 | fi | ||
27796 | |||
27797 | |||
27798 | fi | ||
27799 | |||
27800 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
27801 | as_fn_error $? "Gif dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
27802 | fi | ||
27803 | |||
27804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Gif image loader will be built" >&5 | ||
27805 | $as_echo_n "checking whether Gif image loader will be built... " >&6; } | ||
27806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
27807 | $as_echo "${have_loader}" >&6; } | ||
27808 | |||
27809 | if test "x${have_loader}" = "xyes" ; then | ||
27810 | if test "x${want_loader}" = "xstatic" ; then | ||
27811 | have_evas_image_loader_gif="static" | ||
27812 | want_static_loader="yes" | ||
27813 | else | ||
27814 | have_evas_image_loader_gif="yes" | ||
27815 | fi | ||
27816 | fi | ||
27817 | |||
27818 | if test "x${have_loader}" = "xyes" ; then | ||
27819 | |||
27820 | $as_echo "#define BUILD_LOADER_GIF 1" >>confdefs.h | ||
27821 | |||
27822 | fi | ||
27823 | |||
27824 | if test "x${have_loader}" = "xyes"; then | ||
27825 | BUILD_LOADER_GIF_TRUE= | ||
27826 | BUILD_LOADER_GIF_FALSE='#' | ||
27827 | else | ||
27828 | BUILD_LOADER_GIF_TRUE='#' | ||
27829 | BUILD_LOADER_GIF_FALSE= | ||
27830 | fi | ||
27831 | |||
27832 | |||
27833 | if test "x${want_static_loader}" = "xyes" ; then | ||
27834 | |||
27835 | $as_echo "#define EVAS_STATIC_BUILD_GIF 1" >>confdefs.h | ||
27836 | |||
27837 | have_static_module="yes" | ||
27838 | fi | ||
27839 | |||
27840 | if test "x${want_static_loader}" = "xyes"; then | ||
27841 | EVAS_STATIC_BUILD_GIF_TRUE= | ||
27842 | EVAS_STATIC_BUILD_GIF_FALSE='#' | ||
27843 | else | ||
27844 | EVAS_STATIC_BUILD_GIF_TRUE='#' | ||
27845 | EVAS_STATIC_BUILD_GIF_FALSE= | ||
27846 | fi | ||
27847 | |||
27848 | |||
27849 | |||
27850 | |||
27851 | |||
27852 | |||
27853 | |||
27854 | have_evas_image_saver_jpeg="no" | ||
27855 | |||
27856 | |||
27857 | |||
27858 | |||
27859 | |||
27860 | want_loader="${want_evas_image_loader_jpeg}" | ||
27861 | want_static_loader="no" | ||
27862 | have_loader="no" | ||
27863 | have_evas_image_loader_jpeg="no" | ||
27864 | |||
27865 | # Check whether --enable-image-loader-jpeg was given. | ||
27866 | if test "${enable_image_loader_jpeg+set}" = set; then : | ||
27867 | enableval=$enable_image_loader_jpeg; | ||
27868 | if test "x${enableval}" = "xyes" ; then | ||
27869 | want_loader="yes" | ||
27870 | else | ||
27871 | if test "x${enableval}" = "xstatic" ; then | ||
27872 | want_loader="static" | ||
27873 | else | ||
27874 | want_loader="no" | ||
27875 | fi | ||
27876 | fi | ||
27877 | |||
27878 | |||
27879 | fi | ||
27880 | |||
27881 | |||
27882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Jpeg image loader" >&5 | ||
27883 | $as_echo_n "checking whether to enable Jpeg image loader... " >&6; } | ||
27884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
27885 | $as_echo "${want_loader}" >&6; } | ||
27886 | |||
27887 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
27888 | |||
27889 | |||
27890 | have_dep="no" | ||
27891 | evas_image_loader_jpeg_cflags="" | ||
27892 | evas_image_loader_jpeg_libs="" | ||
27893 | |||
27894 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" | ||
27895 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then : | ||
27896 | have_dep="yes" | ||
27897 | fi | ||
27898 | |||
27899 | |||
27900 | |||
27901 | if test "x${have_dep}" = "xyes" ; then | ||
27902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 | ||
27903 | $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } | ||
27904 | if test "${ac_cv_lib_jpeg_jpeg_CreateDecompress+set}" = set; then : | ||
27905 | $as_echo_n "(cached) " >&6 | ||
27906 | else | ||
27907 | ac_check_lib_save_LIBS=$LIBS | ||
27908 | LIBS="-ljpeg $LIBS" | ||
27909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27910 | /* end confdefs.h. */ | ||
27911 | |||
27912 | /* Override any GCC internal prototype to avoid an error. | ||
27913 | Use char because int might match the return type of a GCC | ||
27914 | builtin and then its argument prototype would still apply. */ | ||
27915 | #ifdef __cplusplus | ||
27916 | extern "C" | ||
27917 | #endif | ||
27918 | char jpeg_CreateDecompress (); | ||
27919 | int | ||
27920 | main () | ||
27921 | { | ||
27922 | return jpeg_CreateDecompress (); | ||
27923 | ; | ||
27924 | return 0; | ||
27925 | } | ||
27926 | _ACEOF | ||
27927 | if ac_fn_c_try_link "$LINENO"; then : | ||
27928 | ac_cv_lib_jpeg_jpeg_CreateDecompress=yes | ||
27929 | else | ||
27930 | ac_cv_lib_jpeg_jpeg_CreateDecompress=no | ||
27931 | fi | ||
27932 | rm -f core conftest.err conftest.$ac_objext \ | ||
27933 | conftest$ac_exeext conftest.$ac_ext | ||
27934 | LIBS=$ac_check_lib_save_LIBS | ||
27935 | fi | ||
27936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 | ||
27937 | $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } | ||
27938 | if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = x""yes; then : | ||
27939 | |||
27940 | evas_image_loader_jpeg_libs="-ljpeg" | ||
27941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27942 | /* end confdefs.h. */ | ||
27943 | |||
27944 | #include <stdio.h> | ||
27945 | #include <jpeglib.h> | ||
27946 | #include <setjmp.h> | ||
27947 | |||
27948 | int | ||
27949 | main () | ||
27950 | { | ||
27951 | |||
27952 | struct jpeg_decompress_struct decomp; | ||
27953 | decomp.region_x = 0; | ||
27954 | |||
27955 | ; | ||
27956 | return 0; | ||
27957 | } | ||
27958 | _ACEOF | ||
27959 | if ac_fn_c_try_compile "$LINENO"; then : | ||
27960 | have_jpeg_region="yes" | ||
27961 | else | ||
27962 | have_jpeg_region="no" | ||
27963 | fi | ||
27964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27965 | |||
27966 | else | ||
27967 | have_dep="no" | ||
27968 | |||
27969 | fi | ||
27970 | |||
27971 | if test "x${have_jpeg_region}" = "xyes" ; then | ||
27972 | |||
27973 | $as_echo "#define BUILD_LOADER_JPEG_REGION 1" >>confdefs.h | ||
27974 | |||
27975 | fi | ||
27976 | fi | ||
27977 | |||
27978 | |||
27979 | |||
27980 | |||
27981 | if test "x${have_dep}" = "xyes" ; then | ||
27982 | have_loader="yes" | ||
27983 | else | ||
27984 | have_loader="no" | ||
27985 | fi | ||
27986 | |||
27987 | |||
27988 | fi | ||
27989 | |||
27990 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
27991 | as_fn_error $? "Jpeg dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
27992 | fi | ||
27993 | |||
27994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Jpeg image loader will be built" >&5 | ||
27995 | $as_echo_n "checking whether Jpeg image loader will be built... " >&6; } | ||
27996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
27997 | $as_echo "${have_loader}" >&6; } | ||
27998 | |||
27999 | if test "x${have_loader}" = "xyes" ; then | ||
28000 | if test "x${want_loader}" = "xstatic" ; then | ||
28001 | have_evas_image_loader_jpeg="static" | ||
28002 | want_static_loader="yes" | ||
28003 | else | ||
28004 | have_evas_image_loader_jpeg="yes" | ||
28005 | fi | ||
28006 | fi | ||
28007 | |||
28008 | if test "x${have_loader}" = "xyes" ; then | ||
28009 | |||
28010 | $as_echo "#define BUILD_LOADER_JPEG 1" >>confdefs.h | ||
28011 | |||
28012 | fi | ||
28013 | |||
28014 | if test "x${have_loader}" = "xyes"; then | ||
28015 | BUILD_LOADER_JPEG_TRUE= | ||
28016 | BUILD_LOADER_JPEG_FALSE='#' | ||
28017 | else | ||
28018 | BUILD_LOADER_JPEG_TRUE='#' | ||
28019 | BUILD_LOADER_JPEG_FALSE= | ||
28020 | fi | ||
28021 | |||
28022 | |||
28023 | if test "x${want_static_loader}" = "xyes" ; then | ||
28024 | |||
28025 | $as_echo "#define EVAS_STATIC_BUILD_JPEG 1" >>confdefs.h | ||
28026 | |||
28027 | have_static_module="yes" | ||
28028 | fi | ||
28029 | |||
28030 | if test "x${want_static_loader}" = "xyes"; then | ||
28031 | EVAS_STATIC_BUILD_JPEG_TRUE= | ||
28032 | EVAS_STATIC_BUILD_JPEG_FALSE='#' | ||
28033 | else | ||
28034 | EVAS_STATIC_BUILD_JPEG_TRUE='#' | ||
28035 | EVAS_STATIC_BUILD_JPEG_FALSE= | ||
28036 | fi | ||
28037 | |||
28038 | |||
28039 | |||
28040 | |||
28041 | |||
28042 | |||
28043 | |||
28044 | case "$host_os" in | ||
28045 | mingw*) | ||
28046 | ;; | ||
28047 | *) | ||
28048 | if test "x${have_evas_image_loader_jpeg}" = "xyes" ; then | ||
28049 | |||
28050 | $as_echo "#define EVAS_BUILD_SAVER_JPEG 1" >>confdefs.h | ||
28051 | |||
28052 | have_evas_image_saver_jpeg="yes" | ||
28053 | fi | ||
28054 | ;; | ||
28055 | esac | ||
28056 | if test "x${have_evas_image_saver_jpeg}" = "xyes"; then | ||
28057 | BUILD_SAVER_JPEG_TRUE= | ||
28058 | BUILD_SAVER_JPEG_FALSE='#' | ||
28059 | else | ||
28060 | BUILD_SAVER_JPEG_TRUE='#' | ||
28061 | BUILD_SAVER_JPEG_FALSE= | ||
28062 | fi | ||
28063 | |||
28064 | |||
28065 | |||
28066 | |||
28067 | |||
28068 | |||
28069 | |||
28070 | want_loader="${want_evas_image_loader_pmaps}" | ||
28071 | want_static_loader="no" | ||
28072 | have_loader="no" | ||
28073 | have_evas_image_loader_pmaps="no" | ||
28074 | |||
28075 | # Check whether --enable-image-loader-pmaps was given. | ||
28076 | if test "${enable_image_loader_pmaps+set}" = set; then : | ||
28077 | enableval=$enable_image_loader_pmaps; | ||
28078 | if test "x${enableval}" = "xyes" ; then | ||
28079 | want_loader="yes" | ||
28080 | else | ||
28081 | if test "x${enableval}" = "xstatic" ; then | ||
28082 | want_loader="static" | ||
28083 | else | ||
28084 | want_loader="no" | ||
28085 | fi | ||
28086 | fi | ||
28087 | |||
28088 | |||
28089 | fi | ||
28090 | |||
28091 | |||
28092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PMAPS image loader" >&5 | ||
28093 | $as_echo_n "checking whether to enable PMAPS image loader... " >&6; } | ||
28094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
28095 | $as_echo "${want_loader}" >&6; } | ||
28096 | |||
28097 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
28098 | |||
28099 | |||
28100 | have_dep="yes" | ||
28101 | evas_image_loader_pmaps_cflags="" | ||
28102 | evas_image_loader_pmaps_libs="" | ||
28103 | |||
28104 | |||
28105 | |||
28106 | |||
28107 | if test "x${have_dep}" = "xyes" ; then | ||
28108 | have_loader="yes" | ||
28109 | else | ||
28110 | have_loader="no" | ||
28111 | fi | ||
28112 | |||
28113 | |||
28114 | fi | ||
28115 | |||
28116 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
28117 | as_fn_error $? "PMAPS dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28118 | fi | ||
28119 | |||
28120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PMAPS image loader will be built" >&5 | ||
28121 | $as_echo_n "checking whether PMAPS image loader will be built... " >&6; } | ||
28122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
28123 | $as_echo "${have_loader}" >&6; } | ||
28124 | |||
28125 | if test "x${have_loader}" = "xyes" ; then | ||
28126 | if test "x${want_loader}" = "xstatic" ; then | ||
28127 | have_evas_image_loader_pmaps="static" | ||
28128 | want_static_loader="yes" | ||
28129 | else | ||
28130 | have_evas_image_loader_pmaps="yes" | ||
28131 | fi | ||
28132 | fi | ||
28133 | |||
28134 | if test "x${have_loader}" = "xyes" ; then | ||
28135 | |||
28136 | $as_echo "#define BUILD_LOADER_PMAPS 1" >>confdefs.h | ||
28137 | |||
28138 | fi | ||
28139 | |||
28140 | if test "x${have_loader}" = "xyes"; then | ||
28141 | BUILD_LOADER_PMAPS_TRUE= | ||
28142 | BUILD_LOADER_PMAPS_FALSE='#' | ||
28143 | else | ||
28144 | BUILD_LOADER_PMAPS_TRUE='#' | ||
28145 | BUILD_LOADER_PMAPS_FALSE= | ||
28146 | fi | ||
28147 | |||
28148 | |||
28149 | if test "x${want_static_loader}" = "xyes" ; then | ||
28150 | |||
28151 | $as_echo "#define EVAS_STATIC_BUILD_PMAPS 1" >>confdefs.h | ||
28152 | |||
28153 | have_static_module="yes" | ||
28154 | fi | ||
28155 | |||
28156 | if test "x${want_static_loader}" = "xyes"; then | ||
28157 | EVAS_STATIC_BUILD_PMAPS_TRUE= | ||
28158 | EVAS_STATIC_BUILD_PMAPS_FALSE='#' | ||
28159 | else | ||
28160 | EVAS_STATIC_BUILD_PMAPS_TRUE='#' | ||
28161 | EVAS_STATIC_BUILD_PMAPS_FALSE= | ||
28162 | fi | ||
28163 | |||
28164 | |||
28165 | |||
28166 | |||
28167 | |||
28168 | |||
28169 | |||
28170 | |||
28171 | |||
28172 | |||
28173 | |||
28174 | |||
28175 | want_loader="${want_evas_image_loader_png}" | ||
28176 | want_static_loader="no" | ||
28177 | have_loader="no" | ||
28178 | have_evas_image_loader_png="no" | ||
28179 | |||
28180 | # Check whether --enable-image-loader-png was given. | ||
28181 | if test "${enable_image_loader_png+set}" = set; then : | ||
28182 | enableval=$enable_image_loader_png; | ||
28183 | if test "x${enableval}" = "xyes" ; then | ||
28184 | want_loader="yes" | ||
28185 | else | ||
28186 | if test "x${enableval}" = "xstatic" ; then | ||
28187 | want_loader="static" | ||
28188 | else | ||
28189 | want_loader="no" | ||
28190 | fi | ||
28191 | fi | ||
28192 | |||
28193 | |||
28194 | fi | ||
28195 | |||
28196 | |||
28197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PNG image loader" >&5 | ||
28198 | $as_echo_n "checking whether to enable PNG image loader... " >&6; } | ||
28199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
28200 | $as_echo "${want_loader}" >&6; } | ||
28201 | |||
28202 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
28203 | |||
28204 | |||
28205 | requirement="" | ||
28206 | have_dep="no" | ||
28207 | evas_image_loader_png_cflags="" | ||
28208 | evas_image_loader_png_libs="" | ||
28209 | |||
28210 | |||
28211 | pkg_failed=no | ||
28212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | ||
28213 | $as_echo_n "checking for PNG... " >&6; } | ||
28214 | |||
28215 | if test -n "$PNG_CFLAGS"; then | ||
28216 | pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" | ||
28217 | elif test -n "$PKG_CONFIG"; then | ||
28218 | if test -n "$PKG_CONFIG" && \ | ||
28219 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.10\""; } >&5 | ||
28220 | ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.10") 2>&5 | ||
28221 | ac_status=$? | ||
28222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28223 | test $ac_status = 0; }; then | ||
28224 | pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.10" 2>/dev/null` | ||
28225 | else | ||
28226 | pkg_failed=yes | ||
28227 | fi | ||
28228 | else | ||
28229 | pkg_failed=untried | ||
28230 | fi | ||
28231 | if test -n "$PNG_LIBS"; then | ||
28232 | pkg_cv_PNG_LIBS="$PNG_LIBS" | ||
28233 | elif test -n "$PKG_CONFIG"; then | ||
28234 | if test -n "$PKG_CONFIG" && \ | ||
28235 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.10\""; } >&5 | ||
28236 | ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.10") 2>&5 | ||
28237 | ac_status=$? | ||
28238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28239 | test $ac_status = 0; }; then | ||
28240 | pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.10" 2>/dev/null` | ||
28241 | else | ||
28242 | pkg_failed=yes | ||
28243 | fi | ||
28244 | else | ||
28245 | pkg_failed=untried | ||
28246 | fi | ||
28247 | |||
28248 | |||
28249 | |||
28250 | if test $pkg_failed = yes; then | ||
28251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28252 | $as_echo "no" >&6; } | ||
28253 | |||
28254 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28255 | _pkg_short_errors_supported=yes | ||
28256 | else | ||
28257 | _pkg_short_errors_supported=no | ||
28258 | fi | ||
28259 | if test $_pkg_short_errors_supported = yes; then | ||
28260 | PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng >= 1.2.10" 2>&1` | ||
28261 | else | ||
28262 | PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng >= 1.2.10" 2>&1` | ||
28263 | fi | ||
28264 | # Put the nasty error message in config.log where it belongs | ||
28265 | echo "$PNG_PKG_ERRORS" >&5 | ||
28266 | |||
28267 | have_dep="no" | ||
28268 | elif test $pkg_failed = untried; then | ||
28269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28270 | $as_echo "no" >&6; } | ||
28271 | have_dep="no" | ||
28272 | else | ||
28273 | PNG_CFLAGS=$pkg_cv_PNG_CFLAGS | ||
28274 | PNG_LIBS=$pkg_cv_PNG_LIBS | ||
28275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28276 | $as_echo "yes" >&6; } | ||
28277 | have_dep="yes" requirement="libpng" | ||
28278 | fi | ||
28279 | |||
28280 | if test "x${have_dep}" = "xno" ; then | ||
28281 | |||
28282 | pkg_failed=no | ||
28283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | ||
28284 | $as_echo_n "checking for PNG... " >&6; } | ||
28285 | |||
28286 | if test -n "$PNG_CFLAGS"; then | ||
28287 | pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" | ||
28288 | elif test -n "$PKG_CONFIG"; then | ||
28289 | if test -n "$PKG_CONFIG" && \ | ||
28290 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15\""; } >&5 | ||
28291 | ($PKG_CONFIG --exists --print-errors "libpng15") 2>&5 | ||
28292 | ac_status=$? | ||
28293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28294 | test $ac_status = 0; }; then | ||
28295 | pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng15" 2>/dev/null` | ||
28296 | else | ||
28297 | pkg_failed=yes | ||
28298 | fi | ||
28299 | else | ||
28300 | pkg_failed=untried | ||
28301 | fi | ||
28302 | if test -n "$PNG_LIBS"; then | ||
28303 | pkg_cv_PNG_LIBS="$PNG_LIBS" | ||
28304 | elif test -n "$PKG_CONFIG"; then | ||
28305 | if test -n "$PKG_CONFIG" && \ | ||
28306 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15\""; } >&5 | ||
28307 | ($PKG_CONFIG --exists --print-errors "libpng15") 2>&5 | ||
28308 | ac_status=$? | ||
28309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28310 | test $ac_status = 0; }; then | ||
28311 | pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng15" 2>/dev/null` | ||
28312 | else | ||
28313 | pkg_failed=yes | ||
28314 | fi | ||
28315 | else | ||
28316 | pkg_failed=untried | ||
28317 | fi | ||
28318 | |||
28319 | |||
28320 | |||
28321 | if test $pkg_failed = yes; then | ||
28322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28323 | $as_echo "no" >&6; } | ||
28324 | |||
28325 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28326 | _pkg_short_errors_supported=yes | ||
28327 | else | ||
28328 | _pkg_short_errors_supported=no | ||
28329 | fi | ||
28330 | if test $_pkg_short_errors_supported = yes; then | ||
28331 | PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng15" 2>&1` | ||
28332 | else | ||
28333 | PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng15" 2>&1` | ||
28334 | fi | ||
28335 | # Put the nasty error message in config.log where it belongs | ||
28336 | echo "$PNG_PKG_ERRORS" >&5 | ||
28337 | |||
28338 | have_dep="no" | ||
28339 | elif test $pkg_failed = untried; then | ||
28340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28341 | $as_echo "no" >&6; } | ||
28342 | have_dep="no" | ||
28343 | else | ||
28344 | PNG_CFLAGS=$pkg_cv_PNG_CFLAGS | ||
28345 | PNG_LIBS=$pkg_cv_PNG_LIBS | ||
28346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28347 | $as_echo "yes" >&6; } | ||
28348 | have_dep="yes" requirement="libpng15" | ||
28349 | fi | ||
28350 | fi | ||
28351 | |||
28352 | if test "x${have_dep}" = "xno" ; then | ||
28353 | |||
28354 | pkg_failed=no | ||
28355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | ||
28356 | $as_echo_n "checking for PNG... " >&6; } | ||
28357 | |||
28358 | if test -n "$PNG_CFLAGS"; then | ||
28359 | pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" | ||
28360 | elif test -n "$PKG_CONFIG"; then | ||
28361 | if test -n "$PKG_CONFIG" && \ | ||
28362 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14\""; } >&5 | ||
28363 | ($PKG_CONFIG --exists --print-errors "libpng14") 2>&5 | ||
28364 | ac_status=$? | ||
28365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28366 | test $ac_status = 0; }; then | ||
28367 | pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14" 2>/dev/null` | ||
28368 | else | ||
28369 | pkg_failed=yes | ||
28370 | fi | ||
28371 | else | ||
28372 | pkg_failed=untried | ||
28373 | fi | ||
28374 | if test -n "$PNG_LIBS"; then | ||
28375 | pkg_cv_PNG_LIBS="$PNG_LIBS" | ||
28376 | elif test -n "$PKG_CONFIG"; then | ||
28377 | if test -n "$PKG_CONFIG" && \ | ||
28378 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14\""; } >&5 | ||
28379 | ($PKG_CONFIG --exists --print-errors "libpng14") 2>&5 | ||
28380 | ac_status=$? | ||
28381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28382 | test $ac_status = 0; }; then | ||
28383 | pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14" 2>/dev/null` | ||
28384 | else | ||
28385 | pkg_failed=yes | ||
28386 | fi | ||
28387 | else | ||
28388 | pkg_failed=untried | ||
28389 | fi | ||
28390 | |||
28391 | |||
28392 | |||
28393 | if test $pkg_failed = yes; then | ||
28394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28395 | $as_echo "no" >&6; } | ||
28396 | |||
28397 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28398 | _pkg_short_errors_supported=yes | ||
28399 | else | ||
28400 | _pkg_short_errors_supported=no | ||
28401 | fi | ||
28402 | if test $_pkg_short_errors_supported = yes; then | ||
28403 | PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14" 2>&1` | ||
28404 | else | ||
28405 | PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14" 2>&1` | ||
28406 | fi | ||
28407 | # Put the nasty error message in config.log where it belongs | ||
28408 | echo "$PNG_PKG_ERRORS" >&5 | ||
28409 | |||
28410 | have_dep="no" | ||
28411 | elif test $pkg_failed = untried; then | ||
28412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28413 | $as_echo "no" >&6; } | ||
28414 | have_dep="no" | ||
28415 | else | ||
28416 | PNG_CFLAGS=$pkg_cv_PNG_CFLAGS | ||
28417 | PNG_LIBS=$pkg_cv_PNG_LIBS | ||
28418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28419 | $as_echo "yes" >&6; } | ||
28420 | have_dep="yes" requirement="libpng14" | ||
28421 | fi | ||
28422 | fi | ||
28423 | |||
28424 | if test "x${have_dep}" = "xno" ; then | ||
28425 | |||
28426 | pkg_failed=no | ||
28427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | ||
28428 | $as_echo_n "checking for PNG... " >&6; } | ||
28429 | |||
28430 | if test -n "$PNG_CFLAGS"; then | ||
28431 | pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" | ||
28432 | elif test -n "$PKG_CONFIG"; then | ||
28433 | if test -n "$PKG_CONFIG" && \ | ||
28434 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 >= 1.2.10\""; } >&5 | ||
28435 | ($PKG_CONFIG --exists --print-errors "libpng12 >= 1.2.10") 2>&5 | ||
28436 | ac_status=$? | ||
28437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28438 | test $ac_status = 0; }; then | ||
28439 | pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 >= 1.2.10" 2>/dev/null` | ||
28440 | else | ||
28441 | pkg_failed=yes | ||
28442 | fi | ||
28443 | else | ||
28444 | pkg_failed=untried | ||
28445 | fi | ||
28446 | if test -n "$PNG_LIBS"; then | ||
28447 | pkg_cv_PNG_LIBS="$PNG_LIBS" | ||
28448 | elif test -n "$PKG_CONFIG"; then | ||
28449 | if test -n "$PKG_CONFIG" && \ | ||
28450 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 >= 1.2.10\""; } >&5 | ||
28451 | ($PKG_CONFIG --exists --print-errors "libpng12 >= 1.2.10") 2>&5 | ||
28452 | ac_status=$? | ||
28453 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28454 | test $ac_status = 0; }; then | ||
28455 | pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 >= 1.2.10" 2>/dev/null` | ||
28456 | else | ||
28457 | pkg_failed=yes | ||
28458 | fi | ||
28459 | else | ||
28460 | pkg_failed=untried | ||
28461 | fi | ||
28462 | |||
28463 | |||
28464 | |||
28465 | if test $pkg_failed = yes; then | ||
28466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28467 | $as_echo "no" >&6; } | ||
28468 | |||
28469 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28470 | _pkg_short_errors_supported=yes | ||
28471 | else | ||
28472 | _pkg_short_errors_supported=no | ||
28473 | fi | ||
28474 | if test $_pkg_short_errors_supported = yes; then | ||
28475 | PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 >= 1.2.10" 2>&1` | ||
28476 | else | ||
28477 | PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 >= 1.2.10" 2>&1` | ||
28478 | fi | ||
28479 | # Put the nasty error message in config.log where it belongs | ||
28480 | echo "$PNG_PKG_ERRORS" >&5 | ||
28481 | |||
28482 | have_dep="no" | ||
28483 | elif test $pkg_failed = untried; then | ||
28484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28485 | $as_echo "no" >&6; } | ||
28486 | have_dep="no" | ||
28487 | else | ||
28488 | PNG_CFLAGS=$pkg_cv_PNG_CFLAGS | ||
28489 | PNG_LIBS=$pkg_cv_PNG_LIBS | ||
28490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28491 | $as_echo "yes" >&6; } | ||
28492 | have_dep="yes" requirement="libpng12" | ||
28493 | fi | ||
28494 | fi | ||
28495 | |||
28496 | evas_image_loader_png_cflags="${PNG_CFLAGS}" | ||
28497 | evas_image_loader_png_libs="${PNG_LIBS}" | ||
28498 | |||
28499 | |||
28500 | |||
28501 | |||
28502 | if test "x${want_loader}" = "xstatic" ; then | ||
28503 | requirement_evas="${requirement} ${requirement_evas}" | ||
28504 | fi | ||
28505 | |||
28506 | if test "x${have_dep}" = "xyes" ; then | ||
28507 | have_loader="yes" | ||
28508 | else | ||
28509 | have_loader="no" | ||
28510 | fi | ||
28511 | |||
28512 | |||
28513 | fi | ||
28514 | |||
28515 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
28516 | as_fn_error $? "PNG dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28517 | fi | ||
28518 | |||
28519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG image loader will be built" >&5 | ||
28520 | $as_echo_n "checking whether PNG image loader will be built... " >&6; } | ||
28521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
28522 | $as_echo "${have_loader}" >&6; } | ||
28523 | |||
28524 | if test "x${have_loader}" = "xyes" ; then | ||
28525 | if test "x${want_loader}" = "xstatic" ; then | ||
28526 | have_evas_image_loader_png="static" | ||
28527 | want_static_loader="yes" | ||
28528 | else | ||
28529 | have_evas_image_loader_png="yes" | ||
28530 | fi | ||
28531 | fi | ||
28532 | |||
28533 | if test "x${have_loader}" = "xyes" ; then | ||
28534 | |||
28535 | $as_echo "#define BUILD_LOADER_PNG 1" >>confdefs.h | ||
28536 | |||
28537 | fi | ||
28538 | |||
28539 | if test "x${have_loader}" = "xyes"; then | ||
28540 | BUILD_LOADER_PNG_TRUE= | ||
28541 | BUILD_LOADER_PNG_FALSE='#' | ||
28542 | else | ||
28543 | BUILD_LOADER_PNG_TRUE='#' | ||
28544 | BUILD_LOADER_PNG_FALSE= | ||
28545 | fi | ||
28546 | |||
28547 | |||
28548 | if test "x${want_static_loader}" = "xyes" ; then | ||
28549 | |||
28550 | $as_echo "#define EVAS_STATIC_BUILD_PNG 1" >>confdefs.h | ||
28551 | |||
28552 | have_static_module="yes" | ||
28553 | fi | ||
28554 | |||
28555 | if test "x${want_static_loader}" = "xyes"; then | ||
28556 | EVAS_STATIC_BUILD_PNG_TRUE= | ||
28557 | EVAS_STATIC_BUILD_PNG_FALSE='#' | ||
28558 | else | ||
28559 | EVAS_STATIC_BUILD_PNG_TRUE='#' | ||
28560 | EVAS_STATIC_BUILD_PNG_FALSE= | ||
28561 | fi | ||
28562 | |||
28563 | |||
28564 | |||
28565 | |||
28566 | |||
28567 | |||
28568 | |||
28569 | |||
28570 | |||
28571 | |||
28572 | |||
28573 | |||
28574 | want_loader="${want_evas_image_loader_svg}" | ||
28575 | want_static_loader="no" | ||
28576 | have_loader="no" | ||
28577 | have_evas_image_loader_svg="no" | ||
28578 | |||
28579 | # Check whether --enable-image-loader-svg was given. | ||
28580 | if test "${enable_image_loader_svg+set}" = set; then : | ||
28581 | enableval=$enable_image_loader_svg; | ||
28582 | if test "x${enableval}" = "xyes" ; then | ||
28583 | want_loader="yes" | ||
28584 | else | ||
28585 | if test "x${enableval}" = "xstatic" ; then | ||
28586 | want_loader="static" | ||
28587 | else | ||
28588 | want_loader="no" | ||
28589 | fi | ||
28590 | fi | ||
28591 | |||
28592 | |||
28593 | fi | ||
28594 | |||
28595 | |||
28596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SVG image loader" >&5 | ||
28597 | $as_echo_n "checking whether to enable SVG image loader... " >&6; } | ||
28598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
28599 | $as_echo "${want_loader}" >&6; } | ||
28600 | |||
28601 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
28602 | |||
28603 | |||
28604 | requirement="" | ||
28605 | have_dep="no" | ||
28606 | evas_image_loader_svg_cflags="" | ||
28607 | evas_image_loader_svg_libs="" | ||
28608 | |||
28609 | |||
28610 | pkg_failed=no | ||
28611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVG" >&5 | ||
28612 | $as_echo_n "checking for SVG... " >&6; } | ||
28613 | |||
28614 | if test -n "$SVG_CFLAGS"; then | ||
28615 | pkg_cv_SVG_CFLAGS="$SVG_CFLAGS" | ||
28616 | elif test -n "$PKG_CONFIG"; then | ||
28617 | if test -n "$PKG_CONFIG" && \ | ||
28618 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14.0 | ||
28619 | cairo >= 1.0.0\""; } >&5 | ||
28620 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14.0 | ||
28621 | cairo >= 1.0.0") 2>&5 | ||
28622 | ac_status=$? | ||
28623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28624 | test $ac_status = 0; }; then | ||
28625 | pkg_cv_SVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14.0 | ||
28626 | cairo >= 1.0.0" 2>/dev/null` | ||
28627 | else | ||
28628 | pkg_failed=yes | ||
28629 | fi | ||
28630 | else | ||
28631 | pkg_failed=untried | ||
28632 | fi | ||
28633 | if test -n "$SVG_LIBS"; then | ||
28634 | pkg_cv_SVG_LIBS="$SVG_LIBS" | ||
28635 | elif test -n "$PKG_CONFIG"; then | ||
28636 | if test -n "$PKG_CONFIG" && \ | ||
28637 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14.0 | ||
28638 | cairo >= 1.0.0\""; } >&5 | ||
28639 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14.0 | ||
28640 | cairo >= 1.0.0") 2>&5 | ||
28641 | ac_status=$? | ||
28642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28643 | test $ac_status = 0; }; then | ||
28644 | pkg_cv_SVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14.0 | ||
28645 | cairo >= 1.0.0" 2>/dev/null` | ||
28646 | else | ||
28647 | pkg_failed=yes | ||
28648 | fi | ||
28649 | else | ||
28650 | pkg_failed=untried | ||
28651 | fi | ||
28652 | |||
28653 | |||
28654 | |||
28655 | if test $pkg_failed = yes; then | ||
28656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28657 | $as_echo "no" >&6; } | ||
28658 | |||
28659 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28660 | _pkg_short_errors_supported=yes | ||
28661 | else | ||
28662 | _pkg_short_errors_supported=no | ||
28663 | fi | ||
28664 | if test $_pkg_short_errors_supported = yes; then | ||
28665 | SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14.0 | ||
28666 | cairo >= 1.0.0" 2>&1` | ||
28667 | else | ||
28668 | SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14.0 | ||
28669 | cairo >= 1.0.0" 2>&1` | ||
28670 | fi | ||
28671 | # Put the nasty error message in config.log where it belongs | ||
28672 | echo "$SVG_PKG_ERRORS" >&5 | ||
28673 | |||
28674 | have_svg="no" | ||
28675 | |||
28676 | elif test $pkg_failed = untried; then | ||
28677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28678 | $as_echo "no" >&6; } | ||
28679 | have_svg="no" | ||
28680 | |||
28681 | else | ||
28682 | SVG_CFLAGS=$pkg_cv_SVG_CFLAGS | ||
28683 | SVG_LIBS=$pkg_cv_SVG_LIBS | ||
28684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28685 | $as_echo "yes" >&6; } | ||
28686 | have_dep="yes" requirement="librsvg-2.0 cairo" | ||
28687 | fi | ||
28688 | |||
28689 | if test "x${have_dep}" = "xyes" ; then | ||
28690 | evas_image_loader_svg_cflags="${SVG_CFLAGS}" | ||
28691 | evas_image_loader_svg_libs="${SVG_LIBS}" | ||
28692 | fi | ||
28693 | |||
28694 | |||
28695 | |||
28696 | |||
28697 | if test "x${want_loader}" = "xstatic" ; then | ||
28698 | requirement_evas="${requirement} ${requirement_evas}" | ||
28699 | fi | ||
28700 | |||
28701 | if test "x${have_dep}" = "xyes" ; then | ||
28702 | have_loader="yes" | ||
28703 | else | ||
28704 | have_loader="no" | ||
28705 | fi | ||
28706 | |||
28707 | |||
28708 | fi | ||
28709 | |||
28710 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
28711 | as_fn_error $? "SVG dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28712 | fi | ||
28713 | |||
28714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SVG image loader will be built" >&5 | ||
28715 | $as_echo_n "checking whether SVG image loader will be built... " >&6; } | ||
28716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
28717 | $as_echo "${have_loader}" >&6; } | ||
28718 | |||
28719 | if test "x${have_loader}" = "xyes" ; then | ||
28720 | if test "x${want_loader}" = "xstatic" ; then | ||
28721 | have_evas_image_loader_svg="static" | ||
28722 | want_static_loader="yes" | ||
28723 | else | ||
28724 | have_evas_image_loader_svg="yes" | ||
28725 | fi | ||
28726 | fi | ||
28727 | |||
28728 | if test "x${have_loader}" = "xyes" ; then | ||
28729 | |||
28730 | $as_echo "#define BUILD_LOADER_SVG 1" >>confdefs.h | ||
28731 | |||
28732 | fi | ||
28733 | |||
28734 | if test "x${have_loader}" = "xyes"; then | ||
28735 | BUILD_LOADER_SVG_TRUE= | ||
28736 | BUILD_LOADER_SVG_FALSE='#' | ||
28737 | else | ||
28738 | BUILD_LOADER_SVG_TRUE='#' | ||
28739 | BUILD_LOADER_SVG_FALSE= | ||
28740 | fi | ||
28741 | |||
28742 | |||
28743 | if test "x${want_static_loader}" = "xyes" ; then | ||
28744 | |||
28745 | $as_echo "#define EVAS_STATIC_BUILD_SVG 1" >>confdefs.h | ||
28746 | |||
28747 | have_static_module="yes" | ||
28748 | fi | ||
28749 | |||
28750 | if test "x${want_static_loader}" = "xyes"; then | ||
28751 | EVAS_STATIC_BUILD_SVG_TRUE= | ||
28752 | EVAS_STATIC_BUILD_SVG_FALSE='#' | ||
28753 | else | ||
28754 | EVAS_STATIC_BUILD_SVG_TRUE='#' | ||
28755 | EVAS_STATIC_BUILD_SVG_FALSE= | ||
28756 | fi | ||
28757 | |||
28758 | |||
28759 | |||
28760 | |||
28761 | |||
28762 | |||
28763 | |||
28764 | |||
28765 | |||
28766 | |||
28767 | |||
28768 | |||
28769 | want_loader="${want_evas_image_loader_tiff}" | ||
28770 | want_static_loader="no" | ||
28771 | have_loader="no" | ||
28772 | have_evas_image_loader_tiff="no" | ||
28773 | |||
28774 | # Check whether --enable-image-loader-tiff was given. | ||
28775 | if test "${enable_image_loader_tiff+set}" = set; then : | ||
28776 | enableval=$enable_image_loader_tiff; | ||
28777 | if test "x${enableval}" = "xyes" ; then | ||
28778 | want_loader="yes" | ||
28779 | else | ||
28780 | if test "x${enableval}" = "xstatic" ; then | ||
28781 | want_loader="static" | ||
28782 | else | ||
28783 | want_loader="no" | ||
28784 | fi | ||
28785 | fi | ||
28786 | |||
28787 | |||
28788 | fi | ||
28789 | |||
28790 | |||
28791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Tiff image loader" >&5 | ||
28792 | $as_echo_n "checking whether to enable Tiff image loader... " >&6; } | ||
28793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
28794 | $as_echo "${want_loader}" >&6; } | ||
28795 | |||
28796 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
28797 | |||
28798 | |||
28799 | have_dep="no" | ||
28800 | evas_image_loader_tiff_cflags="" | ||
28801 | evas_image_loader_tiff_libs="" | ||
28802 | |||
28803 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" | ||
28804 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : | ||
28805 | have_dep="yes" | ||
28806 | fi | ||
28807 | |||
28808 | |||
28809 | |||
28810 | if test "x${have_dep}" = "xyes" ; then | ||
28811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5 | ||
28812 | $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; } | ||
28813 | if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then : | ||
28814 | $as_echo_n "(cached) " >&6 | ||
28815 | else | ||
28816 | ac_check_lib_save_LIBS=$LIBS | ||
28817 | LIBS="-ltiff $LIBS" | ||
28818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28819 | /* end confdefs.h. */ | ||
28820 | |||
28821 | /* Override any GCC internal prototype to avoid an error. | ||
28822 | Use char because int might match the return type of a GCC | ||
28823 | builtin and then its argument prototype would still apply. */ | ||
28824 | #ifdef __cplusplus | ||
28825 | extern "C" | ||
28826 | #endif | ||
28827 | char TIFFReadScanline (); | ||
28828 | int | ||
28829 | main () | ||
28830 | { | ||
28831 | return TIFFReadScanline (); | ||
28832 | ; | ||
28833 | return 0; | ||
28834 | } | ||
28835 | _ACEOF | ||
28836 | if ac_fn_c_try_link "$LINENO"; then : | ||
28837 | ac_cv_lib_tiff_TIFFReadScanline=yes | ||
28838 | else | ||
28839 | ac_cv_lib_tiff_TIFFReadScanline=no | ||
28840 | fi | ||
28841 | rm -f core conftest.err conftest.$ac_objext \ | ||
28842 | conftest$ac_exeext conftest.$ac_ext | ||
28843 | LIBS=$ac_check_lib_save_LIBS | ||
28844 | fi | ||
28845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5 | ||
28846 | $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; } | ||
28847 | if test "x$ac_cv_lib_tiff_TIFFReadScanline" = x""yes; then : | ||
28848 | |||
28849 | evas_image_loader_tiff_libs="-ltiff" | ||
28850 | |||
28851 | else | ||
28852 | have_dep="no" | ||
28853 | |||
28854 | fi | ||
28855 | |||
28856 | |||
28857 | if test "x${have_dep}" = "xno" ; then | ||
28858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5 | ||
28859 | $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; } | ||
28860 | if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then : | ||
28861 | $as_echo_n "(cached) " >&6 | ||
28862 | else | ||
28863 | ac_check_lib_save_LIBS=$LIBS | ||
28864 | LIBS="-ltiff $LIBS" | ||
28865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28866 | /* end confdefs.h. */ | ||
28867 | |||
28868 | /* Override any GCC internal prototype to avoid an error. | ||
28869 | Use char because int might match the return type of a GCC | ||
28870 | builtin and then its argument prototype would still apply. */ | ||
28871 | #ifdef __cplusplus | ||
28872 | extern "C" | ||
28873 | #endif | ||
28874 | char TIFFReadScanline (); | ||
28875 | int | ||
28876 | main () | ||
28877 | { | ||
28878 | return TIFFReadScanline (); | ||
28879 | ; | ||
28880 | return 0; | ||
28881 | } | ||
28882 | _ACEOF | ||
28883 | if ac_fn_c_try_link "$LINENO"; then : | ||
28884 | ac_cv_lib_tiff_TIFFReadScanline=yes | ||
28885 | else | ||
28886 | ac_cv_lib_tiff_TIFFReadScanline=no | ||
28887 | fi | ||
28888 | rm -f core conftest.err conftest.$ac_objext \ | ||
28889 | conftest$ac_exeext conftest.$ac_ext | ||
28890 | LIBS=$ac_check_lib_save_LIBS | ||
28891 | fi | ||
28892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5 | ||
28893 | $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; } | ||
28894 | if test "x$ac_cv_lib_tiff_TIFFReadScanline" = x""yes; then : | ||
28895 | |||
28896 | have_dep="yes" | ||
28897 | evas_image_loader_tiff_libs="-ltiff -ljpeg -lz -lm" | ||
28898 | |||
28899 | |||
28900 | fi | ||
28901 | |||
28902 | fi | ||
28903 | |||
28904 | if test "x${have_dep}" = "xno" ; then | ||
28905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff34" >&5 | ||
28906 | $as_echo_n "checking for TIFFReadScanline in -ltiff34... " >&6; } | ||
28907 | if test "${ac_cv_lib_tiff34_TIFFReadScanline+set}" = set; then : | ||
28908 | $as_echo_n "(cached) " >&6 | ||
28909 | else | ||
28910 | ac_check_lib_save_LIBS=$LIBS | ||
28911 | LIBS="-ltiff34 $LIBS" | ||
28912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28913 | /* end confdefs.h. */ | ||
28914 | |||
28915 | /* Override any GCC internal prototype to avoid an error. | ||
28916 | Use char because int might match the return type of a GCC | ||
28917 | builtin and then its argument prototype would still apply. */ | ||
28918 | #ifdef __cplusplus | ||
28919 | extern "C" | ||
28920 | #endif | ||
28921 | char TIFFReadScanline (); | ||
28922 | int | ||
28923 | main () | ||
28924 | { | ||
28925 | return TIFFReadScanline (); | ||
28926 | ; | ||
28927 | return 0; | ||
28928 | } | ||
28929 | _ACEOF | ||
28930 | if ac_fn_c_try_link "$LINENO"; then : | ||
28931 | ac_cv_lib_tiff34_TIFFReadScanline=yes | ||
28932 | else | ||
28933 | ac_cv_lib_tiff34_TIFFReadScanline=no | ||
28934 | fi | ||
28935 | rm -f core conftest.err conftest.$ac_objext \ | ||
28936 | conftest$ac_exeext conftest.$ac_ext | ||
28937 | LIBS=$ac_check_lib_save_LIBS | ||
28938 | fi | ||
28939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff34_TIFFReadScanline" >&5 | ||
28940 | $as_echo "$ac_cv_lib_tiff34_TIFFReadScanline" >&6; } | ||
28941 | if test "x$ac_cv_lib_tiff34_TIFFReadScanline" = x""yes; then : | ||
28942 | |||
28943 | have_dep="yes" | ||
28944 | evas_image_loader_tiff_libs="-ltiff34 -ljpeg -lz -lm" | ||
28945 | |||
28946 | |||
28947 | fi | ||
28948 | |||
28949 | fi | ||
28950 | fi | ||
28951 | |||
28952 | |||
28953 | |||
28954 | |||
28955 | if test "x${have_dep}" = "xyes" ; then | ||
28956 | have_loader="yes" | ||
28957 | else | ||
28958 | have_loader="no" | ||
28959 | fi | ||
28960 | |||
28961 | |||
28962 | fi | ||
28963 | |||
28964 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
28965 | as_fn_error $? "Tiff dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28966 | fi | ||
28967 | |||
28968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Tiff image loader will be built" >&5 | ||
28969 | $as_echo_n "checking whether Tiff image loader will be built... " >&6; } | ||
28970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
28971 | $as_echo "${have_loader}" >&6; } | ||
28972 | |||
28973 | if test "x${have_loader}" = "xyes" ; then | ||
28974 | if test "x${want_loader}" = "xstatic" ; then | ||
28975 | have_evas_image_loader_tiff="static" | ||
28976 | want_static_loader="yes" | ||
28977 | else | ||
28978 | have_evas_image_loader_tiff="yes" | ||
28979 | fi | ||
28980 | fi | ||
28981 | |||
28982 | if test "x${have_loader}" = "xyes" ; then | ||
28983 | |||
28984 | $as_echo "#define BUILD_LOADER_TIFF 1" >>confdefs.h | ||
28985 | |||
28986 | fi | ||
28987 | |||
28988 | if test "x${have_loader}" = "xyes"; then | ||
28989 | BUILD_LOADER_TIFF_TRUE= | ||
28990 | BUILD_LOADER_TIFF_FALSE='#' | ||
28991 | else | ||
28992 | BUILD_LOADER_TIFF_TRUE='#' | ||
28993 | BUILD_LOADER_TIFF_FALSE= | ||
28994 | fi | ||
28995 | |||
28996 | |||
28997 | if test "x${want_static_loader}" = "xyes" ; then | ||
28998 | |||
28999 | $as_echo "#define EVAS_STATIC_BUILD_TIFF 1" >>confdefs.h | ||
29000 | |||
29001 | have_static_module="yes" | ||
29002 | fi | ||
29003 | |||
29004 | if test "x${want_static_loader}" = "xyes"; then | ||
29005 | EVAS_STATIC_BUILD_TIFF_TRUE= | ||
29006 | EVAS_STATIC_BUILD_TIFF_FALSE='#' | ||
29007 | else | ||
29008 | EVAS_STATIC_BUILD_TIFF_TRUE='#' | ||
29009 | EVAS_STATIC_BUILD_TIFF_FALSE= | ||
29010 | fi | ||
29011 | |||
29012 | |||
29013 | |||
29014 | |||
29015 | |||
29016 | |||
29017 | |||
29018 | |||
29019 | |||
29020 | |||
29021 | |||
29022 | |||
29023 | want_loader="${want_evas_image_loader_xpm}" | ||
29024 | want_static_loader="no" | ||
29025 | have_loader="no" | ||
29026 | have_evas_image_loader_xpm="no" | ||
29027 | |||
29028 | # Check whether --enable-image-loader-xpm was given. | ||
29029 | if test "${enable_image_loader_xpm+set}" = set; then : | ||
29030 | enableval=$enable_image_loader_xpm; | ||
29031 | if test "x${enableval}" = "xyes" ; then | ||
29032 | want_loader="yes" | ||
29033 | else | ||
29034 | if test "x${enableval}" = "xstatic" ; then | ||
29035 | want_loader="static" | ||
29036 | else | ||
29037 | want_loader="no" | ||
29038 | fi | ||
29039 | fi | ||
29040 | |||
29041 | |||
29042 | fi | ||
29043 | |||
29044 | |||
29045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XPM image loader" >&5 | ||
29046 | $as_echo_n "checking whether to enable XPM image loader... " >&6; } | ||
29047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29048 | $as_echo "${want_loader}" >&6; } | ||
29049 | |||
29050 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29051 | |||
29052 | |||
29053 | have_dep="yes" | ||
29054 | evas_image_loader_xpm_cflags="" | ||
29055 | evas_image_loader_xpm_libs="" | ||
29056 | |||
29057 | |||
29058 | |||
29059 | |||
29060 | if test "x${have_dep}" = "xyes" ; then | ||
29061 | have_loader="yes" | ||
29062 | else | ||
29063 | have_loader="no" | ||
29064 | fi | ||
29065 | |||
29066 | |||
29067 | fi | ||
29068 | |||
29069 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29070 | as_fn_error $? "XPM dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29071 | fi | ||
29072 | |||
29073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XPM image loader will be built" >&5 | ||
29074 | $as_echo_n "checking whether XPM image loader will be built... " >&6; } | ||
29075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29076 | $as_echo "${have_loader}" >&6; } | ||
29077 | |||
29078 | if test "x${have_loader}" = "xyes" ; then | ||
29079 | if test "x${want_loader}" = "xstatic" ; then | ||
29080 | have_evas_image_loader_xpm="static" | ||
29081 | want_static_loader="yes" | ||
29082 | else | ||
29083 | have_evas_image_loader_xpm="yes" | ||
29084 | fi | ||
29085 | fi | ||
29086 | |||
29087 | if test "x${have_loader}" = "xyes" ; then | ||
29088 | |||
29089 | $as_echo "#define BUILD_LOADER_XPM 1" >>confdefs.h | ||
29090 | |||
29091 | fi | ||
29092 | |||
29093 | if test "x${have_loader}" = "xyes"; then | ||
29094 | BUILD_LOADER_XPM_TRUE= | ||
29095 | BUILD_LOADER_XPM_FALSE='#' | ||
29096 | else | ||
29097 | BUILD_LOADER_XPM_TRUE='#' | ||
29098 | BUILD_LOADER_XPM_FALSE= | ||
29099 | fi | ||
29100 | |||
29101 | |||
29102 | if test "x${want_static_loader}" = "xyes" ; then | ||
29103 | |||
29104 | $as_echo "#define EVAS_STATIC_BUILD_XPM 1" >>confdefs.h | ||
29105 | |||
29106 | have_static_module="yes" | ||
29107 | fi | ||
29108 | |||
29109 | if test "x${want_static_loader}" = "xyes"; then | ||
29110 | EVAS_STATIC_BUILD_XPM_TRUE= | ||
29111 | EVAS_STATIC_BUILD_XPM_FALSE='#' | ||
29112 | else | ||
29113 | EVAS_STATIC_BUILD_XPM_TRUE='#' | ||
29114 | EVAS_STATIC_BUILD_XPM_FALSE= | ||
29115 | fi | ||
29116 | |||
29117 | |||
29118 | |||
29119 | |||
29120 | |||
29121 | |||
29122 | |||
29123 | |||
29124 | |||
29125 | |||
29126 | |||
29127 | |||
29128 | want_loader="${want_evas_image_loader_bmp}" | ||
29129 | want_static_loader="no" | ||
29130 | have_loader="no" | ||
29131 | have_evas_image_loader_bmp="no" | ||
29132 | |||
29133 | # Check whether --enable-image-loader-bmp was given. | ||
29134 | if test "${enable_image_loader_bmp+set}" = set; then : | ||
29135 | enableval=$enable_image_loader_bmp; | ||
29136 | if test "x${enableval}" = "xyes" ; then | ||
29137 | want_loader="yes" | ||
29138 | else | ||
29139 | if test "x${enableval}" = "xstatic" ; then | ||
29140 | want_loader="static" | ||
29141 | else | ||
29142 | want_loader="no" | ||
29143 | fi | ||
29144 | fi | ||
29145 | |||
29146 | |||
29147 | fi | ||
29148 | |||
29149 | |||
29150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable BMP image loader" >&5 | ||
29151 | $as_echo_n "checking whether to enable BMP image loader... " >&6; } | ||
29152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29153 | $as_echo "${want_loader}" >&6; } | ||
29154 | |||
29155 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29156 | |||
29157 | |||
29158 | have_dep="yes" | ||
29159 | evas_image_loader_bmp_cflags="" | ||
29160 | evas_image_loader_bmp_libs="" | ||
29161 | |||
29162 | |||
29163 | |||
29164 | |||
29165 | if test "x${have_dep}" = "xyes" ; then | ||
29166 | have_loader="yes" | ||
29167 | else | ||
29168 | have_loader="no" | ||
29169 | fi | ||
29170 | |||
29171 | |||
29172 | fi | ||
29173 | |||
29174 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29175 | as_fn_error $? "BMP dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29176 | fi | ||
29177 | |||
29178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BMP image loader will be built" >&5 | ||
29179 | $as_echo_n "checking whether BMP image loader will be built... " >&6; } | ||
29180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29181 | $as_echo "${have_loader}" >&6; } | ||
29182 | |||
29183 | if test "x${have_loader}" = "xyes" ; then | ||
29184 | if test "x${want_loader}" = "xstatic" ; then | ||
29185 | have_evas_image_loader_bmp="static" | ||
29186 | want_static_loader="yes" | ||
29187 | else | ||
29188 | have_evas_image_loader_bmp="yes" | ||
29189 | fi | ||
29190 | fi | ||
29191 | |||
29192 | if test "x${have_loader}" = "xyes" ; then | ||
29193 | |||
29194 | $as_echo "#define BUILD_LOADER_BMP 1" >>confdefs.h | ||
29195 | |||
29196 | fi | ||
29197 | |||
29198 | if test "x${have_loader}" = "xyes"; then | ||
29199 | BUILD_LOADER_BMP_TRUE= | ||
29200 | BUILD_LOADER_BMP_FALSE='#' | ||
29201 | else | ||
29202 | BUILD_LOADER_BMP_TRUE='#' | ||
29203 | BUILD_LOADER_BMP_FALSE= | ||
29204 | fi | ||
29205 | |||
29206 | |||
29207 | if test "x${want_static_loader}" = "xyes" ; then | ||
29208 | |||
29209 | $as_echo "#define EVAS_STATIC_BUILD_BMP 1" >>confdefs.h | ||
29210 | |||
29211 | have_static_module="yes" | ||
29212 | fi | ||
29213 | |||
29214 | if test "x${want_static_loader}" = "xyes"; then | ||
29215 | EVAS_STATIC_BUILD_BMP_TRUE= | ||
29216 | EVAS_STATIC_BUILD_BMP_FALSE='#' | ||
29217 | else | ||
29218 | EVAS_STATIC_BUILD_BMP_TRUE='#' | ||
29219 | EVAS_STATIC_BUILD_BMP_FALSE= | ||
29220 | fi | ||
29221 | |||
29222 | |||
29223 | |||
29224 | |||
29225 | |||
29226 | |||
29227 | |||
29228 | |||
29229 | |||
29230 | |||
29231 | |||
29232 | |||
29233 | want_loader="${want_evas_image_loader_tga}" | ||
29234 | want_static_loader="no" | ||
29235 | have_loader="no" | ||
29236 | have_evas_image_loader_tga="no" | ||
29237 | |||
29238 | # Check whether --enable-image-loader-tga was given. | ||
29239 | if test "${enable_image_loader_tga+set}" = set; then : | ||
29240 | enableval=$enable_image_loader_tga; | ||
29241 | if test "x${enableval}" = "xyes" ; then | ||
29242 | want_loader="yes" | ||
29243 | else | ||
29244 | if test "x${enableval}" = "xstatic" ; then | ||
29245 | want_loader="static" | ||
29246 | else | ||
29247 | want_loader="no" | ||
29248 | fi | ||
29249 | fi | ||
29250 | |||
29251 | |||
29252 | fi | ||
29253 | |||
29254 | |||
29255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TGA image loader" >&5 | ||
29256 | $as_echo_n "checking whether to enable TGA image loader... " >&6; } | ||
29257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29258 | $as_echo "${want_loader}" >&6; } | ||
29259 | |||
29260 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29261 | |||
29262 | |||
29263 | have_dep="yes" | ||
29264 | evas_image_loader_tga_cflags="" | ||
29265 | evas_image_loader_tga_libs="" | ||
29266 | |||
29267 | |||
29268 | |||
29269 | |||
29270 | if test "x${have_dep}" = "xyes" ; then | ||
29271 | have_loader="yes" | ||
29272 | else | ||
29273 | have_loader="no" | ||
29274 | fi | ||
29275 | |||
29276 | |||
29277 | fi | ||
29278 | |||
29279 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29280 | as_fn_error $? "TGA dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29281 | fi | ||
29282 | |||
29283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TGA image loader will be built" >&5 | ||
29284 | $as_echo_n "checking whether TGA image loader will be built... " >&6; } | ||
29285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29286 | $as_echo "${have_loader}" >&6; } | ||
29287 | |||
29288 | if test "x${have_loader}" = "xyes" ; then | ||
29289 | if test "x${want_loader}" = "xstatic" ; then | ||
29290 | have_evas_image_loader_tga="static" | ||
29291 | want_static_loader="yes" | ||
29292 | else | ||
29293 | have_evas_image_loader_tga="yes" | ||
29294 | fi | ||
29295 | fi | ||
29296 | |||
29297 | if test "x${have_loader}" = "xyes" ; then | ||
29298 | |||
29299 | $as_echo "#define BUILD_LOADER_TGA 1" >>confdefs.h | ||
29300 | |||
29301 | fi | ||
29302 | |||
29303 | if test "x${have_loader}" = "xyes"; then | ||
29304 | BUILD_LOADER_TGA_TRUE= | ||
29305 | BUILD_LOADER_TGA_FALSE='#' | ||
29306 | else | ||
29307 | BUILD_LOADER_TGA_TRUE='#' | ||
29308 | BUILD_LOADER_TGA_FALSE= | ||
29309 | fi | ||
29310 | |||
29311 | |||
29312 | if test "x${want_static_loader}" = "xyes" ; then | ||
29313 | |||
29314 | $as_echo "#define EVAS_STATIC_BUILD_TGA 1" >>confdefs.h | ||
29315 | |||
29316 | have_static_module="yes" | ||
29317 | fi | ||
29318 | |||
29319 | if test "x${want_static_loader}" = "xyes"; then | ||
29320 | EVAS_STATIC_BUILD_TGA_TRUE= | ||
29321 | EVAS_STATIC_BUILD_TGA_FALSE='#' | ||
29322 | else | ||
29323 | EVAS_STATIC_BUILD_TGA_TRUE='#' | ||
29324 | EVAS_STATIC_BUILD_TGA_FALSE= | ||
29325 | fi | ||
29326 | |||
29327 | |||
29328 | |||
29329 | |||
29330 | |||
29331 | |||
29332 | |||
29333 | |||
29334 | |||
29335 | |||
29336 | |||
29337 | |||
29338 | want_loader="${want_evas_image_loader_wbmp}" | ||
29339 | want_static_loader="no" | ||
29340 | have_loader="no" | ||
29341 | have_evas_image_loader_wbmp="no" | ||
29342 | |||
29343 | # Check whether --enable-image-loader-wbmp was given. | ||
29344 | if test "${enable_image_loader_wbmp+set}" = set; then : | ||
29345 | enableval=$enable_image_loader_wbmp; | ||
29346 | if test "x${enableval}" = "xyes" ; then | ||
29347 | want_loader="yes" | ||
29348 | else | ||
29349 | if test "x${enableval}" = "xstatic" ; then | ||
29350 | want_loader="static" | ||
29351 | else | ||
29352 | want_loader="no" | ||
29353 | fi | ||
29354 | fi | ||
29355 | |||
29356 | |||
29357 | fi | ||
29358 | |||
29359 | |||
29360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WBMP image loader" >&5 | ||
29361 | $as_echo_n "checking whether to enable WBMP image loader... " >&6; } | ||
29362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29363 | $as_echo "${want_loader}" >&6; } | ||
29364 | |||
29365 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29366 | |||
29367 | |||
29368 | have_dep="yes" | ||
29369 | evas_image_loader_wbmp_cflags="" | ||
29370 | evas_image_loader_wbmp_libs="" | ||
29371 | |||
29372 | |||
29373 | |||
29374 | |||
29375 | if test "x${have_dep}" = "xyes" ; then | ||
29376 | have_loader="yes" | ||
29377 | else | ||
29378 | have_loader="no" | ||
29379 | fi | ||
29380 | |||
29381 | |||
29382 | fi | ||
29383 | |||
29384 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29385 | as_fn_error $? "WBMP dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29386 | fi | ||
29387 | |||
29388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WBMP image loader will be built" >&5 | ||
29389 | $as_echo_n "checking whether WBMP image loader will be built... " >&6; } | ||
29390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29391 | $as_echo "${have_loader}" >&6; } | ||
29392 | |||
29393 | if test "x${have_loader}" = "xyes" ; then | ||
29394 | if test "x${want_loader}" = "xstatic" ; then | ||
29395 | have_evas_image_loader_wbmp="static" | ||
29396 | want_static_loader="yes" | ||
29397 | else | ||
29398 | have_evas_image_loader_wbmp="yes" | ||
29399 | fi | ||
29400 | fi | ||
29401 | |||
29402 | if test "x${have_loader}" = "xyes" ; then | ||
29403 | |||
29404 | $as_echo "#define BUILD_LOADER_WBMP 1" >>confdefs.h | ||
29405 | |||
29406 | fi | ||
29407 | |||
29408 | if test "x${have_loader}" = "xyes"; then | ||
29409 | BUILD_LOADER_WBMP_TRUE= | ||
29410 | BUILD_LOADER_WBMP_FALSE='#' | ||
29411 | else | ||
29412 | BUILD_LOADER_WBMP_TRUE='#' | ||
29413 | BUILD_LOADER_WBMP_FALSE= | ||
29414 | fi | ||
29415 | |||
29416 | |||
29417 | if test "x${want_static_loader}" = "xyes" ; then | ||
29418 | |||
29419 | $as_echo "#define EVAS_STATIC_BUILD_WBMP 1" >>confdefs.h | ||
29420 | |||
29421 | have_static_module="yes" | ||
29422 | fi | ||
29423 | |||
29424 | if test "x${want_static_loader}" = "xyes"; then | ||
29425 | EVAS_STATIC_BUILD_WBMP_TRUE= | ||
29426 | EVAS_STATIC_BUILD_WBMP_FALSE='#' | ||
29427 | else | ||
29428 | EVAS_STATIC_BUILD_WBMP_TRUE='#' | ||
29429 | EVAS_STATIC_BUILD_WBMP_FALSE= | ||
29430 | fi | ||
29431 | |||
29432 | |||
29433 | |||
29434 | |||
29435 | |||
29436 | |||
29437 | |||
29438 | |||
29439 | |||
29440 | |||
29441 | |||
29442 | |||
29443 | want_loader="${want_evas_image_loader_ico}" | ||
29444 | want_static_loader="no" | ||
29445 | have_loader="no" | ||
29446 | have_evas_image_loader_ico="no" | ||
29447 | |||
29448 | # Check whether --enable-image-loader-ico was given. | ||
29449 | if test "${enable_image_loader_ico+set}" = set; then : | ||
29450 | enableval=$enable_image_loader_ico; | ||
29451 | if test "x${enableval}" = "xyes" ; then | ||
29452 | want_loader="yes" | ||
29453 | else | ||
29454 | if test "x${enableval}" = "xstatic" ; then | ||
29455 | want_loader="static" | ||
29456 | else | ||
29457 | want_loader="no" | ||
29458 | fi | ||
29459 | fi | ||
29460 | |||
29461 | |||
29462 | fi | ||
29463 | |||
29464 | |||
29465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ICO image loader" >&5 | ||
29466 | $as_echo_n "checking whether to enable ICO image loader... " >&6; } | ||
29467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29468 | $as_echo "${want_loader}" >&6; } | ||
29469 | |||
29470 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29471 | |||
29472 | |||
29473 | have_dep="yes" | ||
29474 | evas_image_loader_ico_cflags="" | ||
29475 | evas_image_loader_ico_libs="" | ||
29476 | |||
29477 | |||
29478 | |||
29479 | |||
29480 | if test "x${have_dep}" = "xyes" ; then | ||
29481 | have_loader="yes" | ||
29482 | else | ||
29483 | have_loader="no" | ||
29484 | fi | ||
29485 | |||
29486 | |||
29487 | fi | ||
29488 | |||
29489 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29490 | as_fn_error $? "ICO dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29491 | fi | ||
29492 | |||
29493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ICO image loader will be built" >&5 | ||
29494 | $as_echo_n "checking whether ICO image loader will be built... " >&6; } | ||
29495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29496 | $as_echo "${have_loader}" >&6; } | ||
29497 | |||
29498 | if test "x${have_loader}" = "xyes" ; then | ||
29499 | if test "x${want_loader}" = "xstatic" ; then | ||
29500 | have_evas_image_loader_ico="static" | ||
29501 | want_static_loader="yes" | ||
29502 | else | ||
29503 | have_evas_image_loader_ico="yes" | ||
29504 | fi | ||
29505 | fi | ||
29506 | |||
29507 | if test "x${have_loader}" = "xyes" ; then | ||
29508 | |||
29509 | $as_echo "#define BUILD_LOADER_ICO 1" >>confdefs.h | ||
29510 | |||
29511 | fi | ||
29512 | |||
29513 | if test "x${have_loader}" = "xyes"; then | ||
29514 | BUILD_LOADER_ICO_TRUE= | ||
29515 | BUILD_LOADER_ICO_FALSE='#' | ||
29516 | else | ||
29517 | BUILD_LOADER_ICO_TRUE='#' | ||
29518 | BUILD_LOADER_ICO_FALSE= | ||
29519 | fi | ||
29520 | |||
29521 | |||
29522 | if test "x${want_static_loader}" = "xyes" ; then | ||
29523 | |||
29524 | $as_echo "#define EVAS_STATIC_BUILD_ICO 1" >>confdefs.h | ||
29525 | |||
29526 | have_static_module="yes" | ||
29527 | fi | ||
29528 | |||
29529 | if test "x${want_static_loader}" = "xyes"; then | ||
29530 | EVAS_STATIC_BUILD_ICO_TRUE= | ||
29531 | EVAS_STATIC_BUILD_ICO_FALSE='#' | ||
29532 | else | ||
29533 | EVAS_STATIC_BUILD_ICO_TRUE='#' | ||
29534 | EVAS_STATIC_BUILD_ICO_FALSE= | ||
29535 | fi | ||
29536 | |||
29537 | |||
29538 | |||
29539 | |||
29540 | |||
29541 | |||
29542 | |||
29543 | |||
29544 | |||
29545 | |||
29546 | |||
29547 | |||
29548 | want_loader="${want_evas_image_loader_psd}" | ||
29549 | want_static_loader="no" | ||
29550 | have_loader="no" | ||
29551 | have_evas_image_loader_psd="no" | ||
29552 | |||
29553 | # Check whether --enable-image-loader-psd was given. | ||
29554 | if test "${enable_image_loader_psd+set}" = set; then : | ||
29555 | enableval=$enable_image_loader_psd; | ||
29556 | if test "x${enableval}" = "xyes" ; then | ||
29557 | want_loader="yes" | ||
29558 | else | ||
29559 | if test "x${enableval}" = "xstatic" ; then | ||
29560 | want_loader="static" | ||
29561 | else | ||
29562 | want_loader="no" | ||
29563 | fi | ||
29564 | fi | ||
29565 | |||
29566 | |||
29567 | fi | ||
29568 | |||
29569 | |||
29570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PSD image loader" >&5 | ||
29571 | $as_echo_n "checking whether to enable PSD image loader... " >&6; } | ||
29572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29573 | $as_echo "${want_loader}" >&6; } | ||
29574 | |||
29575 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29576 | |||
29577 | |||
29578 | have_dep="yes" | ||
29579 | evas_image_loader_psd_cflags="" | ||
29580 | evas_image_loader_psd_libs="" | ||
29581 | |||
29582 | |||
29583 | |||
29584 | |||
29585 | if test "x${have_dep}" = "xyes" ; then | ||
29586 | have_loader="yes" | ||
29587 | else | ||
29588 | have_loader="no" | ||
29589 | fi | ||
29590 | |||
29591 | |||
29592 | fi | ||
29593 | |||
29594 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29595 | as_fn_error $? "PSD dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29596 | fi | ||
29597 | |||
29598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PSD image loader will be built" >&5 | ||
29599 | $as_echo_n "checking whether PSD image loader will be built... " >&6; } | ||
29600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29601 | $as_echo "${have_loader}" >&6; } | ||
29602 | |||
29603 | if test "x${have_loader}" = "xyes" ; then | ||
29604 | if test "x${want_loader}" = "xstatic" ; then | ||
29605 | have_evas_image_loader_psd="static" | ||
29606 | want_static_loader="yes" | ||
29607 | else | ||
29608 | have_evas_image_loader_psd="yes" | ||
29609 | fi | ||
29610 | fi | ||
29611 | |||
29612 | if test "x${have_loader}" = "xyes" ; then | ||
29613 | |||
29614 | $as_echo "#define BUILD_LOADER_PSD 1" >>confdefs.h | ||
29615 | |||
29616 | fi | ||
29617 | |||
29618 | if test "x${have_loader}" = "xyes"; then | ||
29619 | BUILD_LOADER_PSD_TRUE= | ||
29620 | BUILD_LOADER_PSD_FALSE='#' | ||
29621 | else | ||
29622 | BUILD_LOADER_PSD_TRUE='#' | ||
29623 | BUILD_LOADER_PSD_FALSE= | ||
29624 | fi | ||
29625 | |||
29626 | |||
29627 | if test "x${want_static_loader}" = "xyes" ; then | ||
29628 | |||
29629 | $as_echo "#define EVAS_STATIC_BUILD_PSD 1" >>confdefs.h | ||
29630 | |||
29631 | have_static_module="yes" | ||
29632 | fi | ||
29633 | |||
29634 | if test "x${want_static_loader}" = "xyes"; then | ||
29635 | EVAS_STATIC_BUILD_PSD_TRUE= | ||
29636 | EVAS_STATIC_BUILD_PSD_FALSE='#' | ||
29637 | else | ||
29638 | EVAS_STATIC_BUILD_PSD_TRUE='#' | ||
29639 | EVAS_STATIC_BUILD_PSD_FALSE= | ||
29640 | fi | ||
29641 | |||
29642 | |||
29643 | |||
29644 | |||
29645 | |||
29646 | |||
29647 | |||
29648 | |||
29649 | |||
29650 | |||
29651 | |||
29652 | |||
29653 | want_loader="${want_evas_image_loader_generic}" | ||
29654 | want_static_loader="no" | ||
29655 | have_loader="no" | ||
29656 | have_evas_image_loader_generic="no" | ||
29657 | |||
29658 | # Check whether --enable-image-loader-generic was given. | ||
29659 | if test "${enable_image_loader_generic+set}" = set; then : | ||
29660 | enableval=$enable_image_loader_generic; | ||
29661 | if test "x${enableval}" = "xyes" ; then | ||
29662 | want_loader="yes" | ||
29663 | else | ||
29664 | if test "x${enableval}" = "xstatic" ; then | ||
29665 | want_loader="static" | ||
29666 | else | ||
29667 | want_loader="no" | ||
29668 | fi | ||
29669 | fi | ||
29670 | |||
29671 | |||
29672 | fi | ||
29673 | |||
29674 | |||
29675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GENERIC image loader" >&5 | ||
29676 | $as_echo_n "checking whether to enable GENERIC image loader... " >&6; } | ||
29677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29678 | $as_echo "${want_loader}" >&6; } | ||
29679 | |||
29680 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29681 | |||
29682 | |||
29683 | have_dep="yes" | ||
29684 | evas_image_loader_generic_cflags="" | ||
29685 | evas_image_loader_generic_libs="" | ||
29686 | |||
29687 | |||
29688 | |||
29689 | |||
29690 | if test "x${have_dep}" = "xyes" ; then | ||
29691 | have_loader="yes" | ||
29692 | else | ||
29693 | have_loader="no" | ||
29694 | fi | ||
29695 | |||
29696 | |||
29697 | fi | ||
29698 | |||
29699 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29700 | as_fn_error $? "GENERIC dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29701 | fi | ||
29702 | |||
29703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GENERIC image loader will be built" >&5 | ||
29704 | $as_echo_n "checking whether GENERIC image loader will be built... " >&6; } | ||
29705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29706 | $as_echo "${have_loader}" >&6; } | ||
29707 | |||
29708 | if test "x${have_loader}" = "xyes" ; then | ||
29709 | if test "x${want_loader}" = "xstatic" ; then | ||
29710 | have_evas_image_loader_generic="static" | ||
29711 | want_static_loader="yes" | ||
29712 | else | ||
29713 | have_evas_image_loader_generic="yes" | ||
29714 | fi | ||
29715 | fi | ||
29716 | |||
29717 | if test "x${have_loader}" = "xyes" ; then | ||
29718 | |||
29719 | $as_echo "#define BUILD_LOADER_GENERIC 1" >>confdefs.h | ||
29720 | |||
29721 | fi | ||
29722 | |||
29723 | if test "x${have_loader}" = "xyes"; then | ||
29724 | BUILD_LOADER_GENERIC_TRUE= | ||
29725 | BUILD_LOADER_GENERIC_FALSE='#' | ||
29726 | else | ||
29727 | BUILD_LOADER_GENERIC_TRUE='#' | ||
29728 | BUILD_LOADER_GENERIC_FALSE= | ||
29729 | fi | ||
29730 | |||
29731 | |||
29732 | if test "x${want_static_loader}" = "xyes" ; then | ||
29733 | |||
29734 | $as_echo "#define EVAS_STATIC_BUILD_GENERIC 1" >>confdefs.h | ||
29735 | |||
29736 | have_static_module="yes" | ||
29737 | fi | ||
29738 | |||
29739 | if test "x${want_static_loader}" = "xyes"; then | ||
29740 | EVAS_STATIC_BUILD_GENERIC_TRUE= | ||
29741 | EVAS_STATIC_BUILD_GENERIC_FALSE='#' | ||
29742 | else | ||
29743 | EVAS_STATIC_BUILD_GENERIC_TRUE='#' | ||
29744 | EVAS_STATIC_BUILD_GENERIC_FALSE= | ||
29745 | fi | ||
29746 | |||
29747 | |||
29748 | |||
29749 | |||
29750 | |||
29751 | |||
29752 | |||
29753 | ##################################################################### | ||
29754 | ## Cpu based optimizations | ||
29755 | |||
29756 | ####################################### | ||
29757 | ## PTHREADS | ||
29758 | pthread_cflags="" | ||
29759 | pthread_libs="" | ||
29760 | build_pthreads="no" | ||
29761 | has_pthreads="no" | ||
29762 | need_pthreads="no" | ||
29763 | # basic pthread support | ||
29764 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | ||
29765 | if test "x$ac_cv_header_pthread_h" = x""yes; then : | ||
29766 | |||
29767 | has_pthreads="yes" | ||
29768 | |||
29769 | else | ||
29770 | |||
29771 | has_pthreads="no" | ||
29772 | |||
29773 | |||
29774 | fi | ||
29775 | |||
29776 | |||
29777 | |||
29778 | # sched_getaffinity pthread_attr_setaffinity_np | ||
29779 | for ac_header in pthread.h sched.h | ||
29780 | do : | ||
29781 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
29782 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
29783 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
29784 | cat >>confdefs.h <<_ACEOF | ||
29785 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
29786 | _ACEOF | ||
29787 | |||
29788 | CFLAGS_save="${CFLAGS}" | ||
29789 | CFLAGS="${CFLAGS} -pthread" | ||
29790 | LIBS_save="${LIBS}" | ||
29791 | LIBS="${LIBS} -pthread" | ||
29792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29793 | /* end confdefs.h. */ | ||
29794 | |||
29795 | #include <pthread.h> | ||
29796 | #include <sched.h> | ||
29797 | |||
29798 | int | ||
29799 | main () | ||
29800 | { | ||
29801 | |||
29802 | pthread_attr_setaffinity_np(NULL, 0, NULL); | ||
29803 | pthread_barrier_wait(NULL); | ||
29804 | |||
29805 | ; | ||
29806 | return 0; | ||
29807 | } | ||
29808 | _ACEOF | ||
29809 | if ac_fn_c_try_link "$LINENO"; then : | ||
29810 | build_pthreads="yes" | ||
29811 | else | ||
29812 | build_pthreads="no" | ||
29813 | fi | ||
29814 | rm -f core conftest.err conftest.$ac_objext \ | ||
29815 | conftest$ac_exeext conftest.$ac_ext | ||
29816 | CFLAGS=${CFLAGS_save} | ||
29817 | LIBS=${LIBS_save} | ||
29818 | |||
29819 | else | ||
29820 | build_pthreads="no" | ||
29821 | fi | ||
29822 | |||
29823 | done | ||
29824 | |||
29825 | |||
29826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported" >&5 | ||
29827 | $as_echo_n "checking whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported... " >&6; } | ||
29828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_pthreads}" >&5 | ||
29829 | $as_echo "${build_pthreads}" >&6; } | ||
29830 | |||
29831 | ####################################### | ||
29832 | ## Pthread | ||
29833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build pthread code" >&5 | ||
29834 | $as_echo_n "checking whether to build pthread code... " >&6; } | ||
29835 | # Check whether --enable-pthreads was given. | ||
29836 | if test "${enable_pthreads+set}" = set; then : | ||
29837 | enableval=$enable_pthreads; | ||
29838 | if test "x$enableval" = "xyes" ; then | ||
29839 | if test "x$build_pthreads" = "xyes"; then | ||
29840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29841 | $as_echo "yes" >&6; } | ||
29842 | |||
29843 | $as_echo "#define BUILD_PTHREAD 1" >>confdefs.h | ||
29844 | |||
29845 | build_pthreads="yes" | ||
29846 | need_pthreads="yes" | ||
29847 | else | ||
29848 | if "x$use_strict" = "xyes"; then | ||
29849 | as_fn_error $? "pthreads headers or functions not found (strict dependencies checking)" "$LINENO" 5 | ||
29850 | else | ||
29851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: pthread headers or functions not found" >&5 | ||
29852 | $as_echo "no: pthread headers or functions not found" >&6; } | ||
29853 | fi | ||
29854 | fi | ||
29855 | else | ||
29856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29857 | $as_echo "no" >&6; } | ||
29858 | build_pthreads="no" | ||
29859 | fi | ||
29860 | |||
29861 | else | ||
29862 | |||
29863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_pthreads" >&5 | ||
29864 | $as_echo "$build_pthreads" >&6; } | ||
29865 | if test "x$build_pthreads" = "xyes" ; then | ||
29866 | |||
29867 | $as_echo "#define BUILD_PTHREAD 1" >>confdefs.h | ||
29868 | |||
29869 | need_pthreads="yes" | ||
29870 | fi | ||
29871 | |||
29872 | |||
29873 | fi | ||
29874 | |||
29875 | |||
29876 | ####################################### | ||
29877 | ## Pipe Renderer | ||
29878 | build_pipe_render="no" | ||
29879 | |||
29880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Threaded Pipe Rendering support" >&5 | ||
29881 | $as_echo_n "checking whether to build Threaded Pipe Rendering support... " >&6; } | ||
29882 | # Check whether --enable-pipe-render was given. | ||
29883 | if test "${enable_pipe_render+set}" = set; then : | ||
29884 | enableval=$enable_pipe_render; build_pipe_render=$enableval | ||
29885 | |||
29886 | fi | ||
29887 | |||
29888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_pipe_render" >&5 | ||
29889 | $as_echo "$build_pipe_render" >&6; } | ||
29890 | |||
29891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Threaded Pipe Rendering support" >&5 | ||
29892 | $as_echo_n "checking whether we can build Threaded Pipe Rendering support... " >&6; } | ||
29893 | if test \( "x$build_pipe_render" = "xyes" -o "x$build_pipe_render" = "xauto" \); then | ||
29894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29895 | $as_echo "yes" >&6; } | ||
29896 | |||
29897 | $as_echo "#define BUILD_PIPE_RENDER 1" >>confdefs.h | ||
29898 | |||
29899 | build_pipe_render="yes" | ||
29900 | need_pthreads="yes" | ||
29901 | else | ||
29902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29903 | $as_echo "no" >&6; } | ||
29904 | build_pipe_render="no" | ||
29905 | fi | ||
29906 | |||
29907 | ####################################### | ||
29908 | ## Async Renderer | ||
29909 | build_async_render="no" | ||
29910 | |||
29911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Asynchronously Threaded Pipe Rendering support" >&5 | ||
29912 | $as_echo_n "checking whether to build Asynchronously Threaded Pipe Rendering support... " >&6; } | ||
29913 | # Check whether --enable-async-render was given. | ||
29914 | if test "${enable_async_render+set}" = set; then : | ||
29915 | enableval=$enable_async_render; build_async_render=$enableval | ||
29916 | |||
29917 | fi | ||
29918 | |||
29919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_render" >&5 | ||
29920 | $as_echo "$build_async_render" >&6; } | ||
29921 | |||
29922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Asynchronously Threaded Pipe Rendering support" >&5 | ||
29923 | $as_echo_n "checking whether we can build Asynchronously Threaded Pipe Rendering support... " >&6; } | ||
29924 | if test \( "x$build_async_render" = "xyes" \); then | ||
29925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29926 | $as_echo "yes" >&6; } | ||
29927 | |||
29928 | $as_echo "#define EVAS_FRAME_QUEUING 1" >>confdefs.h | ||
29929 | |||
29930 | build_async_render="yes" | ||
29931 | |||
29932 | $as_echo "#define BUILD_PIPE_RENDER 1" >>confdefs.h | ||
29933 | |||
29934 | build_pipe_render="yes" | ||
29935 | need_pthreads="yes" | ||
29936 | |||
29937 | |||
29938 | pkg_failed=no | ||
29939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 | ||
29940 | $as_echo_n "checking for XEXT... " >&6; } | ||
29941 | |||
29942 | if test -n "$XEXT_CFLAGS"; then | ||
29943 | pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" | ||
29944 | elif test -n "$PKG_CONFIG"; then | ||
29945 | if test -n "$PKG_CONFIG" && \ | ||
29946 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext < 1.1.1\""; } >&5 | ||
29947 | ($PKG_CONFIG --exists --print-errors "xext < 1.1.1") 2>&5 | ||
29948 | ac_status=$? | ||
29949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29950 | test $ac_status = 0; }; then | ||
29951 | pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext < 1.1.1" 2>/dev/null` | ||
29952 | else | ||
29953 | pkg_failed=yes | ||
29954 | fi | ||
29955 | else | ||
29956 | pkg_failed=untried | ||
29957 | fi | ||
29958 | if test -n "$XEXT_LIBS"; then | ||
29959 | pkg_cv_XEXT_LIBS="$XEXT_LIBS" | ||
29960 | elif test -n "$PKG_CONFIG"; then | ||
29961 | if test -n "$PKG_CONFIG" && \ | ||
29962 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext < 1.1.1\""; } >&5 | ||
29963 | ($PKG_CONFIG --exists --print-errors "xext < 1.1.1") 2>&5 | ||
29964 | ac_status=$? | ||
29965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29966 | test $ac_status = 0; }; then | ||
29967 | pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext < 1.1.1" 2>/dev/null` | ||
29968 | else | ||
29969 | pkg_failed=yes | ||
29970 | fi | ||
29971 | else | ||
29972 | pkg_failed=untried | ||
29973 | fi | ||
29974 | |||
29975 | |||
29976 | |||
29977 | if test $pkg_failed = yes; then | ||
29978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29979 | $as_echo "no" >&6; } | ||
29980 | |||
29981 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
29982 | _pkg_short_errors_supported=yes | ||
29983 | else | ||
29984 | _pkg_short_errors_supported=no | ||
29985 | fi | ||
29986 | if test $_pkg_short_errors_supported = yes; then | ||
29987 | XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext < 1.1.1" 2>&1` | ||
29988 | else | ||
29989 | XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext < 1.1.1" 2>&1` | ||
29990 | fi | ||
29991 | # Put the nasty error message in config.log where it belongs | ||
29992 | echo "$XEXT_PKG_ERRORS" >&5 | ||
29993 | |||
29994 | build_avoid_libXext_bug=no | ||
29995 | |||
29996 | elif test $pkg_failed = untried; then | ||
29997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29998 | $as_echo "no" >&6; } | ||
29999 | build_avoid_libXext_bug=no | ||
30000 | |||
30001 | else | ||
30002 | XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS | ||
30003 | XEXT_LIBS=$pkg_cv_XEXT_LIBS | ||
30004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30005 | $as_echo "yes" >&6; } | ||
30006 | build_avoid_libXext_bug=yes | ||
30007 | fi | ||
30008 | if test \( "x$build_avoid_libXext_bug" = "xyes" \); then | ||
30009 | |||
30010 | $as_echo "#define LIBXEXT_VERSION_LOW 1" >>confdefs.h | ||
30011 | |||
30012 | fi | ||
30013 | else | ||
30014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30015 | $as_echo "no" >&6; } | ||
30016 | build_async_render="no" | ||
30017 | fi | ||
30018 | |||
30019 | ####################################### | ||
30020 | ## Async events | ||
30021 | build_async_events="auto" | ||
30022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Async Events support" >&5 | ||
30023 | $as_echo_n "checking whether to build Async Events support... " >&6; } | ||
30024 | # Check whether --enable-async-events was given. | ||
30025 | if test "${enable_async_events+set}" = set; then : | ||
30026 | enableval=$enable_async_events; build_async_events=$enableval | ||
30027 | |||
30028 | fi | ||
30029 | |||
30030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_events" >&5 | ||
30031 | $as_echo "$build_async_events" >&6; } | ||
30032 | |||
30033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Async Events support" >&5 | ||
30034 | $as_echo_n "checking whether we can build Async Events support... " >&6; } | ||
30035 | if test "x$build_async_events" = "xyes" || test "x$build_async_events" = "xauto" ; then | ||
30036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30037 | $as_echo "yes" >&6; } | ||
30038 | |||
30039 | $as_echo "#define BUILD_ASYNC_EVENTS 1" >>confdefs.h | ||
30040 | |||
30041 | build_async_events="yes" | ||
30042 | else | ||
30043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30044 | $as_echo "no" >&6; } | ||
30045 | build_async_events="no" | ||
30046 | fi | ||
30047 | |||
30048 | ####################################### | ||
30049 | ## Async image preload | ||
30050 | build_async_preload="auto" | ||
30051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Async Image Preload support" >&5 | ||
30052 | $as_echo_n "checking whether to build Async Image Preload support... " >&6; } | ||
30053 | # Check whether --enable-async-preload was given. | ||
30054 | if test "${enable_async_preload+set}" = set; then : | ||
30055 | enableval=$enable_async_preload; build_async_preload=$enableval | ||
30056 | |||
30057 | fi | ||
30058 | |||
30059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_preload" >&5 | ||
30060 | $as_echo "$build_async_preload" >&6; } | ||
30061 | |||
30062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Async Image Preload support" >&5 | ||
30063 | $as_echo_n "checking whether we can build Async Image Preload support... " >&6; } | ||
30064 | if test \( "x$build_async_preload" = "xyes" -o "x$build_async_preload" = "xauto" \) -a "x$build_async_events" = "xyes"; then | ||
30065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30066 | $as_echo "yes" >&6; } | ||
30067 | |||
30068 | $as_echo "#define BUILD_ASYNC_PRELOAD 1" >>confdefs.h | ||
30069 | |||
30070 | build_async_preload="yes" | ||
30071 | need_pthreads="yes" | ||
30072 | else | ||
30073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30074 | $as_echo "no" >&6; } | ||
30075 | build_async_preload="no" | ||
30076 | fi | ||
30077 | |||
30078 | ####################################### | ||
30079 | ## Link with pthread if needed | ||
30080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should link with pthread" >&5 | ||
30081 | $as_echo_n "checking whether we should link with pthread... " >&6; } | ||
30082 | if test "x$need_pthreads" = "xyes"; then | ||
30083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30084 | $as_echo "yes" >&6; } | ||
30085 | pthread_cflags="-pthread" | ||
30086 | pthread_libs="-pthread" | ||
30087 | else | ||
30088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30089 | $as_echo "no" >&6; } | ||
30090 | fi | ||
30091 | |||
30092 | ####################################### | ||
30093 | ## MMX | ||
30094 | build_cpu_mmx="no" | ||
30095 | case $host_cpu in | ||
30096 | i*86) | ||
30097 | build_cpu_mmx="yes" | ||
30098 | ;; | ||
30099 | x86_64) | ||
30100 | build_cpu_mmx="yes" | ||
30101 | ;; | ||
30102 | amd64) | ||
30103 | build_cpu_mmx="yes" | ||
30104 | ;; | ||
30105 | esac | ||
30106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build mmx code" >&5 | ||
30107 | $as_echo_n "checking whether to build mmx code... " >&6; } | ||
30108 | # Check whether --enable-cpu-mmx was given. | ||
30109 | if test "${enable_cpu_mmx+set}" = set; then : | ||
30110 | enableval=$enable_cpu_mmx; | ||
30111 | if test "x$enableval" = "xyes" ; then | ||
30112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30113 | $as_echo "yes" >&6; } | ||
30114 | |||
30115 | $as_echo "#define BUILD_MMX 1" >>confdefs.h | ||
30116 | |||
30117 | build_cpu_mmx="yes" | ||
30118 | else | ||
30119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30120 | $as_echo "no" >&6; } | ||
30121 | build_cpu_mmx="no" | ||
30122 | fi | ||
30123 | |||
30124 | else | ||
30125 | |||
30126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_mmx" >&5 | ||
30127 | $as_echo "$build_cpu_mmx" >&6; } | ||
30128 | if test "x$build_cpu_mmx" = "xyes" ; then | ||
30129 | |||
30130 | $as_echo "#define BUILD_MMX 1" >>confdefs.h | ||
30131 | |||
30132 | fi | ||
30133 | |||
30134 | |||
30135 | fi | ||
30136 | |||
30137 | |||
30138 | ####################################### | ||
30139 | ## SSE | ||
30140 | build_cpu_sse="no" | ||
30141 | case $host_cpu in | ||
30142 | i*86) | ||
30143 | build_cpu_sse="yes" | ||
30144 | ;; | ||
30145 | x86_64) | ||
30146 | build_cpu_sse="yes" | ||
30147 | ;; | ||
30148 | amd64) | ||
30149 | build_cpu_sse="yes" | ||
30150 | ;; | ||
30151 | esac | ||
30152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse code" >&5 | ||
30153 | $as_echo_n "checking whether to build sse code... " >&6; } | ||
30154 | # Check whether --enable-cpu-sse was given. | ||
30155 | if test "${enable_cpu_sse+set}" = set; then : | ||
30156 | enableval=$enable_cpu_sse; | ||
30157 | if test "x$enableval" = "xyes" ; then | ||
30158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30159 | $as_echo "yes" >&6; } | ||
30160 | |||
30161 | $as_echo "#define BUILD_SSE 1" >>confdefs.h | ||
30162 | |||
30163 | build_cpu_sse="yes" | ||
30164 | else | ||
30165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30166 | $as_echo "no" >&6; } | ||
30167 | build_cpu_sse="no" | ||
30168 | fi | ||
30169 | |||
30170 | else | ||
30171 | |||
30172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_sse" >&5 | ||
30173 | $as_echo "$build_cpu_sse" >&6; } | ||
30174 | if test "x$build_cpu_sse" = "xyes" ; then | ||
30175 | |||
30176 | $as_echo "#define BUILD_SSE 1" >>confdefs.h | ||
30177 | |||
30178 | fi | ||
30179 | |||
30180 | |||
30181 | fi | ||
30182 | |||
30183 | |||
30184 | ####################################### | ||
30185 | ## SSE3 | ||
30186 | build_cpu_sse3="no" | ||
30187 | case $host_cpu in | ||
30188 | i*86) | ||
30189 | build_cpu_sse3="yes" | ||
30190 | ;; | ||
30191 | x86_64) | ||
30192 | build_cpu_sse3="yes" | ||
30193 | ;; | ||
30194 | amd64) | ||
30195 | build_cpu_sse3="yes" | ||
30196 | ;; | ||
30197 | esac | ||
30198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse3 code" >&5 | ||
30199 | $as_echo_n "checking whether to build sse3 code... " >&6; } | ||
30200 | # Check whether --enable-cpu-sse3 was given. | ||
30201 | if test "${enable_cpu_sse3+set}" = set; then : | ||
30202 | enableval=$enable_cpu_sse3; | ||
30203 | if test "x$enableval" = "xyes" ; then | ||
30204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30205 | $as_echo "yes" >&6; } | ||
30206 | |||
30207 | $as_echo "#define BUILD_SSE3 1" >>confdefs.h | ||
30208 | |||
30209 | build_cpu_sse3="yes" | ||
30210 | else | ||
30211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30212 | $as_echo "no" >&6; } | ||
30213 | build_cpu_sse3="no" | ||
30214 | fi | ||
30215 | |||
30216 | else | ||
30217 | |||
30218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_sse3" >&5 | ||
30219 | $as_echo "$build_cpu_sse3" >&6; } | ||
30220 | if test "x$build_cpu_sse3" = "xyes" ; then | ||
30221 | |||
30222 | $as_echo "#define BUILD_SSE3 1" >>confdefs.h | ||
30223 | |||
30224 | fi | ||
30225 | |||
30226 | |||
30227 | fi | ||
30228 | |||
30229 | |||
30230 | |||
30231 | # as a big warning flag to anyone doing stuff like this... | ||
30232 | # NEVER EVER EVER EVER put **OPTIMIZATION** flags in | ||
30233 | # build flags in makefiles (from configure or anywhere else) | ||
30234 | # EVER as this screws your ability to build 1 binary and | ||
30235 | # cover ALL x86 arch's. This is the HEIGHT of WRONG. If the | ||
30236 | # person building choses to add optimization flags themselves | ||
30237 | # and decide the minimum baseline cpu arch is X then that's | ||
30238 | # their business, but NEVER should it be done here. NEVER. | ||
30239 | # I now have to do this due to the way this sse3 code was done - using | ||
30240 | # intrinsics and "functions" (opcodes) and types that only compile *IF* | ||
30241 | # you compile with -msse3. this ALSO tries to optimize REGULAR c code | ||
30242 | # with sse3 asm.. and this breaks things so badly. so... sse3 will be | ||
30243 | # off until further notice for 32bit x86. | ||
30244 | EVAS_SSE3_CFLAGS=" " | ||
30245 | if test "x$build_cpu_sse3" = "xyes" ; then | ||
30246 | EVAS_SSE3_CFLAGS="-msse3 " | ||
30247 | # CFLAGS="${CFLAGS} ${EVAS_SSE3_CFLAGS}" | ||
30248 | fi | ||
30249 | |||
30250 | |||
30251 | |||
30252 | |||
30253 | ####################################### | ||
30254 | ## ALTIVEC | ||
30255 | build_cpu_altivec="no" | ||
30256 | case $host_cpu in | ||
30257 | *power* | *ppc*) | ||
30258 | build_cpu_altivec="auto" | ||
30259 | ;; | ||
30260 | esac | ||
30261 | altivec_cflags="" | ||
30262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build altivec code" >&5 | ||
30263 | $as_echo_n "checking whether to build altivec code... " >&6; } | ||
30264 | # Check whether --enable-cpu-altivec was given. | ||
30265 | if test "${enable_cpu_altivec+set}" = set; then : | ||
30266 | enableval=$enable_cpu_altivec; build_cpu_altivec=$enableval | ||
30267 | else | ||
30268 | |||
30269 | if test ! "x$build_cpu_altivec" = "xauto"; then | ||
30270 | build_cpu_altivec="no" | ||
30271 | fi | ||
30272 | |||
30273 | |||
30274 | fi | ||
30275 | |||
30276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_altivec" >&5 | ||
30277 | $as_echo "$build_cpu_altivec" >&6; } | ||
30278 | |||
30279 | if test "x$build_cpu_altivec" = "xyes"; then | ||
30280 | ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default" | ||
30281 | if test "x$ac_cv_header_altivec_h" = x""yes; then : | ||
30282 | |||
30283 | |||
30284 | $as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h | ||
30285 | |||
30286 | |||
30287 | $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h | ||
30288 | |||
30289 | build_cpu_altivec="yes" | ||
30290 | |||
30291 | else | ||
30292 | |||
30293 | save_CFLAGS=$CFLAGS | ||
30294 | save_CPPFLAGS=$CPPFLAGS | ||
30295 | CFLAGS=$CFLAGS" -maltivec" | ||
30296 | CPPFLAGS=$CPPFLAGS" -maltivec" | ||
30297 | unset ac_cv_header_altivec_h | ||
30298 | ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default" | ||
30299 | if test "x$ac_cv_header_altivec_h" = x""yes; then : | ||
30300 | |||
30301 | |||
30302 | $as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h | ||
30303 | |||
30304 | |||
30305 | $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h | ||
30306 | |||
30307 | build_cpu_altivec="yes" | ||
30308 | |||
30309 | else | ||
30310 | |||
30311 | if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
30312 | as_fn_error $? "Altivec not found (strict dependencies checking)" "$LINENO" 5 | ||
30313 | fi | ||
30314 | build_cpu_altivec="no" | ||
30315 | |||
30316 | |||
30317 | fi | ||
30318 | |||
30319 | |||
30320 | CFLAGS=$save_CFLAGS | ||
30321 | CPPFLAGS=$save_CPPFLAGS | ||
30322 | |||
30323 | |||
30324 | fi | ||
30325 | |||
30326 | |||
30327 | fi | ||
30328 | |||
30329 | if test "x$build_cpu_altivec" = "xyes"; then | ||
30330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use altivec compiler flag" >&5 | ||
30331 | $as_echo_n "checking whether to use altivec compiler flag... " >&6; } | ||
30332 | if test "x$GCC" = "xyes"; then | ||
30333 | if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then | ||
30334 | altivec_cflags="-faltivec" | ||
30335 | |||
30336 | $as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h | ||
30337 | |||
30338 | elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then | ||
30339 | altivec_cflags="-maltivec" | ||
30340 | |||
30341 | $as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h | ||
30342 | |||
30343 | fi | ||
30344 | fi | ||
30345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $altivec_cflags" >&5 | ||
30346 | $as_echo "$altivec_cflags" >&6; } | ||
30347 | CFLAGS="$CFLAGS $altivec_cflags" | ||
30348 | fi | ||
30349 | |||
30350 | ####################################### | ||
30351 | ## NEON | ||
30352 | build_cpu_neon="no" | ||
30353 | case $host_cpu in | ||
30354 | arm*) | ||
30355 | build_cpu_neon="yes" | ||
30356 | ;; | ||
30357 | esac | ||
30358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build neon code" >&5 | ||
30359 | $as_echo_n "checking whether to build neon code... " >&6; } | ||
30360 | # Check whether --enable-cpu-neon was given. | ||
30361 | if test "${enable_cpu_neon+set}" = set; then : | ||
30362 | enableval=$enable_cpu_neon; | ||
30363 | if test "x$enableval" = "xyes" ; then | ||
30364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
30365 | /* end confdefs.h. */ | ||
30366 | |||
30367 | int | ||
30368 | main () | ||
30369 | { | ||
30370 | asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n") | ||
30371 | ; | ||
30372 | return 0; | ||
30373 | } | ||
30374 | _ACEOF | ||
30375 | if ac_fn_c_try_compile "$LINENO"; then : | ||
30376 | |||
30377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30378 | $as_echo "yes" >&6; } | ||
30379 | |||
30380 | $as_echo "#define BUILD_NEON 1" >>confdefs.h | ||
30381 | |||
30382 | build_cpu_neon="yes" | ||
30383 | |||
30384 | else | ||
30385 | |||
30386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30387 | $as_echo "no" >&6; } | ||
30388 | build_cpu_neon="no" | ||
30389 | |||
30390 | fi | ||
30391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30392 | else | ||
30393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30394 | $as_echo "no" >&6; } | ||
30395 | build_cpu_neon="no" | ||
30396 | fi | ||
30397 | |||
30398 | else | ||
30399 | |||
30400 | if test "x$build_cpu_neon" = "xyes" ; then | ||
30401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
30402 | /* end confdefs.h. */ | ||
30403 | #include <arm_neon.h> | ||
30404 | int | ||
30405 | main () | ||
30406 | { | ||
30407 | asm volatile ("vqadd.u8 d0, d1, d0\n") | ||
30408 | ; | ||
30409 | return 0; | ||
30410 | } | ||
30411 | _ACEOF | ||
30412 | if ac_fn_c_try_compile "$LINENO"; then : | ||
30413 | |||
30414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30415 | $as_echo "yes" >&6; } | ||
30416 | |||
30417 | $as_echo "#define BUILD_NEON 1" >>confdefs.h | ||
30418 | |||
30419 | build_cpu_neon="yes" | ||
30420 | |||
30421 | else | ||
30422 | |||
30423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30424 | $as_echo "no" >&6; } | ||
30425 | build_cpu_neon="no" | ||
30426 | |||
30427 | fi | ||
30428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30429 | fi | ||
30430 | |||
30431 | |||
30432 | fi | ||
30433 | |||
30434 | |||
30435 | ####################################### | ||
30436 | ## C | ||
30437 | build_cpu_c="yes" | ||
30438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build c code" >&5 | ||
30439 | $as_echo_n "checking whether to build c code... " >&6; } | ||
30440 | # Check whether --enable-cpu-c was given. | ||
30441 | if test "${enable_cpu_c+set}" = set; then : | ||
30442 | enableval=$enable_cpu_c; | ||
30443 | if test "x$enableval" = "xyes" ; then | ||
30444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30445 | $as_echo "yes" >&6; } | ||
30446 | |||
30447 | $as_echo "#define BUILD_C 1" >>confdefs.h | ||
30448 | |||
30449 | build_cpu_c="yes" | ||
30450 | else | ||
30451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30452 | $as_echo "no" >&6; } | ||
30453 | build_cpu_c="no" | ||
30454 | fi | ||
30455 | |||
30456 | else | ||
30457 | |||
30458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_c" >&5 | ||
30459 | $as_echo "$build_cpu_c" >&6; } | ||
30460 | if test "x$build_cpu_c" = "xyes" ; then | ||
30461 | |||
30462 | $as_echo "#define BUILD_C 1" >>confdefs.h | ||
30463 | |||
30464 | fi | ||
30465 | |||
30466 | |||
30467 | fi | ||
30468 | |||
30469 | |||
30470 | ####################################### | ||
30471 | ## MAGIC_DEBUG | ||
30472 | want_evas_magic_debug="yes" | ||
30473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check magic for evas object" >&5 | ||
30474 | $as_echo_n "checking whether to check magic for evas object... " >&6; } | ||
30475 | # Check whether --enable-evas-magic-debug was given. | ||
30476 | if test "${enable_evas_magic_debug+set}" = set; then : | ||
30477 | enableval=$enable_evas_magic_debug; want_evas_magic_debug="$enableval" | ||
30478 | |||
30479 | fi | ||
30480 | |||
30481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_evas_magic_debug" >&5 | ||
30482 | $as_echo "$want_evas_magic_debug" >&6; } | ||
30483 | |||
30484 | if test "x$want_evas_magic_debug" = "xyes"; then | ||
30485 | EVAS_MAGIC_DEBUG_TRUE= | ||
30486 | EVAS_MAGIC_DEBUG_FALSE='#' | ||
30487 | else | ||
30488 | EVAS_MAGIC_DEBUG_TRUE='#' | ||
30489 | EVAS_MAGIC_DEBUG_FALSE= | ||
30490 | fi | ||
30491 | |||
30492 | if test "x$want_evas_magic_debug" = "xyes"; then | ||
30493 | |||
30494 | $as_echo "#define EVAS_MAGIC_DEBUG 1" >>confdefs.h | ||
30495 | |||
30496 | fi | ||
30497 | |||
30498 | |||
30499 | ####################################### | ||
30500 | ## Word Caching | ||
30501 | want_word_cache="no" | ||
30502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable caching of rendered words" >&5 | ||
30503 | $as_echo_n "checking whether to enable caching of rendered words... " >&6; } | ||
30504 | # Check whether --enable-word-cache was given. | ||
30505 | if test "${enable_word_cache+set}" = set; then : | ||
30506 | enableval=$enable_word_cache; want_word_cache="$enableval" | ||
30507 | |||
30508 | fi | ||
30509 | |||
30510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_word_cache" >&5 | ||
30511 | $as_echo "$want_word_cache" >&6; } | ||
30512 | |||
30513 | if test "x$want_word_cache" = "xyes"; then | ||
30514 | WORD_CACHE_TRUE= | ||
30515 | WORD_CACHE_FALSE='#' | ||
30516 | else | ||
30517 | WORD_CACHE_TRUE='#' | ||
30518 | WORD_CACHE_FALSE= | ||
30519 | fi | ||
30520 | |||
30521 | if test "x$want_word_cache" = "xyes"; then | ||
30522 | |||
30523 | $as_echo "#define WORD_CACHE 1" >>confdefs.h | ||
30524 | |||
30525 | fi | ||
30526 | |||
30527 | ####################################### | ||
30528 | ## Metric Caching | ||
30529 | want_metric_cache="no" | ||
30530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable caching of rendered metrics" >&5 | ||
30531 | $as_echo_n "checking whether to enable caching of rendered metrics... " >&6; } | ||
30532 | # Check whether --enable-metric-cache was given. | ||
30533 | if test "${enable_metric_cache+set}" = set; then : | ||
30534 | enableval=$enable_metric_cache; want_metric_cache="$enableval" | ||
30535 | |||
30536 | fi | ||
30537 | |||
30538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_metric_cache" >&5 | ||
30539 | $as_echo "$want_metric_cache" >&6; } | ||
30540 | |||
30541 | if test "x$want_metric_cache" = "xyes"; then | ||
30542 | METRIC_CACHE_TRUE= | ||
30543 | METRIC_CACHE_FALSE='#' | ||
30544 | else | ||
30545 | METRIC_CACHE_TRUE='#' | ||
30546 | METRIC_CACHE_FALSE= | ||
30547 | fi | ||
30548 | |||
30549 | if test "x$want_metric_cache" = "xyes"; then | ||
30550 | |||
30551 | $as_echo "#define METRIC_CACHE 1" >>confdefs.h | ||
30552 | |||
30553 | fi | ||
30554 | |||
30555 | |||
30556 | |||
30557 | ##################################################################### | ||
30558 | ## ARGB engine options | ||
30559 | |||
30560 | ####################################### | ||
30561 | ## Nearest sampling scaler | ||
30562 | |||
30563 | |||
30564 | # Check whether --enable-scale-sample was given. | ||
30565 | if test "${enable_scale_sample+set}" = set; then : | ||
30566 | enableval=$enable_scale_sample; | ||
30567 | if test "x${enableval}" = "xyes" ; then | ||
30568 | _efl_enable_scaler_option_scale_sample="yes" | ||
30569 | else | ||
30570 | _efl_enable_scaler_option_scale_sample="no" | ||
30571 | fi | ||
30572 | |||
30573 | else | ||
30574 | _efl_enable_scaler_option_scale_sample="yes" | ||
30575 | fi | ||
30576 | |||
30577 | |||
30578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sampling scaler" >&5 | ||
30579 | $as_echo_n "checking whether to build sampling scaler... " >&6; } | ||
30580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_scaler_option_scale_sample}" >&5 | ||
30581 | $as_echo "${_efl_enable_scaler_option_scale_sample}" >&6; } | ||
30582 | |||
30583 | if test "x${_efl_enable_scaler_option_scale_sample}" = "xyes" ; then | ||
30584 | |||
30585 | $as_echo "#define BUILD_SCALE_SAMPLE 1" >>confdefs.h | ||
30586 | |||
30587 | fi | ||
30588 | |||
30589 | if test "x${_efl_enable_scaler_option_scale_sample}" = "xyes" ; then | ||
30590 | scaler_sample="yes" | ||
30591 | else | ||
30592 | scaler_sample="no" | ||
30593 | fi | ||
30594 | |||
30595 | |||
30596 | |||
30597 | |||
30598 | ## Smooth super and sub sampling scaler | ||
30599 | |||
30600 | |||
30601 | # Check whether --enable-scale-smooth was given. | ||
30602 | if test "${enable_scale_smooth+set}" = set; then : | ||
30603 | enableval=$enable_scale_smooth; | ||
30604 | if test "x${enableval}" = "xyes" ; then | ||
30605 | _efl_enable_scaler_option_scale_smooth="yes" | ||
30606 | else | ||
30607 | _efl_enable_scaler_option_scale_smooth="no" | ||
30608 | fi | ||
30609 | |||
30610 | else | ||
30611 | _efl_enable_scaler_option_scale_smooth="yes" | ||
30612 | fi | ||
30613 | |||
30614 | |||
30615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build smooth scaler" >&5 | ||
30616 | $as_echo_n "checking whether to build smooth scaler... " >&6; } | ||
30617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_scaler_option_scale_smooth}" >&5 | ||
30618 | $as_echo "${_efl_enable_scaler_option_scale_smooth}" >&6; } | ||
30619 | |||
30620 | if test "x${_efl_enable_scaler_option_scale_smooth}" = "xyes" ; then | ||
30621 | |||
30622 | $as_echo "#define BUILD_SCALE_SMOOTH 1" >>confdefs.h | ||
30623 | |||
30624 | fi | ||
30625 | |||
30626 | if test "x${_efl_enable_scaler_option_scale_smooth}" = "xyes" ; then | ||
30627 | scaler_smooth="yes" | ||
30628 | else | ||
30629 | scaler_smooth="no" | ||
30630 | fi | ||
30631 | |||
30632 | |||
30633 | |||
30634 | |||
30635 | |||
30636 | ####################################### | ||
30637 | ## YUV -> ARGB converter | ||
30638 | conv_yuv="no" | ||
30639 | conv_yuv="yes" | ||
30640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build yuv converter code" >&5 | ||
30641 | $as_echo_n "checking whether to build yuv converter code... " >&6; } | ||
30642 | # Check whether --enable-convert-yuv was given. | ||
30643 | if test "${enable_convert_yuv+set}" = set; then : | ||
30644 | enableval=$enable_convert_yuv; | ||
30645 | if test "x$enableval" = "xyes" ; then | ||
30646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30647 | $as_echo "yes" >&6; } | ||
30648 | |||
30649 | $as_echo "#define BUILD_CONVERT_YUV 1" >>confdefs.h | ||
30650 | |||
30651 | conv_yuv="yes" | ||
30652 | else | ||
30653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30654 | $as_echo "no" >&6; } | ||
30655 | conv_yuv="no" | ||
30656 | fi | ||
30657 | |||
30658 | else | ||
30659 | |||
30660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_yuv" >&5 | ||
30661 | $as_echo "$conv_yuv" >&6; } | ||
30662 | if test "x$conv_yuv" = "xyes" ; then | ||
30663 | |||
30664 | $as_echo "#define BUILD_CONVERT_YUV 1" >>confdefs.h | ||
30665 | |||
30666 | fi | ||
30667 | |||
30668 | |||
30669 | fi | ||
30670 | |||
30671 | |||
30672 | ##################################################################### | ||
30673 | ## Output rendering features | ||
30674 | |||
30675 | ####################################### | ||
30676 | ## Small dither mask instead of big one (lower quality) | ||
30677 | |||
30678 | |||
30679 | # Check whether --enable-small-dither-mask was given. | ||
30680 | if test "${enable_small_dither_mask+set}" = set; then : | ||
30681 | enableval=$enable_small_dither_mask; | ||
30682 | if test "x${enableval}" = "xyes" ; then | ||
30683 | _efl_enable_dither_option_small_dither_mask="yes" | ||
30684 | else | ||
30685 | _efl_enable_dither_option_small_dither_mask="no" | ||
30686 | fi | ||
30687 | |||
30688 | else | ||
30689 | _efl_enable_dither_option_small_dither_mask="no" | ||
30690 | fi | ||
30691 | |||
30692 | |||
30693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build small dither mask" >&5 | ||
30694 | $as_echo_n "checking whether to build small dither mask... " >&6; } | ||
30695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_small_dither_mask}" >&5 | ||
30696 | $as_echo "${_efl_enable_dither_option_small_dither_mask}" >&6; } | ||
30697 | |||
30698 | if test "x${_efl_enable_dither_option_small_dither_mask}" = "xyes" ; then | ||
30699 | |||
30700 | $as_echo "#define BUILD_SMALL_DITHER_MASK 1" >>confdefs.h | ||
30701 | |||
30702 | fi | ||
30703 | |||
30704 | if test "x${_efl_enable_dither_option_small_dither_mask}" = "xyes" ; then | ||
30705 | conv_small_dither="yes" | ||
30706 | else | ||
30707 | conv_small_dither="no" | ||
30708 | fi | ||
30709 | |||
30710 | |||
30711 | |||
30712 | |||
30713 | ## Alternate Line dither mask instead of big one (lower quality - but fastest) | ||
30714 | |||
30715 | |||
30716 | # Check whether --enable-line-dither-mask was given. | ||
30717 | if test "${enable_line_dither_mask+set}" = set; then : | ||
30718 | enableval=$enable_line_dither_mask; | ||
30719 | if test "x${enableval}" = "xyes" ; then | ||
30720 | _efl_enable_dither_option_line_dither_mask="yes" | ||
30721 | else | ||
30722 | _efl_enable_dither_option_line_dither_mask="no" | ||
30723 | fi | ||
30724 | |||
30725 | else | ||
30726 | _efl_enable_dither_option_line_dither_mask="no" | ||
30727 | fi | ||
30728 | |||
30729 | |||
30730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build line dither mask" >&5 | ||
30731 | $as_echo_n "checking whether to build line dither mask... " >&6; } | ||
30732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_line_dither_mask}" >&5 | ||
30733 | $as_echo "${_efl_enable_dither_option_line_dither_mask}" >&6; } | ||
30734 | |||
30735 | if test "x${_efl_enable_dither_option_line_dither_mask}" = "xyes" ; then | ||
30736 | |||
30737 | $as_echo "#define BUILD_LINE_DITHER_MASK 1" >>confdefs.h | ||
30738 | |||
30739 | fi | ||
30740 | |||
30741 | if test "x${_efl_enable_dither_option_line_dither_mask}" = "xyes" ; then | ||
30742 | conv_line_dither="yes" | ||
30743 | else | ||
30744 | conv_line_dither="no" | ||
30745 | fi | ||
30746 | |||
30747 | |||
30748 | |||
30749 | |||
30750 | ## No dither mask at all for 16bpp | ||
30751 | |||
30752 | |||
30753 | # Check whether --enable-no-dither-mask was given. | ||
30754 | if test "${enable_no_dither_mask+set}" = set; then : | ||
30755 | enableval=$enable_no_dither_mask; | ||
30756 | if test "x${enableval}" = "xyes" ; then | ||
30757 | _efl_enable_dither_option_no_dither_mask="yes" | ||
30758 | else | ||
30759 | _efl_enable_dither_option_no_dither_mask="no" | ||
30760 | fi | ||
30761 | |||
30762 | else | ||
30763 | _efl_enable_dither_option_no_dither_mask="no" | ||
30764 | fi | ||
30765 | |||
30766 | |||
30767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build conversion to 16bpp without dither mask" >&5 | ||
30768 | $as_echo_n "checking whether to build conversion to 16bpp without dither mask... " >&6; } | ||
30769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_no_dither_mask}" >&5 | ||
30770 | $as_echo "${_efl_enable_dither_option_no_dither_mask}" >&6; } | ||
30771 | |||
30772 | if test "x${_efl_enable_dither_option_no_dither_mask}" = "xyes" ; then | ||
30773 | |||
30774 | $as_echo "#define BUILD_NO_DITHER_MASK 1" >>confdefs.h | ||
30775 | |||
30776 | fi | ||
30777 | |||
30778 | if test "x${_efl_enable_dither_option_no_dither_mask}" = "xyes" ; then | ||
30779 | conv_no_dither="yes" | ||
30780 | else | ||
30781 | conv_no_dither="no" | ||
30782 | fi | ||
30783 | |||
30784 | |||
30785 | |||
30786 | |||
30787 | |||
30788 | ####################################### | ||
30789 | ## Convert to 8bpp RGB 332 | ||
30790 | |||
30791 | |||
30792 | conv_8_rgb_332="no" | ||
30793 | |||
30794 | |||
30795 | # Check whether --enable-convert-8-rgb-332 was given. | ||
30796 | if test "${enable_convert_8_rgb_332+set}" = set; then : | ||
30797 | enableval=$enable_convert_8_rgb_332; conv_8_rgb_332=$enableval | ||
30798 | else | ||
30799 | conv_8_rgb_332=yes | ||
30800 | |||
30801 | fi | ||
30802 | |||
30803 | |||
30804 | |||
30805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 332 converter code" >&5 | ||
30806 | $as_echo_n "checking whether to build 8bpp RGB 332 converter code... " >&6; } | ||
30807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_332" >&5 | ||
30808 | $as_echo "$conv_8_rgb_332" >&6; } | ||
30809 | |||
30810 | if test "x$conv_8_rgb_332" = "xyes" ; then | ||
30811 | |||
30812 | $as_echo "#define BUILD_CONVERT_8_RGB_332 1" >>confdefs.h | ||
30813 | |||
30814 | fi | ||
30815 | |||
30816 | |||
30817 | |||
30818 | |||
30819 | |||
30820 | ## Convert to 8bpp RGB 666 | ||
30821 | |||
30822 | |||
30823 | conv_8_rgb_666="no" | ||
30824 | |||
30825 | |||
30826 | # Check whether --enable-convert-8-rgb-666 was given. | ||
30827 | if test "${enable_convert_8_rgb_666+set}" = set; then : | ||
30828 | enableval=$enable_convert_8_rgb_666; conv_8_rgb_666=$enableval | ||
30829 | else | ||
30830 | conv_8_rgb_666=yes | ||
30831 | |||
30832 | fi | ||
30833 | |||
30834 | |||
30835 | |||
30836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 666 converter code" >&5 | ||
30837 | $as_echo_n "checking whether to build 8bpp RGB 666 converter code... " >&6; } | ||
30838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_666" >&5 | ||
30839 | $as_echo "$conv_8_rgb_666" >&6; } | ||
30840 | |||
30841 | if test "x$conv_8_rgb_666" = "xyes" ; then | ||
30842 | |||
30843 | $as_echo "#define BUILD_CONVERT_8_RGB_666 1" >>confdefs.h | ||
30844 | |||
30845 | fi | ||
30846 | |||
30847 | |||
30848 | |||
30849 | |||
30850 | |||
30851 | ## Convert to 8bpp RGB 232 | ||
30852 | |||
30853 | |||
30854 | conv_8_rgb_232="no" | ||
30855 | |||
30856 | |||
30857 | # Check whether --enable-convert-8-rgb-232 was given. | ||
30858 | if test "${enable_convert_8_rgb_232+set}" = set; then : | ||
30859 | enableval=$enable_convert_8_rgb_232; conv_8_rgb_232=$enableval | ||
30860 | else | ||
30861 | conv_8_rgb_232=yes | ||
30862 | |||
30863 | fi | ||
30864 | |||
30865 | |||
30866 | |||
30867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 232 converter code" >&5 | ||
30868 | $as_echo_n "checking whether to build 8bpp RGB 232 converter code... " >&6; } | ||
30869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_232" >&5 | ||
30870 | $as_echo "$conv_8_rgb_232" >&6; } | ||
30871 | |||
30872 | if test "x$conv_8_rgb_232" = "xyes" ; then | ||
30873 | |||
30874 | $as_echo "#define BUILD_CONVERT_8_RGB_232 1" >>confdefs.h | ||
30875 | |||
30876 | fi | ||
30877 | |||
30878 | |||
30879 | |||
30880 | |||
30881 | |||
30882 | ## Convert to 8bpp RGB 222 | ||
30883 | |||
30884 | |||
30885 | conv_8_rgb_222="no" | ||
30886 | |||
30887 | |||
30888 | # Check whether --enable-convert-8-rgb-222 was given. | ||
30889 | if test "${enable_convert_8_rgb_222+set}" = set; then : | ||
30890 | enableval=$enable_convert_8_rgb_222; conv_8_rgb_222=$enableval | ||
30891 | else | ||
30892 | conv_8_rgb_222=yes | ||
30893 | |||
30894 | fi | ||
30895 | |||
30896 | |||
30897 | |||
30898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 222 converter code" >&5 | ||
30899 | $as_echo_n "checking whether to build 8bpp RGB 222 converter code... " >&6; } | ||
30900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_222" >&5 | ||
30901 | $as_echo "$conv_8_rgb_222" >&6; } | ||
30902 | |||
30903 | if test "x$conv_8_rgb_222" = "xyes" ; then | ||
30904 | |||
30905 | $as_echo "#define BUILD_CONVERT_8_RGB_222 1" >>confdefs.h | ||
30906 | |||
30907 | fi | ||
30908 | |||
30909 | |||
30910 | |||
30911 | |||
30912 | |||
30913 | ## Convert to 8bpp RGB 221 | ||
30914 | |||
30915 | |||
30916 | conv_8_rgb_221="no" | ||
30917 | |||
30918 | |||
30919 | # Check whether --enable-convert-8-rgb-221 was given. | ||
30920 | if test "${enable_convert_8_rgb_221+set}" = set; then : | ||
30921 | enableval=$enable_convert_8_rgb_221; conv_8_rgb_221=$enableval | ||
30922 | else | ||
30923 | conv_8_rgb_221=yes | ||
30924 | |||
30925 | fi | ||
30926 | |||
30927 | |||
30928 | |||
30929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 221 converter code" >&5 | ||
30930 | $as_echo_n "checking whether to build 8bpp RGB 221 converter code... " >&6; } | ||
30931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_221" >&5 | ||
30932 | $as_echo "$conv_8_rgb_221" >&6; } | ||
30933 | |||
30934 | if test "x$conv_8_rgb_221" = "xyes" ; then | ||
30935 | |||
30936 | $as_echo "#define BUILD_CONVERT_8_RGB_221 1" >>confdefs.h | ||
30937 | |||
30938 | fi | ||
30939 | |||
30940 | |||
30941 | |||
30942 | |||
30943 | |||
30944 | ## Convert to 8bpp RGB 121 | ||
30945 | |||
30946 | |||
30947 | conv_8_rgb_121="no" | ||
30948 | |||
30949 | |||
30950 | # Check whether --enable-convert-8-rgb-121 was given. | ||
30951 | if test "${enable_convert_8_rgb_121+set}" = set; then : | ||
30952 | enableval=$enable_convert_8_rgb_121; conv_8_rgb_121=$enableval | ||
30953 | else | ||
30954 | conv_8_rgb_121=yes | ||
30955 | |||
30956 | fi | ||
30957 | |||
30958 | |||
30959 | |||
30960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 121 converter code" >&5 | ||
30961 | $as_echo_n "checking whether to build 8bpp RGB 121 converter code... " >&6; } | ||
30962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_121" >&5 | ||
30963 | $as_echo "$conv_8_rgb_121" >&6; } | ||
30964 | |||
30965 | if test "x$conv_8_rgb_121" = "xyes" ; then | ||
30966 | |||
30967 | $as_echo "#define BUILD_CONVERT_8_RGB_121 1" >>confdefs.h | ||
30968 | |||
30969 | fi | ||
30970 | |||
30971 | |||
30972 | |||
30973 | |||
30974 | |||
30975 | ## Convert to 8bpp RGB 111 | ||
30976 | |||
30977 | |||
30978 | conv_8_rgb_111="no" | ||
30979 | |||
30980 | |||
30981 | # Check whether --enable-convert-8-rgb-111 was given. | ||
30982 | if test "${enable_convert_8_rgb_111+set}" = set; then : | ||
30983 | enableval=$enable_convert_8_rgb_111; conv_8_rgb_111=$enableval | ||
30984 | else | ||
30985 | conv_8_rgb_111=yes | ||
30986 | |||
30987 | fi | ||
30988 | |||
30989 | |||
30990 | |||
30991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 111 converter code" >&5 | ||
30992 | $as_echo_n "checking whether to build 8bpp RGB 111 converter code... " >&6; } | ||
30993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_111" >&5 | ||
30994 | $as_echo "$conv_8_rgb_111" >&6; } | ||
30995 | |||
30996 | if test "x$conv_8_rgb_111" = "xyes" ; then | ||
30997 | |||
30998 | $as_echo "#define BUILD_CONVERT_8_RGB_111 1" >>confdefs.h | ||
30999 | |||
31000 | fi | ||
31001 | |||
31002 | |||
31003 | |||
31004 | |||
31005 | |||
31006 | ## Convert to 16bpp RGB 565 | ||
31007 | |||
31008 | |||
31009 | conv_16_rgb_565="no" | ||
31010 | |||
31011 | |||
31012 | # Check whether --enable-convert-16-rgb-565 was given. | ||
31013 | if test "${enable_convert_16_rgb_565+set}" = set; then : | ||
31014 | enableval=$enable_convert_16_rgb_565; conv_16_rgb_565=$enableval | ||
31015 | else | ||
31016 | conv_16_rgb_565=yes | ||
31017 | |||
31018 | fi | ||
31019 | |||
31020 | |||
31021 | |||
31022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 565 converter code" >&5 | ||
31023 | $as_echo_n "checking whether to build 16bpp RGB 565 converter code... " >&6; } | ||
31024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_565" >&5 | ||
31025 | $as_echo "$conv_16_rgb_565" >&6; } | ||
31026 | |||
31027 | if test "x$conv_16_rgb_565" = "xyes" ; then | ||
31028 | |||
31029 | $as_echo "#define BUILD_CONVERT_16_RGB_565 1" >>confdefs.h | ||
31030 | |||
31031 | fi | ||
31032 | |||
31033 | |||
31034 | |||
31035 | |||
31036 | |||
31037 | ## Convert to 16bpp BGR 565 | ||
31038 | |||
31039 | |||
31040 | conv_16_bgr_565="no" | ||
31041 | |||
31042 | |||
31043 | # Check whether --enable-convert-16-bgr-565 was given. | ||
31044 | if test "${enable_convert_16_bgr_565+set}" = set; then : | ||
31045 | enableval=$enable_convert_16_bgr_565; conv_16_bgr_565=$enableval | ||
31046 | else | ||
31047 | conv_16_bgr_565=yes | ||
31048 | |||
31049 | fi | ||
31050 | |||
31051 | |||
31052 | |||
31053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp BGR 565 converter code" >&5 | ||
31054 | $as_echo_n "checking whether to build 16bpp BGR 565 converter code... " >&6; } | ||
31055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_bgr_565" >&5 | ||
31056 | $as_echo "$conv_16_bgr_565" >&6; } | ||
31057 | |||
31058 | if test "x$conv_16_bgr_565" = "xyes" ; then | ||
31059 | |||
31060 | $as_echo "#define BUILD_CONVERT_16_BGR_565 1" >>confdefs.h | ||
31061 | |||
31062 | fi | ||
31063 | |||
31064 | |||
31065 | |||
31066 | |||
31067 | |||
31068 | ## Convert to 16bpp RGB 555 | ||
31069 | |||
31070 | |||
31071 | conv_16_rgb_555="no" | ||
31072 | |||
31073 | |||
31074 | # Check whether --enable-convert-16-rgb-555 was given. | ||
31075 | if test "${enable_convert_16_rgb_555+set}" = set; then : | ||
31076 | enableval=$enable_convert_16_rgb_555; conv_16_rgb_555=$enableval | ||
31077 | else | ||
31078 | conv_16_rgb_555=yes | ||
31079 | |||
31080 | fi | ||
31081 | |||
31082 | |||
31083 | |||
31084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 555 converter code" >&5 | ||
31085 | $as_echo_n "checking whether to build 16bpp RGB 555 converter code... " >&6; } | ||
31086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_555" >&5 | ||
31087 | $as_echo "$conv_16_rgb_555" >&6; } | ||
31088 | |||
31089 | if test "x$conv_16_rgb_555" = "xyes" ; then | ||
31090 | |||
31091 | $as_echo "#define BUILD_CONVERT_16_RGB_555 1" >>confdefs.h | ||
31092 | |||
31093 | fi | ||
31094 | |||
31095 | |||
31096 | |||
31097 | |||
31098 | |||
31099 | ## Convert to 16bpp RGB 444 | ||
31100 | |||
31101 | |||
31102 | conv_16_rgb_444="no" | ||
31103 | |||
31104 | |||
31105 | # Check whether --enable-convert-16-rgb-444 was given. | ||
31106 | if test "${enable_convert_16_rgb_444+set}" = set; then : | ||
31107 | enableval=$enable_convert_16_rgb_444; conv_16_rgb_444=$enableval | ||
31108 | else | ||
31109 | conv_16_rgb_444=yes | ||
31110 | |||
31111 | fi | ||
31112 | |||
31113 | |||
31114 | |||
31115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 444 converter code" >&5 | ||
31116 | $as_echo_n "checking whether to build 16bpp RGB 444 converter code... " >&6; } | ||
31117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_444" >&5 | ||
31118 | $as_echo "$conv_16_rgb_444" >&6; } | ||
31119 | |||
31120 | if test "x$conv_16_rgb_444" = "xyes" ; then | ||
31121 | |||
31122 | $as_echo "#define BUILD_CONVERT_16_RGB_444 1" >>confdefs.h | ||
31123 | |||
31124 | fi | ||
31125 | |||
31126 | |||
31127 | |||
31128 | |||
31129 | |||
31130 | |||
31131 | ####################################### | ||
31132 | ## Convert to 16bpp RGB 565 (444 ipaq) | ||
31133 | conv_16_rgb_ipq="yes" | ||
31134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp 565 (444 ipaq) converter code" >&5 | ||
31135 | $as_echo_n "checking whether to build 16bpp 565 (444 ipaq) converter code... " >&6; } | ||
31136 | # Check whether --enable-convert-16-rgb-ipq was given. | ||
31137 | if test "${enable_convert_16_rgb_ipq+set}" = set; then : | ||
31138 | enableval=$enable_convert_16_rgb_ipq; | ||
31139 | if test "x$enableval" = "xyes" ; then | ||
31140 | |||
31141 | $as_echo "#define BUILD_CONVERT_16_RGB_454645 1" >>confdefs.h | ||
31142 | |||
31143 | conv_16_rgb_ipq="yes" | ||
31144 | else | ||
31145 | conv_16_rgb_ipq="no" | ||
31146 | fi | ||
31147 | |||
31148 | else | ||
31149 | |||
31150 | if test "x$conv_16_rgb_ipq" = "xyes" ; then | ||
31151 | |||
31152 | $as_echo "#define BUILD_CONVERT_16_RGB_454645 1" >>confdefs.h | ||
31153 | |||
31154 | fi | ||
31155 | |||
31156 | |||
31157 | fi | ||
31158 | |||
31159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_ipq" >&5 | ||
31160 | $as_echo "$conv_16_rgb_ipq" >&6; } | ||
31161 | |||
31162 | ####################################### | ||
31163 | ## Convert to 16bpp RGB with rotation of 0 | ||
31164 | |||
31165 | |||
31166 | conv_16_rgb_rot_0="no" | ||
31167 | |||
31168 | |||
31169 | # Check whether --enable-convert-16-rgb-rot-0 was given. | ||
31170 | if test "${enable_convert_16_rgb_rot_0+set}" = set; then : | ||
31171 | enableval=$enable_convert_16_rgb_rot_0; conv_16_rgb_rot_0=$enableval | ||
31172 | else | ||
31173 | conv_16_rgb_rot_0=yes | ||
31174 | |||
31175 | fi | ||
31176 | |||
31177 | |||
31178 | |||
31179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 0 converter code" >&5 | ||
31180 | $as_echo_n "checking whether to build 16bpp RGB rotation 0 converter code... " >&6; } | ||
31181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_0" >&5 | ||
31182 | $as_echo "$conv_16_rgb_rot_0" >&6; } | ||
31183 | |||
31184 | if test "x$conv_16_rgb_rot_0" = "xyes" ; then | ||
31185 | |||
31186 | $as_echo "#define BUILD_CONVERT_16_RGB_ROT0 1" >>confdefs.h | ||
31187 | |||
31188 | fi | ||
31189 | |||
31190 | |||
31191 | |||
31192 | |||
31193 | |||
31194 | ## Convert to 16bpp RGB with rotation of 180 | ||
31195 | |||
31196 | |||
31197 | conv_16_rgb_rot_180="no" | ||
31198 | |||
31199 | |||
31200 | # Check whether --enable-convert-16-rgb-rot-180 was given. | ||
31201 | if test "${enable_convert_16_rgb_rot_180+set}" = set; then : | ||
31202 | enableval=$enable_convert_16_rgb_rot_180; conv_16_rgb_rot_180=$enableval | ||
31203 | else | ||
31204 | conv_16_rgb_rot_180=yes | ||
31205 | |||
31206 | fi | ||
31207 | |||
31208 | |||
31209 | |||
31210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 180 converter code" >&5 | ||
31211 | $as_echo_n "checking whether to build 16bpp RGB rotation 180 converter code... " >&6; } | ||
31212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_180" >&5 | ||
31213 | $as_echo "$conv_16_rgb_rot_180" >&6; } | ||
31214 | |||
31215 | if test "x$conv_16_rgb_rot_180" = "xyes" ; then | ||
31216 | |||
31217 | $as_echo "#define BUILD_CONVERT_16_RGB_ROT180 1" >>confdefs.h | ||
31218 | |||
31219 | fi | ||
31220 | |||
31221 | |||
31222 | |||
31223 | |||
31224 | |||
31225 | ## Convert to 16bpp RGB with rotation of 270 | ||
31226 | |||
31227 | |||
31228 | conv_16_rgb_rot_270="no" | ||
31229 | |||
31230 | |||
31231 | # Check whether --enable-convert-16-rgb-rot-270 was given. | ||
31232 | if test "${enable_convert_16_rgb_rot_270+set}" = set; then : | ||
31233 | enableval=$enable_convert_16_rgb_rot_270; conv_16_rgb_rot_270=$enableval | ||
31234 | else | ||
31235 | conv_16_rgb_rot_270=yes | ||
31236 | |||
31237 | fi | ||
31238 | |||
31239 | |||
31240 | |||
31241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 270 converter code" >&5 | ||
31242 | $as_echo_n "checking whether to build 16bpp RGB rotation 270 converter code... " >&6; } | ||
31243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_270" >&5 | ||
31244 | $as_echo "$conv_16_rgb_rot_270" >&6; } | ||
31245 | |||
31246 | if test "x$conv_16_rgb_rot_270" = "xyes" ; then | ||
31247 | |||
31248 | $as_echo "#define BUILD_CONVERT_16_RGB_ROT270 1" >>confdefs.h | ||
31249 | |||
31250 | fi | ||
31251 | |||
31252 | |||
31253 | |||
31254 | |||
31255 | |||
31256 | ## Convert to 16bpp RGB with rotation of 90 | ||
31257 | |||
31258 | |||
31259 | conv_16_rgb_rot_90="no" | ||
31260 | |||
31261 | |||
31262 | # Check whether --enable-convert-16-rgb-rot-90 was given. | ||
31263 | if test "${enable_convert_16_rgb_rot_90+set}" = set; then : | ||
31264 | enableval=$enable_convert_16_rgb_rot_90; conv_16_rgb_rot_90=$enableval | ||
31265 | else | ||
31266 | conv_16_rgb_rot_90=yes | ||
31267 | |||
31268 | fi | ||
31269 | |||
31270 | |||
31271 | |||
31272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 90 converter code" >&5 | ||
31273 | $as_echo_n "checking whether to build 16bpp RGB rotation 90 converter code... " >&6; } | ||
31274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_90" >&5 | ||
31275 | $as_echo "$conv_16_rgb_rot_90" >&6; } | ||
31276 | |||
31277 | if test "x$conv_16_rgb_rot_90" = "xyes" ; then | ||
31278 | |||
31279 | $as_echo "#define BUILD_CONVERT_16_RGB_ROT90 1" >>confdefs.h | ||
31280 | |||
31281 | fi | ||
31282 | |||
31283 | |||
31284 | |||
31285 | |||
31286 | |||
31287 | |||
31288 | ####################################### | ||
31289 | ## Convert to 24bpp RGB 888 | ||
31290 | |||
31291 | |||
31292 | conv_24_rgb_888="no" | ||
31293 | |||
31294 | |||
31295 | # Check whether --enable-convert-24-rgb-888 was given. | ||
31296 | if test "${enable_convert_24_rgb_888+set}" = set; then : | ||
31297 | enableval=$enable_convert_24_rgb_888; conv_24_rgb_888=$enableval | ||
31298 | else | ||
31299 | conv_24_rgb_888=yes | ||
31300 | |||
31301 | fi | ||
31302 | |||
31303 | |||
31304 | |||
31305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp RGB 888 converter code" >&5 | ||
31306 | $as_echo_n "checking whether to build 24bpp RGB 888 converter code... " >&6; } | ||
31307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_rgb_888" >&5 | ||
31308 | $as_echo "$conv_24_rgb_888" >&6; } | ||
31309 | |||
31310 | if test "x$conv_24_rgb_888" = "xyes" ; then | ||
31311 | |||
31312 | $as_echo "#define BUILD_CONVERT_24_RGB_888 1" >>confdefs.h | ||
31313 | |||
31314 | fi | ||
31315 | |||
31316 | |||
31317 | |||
31318 | |||
31319 | |||
31320 | ## Convert to 24bpp BGR 888 | ||
31321 | |||
31322 | |||
31323 | conv_24_bgr_888="no" | ||
31324 | |||
31325 | |||
31326 | # Check whether --enable-convert-24-bgr-888 was given. | ||
31327 | if test "${enable_convert_24_bgr_888+set}" = set; then : | ||
31328 | enableval=$enable_convert_24_bgr_888; conv_24_bgr_888=$enableval | ||
31329 | else | ||
31330 | conv_24_bgr_888=yes | ||
31331 | |||
31332 | fi | ||
31333 | |||
31334 | |||
31335 | |||
31336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp BGR 888 converter code" >&5 | ||
31337 | $as_echo_n "checking whether to build 24bpp BGR 888 converter code... " >&6; } | ||
31338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_bgr_888" >&5 | ||
31339 | $as_echo "$conv_24_bgr_888" >&6; } | ||
31340 | |||
31341 | if test "x$conv_24_bgr_888" = "xyes" ; then | ||
31342 | |||
31343 | $as_echo "#define BUILD_CONVERT_24_BGR_888 1" >>confdefs.h | ||
31344 | |||
31345 | fi | ||
31346 | |||
31347 | |||
31348 | |||
31349 | |||
31350 | |||
31351 | ## Convert to 32bpp RGB 8888 | ||
31352 | |||
31353 | |||
31354 | conv_32_rgb_8888="no" | ||
31355 | |||
31356 | |||
31357 | # Check whether --enable-convert-32-rgb-8888 was given. | ||
31358 | if test "${enable_convert_32_rgb_8888+set}" = set; then : | ||
31359 | enableval=$enable_convert_32_rgb_8888; conv_32_rgb_8888=$enableval | ||
31360 | else | ||
31361 | conv_32_rgb_8888=yes | ||
31362 | |||
31363 | fi | ||
31364 | |||
31365 | |||
31366 | |||
31367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB 8888 converter code" >&5 | ||
31368 | $as_echo_n "checking whether to build 32bpp RGB 8888 converter code... " >&6; } | ||
31369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_8888" >&5 | ||
31370 | $as_echo "$conv_32_rgb_8888" >&6; } | ||
31371 | |||
31372 | if test "x$conv_32_rgb_8888" = "xyes" ; then | ||
31373 | |||
31374 | $as_echo "#define BUILD_CONVERT_32_RGB_8888 1" >>confdefs.h | ||
31375 | |||
31376 | fi | ||
31377 | |||
31378 | |||
31379 | |||
31380 | |||
31381 | |||
31382 | ## Convert to 32bpp RGBX 8888 | ||
31383 | |||
31384 | |||
31385 | conv_32_rgbx_8888="no" | ||
31386 | |||
31387 | |||
31388 | # Check whether --enable-convert-32-rgbx-8888 was given. | ||
31389 | if test "${enable_convert_32_rgbx_8888+set}" = set; then : | ||
31390 | enableval=$enable_convert_32_rgbx_8888; conv_32_rgbx_8888=$enableval | ||
31391 | else | ||
31392 | conv_32_rgbx_8888=yes | ||
31393 | |||
31394 | fi | ||
31395 | |||
31396 | |||
31397 | |||
31398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGBX 8888 converter code" >&5 | ||
31399 | $as_echo_n "checking whether to build 32bpp RGBX 8888 converter code... " >&6; } | ||
31400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgbx_8888" >&5 | ||
31401 | $as_echo "$conv_32_rgbx_8888" >&6; } | ||
31402 | |||
31403 | if test "x$conv_32_rgbx_8888" = "xyes" ; then | ||
31404 | |||
31405 | $as_echo "#define BUILD_CONVERT_32_RGBX_8888 1" >>confdefs.h | ||
31406 | |||
31407 | fi | ||
31408 | |||
31409 | |||
31410 | |||
31411 | |||
31412 | |||
31413 | ## Convert to 32bpp BGR 8888 | ||
31414 | |||
31415 | |||
31416 | conv_32_bgr_8888="no" | ||
31417 | |||
31418 | |||
31419 | # Check whether --enable-convert-32-bgr-8888 was given. | ||
31420 | if test "${enable_convert_32_bgr_8888+set}" = set; then : | ||
31421 | enableval=$enable_convert_32_bgr_8888; conv_32_bgr_8888=$enableval | ||
31422 | else | ||
31423 | conv_32_bgr_8888=yes | ||
31424 | |||
31425 | fi | ||
31426 | |||
31427 | |||
31428 | |||
31429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp BGR 8888 converter code" >&5 | ||
31430 | $as_echo_n "checking whether to build 32bpp BGR 8888 converter code... " >&6; } | ||
31431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_bgr_8888" >&5 | ||
31432 | $as_echo "$conv_32_bgr_8888" >&6; } | ||
31433 | |||
31434 | if test "x$conv_32_bgr_8888" = "xyes" ; then | ||
31435 | |||
31436 | $as_echo "#define BUILD_CONVERT_32_BGR_8888 1" >>confdefs.h | ||
31437 | |||
31438 | fi | ||
31439 | |||
31440 | |||
31441 | |||
31442 | |||
31443 | |||
31444 | ## Convert to 32bpp BGRX 8888 | ||
31445 | |||
31446 | |||
31447 | conv_32_bgrx_8888="no" | ||
31448 | |||
31449 | |||
31450 | # Check whether --enable-convert-32-bgrx-8888 was given. | ||
31451 | if test "${enable_convert_32_bgrx_8888+set}" = set; then : | ||
31452 | enableval=$enable_convert_32_bgrx_8888; conv_32_bgrx_8888=$enableval | ||
31453 | else | ||
31454 | conv_32_bgrx_8888=yes | ||
31455 | |||
31456 | fi | ||
31457 | |||
31458 | |||
31459 | |||
31460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp BGRX 8888 converter code" >&5 | ||
31461 | $as_echo_n "checking whether to build 32bpp BGRX 8888 converter code... " >&6; } | ||
31462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_bgrx_8888" >&5 | ||
31463 | $as_echo "$conv_32_bgrx_8888" >&6; } | ||
31464 | |||
31465 | if test "x$conv_32_bgrx_8888" = "xyes" ; then | ||
31466 | |||
31467 | $as_echo "#define BUILD_CONVERT_32_BGRX_8888 1" >>confdefs.h | ||
31468 | |||
31469 | fi | ||
31470 | |||
31471 | |||
31472 | |||
31473 | |||
31474 | |||
31475 | |||
31476 | ####################################### | ||
31477 | ## Convert to 24bpp RGB 666 (666 ezx) | ||
31478 | conv_24_rgb_ezx="yes" | ||
31479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp 666 (666 ezx) converter code" >&5 | ||
31480 | $as_echo_n "checking whether to build 24bpp 666 (666 ezx) converter code... " >&6; } | ||
31481 | # Check whether --enable-convert-24-rgb-ezx was given. | ||
31482 | if test "${enable_convert_24_rgb_ezx+set}" = set; then : | ||
31483 | enableval=$enable_convert_24_rgb_ezx; | ||
31484 | if test "x$enableval" = "xyes" ; then | ||
31485 | |||
31486 | $as_echo "#define BUILD_CONVERT_24_RGB_666 1" >>confdefs.h | ||
31487 | |||
31488 | conv_24_rgb_ezx="yes" | ||
31489 | else | ||
31490 | conv_24_rgb_ezx="no" | ||
31491 | fi | ||
31492 | |||
31493 | else | ||
31494 | |||
31495 | if test "x$conv_24_rgb_ezx" = "xyes" ; then | ||
31496 | |||
31497 | $as_echo "#define BUILD_CONVERT_24_RGB_666 1" >>confdefs.h | ||
31498 | |||
31499 | fi | ||
31500 | |||
31501 | |||
31502 | fi | ||
31503 | |||
31504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_rgb_ezx" >&5 | ||
31505 | $as_echo "$conv_24_rgb_ezx" >&6; } | ||
31506 | |||
31507 | ####################################### | ||
31508 | ## Convert to 32bpp RGB 666 (666 ezx) | ||
31509 | conv_32_rgb_ezx="yes" | ||
31510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp 666 (666 ezx) converter code" >&5 | ||
31511 | $as_echo_n "checking whether to build 32bpp 666 (666 ezx) converter code... " >&6; } | ||
31512 | # Check whether --enable-convert-32-rgb-ezx was given. | ||
31513 | if test "${enable_convert_32_rgb_ezx+set}" = set; then : | ||
31514 | enableval=$enable_convert_32_rgb_ezx; | ||
31515 | if test "x$enableval" = "xyes" ; then | ||
31516 | |||
31517 | $as_echo "#define BUILD_CONVERT_32_RGB_666 1" >>confdefs.h | ||
31518 | |||
31519 | conv_32_rgb_ezx="yes" | ||
31520 | else | ||
31521 | conv_32_rgb_ezx="no" | ||
31522 | fi | ||
31523 | |||
31524 | else | ||
31525 | |||
31526 | if test "x$conv_32_rgb_ezx" = "xyes" ; then | ||
31527 | |||
31528 | $as_echo "#define BUILD_CONVERT_32_RGB_666 1" >>confdefs.h | ||
31529 | |||
31530 | fi | ||
31531 | |||
31532 | |||
31533 | fi | ||
31534 | |||
31535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_ezx" >&5 | ||
31536 | $as_echo "$conv_32_rgb_ezx" >&6; } | ||
31537 | |||
31538 | ####################################### | ||
31539 | ## Convert to 32bpp RGB with rotation of 0 | ||
31540 | |||
31541 | |||
31542 | conv_32_rgb_rot_0="no" | ||
31543 | |||
31544 | |||
31545 | # Check whether --enable-convert-32-rgb-rot-0 was given. | ||
31546 | if test "${enable_convert_32_rgb_rot_0+set}" = set; then : | ||
31547 | enableval=$enable_convert_32_rgb_rot_0; conv_32_rgb_rot_0=$enableval | ||
31548 | else | ||
31549 | conv_32_rgb_rot_0=yes | ||
31550 | |||
31551 | fi | ||
31552 | |||
31553 | |||
31554 | |||
31555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 0 converter code" >&5 | ||
31556 | $as_echo_n "checking whether to build 32bpp RGB rotation 0 converter code... " >&6; } | ||
31557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_0" >&5 | ||
31558 | $as_echo "$conv_32_rgb_rot_0" >&6; } | ||
31559 | |||
31560 | if test "x$conv_32_rgb_rot_0" = "xyes" ; then | ||
31561 | |||
31562 | $as_echo "#define BUILD_CONVERT_32_RGB_ROT0 1" >>confdefs.h | ||
31563 | |||
31564 | fi | ||
31565 | |||
31566 | |||
31567 | |||
31568 | |||
31569 | |||
31570 | ## Convert to 32bpp RGB with rotation of 180 | ||
31571 | |||
31572 | |||
31573 | conv_32_rgb_rot_180="no" | ||
31574 | |||
31575 | |||
31576 | # Check whether --enable-convert-32-rgb-rot-180 was given. | ||
31577 | if test "${enable_convert_32_rgb_rot_180+set}" = set; then : | ||
31578 | enableval=$enable_convert_32_rgb_rot_180; conv_32_rgb_rot_180=$enableval | ||
31579 | else | ||
31580 | conv_32_rgb_rot_180=yes | ||
31581 | |||
31582 | fi | ||
31583 | |||
31584 | |||
31585 | |||
31586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 180 converter code" >&5 | ||
31587 | $as_echo_n "checking whether to build 32bpp RGB rotation 180 converter code... " >&6; } | ||
31588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_180" >&5 | ||
31589 | $as_echo "$conv_32_rgb_rot_180" >&6; } | ||
31590 | |||
31591 | if test "x$conv_32_rgb_rot_180" = "xyes" ; then | ||
31592 | |||
31593 | $as_echo "#define BUILD_CONVERT_32_RGB_ROT180 1" >>confdefs.h | ||
31594 | |||
31595 | fi | ||
31596 | |||
31597 | |||
31598 | |||
31599 | |||
31600 | |||
31601 | ## Convert to 32bpp RGB with rotation of 270 | ||
31602 | |||
31603 | |||
31604 | conv_32_rgb_rot_270="no" | ||
31605 | |||
31606 | |||
31607 | # Check whether --enable-convert-32-rgb-rot-270 was given. | ||
31608 | if test "${enable_convert_32_rgb_rot_270+set}" = set; then : | ||
31609 | enableval=$enable_convert_32_rgb_rot_270; conv_32_rgb_rot_270=$enableval | ||
31610 | else | ||
31611 | conv_32_rgb_rot_270=yes | ||
31612 | |||
31613 | fi | ||
31614 | |||
31615 | |||
31616 | |||
31617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 270 converter code" >&5 | ||
31618 | $as_echo_n "checking whether to build 32bpp RGB rotation 270 converter code... " >&6; } | ||
31619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_270" >&5 | ||
31620 | $as_echo "$conv_32_rgb_rot_270" >&6; } | ||
31621 | |||
31622 | if test "x$conv_32_rgb_rot_270" = "xyes" ; then | ||
31623 | |||
31624 | $as_echo "#define BUILD_CONVERT_32_RGB_ROT270 1" >>confdefs.h | ||
31625 | |||
31626 | fi | ||
31627 | |||
31628 | |||
31629 | |||
31630 | |||
31631 | |||
31632 | ## Convert to 32bpp RGB with rotation of 90 | ||
31633 | |||
31634 | |||
31635 | conv_32_rgb_rot_90="no" | ||
31636 | |||
31637 | |||
31638 | # Check whether --enable-convert-32-rgb-rot-90 was given. | ||
31639 | if test "${enable_convert_32_rgb_rot_90+set}" = set; then : | ||
31640 | enableval=$enable_convert_32_rgb_rot_90; conv_32_rgb_rot_90=$enableval | ||
31641 | else | ||
31642 | conv_32_rgb_rot_90=yes | ||
31643 | |||
31644 | fi | ||
31645 | |||
31646 | |||
31647 | |||
31648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 90 converter code" >&5 | ||
31649 | $as_echo_n "checking whether to build 32bpp RGB rotation 90 converter code... " >&6; } | ||
31650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_90" >&5 | ||
31651 | $as_echo "$conv_32_rgb_rot_90" >&6; } | ||
31652 | |||
31653 | if test "x$conv_32_rgb_rot_90" = "xyes" ; then | ||
31654 | |||
31655 | $as_echo "#define BUILD_CONVERT_32_RGB_ROT90 1" >>confdefs.h | ||
31656 | |||
31657 | fi | ||
31658 | |||
31659 | |||
31660 | |||
31661 | |||
31662 | |||
31663 | |||
31664 | ####################################### | ||
31665 | ## Convert to 8bpp grayscale with 256 value, no palette | ||
31666 | |||
31667 | |||
31668 | conv_8_gry_1="no" | ||
31669 | |||
31670 | |||
31671 | # Check whether --enable-convert-8-gry-1 was given. | ||
31672 | if test "${enable_convert_8_gry_1+set}" = set; then : | ||
31673 | enableval=$enable_convert_8_gry_1; conv_8_gry_1=$enableval | ||
31674 | else | ||
31675 | conv_8_gry_1=yes | ||
31676 | |||
31677 | fi | ||
31678 | |||
31679 | |||
31680 | |||
31681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp GRY 1 converter code" >&5 | ||
31682 | $as_echo_n "checking whether to build 8bpp GRY 1 converter code... " >&6; } | ||
31683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_gry_1" >&5 | ||
31684 | $as_echo "$conv_8_gry_1" >&6; } | ||
31685 | |||
31686 | if test "x$conv_8_gry_1" = "xyes" ; then | ||
31687 | |||
31688 | $as_echo "#define BUILD_CONVERT_8_GRY_1 1" >>confdefs.h | ||
31689 | |||
31690 | fi | ||
31691 | |||
31692 | |||
31693 | |||
31694 | |||
31695 | |||
31696 | ## Convert to 8bpp grayscale with 16 value, no palette | ||
31697 | |||
31698 | |||
31699 | conv_8_gry_16="no" | ||
31700 | |||
31701 | |||
31702 | # Check whether --enable-convert-8-gry-16 was given. | ||
31703 | if test "${enable_convert_8_gry_16+set}" = set; then : | ||
31704 | enableval=$enable_convert_8_gry_16; conv_8_gry_16=$enableval | ||
31705 | else | ||
31706 | conv_8_gry_16=yes | ||
31707 | |||
31708 | fi | ||
31709 | |||
31710 | |||
31711 | |||
31712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp GRY 16 converter code" >&5 | ||
31713 | $as_echo_n "checking whether to build 8bpp GRY 16 converter code... " >&6; } | ||
31714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_gry_16" >&5 | ||
31715 | $as_echo "$conv_8_gry_16" >&6; } | ||
31716 | |||
31717 | if test "x$conv_8_gry_16" = "xyes" ; then | ||
31718 | |||
31719 | $as_echo "#define BUILD_CONVERT_8_GRY_16 1" >>confdefs.h | ||
31720 | |||
31721 | fi | ||
31722 | |||
31723 | |||
31724 | |||
31725 | |||
31726 | |||
31727 | |||
31728 | ####################################### | ||
31729 | ## Convert to 8bpp grayscale, 64-palette | ||
31730 | conv_8_grayscale_64="yes" | ||
31731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp grayscale 64-palette converter code" >&5 | ||
31732 | $as_echo_n "checking whether to build 8bpp grayscale 64-palette converter code... " >&6; } | ||
31733 | # Check whether --enable-convert-8-grayscale-64 was given. | ||
31734 | if test "${enable_convert_8_grayscale_64+set}" = set; then : | ||
31735 | enableval=$enable_convert_8_grayscale_64; | ||
31736 | if test "x$enableval" = "xyes"; then | ||
31737 | |||
31738 | $as_echo "#define BUILD_CONVERT_8_GRAYSCALE_64 1" >>confdefs.h | ||
31739 | |||
31740 | conv_8_grayscale_64="yes" | ||
31741 | else | ||
31742 | conv_8_grayscale_64="no" | ||
31743 | fi | ||
31744 | |||
31745 | else | ||
31746 | |||
31747 | if test "x$conv_8_grayscale_64" = "xyes"; then | ||
31748 | |||
31749 | $as_echo "#define BUILD_CONVERT_8_GRAYSCALE_64 1" >>confdefs.h | ||
31750 | |||
31751 | fi | ||
31752 | |||
31753 | |||
31754 | fi | ||
31755 | |||
31756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_grayscale_64" >&5 | ||
31757 | $as_echo "$conv_8_grayscale_64" >&6; } | ||
31758 | |||
31759 | ## valgrind | ||
31760 | want_valgrind="no" | ||
31761 | have_valgrind="no" | ||
31762 | |||
31763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build with valgrind" >&5 | ||
31764 | $as_echo_n "checking whether to enable build with valgrind... " >&6; } | ||
31765 | # Check whether --enable-valgrind was given. | ||
31766 | if test "${enable_valgrind+set}" = set; then : | ||
31767 | enableval=$enable_valgrind; want_valgrind=$enableval | ||
31768 | |||
31769 | fi | ||
31770 | |||
31771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_valgrind" >&5 | ||
31772 | $as_echo "$want_valgrind" >&6; } | ||
31773 | |||
31774 | if test x$want_valgrind = "xyes"; then | ||
31775 | |||
31776 | pkg_failed=no | ||
31777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 | ||
31778 | $as_echo_n "checking for VALGRIND... " >&6; } | ||
31779 | |||
31780 | if test -n "$VALGRIND_CFLAGS"; then | ||
31781 | pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" | ||
31782 | elif test -n "$PKG_CONFIG"; then | ||
31783 | if test -n "$PKG_CONFIG" && \ | ||
31784 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5 | ||
31785 | ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5 | ||
31786 | ac_status=$? | ||
31787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
31788 | test $ac_status = 0; }; then | ||
31789 | pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= 2.4.0" 2>/dev/null` | ||
31790 | else | ||
31791 | pkg_failed=yes | ||
31792 | fi | ||
31793 | else | ||
31794 | pkg_failed=untried | ||
31795 | fi | ||
31796 | if test -n "$VALGRIND_LIBS"; then | ||
31797 | pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" | ||
31798 | elif test -n "$PKG_CONFIG"; then | ||
31799 | if test -n "$PKG_CONFIG" && \ | ||
31800 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5 | ||
31801 | ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5 | ||
31802 | ac_status=$? | ||
31803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
31804 | test $ac_status = 0; }; then | ||
31805 | pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= 2.4.0" 2>/dev/null` | ||
31806 | else | ||
31807 | pkg_failed=yes | ||
31808 | fi | ||
31809 | else | ||
31810 | pkg_failed=untried | ||
31811 | fi | ||
31812 | |||
31813 | |||
31814 | |||
31815 | if test $pkg_failed = yes; then | ||
31816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
31817 | $as_echo "no" >&6; } | ||
31818 | |||
31819 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
31820 | _pkg_short_errors_supported=yes | ||
31821 | else | ||
31822 | _pkg_short_errors_supported=no | ||
31823 | fi | ||
31824 | if test $_pkg_short_errors_supported = yes; then | ||
31825 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "valgrind >= 2.4.0" 2>&1` | ||
31826 | else | ||
31827 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "valgrind >= 2.4.0" 2>&1` | ||
31828 | fi | ||
31829 | # Put the nasty error message in config.log where it belongs | ||
31830 | echo "$VALGRIND_PKG_ERRORS" >&5 | ||
31831 | |||
31832 | |||
31833 | if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
31834 | as_fn_error $? "Valgrind not found (strict dependencies checking)" "$LINENO" 5 | ||
31835 | fi | ||
31836 | |||
31837 | |||
31838 | elif test $pkg_failed = untried; then | ||
31839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
31840 | $as_echo "no" >&6; } | ||
31841 | |||
31842 | if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
31843 | as_fn_error $? "Valgrind not found (strict dependencies checking)" "$LINENO" 5 | ||
31844 | fi | ||
31845 | |||
31846 | |||
31847 | else | ||
31848 | VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS | ||
31849 | VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS | ||
31850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
31851 | $as_echo "yes" >&6; } | ||
31852 | |||
31853 | |||
31854 | $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h | ||
31855 | |||
31856 | have_valgrind=yes | ||
31857 | requirement_evas="valgrind ${requirement_evas}" | ||
31858 | |||
31859 | fi | ||
31860 | fi | ||
31861 | |||
31862 | ## Examples | ||
31863 | |||
31864 | install_examples="yes" | ||
31865 | # Check whether --enable-install-examples was given. | ||
31866 | if test "${enable_install_examples+set}" = set; then : | ||
31867 | enableval=$enable_install_examples; | ||
31868 | if test "x${enableval}" = "xyes" ; then | ||
31869 | install_examples="yes" | ||
31870 | else | ||
31871 | install_examples="no" | ||
31872 | fi | ||
31873 | |||
31874 | else | ||
31875 | install_examples="yes" | ||
31876 | fi | ||
31877 | |||
31878 | if test "x${install_examples}" = "xyes"; then | ||
31879 | INSTALL_EXAMPLES_TRUE= | ||
31880 | INSTALL_EXAMPLES_FALSE='#' | ||
31881 | else | ||
31882 | INSTALL_EXAMPLES_TRUE='#' | ||
31883 | INSTALL_EXAMPLES_FALSE= | ||
31884 | fi | ||
31885 | |||
31886 | |||
31887 | build_examples="no" | ||
31888 | # Check whether --enable-build-examples was given. | ||
31889 | if test "${enable_build_examples+set}" = set; then : | ||
31890 | enableval=$enable_build_examples; | ||
31891 | if test "x${enableval}" = "xyes" ; then | ||
31892 | build_examples="yes" | ||
31893 | # put in here the dependencies for Evas' examples. they are | ||
31894 | # meant to be 'real world' usage examples, thus one will be | ||
31895 | # using higher level libraries on these programs | ||
31896 | |||
31897 | pkg_failed=no | ||
31898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_EVAS" >&5 | ||
31899 | $as_echo_n "checking for ECORE_EVAS... " >&6; } | ||
31900 | |||
31901 | if test -n "$ECORE_EVAS_CFLAGS"; then | ||
31902 | pkg_cv_ECORE_EVAS_CFLAGS="$ECORE_EVAS_CFLAGS" | ||
31903 | elif test -n "$PKG_CONFIG"; then | ||
31904 | if test -n "$PKG_CONFIG" && \ | ||
31905 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore\""; } >&5 | ||
31906 | ($PKG_CONFIG --exists --print-errors "ecore-evas ecore") 2>&5 | ||
31907 | ac_status=$? | ||
31908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
31909 | test $ac_status = 0; }; then | ||
31910 | pkg_cv_ECORE_EVAS_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas ecore" 2>/dev/null` | ||
31911 | else | ||
31912 | pkg_failed=yes | ||
31913 | fi | ||
31914 | else | ||
31915 | pkg_failed=untried | ||
31916 | fi | ||
31917 | if test -n "$ECORE_EVAS_LIBS"; then | ||
31918 | pkg_cv_ECORE_EVAS_LIBS="$ECORE_EVAS_LIBS" | ||
31919 | elif test -n "$PKG_CONFIG"; then | ||
31920 | if test -n "$PKG_CONFIG" && \ | ||
31921 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore\""; } >&5 | ||
31922 | ($PKG_CONFIG --exists --print-errors "ecore-evas ecore") 2>&5 | ||
31923 | ac_status=$? | ||
31924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
31925 | test $ac_status = 0; }; then | ||
31926 | pkg_cv_ECORE_EVAS_LIBS=`$PKG_CONFIG --libs "ecore-evas ecore" 2>/dev/null` | ||
31927 | else | ||
31928 | pkg_failed=yes | ||
31929 | fi | ||
31930 | else | ||
31931 | pkg_failed=untried | ||
31932 | fi | ||
31933 | |||
31934 | |||
31935 | |||
31936 | if test $pkg_failed = yes; then | ||
31937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
31938 | $as_echo "no" >&6; } | ||
31939 | |||
31940 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
31941 | _pkg_short_errors_supported=yes | ||
31942 | else | ||
31943 | _pkg_short_errors_supported=no | ||
31944 | fi | ||
31945 | if test $_pkg_short_errors_supported = yes; then | ||
31946 | ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas ecore" 2>&1` | ||
31947 | else | ||
31948 | ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas ecore" 2>&1` | ||
31949 | fi | ||
31950 | # Put the nasty error message in config.log where it belongs | ||
31951 | echo "$ECORE_EVAS_PKG_ERRORS" >&5 | ||
31952 | |||
31953 | build_examples="no" | ||
31954 | elif test $pkg_failed = untried; then | ||
31955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
31956 | $as_echo "no" >&6; } | ||
31957 | build_examples="no" | ||
31958 | else | ||
31959 | ECORE_EVAS_CFLAGS=$pkg_cv_ECORE_EVAS_CFLAGS | ||
31960 | ECORE_EVAS_LIBS=$pkg_cv_ECORE_EVAS_LIBS | ||
31961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
31962 | $as_echo "yes" >&6; } | ||
31963 | |||
31964 | fi | ||
31965 | |||
31966 | pkg_failed=no | ||
31967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE" >&5 | ||
31968 | $as_echo_n "checking for EDJE... " >&6; } | ||
31969 | |||
31970 | if test -n "$EDJE_CFLAGS"; then | ||
31971 | pkg_cv_EDJE_CFLAGS="$EDJE_CFLAGS" | ||
31972 | elif test -n "$PKG_CONFIG"; then | ||
31973 | if test -n "$PKG_CONFIG" && \ | ||
31974 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edje\""; } >&5 | ||
31975 | ($PKG_CONFIG --exists --print-errors "edje") 2>&5 | ||
31976 | ac_status=$? | ||
31977 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
31978 | test $ac_status = 0; }; then | ||
31979 | pkg_cv_EDJE_CFLAGS=`$PKG_CONFIG --cflags "edje" 2>/dev/null` | ||
31980 | else | ||
31981 | pkg_failed=yes | ||
31982 | fi | ||
31983 | else | ||
31984 | pkg_failed=untried | ||
31985 | fi | ||
31986 | if test -n "$EDJE_LIBS"; then | ||
31987 | pkg_cv_EDJE_LIBS="$EDJE_LIBS" | ||
31988 | elif test -n "$PKG_CONFIG"; then | ||
31989 | if test -n "$PKG_CONFIG" && \ | ||
31990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edje\""; } >&5 | ||
31991 | ($PKG_CONFIG --exists --print-errors "edje") 2>&5 | ||
31992 | ac_status=$? | ||
31993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
31994 | test $ac_status = 0; }; then | ||
31995 | pkg_cv_EDJE_LIBS=`$PKG_CONFIG --libs "edje" 2>/dev/null` | ||
31996 | else | ||
31997 | pkg_failed=yes | ||
31998 | fi | ||
31999 | else | ||
32000 | pkg_failed=untried | ||
32001 | fi | ||
32002 | |||
32003 | |||
32004 | |||
32005 | if test $pkg_failed = yes; then | ||
32006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32007 | $as_echo "no" >&6; } | ||
32008 | |||
32009 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
32010 | _pkg_short_errors_supported=yes | ||
32011 | else | ||
32012 | _pkg_short_errors_supported=no | ||
32013 | fi | ||
32014 | if test $_pkg_short_errors_supported = yes; then | ||
32015 | EDJE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "edje" 2>&1` | ||
32016 | else | ||
32017 | EDJE_PKG_ERRORS=`$PKG_CONFIG --print-errors "edje" 2>&1` | ||
32018 | fi | ||
32019 | # Put the nasty error message in config.log where it belongs | ||
32020 | echo "$EDJE_PKG_ERRORS" >&5 | ||
32021 | |||
32022 | build_examples="no" | ||
32023 | elif test $pkg_failed = untried; then | ||
32024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32025 | $as_echo "no" >&6; } | ||
32026 | build_examples="no" | ||
32027 | else | ||
32028 | EDJE_CFLAGS=$pkg_cv_EDJE_CFLAGS | ||
32029 | EDJE_LIBS=$pkg_cv_EDJE_LIBS | ||
32030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
32031 | $as_echo "yes" >&6; } | ||
32032 | edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc | ||
32033 | fi | ||
32034 | |||
32035 | else | ||
32036 | build_examples="no" | ||
32037 | fi | ||
32038 | |||
32039 | else | ||
32040 | build_examples="no" | ||
32041 | fi | ||
32042 | |||
32043 | if test "x${build_examples}" = "xyes"; then | ||
32044 | BUILD_EXAMPLES_TRUE= | ||
32045 | BUILD_EXAMPLES_FALSE='#' | ||
32046 | else | ||
32047 | BUILD_EXAMPLES_TRUE='#' | ||
32048 | BUILD_EXAMPLES_FALSE= | ||
32049 | fi | ||
32050 | |||
32051 | |||
32052 | ## Unit tests, coverage | ||
32053 | |||
32054 | |||
32055 | |||
32056 | |||
32057 | # Check whether --enable-tests was given. | ||
32058 | if test "${enable_tests+set}" = set; then : | ||
32059 | enableval=$enable_tests; | ||
32060 | if test "x${enableval}" = "xyes" ; then | ||
32061 | _efl_enable_tests="yes" | ||
32062 | else | ||
32063 | _efl_enable_tests="no" | ||
32064 | fi | ||
32065 | |||
32066 | else | ||
32067 | _efl_enable_tests="no" | ||
32068 | fi | ||
32069 | |||
32070 | |||
32071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
32072 | $as_echo_n "checking whether tests are built... " >&6; } | ||
32073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
32074 | $as_echo "${_efl_enable_tests}" >&6; } | ||
32075 | |||
32076 | |||
32077 | |||
32078 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
32079 | |||
32080 | pkg_failed=no | ||
32081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
32082 | $as_echo_n "checking for CHECK... " >&6; } | ||
32083 | |||
32084 | if test -n "$CHECK_CFLAGS"; then | ||
32085 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
32086 | elif test -n "$PKG_CONFIG"; then | ||
32087 | if test -n "$PKG_CONFIG" && \ | ||
32088 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
32089 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
32090 | ac_status=$? | ||
32091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32092 | test $ac_status = 0; }; then | ||
32093 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
32094 | else | ||
32095 | pkg_failed=yes | ||
32096 | fi | ||
32097 | else | ||
32098 | pkg_failed=untried | ||
32099 | fi | ||
32100 | if test -n "$CHECK_LIBS"; then | ||
32101 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
32102 | elif test -n "$PKG_CONFIG"; then | ||
32103 | if test -n "$PKG_CONFIG" && \ | ||
32104 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
32105 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
32106 | ac_status=$? | ||
32107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32108 | test $ac_status = 0; }; then | ||
32109 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
32110 | else | ||
32111 | pkg_failed=yes | ||
32112 | fi | ||
32113 | else | ||
32114 | pkg_failed=untried | ||
32115 | fi | ||
32116 | |||
32117 | |||
32118 | |||
32119 | if test $pkg_failed = yes; then | ||
32120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32121 | $as_echo "no" >&6; } | ||
32122 | |||
32123 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
32124 | _pkg_short_errors_supported=yes | ||
32125 | else | ||
32126 | _pkg_short_errors_supported=no | ||
32127 | fi | ||
32128 | if test $_pkg_short_errors_supported = yes; then | ||
32129 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
32130 | else | ||
32131 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
32132 | fi | ||
32133 | # Put the nasty error message in config.log where it belongs | ||
32134 | echo "$CHECK_PKG_ERRORS" >&5 | ||
32135 | |||
32136 | _efl_enable_tests="no" | ||
32137 | elif test $pkg_failed = untried; then | ||
32138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32139 | $as_echo "no" >&6; } | ||
32140 | _efl_enable_tests="no" | ||
32141 | else | ||
32142 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
32143 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
32144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
32145 | $as_echo "yes" >&6; } | ||
32146 | dummy="yes" | ||
32147 | fi | ||
32148 | fi | ||
32149 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
32150 | |||
32151 | $as_echo "#define HAVE_TESTS 1" >>confdefs.h | ||
32152 | |||
32153 | fi | ||
32154 | |||
32155 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
32156 | EFL_ENABLE_TESTS_TRUE= | ||
32157 | EFL_ENABLE_TESTS_FALSE='#' | ||
32158 | else | ||
32159 | EFL_ENABLE_TESTS_TRUE='#' | ||
32160 | EFL_ENABLE_TESTS_FALSE= | ||
32161 | fi | ||
32162 | |||
32163 | |||
32164 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
32165 | enable_tests="yes" | ||
32166 | else | ||
32167 | enable_tests="no" | ||
32168 | fi | ||
32169 | |||
32170 | |||
32171 | |||
32172 | |||
32173 | |||
32174 | # Check whether --enable-coverage was given. | ||
32175 | if test "${enable_coverage+set}" = set; then : | ||
32176 | enableval=$enable_coverage; | ||
32177 | if test "x${enableval}" = "xyes" ; then | ||
32178 | _efl_enable_coverage="yes" | ||
32179 | else | ||
32180 | _efl_enable_coverage="no" | ||
32181 | fi | ||
32182 | |||
32183 | else | ||
32184 | _efl_enable_coverage="no" | ||
32185 | fi | ||
32186 | |||
32187 | |||
32188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use profiling instrumentation" >&5 | ||
32189 | $as_echo_n "checking whether to use profiling instrumentation... " >&6; } | ||
32190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_efl_enable_coverage" >&5 | ||
32191 | $as_echo "$_efl_enable_coverage" >&6; } | ||
32192 | |||
32193 | |||
32194 | if test "x$_efl_enable_coverage" = "xyes" && test ! "x${enable_tests}" = "xyes" ; then | ||
32195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&5 | ||
32196 | $as_echo "$as_me: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&2;} | ||
32197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run configure with --enable-tests" >&5 | ||
32198 | $as_echo "$as_me: WARNING: Run configure with --enable-tests" >&2;} | ||
32199 | _efl_enable_coverage="no" | ||
32200 | fi | ||
32201 | |||
32202 | if test "x$_efl_enable_coverage" = "xyes" ; then | ||
32203 | # Extract the first word of "lcov", so it can be a program name with args. | ||
32204 | set dummy lcov; ac_word=$2 | ||
32205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
32206 | $as_echo_n "checking for $ac_word... " >&6; } | ||
32207 | if test "${ac_cv_prog_have_lcov+set}" = set; then : | ||
32208 | $as_echo_n "(cached) " >&6 | ||
32209 | else | ||
32210 | if test -n "$have_lcov"; then | ||
32211 | ac_cv_prog_have_lcov="$have_lcov" # Let the user override the test. | ||
32212 | else | ||
32213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
32214 | for as_dir in $PATH | ||
32215 | do | ||
32216 | IFS=$as_save_IFS | ||
32217 | test -z "$as_dir" && as_dir=. | ||
32218 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
32219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
32220 | ac_cv_prog_have_lcov="yes" | ||
32221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
32222 | break 2 | ||
32223 | fi | ||
32224 | done | ||
32225 | done | ||
32226 | IFS=$as_save_IFS | ||
32227 | |||
32228 | test -z "$ac_cv_prog_have_lcov" && ac_cv_prog_have_lcov="no" | ||
32229 | fi | ||
32230 | fi | ||
32231 | have_lcov=$ac_cv_prog_have_lcov | ||
32232 | if test -n "$have_lcov"; then | ||
32233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lcov" >&5 | ||
32234 | $as_echo "$have_lcov" >&6; } | ||
32235 | else | ||
32236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32237 | $as_echo "no" >&6; } | ||
32238 | fi | ||
32239 | |||
32240 | |||
32241 | if test "x$have_lcov" = "xyes" ; then | ||
32242 | EFL_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" | ||
32243 | EFL_COVERAGE_LIBS="-lgcov" | ||
32244 | # remove any optimisation flag and force debug symbols | ||
32245 | EFL_DEBUG_CFLAGS="-g -O0 -DDEBUG" | ||
32246 | else | ||
32247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov is not found, disable profiling instrumentation" >&5 | ||
32248 | $as_echo "$as_me: WARNING: lcov is not found, disable profiling instrumentation" >&2;} | ||
32249 | _efl_enable_coverage="no" | ||
32250 | fi | ||
32251 | fi | ||
32252 | |||
32253 | |||
32254 | |||
32255 | |||
32256 | if test "x${_efl_enable_coverage}" = "xyes"; then | ||
32257 | EFL_ENABLE_COVERAGE_TRUE= | ||
32258 | EFL_ENABLE_COVERAGE_FALSE='#' | ||
32259 | else | ||
32260 | EFL_ENABLE_COVERAGE_TRUE='#' | ||
32261 | EFL_ENABLE_COVERAGE_FALSE= | ||
32262 | fi | ||
32263 | |||
32264 | |||
32265 | if test "x$_efl_enable_coverage" = "xyes"; then : | ||
32266 | enable_coverage="yes" | ||
32267 | else | ||
32268 | enable_coverage="no" | ||
32269 | fi | ||
32270 | |||
32271 | EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS}" | ||
32272 | EVAS_LIBS="${EVAS_LIBS} ${EFL_COVERAGE_LIBS}" | ||
32273 | if test "x$enable_coverage" = "xyes" ; then | ||
32274 | EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_DEBUG_CFLAGS}" | ||
32275 | fi | ||
32276 | |||
32277 | |||
32278 | |||
32279 | |||
32280 | ##################################################################### | ||
32281 | ## Fill in flags | ||
32282 | |||
32283 | |||
32284 | |||
32285 | |||
32286 | |||
32287 | |||
32288 | |||
32289 | ##################################################################### | ||
32290 | ## Output | ||
32291 | |||
32292 | ac_config_files="$ac_config_files Makefile evas-directfb.pc evas-fb.pc evas-opengl-x11.pc evas-opengl-sdl.pc evas-opengl-cocoa.pc evas-software-buffer.pc evas-software-x11.pc evas-software-8-x11.pc evas-software-16-x11.pc evas-software-gdi.pc evas-software-ddraw.pc evas-software-16-ddraw.pc evas-direct3d.pc evas-software-16-wince.pc evas-software-sdl.pc evas-psl1ght.pc evas.pc doc/evas.dox doc/Makefile doc/Doxyfile src/Makefile src/bin/Makefile src/lib/Makefile src/lib/canvas/Makefile src/lib/file/Makefile src/lib/cache/Makefile src/lib/cserve/Makefile src/lib/engines/Makefile src/lib/engines/common/Makefile src/lib/engines/common/evas_op_add/Makefile src/lib/engines/common/evas_op_blend/Makefile src/lib/engines/common/evas_op_copy/Makefile src/lib/engines/common/evas_op_mask/Makefile src/lib/engines/common/evas_op_mul/Makefile src/lib/engines/common/evas_op_sub/Makefile src/lib/engines/common_8/Makefile src/lib/engines/common_16/Makefile src/modules/Makefile src/modules/engines/Makefile src/modules/engines/software_generic/Makefile src/modules/engines/software_gdi/Makefile src/modules/engines/software_ddraw/Makefile src/modules/engines/direct3d/Makefile src/modules/engines/software_16_wince/Makefile src/modules/engines/software_x11/Makefile src/modules/engines/fb/Makefile src/modules/engines/buffer/Makefile src/modules/engines/directfb/Makefile src/modules/engines/gl_common/Makefile src/modules/engines/gl_x11/Makefile src/modules/engines/gl_sdl/Makefile src/modules/engines/gl_cocoa/Makefile src/modules/engines/psl1ght/Makefile src/modules/engines/software_sdl/Makefile src/modules/engines/software_8/Makefile src/modules/engines/software_8_x11/Makefile src/modules/engines/software_16/Makefile src/modules/engines/software_16_x11/Makefile src/modules/engines/software_16_ddraw/Makefile src/modules/engines/software_16_sdl/Makefile src/modules/loaders/Makefile src/modules/loaders/edb/Makefile src/modules/loaders/eet/Makefile src/modules/loaders/gif/Makefile src/modules/loaders/jpeg/Makefile src/modules/loaders/png/Makefile src/modules/loaders/tiff/Makefile src/modules/loaders/xpm/Makefile src/modules/loaders/bmp/Makefile src/modules/loaders/ico/Makefile src/modules/loaders/tga/Makefile src/modules/loaders/svg/Makefile src/modules/loaders/pmaps/Makefile src/modules/loaders/wbmp/Makefile src/modules/loaders/psd/Makefile src/modules/loaders/generic/Makefile src/modules/savers/Makefile src/modules/savers/edb/Makefile src/modules/savers/eet/Makefile src/modules/savers/jpeg/Makefile src/modules/savers/png/Makefile src/modules/savers/tiff/Makefile src/static_deps/Makefile src/static_deps/liblinebreak/Makefile src/lib/include/Makefile src/examples/Makefile src/tests/Makefile evas.spec" | ||
32293 | |||
32294 | cat >confcache <<\_ACEOF | ||
32295 | # This file is a shell script that caches the results of configure | ||
32296 | # tests run on this system so they can be shared between configure | ||
32297 | # scripts and configure runs, see configure's option --config-cache. | ||
32298 | # It is not useful on other systems. If it contains results you don't | ||
32299 | # want to keep, you may remove or edit it. | ||
32300 | # | ||
32301 | # config.status only pays attention to the cache file if you give it | ||
32302 | # the --recheck option to rerun configure. | ||
32303 | # | ||
32304 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
32305 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
32306 | # following values. | ||
32307 | |||
32308 | _ACEOF | ||
32309 | |||
32310 | # The following way of writing the cache mishandles newlines in values, | ||
32311 | # but we know of no workaround that is simple, portable, and efficient. | ||
32312 | # So, we kill variables containing newlines. | ||
32313 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
32314 | # and sets the high bit in the cache file unless we assign to the vars. | ||
32315 | ( | ||
32316 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
32317 | eval ac_val=\$$ac_var | ||
32318 | case $ac_val in #( | ||
32319 | *${as_nl}*) | ||
32320 | case $ac_var in #( | ||
32321 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
32322 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
32323 | esac | ||
32324 | case $ac_var in #( | ||
32325 | _ | IFS | as_nl) ;; #( | ||
32326 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
32327 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
32328 | esac ;; | ||
32329 | esac | ||
32330 | done | ||
32331 | |||
32332 | (set) 2>&1 | | ||
32333 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
32334 | *${as_nl}ac_space=\ *) | ||
32335 | # `set' does not quote correctly, so add quotes: double-quote | ||
32336 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
32337 | sed -n \ | ||
32338 | "s/'/'\\\\''/g; | ||
32339 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
32340 | ;; #( | ||
32341 | *) | ||
32342 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
32343 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
32344 | ;; | ||
32345 | esac | | ||
32346 | sort | ||
32347 | ) | | ||
32348 | sed ' | ||
32349 | /^ac_cv_env_/b end | ||
32350 | t clear | ||
32351 | :clear | ||
32352 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
32353 | t end | ||
32354 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
32355 | :end' >>confcache | ||
32356 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
32357 | if test -w "$cache_file"; then | ||
32358 | test "x$cache_file" != "x/dev/null" && | ||
32359 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
32360 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
32361 | cat confcache >$cache_file | ||
32362 | else | ||
32363 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
32364 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
32365 | fi | ||
32366 | fi | ||
32367 | rm -f confcache | ||
32368 | |||
32369 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
32370 | # Let make expand exec_prefix. | ||
32371 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
32372 | |||
32373 | DEFS=-DHAVE_CONFIG_H | ||
32374 | |||
32375 | ac_libobjs= | ||
32376 | ac_ltlibobjs= | ||
32377 | U= | ||
32378 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
32379 | # 1. Remove the extension, and $U if already installed. | ||
32380 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
32381 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
32382 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
32383 | # will be set to the directory where LIBOBJS objects are built. | ||
32384 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
32385 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
32386 | done | ||
32387 | LIBOBJS=$ac_libobjs | ||
32388 | |||
32389 | LTLIBOBJS=$ac_ltlibobjs | ||
32390 | |||
32391 | |||
32392 | if test -n "$EXEEXT"; then | ||
32393 | am__EXEEXT_TRUE= | ||
32394 | am__EXEEXT_FALSE='#' | ||
32395 | else | ||
32396 | am__EXEEXT_TRUE='#' | ||
32397 | am__EXEEXT_FALSE= | ||
32398 | fi | ||
32399 | |||
32400 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
32401 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
32402 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32403 | fi | ||
32404 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
32405 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
32406 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32407 | fi | ||
32408 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
32409 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
32410 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32411 | fi | ||
32412 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
32413 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
32414 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32415 | fi | ||
32416 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
32417 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
32418 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32419 | fi | ||
32420 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
32421 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
32422 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32423 | fi | ||
32424 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
32425 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
32426 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32427 | fi | ||
32428 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
32429 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
32430 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32431 | fi | ||
32432 | if test -z "${EVAS_USE_LINEBREAK_TRUE}" && test -z "${EVAS_USE_LINEBREAK_FALSE}"; then | ||
32433 | as_fn_error $? "conditional \"EVAS_USE_LINEBREAK\" was never defined. | ||
32434 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32435 | fi | ||
32436 | |||
32437 | if test -z "${EVAS_CSERVE_TRUE}" && test -z "${EVAS_CSERVE_FALSE}"; then | ||
32438 | as_fn_error $? "conditional \"EVAS_CSERVE\" was never defined. | ||
32439 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32440 | fi | ||
32441 | if test -z "${BUILD_ENGINE_BUFFER_TRUE}" && test -z "${BUILD_ENGINE_BUFFER_FALSE}"; then | ||
32442 | as_fn_error $? "conditional \"BUILD_ENGINE_BUFFER\" was never defined. | ||
32443 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32444 | fi | ||
32445 | if test -z "${EVAS_STATIC_BUILD_BUFFER_TRUE}" && test -z "${EVAS_STATIC_BUILD_BUFFER_FALSE}"; then | ||
32446 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_BUFFER\" was never defined. | ||
32447 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32448 | fi | ||
32449 | if test -z "${BUILD_ENGINE_SOFTWARE_GDI_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_GDI_FALSE}"; then | ||
32450 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_GDI\" was never defined. | ||
32451 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32452 | fi | ||
32453 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE}"; then | ||
32454 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_GDI\" was never defined. | ||
32455 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32456 | fi | ||
32457 | if test -z "${BUILD_ENGINE_SOFTWARE_DDRAW_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_DDRAW_FALSE}"; then | ||
32458 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_DDRAW\" was never defined. | ||
32459 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32460 | fi | ||
32461 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE}"; then | ||
32462 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_DDRAW\" was never defined. | ||
32463 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32464 | fi | ||
32465 | if test -z "${BUILD_ENGINE_DIRECT3D_TRUE}" && test -z "${BUILD_ENGINE_DIRECT3D_FALSE}"; then | ||
32466 | as_fn_error $? "conditional \"BUILD_ENGINE_DIRECT3D\" was never defined. | ||
32467 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32468 | fi | ||
32469 | if test -z "${EVAS_STATIC_BUILD_DIRECT3D_TRUE}" && test -z "${EVAS_STATIC_BUILD_DIRECT3D_FALSE}"; then | ||
32470 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_DIRECT3D\" was never defined. | ||
32471 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32472 | fi | ||
32473 | if test -z "${BUILD_ENGINE_SOFTWARE_SDL_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_SDL_FALSE}"; then | ||
32474 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_SDL\" was never defined. | ||
32475 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32476 | fi | ||
32477 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_SDL_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_SDL_FALSE}"; then | ||
32478 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_SDL\" was never defined. | ||
32479 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32480 | fi | ||
32481 | if test -z "${BUILD_ENGINE_PSL1GHT_TRUE}" && test -z "${BUILD_ENGINE_PSL1GHT_FALSE}"; then | ||
32482 | as_fn_error $? "conditional \"BUILD_ENGINE_PSL1GHT\" was never defined. | ||
32483 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32484 | fi | ||
32485 | if test -z "${EVAS_STATIC_BUILD_PSL1GHT_TRUE}" && test -z "${EVAS_STATIC_BUILD_PSL1GHT_FALSE}"; then | ||
32486 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PSL1GHT\" was never defined. | ||
32487 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32488 | fi | ||
32489 | if test -z "${BUILD_ENGINE_GL_SDL_TRUE}" && test -z "${BUILD_ENGINE_GL_SDL_FALSE}"; then | ||
32490 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_SDL\" was never defined. | ||
32491 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32492 | fi | ||
32493 | if test -z "${EVAS_STATIC_BUILD_GL_SDL_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_SDL_FALSE}"; then | ||
32494 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_SDL\" was never defined. | ||
32495 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32496 | fi | ||
32497 | if test -z "${BUILD_ENGINE_GL_COCOA_TRUE}" && test -z "${BUILD_ENGINE_GL_COCOA_FALSE}"; then | ||
32498 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_COCOA\" was never defined. | ||
32499 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32500 | fi | ||
32501 | if test -z "${EVAS_STATIC_BUILD_GL_COCOA_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_COCOA_FALSE}"; then | ||
32502 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_COCOA\" was never defined. | ||
32503 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32504 | fi | ||
32505 | if test -z "${BUILD_ENGINE_FB_TRUE}" && test -z "${BUILD_ENGINE_FB_FALSE}"; then | ||
32506 | as_fn_error $? "conditional \"BUILD_ENGINE_FB\" was never defined. | ||
32507 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32508 | fi | ||
32509 | if test -z "${EVAS_STATIC_BUILD_FB_TRUE}" && test -z "${EVAS_STATIC_BUILD_FB_FALSE}"; then | ||
32510 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_FB\" was never defined. | ||
32511 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32512 | fi | ||
32513 | if test -z "${BUILD_ENGINE_DIRECTFB_TRUE}" && test -z "${BUILD_ENGINE_DIRECTFB_FALSE}"; then | ||
32514 | as_fn_error $? "conditional \"BUILD_ENGINE_DIRECTFB\" was never defined. | ||
32515 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32516 | fi | ||
32517 | if test -z "${EVAS_STATIC_BUILD_DIRECTFB_TRUE}" && test -z "${EVAS_STATIC_BUILD_DIRECTFB_FALSE}"; then | ||
32518 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_DIRECTFB\" was never defined. | ||
32519 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32520 | fi | ||
32521 | if test -z "${BUILD_ENGINE_SOFTWARE_8_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_8_X11_FALSE}"; then | ||
32522 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_8_X11\" was never defined. | ||
32523 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32524 | fi | ||
32525 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE}"; then | ||
32526 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_8_X11\" was never defined. | ||
32527 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32528 | fi | ||
32529 | if test -z "${BUILD_ENGINE_SOFTWARE_16_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_X11_FALSE}"; then | ||
32530 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_X11\" was never defined. | ||
32531 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32532 | fi | ||
32533 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE}"; then | ||
32534 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_X11\" was never defined. | ||
32535 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32536 | fi | ||
32537 | if test -z "${BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE}"; then | ||
32538 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_DDRAW\" was never defined. | ||
32539 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32540 | fi | ||
32541 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE}"; then | ||
32542 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW\" was never defined. | ||
32543 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32544 | fi | ||
32545 | if test -z "${BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE}"; then | ||
32546 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_WINCE\" was never defined. | ||
32547 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32548 | fi | ||
32549 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE}"; then | ||
32550 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_WINCE\" was never defined. | ||
32551 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32552 | fi | ||
32553 | if test -z "${BUILD_ENGINE_SOFTWARE_16_SDL_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_SDL_FALSE}"; then | ||
32554 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_SDL\" was never defined. | ||
32555 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32556 | fi | ||
32557 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE}"; then | ||
32558 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_SDL\" was never defined. | ||
32559 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32560 | fi | ||
32561 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE}"; then | ||
32562 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_GENERIC\" was never defined. | ||
32563 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32564 | fi | ||
32565 | if test -z "${BUILD_ENGINE_SOFTWARE_XCB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XCB_FALSE}"; then | ||
32566 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XCB\" was never defined. | ||
32567 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32568 | fi | ||
32569 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE}"; then | ||
32570 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XCB\" was never defined. | ||
32571 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32572 | fi | ||
32573 | if test -z "${BUILD_ENGINE_SOFTWARE_XLIB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XLIB_FALSE}"; then | ||
32574 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XLIB\" was never defined. | ||
32575 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32576 | fi | ||
32577 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE}"; then | ||
32578 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XLIB\" was never defined. | ||
32579 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32580 | fi | ||
32581 | if test -z "${BUILD_ENGINE_SOFTWARE_XLIB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XLIB_FALSE}"; then | ||
32582 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XLIB\" was never defined. | ||
32583 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32584 | fi | ||
32585 | if test -z "${BUILD_ENGINE_SOFTWARE_XCB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XCB_FALSE}"; then | ||
32586 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XCB\" was never defined. | ||
32587 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32588 | fi | ||
32589 | if test -z "${BUILD_ENGINE_SOFTWARE_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_X11_FALSE}"; then | ||
32590 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_X11\" was never defined. | ||
32591 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32592 | fi | ||
32593 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE}"; then | ||
32594 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_X11\" was never defined. | ||
32595 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32596 | fi | ||
32597 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE}"; then | ||
32598 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XLIB\" was never defined. | ||
32599 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32600 | fi | ||
32601 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE}"; then | ||
32602 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XCB\" was never defined. | ||
32603 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32604 | fi | ||
32605 | if test -z "${BUILD_ENGINE_GL_XCB_TRUE}" && test -z "${BUILD_ENGINE_GL_XCB_FALSE}"; then | ||
32606 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_XCB\" was never defined. | ||
32607 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32608 | fi | ||
32609 | if test -z "${EVAS_STATIC_BUILD_GL_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XCB_FALSE}"; then | ||
32610 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XCB\" was never defined. | ||
32611 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32612 | fi | ||
32613 | if test -z "${BUILD_ENGINE_GL_XLIB_TRUE}" && test -z "${BUILD_ENGINE_GL_XLIB_FALSE}"; then | ||
32614 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_XLIB\" was never defined. | ||
32615 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32616 | fi | ||
32617 | if test -z "${EVAS_STATIC_BUILD_GL_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XLIB_FALSE}"; then | ||
32618 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XLIB\" was never defined. | ||
32619 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32620 | fi | ||
32621 | if test -z "${BUILD_ENGINE_GL_XLIB_TRUE}" && test -z "${BUILD_ENGINE_GL_XLIB_FALSE}"; then | ||
32622 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_XLIB\" was never defined. | ||
32623 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32624 | fi | ||
32625 | if test -z "${BUILD_ENGINE_GL_XCB_TRUE}" && test -z "${BUILD_ENGINE_GL_XCB_FALSE}"; then | ||
32626 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_XCB\" was never defined. | ||
32627 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32628 | fi | ||
32629 | if test -z "${BUILD_ENGINE_GL_X11_TRUE}" && test -z "${BUILD_ENGINE_GL_X11_FALSE}"; then | ||
32630 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_X11\" was never defined. | ||
32631 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32632 | fi | ||
32633 | if test -z "${EVAS_STATIC_BUILD_GL_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_X11_FALSE}"; then | ||
32634 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_X11\" was never defined. | ||
32635 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32636 | fi | ||
32637 | if test -z "${EVAS_STATIC_BUILD_GL_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XLIB_FALSE}"; then | ||
32638 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XLIB\" was never defined. | ||
32639 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32640 | fi | ||
32641 | if test -z "${EVAS_STATIC_BUILD_GL_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XCB_FALSE}"; then | ||
32642 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XCB\" was never defined. | ||
32643 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32644 | fi | ||
32645 | if test -z "${BUILD_ENGINE_GL_COMMON_TRUE}" && test -z "${BUILD_ENGINE_GL_COMMON_FALSE}"; then | ||
32646 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_COMMON\" was never defined. | ||
32647 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32648 | fi | ||
32649 | if test -z "${EVAS_STATIC_BUILD_GL_COMMON_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_COMMON_FALSE}"; then | ||
32650 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_COMMON\" was never defined. | ||
32651 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32652 | fi | ||
32653 | if test -z "${BUILD_ENGINE_SOFTWARE_16_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_FALSE}"; then | ||
32654 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16\" was never defined. | ||
32655 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32656 | fi | ||
32657 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_FALSE}"; then | ||
32658 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16\" was never defined. | ||
32659 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32660 | fi | ||
32661 | if test -z "${BUILD_ENGINE_SOFTWARE_8_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_8_FALSE}"; then | ||
32662 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_8\" was never defined. | ||
32663 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32664 | fi | ||
32665 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_FALSE}"; then | ||
32666 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_8\" was never defined. | ||
32667 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32668 | fi | ||
32669 | if test -z "${BUILD_LOADER_EDB_TRUE}" && test -z "${BUILD_LOADER_EDB_FALSE}"; then | ||
32670 | as_fn_error $? "conditional \"BUILD_LOADER_EDB\" was never defined. | ||
32671 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32672 | fi | ||
32673 | if test -z "${EVAS_STATIC_BUILD_EDB_TRUE}" && test -z "${EVAS_STATIC_BUILD_EDB_FALSE}"; then | ||
32674 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_EDB\" was never defined. | ||
32675 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32676 | fi | ||
32677 | if test -z "${BUILD_LOADER_EET_TRUE}" && test -z "${BUILD_LOADER_EET_FALSE}"; then | ||
32678 | as_fn_error $? "conditional \"BUILD_LOADER_EET\" was never defined. | ||
32679 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32680 | fi | ||
32681 | if test -z "${EVAS_STATIC_BUILD_EET_TRUE}" && test -z "${EVAS_STATIC_BUILD_EET_FALSE}"; then | ||
32682 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_EET\" was never defined. | ||
32683 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32684 | fi | ||
32685 | if test -z "${BUILD_LOADER_GIF_TRUE}" && test -z "${BUILD_LOADER_GIF_FALSE}"; then | ||
32686 | as_fn_error $? "conditional \"BUILD_LOADER_GIF\" was never defined. | ||
32687 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32688 | fi | ||
32689 | if test -z "${EVAS_STATIC_BUILD_GIF_TRUE}" && test -z "${EVAS_STATIC_BUILD_GIF_FALSE}"; then | ||
32690 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GIF\" was never defined. | ||
32691 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32692 | fi | ||
32693 | if test -z "${BUILD_LOADER_JPEG_TRUE}" && test -z "${BUILD_LOADER_JPEG_FALSE}"; then | ||
32694 | as_fn_error $? "conditional \"BUILD_LOADER_JPEG\" was never defined. | ||
32695 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32696 | fi | ||
32697 | if test -z "${EVAS_STATIC_BUILD_JPEG_TRUE}" && test -z "${EVAS_STATIC_BUILD_JPEG_FALSE}"; then | ||
32698 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_JPEG\" was never defined. | ||
32699 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32700 | fi | ||
32701 | if test -z "${BUILD_SAVER_JPEG_TRUE}" && test -z "${BUILD_SAVER_JPEG_FALSE}"; then | ||
32702 | as_fn_error $? "conditional \"BUILD_SAVER_JPEG\" was never defined. | ||
32703 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32704 | fi | ||
32705 | if test -z "${BUILD_LOADER_PMAPS_TRUE}" && test -z "${BUILD_LOADER_PMAPS_FALSE}"; then | ||
32706 | as_fn_error $? "conditional \"BUILD_LOADER_PMAPS\" was never defined. | ||
32707 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32708 | fi | ||
32709 | if test -z "${EVAS_STATIC_BUILD_PMAPS_TRUE}" && test -z "${EVAS_STATIC_BUILD_PMAPS_FALSE}"; then | ||
32710 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PMAPS\" was never defined. | ||
32711 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32712 | fi | ||
32713 | if test -z "${BUILD_LOADER_PNG_TRUE}" && test -z "${BUILD_LOADER_PNG_FALSE}"; then | ||
32714 | as_fn_error $? "conditional \"BUILD_LOADER_PNG\" was never defined. | ||
32715 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32716 | fi | ||
32717 | if test -z "${EVAS_STATIC_BUILD_PNG_TRUE}" && test -z "${EVAS_STATIC_BUILD_PNG_FALSE}"; then | ||
32718 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PNG\" was never defined. | ||
32719 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32720 | fi | ||
32721 | if test -z "${BUILD_LOADER_SVG_TRUE}" && test -z "${BUILD_LOADER_SVG_FALSE}"; then | ||
32722 | as_fn_error $? "conditional \"BUILD_LOADER_SVG\" was never defined. | ||
32723 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32724 | fi | ||
32725 | if test -z "${EVAS_STATIC_BUILD_SVG_TRUE}" && test -z "${EVAS_STATIC_BUILD_SVG_FALSE}"; then | ||
32726 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SVG\" was never defined. | ||
32727 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32728 | fi | ||
32729 | if test -z "${BUILD_LOADER_TIFF_TRUE}" && test -z "${BUILD_LOADER_TIFF_FALSE}"; then | ||
32730 | as_fn_error $? "conditional \"BUILD_LOADER_TIFF\" was never defined. | ||
32731 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32732 | fi | ||
32733 | if test -z "${EVAS_STATIC_BUILD_TIFF_TRUE}" && test -z "${EVAS_STATIC_BUILD_TIFF_FALSE}"; then | ||
32734 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_TIFF\" was never defined. | ||
32735 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32736 | fi | ||
32737 | if test -z "${BUILD_LOADER_XPM_TRUE}" && test -z "${BUILD_LOADER_XPM_FALSE}"; then | ||
32738 | as_fn_error $? "conditional \"BUILD_LOADER_XPM\" was never defined. | ||
32739 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32740 | fi | ||
32741 | if test -z "${EVAS_STATIC_BUILD_XPM_TRUE}" && test -z "${EVAS_STATIC_BUILD_XPM_FALSE}"; then | ||
32742 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_XPM\" was never defined. | ||
32743 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32744 | fi | ||
32745 | if test -z "${BUILD_LOADER_BMP_TRUE}" && test -z "${BUILD_LOADER_BMP_FALSE}"; then | ||
32746 | as_fn_error $? "conditional \"BUILD_LOADER_BMP\" was never defined. | ||
32747 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32748 | fi | ||
32749 | if test -z "${EVAS_STATIC_BUILD_BMP_TRUE}" && test -z "${EVAS_STATIC_BUILD_BMP_FALSE}"; then | ||
32750 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_BMP\" was never defined. | ||
32751 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32752 | fi | ||
32753 | if test -z "${BUILD_LOADER_TGA_TRUE}" && test -z "${BUILD_LOADER_TGA_FALSE}"; then | ||
32754 | as_fn_error $? "conditional \"BUILD_LOADER_TGA\" was never defined. | ||
32755 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32756 | fi | ||
32757 | if test -z "${EVAS_STATIC_BUILD_TGA_TRUE}" && test -z "${EVAS_STATIC_BUILD_TGA_FALSE}"; then | ||
32758 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_TGA\" was never defined. | ||
32759 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32760 | fi | ||
32761 | if test -z "${BUILD_LOADER_WBMP_TRUE}" && test -z "${BUILD_LOADER_WBMP_FALSE}"; then | ||
32762 | as_fn_error $? "conditional \"BUILD_LOADER_WBMP\" was never defined. | ||
32763 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32764 | fi | ||
32765 | if test -z "${EVAS_STATIC_BUILD_WBMP_TRUE}" && test -z "${EVAS_STATIC_BUILD_WBMP_FALSE}"; then | ||
32766 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_WBMP\" was never defined. | ||
32767 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32768 | fi | ||
32769 | if test -z "${BUILD_LOADER_ICO_TRUE}" && test -z "${BUILD_LOADER_ICO_FALSE}"; then | ||
32770 | as_fn_error $? "conditional \"BUILD_LOADER_ICO\" was never defined. | ||
32771 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32772 | fi | ||
32773 | if test -z "${EVAS_STATIC_BUILD_ICO_TRUE}" && test -z "${EVAS_STATIC_BUILD_ICO_FALSE}"; then | ||
32774 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_ICO\" was never defined. | ||
32775 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32776 | fi | ||
32777 | if test -z "${BUILD_LOADER_PSD_TRUE}" && test -z "${BUILD_LOADER_PSD_FALSE}"; then | ||
32778 | as_fn_error $? "conditional \"BUILD_LOADER_PSD\" was never defined. | ||
32779 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32780 | fi | ||
32781 | if test -z "${EVAS_STATIC_BUILD_PSD_TRUE}" && test -z "${EVAS_STATIC_BUILD_PSD_FALSE}"; then | ||
32782 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PSD\" was never defined. | ||
32783 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32784 | fi | ||
32785 | if test -z "${BUILD_LOADER_GENERIC_TRUE}" && test -z "${BUILD_LOADER_GENERIC_FALSE}"; then | ||
32786 | as_fn_error $? "conditional \"BUILD_LOADER_GENERIC\" was never defined. | ||
32787 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32788 | fi | ||
32789 | if test -z "${EVAS_STATIC_BUILD_GENERIC_TRUE}" && test -z "${EVAS_STATIC_BUILD_GENERIC_FALSE}"; then | ||
32790 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GENERIC\" was never defined. | ||
32791 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32792 | fi | ||
32793 | if test -z "${EVAS_MAGIC_DEBUG_TRUE}" && test -z "${EVAS_MAGIC_DEBUG_FALSE}"; then | ||
32794 | as_fn_error $? "conditional \"EVAS_MAGIC_DEBUG\" was never defined. | ||
32795 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32796 | fi | ||
32797 | if test -z "${WORD_CACHE_TRUE}" && test -z "${WORD_CACHE_FALSE}"; then | ||
32798 | as_fn_error $? "conditional \"WORD_CACHE\" was never defined. | ||
32799 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32800 | fi | ||
32801 | if test -z "${METRIC_CACHE_TRUE}" && test -z "${METRIC_CACHE_FALSE}"; then | ||
32802 | as_fn_error $? "conditional \"METRIC_CACHE\" was never defined. | ||
32803 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32804 | fi | ||
32805 | if test -z "${INSTALL_EXAMPLES_TRUE}" && test -z "${INSTALL_EXAMPLES_FALSE}"; then | ||
32806 | as_fn_error $? "conditional \"INSTALL_EXAMPLES\" was never defined. | ||
32807 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32808 | fi | ||
32809 | if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then | ||
32810 | as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. | ||
32811 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32812 | fi | ||
32813 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
32814 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
32815 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32816 | fi | ||
32817 | if test -z "${EFL_ENABLE_COVERAGE_TRUE}" && test -z "${EFL_ENABLE_COVERAGE_FALSE}"; then | ||
32818 | as_fn_error $? "conditional \"EFL_ENABLE_COVERAGE\" was never defined. | ||
32819 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32820 | fi | ||
32821 | |||
32822 | : ${CONFIG_STATUS=./config.status} | ||
32823 | ac_write_fail=0 | ||
32824 | ac_clean_files_save=$ac_clean_files | ||
32825 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
32826 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
32827 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
32828 | as_write_fail=0 | ||
32829 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
32830 | #! $SHELL | ||
32831 | # Generated by $as_me. | ||
32832 | # Run this file to recreate the current configuration. | ||
32833 | # Compiler output produced by configure, useful for debugging | ||
32834 | # configure, is in config.log if it exists. | ||
32835 | |||
32836 | debug=false | ||
32837 | ac_cs_recheck=false | ||
32838 | ac_cs_silent=false | ||
32839 | |||
32840 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
32841 | export SHELL | ||
32842 | _ASEOF | ||
32843 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
32844 | ## -------------------- ## | ||
32845 | ## M4sh Initialization. ## | ||
32846 | ## -------------------- ## | ||
32847 | |||
32848 | # Be more Bourne compatible | ||
32849 | DUALCASE=1; export DUALCASE # for MKS sh | ||
32850 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
32851 | emulate sh | ||
32852 | NULLCMD=: | ||
32853 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
32854 | # is contrary to our usage. Disable this feature. | ||
32855 | alias -g '${1+"$@"}'='"$@"' | ||
32856 | setopt NO_GLOB_SUBST | ||
32857 | else | ||
32858 | case `(set -o) 2>/dev/null` in #( | ||
32859 | *posix*) : | ||
32860 | set -o posix ;; #( | ||
32861 | *) : | ||
32862 | ;; | ||
32863 | esac | ||
32864 | fi | ||
32865 | |||
32866 | |||
32867 | as_nl=' | ||
32868 | ' | ||
32869 | export as_nl | ||
32870 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
32871 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
32872 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
32873 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
32874 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
32875 | # but without wasting forks for bash or zsh. | ||
32876 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
32877 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
32878 | as_echo='print -r --' | ||
32879 | as_echo_n='print -rn --' | ||
32880 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
32881 | as_echo='printf %s\n' | ||
32882 | as_echo_n='printf %s' | ||
32883 | else | ||
32884 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
32885 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
32886 | as_echo_n='/usr/ucb/echo -n' | ||
32887 | else | ||
32888 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
32889 | as_echo_n_body='eval | ||
32890 | arg=$1; | ||
32891 | case $arg in #( | ||
32892 | *"$as_nl"*) | ||
32893 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
32894 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
32895 | esac; | ||
32896 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
32897 | ' | ||
32898 | export as_echo_n_body | ||
32899 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
32900 | fi | ||
32901 | export as_echo_body | ||
32902 | as_echo='sh -c $as_echo_body as_echo' | ||
32903 | fi | ||
32904 | |||
32905 | # The user is always right. | ||
32906 | if test "${PATH_SEPARATOR+set}" != set; then | ||
32907 | PATH_SEPARATOR=: | ||
32908 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
32909 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
32910 | PATH_SEPARATOR=';' | ||
32911 | } | ||
32912 | fi | ||
32913 | |||
32914 | |||
32915 | # IFS | ||
32916 | # We need space, tab and new line, in precisely that order. Quoting is | ||
32917 | # there to prevent editors from complaining about space-tab. | ||
32918 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
32919 | # splitting by setting IFS to empty value.) | ||
32920 | IFS=" "" $as_nl" | ||
32921 | |||
32922 | # Find who we are. Look in the path if we contain no directory separator. | ||
32923 | case $0 in #(( | ||
32924 | *[\\/]* ) as_myself=$0 ;; | ||
32925 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
32926 | for as_dir in $PATH | ||
32927 | do | ||
32928 | IFS=$as_save_IFS | ||
32929 | test -z "$as_dir" && as_dir=. | ||
32930 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
32931 | done | ||
32932 | IFS=$as_save_IFS | ||
32933 | |||
32934 | ;; | ||
32935 | esac | ||
32936 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
32937 | # in which case we are not to be found in the path. | ||
32938 | if test "x$as_myself" = x; then | ||
32939 | as_myself=$0 | ||
32940 | fi | ||
32941 | if test ! -f "$as_myself"; then | ||
32942 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
32943 | exit 1 | ||
32944 | fi | ||
32945 | |||
32946 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
32947 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
32948 | # suppresses any "Segmentation fault" message there. '((' could | ||
32949 | # trigger a bug in pdksh 5.2.14. | ||
32950 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
32951 | do eval test x\${$as_var+set} = xset \ | ||
32952 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
32953 | done | ||
32954 | PS1='$ ' | ||
32955 | PS2='> ' | ||
32956 | PS4='+ ' | ||
32957 | |||
32958 | # NLS nuisances. | ||
32959 | LC_ALL=C | ||
32960 | export LC_ALL | ||
32961 | LANGUAGE=C | ||
32962 | export LANGUAGE | ||
32963 | |||
32964 | # CDPATH. | ||
32965 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
32966 | |||
32967 | |||
32968 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
32969 | # ---------------------------------------- | ||
32970 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
32971 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
32972 | # script with STATUS, using 1 if that was 0. | ||
32973 | as_fn_error () | ||
32974 | { | ||
32975 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
32976 | if test "$4"; then | ||
32977 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
32978 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
32979 | fi | ||
32980 | $as_echo "$as_me: error: $2" >&2 | ||
32981 | as_fn_exit $as_status | ||
32982 | } # as_fn_error | ||
32983 | |||
32984 | |||
32985 | # as_fn_set_status STATUS | ||
32986 | # ----------------------- | ||
32987 | # Set $? to STATUS, without forking. | ||
32988 | as_fn_set_status () | ||
32989 | { | ||
32990 | return $1 | ||
32991 | } # as_fn_set_status | ||
32992 | |||
32993 | # as_fn_exit STATUS | ||
32994 | # ----------------- | ||
32995 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
32996 | as_fn_exit () | ||
32997 | { | ||
32998 | set +e | ||
32999 | as_fn_set_status $1 | ||
33000 | exit $1 | ||
33001 | } # as_fn_exit | ||
33002 | |||
33003 | # as_fn_unset VAR | ||
33004 | # --------------- | ||
33005 | # Portably unset VAR. | ||
33006 | as_fn_unset () | ||
33007 | { | ||
33008 | { eval $1=; unset $1;} | ||
33009 | } | ||
33010 | as_unset=as_fn_unset | ||
33011 | # as_fn_append VAR VALUE | ||
33012 | # ---------------------- | ||
33013 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
33014 | # advantage of any shell optimizations that allow amortized linear growth over | ||
33015 | # repeated appends, instead of the typical quadratic growth present in naive | ||
33016 | # implementations. | ||
33017 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
33018 | eval 'as_fn_append () | ||
33019 | { | ||
33020 | eval $1+=\$2 | ||
33021 | }' | ||
33022 | else | ||
33023 | as_fn_append () | ||
33024 | { | ||
33025 | eval $1=\$$1\$2 | ||
33026 | } | ||
33027 | fi # as_fn_append | ||
33028 | |||
33029 | # as_fn_arith ARG... | ||
33030 | # ------------------ | ||
33031 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
33032 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
33033 | # must be portable across $(()) and expr. | ||
33034 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
33035 | eval 'as_fn_arith () | ||
33036 | { | ||
33037 | as_val=$(( $* )) | ||
33038 | }' | ||
33039 | else | ||
33040 | as_fn_arith () | ||
33041 | { | ||
33042 | as_val=`expr "$@" || test $? -eq 1` | ||
33043 | } | ||
33044 | fi # as_fn_arith | ||
33045 | |||
33046 | |||
33047 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
33048 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
33049 | as_expr=expr | ||
33050 | else | ||
33051 | as_expr=false | ||
33052 | fi | ||
33053 | |||
33054 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
33055 | as_basename=basename | ||
33056 | else | ||
33057 | as_basename=false | ||
33058 | fi | ||
33059 | |||
33060 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
33061 | as_dirname=dirname | ||
33062 | else | ||
33063 | as_dirname=false | ||
33064 | fi | ||
33065 | |||
33066 | as_me=`$as_basename -- "$0" || | ||
33067 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
33068 | X"$0" : 'X\(//\)$' \| \ | ||
33069 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
33070 | $as_echo X/"$0" | | ||
33071 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
33072 | s//\1/ | ||
33073 | q | ||
33074 | } | ||
33075 | /^X\/\(\/\/\)$/{ | ||
33076 | s//\1/ | ||
33077 | q | ||
33078 | } | ||
33079 | /^X\/\(\/\).*/{ | ||
33080 | s//\1/ | ||
33081 | q | ||
33082 | } | ||
33083 | s/.*/./; q'` | ||
33084 | |||
33085 | # Avoid depending upon Character Ranges. | ||
33086 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
33087 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
33088 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
33089 | as_cr_digits='0123456789' | ||
33090 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
33091 | |||
33092 | ECHO_C= ECHO_N= ECHO_T= | ||
33093 | case `echo -n x` in #((((( | ||
33094 | -n*) | ||
33095 | case `echo 'xy\c'` in | ||
33096 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
33097 | xy) ECHO_C='\c';; | ||
33098 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
33099 | ECHO_T=' ';; | ||
33100 | esac;; | ||
33101 | *) | ||
33102 | ECHO_N='-n';; | ||
33103 | esac | ||
33104 | |||
33105 | rm -f conf$$ conf$$.exe conf$$.file | ||
33106 | if test -d conf$$.dir; then | ||
33107 | rm -f conf$$.dir/conf$$.file | ||
33108 | else | ||
33109 | rm -f conf$$.dir | ||
33110 | mkdir conf$$.dir 2>/dev/null | ||
33111 | fi | ||
33112 | if (echo >conf$$.file) 2>/dev/null; then | ||
33113 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
33114 | as_ln_s='ln -s' | ||
33115 | # ... but there are two gotchas: | ||
33116 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
33117 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
33118 | # In both cases, we have to default to `cp -p'. | ||
33119 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
33120 | as_ln_s='cp -p' | ||
33121 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
33122 | as_ln_s=ln | ||
33123 | else | ||
33124 | as_ln_s='cp -p' | ||
33125 | fi | ||
33126 | else | ||
33127 | as_ln_s='cp -p' | ||
33128 | fi | ||
33129 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
33130 | rmdir conf$$.dir 2>/dev/null | ||
33131 | |||
33132 | |||
33133 | # as_fn_mkdir_p | ||
33134 | # ------------- | ||
33135 | # Create "$as_dir" as a directory, including parents if necessary. | ||
33136 | as_fn_mkdir_p () | ||
33137 | { | ||
33138 | |||
33139 | case $as_dir in #( | ||
33140 | -*) as_dir=./$as_dir;; | ||
33141 | esac | ||
33142 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
33143 | as_dirs= | ||
33144 | while :; do | ||
33145 | case $as_dir in #( | ||
33146 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
33147 | *) as_qdir=$as_dir;; | ||
33148 | esac | ||
33149 | as_dirs="'$as_qdir' $as_dirs" | ||
33150 | as_dir=`$as_dirname -- "$as_dir" || | ||
33151 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
33152 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
33153 | X"$as_dir" : 'X\(//\)$' \| \ | ||
33154 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
33155 | $as_echo X"$as_dir" | | ||
33156 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
33157 | s//\1/ | ||
33158 | q | ||
33159 | } | ||
33160 | /^X\(\/\/\)[^/].*/{ | ||
33161 | s//\1/ | ||
33162 | q | ||
33163 | } | ||
33164 | /^X\(\/\/\)$/{ | ||
33165 | s//\1/ | ||
33166 | q | ||
33167 | } | ||
33168 | /^X\(\/\).*/{ | ||
33169 | s//\1/ | ||
33170 | q | ||
33171 | } | ||
33172 | s/.*/./; q'` | ||
33173 | test -d "$as_dir" && break | ||
33174 | done | ||
33175 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
33176 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
33177 | |||
33178 | |||
33179 | } # as_fn_mkdir_p | ||
33180 | if mkdir -p . 2>/dev/null; then | ||
33181 | as_mkdir_p='mkdir -p "$as_dir"' | ||
33182 | else | ||
33183 | test -d ./-p && rmdir ./-p | ||
33184 | as_mkdir_p=false | ||
33185 | fi | ||
33186 | |||
33187 | if test -x / >/dev/null 2>&1; then | ||
33188 | as_test_x='test -x' | ||
33189 | else | ||
33190 | if ls -dL / >/dev/null 2>&1; then | ||
33191 | as_ls_L_option=L | ||
33192 | else | ||
33193 | as_ls_L_option= | ||
33194 | fi | ||
33195 | as_test_x=' | ||
33196 | eval sh -c '\'' | ||
33197 | if test -d "$1"; then | ||
33198 | test -d "$1/."; | ||
33199 | else | ||
33200 | case $1 in #( | ||
33201 | -*)set "./$1";; | ||
33202 | esac; | ||
33203 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
33204 | ???[sx]*):;;*)false;;esac;fi | ||
33205 | '\'' sh | ||
33206 | ' | ||
33207 | fi | ||
33208 | as_executable_p=$as_test_x | ||
33209 | |||
33210 | # Sed expression to map a string onto a valid CPP name. | ||
33211 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
33212 | |||
33213 | # Sed expression to map a string onto a valid variable name. | ||
33214 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
33215 | |||
33216 | |||
33217 | exec 6>&1 | ||
33218 | ## ----------------------------------- ## | ||
33219 | ## Main body of $CONFIG_STATUS script. ## | ||
33220 | ## ----------------------------------- ## | ||
33221 | _ASEOF | ||
33222 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
33223 | |||
33224 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33225 | # Save the log message, to keep $0 and so on meaningful, and to | ||
33226 | # report actual input values of CONFIG_FILES etc. instead of their | ||
33227 | # values after options handling. | ||
33228 | ac_log=" | ||
33229 | This file was extended by evas $as_me 1.1.0, which was | ||
33230 | generated by GNU Autoconf 2.67. Invocation command line was | ||
33231 | |||
33232 | CONFIG_FILES = $CONFIG_FILES | ||
33233 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
33234 | CONFIG_LINKS = $CONFIG_LINKS | ||
33235 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
33236 | $ $0 $@ | ||
33237 | |||
33238 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
33239 | " | ||
33240 | |||
33241 | _ACEOF | ||
33242 | |||
33243 | case $ac_config_files in *" | ||
33244 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
33245 | esac | ||
33246 | |||
33247 | case $ac_config_headers in *" | ||
33248 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
33249 | esac | ||
33250 | |||
33251 | |||
33252 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33253 | # Files that config.status was made for. | ||
33254 | config_files="$ac_config_files" | ||
33255 | config_headers="$ac_config_headers" | ||
33256 | config_commands="$ac_config_commands" | ||
33257 | |||
33258 | _ACEOF | ||
33259 | |||
33260 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33261 | ac_cs_usage="\ | ||
33262 | \`$as_me' instantiates files and other configuration actions | ||
33263 | from templates according to the current configuration. Unless the files | ||
33264 | and actions are specified as TAGs, all are instantiated by default. | ||
33265 | |||
33266 | Usage: $0 [OPTION]... [TAG]... | ||
33267 | |||
33268 | -h, --help print this help, then exit | ||
33269 | -V, --version print version number and configuration settings, then exit | ||
33270 | --config print configuration, then exit | ||
33271 | -q, --quiet, --silent | ||
33272 | do not print progress messages | ||
33273 | -d, --debug don't remove temporary files | ||
33274 | --recheck update $as_me by reconfiguring in the same conditions | ||
33275 | --file=FILE[:TEMPLATE] | ||
33276 | instantiate the configuration file FILE | ||
33277 | --header=FILE[:TEMPLATE] | ||
33278 | instantiate the configuration header FILE | ||
33279 | |||
33280 | Configuration files: | ||
33281 | $config_files | ||
33282 | |||
33283 | Configuration headers: | ||
33284 | $config_headers | ||
33285 | |||
33286 | Configuration commands: | ||
33287 | $config_commands | ||
33288 | |||
33289 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
33290 | |||
33291 | _ACEOF | ||
33292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33293 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
33294 | ac_cs_version="\\ | ||
33295 | evas config.status 1.1.0 | ||
33296 | configured by $0, generated by GNU Autoconf 2.67, | ||
33297 | with options \\"\$ac_cs_config\\" | ||
33298 | |||
33299 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
33300 | This config.status script is free software; the Free Software Foundation | ||
33301 | gives unlimited permission to copy, distribute and modify it." | ||
33302 | |||
33303 | ac_pwd='$ac_pwd' | ||
33304 | srcdir='$srcdir' | ||
33305 | INSTALL='$INSTALL' | ||
33306 | MKDIR_P='$MKDIR_P' | ||
33307 | AWK='$AWK' | ||
33308 | test -n "\$AWK" || AWK=awk | ||
33309 | _ACEOF | ||
33310 | |||
33311 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33312 | # The default lists apply if the user does not specify any file. | ||
33313 | ac_need_defaults=: | ||
33314 | while test $# != 0 | ||
33315 | do | ||
33316 | case $1 in | ||
33317 | --*=?*) | ||
33318 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
33319 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
33320 | ac_shift=: | ||
33321 | ;; | ||
33322 | --*=) | ||
33323 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
33324 | ac_optarg= | ||
33325 | ac_shift=: | ||
33326 | ;; | ||
33327 | *) | ||
33328 | ac_option=$1 | ||
33329 | ac_optarg=$2 | ||
33330 | ac_shift=shift | ||
33331 | ;; | ||
33332 | esac | ||
33333 | |||
33334 | case $ac_option in | ||
33335 | # Handling of the options. | ||
33336 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
33337 | ac_cs_recheck=: ;; | ||
33338 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
33339 | $as_echo "$ac_cs_version"; exit ;; | ||
33340 | --config | --confi | --conf | --con | --co | --c ) | ||
33341 | $as_echo "$ac_cs_config"; exit ;; | ||
33342 | --debug | --debu | --deb | --de | --d | -d ) | ||
33343 | debug=: ;; | ||
33344 | --file | --fil | --fi | --f ) | ||
33345 | $ac_shift | ||
33346 | case $ac_optarg in | ||
33347 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
33348 | '') as_fn_error $? "missing file argument" ;; | ||
33349 | esac | ||
33350 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
33351 | ac_need_defaults=false;; | ||
33352 | --header | --heade | --head | --hea ) | ||
33353 | $ac_shift | ||
33354 | case $ac_optarg in | ||
33355 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
33356 | esac | ||
33357 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
33358 | ac_need_defaults=false;; | ||
33359 | --he | --h) | ||
33360 | # Conflict between --help and --header | ||
33361 | as_fn_error $? "ambiguous option: \`$1' | ||
33362 | Try \`$0 --help' for more information.";; | ||
33363 | --help | --hel | -h ) | ||
33364 | $as_echo "$ac_cs_usage"; exit ;; | ||
33365 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
33366 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
33367 | ac_cs_silent=: ;; | ||
33368 | |||
33369 | # This is an error. | ||
33370 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
33371 | Try \`$0 --help' for more information." ;; | ||
33372 | |||
33373 | *) as_fn_append ac_config_targets " $1" | ||
33374 | ac_need_defaults=false ;; | ||
33375 | |||
33376 | esac | ||
33377 | shift | ||
33378 | done | ||
33379 | |||
33380 | ac_configure_extra_args= | ||
33381 | |||
33382 | if $ac_cs_silent; then | ||
33383 | exec 6>/dev/null | ||
33384 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
33385 | fi | ||
33386 | |||
33387 | _ACEOF | ||
33388 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33389 | if \$ac_cs_recheck; then | ||
33390 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
33391 | shift | ||
33392 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
33393 | CONFIG_SHELL='$SHELL' | ||
33394 | export CONFIG_SHELL | ||
33395 | exec "\$@" | ||
33396 | fi | ||
33397 | |||
33398 | _ACEOF | ||
33399 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33400 | exec 5>>config.log | ||
33401 | { | ||
33402 | echo | ||
33403 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
33404 | ## Running $as_me. ## | ||
33405 | _ASBOX | ||
33406 | $as_echo "$ac_log" | ||
33407 | } >&5 | ||
33408 | |||
33409 | _ACEOF | ||
33410 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33411 | # | ||
33412 | # INIT-COMMANDS | ||
33413 | # | ||
33414 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
33415 | |||
33416 | |||
33417 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
33418 | # if CDPATH is set. | ||
33419 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
33420 | |||
33421 | sed_quote_subst='$sed_quote_subst' | ||
33422 | double_quote_subst='$double_quote_subst' | ||
33423 | delay_variable_subst='$delay_variable_subst' | ||
33424 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
33425 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33426 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33427 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
33428 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
33429 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
33430 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
33431 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
33432 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
33433 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
33434 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
33435 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
33436 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
33437 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
33438 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
33439 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
33440 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
33441 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33442 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33443 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33444 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
33445 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
33446 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
33447 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
33448 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
33449 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
33450 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
33451 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33452 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33453 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
33454 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33455 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
33456 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
33457 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
33458 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
33459 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33460 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
33461 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33462 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33463 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33464 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
33465 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
33466 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
33467 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
33468 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
33469 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
33470 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | ||
33471 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
33472 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
33473 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33474 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
33475 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
33476 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
33477 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
33478 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
33479 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
33480 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
33481 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
33482 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33483 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
33484 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
33485 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33486 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
33487 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
33488 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33489 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33490 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
33491 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
33492 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33493 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33494 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
33495 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33496 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33497 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33498 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33499 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33500 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33501 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
33502 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
33503 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
33504 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33505 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
33506 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
33507 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
33508 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
33509 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
33510 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
33511 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
33512 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
33513 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
33514 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
33515 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
33516 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33517 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
33518 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
33519 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33520 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33521 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
33522 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
33523 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
33524 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
33525 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
33526 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
33527 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
33528 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33529 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33530 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33531 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33532 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33533 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33534 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
33535 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
33536 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33537 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33538 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
33539 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
33540 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
33541 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
33542 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
33543 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
33544 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | ||
33545 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
33546 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
33547 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
33548 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
33549 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
33550 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33551 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33552 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33553 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33554 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33555 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33556 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33557 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33558 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33559 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33560 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33561 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33562 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33563 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33564 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33565 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33566 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33567 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33568 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33569 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33570 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33571 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33572 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33573 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33574 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33575 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33576 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33577 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33578 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33579 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33580 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33581 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33582 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33583 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33584 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33585 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33586 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33587 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33588 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33589 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33590 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33591 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33592 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33593 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33594 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33595 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33596 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33597 | |||
33598 | LTCC='$LTCC' | ||
33599 | LTCFLAGS='$LTCFLAGS' | ||
33600 | compiler='$compiler_DEFAULT' | ||
33601 | |||
33602 | # Quote evaled strings. | ||
33603 | for var in SED \ | ||
33604 | GREP \ | ||
33605 | EGREP \ | ||
33606 | FGREP \ | ||
33607 | LD \ | ||
33608 | NM \ | ||
33609 | LN_S \ | ||
33610 | lt_SP2NL \ | ||
33611 | lt_NL2SP \ | ||
33612 | reload_flag \ | ||
33613 | deplibs_check_method \ | ||
33614 | file_magic_cmd \ | ||
33615 | AR \ | ||
33616 | AR_FLAGS \ | ||
33617 | STRIP \ | ||
33618 | RANLIB \ | ||
33619 | CC \ | ||
33620 | CFLAGS \ | ||
33621 | compiler \ | ||
33622 | lt_cv_sys_global_symbol_pipe \ | ||
33623 | lt_cv_sys_global_symbol_to_cdecl \ | ||
33624 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
33625 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
33626 | SHELL \ | ||
33627 | ECHO \ | ||
33628 | lt_prog_compiler_no_builtin_flag \ | ||
33629 | lt_prog_compiler_wl \ | ||
33630 | lt_prog_compiler_pic \ | ||
33631 | lt_prog_compiler_static \ | ||
33632 | lt_cv_prog_compiler_c_o \ | ||
33633 | need_locks \ | ||
33634 | DSYMUTIL \ | ||
33635 | NMEDIT \ | ||
33636 | LIPO \ | ||
33637 | OTOOL \ | ||
33638 | OTOOL64 \ | ||
33639 | shrext_cmds \ | ||
33640 | export_dynamic_flag_spec \ | ||
33641 | whole_archive_flag_spec \ | ||
33642 | compiler_needs_object \ | ||
33643 | with_gnu_ld \ | ||
33644 | allow_undefined_flag \ | ||
33645 | no_undefined_flag \ | ||
33646 | hardcode_libdir_flag_spec \ | ||
33647 | hardcode_libdir_flag_spec_ld \ | ||
33648 | hardcode_libdir_separator \ | ||
33649 | fix_srcfile_path \ | ||
33650 | exclude_expsyms \ | ||
33651 | include_expsyms \ | ||
33652 | file_list_spec \ | ||
33653 | variables_saved_for_relink \ | ||
33654 | libname_spec \ | ||
33655 | library_names_spec \ | ||
33656 | soname_spec \ | ||
33657 | finish_eval \ | ||
33658 | old_striplib \ | ||
33659 | striplib \ | ||
33660 | compiler_lib_search_dirs \ | ||
33661 | predep_objects \ | ||
33662 | postdep_objects \ | ||
33663 | predeps \ | ||
33664 | postdeps \ | ||
33665 | compiler_lib_search_path \ | ||
33666 | LD_CXX \ | ||
33667 | compiler_CXX \ | ||
33668 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
33669 | lt_prog_compiler_wl_CXX \ | ||
33670 | lt_prog_compiler_pic_CXX \ | ||
33671 | lt_prog_compiler_static_CXX \ | ||
33672 | lt_cv_prog_compiler_c_o_CXX \ | ||
33673 | export_dynamic_flag_spec_CXX \ | ||
33674 | whole_archive_flag_spec_CXX \ | ||
33675 | compiler_needs_object_CXX \ | ||
33676 | with_gnu_ld_CXX \ | ||
33677 | allow_undefined_flag_CXX \ | ||
33678 | no_undefined_flag_CXX \ | ||
33679 | hardcode_libdir_flag_spec_CXX \ | ||
33680 | hardcode_libdir_flag_spec_ld_CXX \ | ||
33681 | hardcode_libdir_separator_CXX \ | ||
33682 | fix_srcfile_path_CXX \ | ||
33683 | exclude_expsyms_CXX \ | ||
33684 | include_expsyms_CXX \ | ||
33685 | file_list_spec_CXX \ | ||
33686 | compiler_lib_search_dirs_CXX \ | ||
33687 | predep_objects_CXX \ | ||
33688 | postdep_objects_CXX \ | ||
33689 | predeps_CXX \ | ||
33690 | postdeps_CXX \ | ||
33691 | compiler_lib_search_path_CXX; do | ||
33692 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
33693 | *[\\\\\\\`\\"\\\$]*) | ||
33694 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
33695 | ;; | ||
33696 | *) | ||
33697 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
33698 | ;; | ||
33699 | esac | ||
33700 | done | ||
33701 | |||
33702 | # Double-quote double-evaled strings. | ||
33703 | for var in reload_cmds \ | ||
33704 | old_postinstall_cmds \ | ||
33705 | old_postuninstall_cmds \ | ||
33706 | old_archive_cmds \ | ||
33707 | extract_expsyms_cmds \ | ||
33708 | old_archive_from_new_cmds \ | ||
33709 | old_archive_from_expsyms_cmds \ | ||
33710 | archive_cmds \ | ||
33711 | archive_expsym_cmds \ | ||
33712 | module_cmds \ | ||
33713 | module_expsym_cmds \ | ||
33714 | export_symbols_cmds \ | ||
33715 | prelink_cmds \ | ||
33716 | postinstall_cmds \ | ||
33717 | postuninstall_cmds \ | ||
33718 | finish_cmds \ | ||
33719 | sys_lib_search_path_spec \ | ||
33720 | sys_lib_dlsearch_path_spec \ | ||
33721 | old_archive_cmds_CXX \ | ||
33722 | old_archive_from_new_cmds_CXX \ | ||
33723 | old_archive_from_expsyms_cmds_CXX \ | ||
33724 | archive_cmds_CXX \ | ||
33725 | archive_expsym_cmds_CXX \ | ||
33726 | module_cmds_CXX \ | ||
33727 | module_expsym_cmds_CXX \ | ||
33728 | export_symbols_cmds_CXX \ | ||
33729 | prelink_cmds_CXX; do | ||
33730 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
33731 | *[\\\\\\\`\\"\\\$]*) | ||
33732 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
33733 | ;; | ||
33734 | *) | ||
33735 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
33736 | ;; | ||
33737 | esac | ||
33738 | done | ||
33739 | |||
33740 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
33741 | case \$lt_ECHO in | ||
33742 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
33743 | ;; | ||
33744 | esac | ||
33745 | |||
33746 | ac_aux_dir='$ac_aux_dir' | ||
33747 | xsi_shell='$xsi_shell' | ||
33748 | lt_shell_append='$lt_shell_append' | ||
33749 | |||
33750 | # See if we are running on zsh, and set the options which allow our | ||
33751 | # commands through without removal of \ escapes INIT. | ||
33752 | if test -n "\${ZSH_VERSION+set}" ; then | ||
33753 | setopt NO_GLOB_SUBST | ||
33754 | fi | ||
33755 | |||
33756 | |||
33757 | PACKAGE='$PACKAGE' | ||
33758 | VERSION='$VERSION' | ||
33759 | TIMESTAMP='$TIMESTAMP' | ||
33760 | RM='$RM' | ||
33761 | ofile='$ofile' | ||
33762 | |||
33763 | |||
33764 | |||
33765 | |||
33766 | |||
33767 | |||
33768 | _ACEOF | ||
33769 | |||
33770 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33771 | |||
33772 | # Handling of arguments. | ||
33773 | for ac_config_target in $ac_config_targets | ||
33774 | do | ||
33775 | case $ac_config_target in | ||
33776 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
33777 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
33778 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
33779 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
33780 | "evas-directfb.pc") CONFIG_FILES="$CONFIG_FILES evas-directfb.pc" ;; | ||
33781 | "evas-fb.pc") CONFIG_FILES="$CONFIG_FILES evas-fb.pc" ;; | ||
33782 | "evas-opengl-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-x11.pc" ;; | ||
33783 | "evas-opengl-sdl.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-sdl.pc" ;; | ||
33784 | "evas-opengl-cocoa.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-cocoa.pc" ;; | ||
33785 | "evas-software-buffer.pc") CONFIG_FILES="$CONFIG_FILES evas-software-buffer.pc" ;; | ||
33786 | "evas-software-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-x11.pc" ;; | ||
33787 | "evas-software-8-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-8-x11.pc" ;; | ||
33788 | "evas-software-16-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-x11.pc" ;; | ||
33789 | "evas-software-gdi.pc") CONFIG_FILES="$CONFIG_FILES evas-software-gdi.pc" ;; | ||
33790 | "evas-software-ddraw.pc") CONFIG_FILES="$CONFIG_FILES evas-software-ddraw.pc" ;; | ||
33791 | "evas-software-16-ddraw.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-ddraw.pc" ;; | ||
33792 | "evas-direct3d.pc") CONFIG_FILES="$CONFIG_FILES evas-direct3d.pc" ;; | ||
33793 | "evas-software-16-wince.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-wince.pc" ;; | ||
33794 | "evas-software-sdl.pc") CONFIG_FILES="$CONFIG_FILES evas-software-sdl.pc" ;; | ||
33795 | "evas-psl1ght.pc") CONFIG_FILES="$CONFIG_FILES evas-psl1ght.pc" ;; | ||
33796 | "evas.pc") CONFIG_FILES="$CONFIG_FILES evas.pc" ;; | ||
33797 | "doc/evas.dox") CONFIG_FILES="$CONFIG_FILES doc/evas.dox" ;; | ||
33798 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
33799 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
33800 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
33801 | "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; | ||
33802 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
33803 | "src/lib/canvas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/canvas/Makefile" ;; | ||
33804 | "src/lib/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/file/Makefile" ;; | ||
33805 | "src/lib/cache/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cache/Makefile" ;; | ||
33806 | "src/lib/cserve/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cserve/Makefile" ;; | ||
33807 | "src/lib/engines/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/Makefile" ;; | ||
33808 | "src/lib/engines/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/Makefile" ;; | ||
33809 | "src/lib/engines/common/evas_op_add/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_add/Makefile" ;; | ||
33810 | "src/lib/engines/common/evas_op_blend/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_blend/Makefile" ;; | ||
33811 | "src/lib/engines/common/evas_op_copy/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_copy/Makefile" ;; | ||
33812 | "src/lib/engines/common/evas_op_mask/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_mask/Makefile" ;; | ||
33813 | "src/lib/engines/common/evas_op_mul/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_mul/Makefile" ;; | ||
33814 | "src/lib/engines/common/evas_op_sub/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_sub/Makefile" ;; | ||
33815 | "src/lib/engines/common_8/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common_8/Makefile" ;; | ||
33816 | "src/lib/engines/common_16/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common_16/Makefile" ;; | ||
33817 | "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; | ||
33818 | "src/modules/engines/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/Makefile" ;; | ||
33819 | "src/modules/engines/software_generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_generic/Makefile" ;; | ||
33820 | "src/modules/engines/software_gdi/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_gdi/Makefile" ;; | ||
33821 | "src/modules/engines/software_ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_ddraw/Makefile" ;; | ||
33822 | "src/modules/engines/direct3d/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/direct3d/Makefile" ;; | ||
33823 | "src/modules/engines/software_16_wince/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_wince/Makefile" ;; | ||
33824 | "src/modules/engines/software_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_x11/Makefile" ;; | ||
33825 | "src/modules/engines/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/fb/Makefile" ;; | ||
33826 | "src/modules/engines/buffer/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/buffer/Makefile" ;; | ||
33827 | "src/modules/engines/directfb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/directfb/Makefile" ;; | ||
33828 | "src/modules/engines/gl_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_common/Makefile" ;; | ||
33829 | "src/modules/engines/gl_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_x11/Makefile" ;; | ||
33830 | "src/modules/engines/gl_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_sdl/Makefile" ;; | ||
33831 | "src/modules/engines/gl_cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_cocoa/Makefile" ;; | ||
33832 | "src/modules/engines/psl1ght/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/psl1ght/Makefile" ;; | ||
33833 | "src/modules/engines/software_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_sdl/Makefile" ;; | ||
33834 | "src/modules/engines/software_8/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_8/Makefile" ;; | ||
33835 | "src/modules/engines/software_8_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_8_x11/Makefile" ;; | ||
33836 | "src/modules/engines/software_16/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16/Makefile" ;; | ||
33837 | "src/modules/engines/software_16_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_x11/Makefile" ;; | ||
33838 | "src/modules/engines/software_16_ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_ddraw/Makefile" ;; | ||
33839 | "src/modules/engines/software_16_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_sdl/Makefile" ;; | ||
33840 | "src/modules/loaders/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/Makefile" ;; | ||
33841 | "src/modules/loaders/edb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/edb/Makefile" ;; | ||
33842 | "src/modules/loaders/eet/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/eet/Makefile" ;; | ||
33843 | "src/modules/loaders/gif/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/gif/Makefile" ;; | ||
33844 | "src/modules/loaders/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/jpeg/Makefile" ;; | ||
33845 | "src/modules/loaders/png/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/png/Makefile" ;; | ||
33846 | "src/modules/loaders/tiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/tiff/Makefile" ;; | ||
33847 | "src/modules/loaders/xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/xpm/Makefile" ;; | ||
33848 | "src/modules/loaders/bmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/bmp/Makefile" ;; | ||
33849 | "src/modules/loaders/ico/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/ico/Makefile" ;; | ||
33850 | "src/modules/loaders/tga/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/tga/Makefile" ;; | ||
33851 | "src/modules/loaders/svg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/svg/Makefile" ;; | ||
33852 | "src/modules/loaders/pmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/pmaps/Makefile" ;; | ||
33853 | "src/modules/loaders/wbmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/wbmp/Makefile" ;; | ||
33854 | "src/modules/loaders/psd/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/psd/Makefile" ;; | ||
33855 | "src/modules/loaders/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/generic/Makefile" ;; | ||
33856 | "src/modules/savers/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/Makefile" ;; | ||
33857 | "src/modules/savers/edb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/edb/Makefile" ;; | ||
33858 | "src/modules/savers/eet/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/eet/Makefile" ;; | ||
33859 | "src/modules/savers/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/jpeg/Makefile" ;; | ||
33860 | "src/modules/savers/png/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/png/Makefile" ;; | ||
33861 | "src/modules/savers/tiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/tiff/Makefile" ;; | ||
33862 | "src/static_deps/Makefile") CONFIG_FILES="$CONFIG_FILES src/static_deps/Makefile" ;; | ||
33863 | "src/static_deps/liblinebreak/Makefile") CONFIG_FILES="$CONFIG_FILES src/static_deps/liblinebreak/Makefile" ;; | ||
33864 | "src/lib/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/include/Makefile" ;; | ||
33865 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
33866 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
33867 | "evas.spec") CONFIG_FILES="$CONFIG_FILES evas.spec" ;; | ||
33868 | |||
33869 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
33870 | esac | ||
33871 | done | ||
33872 | |||
33873 | |||
33874 | # If the user did not use the arguments to specify the items to instantiate, | ||
33875 | # then the envvar interface is used. Set only those that are not. | ||
33876 | # We use the long form for the default assignment because of an extremely | ||
33877 | # bizarre bug on SunOS 4.1.3. | ||
33878 | if $ac_need_defaults; then | ||
33879 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
33880 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
33881 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
33882 | fi | ||
33883 | |||
33884 | # Have a temporary directory for convenience. Make it in the build tree | ||
33885 | # simply because there is no reason against having it here, and in addition, | ||
33886 | # creating and moving files from /tmp can sometimes cause problems. | ||
33887 | # Hook for its removal unless debugging. | ||
33888 | # Note that there is a small window in which the directory will not be cleaned: | ||
33889 | # after its creation but before its name has been assigned to `$tmp'. | ||
33890 | $debug || | ||
33891 | { | ||
33892 | tmp= | ||
33893 | trap 'exit_status=$? | ||
33894 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
33895 | ' 0 | ||
33896 | trap 'as_fn_exit 1' 1 2 13 15 | ||
33897 | } | ||
33898 | # Create a (secure) tmp directory for tmp files. | ||
33899 | |||
33900 | { | ||
33901 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
33902 | test -n "$tmp" && test -d "$tmp" | ||
33903 | } || | ||
33904 | { | ||
33905 | tmp=./conf$$-$RANDOM | ||
33906 | (umask 077 && mkdir "$tmp") | ||
33907 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
33908 | |||
33909 | # Set up the scripts for CONFIG_FILES section. | ||
33910 | # No need to generate them if there are no CONFIG_FILES. | ||
33911 | # This happens for instance with `./config.status config.h'. | ||
33912 | if test -n "$CONFIG_FILES"; then | ||
33913 | |||
33914 | |||
33915 | ac_cr=`echo X | tr X '\015'` | ||
33916 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
33917 | # But we know of no other shell where ac_cr would be empty at this | ||
33918 | # point, so we can use a bashism as a fallback. | ||
33919 | if test "x$ac_cr" = x; then | ||
33920 | eval ac_cr=\$\'\\r\' | ||
33921 | fi | ||
33922 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
33923 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
33924 | ac_cs_awk_cr='\\r' | ||
33925 | else | ||
33926 | ac_cs_awk_cr=$ac_cr | ||
33927 | fi | ||
33928 | |||
33929 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
33930 | _ACEOF | ||
33931 | |||
33932 | |||
33933 | { | ||
33934 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
33935 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
33936 | echo "_ACEOF" | ||
33937 | } >conf$$subs.sh || | ||
33938 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
33939 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
33940 | ac_delim='%!_!# ' | ||
33941 | for ac_last_try in false false false false false :; do | ||
33942 | . ./conf$$subs.sh || | ||
33943 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
33944 | |||
33945 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
33946 | if test $ac_delim_n = $ac_delim_num; then | ||
33947 | break | ||
33948 | elif $ac_last_try; then | ||
33949 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
33950 | else | ||
33951 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
33952 | fi | ||
33953 | done | ||
33954 | rm -f conf$$subs.sh | ||
33955 | |||
33956 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33957 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
33958 | _ACEOF | ||
33959 | sed -n ' | ||
33960 | h | ||
33961 | s/^/S["/; s/!.*/"]=/ | ||
33962 | p | ||
33963 | g | ||
33964 | s/^[^!]*!// | ||
33965 | :repl | ||
33966 | t repl | ||
33967 | s/'"$ac_delim"'$// | ||
33968 | t delim | ||
33969 | :nl | ||
33970 | h | ||
33971 | s/\(.\{148\}\)..*/\1/ | ||
33972 | t more1 | ||
33973 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
33974 | p | ||
33975 | n | ||
33976 | b repl | ||
33977 | :more1 | ||
33978 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
33979 | p | ||
33980 | g | ||
33981 | s/.\{148\}// | ||
33982 | t nl | ||
33983 | :delim | ||
33984 | h | ||
33985 | s/\(.\{148\}\)..*/\1/ | ||
33986 | t more2 | ||
33987 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
33988 | p | ||
33989 | b | ||
33990 | :more2 | ||
33991 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
33992 | p | ||
33993 | g | ||
33994 | s/.\{148\}// | ||
33995 | t delim | ||
33996 | ' <conf$$subs.awk | sed ' | ||
33997 | /^[^""]/{ | ||
33998 | N | ||
33999 | s/\n// | ||
34000 | } | ||
34001 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
34002 | rm -f conf$$subs.awk | ||
34003 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34004 | _ACAWK | ||
34005 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
34006 | for (key in S) S_is_set[key] = 1 | ||
34007 | FS = "" | ||
34008 | |||
34009 | } | ||
34010 | { | ||
34011 | line = $ 0 | ||
34012 | nfields = split(line, field, "@") | ||
34013 | substed = 0 | ||
34014 | len = length(field[1]) | ||
34015 | for (i = 2; i < nfields; i++) { | ||
34016 | key = field[i] | ||
34017 | keylen = length(key) | ||
34018 | if (S_is_set[key]) { | ||
34019 | value = S[key] | ||
34020 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
34021 | len += length(value) + length(field[++i]) | ||
34022 | substed = 1 | ||
34023 | } else | ||
34024 | len += 1 + keylen | ||
34025 | } | ||
34026 | |||
34027 | print line | ||
34028 | } | ||
34029 | |||
34030 | _ACAWK | ||
34031 | _ACEOF | ||
34032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34033 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
34034 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
34035 | else | ||
34036 | cat | ||
34037 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
34038 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
34039 | _ACEOF | ||
34040 | |||
34041 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
34042 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
34043 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
34044 | # (actually we leave an empty line to preserve line numbers). | ||
34045 | if test "x$srcdir" = x.; then | ||
34046 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
34047 | h | ||
34048 | s/// | ||
34049 | s/^/:/ | ||
34050 | s/[ ]*$/:/ | ||
34051 | s/:\$(srcdir):/:/g | ||
34052 | s/:\${srcdir}:/:/g | ||
34053 | s/:@srcdir@:/:/g | ||
34054 | s/^:*// | ||
34055 | s/:*$// | ||
34056 | x | ||
34057 | s/\(=[ ]*\).*/\1/ | ||
34058 | G | ||
34059 | s/\n// | ||
34060 | s/^[^=]*=[ ]*$// | ||
34061 | }' | ||
34062 | fi | ||
34063 | |||
34064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34065 | fi # test -n "$CONFIG_FILES" | ||
34066 | |||
34067 | # Set up the scripts for CONFIG_HEADERS section. | ||
34068 | # No need to generate them if there are no CONFIG_HEADERS. | ||
34069 | # This happens for instance with `./config.status Makefile'. | ||
34070 | if test -n "$CONFIG_HEADERS"; then | ||
34071 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
34072 | BEGIN { | ||
34073 | _ACEOF | ||
34074 | |||
34075 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
34076 | # here-document in config.status, that substitutes the proper values into | ||
34077 | # config.h.in to produce config.h. | ||
34078 | |||
34079 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
34080 | # handling of long lines. | ||
34081 | ac_delim='%!_!# ' | ||
34082 | for ac_last_try in false false :; do | ||
34083 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
34084 | if test -z "$ac_t"; then | ||
34085 | break | ||
34086 | elif $ac_last_try; then | ||
34087 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
34088 | else | ||
34089 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
34090 | fi | ||
34091 | done | ||
34092 | |||
34093 | # For the awk script, D is an array of macro values keyed by name, | ||
34094 | # likewise P contains macro parameters if any. Preserve backslash | ||
34095 | # newline sequences. | ||
34096 | |||
34097 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
34098 | sed -n ' | ||
34099 | s/.\{148\}/&'"$ac_delim"'/g | ||
34100 | t rset | ||
34101 | :rset | ||
34102 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
34103 | t def | ||
34104 | d | ||
34105 | :def | ||
34106 | s/\\$// | ||
34107 | t bsnl | ||
34108 | s/["\\]/\\&/g | ||
34109 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
34110 | D["\1"]=" \3"/p | ||
34111 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
34112 | d | ||
34113 | :bsnl | ||
34114 | s/["\\]/\\&/g | ||
34115 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
34116 | D["\1"]=" \3\\\\\\n"\\/p | ||
34117 | t cont | ||
34118 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
34119 | t cont | ||
34120 | d | ||
34121 | :cont | ||
34122 | n | ||
34123 | s/.\{148\}/&'"$ac_delim"'/g | ||
34124 | t clear | ||
34125 | :clear | ||
34126 | s/\\$// | ||
34127 | t bsnlc | ||
34128 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
34129 | d | ||
34130 | :bsnlc | ||
34131 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
34132 | b cont | ||
34133 | ' <confdefs.h | sed ' | ||
34134 | s/'"$ac_delim"'/"\\\ | ||
34135 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
34136 | |||
34137 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34138 | for (key in D) D_is_set[key] = 1 | ||
34139 | FS = "" | ||
34140 | } | ||
34141 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
34142 | line = \$ 0 | ||
34143 | split(line, arg, " ") | ||
34144 | if (arg[1] == "#") { | ||
34145 | defundef = arg[2] | ||
34146 | mac1 = arg[3] | ||
34147 | } else { | ||
34148 | defundef = substr(arg[1], 2) | ||
34149 | mac1 = arg[2] | ||
34150 | } | ||
34151 | split(mac1, mac2, "(") #) | ||
34152 | macro = mac2[1] | ||
34153 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
34154 | if (D_is_set[macro]) { | ||
34155 | # Preserve the white space surrounding the "#". | ||
34156 | print prefix "define", macro P[macro] D[macro] | ||
34157 | next | ||
34158 | } else { | ||
34159 | # Replace #undef with comments. This is necessary, for example, | ||
34160 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
34161 | # on some systems where configure will not decide to define it. | ||
34162 | if (defundef == "undef") { | ||
34163 | print "/*", prefix defundef, macro, "*/" | ||
34164 | next | ||
34165 | } | ||
34166 | } | ||
34167 | } | ||
34168 | { print } | ||
34169 | _ACAWK | ||
34170 | _ACEOF | ||
34171 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34172 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
34173 | fi # test -n "$CONFIG_HEADERS" | ||
34174 | |||
34175 | |||
34176 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
34177 | shift | ||
34178 | for ac_tag | ||
34179 | do | ||
34180 | case $ac_tag in | ||
34181 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
34182 | esac | ||
34183 | case $ac_mode$ac_tag in | ||
34184 | :[FHL]*:*);; | ||
34185 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
34186 | :[FH]-) ac_tag=-:-;; | ||
34187 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
34188 | esac | ||
34189 | ac_save_IFS=$IFS | ||
34190 | IFS=: | ||
34191 | set x $ac_tag | ||
34192 | IFS=$ac_save_IFS | ||
34193 | shift | ||
34194 | ac_file=$1 | ||
34195 | shift | ||
34196 | |||
34197 | case $ac_mode in | ||
34198 | :L) ac_source=$1;; | ||
34199 | :[FH]) | ||
34200 | ac_file_inputs= | ||
34201 | for ac_f | ||
34202 | do | ||
34203 | case $ac_f in | ||
34204 | -) ac_f="$tmp/stdin";; | ||
34205 | *) # Look for the file first in the build tree, then in the source tree | ||
34206 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
34207 | # because $ac_f cannot contain `:'. | ||
34208 | test -f "$ac_f" || | ||
34209 | case $ac_f in | ||
34210 | [\\/$]*) false;; | ||
34211 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
34212 | esac || | ||
34213 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
34214 | esac | ||
34215 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
34216 | as_fn_append ac_file_inputs " '$ac_f'" | ||
34217 | done | ||
34218 | |||
34219 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
34220 | # use $as_me), people would be surprised to read: | ||
34221 | # /* config.h. Generated by config.status. */ | ||
34222 | configure_input='Generated from '` | ||
34223 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
34224 | `' by configure.' | ||
34225 | if test x"$ac_file" != x-; then | ||
34226 | configure_input="$ac_file. $configure_input" | ||
34227 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
34228 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
34229 | fi | ||
34230 | # Neutralize special characters interpreted by sed in replacement strings. | ||
34231 | case $configure_input in #( | ||
34232 | *\&* | *\|* | *\\* ) | ||
34233 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
34234 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
34235 | *) ac_sed_conf_input=$configure_input;; | ||
34236 | esac | ||
34237 | |||
34238 | case $ac_tag in | ||
34239 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
34240 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
34241 | esac | ||
34242 | ;; | ||
34243 | esac | ||
34244 | |||
34245 | ac_dir=`$as_dirname -- "$ac_file" || | ||
34246 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
34247 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
34248 | X"$ac_file" : 'X\(//\)$' \| \ | ||
34249 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
34250 | $as_echo X"$ac_file" | | ||
34251 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
34252 | s//\1/ | ||
34253 | q | ||
34254 | } | ||
34255 | /^X\(\/\/\)[^/].*/{ | ||
34256 | s//\1/ | ||
34257 | q | ||
34258 | } | ||
34259 | /^X\(\/\/\)$/{ | ||
34260 | s//\1/ | ||
34261 | q | ||
34262 | } | ||
34263 | /^X\(\/\).*/{ | ||
34264 | s//\1/ | ||
34265 | q | ||
34266 | } | ||
34267 | s/.*/./; q'` | ||
34268 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
34269 | ac_builddir=. | ||
34270 | |||
34271 | case "$ac_dir" in | ||
34272 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
34273 | *) | ||
34274 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
34275 | # A ".." for each directory in $ac_dir_suffix. | ||
34276 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
34277 | case $ac_top_builddir_sub in | ||
34278 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
34279 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
34280 | esac ;; | ||
34281 | esac | ||
34282 | ac_abs_top_builddir=$ac_pwd | ||
34283 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
34284 | # for backward compatibility: | ||
34285 | ac_top_builddir=$ac_top_build_prefix | ||
34286 | |||
34287 | case $srcdir in | ||
34288 | .) # We are building in place. | ||
34289 | ac_srcdir=. | ||
34290 | ac_top_srcdir=$ac_top_builddir_sub | ||
34291 | ac_abs_top_srcdir=$ac_pwd ;; | ||
34292 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
34293 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
34294 | ac_top_srcdir=$srcdir | ||
34295 | ac_abs_top_srcdir=$srcdir ;; | ||
34296 | *) # Relative name. | ||
34297 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
34298 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
34299 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
34300 | esac | ||
34301 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
34302 | |||
34303 | |||
34304 | case $ac_mode in | ||
34305 | :F) | ||
34306 | # | ||
34307 | # CONFIG_FILE | ||
34308 | # | ||
34309 | |||
34310 | case $INSTALL in | ||
34311 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
34312 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
34313 | esac | ||
34314 | ac_MKDIR_P=$MKDIR_P | ||
34315 | case $MKDIR_P in | ||
34316 | [\\/$]* | ?:[\\/]* ) ;; | ||
34317 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
34318 | esac | ||
34319 | _ACEOF | ||
34320 | |||
34321 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34322 | # If the template does not know about datarootdir, expand it. | ||
34323 | # FIXME: This hack should be removed a few years after 2.60. | ||
34324 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
34325 | ac_sed_dataroot=' | ||
34326 | /datarootdir/ { | ||
34327 | p | ||
34328 | q | ||
34329 | } | ||
34330 | /@datadir@/p | ||
34331 | /@docdir@/p | ||
34332 | /@infodir@/p | ||
34333 | /@localedir@/p | ||
34334 | /@mandir@/p' | ||
34335 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
34336 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
34337 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
34338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
34339 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
34340 | _ACEOF | ||
34341 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34342 | ac_datarootdir_hack=' | ||
34343 | s&@datadir@&$datadir&g | ||
34344 | s&@docdir@&$docdir&g | ||
34345 | s&@infodir@&$infodir&g | ||
34346 | s&@localedir@&$localedir&g | ||
34347 | s&@mandir@&$mandir&g | ||
34348 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
34349 | esac | ||
34350 | _ACEOF | ||
34351 | |||
34352 | # Neutralize VPATH when `$srcdir' = `.'. | ||
34353 | # Shell code in configure.ac might set extrasub. | ||
34354 | # FIXME: do we really want to maintain this feature? | ||
34355 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34356 | ac_sed_extra="$ac_vpsub | ||
34357 | $extrasub | ||
34358 | _ACEOF | ||
34359 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34360 | :t | ||
34361 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
34362 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
34363 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
34364 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
34365 | s&@srcdir@&$ac_srcdir&;t t | ||
34366 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
34367 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
34368 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
34369 | s&@builddir@&$ac_builddir&;t t | ||
34370 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
34371 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
34372 | s&@INSTALL@&$ac_INSTALL&;t t | ||
34373 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
34374 | $ac_datarootdir_hack | ||
34375 | " | ||
34376 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
34377 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
34378 | |||
34379 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
34380 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
34381 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
34382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
34383 | which seems to be undefined. Please make sure it is defined" >&5 | ||
34384 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
34385 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
34386 | |||
34387 | rm -f "$tmp/stdin" | ||
34388 | case $ac_file in | ||
34389 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
34390 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
34391 | esac \ | ||
34392 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
34393 | ;; | ||
34394 | :H) | ||
34395 | # | ||
34396 | # CONFIG_HEADER | ||
34397 | # | ||
34398 | if test x"$ac_file" != x-; then | ||
34399 | { | ||
34400 | $as_echo "/* $configure_input */" \ | ||
34401 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
34402 | } >"$tmp/config.h" \ | ||
34403 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
34404 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
34405 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
34406 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
34407 | else | ||
34408 | rm -f "$ac_file" | ||
34409 | mv "$tmp/config.h" "$ac_file" \ | ||
34410 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
34411 | fi | ||
34412 | else | ||
34413 | $as_echo "/* $configure_input */" \ | ||
34414 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
34415 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
34416 | fi | ||
34417 | # Compute "$ac_file"'s index in $config_headers. | ||
34418 | _am_arg="$ac_file" | ||
34419 | _am_stamp_count=1 | ||
34420 | for _am_header in $config_headers :; do | ||
34421 | case $_am_header in | ||
34422 | $_am_arg | $_am_arg:* ) | ||
34423 | break ;; | ||
34424 | * ) | ||
34425 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
34426 | esac | ||
34427 | done | ||
34428 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
34429 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
34430 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
34431 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
34432 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
34433 | $as_echo X"$_am_arg" | | ||
34434 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
34435 | s//\1/ | ||
34436 | q | ||
34437 | } | ||
34438 | /^X\(\/\/\)[^/].*/{ | ||
34439 | s//\1/ | ||
34440 | q | ||
34441 | } | ||
34442 | /^X\(\/\/\)$/{ | ||
34443 | s//\1/ | ||
34444 | q | ||
34445 | } | ||
34446 | /^X\(\/\).*/{ | ||
34447 | s//\1/ | ||
34448 | q | ||
34449 | } | ||
34450 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
34451 | ;; | ||
34452 | |||
34453 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
34454 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
34455 | ;; | ||
34456 | esac | ||
34457 | |||
34458 | |||
34459 | case $ac_file$ac_mode in | ||
34460 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
34461 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
34462 | # are listed without --file. Let's play safe and only enable the eval | ||
34463 | # if we detect the quoting. | ||
34464 | case $CONFIG_FILES in | ||
34465 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
34466 | *) set x $CONFIG_FILES ;; | ||
34467 | esac | ||
34468 | shift | ||
34469 | for mf | ||
34470 | do | ||
34471 | # Strip MF so we end up with the name of the file. | ||
34472 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
34473 | # Check whether this is an Automake generated Makefile or not. | ||
34474 | # We used to match only the files named `Makefile.in', but | ||
34475 | # some people rename them; so instead we look at the file content. | ||
34476 | # Grep'ing the first line is not enough: some people post-process | ||
34477 | # each Makefile.in and add a new line on top of each file to say so. | ||
34478 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
34479 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
34480 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
34481 | dirpart=`$as_dirname -- "$mf" || | ||
34482 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
34483 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
34484 | X"$mf" : 'X\(//\)$' \| \ | ||
34485 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
34486 | $as_echo X"$mf" | | ||
34487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
34488 | s//\1/ | ||
34489 | q | ||
34490 | } | ||
34491 | /^X\(\/\/\)[^/].*/{ | ||
34492 | s//\1/ | ||
34493 | q | ||
34494 | } | ||
34495 | /^X\(\/\/\)$/{ | ||
34496 | s//\1/ | ||
34497 | q | ||
34498 | } | ||
34499 | /^X\(\/\).*/{ | ||
34500 | s//\1/ | ||
34501 | q | ||
34502 | } | ||
34503 | s/.*/./; q'` | ||
34504 | else | ||
34505 | continue | ||
34506 | fi | ||
34507 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
34508 | # from the Makefile without running `make'. | ||
34509 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
34510 | test -z "$DEPDIR" && continue | ||
34511 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
34512 | test -z "am__include" && continue | ||
34513 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
34514 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
34515 | U=`sed -n 's/^U = //p' < "$mf"` | ||
34516 | # Find all dependency output files, they are included files with | ||
34517 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
34518 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
34519 | # expansion. | ||
34520 | for file in `sed -n " | ||
34521 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
34522 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
34523 | # Make sure the directory exists. | ||
34524 | test -f "$dirpart/$file" && continue | ||
34525 | fdir=`$as_dirname -- "$file" || | ||
34526 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
34527 | X"$file" : 'X\(//\)[^/]' \| \ | ||
34528 | X"$file" : 'X\(//\)$' \| \ | ||
34529 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
34530 | $as_echo X"$file" | | ||
34531 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
34532 | s//\1/ | ||
34533 | q | ||
34534 | } | ||
34535 | /^X\(\/\/\)[^/].*/{ | ||
34536 | s//\1/ | ||
34537 | q | ||
34538 | } | ||
34539 | /^X\(\/\/\)$/{ | ||
34540 | s//\1/ | ||
34541 | q | ||
34542 | } | ||
34543 | /^X\(\/\).*/{ | ||
34544 | s//\1/ | ||
34545 | q | ||
34546 | } | ||
34547 | s/.*/./; q'` | ||
34548 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
34549 | # echo "creating $dirpart/$file" | ||
34550 | echo '# dummy' > "$dirpart/$file" | ||
34551 | done | ||
34552 | done | ||
34553 | } | ||
34554 | ;; | ||
34555 | "libtool":C) | ||
34556 | |||
34557 | # See if we are running on zsh, and set the options which allow our | ||
34558 | # commands through without removal of \ escapes. | ||
34559 | if test -n "${ZSH_VERSION+set}" ; then | ||
34560 | setopt NO_GLOB_SUBST | ||
34561 | fi | ||
34562 | |||
34563 | cfgfile="${ofile}T" | ||
34564 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
34565 | $RM "$cfgfile" | ||
34566 | |||
34567 | cat <<_LT_EOF >> "$cfgfile" | ||
34568 | #! $SHELL | ||
34569 | |||
34570 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
34571 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
34572 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
34573 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
34574 | # | ||
34575 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
34576 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
34577 | # Written by Gordon Matzigkeit, 1996 | ||
34578 | # | ||
34579 | # This file is part of GNU Libtool. | ||
34580 | # | ||
34581 | # GNU Libtool is free software; you can redistribute it and/or | ||
34582 | # modify it under the terms of the GNU General Public License as | ||
34583 | # published by the Free Software Foundation; either version 2 of | ||
34584 | # the License, or (at your option) any later version. | ||
34585 | # | ||
34586 | # As a special exception to the GNU General Public License, | ||
34587 | # if you distribute this file as part of a program or library that | ||
34588 | # is built using GNU Libtool, you may include this file under the | ||
34589 | # same distribution terms that you use for the rest of that program. | ||
34590 | # | ||
34591 | # GNU Libtool is distributed in the hope that it will be useful, | ||
34592 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
34593 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
34594 | # GNU General Public License for more details. | ||
34595 | # | ||
34596 | # You should have received a copy of the GNU General Public License | ||
34597 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
34598 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
34599 | # obtained by writing to the Free Software Foundation, Inc., | ||
34600 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
34601 | |||
34602 | |||
34603 | # The names of the tagged configurations supported by this script. | ||
34604 | available_tags="CXX " | ||
34605 | |||
34606 | # ### BEGIN LIBTOOL CONFIG | ||
34607 | |||
34608 | # Assembler program. | ||
34609 | AS=$AS | ||
34610 | |||
34611 | # DLL creation program. | ||
34612 | DLLTOOL=$DLLTOOL | ||
34613 | |||
34614 | # Object dumper program. | ||
34615 | OBJDUMP=$OBJDUMP | ||
34616 | |||
34617 | # Which release of libtool.m4 was used? | ||
34618 | macro_version=$macro_version | ||
34619 | macro_revision=$macro_revision | ||
34620 | |||
34621 | # Whether or not to build shared libraries. | ||
34622 | build_libtool_libs=$enable_shared | ||
34623 | |||
34624 | # Whether or not to build static libraries. | ||
34625 | build_old_libs=$enable_static | ||
34626 | |||
34627 | # What type of objects to build. | ||
34628 | pic_mode=$pic_mode | ||
34629 | |||
34630 | # Whether or not to optimize for fast installation. | ||
34631 | fast_install=$enable_fast_install | ||
34632 | |||
34633 | # The host system. | ||
34634 | host_alias=$host_alias | ||
34635 | host=$host | ||
34636 | host_os=$host_os | ||
34637 | |||
34638 | # The build system. | ||
34639 | build_alias=$build_alias | ||
34640 | build=$build | ||
34641 | build_os=$build_os | ||
34642 | |||
34643 | # A sed program that does not truncate output. | ||
34644 | SED=$lt_SED | ||
34645 | |||
34646 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
34647 | Xsed="\$SED -e 1s/^X//" | ||
34648 | |||
34649 | # A grep program that handles long lines. | ||
34650 | GREP=$lt_GREP | ||
34651 | |||
34652 | # An ERE matcher. | ||
34653 | EGREP=$lt_EGREP | ||
34654 | |||
34655 | # A literal string matcher. | ||
34656 | FGREP=$lt_FGREP | ||
34657 | |||
34658 | # A BSD- or MS-compatible name lister. | ||
34659 | NM=$lt_NM | ||
34660 | |||
34661 | # Whether we need soft or hard links. | ||
34662 | LN_S=$lt_LN_S | ||
34663 | |||
34664 | # What is the maximum length of a command? | ||
34665 | max_cmd_len=$max_cmd_len | ||
34666 | |||
34667 | # Object file suffix (normally "o"). | ||
34668 | objext=$ac_objext | ||
34669 | |||
34670 | # Executable file suffix (normally ""). | ||
34671 | exeext=$exeext | ||
34672 | |||
34673 | # whether the shell understands "unset". | ||
34674 | lt_unset=$lt_unset | ||
34675 | |||
34676 | # turn spaces into newlines. | ||
34677 | SP2NL=$lt_lt_SP2NL | ||
34678 | |||
34679 | # turn newlines into spaces. | ||
34680 | NL2SP=$lt_lt_NL2SP | ||
34681 | |||
34682 | # How to create reloadable object files. | ||
34683 | reload_flag=$lt_reload_flag | ||
34684 | reload_cmds=$lt_reload_cmds | ||
34685 | |||
34686 | # Method to check whether dependent libraries are shared objects. | ||
34687 | deplibs_check_method=$lt_deplibs_check_method | ||
34688 | |||
34689 | # Command to use when deplibs_check_method == "file_magic". | ||
34690 | file_magic_cmd=$lt_file_magic_cmd | ||
34691 | |||
34692 | # The archiver. | ||
34693 | AR=$lt_AR | ||
34694 | AR_FLAGS=$lt_AR_FLAGS | ||
34695 | |||
34696 | # A symbol stripping program. | ||
34697 | STRIP=$lt_STRIP | ||
34698 | |||
34699 | # Commands used to install an old-style archive. | ||
34700 | RANLIB=$lt_RANLIB | ||
34701 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
34702 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
34703 | |||
34704 | # A C compiler. | ||
34705 | LTCC=$lt_CC | ||
34706 | |||
34707 | # LTCC compiler flags. | ||
34708 | LTCFLAGS=$lt_CFLAGS | ||
34709 | |||
34710 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
34711 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
34712 | |||
34713 | # Transform the output of nm in a proper C declaration. | ||
34714 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
34715 | |||
34716 | # Transform the output of nm in a C name address pair. | ||
34717 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
34718 | |||
34719 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
34720 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
34721 | |||
34722 | # The name of the directory that contains temporary libtool files. | ||
34723 | objdir=$objdir | ||
34724 | |||
34725 | # Shell to use when invoking shell scripts. | ||
34726 | SHELL=$lt_SHELL | ||
34727 | |||
34728 | # An echo program that does not interpret backslashes. | ||
34729 | ECHO=$lt_ECHO | ||
34730 | |||
34731 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
34732 | MAGIC_CMD=$MAGIC_CMD | ||
34733 | |||
34734 | # Must we lock files when doing compilation? | ||
34735 | need_locks=$lt_need_locks | ||
34736 | |||
34737 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
34738 | DSYMUTIL=$lt_DSYMUTIL | ||
34739 | |||
34740 | # Tool to change global to local symbols on Mac OS X. | ||
34741 | NMEDIT=$lt_NMEDIT | ||
34742 | |||
34743 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
34744 | LIPO=$lt_LIPO | ||
34745 | |||
34746 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
34747 | OTOOL=$lt_OTOOL | ||
34748 | |||
34749 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
34750 | OTOOL64=$lt_OTOOL64 | ||
34751 | |||
34752 | # Old archive suffix (normally "a"). | ||
34753 | libext=$libext | ||
34754 | |||
34755 | # Shared library suffix (normally ".so"). | ||
34756 | shrext_cmds=$lt_shrext_cmds | ||
34757 | |||
34758 | # The commands to extract the exported symbol list from a shared archive. | ||
34759 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
34760 | |||
34761 | # Variables whose values should be saved in libtool wrapper scripts and | ||
34762 | # restored at link time. | ||
34763 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
34764 | |||
34765 | # Do we need the "lib" prefix for modules? | ||
34766 | need_lib_prefix=$need_lib_prefix | ||
34767 | |||
34768 | # Do we need a version for libraries? | ||
34769 | need_version=$need_version | ||
34770 | |||
34771 | # Library versioning type. | ||
34772 | version_type=$version_type | ||
34773 | |||
34774 | # Shared library runtime path variable. | ||
34775 | runpath_var=$runpath_var | ||
34776 | |||
34777 | # Shared library path variable. | ||
34778 | shlibpath_var=$shlibpath_var | ||
34779 | |||
34780 | # Is shlibpath searched before the hard-coded library search path? | ||
34781 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
34782 | |||
34783 | # Format of library name prefix. | ||
34784 | libname_spec=$lt_libname_spec | ||
34785 | |||
34786 | # List of archive names. First name is the real one, the rest are links. | ||
34787 | # The last name is the one that the linker finds with -lNAME | ||
34788 | library_names_spec=$lt_library_names_spec | ||
34789 | |||
34790 | # The coded name of the library, if different from the real name. | ||
34791 | soname_spec=$lt_soname_spec | ||
34792 | |||
34793 | # Command to use after installation of a shared archive. | ||
34794 | postinstall_cmds=$lt_postinstall_cmds | ||
34795 | |||
34796 | # Command to use after uninstallation of a shared archive. | ||
34797 | postuninstall_cmds=$lt_postuninstall_cmds | ||
34798 | |||
34799 | # Commands used to finish a libtool library installation in a directory. | ||
34800 | finish_cmds=$lt_finish_cmds | ||
34801 | |||
34802 | # As "finish_cmds", except a single script fragment to be evaled but | ||
34803 | # not shown. | ||
34804 | finish_eval=$lt_finish_eval | ||
34805 | |||
34806 | # Whether we should hardcode library paths into libraries. | ||
34807 | hardcode_into_libs=$hardcode_into_libs | ||
34808 | |||
34809 | # Compile-time system search path for libraries. | ||
34810 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
34811 | |||
34812 | # Run-time system search path for libraries. | ||
34813 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
34814 | |||
34815 | # Whether dlopen is supported. | ||
34816 | dlopen_support=$enable_dlopen | ||
34817 | |||
34818 | # Whether dlopen of programs is supported. | ||
34819 | dlopen_self=$enable_dlopen_self | ||
34820 | |||
34821 | # Whether dlopen of statically linked programs is supported. | ||
34822 | dlopen_self_static=$enable_dlopen_self_static | ||
34823 | |||
34824 | # Commands to strip libraries. | ||
34825 | old_striplib=$lt_old_striplib | ||
34826 | striplib=$lt_striplib | ||
34827 | |||
34828 | |||
34829 | # The linker used to build libraries. | ||
34830 | LD=$lt_LD | ||
34831 | |||
34832 | # Commands used to build an old-style archive. | ||
34833 | old_archive_cmds=$lt_old_archive_cmds | ||
34834 | |||
34835 | # A language specific compiler. | ||
34836 | CC=$lt_compiler | ||
34837 | |||
34838 | # Is the compiler the GNU compiler? | ||
34839 | with_gcc=$GCC | ||
34840 | |||
34841 | # Compiler flag to turn off builtin functions. | ||
34842 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
34843 | |||
34844 | # How to pass a linker flag through the compiler. | ||
34845 | wl=$lt_lt_prog_compiler_wl | ||
34846 | |||
34847 | # Additional compiler flags for building library objects. | ||
34848 | pic_flag=$lt_lt_prog_compiler_pic | ||
34849 | |||
34850 | # Compiler flag to prevent dynamic linking. | ||
34851 | link_static_flag=$lt_lt_prog_compiler_static | ||
34852 | |||
34853 | # Does compiler simultaneously support -c and -o options? | ||
34854 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
34855 | |||
34856 | # Whether or not to add -lc for building shared libraries. | ||
34857 | build_libtool_need_lc=$archive_cmds_need_lc | ||
34858 | |||
34859 | # Whether or not to disallow shared libs when runtime libs are static. | ||
34860 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
34861 | |||
34862 | # Compiler flag to allow reflexive dlopens. | ||
34863 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
34864 | |||
34865 | # Compiler flag to generate shared objects directly from archives. | ||
34866 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
34867 | |||
34868 | # Whether the compiler copes with passing no objects directly. | ||
34869 | compiler_needs_object=$lt_compiler_needs_object | ||
34870 | |||
34871 | # Create an old-style archive from a shared archive. | ||
34872 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
34873 | |||
34874 | # Create a temporary old-style archive to link instead of a shared archive. | ||
34875 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
34876 | |||
34877 | # Commands used to build a shared archive. | ||
34878 | archive_cmds=$lt_archive_cmds | ||
34879 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
34880 | |||
34881 | # Commands used to build a loadable module if different from building | ||
34882 | # a shared archive. | ||
34883 | module_cmds=$lt_module_cmds | ||
34884 | module_expsym_cmds=$lt_module_expsym_cmds | ||
34885 | |||
34886 | # Whether we are building with GNU ld or not. | ||
34887 | with_gnu_ld=$lt_with_gnu_ld | ||
34888 | |||
34889 | # Flag that allows shared libraries with undefined symbols to be built. | ||
34890 | allow_undefined_flag=$lt_allow_undefined_flag | ||
34891 | |||
34892 | # Flag that enforces no undefined symbols. | ||
34893 | no_undefined_flag=$lt_no_undefined_flag | ||
34894 | |||
34895 | # Flag to hardcode \$libdir into a binary during linking. | ||
34896 | # This must work even if \$libdir does not exist | ||
34897 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
34898 | |||
34899 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
34900 | # during linking. This must work even if \$libdir does not exist. | ||
34901 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
34902 | |||
34903 | # Whether we need a single "-rpath" flag with a separated argument. | ||
34904 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
34905 | |||
34906 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
34907 | # DIR into the resulting binary. | ||
34908 | hardcode_direct=$hardcode_direct | ||
34909 | |||
34910 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
34911 | # DIR into the resulting binary and the resulting library dependency is | ||
34912 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
34913 | # library is relocated. | ||
34914 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
34915 | |||
34916 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
34917 | # into the resulting binary. | ||
34918 | hardcode_minus_L=$hardcode_minus_L | ||
34919 | |||
34920 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
34921 | # into the resulting binary. | ||
34922 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
34923 | |||
34924 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
34925 | # into the library and all subsequent libraries and executables linked | ||
34926 | # against it. | ||
34927 | hardcode_automatic=$hardcode_automatic | ||
34928 | |||
34929 | # Set to yes if linker adds runtime paths of dependent libraries | ||
34930 | # to runtime path list. | ||
34931 | inherit_rpath=$inherit_rpath | ||
34932 | |||
34933 | # Whether libtool must link a program against all its dependency libraries. | ||
34934 | link_all_deplibs=$link_all_deplibs | ||
34935 | |||
34936 | # Fix the shell variable \$srcfile for the compiler. | ||
34937 | fix_srcfile_path=$lt_fix_srcfile_path | ||
34938 | |||
34939 | # Set to "yes" if exported symbols are required. | ||
34940 | always_export_symbols=$always_export_symbols | ||
34941 | |||
34942 | # The commands to list exported symbols. | ||
34943 | export_symbols_cmds=$lt_export_symbols_cmds | ||
34944 | |||
34945 | # Symbols that should not be listed in the preloaded symbols. | ||
34946 | exclude_expsyms=$lt_exclude_expsyms | ||
34947 | |||
34948 | # Symbols that must always be exported. | ||
34949 | include_expsyms=$lt_include_expsyms | ||
34950 | |||
34951 | # Commands necessary for linking programs (against libraries) with templates. | ||
34952 | prelink_cmds=$lt_prelink_cmds | ||
34953 | |||
34954 | # Specify filename containing input files. | ||
34955 | file_list_spec=$lt_file_list_spec | ||
34956 | |||
34957 | # How to hardcode a shared library path into an executable. | ||
34958 | hardcode_action=$hardcode_action | ||
34959 | |||
34960 | # The directories searched by this compiler when creating a shared library. | ||
34961 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | ||
34962 | |||
34963 | # Dependencies to place before and after the objects being linked to | ||
34964 | # create a shared library. | ||
34965 | predep_objects=$lt_predep_objects | ||
34966 | postdep_objects=$lt_postdep_objects | ||
34967 | predeps=$lt_predeps | ||
34968 | postdeps=$lt_postdeps | ||
34969 | |||
34970 | # The library search path used internally by the compiler when linking | ||
34971 | # a shared library. | ||
34972 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
34973 | |||
34974 | # ### END LIBTOOL CONFIG | ||
34975 | |||
34976 | _LT_EOF | ||
34977 | |||
34978 | case $host_os in | ||
34979 | aix3*) | ||
34980 | cat <<\_LT_EOF >> "$cfgfile" | ||
34981 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
34982 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
34983 | # vanish in a puff of smoke. | ||
34984 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
34985 | COLLECT_NAMES= | ||
34986 | export COLLECT_NAMES | ||
34987 | fi | ||
34988 | _LT_EOF | ||
34989 | ;; | ||
34990 | esac | ||
34991 | |||
34992 | |||
34993 | ltmain="$ac_aux_dir/ltmain.sh" | ||
34994 | |||
34995 | |||
34996 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
34997 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
34998 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
34999 | # is reportedly fixed, but why not run on old versions too? | ||
35000 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
35001 | || (rm -f "$cfgfile"; exit 1) | ||
35002 | |||
35003 | case $xsi_shell in | ||
35004 | yes) | ||
35005 | cat << \_LT_EOF >> "$cfgfile" | ||
35006 | |||
35007 | # func_dirname file append nondir_replacement | ||
35008 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
35009 | # otherwise set result to NONDIR_REPLACEMENT. | ||
35010 | func_dirname () | ||
35011 | { | ||
35012 | case ${1} in | ||
35013 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
35014 | * ) func_dirname_result="${3}" ;; | ||
35015 | esac | ||
35016 | } | ||
35017 | |||
35018 | # func_basename file | ||
35019 | func_basename () | ||
35020 | { | ||
35021 | func_basename_result="${1##*/}" | ||
35022 | } | ||
35023 | |||
35024 | # func_dirname_and_basename file append nondir_replacement | ||
35025 | # perform func_basename and func_dirname in a single function | ||
35026 | # call: | ||
35027 | # dirname: Compute the dirname of FILE. If nonempty, | ||
35028 | # add APPEND to the result, otherwise set result | ||
35029 | # to NONDIR_REPLACEMENT. | ||
35030 | # value returned in "$func_dirname_result" | ||
35031 | # basename: Compute filename of FILE. | ||
35032 | # value retuned in "$func_basename_result" | ||
35033 | # Implementation must be kept synchronized with func_dirname | ||
35034 | # and func_basename. For efficiency, we do not delegate to | ||
35035 | # those functions but instead duplicate the functionality here. | ||
35036 | func_dirname_and_basename () | ||
35037 | { | ||
35038 | case ${1} in | ||
35039 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
35040 | * ) func_dirname_result="${3}" ;; | ||
35041 | esac | ||
35042 | func_basename_result="${1##*/}" | ||
35043 | } | ||
35044 | |||
35045 | # func_stripname prefix suffix name | ||
35046 | # strip PREFIX and SUFFIX off of NAME. | ||
35047 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
35048 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
35049 | # dot (in which case that matches only a dot). | ||
35050 | func_stripname () | ||
35051 | { | ||
35052 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
35053 | # positional parameters, so assign one to ordinary parameter first. | ||
35054 | func_stripname_result=${3} | ||
35055 | func_stripname_result=${func_stripname_result#"${1}"} | ||
35056 | func_stripname_result=${func_stripname_result%"${2}"} | ||
35057 | } | ||
35058 | |||
35059 | # func_opt_split | ||
35060 | func_opt_split () | ||
35061 | { | ||
35062 | func_opt_split_opt=${1%%=*} | ||
35063 | func_opt_split_arg=${1#*=} | ||
35064 | } | ||
35065 | |||
35066 | # func_lo2o object | ||
35067 | func_lo2o () | ||
35068 | { | ||
35069 | case ${1} in | ||
35070 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
35071 | *) func_lo2o_result=${1} ;; | ||
35072 | esac | ||
35073 | } | ||
35074 | |||
35075 | # func_xform libobj-or-source | ||
35076 | func_xform () | ||
35077 | { | ||
35078 | func_xform_result=${1%.*}.lo | ||
35079 | } | ||
35080 | |||
35081 | # func_arith arithmetic-term... | ||
35082 | func_arith () | ||
35083 | { | ||
35084 | func_arith_result=$(( $* )) | ||
35085 | } | ||
35086 | |||
35087 | # func_len string | ||
35088 | # STRING may not start with a hyphen. | ||
35089 | func_len () | ||
35090 | { | ||
35091 | func_len_result=${#1} | ||
35092 | } | ||
35093 | |||
35094 | _LT_EOF | ||
35095 | ;; | ||
35096 | *) # Bourne compatible functions. | ||
35097 | cat << \_LT_EOF >> "$cfgfile" | ||
35098 | |||
35099 | # func_dirname file append nondir_replacement | ||
35100 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
35101 | # otherwise set result to NONDIR_REPLACEMENT. | ||
35102 | func_dirname () | ||
35103 | { | ||
35104 | # Extract subdirectory from the argument. | ||
35105 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
35106 | if test "X$func_dirname_result" = "X${1}"; then | ||
35107 | func_dirname_result="${3}" | ||
35108 | else | ||
35109 | func_dirname_result="$func_dirname_result${2}" | ||
35110 | fi | ||
35111 | } | ||
35112 | |||
35113 | # func_basename file | ||
35114 | func_basename () | ||
35115 | { | ||
35116 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
35117 | } | ||
35118 | |||
35119 | |||
35120 | # func_stripname prefix suffix name | ||
35121 | # strip PREFIX and SUFFIX off of NAME. | ||
35122 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
35123 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
35124 | # dot (in which case that matches only a dot). | ||
35125 | # func_strip_suffix prefix name | ||
35126 | func_stripname () | ||
35127 | { | ||
35128 | case ${2} in | ||
35129 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
35130 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
35131 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
35132 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
35133 | esac | ||
35134 | } | ||
35135 | |||
35136 | # sed scripts: | ||
35137 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
35138 | my_sed_long_arg='1s/^-[^=]*=//' | ||
35139 | |||
35140 | # func_opt_split | ||
35141 | func_opt_split () | ||
35142 | { | ||
35143 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
35144 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
35145 | } | ||
35146 | |||
35147 | # func_lo2o object | ||
35148 | func_lo2o () | ||
35149 | { | ||
35150 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
35151 | } | ||
35152 | |||
35153 | # func_xform libobj-or-source | ||
35154 | func_xform () | ||
35155 | { | ||
35156 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
35157 | } | ||
35158 | |||
35159 | # func_arith arithmetic-term... | ||
35160 | func_arith () | ||
35161 | { | ||
35162 | func_arith_result=`expr "$@"` | ||
35163 | } | ||
35164 | |||
35165 | # func_len string | ||
35166 | # STRING may not start with a hyphen. | ||
35167 | func_len () | ||
35168 | { | ||
35169 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
35170 | } | ||
35171 | |||
35172 | _LT_EOF | ||
35173 | esac | ||
35174 | |||
35175 | case $lt_shell_append in | ||
35176 | yes) | ||
35177 | cat << \_LT_EOF >> "$cfgfile" | ||
35178 | |||
35179 | # func_append var value | ||
35180 | # Append VALUE to the end of shell variable VAR. | ||
35181 | func_append () | ||
35182 | { | ||
35183 | eval "$1+=\$2" | ||
35184 | } | ||
35185 | _LT_EOF | ||
35186 | ;; | ||
35187 | *) | ||
35188 | cat << \_LT_EOF >> "$cfgfile" | ||
35189 | |||
35190 | # func_append var value | ||
35191 | # Append VALUE to the end of shell variable VAR. | ||
35192 | func_append () | ||
35193 | { | ||
35194 | eval "$1=\$$1\$2" | ||
35195 | } | ||
35196 | |||
35197 | _LT_EOF | ||
35198 | ;; | ||
35199 | esac | ||
35200 | |||
35201 | |||
35202 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
35203 | || (rm -f "$cfgfile"; exit 1) | ||
35204 | |||
35205 | mv -f "$cfgfile" "$ofile" || | ||
35206 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
35207 | chmod +x "$ofile" | ||
35208 | |||
35209 | |||
35210 | cat <<_LT_EOF >> "$ofile" | ||
35211 | |||
35212 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | ||
35213 | |||
35214 | # The linker used to build libraries. | ||
35215 | LD=$lt_LD_CXX | ||
35216 | |||
35217 | # Commands used to build an old-style archive. | ||
35218 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
35219 | |||
35220 | # A language specific compiler. | ||
35221 | CC=$lt_compiler_CXX | ||
35222 | |||
35223 | # Is the compiler the GNU compiler? | ||
35224 | with_gcc=$GCC_CXX | ||
35225 | |||
35226 | # Compiler flag to turn off builtin functions. | ||
35227 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
35228 | |||
35229 | # How to pass a linker flag through the compiler. | ||
35230 | wl=$lt_lt_prog_compiler_wl_CXX | ||
35231 | |||
35232 | # Additional compiler flags for building library objects. | ||
35233 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
35234 | |||
35235 | # Compiler flag to prevent dynamic linking. | ||
35236 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
35237 | |||
35238 | # Does compiler simultaneously support -c and -o options? | ||
35239 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
35240 | |||
35241 | # Whether or not to add -lc for building shared libraries. | ||
35242 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
35243 | |||
35244 | # Whether or not to disallow shared libs when runtime libs are static. | ||
35245 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
35246 | |||
35247 | # Compiler flag to allow reflexive dlopens. | ||
35248 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
35249 | |||
35250 | # Compiler flag to generate shared objects directly from archives. | ||
35251 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
35252 | |||
35253 | # Whether the compiler copes with passing no objects directly. | ||
35254 | compiler_needs_object=$lt_compiler_needs_object_CXX | ||
35255 | |||
35256 | # Create an old-style archive from a shared archive. | ||
35257 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
35258 | |||
35259 | # Create a temporary old-style archive to link instead of a shared archive. | ||
35260 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
35261 | |||
35262 | # Commands used to build a shared archive. | ||
35263 | archive_cmds=$lt_archive_cmds_CXX | ||
35264 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
35265 | |||
35266 | # Commands used to build a loadable module if different from building | ||
35267 | # a shared archive. | ||
35268 | module_cmds=$lt_module_cmds_CXX | ||
35269 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
35270 | |||
35271 | # Whether we are building with GNU ld or not. | ||
35272 | with_gnu_ld=$lt_with_gnu_ld_CXX | ||
35273 | |||
35274 | # Flag that allows shared libraries with undefined symbols to be built. | ||
35275 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
35276 | |||
35277 | # Flag that enforces no undefined symbols. | ||
35278 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
35279 | |||
35280 | # Flag to hardcode \$libdir into a binary during linking. | ||
35281 | # This must work even if \$libdir does not exist | ||
35282 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
35283 | |||
35284 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
35285 | # during linking. This must work even if \$libdir does not exist. | ||
35286 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
35287 | |||
35288 | # Whether we need a single "-rpath" flag with a separated argument. | ||
35289 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
35290 | |||
35291 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
35292 | # DIR into the resulting binary. | ||
35293 | hardcode_direct=$hardcode_direct_CXX | ||
35294 | |||
35295 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
35296 | # DIR into the resulting binary and the resulting library dependency is | ||
35297 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
35298 | # library is relocated. | ||
35299 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | ||
35300 | |||
35301 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
35302 | # into the resulting binary. | ||
35303 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
35304 | |||
35305 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
35306 | # into the resulting binary. | ||
35307 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
35308 | |||
35309 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
35310 | # into the library and all subsequent libraries and executables linked | ||
35311 | # against it. | ||
35312 | hardcode_automatic=$hardcode_automatic_CXX | ||
35313 | |||
35314 | # Set to yes if linker adds runtime paths of dependent libraries | ||
35315 | # to runtime path list. | ||
35316 | inherit_rpath=$inherit_rpath_CXX | ||
35317 | |||
35318 | # Whether libtool must link a program against all its dependency libraries. | ||
35319 | link_all_deplibs=$link_all_deplibs_CXX | ||
35320 | |||
35321 | # Fix the shell variable \$srcfile for the compiler. | ||
35322 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | ||
35323 | |||
35324 | # Set to "yes" if exported symbols are required. | ||
35325 | always_export_symbols=$always_export_symbols_CXX | ||
35326 | |||
35327 | # The commands to list exported symbols. | ||
35328 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
35329 | |||
35330 | # Symbols that should not be listed in the preloaded symbols. | ||
35331 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
35332 | |||
35333 | # Symbols that must always be exported. | ||
35334 | include_expsyms=$lt_include_expsyms_CXX | ||
35335 | |||
35336 | # Commands necessary for linking programs (against libraries) with templates. | ||
35337 | prelink_cmds=$lt_prelink_cmds_CXX | ||
35338 | |||
35339 | # Specify filename containing input files. | ||
35340 | file_list_spec=$lt_file_list_spec_CXX | ||
35341 | |||
35342 | # How to hardcode a shared library path into an executable. | ||
35343 | hardcode_action=$hardcode_action_CXX | ||
35344 | |||
35345 | # The directories searched by this compiler when creating a shared library. | ||
35346 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | ||
35347 | |||
35348 | # Dependencies to place before and after the objects being linked to | ||
35349 | # create a shared library. | ||
35350 | predep_objects=$lt_predep_objects_CXX | ||
35351 | postdep_objects=$lt_postdep_objects_CXX | ||
35352 | predeps=$lt_predeps_CXX | ||
35353 | postdeps=$lt_postdeps_CXX | ||
35354 | |||
35355 | # The library search path used internally by the compiler when linking | ||
35356 | # a shared library. | ||
35357 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
35358 | |||
35359 | # ### END LIBTOOL TAG CONFIG: CXX | ||
35360 | _LT_EOF | ||
35361 | |||
35362 | ;; | ||
35363 | |||
35364 | esac | ||
35365 | done # for ac_tag | ||
35366 | |||
35367 | |||
35368 | as_fn_exit 0 | ||
35369 | _ACEOF | ||
35370 | ac_clean_files=$ac_clean_files_save | ||
35371 | |||
35372 | test $ac_write_fail = 0 || | ||
35373 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
35374 | |||
35375 | |||
35376 | # configure is writing to config.log, and then calls config.status. | ||
35377 | # config.status does its own redirection, appending to config.log. | ||
35378 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
35379 | # by configure, so config.status won't be able to write to it; its | ||
35380 | # output is simply discarded. So we exec the FD to /dev/null, | ||
35381 | # effectively closing config.log, so it can be properly (re)opened and | ||
35382 | # appended to by config.status. When coming back to configure, we | ||
35383 | # need to make the FD available again. | ||
35384 | if test "$no_create" != yes; then | ||
35385 | ac_cs_success=: | ||
35386 | ac_config_status_args= | ||
35387 | test "$silent" = yes && | ||
35388 | ac_config_status_args="$ac_config_status_args --quiet" | ||
35389 | exec 5>/dev/null | ||
35390 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
35391 | exec 5>>config.log | ||
35392 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
35393 | # would make configure fail if this is the last instruction. | ||
35394 | $ac_cs_success || as_fn_exit 1 | ||
35395 | fi | ||
35396 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
35397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
35398 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
35399 | fi | ||
35400 | |||
35401 | |||
35402 | ##################################################################### | ||
35403 | ## Sanity Checks | ||
35404 | |||
35405 | if test "x$build_pthreads" = "xno" ; then | ||
35406 | if test "x$build_async_render" = "xyes" ; then | ||
35407 | echo "ERROR: PThreads off, but async rendering on. Async rendering" | ||
35408 | echo " needs thread support." | ||
35409 | exit 1 | ||
35410 | fi | ||
35411 | if test "x$build_pipe_render" = "xyes" ; then | ||
35412 | echo "ERROR: PThreads off, but pipe rendering on. Pipe rendering" | ||
35413 | echo " needs thread support." | ||
35414 | exit 1 | ||
35415 | fi | ||
35416 | fi | ||
35417 | |||
35418 | if test "x${has_pthreads}" = "xno" ; then | ||
35419 | if test "x$build_async_preload" = "xyes" ; then | ||
35420 | echo "ERROR: PThreads off, but Async Preload on. Async Preload" | ||
35421 | echo " needs thread support." | ||
35422 | exit 1 | ||
35423 | fi | ||
35424 | fi | ||
35425 | |||
35426 | ##################################################################### | ||
35427 | ## Info | ||
35428 | |||
35429 | echo | ||
35430 | echo | ||
35431 | echo | ||
35432 | echo "------------------------------------------------------------------------" | ||
35433 | echo "$PACKAGE $VERSION" | ||
35434 | echo "------------------------------------------------------------------------" | ||
35435 | echo | ||
35436 | echo "Configuration Options Summary:" | ||
35437 | echo | ||
35438 | echo "Engines:" | ||
35439 | echo " Software Memory Buffer.....: $have_evas_engine_buffer" | ||
35440 | echo " Software X11...............: $have_evas_engine_software_x11 (Xlib: $have_evas_engine_software_xlib) (XCB: $have_evas_engine_software_xcb)" | ||
35441 | echo $ECHO_N " OpenGL X11.................: $have_evas_engine_gl_x11 (Xlib: $have_evas_engine_gl_xlib) (XCB: $have_evas_engine_gl_xcb) $ECHO_C" | ||
35442 | if test "x$have_evas_engine_gl_x11" = "xyes"; then | ||
35443 | echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)" | ||
35444 | else | ||
35445 | echo | ||
35446 | fi | ||
35447 | echo " Software GDI...............: $have_evas_engine_software_gdi" | ||
35448 | echo " Software DirectDraw........: $have_evas_engine_software_ddraw" | ||
35449 | echo " Direct3d...................: $have_evas_engine_direct3d" | ||
35450 | echo " Software SDL...............: $have_evas_engine_software_sdl (primitive: $sdl_primitive)" | ||
35451 | echo $ECHO_N " OpenGL SDL.................: $have_evas_engine_gl_sdl $ECHO_C" | ||
35452 | if test "x$have_evas_engine_gl_sdl" = "xyes"; then | ||
35453 | echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)" | ||
35454 | else | ||
35455 | echo | ||
35456 | fi | ||
35457 | echo " OpenGL Cocoa...............: $have_evas_engine_gl_cocoa" | ||
35458 | echo " Software Framebuffer.......: $have_evas_engine_fb" | ||
35459 | echo " DirectFB...................: $have_evas_engine_directfb" | ||
35460 | echo " PSL1GHT....................: $have_evas_engine_psl1ght" | ||
35461 | echo " Software 8bit grayscale....: $have_evas_engine_software_8" | ||
35462 | # FIXME: kill software 16bit | ||
35463 | echo " Software 16bit ............: $have_evas_engine_software_16" | ||
35464 | echo " Software 16bit X11.........: $have_evas_engine_software_16_x11" | ||
35465 | echo " Software 16bit Directdraw..: $have_evas_engine_software_16_ddraw" | ||
35466 | echo " Software 16bit WinCE.......: $have_evas_engine_software_16_wince" | ||
35467 | echo " Software 16bit SDL.........: $have_evas_engine_software_16_sdl (primitive: $sdl_primitive)" | ||
35468 | echo | ||
35469 | echo "Image Loaders:" | ||
35470 | echo " BMP.....................: $have_evas_image_loader_bmp" | ||
35471 | echo " EDB.....................: $have_evas_image_loader_edb" | ||
35472 | echo " EET.....................: $have_evas_image_loader_eet" | ||
35473 | echo " GENERIC.................: $have_evas_image_loader_generic" | ||
35474 | echo " GIF.....................: $have_evas_image_loader_gif" | ||
35475 | echo " ICO.....................: $have_evas_image_loader_ico" | ||
35476 | echo " JPEG....................: $have_evas_image_loader_jpeg (region: $have_jpeg_region)" | ||
35477 | echo " PMAPS...................: $have_evas_image_loader_pmaps" | ||
35478 | echo " PNG.....................: $have_evas_image_loader_png" | ||
35479 | echo " PSD.....................: $have_evas_image_loader_psd" | ||
35480 | echo " SVG.....................: $have_evas_image_loader_svg" | ||
35481 | echo " TGA.....................: $have_evas_image_loader_tga" | ||
35482 | echo " TIFF....................: $have_evas_image_loader_tiff" | ||
35483 | echo " WBMP....................: $have_evas_image_loader_wbmp" | ||
35484 | echo " XPM.....................: $have_evas_image_loader_xpm" | ||
35485 | echo | ||
35486 | echo "Font Sourcing Systems:" | ||
35487 | echo " EET.....................: $have_evas_font_loader_eet" | ||
35488 | echo | ||
35489 | echo "Font Searching Systems:" | ||
35490 | echo " Fontconfig..............: $have_fontconfig" | ||
35491 | echo | ||
35492 | echo "Font Rendering Helpers:" | ||
35493 | echo " Fribidi.................: $have_fribidi" | ||
35494 | echo " Harfbuzz................: $have_harfbuzz" | ||
35495 | echo " liblinebreak............: $have_linebreak" | ||
35496 | # FIXME: add non freetype2 font engine support | ||
35497 | # FIXME: make freetype2 optional | ||
35498 | echo | ||
35499 | echo "CPU Specific Extensions:" | ||
35500 | echo " Fallback C Code.........: $build_cpu_c" | ||
35501 | echo " MMX.....................: $build_cpu_mmx" | ||
35502 | echo " SSE.....................: $build_cpu_sse" | ||
35503 | echo " SSE3....................: $build_cpu_sse3" | ||
35504 | echo " ALTIVEC.................: $build_cpu_altivec" | ||
35505 | echo " NEON....................: $build_cpu_neon" | ||
35506 | echo " Thread Support..........: $build_pthreads" | ||
35507 | echo | ||
35508 | echo "Features:" | ||
35509 | echo " MAGIC_DEBUG.............: $want_evas_magic_debug" | ||
35510 | echo " Cache Server............: $want_evas_cserve" | ||
35511 | echo | ||
35512 | echo " Threaded Pipe Rendering.: $build_pipe_render" | ||
35513 | echo " Async Pipe Rendering....: $build_async_render" | ||
35514 | echo " Async Events............: $build_async_events" | ||
35515 | echo " Async Image Preload.....: $build_async_preload" | ||
35516 | echo | ||
35517 | echo " Word Cache..............: $want_word_cache" | ||
35518 | echo " Metric Cache............: $want_metric_cache" | ||
35519 | echo | ||
35520 | echo "ARGB Software Engine Options:" | ||
35521 | echo " Sampling Scaler.........: $scaler_sample" | ||
35522 | echo " Smooth Scaler...........: $scaler_smooth" | ||
35523 | # FIXME: add an mmx scaler routine | ||
35524 | echo " YUV Converter...........: $conv_yuv" | ||
35525 | # FIXME: add more YUV format and colorvariant support | ||
35526 | echo | ||
35527 | echo "ARGB Conversion Options:" | ||
35528 | echo " Smaller Dither Mask.....: $conv_small_dither" | ||
35529 | echo " Line Dither Mask........: $conv_line_dither" | ||
35530 | echo " No Dither Mask for 16bpp: $conv_no_dither" | ||
35531 | echo " 8bpp RGB 332............: $conv_8_rgb_332" | ||
35532 | echo " 8bpp RGB 666............: $conv_8_rgb_666" | ||
35533 | echo " 8bpp RGB 232............: $conv_8_rgb_232" | ||
35534 | echo " 8bpp RGB 222............: $conv_8_rgb_222" | ||
35535 | echo " 8bpp RGB 221............: $conv_8_rgb_221" | ||
35536 | echo " 8bpp RGB 121............: $conv_8_rgb_121" | ||
35537 | echo " 8bpp RGB 111............: $conv_8_rgb_111" | ||
35538 | echo " 8bpp Grayscale (256)....: $conv_8_gry_1" | ||
35539 | echo " 8bpp Grayscale (16).....: $conv_8_gry_16" | ||
35540 | echo " 8bpp Grayscale 64-pal...: $conv_8_grayscale_64" | ||
35541 | # FIXME: add grayscale and B&W support to standard x converters | ||
35542 | echo " 16bpp RGB 565...........: $conv_16_rgb_565" | ||
35543 | echo " 16bpp BGR 565...........: $conv_16_bgr_565" | ||
35544 | echo " 16bpp RGB 555...........: $conv_16_rgb_555" | ||
35545 | echo " 16bpp RGB 444...........: $conv_16_rgb_444" | ||
35546 | echo " 16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq" | ||
35547 | # FIXME: add 555 (444 ipaq) support | ||
35548 | # FIXME: add 30bpp support | ||
35549 | # FIXME: add palletted support (ugh!) | ||
35550 | # FIXME: add 8bpp and below rotation | ||
35551 | echo " 16bpp Rotation 0........: $conv_16_rgb_rot_0" | ||
35552 | echo " 16bpp Rotation 90.......: $conv_16_rgb_rot_90" | ||
35553 | echo " 16bpp Rotation 180......: $conv_16_rgb_rot_180" | ||
35554 | echo " 16bpp Rotation 270......: $conv_16_rgb_rot_270" | ||
35555 | echo " 24bpp RGB 888...........: $conv_24_rgb_888" | ||
35556 | echo " 24bpp BGR 888...........: $conv_24_bgr_888" | ||
35557 | echo " 24bpp RGB 666 (666 ezx).: $conv_24_rgb_ezx" | ||
35558 | # FIXME: add 24bpp rotation | ||
35559 | echo " 32bpp RGB 8888..........: $conv_32_rgb_8888" | ||
35560 | echo " 32bpp RGBX 8888.........: $conv_32_rgbx_8888" | ||
35561 | echo " 32bpp BGR 8888..........: $conv_32_bgr_8888" | ||
35562 | echo " 32bpp BGRX 8888.........: $conv_32_bgrx_8888" | ||
35563 | echo " 32bpp RGB 666 (666 ezx).: $conv_32_rgb_ezx" | ||
35564 | echo " 32bpp Rotation 0........: $conv_32_rgb_rot_0" | ||
35565 | echo " 32bpp Rotation 90.......: $conv_32_rgb_rot_90" | ||
35566 | echo " 32bpp Rotation 180......: $conv_32_rgb_rot_180" | ||
35567 | echo " 32bpp Rotation 270......: $conv_32_rgb_rot_270" | ||
35568 | echo | ||
35569 | echo "Documentation.............: ${build_doc}" | ||
35570 | echo "Examples..................: install:${install_examples} build:${build_examples}" | ||
35571 | if test "x${enable_tests}" = "xyes" ; then | ||
35572 | echo "Tests.....................: ${enable_tests} (make check)" | ||
35573 | else | ||
35574 | echo "Tests.....................: ${enable_tests}" | ||
35575 | fi | ||
35576 | if test "x${enable_coverage}" = "xyes" ; then | ||
35577 | echo "Coverage..................: ${enable_coverage} (make coverage)" | ||
35578 | else | ||
35579 | echo "Coverage..................: ${enable_coverage}" | ||
35580 | fi | ||
35581 | echo | ||
35582 | echo "Compilation............: make (or gmake)" | ||
35583 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
35584 | echo " CFLAGS...............: $CFLAGS" | ||
35585 | echo " CXXFLAGS.............: $CXXFLAGS" | ||
35586 | echo " LDFLAGS..............: $LDFLAGS" | ||
35587 | echo | ||
35588 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
35589 | echo " prefix...............: $prefix" | ||
35590 | echo | ||
35591 | if test "x${have_static_module}" = "xyes" ; then | ||
35592 | echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Evas." | ||
35593 | echo " You must know what you are doing, or else you will have a lot of" | ||
35594 | echo " problems. And Kenny will be killed." | ||
35595 | echo " Think about that." | ||
35596 | echo | ||
35597 | fi | ||
diff --git a/libraries/evas/configure.ac b/libraries/evas/configure.ac new file mode 100644 index 0000000..0b56053 --- /dev/null +++ b/libraries/evas/configure.ac | |||
@@ -0,0 +1,2082 @@ | |||
1 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
2 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
3 | m4_define([v_maj], [1]) | ||
4 | m4_define([v_min], [1]) | ||
5 | m4_define([v_mic], [0]) | ||
6 | m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) | ||
7 | m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) | ||
8 | ##-- When released, remove the dnl on the below line | ||
9 | m4_undefine([v_rev]) | ||
10 | ##-- When doing snapshots - change soname. remove dnl on below line | ||
11 | dnl m4_define([relname], [ver-pre-svn-07]) | ||
12 | dnl m4_define([v_rel], [-release relname]) | ||
13 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
14 | m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])]) | ||
15 | m4_define([lt_cur], m4_eval(v_maj + v_min)) | ||
16 | m4_define([lt_rev], v_mic) | ||
17 | m4_define([lt_age], v_min) | ||
18 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
19 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
20 | |||
21 | # rw_PROG_OBJC_WORKS | ||
22 | # Check whether the Objective C compiler works. | ||
23 | AC_DEFUN([rw_PROG_OBJC_WORKS], | ||
24 | [m4_ifdef([AC_PROG_OBJC], [AC_REQUIRE([AC_PROG_OBJC])dnl | ||
25 | AC_CACHE_CHECK([whether the Objective C compiler works], | ||
26 | [rw_cv_prog_objc_works], | ||
27 | [AC_LANG_PUSH([Objective C]) | ||
28 | AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], | ||
29 | [rw_cv_prog_objc_works=yes], | ||
30 | [rw_cv_prog_objc_works=no]) | ||
31 | AC_LANG_POP([Objective C])])], [rw_cv_prog_objc_works=no]) | ||
32 | ]) | ||
33 | |||
34 | AC_INIT([evas], [v_ver], [enlightenment-devel@lists.sourceforge.net]) | ||
35 | AC_PREREQ([2.52]) | ||
36 | AC_CONFIG_SRCDIR([configure.ac]) | ||
37 | AC_CONFIG_MACRO_DIR([m4]) | ||
38 | |||
39 | AC_CONFIG_HEADERS([config.h]) | ||
40 | AH_TOP([ | ||
41 | #ifndef EFL_CONFIG_H__ | ||
42 | #define EFL_CONFIG_H__ | ||
43 | ]) | ||
44 | AH_BOTTOM([ | ||
45 | #endif /* EFL_CONFIG_H__ */ | ||
46 | ]) | ||
47 | |||
48 | AM_INIT_AUTOMAKE([1.6 dist-bzip2]) | ||
49 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
50 | |||
51 | AC_GNU_SOURCE | ||
52 | |||
53 | AC_LIBTOOL_WIN32_DLL | ||
54 | define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl | ||
55 | AC_PROG_LIBTOOL | ||
56 | |||
57 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
58 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
59 | m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) | ||
60 | m4_ifdef([v_rel], , [m4_define([v_rel], [])]) | ||
61 | AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version]) | ||
62 | AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version]) | ||
63 | AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version]) | ||
64 | AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison]) | ||
65 | version_info="lt_cur:lt_rev:lt_age" | ||
66 | release_info="v_rel" | ||
67 | AC_SUBST(version_info) | ||
68 | AC_SUBST(release_info) | ||
69 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
70 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
71 | VMAJ=v_maj | ||
72 | AC_SUBST(VMAJ) | ||
73 | |||
74 | ### Needed information | ||
75 | |||
76 | AC_CANONICAL_BUILD | ||
77 | AC_CANONICAL_HOST | ||
78 | |||
79 | case "$host_os" in | ||
80 | mingw32ce*) | ||
81 | MODULE_ARCH="$host_os-$host_cpu" | ||
82 | ;; | ||
83 | *) | ||
84 | MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic" | ||
85 | ;; | ||
86 | esac | ||
87 | AC_SUBST(MODULE_ARCH) | ||
88 | AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture") | ||
89 | |||
90 | want_fontconfig="auto" | ||
91 | want_fribidi="auto" | ||
92 | want_harfbuzz="auto" | ||
93 | want_pixman="no" | ||
94 | want_evas_cserve="yes" | ||
95 | |||
96 | want_evas_engine_buffer="yes" | ||
97 | want_evas_engine_software_xlib="no" | ||
98 | want_evas_engine_software_xcb="no" | ||
99 | want_evas_engine_software_gdi="no" | ||
100 | want_evas_engine_software_ddraw="no" | ||
101 | want_evas_engine_software_sdl="no" | ||
102 | want_evas_engine_software_8_x11="no" | ||
103 | want_evas_engine_software_16_x11="no" | ||
104 | want_evas_engine_software_16_ddraw="no" | ||
105 | want_evas_engine_software_16_wince="no" | ||
106 | want_evas_engine_software_16_sdl="no" | ||
107 | want_evas_engine_gl_xlib="no" | ||
108 | want_evas_engine_gl_xcb="no" | ||
109 | want_evas_engine_gl_sdl="no" | ||
110 | want_evas_engine_gl_cocoa="no" | ||
111 | want_evas_engine_direct3d="no" | ||
112 | want_evas_engine_fb="no" | ||
113 | want_evas_engine_directfb="no" | ||
114 | want_evas_engine_psl1ght="no" | ||
115 | |||
116 | want_evas_image_loader_edb="yes" | ||
117 | want_evas_image_loader_eet="yes" | ||
118 | want_evas_image_loader_gif="yes" | ||
119 | want_evas_image_loader_jpeg="yes" | ||
120 | want_evas_image_loader_pmaps="yes" | ||
121 | want_evas_image_loader_png="yes" | ||
122 | want_evas_image_loader_svg="yes" | ||
123 | want_evas_image_loader_tiff="yes" | ||
124 | want_evas_image_loader_xpm="yes" | ||
125 | want_evas_image_loader_bmp="yes" | ||
126 | want_evas_image_loader_tga="yes" | ||
127 | want_evas_image_loader_wbmp="yes" | ||
128 | want_evas_image_loader_ico="yes" | ||
129 | want_evas_image_loader_psd="yes" | ||
130 | want_evas_image_loader_generic="yes" | ||
131 | |||
132 | want_evas_font_loader_eet="yes" | ||
133 | |||
134 | case "$host_os" in | ||
135 | mingw32ce*) | ||
136 | want_fontconfig="no" | ||
137 | want_evas_engine_software_16_wince="yes" | ||
138 | want_evas_image_loader_edb="no" | ||
139 | want_evas_image_loader_gif="no" | ||
140 | want_evas_image_loader_svg="no" | ||
141 | want_evas_image_loader_tiff="no" | ||
142 | ;; | ||
143 | mingw*) | ||
144 | want_evas_engine_software_gdi="yes" | ||
145 | want_evas_engine_software_ddraw="yes" | ||
146 | want_evas_engine_direct3d="yes" | ||
147 | want_evas_engine_software_16_ddraw="yes" | ||
148 | want_evas_image_loader_edb="no" | ||
149 | want_evas_image_loader_svg="no" | ||
150 | ;; | ||
151 | darwin*) | ||
152 | want_evas_engine_software_xlib="auto" | ||
153 | want_evas_engine_gl_cocoa="auto" | ||
154 | ;; | ||
155 | *) | ||
156 | want_evas_engine_software_xlib="auto" | ||
157 | want_evas_engine_gl_xlib="auto" | ||
158 | want_evas_engine_software_xcb="no" | ||
159 | want_evas_engine_gl_xcb="no" | ||
160 | want_evas_engine_fb="auto" | ||
161 | ### no - not ready/usable/complete | ||
162 | # want_evas_engine_software_8_x11="auto" | ||
163 | # want_evas_engine_software_16_x11="auto" | ||
164 | ;; | ||
165 | esac | ||
166 | |||
167 | case "$host_vendor" in | ||
168 | ps3*) | ||
169 | want_evas_engine_psl1ght="static" | ||
170 | ;; | ||
171 | esac | ||
172 | |||
173 | requirement_evas="" | ||
174 | |||
175 | |||
176 | ### Additional options to configure | ||
177 | |||
178 | # when used, that option makes configure script fails when | ||
179 | # a requirement is selected, but not met. | ||
180 | use_strict="no" | ||
181 | AC_ARG_ENABLE([strict], | ||
182 | AC_HELP_STRING([--enable-strict], [enable strict checking mode. @<:@default==disabled@:>@]), | ||
183 | [use_strict="yes"], | ||
184 | [use_strict="no"]) | ||
185 | |||
186 | # Simple X11 build/link | ||
187 | AC_ARG_ENABLE([simple-x11], | ||
188 | AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]), | ||
189 | [ | ||
190 | if test "x${enableval}" = "xyes" ; then | ||
191 | want_evas_simple_x11="yes" | ||
192 | else | ||
193 | want_evas_simple_x11="no" | ||
194 | fi | ||
195 | ]) | ||
196 | |||
197 | |||
198 | ### Checks for programs | ||
199 | |||
200 | m4_ifdef([AC_PROG_OBJC], | ||
201 | [ | ||
202 | AC_PROG_OBJC | ||
203 | _AM_DEPENDENCIES(OBJC) | ||
204 | ], | ||
205 | [ | ||
206 | dnl#AC_CHECK_TOOL([OBJC], [gcc]) | ||
207 | dnl#AC_SUBST([OBJC]) | ||
208 | dnl#AC_SUBST([OBJCFLAGS]) | ||
209 | ]) | ||
210 | |||
211 | rw_PROG_OBJC_WORKS | ||
212 | |||
213 | AC_PROG_CXX | ||
214 | AC_PROG_CC | ||
215 | |||
216 | # pkg-config | ||
217 | PKG_PROG_PKG_CONFIG | ||
218 | |||
219 | # Check whether pkg-config supports Requires.private | ||
220 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
221 | pkgconfig_requires_private="Requires.private" | ||
222 | else | ||
223 | pkgconfig_requires_private="Requires" | ||
224 | fi | ||
225 | AC_SUBST(pkgconfig_requires_private) | ||
226 | |||
227 | # doxygen program for documentation building | ||
228 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) | ||
229 | |||
230 | |||
231 | ### Checks for libraries | ||
232 | |||
233 | # Evil library for compilation on Windows CE | ||
234 | |||
235 | case "$host_os" in | ||
236 | mingw*) | ||
237 | PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0]) | ||
238 | AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed]) | ||
239 | requirement_evas="evil ${requirement_evas}" | ||
240 | ;; | ||
241 | esac | ||
242 | |||
243 | ## strong dependencies | ||
244 | |||
245 | # Eina | ||
246 | PKG_CHECK_MODULES([EINA], [eina >= 1.1.0]) | ||
247 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
248 | CPPFLAGS="$CPPFLAGS $EINA_CFLAGS" | ||
249 | AC_CHECK_SIZEOF(Eina_Unicode,, [#include <Eina.h>]) | ||
250 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
251 | |||
252 | # Freetype | ||
253 | PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 9.3.0]) | ||
254 | |||
255 | requirement_evas="freetype2 eina >= 1.1.0 ${requirement_evas}" | ||
256 | |||
257 | ## optional dependencies | ||
258 | |||
259 | # FontConfig | ||
260 | have_fontconfig="no" | ||
261 | AC_ARG_ENABLE([fontconfig], | ||
262 | AC_HELP_STRING([--disable-fontconfig], | ||
263 | [disable fontconfig for finding fonts. @<:@default=enabled@:>@]), | ||
264 | [ | ||
265 | if test "x${enableval}" = "xyes" ; then | ||
266 | want_fontconfig="yes" | ||
267 | else | ||
268 | want_fontconfig="no" | ||
269 | fi | ||
270 | ]) | ||
271 | |||
272 | |||
273 | if test "x${want_fontconfig}" = "xyes" -o "x${want_fontconfig}" = "xauto" ; then | ||
274 | PKG_CHECK_MODULES([FONTCONFIG], | ||
275 | [fontconfig >= 2.5.0], | ||
276 | [ | ||
277 | have_fontconfig="yes" | ||
278 | AC_DEFINE(HAVE_FONTCONFIG, 1, [have fontconfig searching capabilities]) | ||
279 | requirement_evas="fontconfig ${requirement_evas}" | ||
280 | ], | ||
281 | [ | ||
282 | if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
283 | AC_MSG_ERROR([Fontconfig not found (strict dependencies checking)]) | ||
284 | fi | ||
285 | ]) | ||
286 | fi | ||
287 | |||
288 | # linebreak | ||
289 | have_linebreak="no" | ||
290 | want_linebreak="yes" | ||
291 | AC_ARG_ENABLE([liblinebreak], | ||
292 | AC_HELP_STRING([--disable-liblinebreak], | ||
293 | [disable linking against liblinebreak. @<:@default=enabled@:>@]), | ||
294 | [ | ||
295 | if test "x${enableval}" = "xyes" ; then | ||
296 | want_linebreak="yes" | ||
297 | else | ||
298 | want_linebreak="no" | ||
299 | fi | ||
300 | ]) | ||
301 | |||
302 | |||
303 | AM_CONDITIONAL(EVAS_USE_LINEBREAK, test "x${want_linebreak}" = "xyes") | ||
304 | if test "x${want_linebreak}" = "xyes" ; then | ||
305 | have_linebreak="yes" | ||
306 | LINEBREAK_CFLAGS='-I$(top_srcdir)/src/static_deps/liblinebreak' | ||
307 | LINEBREAK_LIBS='$(top_builddir)/src/static_deps/liblinebreak/liblinebreak.la' | ||
308 | AC_SUBST(LINEBREAK_CFLAGS) | ||
309 | AC_SUBST(LINEBREAK_LIBS) | ||
310 | AC_DEFINE(HAVE_LINEBREAK, 1, [have liblinebreak support]) | ||
311 | else | ||
312 | have_linebreak="no" | ||
313 | fi | ||
314 | |||
315 | # fribidi support | ||
316 | have_fribidi="no" | ||
317 | AC_ARG_ENABLE([fribidi], | ||
318 | AC_HELP_STRING([--disable-fribidi], | ||
319 | [disable bidirectional text support. @<:@default=enabled@:>@]), | ||
320 | [ | ||
321 | if test "x${enableval}" = "xyes" ; then | ||
322 | want_fribidi="yes" | ||
323 | else | ||
324 | want_fribidi="no" | ||
325 | fi | ||
326 | ]) | ||
327 | |||
328 | if test "x${want_fribidi}" = "xyes" -o "x${want_fribidi}" = "xauto" ; then | ||
329 | PKG_CHECK_MODULES([FRIBIDI], | ||
330 | [fribidi >= 0.19.2], | ||
331 | [ | ||
332 | have_fribidi="yes" | ||
333 | AC_DEFINE(HAVE_FRIBIDI, 1, [have fribidi support]) | ||
334 | requirement_evas="fribidi ${requirement_evas}" | ||
335 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
336 | CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS" | ||
337 | AC_CHECK_SIZEOF(FriBidiChar,, [#include <fribidi/fribidi.h>]) | ||
338 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
339 | ], | ||
340 | [ | ||
341 | if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
342 | AC_MSG_ERROR([Fribidi not found (strict dependencies checking)]) | ||
343 | fi | ||
344 | ]) | ||
345 | fi | ||
346 | |||
347 | if test "x${have_fribidi}" = "xno"; then | ||
348 | HAS_BIDI=0 | ||
349 | fi | ||
350 | |||
351 | # harfbuzz support | ||
352 | have_harfbuzz="no" | ||
353 | have_harfbuzz_ft="no" | ||
354 | AC_ARG_ENABLE([harfbuzz], | ||
355 | AC_HELP_STRING([--disable-harfbuzz], | ||
356 | [disable complex text shaping and layouting support. @<:@default=enabled@:>@]), | ||
357 | [ | ||
358 | if test "x${enableval}" = "xyes" ; then | ||
359 | want_harfbuzz="yes" | ||
360 | else | ||
361 | want_harfbuzz="no" | ||
362 | fi | ||
363 | ]) | ||
364 | |||
365 | if test "x${want_harfbuzz}" = "xyes" -o "x${want_harfbuzz}" = "xauto" ; then | ||
366 | PKG_CHECK_MODULES([HARFBUZZ], | ||
367 | [harfbuzz >= 0.6.0], | ||
368 | [ | ||
369 | have_harfbuzz="yes" | ||
370 | requirement_evas="harfbuzz ${requirement_evas}" | ||
371 | ], | ||
372 | [ | ||
373 | if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
374 | AC_MSG_ERROR([Harfbuzz not found (strict dependencies checking)]) | ||
375 | fi | ||
376 | ]) | ||
377 | if test "x$have_harfbuzz" = "xyes" ; then | ||
378 | |||
379 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
380 | CPPFLAGS="$CPPFLAGS $HARFBUZZ_CFLAGS $FREETYPE_CFLAGS" | ||
381 | # must have for usage with harfbuzz although harfbuzz may not have it. | ||
382 | |||
383 | AC_CHECK_HEADER(hb-ft.h, | ||
384 | [ | ||
385 | have_harfbuzz_ft="yes" | ||
386 | #Depend on harfbuzz ft for harfbuzz support | ||
387 | AC_DEFINE(HAVE_HARFBUZZ, 1, [have harfbuzz support]) | ||
388 | ], | ||
389 | [ | ||
390 | if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
391 | AC_MSG_ERROR([Harfbuzz-ft not found (strict dependencies checking)]) | ||
392 | fi | ||
393 | have_harfbuzz="no" | ||
394 | ]) | ||
395 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
396 | fi | ||
397 | fi | ||
398 | |||
399 | if test "x${have_harfbuzz}" = "xno"; then | ||
400 | HAS_HARFBUZZ=0 | ||
401 | fi | ||
402 | |||
403 | # Pixman | ||
404 | have_pixman="no" | ||
405 | AC_ARG_ENABLE([pixman], | ||
406 | AC_HELP_STRING([--disable-pixman], | ||
407 | [disable pixman for software rendering. @<:@default=enabled@:>@]), | ||
408 | [ | ||
409 | if test "x${enableval}" = "xyes" ; then | ||
410 | want_pixman="yes" | ||
411 | else | ||
412 | want_pixman="no" | ||
413 | fi | ||
414 | ]) | ||
415 | |||
416 | |||
417 | if test "x${want_pixman}" = "xyes" -o "x${want_pixman}" = "xauto" ; then | ||
418 | PKG_CHECK_MODULES([PIXMAN], | ||
419 | [pixman-1], | ||
420 | [ | ||
421 | have_pixman="yes" | ||
422 | AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering]) | ||
423 | requirement_evas="pixman-1 ${requirement_evas}" | ||
424 | ], | ||
425 | [ | ||
426 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
427 | AC_MSG_ERROR([Pixman not found (strict dependencies checking)]) | ||
428 | fi | ||
429 | ]) | ||
430 | fi | ||
431 | |||
432 | ### Checks for header files | ||
433 | AC_HEADER_STDC | ||
434 | AC_CHECK_HEADERS([unistd.h stdint.h sys/param.h netinet/in.h]) | ||
435 | EFL_CHECK_PATH_MAX | ||
436 | |||
437 | |||
438 | ### Checks for types | ||
439 | AC_CHECK_TYPES([struct sigaction], [], [], | ||
440 | [[#include <signal.h>]]) | ||
441 | |||
442 | |||
443 | ### Checks for structures | ||
444 | |||
445 | |||
446 | ### Checks for compiler characteristics | ||
447 | AC_C_CONST | ||
448 | AC_C_BIGENDIAN | ||
449 | AC_PROG_CC_STDC | ||
450 | EFL_ATTRIBUTE_UNUSED | ||
451 | EFL_ATTRIBUTE_VECTOR | ||
452 | EFL_ATTRIBUTE_ALWAYS_INLINE | ||
453 | |||
454 | WIN32_CPPFLAGS="" | ||
455 | case "$host_os" in | ||
456 | mingw32ce*) | ||
457 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
458 | ;; | ||
459 | mingw*) | ||
460 | WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500" | ||
461 | ;; | ||
462 | esac | ||
463 | AC_SUBST(WIN32_CPPFLAGS) | ||
464 | |||
465 | WIN32_CFLAGS="" | ||
466 | AC_SUBST(WIN32_CFLAGS) | ||
467 | |||
468 | |||
469 | ### Checks for linker characteristics | ||
470 | lt_enable_auto_import="" | ||
471 | case "${host_os}" in | ||
472 | mingw*) | ||
473 | AC_DEFINE(EFL_EVAS_BUILD, 1, [Define to mention that evas is built]) | ||
474 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
475 | ;; | ||
476 | esac | ||
477 | AC_SUBST(lt_enable_auto_import) | ||
478 | |||
479 | |||
480 | ### Checks for library functions | ||
481 | |||
482 | AC_ISC_POSIX | ||
483 | AC_CHECK_FUNCS([siglongjmp]) | ||
484 | |||
485 | # alloca | ||
486 | AC_FUNC_ALLOCA | ||
487 | |||
488 | # fnmatch | ||
489 | EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])]) | ||
490 | |||
491 | # dlopen | ||
492 | dlopen_libs="" | ||
493 | case "$host_os" in | ||
494 | mingw32ce*) | ||
495 | # managed by evil | ||
496 | AC_DEFINE(HAVE_DLSYM) | ||
497 | ;; | ||
498 | mingw*) | ||
499 | # nothing on mingw platform | ||
500 | ;; | ||
501 | *) | ||
502 | AC_CHECK_FUNCS(dlsym, res=yes, res=no) | ||
503 | if test "x$res" = "xyes"; then | ||
504 | AC_DEFINE(HAVE_DLSYM) | ||
505 | else | ||
506 | AC_CHECK_LIB(dl, dlsym, res=yes, res=no) | ||
507 | if test "x$res" = "xyes"; then | ||
508 | dlopen_libs=-ldl | ||
509 | AC_DEFINE(HAVE_DLSYM) | ||
510 | else | ||
511 | want_evas_engine_gl_xlib="no" | ||
512 | want_evas_engine_gl_xcb="no" | ||
513 | want_evas_engine_gl_sdl="no" | ||
514 | fi | ||
515 | fi | ||
516 | esac | ||
517 | AC_SUBST(dlopen_libs) | ||
518 | |||
519 | res=no | ||
520 | AC_CHECK_LIB(m, lround, res=yes, res=no) | ||
521 | if test "x$res" = "xyes"; then | ||
522 | AC_DEFINE(HAVE_LROUND, 1, C99 lround function exists) | ||
523 | fi | ||
524 | |||
525 | SHM_OPEN_LINK="" | ||
526 | AC_MSG_CHECKING([whether shm_open() is present]) | ||
527 | LIBS_save=${LIBS} | ||
528 | LIBS="${LIBS} -lrt" | ||
529 | AC_LINK_IFELSE( | ||
530 | [AC_LANG_PROGRAM( | ||
531 | [[ | ||
532 | #include <sys/stat.h> | ||
533 | #include <sys/mman.h> | ||
534 | #include <fcntl.h> | ||
535 | ]], | ||
536 | [[ | ||
537 | int fd; | ||
538 | fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
539 | shm_unlink("/"); | ||
540 | ]])], | ||
541 | [ | ||
542 | have_shm_open="yes" | ||
543 | AC_DEFINE(HAVE_SHM_OPEN, 1, [Have shm_open() call]) | ||
544 | SHM_OPEN_LINK="-lrt" | ||
545 | ], | ||
546 | [have_shm_open="no"]) | ||
547 | LIBS=${LIBS_save} | ||
548 | AC_MSG_RESULT([${have_shm_open}]) | ||
549 | AC_SUBST(SHM_OPEN_LINK) | ||
550 | |||
551 | # (shm_open (for cache server) | ||
552 | AC_ARG_ENABLE([evas-cserve], | ||
553 | AC_HELP_STRING([--disable-evas-cserve], | ||
554 | [disable shared cache server support. @<:@default=enabled@:>@]), | ||
555 | [ | ||
556 | if test "x${enableval}" = "xyes" ; then | ||
557 | want_evas_cserve="yes" | ||
558 | else | ||
559 | want_evas_cserve="no" | ||
560 | fi | ||
561 | ]) | ||
562 | AC_MSG_CHECKING(whether to build shared cache server and support) | ||
563 | AC_MSG_RESULT(${want_evas_cserve}) | ||
564 | |||
565 | if test "x${want_evas_cserve}" = "xyes" ; then | ||
566 | AC_MSG_CHECKING([whether shm_open() is present]) | ||
567 | LIBS_save=${LIBS} | ||
568 | LIBS="${LIBS} -lrt" | ||
569 | AC_LINK_IFELSE( | ||
570 | [AC_LANG_PROGRAM( | ||
571 | [[ | ||
572 | #include <sys/types.h> | ||
573 | #include <sys/mman.h> | ||
574 | #include <fcntl.h> | ||
575 | ]], | ||
576 | [[ | ||
577 | int fd; | ||
578 | fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
579 | shm_unlink("/"); | ||
580 | ]])], | ||
581 | [want_evas_cserve="yes"], | ||
582 | [want_evas_cserve="no"]) | ||
583 | LIBS=${LIBS_save} | ||
584 | AC_MSG_RESULT([${want_evas_cserve}]) | ||
585 | fi | ||
586 | |||
587 | if test "x${want_evas_cserve}" = "xyes" ; then | ||
588 | AC_DEFINE(EVAS_CSERVE, 1, [Shared caceh server.]) | ||
589 | fi | ||
590 | |||
591 | AM_CONDITIONAL([EVAS_CSERVE], [test "x${want_evas_cserve}" = "xyes"]) | ||
592 | |||
593 | |||
594 | |||
595 | ####################################### | ||
596 | ## GL force flavor gles | ||
597 | gl_flavor_gles="no" | ||
598 | AC_MSG_CHECKING(whether to build GLES flavor of GL) | ||
599 | AC_ARG_ENABLE(gl-flavor-gles, | ||
600 | AC_HELP_STRING([--enable-gl-flavor-gles], [enable gles falvor of gl instead of standard]), | ||
601 | [ | ||
602 | if test "x$enableval" = "xyes" ; then | ||
603 | AC_MSG_RESULT(yes) | ||
604 | gl_flavor_gles="yes" | ||
605 | else | ||
606 | AC_MSG_RESULT(no) | ||
607 | gl_flavor_gles="no" | ||
608 | fi | ||
609 | ], [ | ||
610 | AC_MSG_RESULT(no) | ||
611 | gl_flavor_gles="no" | ||
612 | ] | ||
613 | ) | ||
614 | |||
615 | ####################################### | ||
616 | ## GLES variety sgx | ||
617 | gles_variety_sgx="no" | ||
618 | AC_MSG_CHECKING(whether to build GLES variety for SGX) | ||
619 | AC_ARG_ENABLE(gles-variety-sgx, | ||
620 | AC_HELP_STRING([--enable-gles-variety-sgx], [GLES variety SGX 3D unit]), | ||
621 | [ | ||
622 | if test "x$enableval" = "xyes" ; then | ||
623 | AC_MSG_RESULT(yes) | ||
624 | AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support]) | ||
625 | gles_variety_sgx="yes" | ||
626 | else | ||
627 | AC_MSG_RESULT(no) | ||
628 | gles_variety_sgx="no" | ||
629 | fi | ||
630 | ], [ | ||
631 | AC_MSG_RESULT(no) | ||
632 | gles_variety_sgx="no" | ||
633 | ] | ||
634 | ) | ||
635 | |||
636 | ####################################### | ||
637 | ## GLES variety s3c6410 | ||
638 | gles_variety_s3c6410="no" | ||
639 | AC_MSG_CHECKING(whether to build GLES variety for s3c6410) | ||
640 | AC_ARG_ENABLE(gles-variety-s3c6410, | ||
641 | AC_HELP_STRING([--enable-gles-variety-s3c6410], [GLES variety s3c6410 3D unit]), | ||
642 | [ | ||
643 | if test "x$enableval" = "xyes" ; then | ||
644 | AC_MSG_RESULT(yes) | ||
645 | AC_DEFINE(GLES_VARIETY_S3C6410, 1, [Samsung S3c6410 GLES2 support]) | ||
646 | gles_variety_s3c6410="yes" | ||
647 | else | ||
648 | AC_MSG_RESULT(no) | ||
649 | gles_variety_s3c6410="no" | ||
650 | fi | ||
651 | ], [ | ||
652 | AC_MSG_RESULT(no) | ||
653 | gles_variety_s3c6410="no" | ||
654 | ] | ||
655 | ) | ||
656 | |||
657 | if test "x$gl_flavor_gles" = "xyes"; then | ||
658 | eng="" | ||
659 | if test "x$gles_variety_sgx" = "xyes"; then eng="x"$eng; fi | ||
660 | if test "x$gles_variety_s3c6410" = "xyes"; then eng="x"$eng; fi | ||
661 | if test "x$eng" = "xx"; then | ||
662 | eng="" | ||
663 | else | ||
664 | AC_MSG_ERROR( | ||
665 | [Please enable just 1 OpenGL-ES flavor. Choices are: | ||
666 | --enable-gles-variety-sgx (Most GL-ES2 GPUs with shader compiler) | ||
667 | --enable-gles-variety-s3c6410 (s3c6410 with offline shader compiler) | ||
668 | You will also need to enable the OpenGL engine for X11 with: | ||
669 | --enable-gl-xlib or --enable-gl-xcb | ||
670 | ]) | ||
671 | fi | ||
672 | fi | ||
673 | |||
674 | ##################################################################### | ||
675 | ## Engines | ||
676 | |||
677 | EVAS_CHECK_ENGINE([buffer], [${want_evas_engine_buffer}], [yes], [Buffer]) | ||
678 | |||
679 | EVAS_CHECK_ENGINE([software-gdi], [${want_evas_engine_software_gdi}], [no], [Software GDI]) | ||
680 | |||
681 | EVAS_CHECK_ENGINE([software-ddraw], [${want_evas_engine_software_ddraw}], [no], [Software DirectDraw]) | ||
682 | |||
683 | EVAS_CHECK_ENGINE([direct3d], [${want_evas_engine_direct3d}], [no], [Direct3D]) | ||
684 | |||
685 | EVAS_CHECK_ENGINE([software-sdl], [${want_evas_engine_software_sdl}], [no], [Software SDL]) | ||
686 | |||
687 | EVAS_CHECK_ENGINE([psl1ght], [${want_evas_engine_psl1ght}], [no], [PSL1GHT]) | ||
688 | |||
689 | EVAS_CHECK_ENGINE([gl-sdl], [${want_evas_engine_gl_sdl}], [no], [OpenGL SDL]) | ||
690 | |||
691 | EVAS_CHECK_ENGINE([gl-cocoa], [${want_evas_engine_gl_cocoa}], [no], [OpenGL Cocoa]) | ||
692 | |||
693 | EVAS_CHECK_ENGINE([fb], [${want_evas_engine_fb}], [no], [Framebuffer]) | ||
694 | |||
695 | EVAS_CHECK_ENGINE([directfb], [${want_evas_engine_directfb}], [no], [DirectFB]) | ||
696 | |||
697 | EVAS_CHECK_ENGINE([software-8-x11], [${want_evas_engine_software_8_x11}], [no], [Software X11 8 bits grayscale]) | ||
698 | |||
699 | EVAS_CHECK_ENGINE([software-16-x11], [${want_evas_engine_software_16_x11}], [no], [Software X11 16 bits]) | ||
700 | |||
701 | EVAS_CHECK_ENGINE([software-16-ddraw], [${want_evas_engine_software_16_ddraw}], [no], [Software DirectDraw 16 bits]) | ||
702 | |||
703 | EVAS_CHECK_ENGINE([software-16-wince], [${want_evas_engine_software_16_wince}], [no], [Software Windows CE 16 bits]) | ||
704 | |||
705 | EVAS_CHECK_ENGINE([software-16-sdl], [${want_evas_engine_software_16_sdl}], [no], [Software SDL 16 bits]) | ||
706 | |||
707 | # SDL primitive | ||
708 | sdl_primitive="no" | ||
709 | |||
710 | AC_ARG_ENABLE([sdl-primitive], | ||
711 | [AC_HELP_STRING([--enable-sdl-primitive], [])], | ||
712 | [sdl_primitive=${enableval}] | ||
713 | ) | ||
714 | AC_MSG_CHECKING([whether to use SDL primitive when possible]) | ||
715 | AC_MSG_RESULT([${sdl_primitive}]) | ||
716 | |||
717 | if test "x${sdl_primitive}" = "xyes" ; then | ||
718 | AC_DEFINE([ENGINE_SDL_PRIMITIVE], [1], [Use SDL primitive when possible]) | ||
719 | fi | ||
720 | |||
721 | # if software generic need to be build as part of libevas.so | ||
722 | have_static_software_generic="no" | ||
723 | AC_ARG_ENABLE([static-software-generic], | ||
724 | [AC_HELP_STRING([--enable-static-software-generic], [Build software generic engine as part of libevas])], | ||
725 | [have_static_software_generic=${enableval}] | ||
726 | ) | ||
727 | AC_MSG_CHECKING([Whether to build software generic engine as part of libevas]) | ||
728 | AC_MSG_RESULT([${have_static_software_generic}]) | ||
729 | |||
730 | if test "x${have_static_module}" = "xyes" -a "x${have_static_software_generic}" = "xno"; then | ||
731 | AC_MSG_WARN([Forcing --enable-static-software-generic as engines must be compiled statically]) | ||
732 | have_static_software_generic="yes" | ||
733 | fi | ||
734 | |||
735 | AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, test "x${have_static_software_generic}" = "xyes") | ||
736 | if test "x${have_static_software_generic}" = "xyes"; then | ||
737 | AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, [1], [Build software generic engine as part of libevas]) | ||
738 | fi | ||
739 | |||
740 | |||
741 | ######## Software Engine ######## | ||
742 | have_evas_engine_software_x11="no" | ||
743 | have_evas_engine_software_xcb="no" | ||
744 | have_evas_engine_software_xlib="no" | ||
745 | build_software_xcb= | ||
746 | |||
747 | ## XCB Checks ## | ||
748 | want_xcb="no" | ||
749 | AC_MSG_CHECKING(whether to build Software XCB Engine) | ||
750 | AC_ARG_ENABLE(software-xcb, | ||
751 | AC_HELP_STRING([--enable-software-xcb], [enable Software XCB Engine. @<:@default=disabled@:>@]), [want_xcb=$enableval] | ||
752 | ) | ||
753 | if test "x$want_xcb" != "xno" ; then | ||
754 | EVAS_CHECK_ENGINE([software-xcb], [${want_evas_engine_software_xcb}], [no], [Software XCB]) | ||
755 | if test "x$have_evas_engine_software_xcb" != "xno" ; then | ||
756 | build_software_xcb="yes" | ||
757 | have_evas_engine_software_x11="yes" | ||
758 | AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_X11, [1], [Build software X11 engine]) | ||
759 | AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_XCB, [1], [Build software XCB backend]) | ||
760 | fi | ||
761 | else | ||
762 | AC_MSG_RESULT(no) | ||
763 | build_software_xcb="no" | ||
764 | fi | ||
765 | |||
766 | ## If we are not building XCB, then we can build XLib ## | ||
767 | |||
768 | if test "x$build_software_xcb" = "xno" ; then | ||
769 | EVAS_CHECK_ENGINE([software-xlib], [${want_evas_engine_software_xlib}], [no], [Software Xlib]) | ||
770 | # if software_x11 is available, define everything needed for X11 | ||
771 | if test "x$have_evas_engine_software_xlib" != "xno" ; then | ||
772 | have_evas_engine_software_x11="yes" | ||
773 | AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_X11, [1], [Build software X11 engine]) | ||
774 | AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_XLIB, [1], [Build software Xlib backend]) | ||
775 | fi | ||
776 | else | ||
777 | have_evas_engine_software_xlib="no" | ||
778 | fi | ||
779 | |||
780 | if test "x$have_evas_engine_software_xlib" = "xstatic" -o "x$have_evas_engine_software_xcb" = "xstatic"; then | ||
781 | AC_DEFINE_UNQUOTED(EVAS_STATIC_BUILD_SOFTWARE_X11, [1], [Build software X11 engine as part of libevas]) | ||
782 | fi | ||
783 | |||
784 | AC_SUBST(have_evas_engine_software_xcb) | ||
785 | AC_SUBST(have_evas_engine_software_xlib) | ||
786 | |||
787 | AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XLIB], [test "x${have_evas_engine_software_xlib}" != "xno"]) | ||
788 | AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XCB], [test "x${have_evas_engine_software_xcb}" != "xno"]) | ||
789 | AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_X11], [test "x${have_evas_engine_software_x11}" != "xno"]) | ||
790 | |||
791 | AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_X11], [test "x${have_evas_engine_software_xcb}" = "xstatic" -o "x${have_evas_engine_software_xlib}" = "xstatic"]) | ||
792 | AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XLIB], [test "x${have_evas_engine_software_xlib}" = "xstatic"]) | ||
793 | AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XCB], [test "x${have_evas_engine_software_xcb}" = "xstatic"]) | ||
794 | |||
795 | AC_SUBST(have_evas_engine_software_x11) | ||
796 | |||
797 | |||
798 | ######## OpenGL Engine ######## | ||
799 | have_evas_engine_gl_x11="no" | ||
800 | have_evas_engine_gl_xcb="no" | ||
801 | build_gl_xcb="no" | ||
802 | |||
803 | ## XCB Checks ## | ||
804 | want_gl_xcb="no" | ||
805 | AC_MSG_CHECKING(whether to build OpenGL XCB Engine) | ||
806 | AC_ARG_ENABLE(gl-xcb, | ||
807 | AC_HELP_STRING([--enable-gl-xcb], [enable OpenGL XCB Engine. @<:@default=disabled@:>@]), [want_gl_xcb=$enableval] | ||
808 | ) | ||
809 | if test "x$want_gl_xcb" = "xyes" ; then | ||
810 | EVAS_CHECK_ENGINE([gl-xcb], [${want_evas_engine_gl_xcb}], [no], [OpenGL XCB]) | ||
811 | if test "x$have_evas_engine_gl_xcb" != "xno" ; then | ||
812 | build_gl_xcb="yes" | ||
813 | have_evas_engine_gl_x11="yes" | ||
814 | AC_DEFINE(BUILD_ENGINE_GL_X11, [1], [Build GL X11 engine]) | ||
815 | AC_DEFINE(BUILD_ENGINE_GL_XCB, [1], [Build GL Xcb backend]) | ||
816 | if test "x$have_evas_engine_gl_xcb" = "xstatic" ; then | ||
817 | AC_DEFINE(EVAS_STATIC_BUILD_GL_X11, [1], [Build GL X11 engine as part of libevas]) | ||
818 | fi | ||
819 | fi | ||
820 | AC_SUBST(have_evas_engine_gl_xcb) | ||
821 | else | ||
822 | AC_MSG_RESULT(no) | ||
823 | build_gl_xcb="no" | ||
824 | fi | ||
825 | |||
826 | ## If we are not building XCB, then we can build XLib ## | ||
827 | |||
828 | if test "x$build_gl_xcb" = "xno" ; then | ||
829 | EVAS_CHECK_ENGINE([gl-xlib], [${want_evas_engine_gl_xlib}], [no], [OpenGL XLib]) | ||
830 | if test "x$have_evas_engine_gl_xlib" != "xno" ; then | ||
831 | have_evas_engine_gl_x11="yes" | ||
832 | AC_DEFINE_UNQUOTED(BUILD_ENGINE_GL_X11, [1], [Build OpenGL X11 engine]) | ||
833 | AC_DEFINE_UNQUOTED(BUILD_ENGINE_GL_XLIB, [1], [Build OpenGL Xlib backend]) | ||
834 | if test "x$have_evas_engine_gl_xlib" = "xstatic" ; then | ||
835 | AC_DEFINE_UNQUOTED(EVAS_STATIC_BUILD_GL_X11, [1], [Build OpenGL X11 engine as part of libevas]) | ||
836 | fi | ||
837 | fi | ||
838 | else | ||
839 | have_evas_engine_gl_xlib="no" | ||
840 | fi | ||
841 | AC_SUBST(have_evas_engine_gl_xlib) | ||
842 | |||
843 | AM_CONDITIONAL([BUILD_ENGINE_GL_XLIB], [test "x${have_evas_engine_gl_xlib}" != "xno"]) | ||
844 | AM_CONDITIONAL([BUILD_ENGINE_GL_XCB], [test "x${have_evas_engine_gl_xcb}" != "xno"]) | ||
845 | AM_CONDITIONAL([BUILD_ENGINE_GL_X11], [test "x${have_evas_engine_gl_x11}" != "xno"]) | ||
846 | |||
847 | AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_X11], [test "x${have_evas_engine_gl_xcb}" = "xstatic" -o "x${have_evas_engine_gl_xlib}" = "xstatic"]) | ||
848 | AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XLIB], [test "x${have_evas_engine_gl_xlib}" = "xstatic"]) | ||
849 | AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XCB], [test "x${have_evas_engine_gl_xcb}" = "xstatic"]) | ||
850 | |||
851 | AC_SUBST(have_evas_engine_gl_x11) | ||
852 | |||
853 | # common gl | ||
854 | have_evas_engine_gl_common="no" | ||
855 | have_static_evas_engine_gl_common="no" | ||
856 | if test "x$have_evas_engine_gl_xlib" = "xyes" \ | ||
857 | || test "x$have_evas_engine_gl_xcb" = "xyes" \ | ||
858 | || test "x$have_evas_engine_gl_sdl" = "xyes" \ | ||
859 | || test "x$have_evas_engine_gl_cocoa" = "xyes"; then | ||
860 | have_evas_engine_gl_common="yes" | ||
861 | fi | ||
862 | if test "x$have_evas_engine_gl_xlib" = "xstatic" \ | ||
863 | || test "x$have_evas_engine_gl_xcb" = "xstatic" \ | ||
864 | || test "x$have_evas_engine_gl_sdl" = "xstatic" \ | ||
865 | || test "x$have_evas_engine_gl_cocoa" = "xstatic"; then | ||
866 | have_evas_engine_gl_common="yes" | ||
867 | have_static_evas_engine_gl_common="yes" | ||
868 | fi | ||
869 | |||
870 | if test "x$have_evas_engine_gl_common" = "xyes"; then | ||
871 | evas_engine_gl_common_libs="" | ||
872 | AC_DEFINE(BUILD_ENGINE_GL_COMMON, [1], [Generic OpenGL Rendering Support]) | ||
873 | fi | ||
874 | |||
875 | AC_SUBST([evas_engine_gl_common_libs]) | ||
876 | |||
877 | AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, [test "x$have_evas_engine_gl_common" = "xyes"]) | ||
878 | |||
879 | AM_CONDITIONAL(EVAS_STATIC_BUILD_GL_COMMON, test "x${have_static_evas_engine_gl_common}" = "xyes") | ||
880 | if test "x${have_static_evas_engine_gl_common}" = "xyes"; then | ||
881 | AC_DEFINE(EVAS_STATIC_BUILD_GL_COMMON, [1], [Build GL generic engine as part of libevas]) | ||
882 | fi | ||
883 | |||
884 | # gl_sdl | ||
885 | if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then | ||
886 | AC_CHECK_DECL(SDL_GL_CONTEXT_MAJOR_VERSION, | ||
887 | [AC_DEFINE(HAVE_SDL_GL_CONTEXT_VERSION, [1], [SDL_GL version attributes present])],, | ||
888 | [#include <SDL/SDL_video.h>]) | ||
889 | fi | ||
890 | |||
891 | if test "x$gl_flavor_gles" = "xyes"; then | ||
892 | AC_CHECK_DECL(SDL_OPENGLES, | ||
893 | [AC_DEFINE(HAVE_SDL_FLAG_OPENGLES, [1], [SDL_OPENGLES flag is present])],, | ||
894 | [#include <SDL/SDL_video.h>]) | ||
895 | fi | ||
896 | |||
897 | # if software 16 x11 is enabled - build software_16 (the generic 16bit | ||
898 | # engine). later enable it fb_16 or other "16" bit engines are enabled. | ||
899 | have_evas_engine_software_16="no" | ||
900 | if test "x$have_evas_engine_software_16_x11" = "xyes" -o "x$have_evas_engine_software_16_x11" = "xstatic"; then | ||
901 | have_evas_engine_software_16="yes" | ||
902 | fi | ||
903 | if test "x$have_evas_engine_software_16_sdl" = "xyes" -o "x$have_evas_engine_software_16_sdl" = "xstatic"; then | ||
904 | have_evas_engine_software_16="yes" | ||
905 | fi | ||
906 | if test "x$have_evas_engine_software_16_ddraw" = "xyes" -o "x$have_evas_engine_software_16_ddraw" = "xstatic"; then | ||
907 | have_evas_engine_software_16="yes" | ||
908 | fi | ||
909 | if test "x$have_evas_engine_software_16_wince" = "xyes" -o "x$have_evas_engine_software_16_wince" = "xstatic"; then | ||
910 | have_evas_engine_software_16="yes" | ||
911 | fi | ||
912 | AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16, test "x$have_evas_engine_software_16" = "xyes") | ||
913 | |||
914 | # if software 16 need to be build as part of libevas.so | ||
915 | have_static_software_16="no" | ||
916 | AC_ARG_ENABLE([static-software-16], | ||
917 | [AC_HELP_STRING([--enable-static-software-16], [Build software 16 engine as part of libevas])], | ||
918 | [have_static_software_16=${enableval}] | ||
919 | ) | ||
920 | AC_MSG_CHECKING([Whether to build software 16 engine as part of libevas]) | ||
921 | AC_MSG_RESULT([${have_static_software_16}]) | ||
922 | |||
923 | AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_16, test "x${have_static_software_16}" = "xyes") | ||
924 | if test "x${have_static_software_16}" = "xyes"; then | ||
925 | AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_16, [1], [Build software 16 engine as part of libevas]) | ||
926 | fi | ||
927 | |||
928 | # if software 8 x11 is enabled - build software_8 (the generic 8bit | ||
929 | # engine). | ||
930 | have_evas_engine_software_8="no" | ||
931 | if test "x$have_evas_engine_software_8_x11" = "xyes" -o "x$have_evas_engine_software_8_x11" = "xstatic"; then | ||
932 | have_evas_engine_software_8="yes" | ||
933 | fi | ||
934 | AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_8, test "x$have_evas_engine_software_8" = "xyes") | ||
935 | |||
936 | # if software 8 need to be build as part of libevas.so | ||
937 | have_static_software_8="no" | ||
938 | AC_ARG_ENABLE([static-software-8], | ||
939 | [AC_HELP_STRING([--enable-static-software-8], [Build software 8 engine as part of libevas])], | ||
940 | [have_static_software_8=${enableval}] | ||
941 | ) | ||
942 | AC_MSG_CHECKING([Whether to build software 8 engine as part of libevas]) | ||
943 | AC_MSG_RESULT([${have_static_software_8}]) | ||
944 | |||
945 | AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_8, test "x${have_static_software_8}" = "xyes") | ||
946 | if test "x${have_static_software_8}" = "xyes"; then | ||
947 | AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_8, [1], [Build software 8 engine as part of libevas]) | ||
948 | fi | ||
949 | |||
950 | ##################################################################### | ||
951 | ## Image loaders | ||
952 | |||
953 | EVAS_CHECK_IMAGE_LOADER([Edb], [${want_evas_image_loader_edb}]) | ||
954 | |||
955 | EVAS_CHECK_IMAGE_LOADER([Eet], [${want_evas_image_loader_eet}]) | ||
956 | EVAS_CHECK_FONT_LOADER([${want_evas_font_loader_eet}]) | ||
957 | |||
958 | EVAS_CHECK_IMAGE_LOADER([Gif], [${want_evas_image_loader_gif}]) | ||
959 | |||
960 | have_evas_image_saver_jpeg="no" | ||
961 | EVAS_CHECK_IMAGE_LOADER([Jpeg], [${want_evas_image_loader_jpeg}]) | ||
962 | |||
963 | dnl Windows has no sigsetjmp function, nor equivalent. | ||
964 | dnl So we disable the jpeg saver. | ||
965 | dnl TODO: must find a workaround | ||
966 | case "$host_os" in | ||
967 | mingw*) | ||
968 | ;; | ||
969 | *) | ||
970 | if test "x${have_evas_image_loader_jpeg}" = "xyes" ; then | ||
971 | AC_DEFINE(EVAS_BUILD_SAVER_JPEG, [1], [Build JPEG saver]) | ||
972 | have_evas_image_saver_jpeg="yes" | ||
973 | fi | ||
974 | ;; | ||
975 | esac | ||
976 | AM_CONDITIONAL([BUILD_SAVER_JPEG], [test "x${have_evas_image_saver_jpeg}" = "xyes"]) | ||
977 | |||
978 | EVAS_CHECK_IMAGE_LOADER([PMAPS], [${want_evas_image_loader_pmaps}]) | ||
979 | |||
980 | EVAS_CHECK_IMAGE_LOADER([PNG], [${want_evas_image_loader_png}]) | ||
981 | |||
982 | EVAS_CHECK_IMAGE_LOADER([SVG], [${want_evas_image_loader_svg}]) | ||
983 | |||
984 | EVAS_CHECK_IMAGE_LOADER([Tiff], [${want_evas_image_loader_tiff}]) | ||
985 | |||
986 | EVAS_CHECK_IMAGE_LOADER([XPM], [${want_evas_image_loader_xpm}]) | ||
987 | |||
988 | EVAS_CHECK_IMAGE_LOADER([BMP], [${want_evas_image_loader_bmp}]) | ||
989 | |||
990 | EVAS_CHECK_IMAGE_LOADER([TGA], [${want_evas_image_loader_tga}]) | ||
991 | |||
992 | EVAS_CHECK_IMAGE_LOADER([WBMP], [${want_evas_image_loader_wbmp}]) | ||
993 | |||
994 | EVAS_CHECK_IMAGE_LOADER([ICO], [${want_evas_image_loader_ico}]) | ||
995 | |||
996 | EVAS_CHECK_IMAGE_LOADER([PSD], [${want_evas_image_loader_psd}]) | ||
997 | |||
998 | EVAS_CHECK_IMAGE_LOADER([GENERIC], [${want_evas_image_loader_generic}]) | ||
999 | |||
1000 | ##################################################################### | ||
1001 | ## Cpu based optimizations | ||
1002 | |||
1003 | ####################################### | ||
1004 | ## PTHREADS | ||
1005 | pthread_cflags="" | ||
1006 | pthread_libs="" | ||
1007 | build_pthreads="no" | ||
1008 | has_pthreads="no" | ||
1009 | need_pthreads="no" | ||
1010 | # basic pthread support | ||
1011 | AC_CHECK_HEADER(pthread.h, | ||
1012 | [ | ||
1013 | has_pthreads="yes" | ||
1014 | ], | ||
1015 | [ | ||
1016 | has_pthreads="no" | ||
1017 | ] | ||
1018 | ) | ||
1019 | |||
1020 | # sched_getaffinity pthread_attr_setaffinity_np | ||
1021 | AC_CHECK_HEADERS([pthread.h sched.h], | ||
1022 | [ | ||
1023 | CFLAGS_save="${CFLAGS}" | ||
1024 | CFLAGS="${CFLAGS} -pthread" | ||
1025 | LIBS_save="${LIBS}" | ||
1026 | LIBS="${LIBS} -pthread" | ||
1027 | AC_LINK_IFELSE( | ||
1028 | [AC_LANG_PROGRAM([[ | ||
1029 | #include <pthread.h> | ||
1030 | #include <sched.h> | ||
1031 | ]], | ||
1032 | [[ | ||
1033 | pthread_attr_setaffinity_np(NULL, 0, NULL); | ||
1034 | pthread_barrier_wait(NULL); | ||
1035 | ]])], | ||
1036 | [build_pthreads="yes"], | ||
1037 | [build_pthreads="no"]) | ||
1038 | CFLAGS=${CFLAGS_save} | ||
1039 | LIBS=${LIBS_save} | ||
1040 | ], | ||
1041 | [build_pthreads="no"]) | ||
1042 | |||
1043 | AC_MSG_CHECKING([whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported]) | ||
1044 | AC_MSG_RESULT([${build_pthreads}]) | ||
1045 | |||
1046 | ####################################### | ||
1047 | ## Pthread | ||
1048 | AC_MSG_CHECKING(whether to build pthread code) | ||
1049 | AC_ARG_ENABLE(pthreads, | ||
1050 | AC_HELP_STRING([--enable-pthreads], [enable threaded rendering]), | ||
1051 | [ | ||
1052 | if test "x$enableval" = "xyes" ; then | ||
1053 | if test "x$build_pthreads" = "xyes"; then | ||
1054 | AC_MSG_RESULT(yes) | ||
1055 | AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering]) | ||
1056 | build_pthreads="yes" | ||
1057 | need_pthreads="yes" | ||
1058 | else | ||
1059 | if "x$use_strict" = "xyes"; then | ||
1060 | AC_MSG_ERROR(pthreads headers or functions not found (strict dependencies checking)) | ||
1061 | else | ||
1062 | AC_MSG_RESULT(no: pthread headers or functions not found) | ||
1063 | fi | ||
1064 | fi | ||
1065 | else | ||
1066 | AC_MSG_RESULT(no) | ||
1067 | build_pthreads="no" | ||
1068 | fi | ||
1069 | ], | ||
1070 | [ | ||
1071 | AC_MSG_RESULT($build_pthreads) | ||
1072 | if test "x$build_pthreads" = "xyes" ; then | ||
1073 | AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering]) | ||
1074 | need_pthreads="yes" | ||
1075 | fi | ||
1076 | ] | ||
1077 | ) | ||
1078 | |||
1079 | ####################################### | ||
1080 | ## Pipe Renderer | ||
1081 | build_pipe_render="no" | ||
1082 | |||
1083 | AC_MSG_CHECKING(whether to build Threaded Pipe Rendering support) | ||
1084 | AC_ARG_ENABLE(pipe-render, | ||
1085 | AC_HELP_STRING([--enable-pipe-render], [enable threaded pipe rendering support]), | ||
1086 | [ build_pipe_render=$enableval ] | ||
1087 | ) | ||
1088 | AC_MSG_RESULT($build_pipe_render) | ||
1089 | |||
1090 | AC_MSG_CHECKING(whether we can build Threaded Pipe Rendering support) | ||
1091 | if test \( "x$build_pipe_render" = "xyes" -o "x$build_pipe_render" = "xauto" \); then | ||
1092 | AC_MSG_RESULT(yes) | ||
1093 | AC_DEFINE(BUILD_PIPE_RENDER, 1, [Build pipe render support]) | ||
1094 | build_pipe_render="yes" | ||
1095 | need_pthreads="yes" | ||
1096 | else | ||
1097 | AC_MSG_RESULT(no) | ||
1098 | build_pipe_render="no" | ||
1099 | fi | ||
1100 | |||
1101 | ####################################### | ||
1102 | ## Async Renderer | ||
1103 | build_async_render="no" | ||
1104 | |||
1105 | AC_MSG_CHECKING(whether to build Asynchronously Threaded Pipe Rendering support) | ||
1106 | AC_ARG_ENABLE(async-render, | ||
1107 | AC_HELP_STRING([--enable-async-render], [enable asynchronously threaded pipe rendering support]), | ||
1108 | [ build_async_render=$enableval ] | ||
1109 | ) | ||
1110 | AC_MSG_RESULT($build_async_render) | ||
1111 | |||
1112 | AC_MSG_CHECKING(whether we can build Asynchronously Threaded Pipe Rendering support) | ||
1113 | if test \( "x$build_async_render" = "xyes" \); then | ||
1114 | AC_MSG_RESULT(yes) | ||
1115 | AC_DEFINE(EVAS_FRAME_QUEUING, 1, [Build async render support]) | ||
1116 | build_async_render="yes" | ||
1117 | AC_DEFINE(BUILD_PIPE_RENDER, 1, [Build pipe render support]) | ||
1118 | build_pipe_render="yes" | ||
1119 | need_pthreads="yes" | ||
1120 | |||
1121 | PKG_CHECK_MODULES([XEXT], | ||
1122 | [xext < 1.1.1], | ||
1123 | [ build_avoid_libXext_bug=yes ], | ||
1124 | [ build_avoid_libXext_bug=no ] | ||
1125 | ) | ||
1126 | if test \( "x$build_avoid_libXext_bug" = "xyes" \); then | ||
1127 | AC_DEFINE(LIBXEXT_VERSION_LOW, 1, [To avoid bug on old libXext version]) | ||
1128 | fi | ||
1129 | else | ||
1130 | AC_MSG_RESULT(no) | ||
1131 | build_async_render="no" | ||
1132 | fi | ||
1133 | |||
1134 | ####################################### | ||
1135 | ## Async events | ||
1136 | build_async_events="auto" | ||
1137 | AC_MSG_CHECKING(whether to build Async Events support) | ||
1138 | AC_ARG_ENABLE(async-events, | ||
1139 | AC_HELP_STRING([--enable-async-events], [enable async events support]), | ||
1140 | [ build_async_events=$enableval ] | ||
1141 | ) | ||
1142 | AC_MSG_RESULT($build_async_events) | ||
1143 | |||
1144 | AC_MSG_CHECKING(whether we can build Async Events support) | ||
1145 | if test "x$build_async_events" = "xyes" || test "x$build_async_events" = "xauto" ; then | ||
1146 | AC_MSG_RESULT(yes) | ||
1147 | AC_DEFINE(BUILD_ASYNC_EVENTS, 1, [Build async events support]) | ||
1148 | build_async_events="yes" | ||
1149 | else | ||
1150 | AC_MSG_RESULT(no) | ||
1151 | build_async_events="no" | ||
1152 | fi | ||
1153 | |||
1154 | ####################################### | ||
1155 | ## Async image preload | ||
1156 | build_async_preload="auto" | ||
1157 | AC_MSG_CHECKING(whether to build Async Image Preload support) | ||
1158 | AC_ARG_ENABLE(async-preload, | ||
1159 | AC_HELP_STRING([--enable-async-preload], [enable async image preloading support]), | ||
1160 | [ build_async_preload=$enableval ] | ||
1161 | ) | ||
1162 | AC_MSG_RESULT($build_async_preload) | ||
1163 | |||
1164 | AC_MSG_CHECKING(whether we can build Async Image Preload support) | ||
1165 | if test \( "x$build_async_preload" = "xyes" -o "x$build_async_preload" = "xauto" \) -a "x$build_async_events" = "xyes"; then | ||
1166 | AC_MSG_RESULT(yes) | ||
1167 | AC_DEFINE(BUILD_ASYNC_PRELOAD, 1, [Build async image preload support]) | ||
1168 | build_async_preload="yes" | ||
1169 | need_pthreads="yes" | ||
1170 | else | ||
1171 | AC_MSG_RESULT(no) | ||
1172 | build_async_preload="no" | ||
1173 | fi | ||
1174 | |||
1175 | ####################################### | ||
1176 | ## Link with pthread if needed | ||
1177 | AC_MSG_CHECKING(whether we should link with pthread) | ||
1178 | if test "x$need_pthreads" = "xyes"; then | ||
1179 | AC_MSG_RESULT(yes) | ||
1180 | pthread_cflags="-pthread" | ||
1181 | pthread_libs="-pthread" | ||
1182 | else | ||
1183 | AC_MSG_RESULT(no) | ||
1184 | fi | ||
1185 | |||
1186 | ####################################### | ||
1187 | ## MMX | ||
1188 | build_cpu_mmx="no" | ||
1189 | case $host_cpu in | ||
1190 | i*86) | ||
1191 | build_cpu_mmx="yes" | ||
1192 | ;; | ||
1193 | x86_64) | ||
1194 | build_cpu_mmx="yes" | ||
1195 | ;; | ||
1196 | amd64) | ||
1197 | build_cpu_mmx="yes" | ||
1198 | ;; | ||
1199 | esac | ||
1200 | AC_MSG_CHECKING(whether to build mmx code) | ||
1201 | AC_ARG_ENABLE(cpu-mmx, | ||
1202 | AC_HELP_STRING([--enable-cpu-mmx], [enable mmx code]), | ||
1203 | [ | ||
1204 | if test "x$enableval" = "xyes" ; then | ||
1205 | AC_MSG_RESULT(yes) | ||
1206 | AC_DEFINE(BUILD_MMX, 1, [Build MMX Code]) | ||
1207 | build_cpu_mmx="yes" | ||
1208 | else | ||
1209 | AC_MSG_RESULT(no) | ||
1210 | build_cpu_mmx="no" | ||
1211 | fi | ||
1212 | ], | ||
1213 | [ | ||
1214 | AC_MSG_RESULT($build_cpu_mmx) | ||
1215 | if test "x$build_cpu_mmx" = "xyes" ; then | ||
1216 | AC_DEFINE(BUILD_MMX, 1, [Build MMX Code]) | ||
1217 | fi | ||
1218 | ] | ||
1219 | ) | ||
1220 | |||
1221 | ####################################### | ||
1222 | ## SSE | ||
1223 | build_cpu_sse="no" | ||
1224 | case $host_cpu in | ||
1225 | i*86) | ||
1226 | build_cpu_sse="yes" | ||
1227 | ;; | ||
1228 | x86_64) | ||
1229 | build_cpu_sse="yes" | ||
1230 | ;; | ||
1231 | amd64) | ||
1232 | build_cpu_sse="yes" | ||
1233 | ;; | ||
1234 | esac | ||
1235 | AC_MSG_CHECKING(whether to build sse code) | ||
1236 | AC_ARG_ENABLE(cpu-sse, | ||
1237 | AC_HELP_STRING([--enable-cpu-sse], [enable sse code]), | ||
1238 | [ | ||
1239 | if test "x$enableval" = "xyes" ; then | ||
1240 | AC_MSG_RESULT(yes) | ||
1241 | AC_DEFINE(BUILD_SSE, 1, [Build SSE Code]) | ||
1242 | build_cpu_sse="yes" | ||
1243 | else | ||
1244 | AC_MSG_RESULT(no) | ||
1245 | build_cpu_sse="no" | ||
1246 | fi | ||
1247 | ], | ||
1248 | [ | ||
1249 | AC_MSG_RESULT($build_cpu_sse) | ||
1250 | if test "x$build_cpu_sse" = "xyes" ; then | ||
1251 | AC_DEFINE(BUILD_SSE, 1, [Build SSE Code]) | ||
1252 | fi | ||
1253 | ] | ||
1254 | ) | ||
1255 | |||
1256 | ####################################### | ||
1257 | ## SSE3 | ||
1258 | build_cpu_sse3="no" | ||
1259 | case $host_cpu in | ||
1260 | i*86) | ||
1261 | build_cpu_sse3="yes" | ||
1262 | ;; | ||
1263 | x86_64) | ||
1264 | build_cpu_sse3="yes" | ||
1265 | ;; | ||
1266 | amd64) | ||
1267 | build_cpu_sse3="yes" | ||
1268 | ;; | ||
1269 | esac | ||
1270 | AC_MSG_CHECKING(whether to build sse3 code) | ||
1271 | AC_ARG_ENABLE(cpu-sse3, | ||
1272 | AS_HELP_STRING([--enable-cpu-sse3], [enable sse3 code]), | ||
1273 | [ | ||
1274 | if test "x$enableval" = "xyes" ; then | ||
1275 | AC_MSG_RESULT(yes) | ||
1276 | AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code]) | ||
1277 | build_cpu_sse3="yes" | ||
1278 | else | ||
1279 | AC_MSG_RESULT(no) | ||
1280 | build_cpu_sse3="no" | ||
1281 | fi | ||
1282 | ], | ||
1283 | [ | ||
1284 | AC_MSG_RESULT($build_cpu_sse3) | ||
1285 | if test "x$build_cpu_sse3" = "xyes" ; then | ||
1286 | AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code]) | ||
1287 | fi | ||
1288 | ] | ||
1289 | ) | ||
1290 | |||
1291 | |||
1292 | # as a big warning flag to anyone doing stuff like this... | ||
1293 | # NEVER EVER EVER EVER put **OPTIMIZATION** flags in | ||
1294 | # build flags in makefiles (from configure or anywhere else) | ||
1295 | # EVER as this screws your ability to build 1 binary and | ||
1296 | # cover ALL x86 arch's. This is the HEIGHT of WRONG. If the | ||
1297 | # person building choses to add optimization flags themselves | ||
1298 | # and decide the minimum baseline cpu arch is X then that's | ||
1299 | # their business, but NEVER should it be done here. NEVER. | ||
1300 | # I now have to do this due to the way this sse3 code was done - using | ||
1301 | # intrinsics and "functions" (opcodes) and types that only compile *IF* | ||
1302 | # you compile with -msse3. this ALSO tries to optimize REGULAR c code | ||
1303 | # with sse3 asm.. and this breaks things so badly. so... sse3 will be | ||
1304 | # off until further notice for 32bit x86. | ||
1305 | EVAS_SSE3_CFLAGS=" " | ||
1306 | if test "x$build_cpu_sse3" = "xyes" ; then | ||
1307 | EVAS_SSE3_CFLAGS="-msse3 " | ||
1308 | # CFLAGS="${CFLAGS} ${EVAS_SSE3_CFLAGS}" | ||
1309 | fi | ||
1310 | |||
1311 | AC_SUBST(CFLAGS) | ||
1312 | AC_SUBST(EVAS_SSE3_CFLAGS) | ||
1313 | |||
1314 | ####################################### | ||
1315 | ## ALTIVEC | ||
1316 | build_cpu_altivec="no" | ||
1317 | case $host_cpu in | ||
1318 | *power* | *ppc*) | ||
1319 | build_cpu_altivec="auto" | ||
1320 | ;; | ||
1321 | esac | ||
1322 | altivec_cflags="" | ||
1323 | AC_MSG_CHECKING(whether to build altivec code) | ||
1324 | AC_ARG_ENABLE(cpu-altivec, | ||
1325 | AC_HELP_STRING([--enable-cpu-altivec], [enable altivec code]), | ||
1326 | [ build_cpu_altivec=$enableval ], | ||
1327 | [ | ||
1328 | if test ! "x$build_cpu_altivec" = "xauto"; then | ||
1329 | build_cpu_altivec="no" | ||
1330 | fi | ||
1331 | ] | ||
1332 | ) | ||
1333 | AC_MSG_RESULT($build_cpu_altivec) | ||
1334 | |||
1335 | if test "x$build_cpu_altivec" = "xyes"; then | ||
1336 | AC_CHECK_HEADER(altivec.h, | ||
1337 | [ | ||
1338 | AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code]) | ||
1339 | AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file]) | ||
1340 | build_cpu_altivec="yes" | ||
1341 | ], | ||
1342 | [ | ||
1343 | save_CFLAGS=$CFLAGS | ||
1344 | save_CPPFLAGS=$CPPFLAGS | ||
1345 | CFLAGS=$CFLAGS" -maltivec" | ||
1346 | CPPFLAGS=$CPPFLAGS" -maltivec" | ||
1347 | unset ac_cv_header_altivec_h | ||
1348 | AC_CHECK_HEADER(altivec.h, | ||
1349 | [ | ||
1350 | AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code]) | ||
1351 | AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file]) | ||
1352 | build_cpu_altivec="yes" | ||
1353 | ], | ||
1354 | [ | ||
1355 | if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
1356 | AC_MSG_ERROR(Altivec not found (strict dependencies checking)) | ||
1357 | fi | ||
1358 | build_cpu_altivec="no" | ||
1359 | ] | ||
1360 | ) | ||
1361 | CFLAGS=$save_CFLAGS | ||
1362 | CPPFLAGS=$save_CPPFLAGS | ||
1363 | ] | ||
1364 | ) | ||
1365 | fi | ||
1366 | |||
1367 | if test "x$build_cpu_altivec" = "xyes"; then | ||
1368 | AC_MSG_CHECKING(whether to use altivec compiler flag) | ||
1369 | if test "x$GCC" = "xyes"; then | ||
1370 | if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then | ||
1371 | altivec_cflags="-faltivec" | ||
1372 | AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code]) | ||
1373 | elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then | ||
1374 | altivec_cflags="-maltivec" | ||
1375 | AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code]) | ||
1376 | fi | ||
1377 | fi | ||
1378 | AC_MSG_RESULT($altivec_cflags) | ||
1379 | CFLAGS="$CFLAGS $altivec_cflags" | ||
1380 | fi | ||
1381 | |||
1382 | ####################################### | ||
1383 | ## NEON | ||
1384 | build_cpu_neon="no" | ||
1385 | case $host_cpu in | ||
1386 | arm*) | ||
1387 | build_cpu_neon="yes" | ||
1388 | ;; | ||
1389 | esac | ||
1390 | AC_MSG_CHECKING(whether to build neon code) | ||
1391 | AC_ARG_ENABLE(cpu-neon, | ||
1392 | AC_HELP_STRING([--enable-cpu-neon], [build neon code, the code will be | ||
1393 | checked at run time to see if the CPU supports it]), | ||
1394 | [ | ||
1395 | if test "x$enableval" = "xyes" ; then | ||
1396 | AC_TRY_COMPILE([], | ||
1397 | [asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n")], | ||
1398 | [ | ||
1399 | AC_MSG_RESULT(yes) | ||
1400 | AC_DEFINE(BUILD_NEON, 1, [Build NEON Code]) | ||
1401 | build_cpu_neon="yes" | ||
1402 | ],[ | ||
1403 | AC_MSG_RESULT(no) | ||
1404 | build_cpu_neon="no" | ||
1405 | ]) | ||
1406 | else | ||
1407 | AC_MSG_RESULT(no) | ||
1408 | build_cpu_neon="no" | ||
1409 | fi | ||
1410 | ], | ||
1411 | [ | ||
1412 | if test "x$build_cpu_neon" = "xyes" ; then | ||
1413 | AC_TRY_COMPILE([#include <arm_neon.h>], | ||
1414 | [asm volatile ("vqadd.u8 d0, d1, d0\n")], | ||
1415 | [ | ||
1416 | AC_MSG_RESULT(yes) | ||
1417 | AC_DEFINE(BUILD_NEON, 1, [Build NEON Code]) | ||
1418 | build_cpu_neon="yes" | ||
1419 | ],[ | ||
1420 | AC_MSG_RESULT(no) | ||
1421 | build_cpu_neon="no" | ||
1422 | ]) | ||
1423 | fi | ||
1424 | ] | ||
1425 | ) | ||
1426 | |||
1427 | ####################################### | ||
1428 | ## C | ||
1429 | build_cpu_c="yes" | ||
1430 | AC_MSG_CHECKING(whether to build c code) | ||
1431 | AC_ARG_ENABLE(cpu-c, | ||
1432 | AC_HELP_STRING([--enable-cpu-c], [enable C code]), | ||
1433 | [ | ||
1434 | if test "x$enableval" = "xyes" ; then | ||
1435 | AC_MSG_RESULT(yes) | ||
1436 | AC_DEFINE(BUILD_C, 1, [Build plain C code]) | ||
1437 | build_cpu_c="yes" | ||
1438 | else | ||
1439 | AC_MSG_RESULT(no) | ||
1440 | build_cpu_c="no" | ||
1441 | fi | ||
1442 | ], [ | ||
1443 | AC_MSG_RESULT($build_cpu_c) | ||
1444 | if test "x$build_cpu_c" = "xyes" ; then | ||
1445 | AC_DEFINE(BUILD_C, 1, [Build plain C code]) | ||
1446 | fi | ||
1447 | ] | ||
1448 | ) | ||
1449 | |||
1450 | ####################################### | ||
1451 | ## MAGIC_DEBUG | ||
1452 | want_evas_magic_debug="yes" | ||
1453 | AC_MSG_CHECKING(whether to check magic for evas object) | ||
1454 | AC_ARG_ENABLE(evas-magic-debug, | ||
1455 | AC_HELP_STRING( | ||
1456 | [--disable-evas-magic-debug], | ||
1457 | [disable MAGIC_DEBUG check when people pass in wrong object type. [[default=enabled]]] | ||
1458 | ), | ||
1459 | [ want_evas_magic_debug="$enableval" ] | ||
1460 | ) | ||
1461 | AC_MSG_RESULT($want_evas_magic_debug) | ||
1462 | |||
1463 | AM_CONDITIONAL(EVAS_MAGIC_DEBUG, test "x$want_evas_magic_debug" = "xyes") | ||
1464 | if test "x$want_evas_magic_debug" = "xyes"; then | ||
1465 | AC_DEFINE(EVAS_MAGIC_DEBUG, 1, [complain when people pass in wrong object types etc.]) | ||
1466 | fi | ||
1467 | |||
1468 | |||
1469 | ####################################### | ||
1470 | ## Word Caching | ||
1471 | want_word_cache="no" | ||
1472 | AC_MSG_CHECKING(whether to enable caching of rendered words) | ||
1473 | AC_ARG_ENABLE(word-cache, | ||
1474 | AC_HELP_STRING( | ||
1475 | [--enable-word-cache], | ||
1476 | [Enable experimental word caching to speed up rendering [[default=disabled]]] | ||
1477 | ), | ||
1478 | [ want_word_cache="$enableval" ] | ||
1479 | ) | ||
1480 | AC_MSG_RESULT($want_word_cache) | ||
1481 | |||
1482 | AM_CONDITIONAL(WORD_CACHE, test "x$want_word_cache" = "xyes") | ||
1483 | if test "x$want_word_cache" = "xyes"; then | ||
1484 | AC_DEFINE(WORD_CACHE, 1, [Experimental word caching to speed up text rendering.]) | ||
1485 | fi | ||
1486 | |||
1487 | ####################################### | ||
1488 | ## Metric Caching | ||
1489 | want_metric_cache="no" | ||
1490 | AC_MSG_CHECKING(whether to enable caching of rendered metrics) | ||
1491 | AC_ARG_ENABLE(metric-cache, | ||
1492 | AC_HELP_STRING( | ||
1493 | [--enable-metric-cache], | ||
1494 | [Enable experimental metric caching to speed up rendering [[default=disabled]]] | ||
1495 | ), | ||
1496 | [ want_metric_cache="$enableval" ] | ||
1497 | ) | ||
1498 | AC_MSG_RESULT($want_metric_cache) | ||
1499 | |||
1500 | AM_CONDITIONAL(METRIC_CACHE, test "x$want_metric_cache" = "xyes") | ||
1501 | if test "x$want_metric_cache" = "xyes"; then | ||
1502 | AC_DEFINE(METRIC_CACHE, 1, [Experimental metric caching to speed up text rendering.]) | ||
1503 | fi | ||
1504 | |||
1505 | |||
1506 | |||
1507 | ##################################################################### | ||
1508 | ## ARGB engine options | ||
1509 | |||
1510 | ####################################### | ||
1511 | ## Nearest sampling scaler | ||
1512 | EVAS_CHECK_SCALER([scale-sample], [sampling scaler], [scaler_sample="yes"], [scaler_sample="no"]) | ||
1513 | ## Smooth super and sub sampling scaler | ||
1514 | EVAS_CHECK_SCALER([scale-smooth], [smooth scaler], [scaler_smooth="yes"], [scaler_smooth="no"]) | ||
1515 | |||
1516 | ####################################### | ||
1517 | ## YUV -> ARGB converter | ||
1518 | conv_yuv="no" | ||
1519 | conv_yuv="yes" | ||
1520 | AC_MSG_CHECKING(whether to build yuv converter code) | ||
1521 | AC_ARG_ENABLE(convert-yuv, | ||
1522 | AC_HELP_STRING([--enable-convert-yuv], [enable yuv converter code]), | ||
1523 | [ | ||
1524 | if test "x$enableval" = "xyes" ; then | ||
1525 | AC_MSG_RESULT(yes) | ||
1526 | AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support]) | ||
1527 | conv_yuv="yes" | ||
1528 | else | ||
1529 | AC_MSG_RESULT(no) | ||
1530 | conv_yuv="no" | ||
1531 | fi | ||
1532 | ], [ | ||
1533 | AC_MSG_RESULT($conv_yuv) | ||
1534 | if test "x$conv_yuv" = "xyes" ; then | ||
1535 | AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support]) | ||
1536 | fi | ||
1537 | ] | ||
1538 | ) | ||
1539 | |||
1540 | ##################################################################### | ||
1541 | ## Output rendering features | ||
1542 | |||
1543 | ####################################### | ||
1544 | ## Small dither mask instead of big one (lower quality) | ||
1545 | EVAS_CHECK_DITHER([small-dither-mask], [small dither mask], [conv_small_dither="yes"], [conv_small_dither="no"]) | ||
1546 | ## Alternate Line dither mask instead of big one (lower quality - but fastest) | ||
1547 | EVAS_CHECK_DITHER([line-dither-mask], [line dither mask], [conv_line_dither="yes"], [conv_line_dither="no"]) | ||
1548 | ## No dither mask at all for 16bpp | ||
1549 | EVAS_CHECK_DITHER([no-dither-mask], [conversion to 16bpp without dither mask], [conv_no_dither="yes"], [conv_no_dither="no"]) | ||
1550 | |||
1551 | ####################################### | ||
1552 | ## Convert to 8bpp RGB 332 | ||
1553 | EVAS_CONVERT_COLOR(8, RGB, 332, [yes]) | ||
1554 | ## Convert to 8bpp RGB 666 | ||
1555 | EVAS_CONVERT_COLOR(8, RGB, 666, [yes]) | ||
1556 | ## Convert to 8bpp RGB 232 | ||
1557 | EVAS_CONVERT_COLOR(8, RGB, 232, [yes]) | ||
1558 | ## Convert to 8bpp RGB 222 | ||
1559 | EVAS_CONVERT_COLOR(8, RGB, 222, [yes]) | ||
1560 | ## Convert to 8bpp RGB 221 | ||
1561 | EVAS_CONVERT_COLOR(8, RGB, 221, [yes]) | ||
1562 | ## Convert to 8bpp RGB 121 | ||
1563 | EVAS_CONVERT_COLOR(8, RGB, 121, [yes]) | ||
1564 | ## Convert to 8bpp RGB 111 | ||
1565 | EVAS_CONVERT_COLOR(8, RGB, 111, [yes]) | ||
1566 | ## Convert to 16bpp RGB 565 | ||
1567 | EVAS_CONVERT_COLOR(16, RGB, 565) | ||
1568 | ## Convert to 16bpp BGR 565 | ||
1569 | EVAS_CONVERT_COLOR(16, BGR, 565) | ||
1570 | ## Convert to 16bpp RGB 555 | ||
1571 | EVAS_CONVERT_COLOR(16, RGB, 555) | ||
1572 | ## Convert to 16bpp RGB 444 | ||
1573 | EVAS_CONVERT_COLOR(16, RGB, 444) | ||
1574 | |||
1575 | ####################################### | ||
1576 | ## Convert to 16bpp RGB 565 (444 ipaq) | ||
1577 | conv_16_rgb_ipq="yes" | ||
1578 | AC_MSG_CHECKING(whether to build 16bpp 565 (444 ipaq) converter code) | ||
1579 | AC_ARG_ENABLE(convert-16-rgb-ipq, | ||
1580 | AC_HELP_STRING([--disable-convert-16-rgb-ipq], [disable 16bpp 565 (444 ipaq) converter code]), | ||
1581 | [ | ||
1582 | if test "x$enableval" = "xyes" ; then | ||
1583 | AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support]) | ||
1584 | conv_16_rgb_ipq="yes" | ||
1585 | else | ||
1586 | conv_16_rgb_ipq="no" | ||
1587 | fi | ||
1588 | ], [ | ||
1589 | if test "x$conv_16_rgb_ipq" = "xyes" ; then | ||
1590 | AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support]) | ||
1591 | fi | ||
1592 | ] | ||
1593 | ) | ||
1594 | AC_MSG_RESULT($conv_16_rgb_ipq) | ||
1595 | |||
1596 | ####################################### | ||
1597 | ## Convert to 16bpp RGB with rotation of 0 | ||
1598 | EVAS_CONVERT_ROT(16, RGB, 0) | ||
1599 | ## Convert to 16bpp RGB with rotation of 180 | ||
1600 | EVAS_CONVERT_ROT(16, RGB, 180) | ||
1601 | ## Convert to 16bpp RGB with rotation of 270 | ||
1602 | EVAS_CONVERT_ROT(16, RGB, 270) | ||
1603 | ## Convert to 16bpp RGB with rotation of 90 | ||
1604 | EVAS_CONVERT_ROT(16, RGB, 90) | ||
1605 | |||
1606 | ####################################### | ||
1607 | ## Convert to 24bpp RGB 888 | ||
1608 | EVAS_CONVERT_COLOR(24, RGB, 888) | ||
1609 | ## Convert to 24bpp BGR 888 | ||
1610 | EVAS_CONVERT_COLOR(24, BGR, 888) | ||
1611 | ## Convert to 32bpp RGB 8888 | ||
1612 | EVAS_CONVERT_COLOR(32, RGB, 8888) | ||
1613 | ## Convert to 32bpp RGBX 8888 | ||
1614 | EVAS_CONVERT_COLOR(32, RGBX, 8888) | ||
1615 | ## Convert to 32bpp BGR 8888 | ||
1616 | EVAS_CONVERT_COLOR(32, BGR, 8888) | ||
1617 | ## Convert to 32bpp BGRX 8888 | ||
1618 | EVAS_CONVERT_COLOR(32, BGRX, 8888) | ||
1619 | |||
1620 | ####################################### | ||
1621 | ## Convert to 24bpp RGB 666 (666 ezx) | ||
1622 | conv_24_rgb_ezx="yes" | ||
1623 | AC_MSG_CHECKING(whether to build 24bpp 666 (666 ezx) converter code) | ||
1624 | AC_ARG_ENABLE(convert-24-rgb-ezx, | ||
1625 | AC_HELP_STRING([--disable-convert-24-rgb-ezx], [disable 24bpp 666 (666 ezx) converter code]), | ||
1626 | [ | ||
1627 | if test "x$enableval" = "xyes" ; then | ||
1628 | AC_DEFINE(BUILD_CONVERT_24_RGB_666, 1, [24bpp 666 (666 ezx) Converter Support]) | ||
1629 | conv_24_rgb_ezx="yes" | ||
1630 | else | ||
1631 | conv_24_rgb_ezx="no" | ||
1632 | fi | ||
1633 | ], [ | ||
1634 | if test "x$conv_24_rgb_ezx" = "xyes" ; then | ||
1635 | AC_DEFINE(BUILD_CONVERT_24_RGB_666, 1, [24bpp 666 (666 ezx) Converter Support]) | ||
1636 | fi | ||
1637 | ] | ||
1638 | ) | ||
1639 | AC_MSG_RESULT($conv_24_rgb_ezx) | ||
1640 | |||
1641 | ####################################### | ||
1642 | ## Convert to 32bpp RGB 666 (666 ezx) | ||
1643 | conv_32_rgb_ezx="yes" | ||
1644 | AC_MSG_CHECKING(whether to build 32bpp 666 (666 ezx) converter code) | ||
1645 | AC_ARG_ENABLE(convert-32-rgb-ezx, | ||
1646 | AC_HELP_STRING([--disable-convert-32-rgb-ezx], [disable 32bpp 666 (666 ezx) converter code]), | ||
1647 | [ | ||
1648 | if test "x$enableval" = "xyes" ; then | ||
1649 | AC_DEFINE(BUILD_CONVERT_32_RGB_666, 1, [32bpp 666 (666 ezx) Converter Support]) | ||
1650 | conv_32_rgb_ezx="yes" | ||
1651 | else | ||
1652 | conv_32_rgb_ezx="no" | ||
1653 | fi | ||
1654 | ], [ | ||
1655 | if test "x$conv_32_rgb_ezx" = "xyes" ; then | ||
1656 | AC_DEFINE(BUILD_CONVERT_32_RGB_666, 1, [32bpp 666 (666 ezx) Converter Support]) | ||
1657 | fi | ||
1658 | ] | ||
1659 | ) | ||
1660 | AC_MSG_RESULT($conv_32_rgb_ezx) | ||
1661 | |||
1662 | ####################################### | ||
1663 | ## Convert to 32bpp RGB with rotation of 0 | ||
1664 | EVAS_CONVERT_ROT(32, RGB, 0) | ||
1665 | ## Convert to 32bpp RGB with rotation of 180 | ||
1666 | EVAS_CONVERT_ROT(32, RGB, 180) | ||
1667 | ## Convert to 32bpp RGB with rotation of 270 | ||
1668 | EVAS_CONVERT_ROT(32, RGB, 270) | ||
1669 | ## Convert to 32bpp RGB with rotation of 90 | ||
1670 | EVAS_CONVERT_ROT(32, RGB, 90) | ||
1671 | |||
1672 | ####################################### | ||
1673 | ## Convert to 8bpp grayscale with 256 value, no palette | ||
1674 | EVAS_CONVERT_COLOR(8, GRY, 1) | ||
1675 | ## Convert to 8bpp grayscale with 16 value, no palette | ||
1676 | EVAS_CONVERT_COLOR(8, GRY, 16) | ||
1677 | |||
1678 | ####################################### | ||
1679 | ## Convert to 8bpp grayscale, 64-palette | ||
1680 | conv_8_grayscale_64="yes" | ||
1681 | AC_MSG_CHECKING(whether to build 8bpp grayscale 64-palette converter code) | ||
1682 | AC_ARG_ENABLE(convert-8-grayscale-64, | ||
1683 | AC_HELP_STRING([--disable-convert-8-grayscale-64], [disable 8bpp grayscale 64-palette converter code]), | ||
1684 | [ | ||
1685 | if test "x$enableval" = "xyes"; then | ||
1686 | AC_DEFINE(BUILD_CONVERT_8_GRAYSCALE_64, 1, [8bpp Grayscale 64-palette Converter Support]) | ||
1687 | conv_8_grayscale_64="yes" | ||
1688 | else | ||
1689 | conv_8_grayscale_64="no" | ||
1690 | fi | ||
1691 | ], [ | ||
1692 | if test "x$conv_8_grayscale_64" = "xyes"; then | ||
1693 | AC_DEFINE(BUILD_CONVERT_8_GRAYSCALE_64, 1, [32bpp Grayscale 64-palette Converter Support]) | ||
1694 | fi | ||
1695 | ] | ||
1696 | ) | ||
1697 | AC_MSG_RESULT($conv_8_grayscale_64) | ||
1698 | |||
1699 | ## valgrind | ||
1700 | want_valgrind="no" | ||
1701 | have_valgrind="no" | ||
1702 | |||
1703 | AC_MSG_CHECKING(whether to enable build with valgrind) | ||
1704 | AC_ARG_ENABLE(valgrind, | ||
1705 | AC_HELP_STRING([--enable-valgrind], [enable valgrind fixes to stop false reports]), | ||
1706 | [ want_valgrind=$enableval ] | ||
1707 | ) | ||
1708 | AC_MSG_RESULT($want_valgrind) | ||
1709 | |||
1710 | if test x$want_valgrind = "xyes"; then | ||
1711 | PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, | ||
1712 | [ | ||
1713 | AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support]) | ||
1714 | have_valgrind=yes | ||
1715 | requirement_evas="valgrind ${requirement_evas}" | ||
1716 | ], | ||
1717 | [ | ||
1718 | if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
1719 | AC_MSG_ERROR([Valgrind not found (strict dependencies checking)]) | ||
1720 | fi | ||
1721 | ] | ||
1722 | ) | ||
1723 | fi | ||
1724 | |||
1725 | ## Examples | ||
1726 | |||
1727 | install_examples="yes" | ||
1728 | AC_ARG_ENABLE([install-examples], | ||
1729 | AC_HELP_STRING([--disable-install-examples], | ||
1730 | [disable installing examples (compiled or just source). | ||
1731 | @<:@default==enabled@:>@]), | ||
1732 | [ | ||
1733 | if test "x${enableval}" = "xyes" ; then | ||
1734 | install_examples="yes" | ||
1735 | else | ||
1736 | install_examples="no" | ||
1737 | fi | ||
1738 | ], | ||
1739 | [install_examples="yes"]) | ||
1740 | AM_CONDITIONAL([INSTALL_EXAMPLES], [test "x${install_examples}" = "xyes"]) | ||
1741 | |||
1742 | build_examples="no" | ||
1743 | AC_ARG_ENABLE([build-examples], | ||
1744 | AC_HELP_STRING([--enable-build-examples], | ||
1745 | [enable building examples (this requires extra denpendencies. if you don't have them installed yet, don't build with this option or it will fail. build again when you have it, overriding the previous installation). @<:@default==disabled@:>@]), | ||
1746 | [ | ||
1747 | if test "x${enableval}" = "xyes" ; then | ||
1748 | build_examples="yes" | ||
1749 | # put in here the dependencies for Evas' examples. they are | ||
1750 | # meant to be 'real world' usage examples, thus one will be | ||
1751 | # using higher level libraries on these programs | ||
1752 | PKG_CHECK_MODULES([ECORE_EVAS], [ecore-evas ecore], [], [build_examples="no"]) | ||
1753 | PKG_CHECK_MODULES([EDJE], [edje], | ||
1754 | [edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc], | ||
1755 | [build_examples="no"]) | ||
1756 | AC_SUBST(edje_cc) | ||
1757 | else | ||
1758 | build_examples="no" | ||
1759 | fi | ||
1760 | ], | ||
1761 | [build_examples="no"]) | ||
1762 | AM_CONDITIONAL([BUILD_EXAMPLES], [test "x${build_examples}" = "xyes"]) | ||
1763 | |||
1764 | ## Unit tests, coverage | ||
1765 | |||
1766 | EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"]) | ||
1767 | |||
1768 | EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"]) | ||
1769 | EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS}" | ||
1770 | EVAS_LIBS="${EVAS_LIBS} ${EFL_COVERAGE_LIBS}" | ||
1771 | if test "x$enable_coverage" = "xyes" ; then | ||
1772 | EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_DEBUG_CFLAGS}" | ||
1773 | fi | ||
1774 | |||
1775 | AC_SUBST(EVAS_CFLAGS) | ||
1776 | AC_SUBST(EVAS_LIBS) | ||
1777 | |||
1778 | ##################################################################### | ||
1779 | ## Fill in flags | ||
1780 | |||
1781 | AC_SUBST(altivec_cflags) | ||
1782 | AC_SUBST(pthread_cflags) | ||
1783 | AC_SUBST(pthread_libs) | ||
1784 | AC_SUBST(requirement_evas) | ||
1785 | |||
1786 | |||
1787 | ##################################################################### | ||
1788 | ## Output | ||
1789 | |||
1790 | AC_OUTPUT([ | ||
1791 | Makefile | ||
1792 | evas-directfb.pc | ||
1793 | evas-fb.pc | ||
1794 | evas-opengl-x11.pc | ||
1795 | evas-opengl-sdl.pc | ||
1796 | evas-opengl-cocoa.pc | ||
1797 | evas-software-buffer.pc | ||
1798 | evas-software-x11.pc | ||
1799 | evas-software-8-x11.pc | ||
1800 | evas-software-16-x11.pc | ||
1801 | evas-software-gdi.pc | ||
1802 | evas-software-ddraw.pc | ||
1803 | evas-software-16-ddraw.pc | ||
1804 | evas-direct3d.pc | ||
1805 | evas-software-16-wince.pc | ||
1806 | evas-software-sdl.pc | ||
1807 | evas-psl1ght.pc | ||
1808 | evas.pc | ||
1809 | doc/evas.dox | ||
1810 | doc/Makefile | ||
1811 | doc/Doxyfile | ||
1812 | src/Makefile | ||
1813 | src/bin/Makefile | ||
1814 | src/lib/Makefile | ||
1815 | src/lib/canvas/Makefile | ||
1816 | src/lib/file/Makefile | ||
1817 | src/lib/cache/Makefile | ||
1818 | src/lib/cserve/Makefile | ||
1819 | src/lib/engines/Makefile | ||
1820 | src/lib/engines/common/Makefile | ||
1821 | src/lib/engines/common/evas_op_add/Makefile | ||
1822 | src/lib/engines/common/evas_op_blend/Makefile | ||
1823 | src/lib/engines/common/evas_op_copy/Makefile | ||
1824 | src/lib/engines/common/evas_op_mask/Makefile | ||
1825 | src/lib/engines/common/evas_op_mul/Makefile | ||
1826 | src/lib/engines/common/evas_op_sub/Makefile | ||
1827 | src/lib/engines/common_8/Makefile | ||
1828 | src/lib/engines/common_16/Makefile | ||
1829 | src/modules/Makefile | ||
1830 | src/modules/engines/Makefile | ||
1831 | src/modules/engines/software_generic/Makefile | ||
1832 | src/modules/engines/software_gdi/Makefile | ||
1833 | src/modules/engines/software_ddraw/Makefile | ||
1834 | src/modules/engines/direct3d/Makefile | ||
1835 | src/modules/engines/software_16_wince/Makefile | ||
1836 | src/modules/engines/software_x11/Makefile | ||
1837 | src/modules/engines/fb/Makefile | ||
1838 | src/modules/engines/buffer/Makefile | ||
1839 | src/modules/engines/directfb/Makefile | ||
1840 | src/modules/engines/gl_common/Makefile | ||
1841 | src/modules/engines/gl_x11/Makefile | ||
1842 | src/modules/engines/gl_sdl/Makefile | ||
1843 | src/modules/engines/gl_cocoa/Makefile | ||
1844 | src/modules/engines/psl1ght/Makefile | ||
1845 | src/modules/engines/software_sdl/Makefile | ||
1846 | src/modules/engines/software_8/Makefile | ||
1847 | src/modules/engines/software_8_x11/Makefile | ||
1848 | src/modules/engines/software_16/Makefile | ||
1849 | src/modules/engines/software_16_x11/Makefile | ||
1850 | src/modules/engines/software_16_ddraw/Makefile | ||
1851 | src/modules/engines/software_16_sdl/Makefile | ||
1852 | src/modules/loaders/Makefile | ||
1853 | src/modules/loaders/edb/Makefile | ||
1854 | src/modules/loaders/eet/Makefile | ||
1855 | src/modules/loaders/gif/Makefile | ||
1856 | src/modules/loaders/jpeg/Makefile | ||
1857 | src/modules/loaders/png/Makefile | ||
1858 | src/modules/loaders/tiff/Makefile | ||
1859 | src/modules/loaders/xpm/Makefile | ||
1860 | src/modules/loaders/bmp/Makefile | ||
1861 | src/modules/loaders/ico/Makefile | ||
1862 | src/modules/loaders/tga/Makefile | ||
1863 | src/modules/loaders/svg/Makefile | ||
1864 | src/modules/loaders/pmaps/Makefile | ||
1865 | src/modules/loaders/wbmp/Makefile | ||
1866 | src/modules/loaders/psd/Makefile | ||
1867 | src/modules/loaders/generic/Makefile | ||
1868 | src/modules/savers/Makefile | ||
1869 | src/modules/savers/edb/Makefile | ||
1870 | src/modules/savers/eet/Makefile | ||
1871 | src/modules/savers/jpeg/Makefile | ||
1872 | src/modules/savers/png/Makefile | ||
1873 | src/modules/savers/tiff/Makefile | ||
1874 | src/static_deps/Makefile | ||
1875 | src/static_deps/liblinebreak/Makefile | ||
1876 | src/lib/include/Makefile | ||
1877 | src/examples/Makefile | ||
1878 | src/tests/Makefile | ||
1879 | evas.spec | ||
1880 | ]) | ||
1881 | |||
1882 | ##################################################################### | ||
1883 | ## Sanity Checks | ||
1884 | |||
1885 | if test "x$build_pthreads" = "xno" ; then | ||
1886 | if test "x$build_async_render" = "xyes" ; then | ||
1887 | echo "ERROR: PThreads off, but async rendering on. Async rendering" | ||
1888 | echo " needs thread support." | ||
1889 | exit 1 | ||
1890 | fi | ||
1891 | if test "x$build_pipe_render" = "xyes" ; then | ||
1892 | echo "ERROR: PThreads off, but pipe rendering on. Pipe rendering" | ||
1893 | echo " needs thread support." | ||
1894 | exit 1 | ||
1895 | fi | ||
1896 | fi | ||
1897 | |||
1898 | if test "x${has_pthreads}" = "xno" ; then | ||
1899 | if test "x$build_async_preload" = "xyes" ; then | ||
1900 | echo "ERROR: PThreads off, but Async Preload on. Async Preload" | ||
1901 | echo " needs thread support." | ||
1902 | exit 1 | ||
1903 | fi | ||
1904 | fi | ||
1905 | |||
1906 | ##################################################################### | ||
1907 | ## Info | ||
1908 | |||
1909 | echo | ||
1910 | echo | ||
1911 | echo | ||
1912 | echo "------------------------------------------------------------------------" | ||
1913 | echo "$PACKAGE $VERSION" | ||
1914 | echo "------------------------------------------------------------------------" | ||
1915 | echo | ||
1916 | echo "Configuration Options Summary:" | ||
1917 | echo | ||
1918 | echo "Engines:" | ||
1919 | echo " Software Memory Buffer.....: $have_evas_engine_buffer" | ||
1920 | echo " Software X11...............: $have_evas_engine_software_x11 (Xlib: $have_evas_engine_software_xlib) (XCB: $have_evas_engine_software_xcb)" | ||
1921 | echo $ECHO_N " OpenGL X11.................: $have_evas_engine_gl_x11 (Xlib: $have_evas_engine_gl_xlib) (XCB: $have_evas_engine_gl_xcb) $ECHO_C" | ||
1922 | if test "x$have_evas_engine_gl_x11" = "xyes"; then | ||
1923 | echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)" | ||
1924 | else | ||
1925 | echo | ||
1926 | fi | ||
1927 | echo " Software GDI...............: $have_evas_engine_software_gdi" | ||
1928 | echo " Software DirectDraw........: $have_evas_engine_software_ddraw" | ||
1929 | echo " Direct3d...................: $have_evas_engine_direct3d" | ||
1930 | echo " Software SDL...............: $have_evas_engine_software_sdl (primitive: $sdl_primitive)" | ||
1931 | echo $ECHO_N " OpenGL SDL.................: $have_evas_engine_gl_sdl $ECHO_C" | ||
1932 | if test "x$have_evas_engine_gl_sdl" = "xyes"; then | ||
1933 | echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)" | ||
1934 | else | ||
1935 | echo | ||
1936 | fi | ||
1937 | echo " OpenGL Cocoa...............: $have_evas_engine_gl_cocoa" | ||
1938 | echo " Software Framebuffer.......: $have_evas_engine_fb" | ||
1939 | echo " DirectFB...................: $have_evas_engine_directfb" | ||
1940 | echo " PSL1GHT....................: $have_evas_engine_psl1ght" | ||
1941 | echo " Software 8bit grayscale....: $have_evas_engine_software_8" | ||
1942 | # FIXME: kill software 16bit | ||
1943 | echo " Software 16bit ............: $have_evas_engine_software_16" | ||
1944 | echo " Software 16bit X11.........: $have_evas_engine_software_16_x11" | ||
1945 | echo " Software 16bit Directdraw..: $have_evas_engine_software_16_ddraw" | ||
1946 | echo " Software 16bit WinCE.......: $have_evas_engine_software_16_wince" | ||
1947 | echo " Software 16bit SDL.........: $have_evas_engine_software_16_sdl (primitive: $sdl_primitive)" | ||
1948 | echo | ||
1949 | echo "Image Loaders:" | ||
1950 | echo " BMP.....................: $have_evas_image_loader_bmp" | ||
1951 | echo " EDB.....................: $have_evas_image_loader_edb" | ||
1952 | echo " EET.....................: $have_evas_image_loader_eet" | ||
1953 | echo " GENERIC.................: $have_evas_image_loader_generic" | ||
1954 | echo " GIF.....................: $have_evas_image_loader_gif" | ||
1955 | echo " ICO.....................: $have_evas_image_loader_ico" | ||
1956 | echo " JPEG....................: $have_evas_image_loader_jpeg (region: $have_jpeg_region)" | ||
1957 | echo " PMAPS...................: $have_evas_image_loader_pmaps" | ||
1958 | echo " PNG.....................: $have_evas_image_loader_png" | ||
1959 | echo " PSD.....................: $have_evas_image_loader_psd" | ||
1960 | echo " SVG.....................: $have_evas_image_loader_svg" | ||
1961 | echo " TGA.....................: $have_evas_image_loader_tga" | ||
1962 | echo " TIFF....................: $have_evas_image_loader_tiff" | ||
1963 | echo " WBMP....................: $have_evas_image_loader_wbmp" | ||
1964 | echo " XPM.....................: $have_evas_image_loader_xpm" | ||
1965 | echo | ||
1966 | echo "Font Sourcing Systems:" | ||
1967 | echo " EET.....................: $have_evas_font_loader_eet" | ||
1968 | echo | ||
1969 | echo "Font Searching Systems:" | ||
1970 | echo " Fontconfig..............: $have_fontconfig" | ||
1971 | echo | ||
1972 | echo "Font Rendering Helpers:" | ||
1973 | echo " Fribidi.................: $have_fribidi" | ||
1974 | echo " Harfbuzz................: $have_harfbuzz" | ||
1975 | echo " liblinebreak............: $have_linebreak" | ||
1976 | # FIXME: add non freetype2 font engine support | ||
1977 | # FIXME: make freetype2 optional | ||
1978 | echo | ||
1979 | echo "CPU Specific Extensions:" | ||
1980 | echo " Fallback C Code.........: $build_cpu_c" | ||
1981 | echo " MMX.....................: $build_cpu_mmx" | ||
1982 | echo " SSE.....................: $build_cpu_sse" | ||
1983 | echo " SSE3....................: $build_cpu_sse3" | ||
1984 | echo " ALTIVEC.................: $build_cpu_altivec" | ||
1985 | echo " NEON....................: $build_cpu_neon" | ||
1986 | echo " Thread Support..........: $build_pthreads" | ||
1987 | echo | ||
1988 | echo "Features:" | ||
1989 | echo " MAGIC_DEBUG.............: $want_evas_magic_debug" | ||
1990 | echo " Cache Server............: $want_evas_cserve" | ||
1991 | echo | ||
1992 | dnl | ||
1993 | dnl ... DISABLED! some testing has shown that this seems to have some | ||
1994 | dnl nasty bugs on both x86 and arm (tegra2 dual core tested), so just | ||
1995 | dnl disabling this for now until it can be fixed | ||
1996 | dnl | ||
1997 | echo " Threaded Pipe Rendering.: $build_pipe_render" | ||
1998 | echo " Async Pipe Rendering....: $build_async_render" | ||
1999 | echo " Async Events............: $build_async_events" | ||
2000 | echo " Async Image Preload.....: $build_async_preload" | ||
2001 | echo | ||
2002 | echo " Word Cache..............: $want_word_cache" | ||
2003 | echo " Metric Cache............: $want_metric_cache" | ||
2004 | echo | ||
2005 | echo "ARGB Software Engine Options:" | ||
2006 | echo " Sampling Scaler.........: $scaler_sample" | ||
2007 | echo " Smooth Scaler...........: $scaler_smooth" | ||
2008 | # FIXME: add an mmx scaler routine | ||
2009 | echo " YUV Converter...........: $conv_yuv" | ||
2010 | # FIXME: add more YUV format and colorvariant support | ||
2011 | echo | ||
2012 | echo "ARGB Conversion Options:" | ||
2013 | echo " Smaller Dither Mask.....: $conv_small_dither" | ||
2014 | echo " Line Dither Mask........: $conv_line_dither" | ||
2015 | echo " No Dither Mask for 16bpp: $conv_no_dither" | ||
2016 | echo " 8bpp RGB 332............: $conv_8_rgb_332" | ||
2017 | echo " 8bpp RGB 666............: $conv_8_rgb_666" | ||
2018 | echo " 8bpp RGB 232............: $conv_8_rgb_232" | ||
2019 | echo " 8bpp RGB 222............: $conv_8_rgb_222" | ||
2020 | echo " 8bpp RGB 221............: $conv_8_rgb_221" | ||
2021 | echo " 8bpp RGB 121............: $conv_8_rgb_121" | ||
2022 | echo " 8bpp RGB 111............: $conv_8_rgb_111" | ||
2023 | echo " 8bpp Grayscale (256)....: $conv_8_gry_1" | ||
2024 | echo " 8bpp Grayscale (16).....: $conv_8_gry_16" | ||
2025 | echo " 8bpp Grayscale 64-pal...: $conv_8_grayscale_64" | ||
2026 | # FIXME: add grayscale and B&W support to standard x converters | ||
2027 | echo " 16bpp RGB 565...........: $conv_16_rgb_565" | ||
2028 | echo " 16bpp BGR 565...........: $conv_16_bgr_565" | ||
2029 | echo " 16bpp RGB 555...........: $conv_16_rgb_555" | ||
2030 | echo " 16bpp RGB 444...........: $conv_16_rgb_444" | ||
2031 | echo " 16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq" | ||
2032 | # FIXME: add 555 (444 ipaq) support | ||
2033 | # FIXME: add 30bpp support | ||
2034 | # FIXME: add palletted support (ugh!) | ||
2035 | # FIXME: add 8bpp and below rotation | ||
2036 | echo " 16bpp Rotation 0........: $conv_16_rgb_rot_0" | ||
2037 | echo " 16bpp Rotation 90.......: $conv_16_rgb_rot_90" | ||
2038 | echo " 16bpp Rotation 180......: $conv_16_rgb_rot_180" | ||
2039 | echo " 16bpp Rotation 270......: $conv_16_rgb_rot_270" | ||
2040 | echo " 24bpp RGB 888...........: $conv_24_rgb_888" | ||
2041 | echo " 24bpp BGR 888...........: $conv_24_bgr_888" | ||
2042 | echo " 24bpp RGB 666 (666 ezx).: $conv_24_rgb_ezx" | ||
2043 | # FIXME: add 24bpp rotation | ||
2044 | echo " 32bpp RGB 8888..........: $conv_32_rgb_8888" | ||
2045 | echo " 32bpp RGBX 8888.........: $conv_32_rgbx_8888" | ||
2046 | echo " 32bpp BGR 8888..........: $conv_32_bgr_8888" | ||
2047 | echo " 32bpp BGRX 8888.........: $conv_32_bgrx_8888" | ||
2048 | echo " 32bpp RGB 666 (666 ezx).: $conv_32_rgb_ezx" | ||
2049 | echo " 32bpp Rotation 0........: $conv_32_rgb_rot_0" | ||
2050 | echo " 32bpp Rotation 90.......: $conv_32_rgb_rot_90" | ||
2051 | echo " 32bpp Rotation 180......: $conv_32_rgb_rot_180" | ||
2052 | echo " 32bpp Rotation 270......: $conv_32_rgb_rot_270" | ||
2053 | echo | ||
2054 | echo "Documentation.............: ${build_doc}" | ||
2055 | echo "Examples..................: install:${install_examples} build:${build_examples}" | ||
2056 | if test "x${enable_tests}" = "xyes" ; then | ||
2057 | echo "Tests.....................: ${enable_tests} (make check)" | ||
2058 | else | ||
2059 | echo "Tests.....................: ${enable_tests}" | ||
2060 | fi | ||
2061 | if test "x${enable_coverage}" = "xyes" ; then | ||
2062 | echo "Coverage..................: ${enable_coverage} (make coverage)" | ||
2063 | else | ||
2064 | echo "Coverage..................: ${enable_coverage}" | ||
2065 | fi | ||
2066 | echo | ||
2067 | echo "Compilation............: make (or gmake)" | ||
2068 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
2069 | echo " CFLAGS...............: $CFLAGS" | ||
2070 | echo " CXXFLAGS.............: $CXXFLAGS" | ||
2071 | echo " LDFLAGS..............: $LDFLAGS" | ||
2072 | echo | ||
2073 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
2074 | echo " prefix...............: $prefix" | ||
2075 | echo | ||
2076 | if test "x${have_static_module}" = "xyes" ; then | ||
2077 | echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Evas." | ||
2078 | echo " You must know what you are doing, or else you will have a lot of" | ||
2079 | echo " problems. And Kenny will be killed." | ||
2080 | echo " Think about that." | ||
2081 | echo | ||
2082 | fi | ||