diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/ecore/configure | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to '')
-rwxr-xr-x | libraries/ecore/configure | 33692 | ||||
-rw-r--r-- | libraries/ecore/configure.ac | 2058 |
2 files changed, 35750 insertions, 0 deletions
diff --git a/libraries/ecore/configure b/libraries/ecore/configure new file mode 100755 index 0000000..6ac7715 --- /dev/null +++ b/libraries/ecore/configure | |||
@@ -0,0 +1,33692 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for ecore 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='ecore' | ||
703 | PACKAGE_TARNAME='ecore' | ||
704 | PACKAGE_VERSION='1.1.0' | ||
705 | PACKAGE_STRING='ecore 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 | gt_needs= | ||
747 | ac_subst_vars='am__EXEEXT_FALSE | ||
748 | am__EXEEXT_TRUE | ||
749 | LTLIBOBJS | ||
750 | LIBOBJS | ||
751 | requirements_ecore_imf_xim | ||
752 | requirements_ecore_wince | ||
753 | requirements_ecore_win32 | ||
754 | requirements_ecore_x | ||
755 | requirements_ecore_psl1ght | ||
756 | requirements_ecore_sdl | ||
757 | requirements_ecore_cocoa | ||
758 | requirements_ecore_ipc | ||
759 | requirements_ecore_input_evas | ||
760 | requirements_ecore_input | ||
761 | requirements_ecore_imf_evas | ||
762 | requirements_ecore_imf | ||
763 | requirements_ecore_file | ||
764 | requirements_ecore_fb | ||
765 | requirements_ecore_evas | ||
766 | requirements_ecore_directfb | ||
767 | requirements_ecore_con | ||
768 | requirements_ecore | ||
769 | EFL_INSTALL_EXAMPLES_FALSE | ||
770 | EFL_INSTALL_EXAMPLES_TRUE | ||
771 | EFL_BUILD_EXAMPLES_FALSE | ||
772 | EFL_BUILD_EXAMPLES_TRUE | ||
773 | XCB_X11_LIBS | ||
774 | XCB_X11_CFLAGS | ||
775 | ecore_evas_libs | ||
776 | ecore_evas_cflags | ||
777 | BUILD_ECORE_EVAS_FALSE | ||
778 | BUILD_ECORE_EVAS_TRUE | ||
779 | ecore_wince_libs | ||
780 | ecore_wince_cflags | ||
781 | BUILD_ECORE_WINCE_FALSE | ||
782 | BUILD_ECORE_WINCE_TRUE | ||
783 | ecore_directfb_libs | ||
784 | ecore_directfb_cflags | ||
785 | BUILD_ECORE_DIRECTFB_FALSE | ||
786 | BUILD_ECORE_DIRECTFB_TRUE | ||
787 | TSLIB_LIBS | ||
788 | TSLIB_CFLAGS | ||
789 | ecore_fb_libs | ||
790 | ecore_fb_cflags | ||
791 | BUILD_ECORE_FB_FALSE | ||
792 | BUILD_ECORE_FB_TRUE | ||
793 | ecore_psl1ght_libs | ||
794 | ecore_psl1ght_cflags | ||
795 | BUILD_ECORE_PSL1GHT_FALSE | ||
796 | BUILD_ECORE_PSL1GHT_TRUE | ||
797 | ecore_sdl_libs | ||
798 | ecore_sdl_cflags | ||
799 | BUILD_ECORE_SDL_FALSE | ||
800 | BUILD_ECORE_SDL_TRUE | ||
801 | ecore_cocoa_libs | ||
802 | ecore_cocoa_cflags | ||
803 | BUILD_ECORE_COCOA_FALSE | ||
804 | BUILD_ECORE_COCOA_TRUE | ||
805 | ecore_win32_libs | ||
806 | ecore_win32_cflags | ||
807 | BUILD_ECORE_WIN32_FALSE | ||
808 | BUILD_ECORE_WIN32_TRUE | ||
809 | ecore_x_libs | ||
810 | ecore_x_cflags | ||
811 | BUILD_ECORE_X_FALSE | ||
812 | BUILD_ECORE_X_TRUE | ||
813 | ecore_imf_xim_libs | ||
814 | ecore_imf_xim_cflags | ||
815 | BUILD_ECORE_IMF_XIM_FALSE | ||
816 | BUILD_ECORE_IMF_XIM_TRUE | ||
817 | ecore_input_evas_libs | ||
818 | ecore_input_evas_cflags | ||
819 | BUILD_ECORE_INPUT_EVAS_FALSE | ||
820 | BUILD_ECORE_INPUT_EVAS_TRUE | ||
821 | ecore_input_libs | ||
822 | ecore_input_cflags | ||
823 | BUILD_ECORE_INPUT_FALSE | ||
824 | BUILD_ECORE_INPUT_TRUE | ||
825 | ecore_imf_evas_libs | ||
826 | ecore_imf_evas_cflags | ||
827 | BUILD_ECORE_IMF_EVAS_FALSE | ||
828 | BUILD_ECORE_IMF_EVAS_TRUE | ||
829 | ecore_imf_libs | ||
830 | ecore_imf_cflags | ||
831 | BUILD_ECORE_IMF_FALSE | ||
832 | BUILD_ECORE_IMF_TRUE | ||
833 | BUILD_ECORE_CONFIG_FALSE | ||
834 | BUILD_ECORE_CONFIG_TRUE | ||
835 | ecore_file_libs | ||
836 | ecore_file_cflags | ||
837 | BUILD_ECORE_FILE_FALSE | ||
838 | BUILD_ECORE_FILE_TRUE | ||
839 | ecore_ipc_libs | ||
840 | ecore_ipc_cflags | ||
841 | BUILD_ECORE_IPC_FALSE | ||
842 | BUILD_ECORE_IPC_TRUE | ||
843 | HAVE_CARES_FALSE | ||
844 | HAVE_CARES_TRUE | ||
845 | CARES_LIBS | ||
846 | CARES_CFLAGS | ||
847 | SSL_LIBS | ||
848 | SSL_CFLAGS | ||
849 | LIBGCRYPT_LIBS | ||
850 | LIBGCRYPT_CFLAGS | ||
851 | LIBGCRYPT_CONFIG | ||
852 | TLS2_LIBS | ||
853 | TLS2_CFLAGS | ||
854 | TLS_LIBS | ||
855 | TLS_CFLAGS | ||
856 | CURL_LIBS | ||
857 | CURL_CFLAGS | ||
858 | ecore_con_libs | ||
859 | ecore_con_cflags | ||
860 | BUILD_ECORE_CON_FALSE | ||
861 | BUILD_ECORE_CON_TRUE | ||
862 | ALLOCA | ||
863 | lt_enable_auto_import | ||
864 | WIN32_CFLAGS | ||
865 | WIN32_CPPFLAGS | ||
866 | EFL_PTHREAD_LIBS | ||
867 | EFL_PTHREAD_CFLAGS | ||
868 | cocoa_ldflags | ||
869 | EVAS_LIBS | ||
870 | EVAS_CFLAGS | ||
871 | BUILD_ECORE_X_XCB_FALSE | ||
872 | BUILD_ECORE_X_XCB_TRUE | ||
873 | BUILD_ECORE_X_XLIB_FALSE | ||
874 | BUILD_ECORE_X_XLIB_TRUE | ||
875 | ecore_x_libs_private | ||
876 | x_libs | ||
877 | x_includes | ||
878 | x_cflags | ||
879 | XI2_LIBS | ||
880 | XI2_CFLAGS | ||
881 | XSS_LIBS | ||
882 | XSS_CFLAGS | ||
883 | XTEST_LIBS | ||
884 | XTEST_CFLAGS | ||
885 | XRENDER_LIBS | ||
886 | XRENDER_CFLAGS | ||
887 | XGESTURE_LIBS | ||
888 | XGESTURE_CFLAGS | ||
889 | XRANDR_LIBS | ||
890 | XRANDR_CFLAGS | ||
891 | XPRINT_LIBS | ||
892 | XPRINT_CFLAGS | ||
893 | XINERAMA_LIBS | ||
894 | XINERAMA_CFLAGS | ||
895 | XFIXES_LIBS | ||
896 | XFIXES_CFLAGS | ||
897 | XDPMS_LIBS | ||
898 | XDPMS_CFLAGS | ||
899 | XDAMAGE_LIBS | ||
900 | XDAMAGE_CFLAGS | ||
901 | XCOMPOSITE_LIBS | ||
902 | XCOMPOSITE_CFLAGS | ||
903 | XKB_LIBS | ||
904 | XKB_CFLAGS | ||
905 | Xcursor_libs | ||
906 | Xcursor_cflags | ||
907 | X_EXTRA_LIBS | ||
908 | X_LIBS | ||
909 | X_PRE_LIBS | ||
910 | X_CFLAGS | ||
911 | XMKMF | ||
912 | have_ecore_x_xcb_define | ||
913 | XCB_CURSOR_LIBS | ||
914 | XCB_CURSOR_CFLAGS | ||
915 | XCB_XINPUT_LIBS | ||
916 | XCB_XINPUT_CFLAGS | ||
917 | XCB_XTEST_LIBS | ||
918 | XCB_XTEST_CFLAGS | ||
919 | XCB_XPRINT_LIBS | ||
920 | XCB_XPRINT_CFLAGS | ||
921 | XCB_XINERAMA_LIBS | ||
922 | XCB_XINERAMA_CFLAGS | ||
923 | XCB_XFIXES_LIBS | ||
924 | XCB_XFIXES_CFLAGS | ||
925 | XCB_SYNC_LIBS | ||
926 | XCB_SYNC_CFLAGS | ||
927 | XCB_XGESTURE_LIBS | ||
928 | XCB_XGESTURE_CFLAGS | ||
929 | XCB_SHAPE_LIBS | ||
930 | XCB_SHAPE_CFLAGS | ||
931 | XCB_SCREENSAVER_LIBS | ||
932 | XCB_SCREENSAVER_CFLAGS | ||
933 | XCB_RENDER_LIBS | ||
934 | XCB_RENDER_CFLAGS | ||
935 | XCB_RANDR_LIBS | ||
936 | XCB_RANDR_CFLAGS | ||
937 | XCB_DPMS_LIBS | ||
938 | XCB_DPMS_CFLAGS | ||
939 | XCB_DAMAGE_LIBS | ||
940 | XCB_DAMAGE_CFLAGS | ||
941 | XCB_COMPOSITE_LIBS | ||
942 | XCB_COMPOSITE_CFLAGS | ||
943 | PIXMAN_LIBS | ||
944 | PIXMAN_CFLAGS | ||
945 | ECORE_XCB_LIBS | ||
946 | ECORE_XCB_CFLAGS | ||
947 | KEYSYMDEFS | ||
948 | DIRECTFB_LIBS | ||
949 | DIRECTFB_CFLAGS | ||
950 | SDL_CONFIG | ||
951 | SDL_LIBS | ||
952 | SDL_CFLAGS | ||
953 | GLIB_LIBS | ||
954 | GLIB_CFLAGS | ||
955 | EINA_LIBS | ||
956 | EINA_CFLAGS | ||
957 | rt_libs | ||
958 | dlopen_libs | ||
959 | WIN32_LIBS | ||
960 | ECORE_HAVE_PS3_FALSE | ||
961 | ECORE_HAVE_PS3_TRUE | ||
962 | ECORE_HAVE_WIN32_FALSE | ||
963 | ECORE_HAVE_WIN32_TRUE | ||
964 | ECORE_HAVE_WINCE_FALSE | ||
965 | ECORE_HAVE_WINCE_TRUE | ||
966 | EFL_ECORE_PSL1GHT_BUILD | ||
967 | EFL_ECORE_SDL_BUILD | ||
968 | EFL_ECORE_WIN32_BUILD | ||
969 | EFL_ECORE_WINCE_BUILD | ||
970 | EFL_ECORE_IPC_BUILD | ||
971 | EFL_ECORE_INPUT_EVAS_BUILD | ||
972 | EFL_ECORE_INPUT_BUILD | ||
973 | EFL_ECORE_IMF_EVAS_BUILD | ||
974 | EFL_ECORE_IMF_BUILD | ||
975 | EFL_ECORE_FILE_BUILD | ||
976 | EFL_ECORE_EVAS_BUILD | ||
977 | EFL_ECORE_CON_BUILD | ||
978 | EFL_ECORE_BUILD | ||
979 | ESCAPE_LIBS | ||
980 | ESCAPE_CFLAGS | ||
981 | EVIL_LIBS | ||
982 | EVIL_CFLAGS | ||
983 | pkgconfig_requires_private | ||
984 | EFL_BUILD_DOC_FALSE | ||
985 | EFL_BUILD_DOC_TRUE | ||
986 | efl_doxygen | ||
987 | efl_have_doxygen | ||
988 | CXXCPP | ||
989 | am__fastdepCXX_FALSE | ||
990 | am__fastdepCXX_TRUE | ||
991 | CXXDEPMODE | ||
992 | ac_ct_CXX | ||
993 | CXXFLAGS | ||
994 | CXX | ||
995 | am__fastdepOBJC_FALSE | ||
996 | am__fastdepOBJC_TRUE | ||
997 | OBJCDEPMODE | ||
998 | ac_ct_OBJC | ||
999 | OBJCFLAGS | ||
1000 | OBJC | ||
1001 | EFL_ENABLE_TESTS_FALSE | ||
1002 | EFL_ENABLE_TESTS_TRUE | ||
1003 | CHECK_LIBS | ||
1004 | CHECK_CFLAGS | ||
1005 | PKG_CONFIG_LIBDIR | ||
1006 | PKG_CONFIG_PATH | ||
1007 | PKG_CONFIG | ||
1008 | HAVE_PO_FALSE | ||
1009 | HAVE_PO_TRUE | ||
1010 | POSUB | ||
1011 | LTLIBINTL | ||
1012 | LIBINTL | ||
1013 | INTLLIBS | ||
1014 | LTLIBICONV | ||
1015 | LIBICONV | ||
1016 | INTL_MACOSX_LIBS | ||
1017 | XGETTEXT_EXTRA_OPTIONS | ||
1018 | MSGMERGE | ||
1019 | XGETTEXT_015 | ||
1020 | XGETTEXT | ||
1021 | GMSGFMT_015 | ||
1022 | MSGFMT_015 | ||
1023 | GMSGFMT | ||
1024 | MSGFMT | ||
1025 | GETTEXT_MACRO_VERSION | ||
1026 | USE_NLS | ||
1027 | VMAJ | ||
1028 | release_info | ||
1029 | version_info | ||
1030 | OTOOL64 | ||
1031 | OTOOL | ||
1032 | LIPO | ||
1033 | NMEDIT | ||
1034 | DSYMUTIL | ||
1035 | lt_ECHO | ||
1036 | RANLIB | ||
1037 | AR | ||
1038 | LN_S | ||
1039 | NM | ||
1040 | ac_ct_DUMPBIN | ||
1041 | DUMPBIN | ||
1042 | LD | ||
1043 | FGREP | ||
1044 | SED | ||
1045 | LIBTOOL | ||
1046 | OBJDUMP | ||
1047 | DLLTOOL | ||
1048 | AS | ||
1049 | host_os | ||
1050 | host_vendor | ||
1051 | host_cpu | ||
1052 | host | ||
1053 | build_os | ||
1054 | build_vendor | ||
1055 | build_cpu | ||
1056 | build | ||
1057 | EGREP | ||
1058 | GREP | ||
1059 | CPP | ||
1060 | am__fastdepCC_FALSE | ||
1061 | am__fastdepCC_TRUE | ||
1062 | CCDEPMODE | ||
1063 | AMDEPBACKSLASH | ||
1064 | AMDEP_FALSE | ||
1065 | AMDEP_TRUE | ||
1066 | am__quote | ||
1067 | am__include | ||
1068 | DEPDIR | ||
1069 | OBJEXT | ||
1070 | EXEEXT | ||
1071 | ac_ct_CC | ||
1072 | CPPFLAGS | ||
1073 | LDFLAGS | ||
1074 | CFLAGS | ||
1075 | CC | ||
1076 | AM_BACKSLASH | ||
1077 | AM_DEFAULT_VERBOSITY | ||
1078 | am__untar | ||
1079 | am__tar | ||
1080 | AMTAR | ||
1081 | am__leading_dot | ||
1082 | SET_MAKE | ||
1083 | AWK | ||
1084 | mkdir_p | ||
1085 | MKDIR_P | ||
1086 | INSTALL_STRIP_PROGRAM | ||
1087 | STRIP | ||
1088 | install_sh | ||
1089 | MAKEINFO | ||
1090 | AUTOHEADER | ||
1091 | AUTOMAKE | ||
1092 | AUTOCONF | ||
1093 | ACLOCAL | ||
1094 | VERSION | ||
1095 | PACKAGE | ||
1096 | CYGPATH_W | ||
1097 | am__isrc | ||
1098 | INSTALL_DATA | ||
1099 | INSTALL_SCRIPT | ||
1100 | INSTALL_PROGRAM | ||
1101 | target_alias | ||
1102 | host_alias | ||
1103 | build_alias | ||
1104 | LIBS | ||
1105 | ECHO_T | ||
1106 | ECHO_N | ||
1107 | ECHO_C | ||
1108 | DEFS | ||
1109 | mandir | ||
1110 | localedir | ||
1111 | libdir | ||
1112 | psdir | ||
1113 | pdfdir | ||
1114 | dvidir | ||
1115 | htmldir | ||
1116 | infodir | ||
1117 | docdir | ||
1118 | oldincludedir | ||
1119 | includedir | ||
1120 | localstatedir | ||
1121 | sharedstatedir | ||
1122 | sysconfdir | ||
1123 | datadir | ||
1124 | datarootdir | ||
1125 | libexecdir | ||
1126 | sbindir | ||
1127 | bindir | ||
1128 | program_transform_name | ||
1129 | prefix | ||
1130 | exec_prefix | ||
1131 | PACKAGE_URL | ||
1132 | PACKAGE_BUGREPORT | ||
1133 | PACKAGE_STRING | ||
1134 | PACKAGE_VERSION | ||
1135 | PACKAGE_TARNAME | ||
1136 | PACKAGE_NAME | ||
1137 | PATH_SEPARATOR | ||
1138 | SHELL' | ||
1139 | ac_subst_files='' | ||
1140 | ac_user_opts=' | ||
1141 | enable_option_checking | ||
1142 | enable_silent_rules | ||
1143 | enable_dependency_tracking | ||
1144 | enable_shared | ||
1145 | enable_static | ||
1146 | with_pic | ||
1147 | enable_fast_install | ||
1148 | with_gnu_ld | ||
1149 | enable_libtool_lock | ||
1150 | enable_nls | ||
1151 | enable_rpath | ||
1152 | with_libiconv_prefix | ||
1153 | with_libintl_prefix | ||
1154 | with_internal_maximum_log_level | ||
1155 | enable_glib_integration_always | ||
1156 | enable_g_main_loop | ||
1157 | enable_local_sockets | ||
1158 | enable_abstract_sockets | ||
1159 | enable_simple_x11 | ||
1160 | enable_xim | ||
1161 | enable_tests | ||
1162 | enable_doc | ||
1163 | with_doxygen | ||
1164 | enable_ecore_timer_dump | ||
1165 | enable_glib | ||
1166 | with_sdl_config | ||
1167 | enable_ecore_x_composite | ||
1168 | enable_ecore_x_damage | ||
1169 | enable_ecore_x_dpms | ||
1170 | enable_ecore_x_randr | ||
1171 | enable_ecore_x_render | ||
1172 | enable_ecore_x_screensaver | ||
1173 | enable_ecore_x_shape | ||
1174 | enable_ecore_x_gesture | ||
1175 | enable_ecore_x_sync | ||
1176 | enable_ecore_x_xfixes | ||
1177 | enable_ecore_x_xinerama | ||
1178 | enable_ecore_x_xprint | ||
1179 | enable_ecore_x_xtest | ||
1180 | enable_ecore_x_cursor | ||
1181 | enable_ecore_x_input | ||
1182 | enable_ecore_x_dri | ||
1183 | enable_ecore_x_xcb | ||
1184 | with_iconv_link | ||
1185 | with_x | ||
1186 | enable_largefile | ||
1187 | enable_epoll | ||
1188 | enable_posix_threads | ||
1189 | enable_win32_threads | ||
1190 | enable_debug_threads | ||
1191 | enable_thread_safety | ||
1192 | enable_atfile_source | ||
1193 | enable_ecore_con | ||
1194 | enable_ipv6 | ||
1195 | enable_curl | ||
1196 | enable_gnutls | ||
1197 | with_libgcrypt_prefix | ||
1198 | with_libgcrypt_exec_prefix | ||
1199 | enable_openssl | ||
1200 | enable_cares | ||
1201 | enable_ecore_ipc | ||
1202 | enable_ecore_file | ||
1203 | enable_poll | ||
1204 | enable_inotify | ||
1205 | enable_notify_win32 | ||
1206 | enable_ecore_imf | ||
1207 | enable_ecore_imf_evas | ||
1208 | enable_ecore_input | ||
1209 | enable_ecore_input_evas | ||
1210 | enable_ecore_imf_xim | ||
1211 | enable_ecore_x | ||
1212 | enable_ecore_win32 | ||
1213 | enable_ecore_cocoa | ||
1214 | enable_ecore_sdl | ||
1215 | enable_ecore_psl1ght | ||
1216 | enable_ecore_fb | ||
1217 | enable_tslib | ||
1218 | enable_ecore_directfb | ||
1219 | enable_ecore_wince | ||
1220 | enable_ecore_evas | ||
1221 | enable_ecore_evas_software_buffer | ||
1222 | enable_ecore_evas_software_x11 | ||
1223 | enable_ecore_evas_opengl_x11 | ||
1224 | enable_ecore_evas_software_16_x11 | ||
1225 | enable_ecore_evas_software_8_x11 | ||
1226 | enable_ecore_evas_software_gdi | ||
1227 | enable_ecore_evas_software_ddraw | ||
1228 | enable_ecore_evas_direct3d | ||
1229 | enable_ecore_evas_opengl_glew | ||
1230 | enable_ecore_evas_software_16_ddraw | ||
1231 | enable_ecore_evas_software_sdl | ||
1232 | enable_ecore_evas_opengl_sdl | ||
1233 | enable_ecore_evas_opengl_cocoa | ||
1234 | enable_ecore_evas_directfb | ||
1235 | enable_ecore_evas_fb | ||
1236 | enable_ecore_evas_software_16_wince | ||
1237 | enable_ecore_evas_ews | ||
1238 | enable_ecore_evas_psl1ght | ||
1239 | enable_build_examples | ||
1240 | enable_install_examples | ||
1241 | ' | ||
1242 | ac_precious_vars='build_alias | ||
1243 | host_alias | ||
1244 | target_alias | ||
1245 | CC | ||
1246 | CFLAGS | ||
1247 | LDFLAGS | ||
1248 | LIBS | ||
1249 | CPPFLAGS | ||
1250 | CPP | ||
1251 | PKG_CONFIG | ||
1252 | PKG_CONFIG_PATH | ||
1253 | PKG_CONFIG_LIBDIR | ||
1254 | CHECK_CFLAGS | ||
1255 | CHECK_LIBS | ||
1256 | OBJC | ||
1257 | OBJCFLAGS | ||
1258 | CXX | ||
1259 | CXXFLAGS | ||
1260 | CCC | ||
1261 | CXXCPP | ||
1262 | EVIL_CFLAGS | ||
1263 | EVIL_LIBS | ||
1264 | ESCAPE_CFLAGS | ||
1265 | ESCAPE_LIBS | ||
1266 | EINA_CFLAGS | ||
1267 | EINA_LIBS | ||
1268 | GLIB_CFLAGS | ||
1269 | GLIB_LIBS | ||
1270 | SDL_CFLAGS | ||
1271 | SDL_LIBS | ||
1272 | DIRECTFB_CFLAGS | ||
1273 | DIRECTFB_LIBS | ||
1274 | ECORE_XCB_CFLAGS | ||
1275 | ECORE_XCB_LIBS | ||
1276 | PIXMAN_CFLAGS | ||
1277 | PIXMAN_LIBS | ||
1278 | XCB_COMPOSITE_CFLAGS | ||
1279 | XCB_COMPOSITE_LIBS | ||
1280 | XCB_DAMAGE_CFLAGS | ||
1281 | XCB_DAMAGE_LIBS | ||
1282 | XCB_DPMS_CFLAGS | ||
1283 | XCB_DPMS_LIBS | ||
1284 | XCB_RANDR_CFLAGS | ||
1285 | XCB_RANDR_LIBS | ||
1286 | XCB_RENDER_CFLAGS | ||
1287 | XCB_RENDER_LIBS | ||
1288 | XCB_SCREENSAVER_CFLAGS | ||
1289 | XCB_SCREENSAVER_LIBS | ||
1290 | XCB_SHAPE_CFLAGS | ||
1291 | XCB_SHAPE_LIBS | ||
1292 | XCB_XGESTURE_CFLAGS | ||
1293 | XCB_XGESTURE_LIBS | ||
1294 | XCB_SYNC_CFLAGS | ||
1295 | XCB_SYNC_LIBS | ||
1296 | XCB_XFIXES_CFLAGS | ||
1297 | XCB_XFIXES_LIBS | ||
1298 | XCB_XINERAMA_CFLAGS | ||
1299 | XCB_XINERAMA_LIBS | ||
1300 | XCB_XPRINT_CFLAGS | ||
1301 | XCB_XPRINT_LIBS | ||
1302 | XCB_XTEST_CFLAGS | ||
1303 | XCB_XTEST_LIBS | ||
1304 | XCB_XINPUT_CFLAGS | ||
1305 | XCB_XINPUT_LIBS | ||
1306 | XCB_CURSOR_CFLAGS | ||
1307 | XCB_CURSOR_LIBS | ||
1308 | XMKMF | ||
1309 | EVAS_CFLAGS | ||
1310 | EVAS_LIBS | ||
1311 | CURL_CFLAGS | ||
1312 | CURL_LIBS | ||
1313 | TLS_CFLAGS | ||
1314 | TLS_LIBS | ||
1315 | TLS2_CFLAGS | ||
1316 | TLS2_LIBS | ||
1317 | SSL_CFLAGS | ||
1318 | SSL_LIBS | ||
1319 | CARES_CFLAGS | ||
1320 | CARES_LIBS | ||
1321 | TSLIB_CFLAGS | ||
1322 | TSLIB_LIBS | ||
1323 | XCB_X11_CFLAGS | ||
1324 | XCB_X11_LIBS' | ||
1325 | |||
1326 | |||
1327 | # Initialize some variables set by options. | ||
1328 | ac_init_help= | ||
1329 | ac_init_version=false | ||
1330 | ac_unrecognized_opts= | ||
1331 | ac_unrecognized_sep= | ||
1332 | # The variables have the same names as the options, with | ||
1333 | # dashes changed to underlines. | ||
1334 | cache_file=/dev/null | ||
1335 | exec_prefix=NONE | ||
1336 | no_create= | ||
1337 | no_recursion= | ||
1338 | prefix=NONE | ||
1339 | program_prefix=NONE | ||
1340 | program_suffix=NONE | ||
1341 | program_transform_name=s,x,x, | ||
1342 | silent= | ||
1343 | site= | ||
1344 | srcdir= | ||
1345 | verbose= | ||
1346 | x_includes=NONE | ||
1347 | x_libraries=NONE | ||
1348 | |||
1349 | # Installation directory options. | ||
1350 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
1351 | # and all the variables that are supposed to be based on exec_prefix | ||
1352 | # by default will actually change. | ||
1353 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
1354 | # (The list follows the same order as the GNU Coding Standards.) | ||
1355 | bindir='${exec_prefix}/bin' | ||
1356 | sbindir='${exec_prefix}/sbin' | ||
1357 | libexecdir='${exec_prefix}/libexec' | ||
1358 | datarootdir='${prefix}/share' | ||
1359 | datadir='${datarootdir}' | ||
1360 | sysconfdir='${prefix}/etc' | ||
1361 | sharedstatedir='${prefix}/com' | ||
1362 | localstatedir='${prefix}/var' | ||
1363 | includedir='${prefix}/include' | ||
1364 | oldincludedir='/usr/include' | ||
1365 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1366 | infodir='${datarootdir}/info' | ||
1367 | htmldir='${docdir}' | ||
1368 | dvidir='${docdir}' | ||
1369 | pdfdir='${docdir}' | ||
1370 | psdir='${docdir}' | ||
1371 | libdir='${exec_prefix}/lib' | ||
1372 | localedir='${datarootdir}/locale' | ||
1373 | mandir='${datarootdir}/man' | ||
1374 | |||
1375 | ac_prev= | ||
1376 | ac_dashdash= | ||
1377 | for ac_option | ||
1378 | do | ||
1379 | # If the previous option needs an argument, assign it. | ||
1380 | if test -n "$ac_prev"; then | ||
1381 | eval $ac_prev=\$ac_option | ||
1382 | ac_prev= | ||
1383 | continue | ||
1384 | fi | ||
1385 | |||
1386 | case $ac_option in | ||
1387 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1388 | *=) ac_optarg= ;; | ||
1389 | *) ac_optarg=yes ;; | ||
1390 | esac | ||
1391 | |||
1392 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1393 | |||
1394 | case $ac_dashdash$ac_option in | ||
1395 | --) | ||
1396 | ac_dashdash=yes ;; | ||
1397 | |||
1398 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1399 | ac_prev=bindir ;; | ||
1400 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1401 | bindir=$ac_optarg ;; | ||
1402 | |||
1403 | -build | --build | --buil | --bui | --bu) | ||
1404 | ac_prev=build_alias ;; | ||
1405 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1406 | build_alias=$ac_optarg ;; | ||
1407 | |||
1408 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1409 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1410 | ac_prev=cache_file ;; | ||
1411 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1412 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1413 | cache_file=$ac_optarg ;; | ||
1414 | |||
1415 | --config-cache | -C) | ||
1416 | cache_file=config.cache ;; | ||
1417 | |||
1418 | -datadir | --datadir | --datadi | --datad) | ||
1419 | ac_prev=datadir ;; | ||
1420 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1421 | datadir=$ac_optarg ;; | ||
1422 | |||
1423 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1424 | | --dataroo | --dataro | --datar) | ||
1425 | ac_prev=datarootdir ;; | ||
1426 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1427 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1428 | datarootdir=$ac_optarg ;; | ||
1429 | |||
1430 | -disable-* | --disable-*) | ||
1431 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1432 | # Reject names that are not valid shell variable names. | ||
1433 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1434 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1435 | ac_useropt_orig=$ac_useropt | ||
1436 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1437 | case $ac_user_opts in | ||
1438 | *" | ||
1439 | "enable_$ac_useropt" | ||
1440 | "*) ;; | ||
1441 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1442 | ac_unrecognized_sep=', ';; | ||
1443 | esac | ||
1444 | eval enable_$ac_useropt=no ;; | ||
1445 | |||
1446 | -docdir | --docdir | --docdi | --doc | --do) | ||
1447 | ac_prev=docdir ;; | ||
1448 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1449 | docdir=$ac_optarg ;; | ||
1450 | |||
1451 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1452 | ac_prev=dvidir ;; | ||
1453 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1454 | dvidir=$ac_optarg ;; | ||
1455 | |||
1456 | -enable-* | --enable-*) | ||
1457 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1458 | # Reject names that are not valid shell variable names. | ||
1459 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1460 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1461 | ac_useropt_orig=$ac_useropt | ||
1462 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1463 | case $ac_user_opts in | ||
1464 | *" | ||
1465 | "enable_$ac_useropt" | ||
1466 | "*) ;; | ||
1467 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1468 | ac_unrecognized_sep=', ';; | ||
1469 | esac | ||
1470 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1471 | |||
1472 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1473 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1474 | | --exec | --exe | --ex) | ||
1475 | ac_prev=exec_prefix ;; | ||
1476 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1477 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1478 | | --exec=* | --exe=* | --ex=*) | ||
1479 | exec_prefix=$ac_optarg ;; | ||
1480 | |||
1481 | -gas | --gas | --ga | --g) | ||
1482 | # Obsolete; use --with-gas. | ||
1483 | with_gas=yes ;; | ||
1484 | |||
1485 | -help | --help | --hel | --he | -h) | ||
1486 | ac_init_help=long ;; | ||
1487 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1488 | ac_init_help=recursive ;; | ||
1489 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1490 | ac_init_help=short ;; | ||
1491 | |||
1492 | -host | --host | --hos | --ho) | ||
1493 | ac_prev=host_alias ;; | ||
1494 | -host=* | --host=* | --hos=* | --ho=*) | ||
1495 | host_alias=$ac_optarg ;; | ||
1496 | |||
1497 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1498 | ac_prev=htmldir ;; | ||
1499 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1500 | | --ht=*) | ||
1501 | htmldir=$ac_optarg ;; | ||
1502 | |||
1503 | -includedir | --includedir | --includedi | --included | --include \ | ||
1504 | | --includ | --inclu | --incl | --inc) | ||
1505 | ac_prev=includedir ;; | ||
1506 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1507 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1508 | includedir=$ac_optarg ;; | ||
1509 | |||
1510 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1511 | ac_prev=infodir ;; | ||
1512 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1513 | infodir=$ac_optarg ;; | ||
1514 | |||
1515 | -libdir | --libdir | --libdi | --libd) | ||
1516 | ac_prev=libdir ;; | ||
1517 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1518 | libdir=$ac_optarg ;; | ||
1519 | |||
1520 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1521 | | --libexe | --libex | --libe) | ||
1522 | ac_prev=libexecdir ;; | ||
1523 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1524 | | --libexe=* | --libex=* | --libe=*) | ||
1525 | libexecdir=$ac_optarg ;; | ||
1526 | |||
1527 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1528 | ac_prev=localedir ;; | ||
1529 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1530 | localedir=$ac_optarg ;; | ||
1531 | |||
1532 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1533 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1534 | ac_prev=localstatedir ;; | ||
1535 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1536 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1537 | localstatedir=$ac_optarg ;; | ||
1538 | |||
1539 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1540 | ac_prev=mandir ;; | ||
1541 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1542 | mandir=$ac_optarg ;; | ||
1543 | |||
1544 | -nfp | --nfp | --nf) | ||
1545 | # Obsolete; use --without-fp. | ||
1546 | with_fp=no ;; | ||
1547 | |||
1548 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1549 | | --no-cr | --no-c | -n) | ||
1550 | no_create=yes ;; | ||
1551 | |||
1552 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1553 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1554 | no_recursion=yes ;; | ||
1555 | |||
1556 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1557 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1558 | | --oldin | --oldi | --old | --ol | --o) | ||
1559 | ac_prev=oldincludedir ;; | ||
1560 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1561 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1562 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1563 | oldincludedir=$ac_optarg ;; | ||
1564 | |||
1565 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1566 | ac_prev=prefix ;; | ||
1567 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1568 | prefix=$ac_optarg ;; | ||
1569 | |||
1570 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1571 | | --program-pre | --program-pr | --program-p) | ||
1572 | ac_prev=program_prefix ;; | ||
1573 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1574 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1575 | program_prefix=$ac_optarg ;; | ||
1576 | |||
1577 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1578 | | --program-suf | --program-su | --program-s) | ||
1579 | ac_prev=program_suffix ;; | ||
1580 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1581 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1582 | program_suffix=$ac_optarg ;; | ||
1583 | |||
1584 | -program-transform-name | --program-transform-name \ | ||
1585 | | --program-transform-nam | --program-transform-na \ | ||
1586 | | --program-transform-n | --program-transform- \ | ||
1587 | | --program-transform | --program-transfor \ | ||
1588 | | --program-transfo | --program-transf \ | ||
1589 | | --program-trans | --program-tran \ | ||
1590 | | --progr-tra | --program-tr | --program-t) | ||
1591 | ac_prev=program_transform_name ;; | ||
1592 | -program-transform-name=* | --program-transform-name=* \ | ||
1593 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1594 | | --program-transform-n=* | --program-transform-=* \ | ||
1595 | | --program-transform=* | --program-transfor=* \ | ||
1596 | | --program-transfo=* | --program-transf=* \ | ||
1597 | | --program-trans=* | --program-tran=* \ | ||
1598 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1599 | program_transform_name=$ac_optarg ;; | ||
1600 | |||
1601 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1602 | ac_prev=pdfdir ;; | ||
1603 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1604 | pdfdir=$ac_optarg ;; | ||
1605 | |||
1606 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1607 | ac_prev=psdir ;; | ||
1608 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1609 | psdir=$ac_optarg ;; | ||
1610 | |||
1611 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1612 | | -silent | --silent | --silen | --sile | --sil) | ||
1613 | silent=yes ;; | ||
1614 | |||
1615 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1616 | ac_prev=sbindir ;; | ||
1617 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1618 | | --sbi=* | --sb=*) | ||
1619 | sbindir=$ac_optarg ;; | ||
1620 | |||
1621 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1622 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1623 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1624 | | --sha | --sh) | ||
1625 | ac_prev=sharedstatedir ;; | ||
1626 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1627 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1628 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1629 | | --sha=* | --sh=*) | ||
1630 | sharedstatedir=$ac_optarg ;; | ||
1631 | |||
1632 | -site | --site | --sit) | ||
1633 | ac_prev=site ;; | ||
1634 | -site=* | --site=* | --sit=*) | ||
1635 | site=$ac_optarg ;; | ||
1636 | |||
1637 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1638 | ac_prev=srcdir ;; | ||
1639 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1640 | srcdir=$ac_optarg ;; | ||
1641 | |||
1642 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1643 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1644 | ac_prev=sysconfdir ;; | ||
1645 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1646 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1647 | sysconfdir=$ac_optarg ;; | ||
1648 | |||
1649 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1650 | ac_prev=target_alias ;; | ||
1651 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1652 | target_alias=$ac_optarg ;; | ||
1653 | |||
1654 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1655 | verbose=yes ;; | ||
1656 | |||
1657 | -version | --version | --versio | --versi | --vers | -V) | ||
1658 | ac_init_version=: ;; | ||
1659 | |||
1660 | -with-* | --with-*) | ||
1661 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1662 | # Reject names that are not valid shell variable names. | ||
1663 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1664 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1665 | ac_useropt_orig=$ac_useropt | ||
1666 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1667 | case $ac_user_opts in | ||
1668 | *" | ||
1669 | "with_$ac_useropt" | ||
1670 | "*) ;; | ||
1671 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1672 | ac_unrecognized_sep=', ';; | ||
1673 | esac | ||
1674 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1675 | |||
1676 | -without-* | --without-*) | ||
1677 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1678 | # Reject names that are not valid shell variable names. | ||
1679 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1680 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1681 | ac_useropt_orig=$ac_useropt | ||
1682 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1683 | case $ac_user_opts in | ||
1684 | *" | ||
1685 | "with_$ac_useropt" | ||
1686 | "*) ;; | ||
1687 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1688 | ac_unrecognized_sep=', ';; | ||
1689 | esac | ||
1690 | eval with_$ac_useropt=no ;; | ||
1691 | |||
1692 | --x) | ||
1693 | # Obsolete; use --with-x. | ||
1694 | with_x=yes ;; | ||
1695 | |||
1696 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1697 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1698 | ac_prev=x_includes ;; | ||
1699 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1700 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1701 | x_includes=$ac_optarg ;; | ||
1702 | |||
1703 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1704 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1705 | ac_prev=x_libraries ;; | ||
1706 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1707 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1708 | x_libraries=$ac_optarg ;; | ||
1709 | |||
1710 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1711 | Try \`$0 --help' for more information" | ||
1712 | ;; | ||
1713 | |||
1714 | *=*) | ||
1715 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1716 | # Reject names that are not valid shell variable names. | ||
1717 | case $ac_envvar in #( | ||
1718 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1719 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1720 | esac | ||
1721 | eval $ac_envvar=\$ac_optarg | ||
1722 | export $ac_envvar ;; | ||
1723 | |||
1724 | *) | ||
1725 | # FIXME: should be removed in autoconf 3.0. | ||
1726 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1727 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1728 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1729 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1730 | ;; | ||
1731 | |||
1732 | esac | ||
1733 | done | ||
1734 | |||
1735 | if test -n "$ac_prev"; then | ||
1736 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1737 | as_fn_error $? "missing argument to $ac_option" | ||
1738 | fi | ||
1739 | |||
1740 | if test -n "$ac_unrecognized_opts"; then | ||
1741 | case $enable_option_checking in | ||
1742 | no) ;; | ||
1743 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1744 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1745 | esac | ||
1746 | fi | ||
1747 | |||
1748 | # Check all directory arguments for consistency. | ||
1749 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1750 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1751 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1752 | libdir localedir mandir | ||
1753 | do | ||
1754 | eval ac_val=\$$ac_var | ||
1755 | # Remove trailing slashes. | ||
1756 | case $ac_val in | ||
1757 | */ ) | ||
1758 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1759 | eval $ac_var=\$ac_val;; | ||
1760 | esac | ||
1761 | # Be sure to have absolute directory names. | ||
1762 | case $ac_val in | ||
1763 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1764 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1765 | esac | ||
1766 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1767 | done | ||
1768 | |||
1769 | # There might be people who depend on the old broken behavior: `$host' | ||
1770 | # used to hold the argument of --host etc. | ||
1771 | # FIXME: To remove some day. | ||
1772 | build=$build_alias | ||
1773 | host=$host_alias | ||
1774 | target=$target_alias | ||
1775 | |||
1776 | # FIXME: To remove some day. | ||
1777 | if test "x$host_alias" != x; then | ||
1778 | if test "x$build_alias" = x; then | ||
1779 | cross_compiling=maybe | ||
1780 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1781 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1782 | elif test "x$build_alias" != "x$host_alias"; then | ||
1783 | cross_compiling=yes | ||
1784 | fi | ||
1785 | fi | ||
1786 | |||
1787 | ac_tool_prefix= | ||
1788 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1789 | |||
1790 | test "$silent" = yes && exec 6>/dev/null | ||
1791 | |||
1792 | |||
1793 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1794 | ac_ls_di=`ls -di .` && | ||
1795 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1796 | as_fn_error $? "working directory cannot be determined" | ||
1797 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1798 | as_fn_error $? "pwd does not report name of working directory" | ||
1799 | |||
1800 | |||
1801 | # Find the source files, if location was not specified. | ||
1802 | if test -z "$srcdir"; then | ||
1803 | ac_srcdir_defaulted=yes | ||
1804 | # Try the directory containing this script, then the parent directory. | ||
1805 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1806 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1807 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1808 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1809 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1810 | $as_echo X"$as_myself" | | ||
1811 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1812 | s//\1/ | ||
1813 | q | ||
1814 | } | ||
1815 | /^X\(\/\/\)[^/].*/{ | ||
1816 | s//\1/ | ||
1817 | q | ||
1818 | } | ||
1819 | /^X\(\/\/\)$/{ | ||
1820 | s//\1/ | ||
1821 | q | ||
1822 | } | ||
1823 | /^X\(\/\).*/{ | ||
1824 | s//\1/ | ||
1825 | q | ||
1826 | } | ||
1827 | s/.*/./; q'` | ||
1828 | srcdir=$ac_confdir | ||
1829 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1830 | srcdir=.. | ||
1831 | fi | ||
1832 | else | ||
1833 | ac_srcdir_defaulted=no | ||
1834 | fi | ||
1835 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1836 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1837 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1838 | fi | ||
1839 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1840 | ac_abs_confdir=`( | ||
1841 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1842 | pwd)` | ||
1843 | # When building in place, set srcdir=. | ||
1844 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1845 | srcdir=. | ||
1846 | fi | ||
1847 | # Remove unnecessary trailing slashes from srcdir. | ||
1848 | # Double slashes in file names in object file debugging info | ||
1849 | # mess up M-x gdb in Emacs. | ||
1850 | case $srcdir in | ||
1851 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1852 | esac | ||
1853 | for ac_var in $ac_precious_vars; do | ||
1854 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1855 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1856 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1857 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1858 | done | ||
1859 | |||
1860 | # | ||
1861 | # Report the --help message. | ||
1862 | # | ||
1863 | if test "$ac_init_help" = "long"; then | ||
1864 | # Omit some internal or obsolete options to make the list less imposing. | ||
1865 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1866 | cat <<_ACEOF | ||
1867 | \`configure' configures ecore 1.1.0 to adapt to many kinds of systems. | ||
1868 | |||
1869 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1870 | |||
1871 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1872 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1873 | |||
1874 | Defaults for the options are specified in brackets. | ||
1875 | |||
1876 | Configuration: | ||
1877 | -h, --help display this help and exit | ||
1878 | --help=short display options specific to this package | ||
1879 | --help=recursive display the short help of all the included packages | ||
1880 | -V, --version display version information and exit | ||
1881 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1882 | --cache-file=FILE cache test results in FILE [disabled] | ||
1883 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1884 | -n, --no-create do not create output files | ||
1885 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1886 | |||
1887 | Installation directories: | ||
1888 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1889 | [$ac_default_prefix] | ||
1890 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1891 | [PREFIX] | ||
1892 | |||
1893 | By default, \`make install' will install all the files in | ||
1894 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1895 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1896 | for instance \`--prefix=\$HOME'. | ||
1897 | |||
1898 | For better control, use the options below. | ||
1899 | |||
1900 | Fine tuning of the installation directories: | ||
1901 | --bindir=DIR user executables [EPREFIX/bin] | ||
1902 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1903 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1904 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1905 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1906 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1907 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1908 | --includedir=DIR C header files [PREFIX/include] | ||
1909 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1910 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1911 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1912 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1913 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1914 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1915 | --docdir=DIR documentation root [DATAROOTDIR/doc/ecore] | ||
1916 | --htmldir=DIR html documentation [DOCDIR] | ||
1917 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1918 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1919 | --psdir=DIR ps documentation [DOCDIR] | ||
1920 | _ACEOF | ||
1921 | |||
1922 | cat <<\_ACEOF | ||
1923 | |||
1924 | Program names: | ||
1925 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1926 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1927 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1928 | |||
1929 | X features: | ||
1930 | --x-includes=DIR X include files are in DIR | ||
1931 | --x-libraries=DIR X library files are in DIR | ||
1932 | |||
1933 | System types: | ||
1934 | --build=BUILD configure for building on BUILD [guessed] | ||
1935 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1936 | _ACEOF | ||
1937 | fi | ||
1938 | |||
1939 | if test -n "$ac_init_help"; then | ||
1940 | case $ac_init_help in | ||
1941 | short | recursive ) echo "Configuration of ecore 1.1.0:";; | ||
1942 | esac | ||
1943 | cat <<\_ACEOF | ||
1944 | |||
1945 | Optional Features: | ||
1946 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1947 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1948 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1949 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
1950 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
1951 | --disable-dependency-tracking speeds up one-time build | ||
1952 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1953 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1954 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1955 | --enable-fast-install[=PKGS] | ||
1956 | optimize for fast installation [default=yes] | ||
1957 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1958 | --disable-nls do not use Native Language Support | ||
1959 | --disable-rpath do not hardcode runtime library paths | ||
1960 | --enable-glib-integration-always | ||
1961 | enable glib integration when ecore_init() is called | ||
1962 | always | ||
1963 | --enable-g-main-loop ecore_main_loop based on g_main_loop | ||
1964 | --disable-local-sockets disable local sockets. | ||
1965 | --disable-abstract-sockets | ||
1966 | disable abstract sockets. | ||
1967 | --enable-simple-x11 enable simple x11 linking | ||
1968 | --disable-xim disable X Input Method. | ||
1969 | --enable-tests enable tests [default=disabled] | ||
1970 | --disable-doc Disable documentation build [default=enabled] | ||
1971 | --disable-ecore-timer-dump | ||
1972 | disable tracking of timer allocation. | ||
1973 | [default=enable] | ||
1974 | --disable-glib disable glib support. [default=detect] | ||
1975 | --disable-ecore-x-composite | ||
1976 | disable the ecore_x support for Xcomposite | ||
1977 | extension. [default=detect] | ||
1978 | --disable-ecore-x-damage | ||
1979 | disable the ecore_x support for Xdamage extension. | ||
1980 | [default=detect] | ||
1981 | --disable-ecore-x-dpms disable the ecore_x support for Xdpms extension. | ||
1982 | [default=detect] | ||
1983 | --disable-ecore-x-randr disable the ecore_x support for Xrandr extension. | ||
1984 | [default=detect] | ||
1985 | --disable-ecore-x-render | ||
1986 | disable the ecore_x support for Xrender extension. | ||
1987 | [default=detect] | ||
1988 | --disable-ecore-x-screensaver | ||
1989 | disable the ecore_x support for Xscreensaver | ||
1990 | extension. [default=detect] | ||
1991 | --disable-ecore-x-shape disable the ecore_x support for Xshape extension. | ||
1992 | [default=detect] | ||
1993 | --enable-ecore-x-gesture | ||
1994 | enable the ecore_x support for Xgesture extension. | ||
1995 | [default=detect] | ||
1996 | --disable-ecore-x-sync disable the ecore_x support for Xsync extension. | ||
1997 | [default=detect] | ||
1998 | --disable-ecore-x-xfixes | ||
1999 | disable the ecore_x support for Xfixes extension. | ||
2000 | [default=detect] | ||
2001 | --disable-ecore-x-xinerama | ||
2002 | disable the ecore_x support for Xinerama extension. | ||
2003 | [default=detect] | ||
2004 | --disable-ecore-x-xprint | ||
2005 | disable the ecore_x support for Xprint extension. | ||
2006 | [default=detect] | ||
2007 | --disable-ecore-x-xtest disable the ecore_x support for Xtest extension. | ||
2008 | [default=detect] | ||
2009 | --disable-ecore-x-cursor | ||
2010 | disable the ecore_x support for Xcursor extension. | ||
2011 | [default=detect] | ||
2012 | --disable-ecore-x-input disable the ecore_x support for Xinput/Xinput2 | ||
2013 | extension. [default=detect] | ||
2014 | --disable-ecore-x-dri disable the ecore_x support for DRI extension. | ||
2015 | [default=detect] | ||
2016 | --enable-ecore-x-xcb enable the ecore_x module with XCB backend. | ||
2017 | [default=disabled] | ||
2018 | --disable-largefile omit support for large files | ||
2019 | --enable-epoll enable or disable epoll support | ||
2020 | --disable-posix-threads enable POSIX threads code [default=auto] | ||
2021 | --disable-win32-threads enable Win32 threads code [default=no] | ||
2022 | --enable-debug-threads disable assert when you forgot to call | ||
2023 | eina_threads_init | ||
2024 | --enable-thread-safety enable or disable thread safety | ||
2025 | --disable-atfile-source disable use of atfile source functions as openat and | ||
2026 | mkdirat [default=detect] | ||
2027 | --enable-ecore-con enable the ecore_con module | ||
2028 | --disable-ipv6 disable ipv6 functionality [default=detect] | ||
2029 | --disable-curl disable curl support | ||
2030 | --disable-gnutls disable gnutls support | ||
2031 | --disable-openssl disable openssl support | ||
2032 | --disable-cares disable cares support | ||
2033 | --enable-ecore-ipc enable the ecore_ipc module | ||
2034 | --enable-ecore-file enable the ecore_file module | ||
2035 | --disable-poll disable poll in the ecore_file module | ||
2036 | --disable-inotify disable inotify in the ecore_file module | ||
2037 | --disable-notify-win32 disable Windows notification in the ecore_file | ||
2038 | module | ||
2039 | --enable-ecore-imf enable the ecore_imf module | ||
2040 | --enable-ecore-imf-evas enable the ecore_imf_evas module | ||
2041 | --enable-ecore-input enable the ecore_input module | ||
2042 | --enable-ecore-input-evas | ||
2043 | enable the ecore_input_evas module | ||
2044 | --enable-ecore-imf-xim enable the ecore_imf_xim module | ||
2045 | --enable-ecore-x enable the ecore_x module | ||
2046 | --enable-ecore-win32 enable the ecore_win32 module | ||
2047 | --enable-ecore-cocoa enable the ecore_cocoa module | ||
2048 | --enable-ecore-sdl enable the ecore_sdl module | ||
2049 | --enable-ecore-psl1ght enable the ecore_psl1ght module | ||
2050 | --enable-ecore-fb enable the ecore_fb module | ||
2051 | --disable-tslib disable the tslib support in ecore (currently | ||
2052 | ecore-fb). [default=detect] | ||
2053 | --enable-ecore-directfb enable the ecore_directfb module | ||
2054 | --enable-ecore-wince enable the ecore_wince module | ||
2055 | --enable-ecore-evas enable the ecore_evas module | ||
2056 | --enable-ecore-evas-software-buffer | ||
2057 | enable Software Buffer support in the ecore_evas | ||
2058 | module. | ||
2059 | --enable-ecore-evas-software-x11 | ||
2060 | enable Software X11 support in the ecore_evas | ||
2061 | module. | ||
2062 | --enable-ecore-evas-opengl-x11 | ||
2063 | enable OpenGL Xlib support in the ecore_evas module. | ||
2064 | --enable-ecore-evas-software-16-x11 | ||
2065 | enable Software Xlib 16 bits support in the | ||
2066 | ecore_evas module. | ||
2067 | --enable-ecore-evas-software-8-x11 | ||
2068 | enable Software 8bit X11 support in the ecore_evas | ||
2069 | module. | ||
2070 | --enable-ecore-evas-software-gdi | ||
2071 | enable Software GDI support in the ecore_evas | ||
2072 | module. | ||
2073 | --enable-ecore-evas-software-ddraw | ||
2074 | enable Software DirectDraw support in the ecore_evas | ||
2075 | module. | ||
2076 | --enable-ecore-evas-direct3d | ||
2077 | enable Direct3d support in the ecore_evas module. | ||
2078 | --enable-ecore-evas-opengl-glew | ||
2079 | enable Glew OpenGL support in the ecore_evas module. | ||
2080 | --enable-ecore-evas-software-16-ddraw | ||
2081 | enable 16 bpp Software DirectDraw support in the | ||
2082 | ecore_evas module. | ||
2083 | --enable-ecore-evas-software-sdl | ||
2084 | enable Software SDL support in the ecore_evas | ||
2085 | module. | ||
2086 | --enable-ecore-evas-opengl-sdl | ||
2087 | enable OpenGL SDL support in the ecore_evas module. | ||
2088 | --enable-ecore-evas-opengl-cocoa | ||
2089 | enable OpenGL Cocoa support in the ecore_evas | ||
2090 | module. | ||
2091 | --enable-ecore-evas-directfb | ||
2092 | enable DirectFB support in the ecore_evas module. | ||
2093 | --enable-ecore-evas-fb enable Linux Framebuffer support in the ecore_evas | ||
2094 | module. | ||
2095 | --enable-ecore-evas-software-16-wince | ||
2096 | enable 16 bpp Software Windows CE support in the | ||
2097 | ecore_evas module. | ||
2098 | --enable-ecore-evas-ews enable Ecore Evas Single Process Windowing System | ||
2099 | support in the ecore_evas module. | ||
2100 | --enable-ecore-evas-psl1ght | ||
2101 | enable PSL1GHT support in the ecore_evas module. | ||
2102 | --enable-build-examples enable building examples [default=disabled] | ||
2103 | --enable-install-examples | ||
2104 | enable installing example source files | ||
2105 | [default=disabled] | ||
2106 | |||
2107 | Optional Packages: | ||
2108 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
2109 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
2110 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
2111 | both] | ||
2112 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
2113 | --with-gnu-ld assume the C compiler uses GNU ld default=no | ||
2114 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | ||
2115 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | ||
2116 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | ||
2117 | --without-libintl-prefix don't search for libintl in includedir and libdir | ||
2118 | --with-internal-maximum-log-level=NUMBER | ||
2119 | limit ecore internal log level to the given number, | ||
2120 | any call to EINA_LOG() with values greater than this | ||
2121 | will be compiled out, ignoring runtime settings, but | ||
2122 | saving function calls. | ||
2123 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
2124 | --with-sdl-config=PATH use sdl-config specified | ||
2125 | --with-iconv-link=ICONV_LINK | ||
2126 | explicitly specify an iconv link option | ||
2127 | --with-x use the X Window System | ||
2128 | --with-libgcrypt-prefix=PFX Prefix where libgcrypt is installed (optional) | ||
2129 | --with-libgcrypt-exec-prefix=PFX Exec prefix where libgcrypt is installed (optional) | ||
2130 | |||
2131 | Some influential environment variables: | ||
2132 | CC C compiler command | ||
2133 | CFLAGS C compiler flags | ||
2134 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
2135 | nonstandard directory <lib dir> | ||
2136 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
2137 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
2138 | you have headers in a nonstandard directory <include dir> | ||
2139 | CPP C preprocessor | ||
2140 | PKG_CONFIG path to pkg-config utility | ||
2141 | PKG_CONFIG_PATH | ||
2142 | directories to add to pkg-config's search path | ||
2143 | PKG_CONFIG_LIBDIR | ||
2144 | path overriding pkg-config's built-in search path | ||
2145 | CHECK_CFLAGS | ||
2146 | C compiler flags for CHECK, overriding pkg-config | ||
2147 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
2148 | OBJC Objective C compiler command | ||
2149 | OBJCFLAGS Objective C compiler flags | ||
2150 | CXX C++ compiler command | ||
2151 | CXXFLAGS C++ compiler flags | ||
2152 | CXXCPP C++ preprocessor | ||
2153 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
2154 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
2155 | ESCAPE_CFLAGS | ||
2156 | C compiler flags for ESCAPE, overriding pkg-config | ||
2157 | ESCAPE_LIBS linker flags for ESCAPE, overriding pkg-config | ||
2158 | EINA_CFLAGS C compiler flags for EINA, overriding pkg-config | ||
2159 | EINA_LIBS linker flags for EINA, overriding pkg-config | ||
2160 | GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config | ||
2161 | GLIB_LIBS linker flags for GLIB, overriding pkg-config | ||
2162 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | ||
2163 | SDL_LIBS linker flags for SDL, overriding pkg-config | ||
2164 | DIRECTFB_CFLAGS | ||
2165 | C compiler flags for DIRECTFB, overriding pkg-config | ||
2166 | DIRECTFB_LIBS | ||
2167 | linker flags for DIRECTFB, overriding pkg-config | ||
2168 | ECORE_XCB_CFLAGS | ||
2169 | C compiler flags for ECORE_XCB, overriding pkg-config | ||
2170 | ECORE_XCB_LIBS | ||
2171 | linker flags for ECORE_XCB, overriding pkg-config | ||
2172 | PIXMAN_CFLAGS | ||
2173 | C compiler flags for PIXMAN, overriding pkg-config | ||
2174 | PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config | ||
2175 | XCB_COMPOSITE_CFLAGS | ||
2176 | C compiler flags for XCB_COMPOSITE, overriding pkg-config | ||
2177 | XCB_COMPOSITE_LIBS | ||
2178 | linker flags for XCB_COMPOSITE, overriding pkg-config | ||
2179 | XCB_DAMAGE_CFLAGS | ||
2180 | C compiler flags for XCB_DAMAGE, overriding pkg-config | ||
2181 | XCB_DAMAGE_LIBS | ||
2182 | linker flags for XCB_DAMAGE, overriding pkg-config | ||
2183 | XCB_DPMS_CFLAGS | ||
2184 | C compiler flags for XCB_DPMS, overriding pkg-config | ||
2185 | XCB_DPMS_LIBS | ||
2186 | linker flags for XCB_DPMS, overriding pkg-config | ||
2187 | XCB_RANDR_CFLAGS | ||
2188 | C compiler flags for XCB_RANDR, overriding pkg-config | ||
2189 | XCB_RANDR_LIBS | ||
2190 | linker flags for XCB_RANDR, overriding pkg-config | ||
2191 | XCB_RENDER_CFLAGS | ||
2192 | C compiler flags for XCB_RENDER, overriding pkg-config | ||
2193 | XCB_RENDER_LIBS | ||
2194 | linker flags for XCB_RENDER, overriding pkg-config | ||
2195 | XCB_SCREENSAVER_CFLAGS | ||
2196 | C compiler flags for XCB_SCREENSAVER, overriding pkg-config | ||
2197 | XCB_SCREENSAVER_LIBS | ||
2198 | linker flags for XCB_SCREENSAVER, overriding pkg-config | ||
2199 | XCB_SHAPE_CFLAGS | ||
2200 | C compiler flags for XCB_SHAPE, overriding pkg-config | ||
2201 | XCB_SHAPE_LIBS | ||
2202 | linker flags for XCB_SHAPE, overriding pkg-config | ||
2203 | XCB_XGESTURE_CFLAGS | ||
2204 | C compiler flags for XCB_XGESTURE, overriding pkg-config | ||
2205 | XCB_XGESTURE_LIBS | ||
2206 | linker flags for XCB_XGESTURE, overriding pkg-config | ||
2207 | XCB_SYNC_CFLAGS | ||
2208 | C compiler flags for XCB_SYNC, overriding pkg-config | ||
2209 | XCB_SYNC_LIBS | ||
2210 | linker flags for XCB_SYNC, overriding pkg-config | ||
2211 | XCB_XFIXES_CFLAGS | ||
2212 | C compiler flags for XCB_XFIXES, overriding pkg-config | ||
2213 | XCB_XFIXES_LIBS | ||
2214 | linker flags for XCB_XFIXES, overriding pkg-config | ||
2215 | XCB_XINERAMA_CFLAGS | ||
2216 | C compiler flags for XCB_XINERAMA, overriding pkg-config | ||
2217 | XCB_XINERAMA_LIBS | ||
2218 | linker flags for XCB_XINERAMA, overriding pkg-config | ||
2219 | XCB_XPRINT_CFLAGS | ||
2220 | C compiler flags for XCB_XPRINT, overriding pkg-config | ||
2221 | XCB_XPRINT_LIBS | ||
2222 | linker flags for XCB_XPRINT, overriding pkg-config | ||
2223 | XCB_XTEST_CFLAGS | ||
2224 | C compiler flags for XCB_XTEST, overriding pkg-config | ||
2225 | XCB_XTEST_LIBS | ||
2226 | linker flags for XCB_XTEST, overriding pkg-config | ||
2227 | XCB_XINPUT_CFLAGS | ||
2228 | C compiler flags for XCB_XINPUT, overriding pkg-config | ||
2229 | XCB_XINPUT_LIBS | ||
2230 | linker flags for XCB_XINPUT, overriding pkg-config | ||
2231 | XCB_CURSOR_CFLAGS | ||
2232 | C compiler flags for XCB_CURSOR, overriding pkg-config | ||
2233 | XCB_CURSOR_LIBS | ||
2234 | linker flags for XCB_CURSOR, overriding pkg-config | ||
2235 | XMKMF Path to xmkmf, Makefile generator for X Window System | ||
2236 | EVAS_CFLAGS C compiler flags for EVAS, overriding pkg-config | ||
2237 | EVAS_LIBS linker flags for EVAS, overriding pkg-config | ||
2238 | CURL_CFLAGS C compiler flags for CURL, overriding pkg-config | ||
2239 | CURL_LIBS linker flags for CURL, overriding pkg-config | ||
2240 | TLS_CFLAGS C compiler flags for TLS, overriding pkg-config | ||
2241 | TLS_LIBS linker flags for TLS, overriding pkg-config | ||
2242 | TLS2_CFLAGS C compiler flags for TLS2, overriding pkg-config | ||
2243 | TLS2_LIBS linker flags for TLS2, overriding pkg-config | ||
2244 | SSL_CFLAGS C compiler flags for SSL, overriding pkg-config | ||
2245 | SSL_LIBS linker flags for SSL, overriding pkg-config | ||
2246 | CARES_CFLAGS | ||
2247 | C compiler flags for CARES, overriding pkg-config | ||
2248 | CARES_LIBS linker flags for CARES, overriding pkg-config | ||
2249 | TSLIB_CFLAGS | ||
2250 | C compiler flags for TSLIB, overriding pkg-config | ||
2251 | TSLIB_LIBS linker flags for TSLIB, overriding pkg-config | ||
2252 | XCB_X11_CFLAGS | ||
2253 | C compiler flags for XCB_X11, overriding pkg-config | ||
2254 | XCB_X11_LIBS | ||
2255 | linker flags for XCB_X11, overriding pkg-config | ||
2256 | |||
2257 | Use these variables to override the choices made by `configure' or to help | ||
2258 | it to find libraries and programs with nonstandard names/locations. | ||
2259 | |||
2260 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
2261 | _ACEOF | ||
2262 | ac_status=$? | ||
2263 | fi | ||
2264 | |||
2265 | if test "$ac_init_help" = "recursive"; then | ||
2266 | # If there are subdirs, report their specific --help. | ||
2267 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
2268 | test -d "$ac_dir" || | ||
2269 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
2270 | continue | ||
2271 | ac_builddir=. | ||
2272 | |||
2273 | case "$ac_dir" in | ||
2274 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2275 | *) | ||
2276 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
2277 | # A ".." for each directory in $ac_dir_suffix. | ||
2278 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
2279 | case $ac_top_builddir_sub in | ||
2280 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2281 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
2282 | esac ;; | ||
2283 | esac | ||
2284 | ac_abs_top_builddir=$ac_pwd | ||
2285 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
2286 | # for backward compatibility: | ||
2287 | ac_top_builddir=$ac_top_build_prefix | ||
2288 | |||
2289 | case $srcdir in | ||
2290 | .) # We are building in place. | ||
2291 | ac_srcdir=. | ||
2292 | ac_top_srcdir=$ac_top_builddir_sub | ||
2293 | ac_abs_top_srcdir=$ac_pwd ;; | ||
2294 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
2295 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
2296 | ac_top_srcdir=$srcdir | ||
2297 | ac_abs_top_srcdir=$srcdir ;; | ||
2298 | *) # Relative name. | ||
2299 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
2300 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
2301 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
2302 | esac | ||
2303 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
2304 | |||
2305 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
2306 | # Check for guested configure. | ||
2307 | if test -f "$ac_srcdir/configure.gnu"; then | ||
2308 | echo && | ||
2309 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
2310 | elif test -f "$ac_srcdir/configure"; then | ||
2311 | echo && | ||
2312 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
2313 | else | ||
2314 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
2315 | fi || ac_status=$? | ||
2316 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
2317 | done | ||
2318 | fi | ||
2319 | |||
2320 | test -n "$ac_init_help" && exit $ac_status | ||
2321 | if $ac_init_version; then | ||
2322 | cat <<\_ACEOF | ||
2323 | ecore configure 1.1.0 | ||
2324 | generated by GNU Autoconf 2.67 | ||
2325 | |||
2326 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
2327 | This configure script is free software; the Free Software Foundation | ||
2328 | gives unlimited permission to copy, distribute and modify it. | ||
2329 | _ACEOF | ||
2330 | exit | ||
2331 | fi | ||
2332 | |||
2333 | ## ------------------------ ## | ||
2334 | ## Autoconf initialization. ## | ||
2335 | ## ------------------------ ## | ||
2336 | |||
2337 | # ac_fn_c_try_compile LINENO | ||
2338 | # -------------------------- | ||
2339 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2340 | ac_fn_c_try_compile () | ||
2341 | { | ||
2342 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2343 | rm -f conftest.$ac_objext | ||
2344 | if { { ac_try="$ac_compile" | ||
2345 | case "(($ac_try" in | ||
2346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2347 | *) ac_try_echo=$ac_try;; | ||
2348 | esac | ||
2349 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2350 | $as_echo "$ac_try_echo"; } >&5 | ||
2351 | (eval "$ac_compile") 2>conftest.err | ||
2352 | ac_status=$? | ||
2353 | if test -s conftest.err; then | ||
2354 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2355 | cat conftest.er1 >&5 | ||
2356 | mv -f conftest.er1 conftest.err | ||
2357 | fi | ||
2358 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2359 | test $ac_status = 0; } && { | ||
2360 | test -z "$ac_c_werror_flag" || | ||
2361 | test ! -s conftest.err | ||
2362 | } && test -s conftest.$ac_objext; then : | ||
2363 | ac_retval=0 | ||
2364 | else | ||
2365 | $as_echo "$as_me: failed program was:" >&5 | ||
2366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2367 | |||
2368 | ac_retval=1 | ||
2369 | fi | ||
2370 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2371 | as_fn_set_status $ac_retval | ||
2372 | |||
2373 | } # ac_fn_c_try_compile | ||
2374 | |||
2375 | # ac_fn_c_try_cpp LINENO | ||
2376 | # ---------------------- | ||
2377 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2378 | ac_fn_c_try_cpp () | ||
2379 | { | ||
2380 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2381 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2382 | case "(($ac_try" in | ||
2383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2384 | *) ac_try_echo=$ac_try;; | ||
2385 | esac | ||
2386 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2387 | $as_echo "$ac_try_echo"; } >&5 | ||
2388 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2389 | ac_status=$? | ||
2390 | if test -s conftest.err; then | ||
2391 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2392 | cat conftest.er1 >&5 | ||
2393 | mv -f conftest.er1 conftest.err | ||
2394 | fi | ||
2395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2396 | test $ac_status = 0; } > conftest.i && { | ||
2397 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2398 | test ! -s conftest.err | ||
2399 | }; then : | ||
2400 | ac_retval=0 | ||
2401 | else | ||
2402 | $as_echo "$as_me: failed program was:" >&5 | ||
2403 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2404 | |||
2405 | ac_retval=1 | ||
2406 | fi | ||
2407 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2408 | as_fn_set_status $ac_retval | ||
2409 | |||
2410 | } # ac_fn_c_try_cpp | ||
2411 | |||
2412 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
2413 | # ------------------------------------------------------- | ||
2414 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
2415 | # the include files in INCLUDES and setting the cache variable VAR | ||
2416 | # accordingly. | ||
2417 | ac_fn_c_check_header_mongrel () | ||
2418 | { | ||
2419 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2420 | if eval "test \"\${$3+set}\"" = set; then : | ||
2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2422 | $as_echo_n "checking for $2... " >&6; } | ||
2423 | if eval "test \"\${$3+set}\"" = set; then : | ||
2424 | $as_echo_n "(cached) " >&6 | ||
2425 | fi | ||
2426 | eval ac_res=\$$3 | ||
2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2428 | $as_echo "$ac_res" >&6; } | ||
2429 | else | ||
2430 | # Is the header compilable? | ||
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
2432 | $as_echo_n "checking $2 usability... " >&6; } | ||
2433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2434 | /* end confdefs.h. */ | ||
2435 | $4 | ||
2436 | #include <$2> | ||
2437 | _ACEOF | ||
2438 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2439 | ac_header_compiler=yes | ||
2440 | else | ||
2441 | ac_header_compiler=no | ||
2442 | fi | ||
2443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2445 | $as_echo "$ac_header_compiler" >&6; } | ||
2446 | |||
2447 | # Is the header present? | ||
2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2449 | $as_echo_n "checking $2 presence... " >&6; } | ||
2450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2451 | /* end confdefs.h. */ | ||
2452 | #include <$2> | ||
2453 | _ACEOF | ||
2454 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2455 | ac_header_preproc=yes | ||
2456 | else | ||
2457 | ac_header_preproc=no | ||
2458 | fi | ||
2459 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2461 | $as_echo "$ac_header_preproc" >&6; } | ||
2462 | |||
2463 | # So? What about this header? | ||
2464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2465 | yes:no: ) | ||
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2467 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2469 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2470 | ;; | ||
2471 | no:yes:* ) | ||
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2473 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2475 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2477 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2478 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2479 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2481 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2482 | ( $as_echo "## -------------------------------------------------------- ## | ||
2483 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2484 | ## -------------------------------------------------------- ##" | ||
2485 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2486 | ;; | ||
2487 | esac | ||
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2489 | $as_echo_n "checking for $2... " >&6; } | ||
2490 | if eval "test \"\${$3+set}\"" = set; then : | ||
2491 | $as_echo_n "(cached) " >&6 | ||
2492 | else | ||
2493 | eval "$3=\$ac_header_compiler" | ||
2494 | fi | ||
2495 | eval ac_res=\$$3 | ||
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2497 | $as_echo "$ac_res" >&6; } | ||
2498 | fi | ||
2499 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2500 | |||
2501 | } # ac_fn_c_check_header_mongrel | ||
2502 | |||
2503 | # ac_fn_c_try_run LINENO | ||
2504 | # ---------------------- | ||
2505 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
2506 | # that executables *can* be run. | ||
2507 | ac_fn_c_try_run () | ||
2508 | { | ||
2509 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2510 | if { { ac_try="$ac_link" | ||
2511 | case "(($ac_try" in | ||
2512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2513 | *) ac_try_echo=$ac_try;; | ||
2514 | esac | ||
2515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2516 | $as_echo "$ac_try_echo"; } >&5 | ||
2517 | (eval "$ac_link") 2>&5 | ||
2518 | ac_status=$? | ||
2519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2520 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
2521 | { { case "(($ac_try" in | ||
2522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2523 | *) ac_try_echo=$ac_try;; | ||
2524 | esac | ||
2525 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2526 | $as_echo "$ac_try_echo"; } >&5 | ||
2527 | (eval "$ac_try") 2>&5 | ||
2528 | ac_status=$? | ||
2529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2530 | test $ac_status = 0; }; }; then : | ||
2531 | ac_retval=0 | ||
2532 | else | ||
2533 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
2534 | $as_echo "$as_me: failed program was:" >&5 | ||
2535 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2536 | |||
2537 | ac_retval=$ac_status | ||
2538 | fi | ||
2539 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2540 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2541 | as_fn_set_status $ac_retval | ||
2542 | |||
2543 | } # ac_fn_c_try_run | ||
2544 | |||
2545 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
2546 | # ------------------------------------------------------- | ||
2547 | # Tests whether HEADER exists and can be compiled using the include files in | ||
2548 | # INCLUDES, setting the cache variable VAR accordingly. | ||
2549 | ac_fn_c_check_header_compile () | ||
2550 | { | ||
2551 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2553 | $as_echo_n "checking for $2... " >&6; } | ||
2554 | if eval "test \"\${$3+set}\"" = set; then : | ||
2555 | $as_echo_n "(cached) " >&6 | ||
2556 | else | ||
2557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2558 | /* end confdefs.h. */ | ||
2559 | $4 | ||
2560 | #include <$2> | ||
2561 | _ACEOF | ||
2562 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2563 | eval "$3=yes" | ||
2564 | else | ||
2565 | eval "$3=no" | ||
2566 | fi | ||
2567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2568 | fi | ||
2569 | eval ac_res=\$$3 | ||
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2571 | $as_echo "$ac_res" >&6; } | ||
2572 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2573 | |||
2574 | } # ac_fn_c_check_header_compile | ||
2575 | |||
2576 | # ac_fn_c_try_link LINENO | ||
2577 | # ----------------------- | ||
2578 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2579 | ac_fn_c_try_link () | ||
2580 | { | ||
2581 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2582 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2583 | if { { ac_try="$ac_link" | ||
2584 | case "(($ac_try" in | ||
2585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2586 | *) ac_try_echo=$ac_try;; | ||
2587 | esac | ||
2588 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2589 | $as_echo "$ac_try_echo"; } >&5 | ||
2590 | (eval "$ac_link") 2>conftest.err | ||
2591 | ac_status=$? | ||
2592 | if test -s conftest.err; then | ||
2593 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2594 | cat conftest.er1 >&5 | ||
2595 | mv -f conftest.er1 conftest.err | ||
2596 | fi | ||
2597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2598 | test $ac_status = 0; } && { | ||
2599 | test -z "$ac_c_werror_flag" || | ||
2600 | test ! -s conftest.err | ||
2601 | } && test -s conftest$ac_exeext && { | ||
2602 | test "$cross_compiling" = yes || | ||
2603 | $as_test_x conftest$ac_exeext | ||
2604 | }; then : | ||
2605 | ac_retval=0 | ||
2606 | else | ||
2607 | $as_echo "$as_me: failed program was:" >&5 | ||
2608 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2609 | |||
2610 | ac_retval=1 | ||
2611 | fi | ||
2612 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2613 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2614 | # interfere with the next link command; also delete a directory that is | ||
2615 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2616 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2617 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2618 | as_fn_set_status $ac_retval | ||
2619 | |||
2620 | } # ac_fn_c_try_link | ||
2621 | |||
2622 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2623 | # ---------------------------------- | ||
2624 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2625 | ac_fn_c_check_func () | ||
2626 | { | ||
2627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2629 | $as_echo_n "checking for $2... " >&6; } | ||
2630 | if eval "test \"\${$3+set}\"" = set; then : | ||
2631 | $as_echo_n "(cached) " >&6 | ||
2632 | else | ||
2633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2634 | /* end confdefs.h. */ | ||
2635 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2637 | #define $2 innocuous_$2 | ||
2638 | |||
2639 | /* System header to define __stub macros and hopefully few prototypes, | ||
2640 | which can conflict with char $2 (); below. | ||
2641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2642 | <limits.h> exists even on freestanding compilers. */ | ||
2643 | |||
2644 | #ifdef __STDC__ | ||
2645 | # include <limits.h> | ||
2646 | #else | ||
2647 | # include <assert.h> | ||
2648 | #endif | ||
2649 | |||
2650 | #undef $2 | ||
2651 | |||
2652 | /* Override any GCC internal prototype to avoid an error. | ||
2653 | Use char because int might match the return type of a GCC | ||
2654 | builtin and then its argument prototype would still apply. */ | ||
2655 | #ifdef __cplusplus | ||
2656 | extern "C" | ||
2657 | #endif | ||
2658 | char $2 (); | ||
2659 | /* The GNU C library defines this for functions which it implements | ||
2660 | to always fail with ENOSYS. Some functions are actually named | ||
2661 | something starting with __ and the normal name is an alias. */ | ||
2662 | #if defined __stub_$2 || defined __stub___$2 | ||
2663 | choke me | ||
2664 | #endif | ||
2665 | |||
2666 | int | ||
2667 | main () | ||
2668 | { | ||
2669 | return $2 (); | ||
2670 | ; | ||
2671 | return 0; | ||
2672 | } | ||
2673 | _ACEOF | ||
2674 | if ac_fn_c_try_link "$LINENO"; then : | ||
2675 | eval "$3=yes" | ||
2676 | else | ||
2677 | eval "$3=no" | ||
2678 | fi | ||
2679 | rm -f core conftest.err conftest.$ac_objext \ | ||
2680 | conftest$ac_exeext conftest.$ac_ext | ||
2681 | fi | ||
2682 | eval ac_res=\$$3 | ||
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2684 | $as_echo "$ac_res" >&6; } | ||
2685 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2686 | |||
2687 | } # ac_fn_c_check_func | ||
2688 | |||
2689 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
2690 | # --------------------------------------------- | ||
2691 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
2692 | # accordingly. | ||
2693 | ac_fn_c_check_decl () | ||
2694 | { | ||
2695 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2696 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
2697 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
2699 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
2700 | if eval "test \"\${$3+set}\"" = set; then : | ||
2701 | $as_echo_n "(cached) " >&6 | ||
2702 | else | ||
2703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2704 | /* end confdefs.h. */ | ||
2705 | $4 | ||
2706 | int | ||
2707 | main () | ||
2708 | { | ||
2709 | #ifndef $as_decl_name | ||
2710 | #ifdef __cplusplus | ||
2711 | (void) $as_decl_use; | ||
2712 | #else | ||
2713 | (void) $as_decl_name; | ||
2714 | #endif | ||
2715 | #endif | ||
2716 | |||
2717 | ; | ||
2718 | return 0; | ||
2719 | } | ||
2720 | _ACEOF | ||
2721 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2722 | eval "$3=yes" | ||
2723 | else | ||
2724 | eval "$3=no" | ||
2725 | fi | ||
2726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2727 | fi | ||
2728 | eval ac_res=\$$3 | ||
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2730 | $as_echo "$ac_res" >&6; } | ||
2731 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2732 | |||
2733 | } # ac_fn_c_check_decl | ||
2734 | |||
2735 | # ac_fn_objc_try_compile LINENO | ||
2736 | # ----------------------------- | ||
2737 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2738 | ac_fn_objc_try_compile () | ||
2739 | { | ||
2740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2741 | rm -f conftest.$ac_objext | ||
2742 | if { { ac_try="$ac_compile" | ||
2743 | case "(($ac_try" in | ||
2744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2745 | *) ac_try_echo=$ac_try;; | ||
2746 | esac | ||
2747 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2748 | $as_echo "$ac_try_echo"; } >&5 | ||
2749 | (eval "$ac_compile") 2>conftest.err | ||
2750 | ac_status=$? | ||
2751 | if test -s conftest.err; then | ||
2752 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2753 | cat conftest.er1 >&5 | ||
2754 | mv -f conftest.er1 conftest.err | ||
2755 | fi | ||
2756 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2757 | test $ac_status = 0; } && { | ||
2758 | test -z "$ac_objc_werror_flag" || | ||
2759 | test ! -s conftest.err | ||
2760 | } && test -s conftest.$ac_objext; then : | ||
2761 | ac_retval=0 | ||
2762 | else | ||
2763 | $as_echo "$as_me: failed program was:" >&5 | ||
2764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2765 | |||
2766 | ac_retval=1 | ||
2767 | fi | ||
2768 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2769 | as_fn_set_status $ac_retval | ||
2770 | |||
2771 | } # ac_fn_objc_try_compile | ||
2772 | |||
2773 | # ac_fn_cxx_try_compile LINENO | ||
2774 | # ---------------------------- | ||
2775 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2776 | ac_fn_cxx_try_compile () | ||
2777 | { | ||
2778 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2779 | rm -f conftest.$ac_objext | ||
2780 | if { { ac_try="$ac_compile" | ||
2781 | case "(($ac_try" in | ||
2782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2783 | *) ac_try_echo=$ac_try;; | ||
2784 | esac | ||
2785 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2786 | $as_echo "$ac_try_echo"; } >&5 | ||
2787 | (eval "$ac_compile") 2>conftest.err | ||
2788 | ac_status=$? | ||
2789 | if test -s conftest.err; then | ||
2790 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2791 | cat conftest.er1 >&5 | ||
2792 | mv -f conftest.er1 conftest.err | ||
2793 | fi | ||
2794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2795 | test $ac_status = 0; } && { | ||
2796 | test -z "$ac_cxx_werror_flag" || | ||
2797 | test ! -s conftest.err | ||
2798 | } && test -s conftest.$ac_objext; then : | ||
2799 | ac_retval=0 | ||
2800 | else | ||
2801 | $as_echo "$as_me: failed program was:" >&5 | ||
2802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2803 | |||
2804 | ac_retval=1 | ||
2805 | fi | ||
2806 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2807 | as_fn_set_status $ac_retval | ||
2808 | |||
2809 | } # ac_fn_cxx_try_compile | ||
2810 | |||
2811 | # ac_fn_cxx_try_cpp LINENO | ||
2812 | # ------------------------ | ||
2813 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2814 | ac_fn_cxx_try_cpp () | ||
2815 | { | ||
2816 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2817 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2818 | case "(($ac_try" in | ||
2819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2820 | *) ac_try_echo=$ac_try;; | ||
2821 | esac | ||
2822 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2823 | $as_echo "$ac_try_echo"; } >&5 | ||
2824 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2825 | ac_status=$? | ||
2826 | if test -s conftest.err; then | ||
2827 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2828 | cat conftest.er1 >&5 | ||
2829 | mv -f conftest.er1 conftest.err | ||
2830 | fi | ||
2831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2832 | test $ac_status = 0; } > conftest.i && { | ||
2833 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
2834 | test ! -s conftest.err | ||
2835 | }; then : | ||
2836 | ac_retval=0 | ||
2837 | else | ||
2838 | $as_echo "$as_me: failed program was:" >&5 | ||
2839 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2840 | |||
2841 | ac_retval=1 | ||
2842 | fi | ||
2843 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2844 | as_fn_set_status $ac_retval | ||
2845 | |||
2846 | } # ac_fn_cxx_try_cpp | ||
2847 | |||
2848 | # ac_fn_cxx_try_link LINENO | ||
2849 | # ------------------------- | ||
2850 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2851 | ac_fn_cxx_try_link () | ||
2852 | { | ||
2853 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2854 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2855 | if { { ac_try="$ac_link" | ||
2856 | case "(($ac_try" in | ||
2857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2858 | *) ac_try_echo=$ac_try;; | ||
2859 | esac | ||
2860 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2861 | $as_echo "$ac_try_echo"; } >&5 | ||
2862 | (eval "$ac_link") 2>conftest.err | ||
2863 | ac_status=$? | ||
2864 | if test -s conftest.err; then | ||
2865 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2866 | cat conftest.er1 >&5 | ||
2867 | mv -f conftest.er1 conftest.err | ||
2868 | fi | ||
2869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2870 | test $ac_status = 0; } && { | ||
2871 | test -z "$ac_cxx_werror_flag" || | ||
2872 | test ! -s conftest.err | ||
2873 | } && test -s conftest$ac_exeext && { | ||
2874 | test "$cross_compiling" = yes || | ||
2875 | $as_test_x conftest$ac_exeext | ||
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 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2885 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2886 | # interfere with the next link command; also delete a directory that is | ||
2887 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2888 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2889 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2890 | as_fn_set_status $ac_retval | ||
2891 | |||
2892 | } # ac_fn_cxx_try_link | ||
2893 | |||
2894 | # ac_fn_objc_try_link LINENO | ||
2895 | # -------------------------- | ||
2896 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2897 | ac_fn_objc_try_link () | ||
2898 | { | ||
2899 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2900 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2901 | if { { ac_try="$ac_link" | ||
2902 | case "(($ac_try" in | ||
2903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2904 | *) ac_try_echo=$ac_try;; | ||
2905 | esac | ||
2906 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2907 | $as_echo "$ac_try_echo"; } >&5 | ||
2908 | (eval "$ac_link") 2>conftest.err | ||
2909 | ac_status=$? | ||
2910 | if test -s conftest.err; then | ||
2911 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2912 | cat conftest.er1 >&5 | ||
2913 | mv -f conftest.er1 conftest.err | ||
2914 | fi | ||
2915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2916 | test $ac_status = 0; } && { | ||
2917 | test -z "$ac_objc_werror_flag" || | ||
2918 | test ! -s conftest.err | ||
2919 | } && test -s conftest$ac_exeext && { | ||
2920 | test "$cross_compiling" = yes || | ||
2921 | $as_test_x conftest$ac_exeext | ||
2922 | }; then : | ||
2923 | ac_retval=0 | ||
2924 | else | ||
2925 | $as_echo "$as_me: failed program was:" >&5 | ||
2926 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2927 | |||
2928 | ac_retval=1 | ||
2929 | fi | ||
2930 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2931 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2932 | # interfere with the next link command; also delete a directory that is | ||
2933 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2934 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2935 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2936 | as_fn_set_status $ac_retval | ||
2937 | |||
2938 | } # ac_fn_objc_try_link | ||
2939 | |||
2940 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2941 | # -------------------------------------------- | ||
2942 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2943 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2944 | # computed | ||
2945 | ac_fn_c_compute_int () | ||
2946 | { | ||
2947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2948 | if test "$cross_compiling" = yes; then | ||
2949 | # Depending upon the size, compute the lo and hi bounds. | ||
2950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2951 | /* end confdefs.h. */ | ||
2952 | $4 | ||
2953 | int | ||
2954 | main () | ||
2955 | { | ||
2956 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2957 | test_array [0] = 0 | ||
2958 | |||
2959 | ; | ||
2960 | return 0; | ||
2961 | } | ||
2962 | _ACEOF | ||
2963 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2964 | ac_lo=0 ac_mid=0 | ||
2965 | while :; do | ||
2966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2967 | /* end confdefs.h. */ | ||
2968 | $4 | ||
2969 | int | ||
2970 | main () | ||
2971 | { | ||
2972 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2973 | test_array [0] = 0 | ||
2974 | |||
2975 | ; | ||
2976 | return 0; | ||
2977 | } | ||
2978 | _ACEOF | ||
2979 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2980 | ac_hi=$ac_mid; break | ||
2981 | else | ||
2982 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2983 | if test $ac_lo -le $ac_mid; then | ||
2984 | ac_lo= ac_hi= | ||
2985 | break | ||
2986 | fi | ||
2987 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2988 | fi | ||
2989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2990 | done | ||
2991 | else | ||
2992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2993 | /* end confdefs.h. */ | ||
2994 | $4 | ||
2995 | int | ||
2996 | main () | ||
2997 | { | ||
2998 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2999 | test_array [0] = 0 | ||
3000 | |||
3001 | ; | ||
3002 | return 0; | ||
3003 | } | ||
3004 | _ACEOF | ||
3005 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3006 | ac_hi=-1 ac_mid=-1 | ||
3007 | while :; do | ||
3008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3009 | /* end confdefs.h. */ | ||
3010 | $4 | ||
3011 | int | ||
3012 | main () | ||
3013 | { | ||
3014 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
3015 | test_array [0] = 0 | ||
3016 | |||
3017 | ; | ||
3018 | return 0; | ||
3019 | } | ||
3020 | _ACEOF | ||
3021 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3022 | ac_lo=$ac_mid; break | ||
3023 | else | ||
3024 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
3025 | if test $ac_mid -le $ac_hi; then | ||
3026 | ac_lo= ac_hi= | ||
3027 | break | ||
3028 | fi | ||
3029 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
3030 | fi | ||
3031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3032 | done | ||
3033 | else | ||
3034 | ac_lo= ac_hi= | ||
3035 | fi | ||
3036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3037 | fi | ||
3038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3039 | # Binary search between lo and hi bounds. | ||
3040 | while test "x$ac_lo" != "x$ac_hi"; do | ||
3041 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
3042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3043 | /* end confdefs.h. */ | ||
3044 | $4 | ||
3045 | int | ||
3046 | main () | ||
3047 | { | ||
3048 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
3049 | test_array [0] = 0 | ||
3050 | |||
3051 | ; | ||
3052 | return 0; | ||
3053 | } | ||
3054 | _ACEOF | ||
3055 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3056 | ac_hi=$ac_mid | ||
3057 | else | ||
3058 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
3059 | fi | ||
3060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3061 | done | ||
3062 | case $ac_lo in #(( | ||
3063 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
3064 | '') ac_retval=1 ;; | ||
3065 | esac | ||
3066 | else | ||
3067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3068 | /* end confdefs.h. */ | ||
3069 | $4 | ||
3070 | static long int longval () { return $2; } | ||
3071 | static unsigned long int ulongval () { return $2; } | ||
3072 | #include <stdio.h> | ||
3073 | #include <stdlib.h> | ||
3074 | int | ||
3075 | main () | ||
3076 | { | ||
3077 | |||
3078 | FILE *f = fopen ("conftest.val", "w"); | ||
3079 | if (! f) | ||
3080 | return 1; | ||
3081 | if (($2) < 0) | ||
3082 | { | ||
3083 | long int i = longval (); | ||
3084 | if (i != ($2)) | ||
3085 | return 1; | ||
3086 | fprintf (f, "%ld", i); | ||
3087 | } | ||
3088 | else | ||
3089 | { | ||
3090 | unsigned long int i = ulongval (); | ||
3091 | if (i != ($2)) | ||
3092 | return 1; | ||
3093 | fprintf (f, "%lu", i); | ||
3094 | } | ||
3095 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
3096 | on some platforms. */ | ||
3097 | return ferror (f) || fclose (f) != 0; | ||
3098 | |||
3099 | ; | ||
3100 | return 0; | ||
3101 | } | ||
3102 | _ACEOF | ||
3103 | if ac_fn_c_try_run "$LINENO"; then : | ||
3104 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
3105 | else | ||
3106 | ac_retval=1 | ||
3107 | fi | ||
3108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3109 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3110 | rm -f conftest.val | ||
3111 | |||
3112 | fi | ||
3113 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3114 | as_fn_set_status $ac_retval | ||
3115 | |||
3116 | } # ac_fn_c_compute_int | ||
3117 | |||
3118 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
3119 | # ------------------------------------------- | ||
3120 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
3121 | # variable VAR accordingly. | ||
3122 | ac_fn_c_check_type () | ||
3123 | { | ||
3124 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
3126 | $as_echo_n "checking for $2... " >&6; } | ||
3127 | if eval "test \"\${$3+set}\"" = set; then : | ||
3128 | $as_echo_n "(cached) " >&6 | ||
3129 | else | ||
3130 | eval "$3=no" | ||
3131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3132 | /* end confdefs.h. */ | ||
3133 | $4 | ||
3134 | int | ||
3135 | main () | ||
3136 | { | ||
3137 | if (sizeof ($2)) | ||
3138 | return 0; | ||
3139 | ; | ||
3140 | return 0; | ||
3141 | } | ||
3142 | _ACEOF | ||
3143 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3145 | /* end confdefs.h. */ | ||
3146 | $4 | ||
3147 | int | ||
3148 | main () | ||
3149 | { | ||
3150 | if (sizeof (($2))) | ||
3151 | return 0; | ||
3152 | ; | ||
3153 | return 0; | ||
3154 | } | ||
3155 | _ACEOF | ||
3156 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3157 | |||
3158 | else | ||
3159 | eval "$3=yes" | ||
3160 | fi | ||
3161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3162 | fi | ||
3163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3164 | fi | ||
3165 | eval ac_res=\$$3 | ||
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
3167 | $as_echo "$ac_res" >&6; } | ||
3168 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3169 | |||
3170 | } # ac_fn_c_check_type | ||
3171 | cat >config.log <<_ACEOF | ||
3172 | This file contains any messages produced by compilers while | ||
3173 | running configure, to aid debugging if configure makes a mistake. | ||
3174 | |||
3175 | It was created by ecore $as_me 1.1.0, which was | ||
3176 | generated by GNU Autoconf 2.67. Invocation command line was | ||
3177 | |||
3178 | $ $0 $@ | ||
3179 | |||
3180 | _ACEOF | ||
3181 | exec 5>>config.log | ||
3182 | { | ||
3183 | cat <<_ASUNAME | ||
3184 | ## --------- ## | ||
3185 | ## Platform. ## | ||
3186 | ## --------- ## | ||
3187 | |||
3188 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
3189 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
3190 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
3191 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
3192 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
3193 | |||
3194 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
3195 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
3196 | |||
3197 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
3198 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
3199 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
3200 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
3201 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
3202 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
3203 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
3204 | |||
3205 | _ASUNAME | ||
3206 | |||
3207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3208 | for as_dir in $PATH | ||
3209 | do | ||
3210 | IFS=$as_save_IFS | ||
3211 | test -z "$as_dir" && as_dir=. | ||
3212 | $as_echo "PATH: $as_dir" | ||
3213 | done | ||
3214 | IFS=$as_save_IFS | ||
3215 | |||
3216 | } >&5 | ||
3217 | |||
3218 | cat >&5 <<_ACEOF | ||
3219 | |||
3220 | |||
3221 | ## ----------- ## | ||
3222 | ## Core tests. ## | ||
3223 | ## ----------- ## | ||
3224 | |||
3225 | _ACEOF | ||
3226 | |||
3227 | |||
3228 | # Keep a trace of the command line. | ||
3229 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
3230 | # Strip out --silent because we don't want to record it for future runs. | ||
3231 | # Also quote any args containing shell meta-characters. | ||
3232 | # Make two passes to allow for proper duplicate-argument suppression. | ||
3233 | ac_configure_args= | ||
3234 | ac_configure_args0= | ||
3235 | ac_configure_args1= | ||
3236 | ac_must_keep_next=false | ||
3237 | for ac_pass in 1 2 | ||
3238 | do | ||
3239 | for ac_arg | ||
3240 | do | ||
3241 | case $ac_arg in | ||
3242 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
3243 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
3244 | | -silent | --silent | --silen | --sile | --sil) | ||
3245 | continue ;; | ||
3246 | *\'*) | ||
3247 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3248 | esac | ||
3249 | case $ac_pass in | ||
3250 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
3251 | 2) | ||
3252 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
3253 | if test $ac_must_keep_next = true; then | ||
3254 | ac_must_keep_next=false # Got value, back to normal. | ||
3255 | else | ||
3256 | case $ac_arg in | ||
3257 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
3258 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
3259 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
3260 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
3261 | case "$ac_configure_args0 " in | ||
3262 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
3263 | esac | ||
3264 | ;; | ||
3265 | -* ) ac_must_keep_next=true ;; | ||
3266 | esac | ||
3267 | fi | ||
3268 | as_fn_append ac_configure_args " '$ac_arg'" | ||
3269 | ;; | ||
3270 | esac | ||
3271 | done | ||
3272 | done | ||
3273 | { ac_configure_args0=; unset ac_configure_args0;} | ||
3274 | { ac_configure_args1=; unset ac_configure_args1;} | ||
3275 | |||
3276 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
3277 | # config.log. We remove comments because anyway the quotes in there | ||
3278 | # would cause problems or look ugly. | ||
3279 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
3280 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
3281 | trap 'exit_status=$? | ||
3282 | # Save into config.log some information that might help in debugging. | ||
3283 | { | ||
3284 | echo | ||
3285 | |||
3286 | $as_echo "## ---------------- ## | ||
3287 | ## Cache variables. ## | ||
3288 | ## ---------------- ##" | ||
3289 | echo | ||
3290 | # The following way of writing the cache mishandles newlines in values, | ||
3291 | ( | ||
3292 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
3293 | eval ac_val=\$$ac_var | ||
3294 | case $ac_val in #( | ||
3295 | *${as_nl}*) | ||
3296 | case $ac_var in #( | ||
3297 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
3298 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
3299 | esac | ||
3300 | case $ac_var in #( | ||
3301 | _ | IFS | as_nl) ;; #( | ||
3302 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
3303 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
3304 | esac ;; | ||
3305 | esac | ||
3306 | done | ||
3307 | (set) 2>&1 | | ||
3308 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
3309 | *${as_nl}ac_space=\ *) | ||
3310 | sed -n \ | ||
3311 | "s/'\''/'\''\\\\'\'''\''/g; | ||
3312 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
3313 | ;; #( | ||
3314 | *) | ||
3315 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
3316 | ;; | ||
3317 | esac | | ||
3318 | sort | ||
3319 | ) | ||
3320 | echo | ||
3321 | |||
3322 | $as_echo "## ----------------- ## | ||
3323 | ## Output variables. ## | ||
3324 | ## ----------------- ##" | ||
3325 | echo | ||
3326 | for ac_var in $ac_subst_vars | ||
3327 | do | ||
3328 | eval ac_val=\$$ac_var | ||
3329 | case $ac_val in | ||
3330 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3331 | esac | ||
3332 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3333 | done | sort | ||
3334 | echo | ||
3335 | |||
3336 | if test -n "$ac_subst_files"; then | ||
3337 | $as_echo "## ------------------- ## | ||
3338 | ## File substitutions. ## | ||
3339 | ## ------------------- ##" | ||
3340 | echo | ||
3341 | for ac_var in $ac_subst_files | ||
3342 | do | ||
3343 | eval ac_val=\$$ac_var | ||
3344 | case $ac_val in | ||
3345 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3346 | esac | ||
3347 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3348 | done | sort | ||
3349 | echo | ||
3350 | fi | ||
3351 | |||
3352 | if test -s confdefs.h; then | ||
3353 | $as_echo "## ----------- ## | ||
3354 | ## confdefs.h. ## | ||
3355 | ## ----------- ##" | ||
3356 | echo | ||
3357 | cat confdefs.h | ||
3358 | echo | ||
3359 | fi | ||
3360 | test "$ac_signal" != 0 && | ||
3361 | $as_echo "$as_me: caught signal $ac_signal" | ||
3362 | $as_echo "$as_me: exit $exit_status" | ||
3363 | } >&5 | ||
3364 | rm -f core *.core core.conftest.* && | ||
3365 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
3366 | exit $exit_status | ||
3367 | ' 0 | ||
3368 | for ac_signal in 1 2 13 15; do | ||
3369 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
3370 | done | ||
3371 | ac_signal=0 | ||
3372 | |||
3373 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
3374 | rm -f -r conftest* confdefs.h | ||
3375 | |||
3376 | $as_echo "/* confdefs.h */" > confdefs.h | ||
3377 | |||
3378 | # Predefined preprocessor variables. | ||
3379 | |||
3380 | cat >>confdefs.h <<_ACEOF | ||
3381 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
3382 | _ACEOF | ||
3383 | |||
3384 | cat >>confdefs.h <<_ACEOF | ||
3385 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
3386 | _ACEOF | ||
3387 | |||
3388 | cat >>confdefs.h <<_ACEOF | ||
3389 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
3390 | _ACEOF | ||
3391 | |||
3392 | cat >>confdefs.h <<_ACEOF | ||
3393 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
3394 | _ACEOF | ||
3395 | |||
3396 | cat >>confdefs.h <<_ACEOF | ||
3397 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
3398 | _ACEOF | ||
3399 | |||
3400 | cat >>confdefs.h <<_ACEOF | ||
3401 | #define PACKAGE_URL "$PACKAGE_URL" | ||
3402 | _ACEOF | ||
3403 | |||
3404 | |||
3405 | # Let the site file select an alternate cache file if it wants to. | ||
3406 | # Prefer an explicitly selected file to automatically selected ones. | ||
3407 | ac_site_file1=NONE | ||
3408 | ac_site_file2=NONE | ||
3409 | if test -n "$CONFIG_SITE"; then | ||
3410 | # We do not want a PATH search for config.site. | ||
3411 | case $CONFIG_SITE in #(( | ||
3412 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
3413 | */*) ac_site_file1=$CONFIG_SITE;; | ||
3414 | *) ac_site_file1=./$CONFIG_SITE;; | ||
3415 | esac | ||
3416 | elif test "x$prefix" != xNONE; then | ||
3417 | ac_site_file1=$prefix/share/config.site | ||
3418 | ac_site_file2=$prefix/etc/config.site | ||
3419 | else | ||
3420 | ac_site_file1=$ac_default_prefix/share/config.site | ||
3421 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
3422 | fi | ||
3423 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
3424 | do | ||
3425 | test "x$ac_site_file" = xNONE && continue | ||
3426 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
3428 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
3429 | sed 's/^/| /' "$ac_site_file" >&5 | ||
3430 | . "$ac_site_file" \ | ||
3431 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3432 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3433 | as_fn_error $? "failed to load site script $ac_site_file | ||
3434 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3435 | fi | ||
3436 | done | ||
3437 | |||
3438 | if test -r "$cache_file"; then | ||
3439 | # Some versions of bash will fail to source /dev/null (special files | ||
3440 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
3441 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
3443 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
3444 | case $cache_file in | ||
3445 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
3446 | *) . "./$cache_file";; | ||
3447 | esac | ||
3448 | fi | ||
3449 | else | ||
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
3451 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
3452 | >$cache_file | ||
3453 | fi | ||
3454 | |||
3455 | gt_needs="$gt_needs " | ||
3456 | # Check that the precious variables saved in the cache have kept the same | ||
3457 | # value. | ||
3458 | ac_cache_corrupted=false | ||
3459 | for ac_var in $ac_precious_vars; do | ||
3460 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
3461 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
3462 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
3463 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
3464 | case $ac_old_set,$ac_new_set in | ||
3465 | set,) | ||
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
3467 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
3468 | ac_cache_corrupted=: ;; | ||
3469 | ,set) | ||
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
3471 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
3472 | ac_cache_corrupted=: ;; | ||
3473 | ,);; | ||
3474 | *) | ||
3475 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
3476 | # differences in whitespace do not lead to failure. | ||
3477 | ac_old_val_w=`echo x $ac_old_val` | ||
3478 | ac_new_val_w=`echo x $ac_new_val` | ||
3479 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
3481 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
3482 | ac_cache_corrupted=: | ||
3483 | else | ||
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
3485 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
3486 | eval $ac_var=\$ac_old_val | ||
3487 | fi | ||
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
3489 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
3491 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
3492 | fi;; | ||
3493 | esac | ||
3494 | # Pass precious variables to config.status. | ||
3495 | if test "$ac_new_set" = set; then | ||
3496 | case $ac_new_val in | ||
3497 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3498 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
3499 | esac | ||
3500 | case " $ac_configure_args " in | ||
3501 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
3502 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
3503 | esac | ||
3504 | fi | ||
3505 | done | ||
3506 | if $ac_cache_corrupted; then | ||
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
3510 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
3511 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
3512 | fi | ||
3513 | ## -------------------- ## | ||
3514 | ## Main body of script. ## | ||
3515 | ## -------------------- ## | ||
3516 | |||
3517 | ac_ext=c | ||
3518 | ac_cpp='$CPP $CPPFLAGS' | ||
3519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3522 | |||
3523 | |||
3524 | |||
3525 | |||
3526 | |||
3527 | |||
3528 | ac_config_headers="$ac_config_headers config.h" | ||
3529 | |||
3530 | |||
3531 | |||
3532 | |||
3533 | am__api_version='1.11' | ||
3534 | |||
3535 | ac_aux_dir= | ||
3536 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3537 | if test -f "$ac_dir/install-sh"; then | ||
3538 | ac_aux_dir=$ac_dir | ||
3539 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3540 | break | ||
3541 | elif test -f "$ac_dir/install.sh"; then | ||
3542 | ac_aux_dir=$ac_dir | ||
3543 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3544 | break | ||
3545 | elif test -f "$ac_dir/shtool"; then | ||
3546 | ac_aux_dir=$ac_dir | ||
3547 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3548 | break | ||
3549 | fi | ||
3550 | done | ||
3551 | if test -z "$ac_aux_dir"; then | ||
3552 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3553 | fi | ||
3554 | |||
3555 | # These three variables are undocumented and unsupported, | ||
3556 | # and are intended to be withdrawn in a future Autoconf release. | ||
3557 | # They can cause serious problems if a builder's source tree is in a directory | ||
3558 | # whose full name contains unusual characters. | ||
3559 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3560 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3561 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3562 | |||
3563 | |||
3564 | # Find a good install program. We prefer a C program (faster), | ||
3565 | # so one script is as good as another. But avoid the broken or | ||
3566 | # incompatible versions: | ||
3567 | # SysV /etc/install, /usr/sbin/install | ||
3568 | # SunOS /usr/etc/install | ||
3569 | # IRIX /sbin/install | ||
3570 | # AIX /bin/install | ||
3571 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
3572 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
3573 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
3574 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
3575 | # OS/2's system install, which has a completely different semantic | ||
3576 | # ./install, which can be erroneously created by make from ./install.sh. | ||
3577 | # Reject install programs that cannot install multiple files. | ||
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
3579 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
3580 | if test -z "$INSTALL"; then | ||
3581 | if test "${ac_cv_path_install+set}" = set; then : | ||
3582 | $as_echo_n "(cached) " >&6 | ||
3583 | else | ||
3584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3585 | for as_dir in $PATH | ||
3586 | do | ||
3587 | IFS=$as_save_IFS | ||
3588 | test -z "$as_dir" && as_dir=. | ||
3589 | # Account for people who put trailing slashes in PATH elements. | ||
3590 | case $as_dir/ in #(( | ||
3591 | ./ | .// | /[cC]/* | \ | ||
3592 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
3593 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
3594 | /usr/ucb/* ) ;; | ||
3595 | *) | ||
3596 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
3597 | # Don't use installbsd from OSF since it installs stuff as root | ||
3598 | # by default. | ||
3599 | for ac_prog in ginstall scoinst install; do | ||
3600 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3601 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
3602 | if test $ac_prog = install && | ||
3603 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3604 | # AIX install. It has an incompatible calling convention. | ||
3605 | : | ||
3606 | elif test $ac_prog = install && | ||
3607 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3608 | # program-specific install script used by HP pwplus--don't use. | ||
3609 | : | ||
3610 | else | ||
3611 | rm -rf conftest.one conftest.two conftest.dir | ||
3612 | echo one > conftest.one | ||
3613 | echo two > conftest.two | ||
3614 | mkdir conftest.dir | ||
3615 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
3616 | test -s conftest.one && test -s conftest.two && | ||
3617 | test -s conftest.dir/conftest.one && | ||
3618 | test -s conftest.dir/conftest.two | ||
3619 | then | ||
3620 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3621 | break 3 | ||
3622 | fi | ||
3623 | fi | ||
3624 | fi | ||
3625 | done | ||
3626 | done | ||
3627 | ;; | ||
3628 | esac | ||
3629 | |||
3630 | done | ||
3631 | IFS=$as_save_IFS | ||
3632 | |||
3633 | rm -rf conftest.one conftest.two conftest.dir | ||
3634 | |||
3635 | fi | ||
3636 | if test "${ac_cv_path_install+set}" = set; then | ||
3637 | INSTALL=$ac_cv_path_install | ||
3638 | else | ||
3639 | # As a last resort, use the slow shell script. Don't cache a | ||
3640 | # value for INSTALL within a source directory, because that will | ||
3641 | # break other packages using the cache if that directory is | ||
3642 | # removed, or if the value is a relative name. | ||
3643 | INSTALL=$ac_install_sh | ||
3644 | fi | ||
3645 | fi | ||
3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
3647 | $as_echo "$INSTALL" >&6; } | ||
3648 | |||
3649 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3650 | # It thinks the first close brace ends the variable substitution. | ||
3651 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3652 | |||
3653 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3654 | |||
3655 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3656 | |||
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
3658 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
3659 | # Just in case | ||
3660 | sleep 1 | ||
3661 | echo timestamp > conftest.file | ||
3662 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
3663 | # name. Accept space and tab only in the latter. | ||
3664 | am_lf=' | ||
3665 | ' | ||
3666 | case `pwd` in | ||
3667 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
3668 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
3669 | esac | ||
3670 | case $srcdir in | ||
3671 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
3672 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
3673 | esac | ||
3674 | |||
3675 | # Do `set' in a subshell so we don't clobber the current shell's | ||
3676 | # arguments. Must try -L first in case configure is actually a | ||
3677 | # symlink; some systems play weird games with the mod time of symlinks | ||
3678 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
3679 | # directory). | ||
3680 | if ( | ||
3681 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
3682 | if test "$*" = "X"; then | ||
3683 | # -L didn't work. | ||
3684 | set X `ls -t "$srcdir/configure" conftest.file` | ||
3685 | fi | ||
3686 | rm -f conftest.file | ||
3687 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
3688 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
3689 | |||
3690 | # If neither matched, then we have a broken ls. This can happen | ||
3691 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
3692 | # broken ls alias from the environment. This has actually | ||
3693 | # happened. Such a system could not be considered "sane". | ||
3694 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
3695 | alias in your environment" "$LINENO" 5 | ||
3696 | fi | ||
3697 | |||
3698 | test "$2" = conftest.file | ||
3699 | ) | ||
3700 | then | ||
3701 | # Ok. | ||
3702 | : | ||
3703 | else | ||
3704 | as_fn_error $? "newly created file is older than distributed files! | ||
3705 | Check your system clock" "$LINENO" 5 | ||
3706 | fi | ||
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3708 | $as_echo "yes" >&6; } | ||
3709 | test "$program_prefix" != NONE && | ||
3710 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
3711 | # Use a double $ so make ignores it. | ||
3712 | test "$program_suffix" != NONE && | ||
3713 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
3714 | # Double any \ or $. | ||
3715 | # By default was `s,x,x', remove it if useless. | ||
3716 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
3717 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
3718 | |||
3719 | # expand $ac_aux_dir to an absolute path | ||
3720 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
3721 | |||
3722 | if test x"${MISSING+set}" != xset; then | ||
3723 | case $am_aux_dir in | ||
3724 | *\ * | *\ *) | ||
3725 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
3726 | *) | ||
3727 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
3728 | esac | ||
3729 | fi | ||
3730 | # Use eval to expand $SHELL | ||
3731 | if eval "$MISSING --run true"; then | ||
3732 | am_missing_run="$MISSING --run " | ||
3733 | else | ||
3734 | am_missing_run= | ||
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
3736 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
3737 | fi | ||
3738 | |||
3739 | if test x"${install_sh}" != xset; then | ||
3740 | case $am_aux_dir in | ||
3741 | *\ * | *\ *) | ||
3742 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
3743 | *) | ||
3744 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
3745 | esac | ||
3746 | fi | ||
3747 | |||
3748 | # Installed binaries are usually stripped using `strip' when the user | ||
3749 | # run `make install-strip'. However `strip' might not be the right | ||
3750 | # tool to use in cross-compilation environments, therefore Automake | ||
3751 | # will honor the `STRIP' environment variable to overrule this program. | ||
3752 | if test "$cross_compiling" != no; then | ||
3753 | if test -n "$ac_tool_prefix"; then | ||
3754 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
3755 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3757 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3758 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
3759 | $as_echo_n "(cached) " >&6 | ||
3760 | else | ||
3761 | if test -n "$STRIP"; then | ||
3762 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
3763 | else | ||
3764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3765 | for as_dir in $PATH | ||
3766 | do | ||
3767 | IFS=$as_save_IFS | ||
3768 | test -z "$as_dir" && as_dir=. | ||
3769 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3771 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
3772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3773 | break 2 | ||
3774 | fi | ||
3775 | done | ||
3776 | done | ||
3777 | IFS=$as_save_IFS | ||
3778 | |||
3779 | fi | ||
3780 | fi | ||
3781 | STRIP=$ac_cv_prog_STRIP | ||
3782 | if test -n "$STRIP"; then | ||
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
3784 | $as_echo "$STRIP" >&6; } | ||
3785 | else | ||
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3787 | $as_echo "no" >&6; } | ||
3788 | fi | ||
3789 | |||
3790 | |||
3791 | fi | ||
3792 | if test -z "$ac_cv_prog_STRIP"; then | ||
3793 | ac_ct_STRIP=$STRIP | ||
3794 | # Extract the first word of "strip", so it can be a program name with args. | ||
3795 | set dummy 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_ac_ct_STRIP+set}" = set; then : | ||
3799 | $as_echo_n "(cached) " >&6 | ||
3800 | else | ||
3801 | if test -n "$ac_ct_STRIP"; then | ||
3802 | ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
3822 | if test -n "$ac_ct_STRIP"; then | ||
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
3824 | $as_echo "$ac_ct_STRIP" >&6; } | ||
3825 | else | ||
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3827 | $as_echo "no" >&6; } | ||
3828 | fi | ||
3829 | |||
3830 | if test "x$ac_ct_STRIP" = x; then | ||
3831 | STRIP=":" | ||
3832 | else | ||
3833 | case $cross_compiling:$ac_tool_warned in | ||
3834 | yes:) | ||
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3836 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3837 | ac_tool_warned=yes ;; | ||
3838 | esac | ||
3839 | STRIP=$ac_ct_STRIP | ||
3840 | fi | ||
3841 | else | ||
3842 | STRIP="$ac_cv_prog_STRIP" | ||
3843 | fi | ||
3844 | |||
3845 | fi | ||
3846 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
3847 | |||
3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
3849 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
3850 | if test -z "$MKDIR_P"; then | ||
3851 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
3852 | $as_echo_n "(cached) " >&6 | ||
3853 | else | ||
3854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3855 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
3856 | do | ||
3857 | IFS=$as_save_IFS | ||
3858 | test -z "$as_dir" && as_dir=. | ||
3859 | for ac_prog in mkdir gmkdir; do | ||
3860 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3861 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
3862 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
3863 | 'mkdir (GNU coreutils) '* | \ | ||
3864 | 'mkdir (coreutils) '* | \ | ||
3865 | 'mkdir (fileutils) '4.1*) | ||
3866 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
3867 | break 3;; | ||
3868 | esac | ||
3869 | done | ||
3870 | done | ||
3871 | done | ||
3872 | IFS=$as_save_IFS | ||
3873 | |||
3874 | fi | ||
3875 | |||
3876 | test -d ./--version && rmdir ./--version | ||
3877 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
3878 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
3879 | else | ||
3880 | # As a last resort, use the slow shell script. Don't cache a | ||
3881 | # value for MKDIR_P within a source directory, because that will | ||
3882 | # break other packages using the cache if that directory is | ||
3883 | # removed, or if the value is a relative name. | ||
3884 | MKDIR_P="$ac_install_sh -d" | ||
3885 | fi | ||
3886 | fi | ||
3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
3888 | $as_echo "$MKDIR_P" >&6; } | ||
3889 | |||
3890 | mkdir_p="$MKDIR_P" | ||
3891 | case $mkdir_p in | ||
3892 | [\\/$]* | ?:[\\/]*) ;; | ||
3893 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
3894 | esac | ||
3895 | |||
3896 | for ac_prog in gawk mawk nawk awk | ||
3897 | do | ||
3898 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3899 | set dummy $ac_prog; ac_word=$2 | ||
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3901 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3902 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
3903 | $as_echo_n "(cached) " >&6 | ||
3904 | else | ||
3905 | if test -n "$AWK"; then | ||
3906 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3907 | else | ||
3908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3909 | for as_dir in $PATH | ||
3910 | do | ||
3911 | IFS=$as_save_IFS | ||
3912 | test -z "$as_dir" && as_dir=. | ||
3913 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3915 | ac_cv_prog_AWK="$ac_prog" | ||
3916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3917 | break 2 | ||
3918 | fi | ||
3919 | done | ||
3920 | done | ||
3921 | IFS=$as_save_IFS | ||
3922 | |||
3923 | fi | ||
3924 | fi | ||
3925 | AWK=$ac_cv_prog_AWK | ||
3926 | if test -n "$AWK"; then | ||
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
3928 | $as_echo "$AWK" >&6; } | ||
3929 | else | ||
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3931 | $as_echo "no" >&6; } | ||
3932 | fi | ||
3933 | |||
3934 | |||
3935 | test -n "$AWK" && break | ||
3936 | done | ||
3937 | |||
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
3939 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
3940 | set x ${MAKE-make} | ||
3941 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
3942 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
3943 | $as_echo_n "(cached) " >&6 | ||
3944 | else | ||
3945 | cat >conftest.make <<\_ACEOF | ||
3946 | SHELL = /bin/sh | ||
3947 | all: | ||
3948 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
3949 | _ACEOF | ||
3950 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
3951 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
3952 | *@@@%%%=?*=@@@%%%*) | ||
3953 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
3954 | *) | ||
3955 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
3956 | esac | ||
3957 | rm -f conftest.make | ||
3958 | fi | ||
3959 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3961 | $as_echo "yes" >&6; } | ||
3962 | SET_MAKE= | ||
3963 | else | ||
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3965 | $as_echo "no" >&6; } | ||
3966 | SET_MAKE="MAKE=${MAKE-make}" | ||
3967 | fi | ||
3968 | |||
3969 | rm -rf .tst 2>/dev/null | ||
3970 | mkdir .tst 2>/dev/null | ||
3971 | if test -d .tst; then | ||
3972 | am__leading_dot=. | ||
3973 | else | ||
3974 | am__leading_dot=_ | ||
3975 | fi | ||
3976 | rmdir .tst 2>/dev/null | ||
3977 | |||
3978 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
3979 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
3980 | # is not polluted with repeated "-I." | ||
3981 | am__isrc=' -I$(srcdir)' | ||
3982 | # test to see if srcdir already configured | ||
3983 | if test -f $srcdir/config.status; then | ||
3984 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
3985 | fi | ||
3986 | fi | ||
3987 | |||
3988 | # test whether we have cygpath | ||
3989 | if test -z "$CYGPATH_W"; then | ||
3990 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
3991 | CYGPATH_W='cygpath -w' | ||
3992 | else | ||
3993 | CYGPATH_W=echo | ||
3994 | fi | ||
3995 | fi | ||
3996 | |||
3997 | |||
3998 | # Define the identity of the package. | ||
3999 | PACKAGE='ecore' | ||
4000 | VERSION='1.1.0' | ||
4001 | |||
4002 | |||
4003 | cat >>confdefs.h <<_ACEOF | ||
4004 | #define PACKAGE "$PACKAGE" | ||
4005 | _ACEOF | ||
4006 | |||
4007 | |||
4008 | cat >>confdefs.h <<_ACEOF | ||
4009 | #define VERSION "$VERSION" | ||
4010 | _ACEOF | ||
4011 | |||
4012 | # Some tools Automake needs. | ||
4013 | |||
4014 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
4015 | |||
4016 | |||
4017 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
4018 | |||
4019 | |||
4020 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
4021 | |||
4022 | |||
4023 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
4024 | |||
4025 | |||
4026 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
4027 | |||
4028 | # We need awk for the "check" target. The system "awk" is bad on | ||
4029 | # some platforms. | ||
4030 | # Always define AMTAR for backward compatibility. | ||
4031 | |||
4032 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
4033 | |||
4034 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
4035 | |||
4036 | |||
4037 | |||
4038 | |||
4039 | |||
4040 | # Check whether --enable-silent-rules was given. | ||
4041 | if test "${enable_silent_rules+set}" = set; then : | ||
4042 | enableval=$enable_silent_rules; | ||
4043 | fi | ||
4044 | |||
4045 | case $enable_silent_rules in | ||
4046 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
4047 | no) AM_DEFAULT_VERBOSITY=1;; | ||
4048 | *) AM_DEFAULT_VERBOSITY=0;; | ||
4049 | esac | ||
4050 | AM_BACKSLASH='\' | ||
4051 | |||
4052 | |||
4053 | DEPDIR="${am__leading_dot}deps" | ||
4054 | |||
4055 | ac_config_commands="$ac_config_commands depfiles" | ||
4056 | |||
4057 | |||
4058 | am_make=${MAKE-make} | ||
4059 | cat > confinc << 'END' | ||
4060 | am__doit: | ||
4061 | @echo this is the am__doit target | ||
4062 | .PHONY: am__doit | ||
4063 | END | ||
4064 | # If we don't find an include directive, just comment out the code. | ||
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
4066 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
4067 | am__include="#" | ||
4068 | am__quote= | ||
4069 | _am_result=none | ||
4070 | # First try GNU make style include. | ||
4071 | echo "include confinc" > confmf | ||
4072 | # Ignore all kinds of additional output from `make'. | ||
4073 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4074 | *the\ am__doit\ target*) | ||
4075 | am__include=include | ||
4076 | am__quote= | ||
4077 | _am_result=GNU | ||
4078 | ;; | ||
4079 | esac | ||
4080 | # Now try BSD make style include. | ||
4081 | if test "$am__include" = "#"; then | ||
4082 | echo '.include "confinc"' > confmf | ||
4083 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4084 | *the\ am__doit\ target*) | ||
4085 | am__include=.include | ||
4086 | am__quote="\"" | ||
4087 | _am_result=BSD | ||
4088 | ;; | ||
4089 | esac | ||
4090 | fi | ||
4091 | |||
4092 | |||
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
4094 | $as_echo "$_am_result" >&6; } | ||
4095 | rm -f confinc confmf | ||
4096 | |||
4097 | # Check whether --enable-dependency-tracking was given. | ||
4098 | if test "${enable_dependency_tracking+set}" = set; then : | ||
4099 | enableval=$enable_dependency_tracking; | ||
4100 | fi | ||
4101 | |||
4102 | if test "x$enable_dependency_tracking" != xno; then | ||
4103 | am_depcomp="$ac_aux_dir/depcomp" | ||
4104 | AMDEPBACKSLASH='\' | ||
4105 | fi | ||
4106 | if test "x$enable_dependency_tracking" != xno; then | ||
4107 | AMDEP_TRUE= | ||
4108 | AMDEP_FALSE='#' | ||
4109 | else | ||
4110 | AMDEP_TRUE='#' | ||
4111 | AMDEP_FALSE= | ||
4112 | fi | ||
4113 | |||
4114 | |||
4115 | ac_ext=c | ||
4116 | ac_cpp='$CPP $CPPFLAGS' | ||
4117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4120 | if test -n "$ac_tool_prefix"; then | ||
4121 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
4122 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4124 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4125 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4126 | $as_echo_n "(cached) " >&6 | ||
4127 | else | ||
4128 | if test -n "$CC"; then | ||
4129 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4130 | else | ||
4131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4132 | for as_dir in $PATH | ||
4133 | do | ||
4134 | IFS=$as_save_IFS | ||
4135 | test -z "$as_dir" && as_dir=. | ||
4136 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4138 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
4139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4140 | break 2 | ||
4141 | fi | ||
4142 | done | ||
4143 | done | ||
4144 | IFS=$as_save_IFS | ||
4145 | |||
4146 | fi | ||
4147 | fi | ||
4148 | CC=$ac_cv_prog_CC | ||
4149 | if test -n "$CC"; then | ||
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4151 | $as_echo "$CC" >&6; } | ||
4152 | else | ||
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4154 | $as_echo "no" >&6; } | ||
4155 | fi | ||
4156 | |||
4157 | |||
4158 | fi | ||
4159 | if test -z "$ac_cv_prog_CC"; then | ||
4160 | ac_ct_CC=$CC | ||
4161 | # Extract the first word of "gcc", so it can be a program name with args. | ||
4162 | set dummy 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_ac_ct_CC+set}" = set; then : | ||
4166 | $as_echo_n "(cached) " >&6 | ||
4167 | else | ||
4168 | if test -n "$ac_ct_CC"; then | ||
4169 | ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4189 | if test -n "$ac_ct_CC"; then | ||
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4191 | $as_echo "$ac_ct_CC" >&6; } | ||
4192 | else | ||
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4194 | $as_echo "no" >&6; } | ||
4195 | fi | ||
4196 | |||
4197 | if test "x$ac_ct_CC" = x; then | ||
4198 | CC="" | ||
4199 | else | ||
4200 | case $cross_compiling:$ac_tool_warned in | ||
4201 | yes:) | ||
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4203 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4204 | ac_tool_warned=yes ;; | ||
4205 | esac | ||
4206 | CC=$ac_ct_CC | ||
4207 | fi | ||
4208 | else | ||
4209 | CC="$ac_cv_prog_CC" | ||
4210 | fi | ||
4211 | |||
4212 | if test -z "$CC"; then | ||
4213 | if test -n "$ac_tool_prefix"; then | ||
4214 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
4215 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4217 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4218 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4219 | $as_echo_n "(cached) " >&6 | ||
4220 | else | ||
4221 | if test -n "$CC"; then | ||
4222 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4223 | else | ||
4224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4225 | for as_dir in $PATH | ||
4226 | do | ||
4227 | IFS=$as_save_IFS | ||
4228 | test -z "$as_dir" && as_dir=. | ||
4229 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4230 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4231 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
4232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4233 | break 2 | ||
4234 | fi | ||
4235 | done | ||
4236 | done | ||
4237 | IFS=$as_save_IFS | ||
4238 | |||
4239 | fi | ||
4240 | fi | ||
4241 | CC=$ac_cv_prog_CC | ||
4242 | if test -n "$CC"; then | ||
4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4244 | $as_echo "$CC" >&6; } | ||
4245 | else | ||
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4247 | $as_echo "no" >&6; } | ||
4248 | fi | ||
4249 | |||
4250 | |||
4251 | fi | ||
4252 | fi | ||
4253 | if test -z "$CC"; then | ||
4254 | # Extract the first word of "cc", so it can be a program name with args. | ||
4255 | set dummy 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 | ac_prog_rejected=no | ||
4265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4266 | for as_dir in $PATH | ||
4267 | do | ||
4268 | IFS=$as_save_IFS | ||
4269 | test -z "$as_dir" && as_dir=. | ||
4270 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4272 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
4273 | ac_prog_rejected=yes | ||
4274 | continue | ||
4275 | fi | ||
4276 | ac_cv_prog_CC="cc" | ||
4277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4278 | break 2 | ||
4279 | fi | ||
4280 | done | ||
4281 | done | ||
4282 | IFS=$as_save_IFS | ||
4283 | |||
4284 | if test $ac_prog_rejected = yes; then | ||
4285 | # We found a bogon in the path, so make sure we never use it. | ||
4286 | set dummy $ac_cv_prog_CC | ||
4287 | shift | ||
4288 | if test $# != 0; then | ||
4289 | # We chose a different compiler from the bogus one. | ||
4290 | # However, it has the same basename, so the bogon will be chosen | ||
4291 | # first if we set CC to just the basename; use the full file name. | ||
4292 | shift | ||
4293 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
4294 | fi | ||
4295 | fi | ||
4296 | fi | ||
4297 | fi | ||
4298 | CC=$ac_cv_prog_CC | ||
4299 | if test -n "$CC"; then | ||
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4301 | $as_echo "$CC" >&6; } | ||
4302 | else | ||
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4304 | $as_echo "no" >&6; } | ||
4305 | fi | ||
4306 | |||
4307 | |||
4308 | fi | ||
4309 | if test -z "$CC"; then | ||
4310 | if test -n "$ac_tool_prefix"; then | ||
4311 | for ac_prog in cl.exe | ||
4312 | do | ||
4313 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4314 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4316 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4317 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4318 | $as_echo_n "(cached) " >&6 | ||
4319 | else | ||
4320 | if test -n "$CC"; then | ||
4321 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4322 | else | ||
4323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4324 | for as_dir in $PATH | ||
4325 | do | ||
4326 | IFS=$as_save_IFS | ||
4327 | test -z "$as_dir" && as_dir=. | ||
4328 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4330 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
4331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4332 | break 2 | ||
4333 | fi | ||
4334 | done | ||
4335 | done | ||
4336 | IFS=$as_save_IFS | ||
4337 | |||
4338 | fi | ||
4339 | fi | ||
4340 | CC=$ac_cv_prog_CC | ||
4341 | if test -n "$CC"; then | ||
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4343 | $as_echo "$CC" >&6; } | ||
4344 | else | ||
4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4346 | $as_echo "no" >&6; } | ||
4347 | fi | ||
4348 | |||
4349 | |||
4350 | test -n "$CC" && break | ||
4351 | done | ||
4352 | fi | ||
4353 | if test -z "$CC"; then | ||
4354 | ac_ct_CC=$CC | ||
4355 | for ac_prog in cl.exe | ||
4356 | do | ||
4357 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4358 | set dummy $ac_prog; ac_word=$2 | ||
4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4360 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4361 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4362 | $as_echo_n "(cached) " >&6 | ||
4363 | else | ||
4364 | if test -n "$ac_ct_CC"; then | ||
4365 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4366 | else | ||
4367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4368 | for as_dir in $PATH | ||
4369 | do | ||
4370 | IFS=$as_save_IFS | ||
4371 | test -z "$as_dir" && as_dir=. | ||
4372 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4373 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4374 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
4375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4376 | break 2 | ||
4377 | fi | ||
4378 | done | ||
4379 | done | ||
4380 | IFS=$as_save_IFS | ||
4381 | |||
4382 | fi | ||
4383 | fi | ||
4384 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4385 | if test -n "$ac_ct_CC"; then | ||
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4387 | $as_echo "$ac_ct_CC" >&6; } | ||
4388 | else | ||
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4390 | $as_echo "no" >&6; } | ||
4391 | fi | ||
4392 | |||
4393 | |||
4394 | test -n "$ac_ct_CC" && break | ||
4395 | done | ||
4396 | |||
4397 | if test "x$ac_ct_CC" = x; then | ||
4398 | CC="" | ||
4399 | else | ||
4400 | case $cross_compiling:$ac_tool_warned in | ||
4401 | yes:) | ||
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4403 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4404 | ac_tool_warned=yes ;; | ||
4405 | esac | ||
4406 | CC=$ac_ct_CC | ||
4407 | fi | ||
4408 | fi | ||
4409 | |||
4410 | fi | ||
4411 | |||
4412 | |||
4413 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4415 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
4416 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4417 | |||
4418 | # Provide some information about the compiler. | ||
4419 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
4420 | set X $ac_compile | ||
4421 | ac_compiler=$2 | ||
4422 | for ac_option in --version -v -V -qversion; do | ||
4423 | { { ac_try="$ac_compiler $ac_option >&5" | ||
4424 | case "(($ac_try" in | ||
4425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4426 | *) ac_try_echo=$ac_try;; | ||
4427 | esac | ||
4428 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4429 | $as_echo "$ac_try_echo"; } >&5 | ||
4430 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
4431 | ac_status=$? | ||
4432 | if test -s conftest.err; then | ||
4433 | sed '10a\ | ||
4434 | ... rest of stderr output deleted ... | ||
4435 | 10q' conftest.err >conftest.er1 | ||
4436 | cat conftest.er1 >&5 | ||
4437 | fi | ||
4438 | rm -f conftest.er1 conftest.err | ||
4439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4440 | test $ac_status = 0; } | ||
4441 | done | ||
4442 | |||
4443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4444 | /* end confdefs.h. */ | ||
4445 | |||
4446 | int | ||
4447 | main () | ||
4448 | { | ||
4449 | |||
4450 | ; | ||
4451 | return 0; | ||
4452 | } | ||
4453 | _ACEOF | ||
4454 | ac_clean_files_save=$ac_clean_files | ||
4455 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
4456 | # Try to create an executable without -o first, disregard a.out. | ||
4457 | # It will help us diagnose broken compilers, and finding out an intuition | ||
4458 | # of exeext. | ||
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
4460 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
4461 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
4462 | |||
4463 | # The possible output files: | ||
4464 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
4465 | |||
4466 | ac_rmfiles= | ||
4467 | for ac_file in $ac_files | ||
4468 | do | ||
4469 | case $ac_file in | ||
4470 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4471 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
4472 | esac | ||
4473 | done | ||
4474 | rm -f $ac_rmfiles | ||
4475 | |||
4476 | if { { ac_try="$ac_link_default" | ||
4477 | case "(($ac_try" in | ||
4478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4479 | *) ac_try_echo=$ac_try;; | ||
4480 | esac | ||
4481 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4482 | $as_echo "$ac_try_echo"; } >&5 | ||
4483 | (eval "$ac_link_default") 2>&5 | ||
4484 | ac_status=$? | ||
4485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4486 | test $ac_status = 0; }; then : | ||
4487 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
4488 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
4489 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
4490 | # so that the user can short-circuit this test for compilers unknown to | ||
4491 | # Autoconf. | ||
4492 | for ac_file in $ac_files '' | ||
4493 | do | ||
4494 | test -f "$ac_file" || continue | ||
4495 | case $ac_file in | ||
4496 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
4497 | ;; | ||
4498 | [ab].out ) | ||
4499 | # We found the default executable, but exeext='' is most | ||
4500 | # certainly right. | ||
4501 | break;; | ||
4502 | *.* ) | ||
4503 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
4504 | then :; else | ||
4505 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4506 | fi | ||
4507 | # We set ac_cv_exeext here because the later test for it is not | ||
4508 | # safe: cross compilers may not add the suffix if given an `-o' | ||
4509 | # argument, so we may need to know it at that point already. | ||
4510 | # Even if this section looks crufty: it has the advantage of | ||
4511 | # actually working. | ||
4512 | break;; | ||
4513 | * ) | ||
4514 | break;; | ||
4515 | esac | ||
4516 | done | ||
4517 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
4518 | |||
4519 | else | ||
4520 | ac_file='' | ||
4521 | fi | ||
4522 | if test -z "$ac_file"; then : | ||
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4524 | $as_echo "no" >&6; } | ||
4525 | $as_echo "$as_me: failed program was:" >&5 | ||
4526 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4527 | |||
4528 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4529 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4530 | as_fn_error 77 "C compiler cannot create executables | ||
4531 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4532 | else | ||
4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4534 | $as_echo "yes" >&6; } | ||
4535 | fi | ||
4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
4537 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
4539 | $as_echo "$ac_file" >&6; } | ||
4540 | ac_exeext=$ac_cv_exeext | ||
4541 | |||
4542 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
4543 | ac_clean_files=$ac_clean_files_save | ||
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
4545 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
4546 | if { { ac_try="$ac_link" | ||
4547 | case "(($ac_try" in | ||
4548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4549 | *) ac_try_echo=$ac_try;; | ||
4550 | esac | ||
4551 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4552 | $as_echo "$ac_try_echo"; } >&5 | ||
4553 | (eval "$ac_link") 2>&5 | ||
4554 | ac_status=$? | ||
4555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4556 | test $ac_status = 0; }; then : | ||
4557 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
4558 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
4559 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
4560 | # `rm'. | ||
4561 | for ac_file in conftest.exe conftest conftest.*; do | ||
4562 | test -f "$ac_file" || continue | ||
4563 | case $ac_file in | ||
4564 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4565 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4566 | break;; | ||
4567 | * ) break;; | ||
4568 | esac | ||
4569 | done | ||
4570 | else | ||
4571 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4572 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4573 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
4574 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4575 | fi | ||
4576 | rm -f conftest conftest$ac_cv_exeext | ||
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
4578 | $as_echo "$ac_cv_exeext" >&6; } | ||
4579 | |||
4580 | rm -f conftest.$ac_ext | ||
4581 | EXEEXT=$ac_cv_exeext | ||
4582 | ac_exeext=$EXEEXT | ||
4583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4584 | /* end confdefs.h. */ | ||
4585 | #include <stdio.h> | ||
4586 | int | ||
4587 | main () | ||
4588 | { | ||
4589 | FILE *f = fopen ("conftest.out", "w"); | ||
4590 | return ferror (f) || fclose (f) != 0; | ||
4591 | |||
4592 | ; | ||
4593 | return 0; | ||
4594 | } | ||
4595 | _ACEOF | ||
4596 | ac_clean_files="$ac_clean_files conftest.out" | ||
4597 | # Check that the compiler produces executables we can run. If not, either | ||
4598 | # the compiler is broken, or we cross compile. | ||
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
4600 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
4601 | if test "$cross_compiling" != yes; then | ||
4602 | { { ac_try="$ac_link" | ||
4603 | case "(($ac_try" in | ||
4604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4605 | *) ac_try_echo=$ac_try;; | ||
4606 | esac | ||
4607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4608 | $as_echo "$ac_try_echo"; } >&5 | ||
4609 | (eval "$ac_link") 2>&5 | ||
4610 | ac_status=$? | ||
4611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4612 | test $ac_status = 0; } | ||
4613 | if { ac_try='./conftest$ac_cv_exeext' | ||
4614 | { { case "(($ac_try" in | ||
4615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4616 | *) ac_try_echo=$ac_try;; | ||
4617 | esac | ||
4618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4619 | $as_echo "$ac_try_echo"; } >&5 | ||
4620 | (eval "$ac_try") 2>&5 | ||
4621 | ac_status=$? | ||
4622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4623 | test $ac_status = 0; }; }; then | ||
4624 | cross_compiling=no | ||
4625 | else | ||
4626 | if test "$cross_compiling" = maybe; then | ||
4627 | cross_compiling=yes | ||
4628 | else | ||
4629 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4630 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4631 | as_fn_error $? "cannot run C compiled programs. | ||
4632 | If you meant to cross compile, use \`--host'. | ||
4633 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4634 | fi | ||
4635 | fi | ||
4636 | fi | ||
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
4638 | $as_echo "$cross_compiling" >&6; } | ||
4639 | |||
4640 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
4641 | ac_clean_files=$ac_clean_files_save | ||
4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
4643 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
4644 | if test "${ac_cv_objext+set}" = set; then : | ||
4645 | $as_echo_n "(cached) " >&6 | ||
4646 | else | ||
4647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4648 | /* end confdefs.h. */ | ||
4649 | |||
4650 | int | ||
4651 | main () | ||
4652 | { | ||
4653 | |||
4654 | ; | ||
4655 | return 0; | ||
4656 | } | ||
4657 | _ACEOF | ||
4658 | rm -f conftest.o conftest.obj | ||
4659 | if { { ac_try="$ac_compile" | ||
4660 | case "(($ac_try" in | ||
4661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4662 | *) ac_try_echo=$ac_try;; | ||
4663 | esac | ||
4664 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4665 | $as_echo "$ac_try_echo"; } >&5 | ||
4666 | (eval "$ac_compile") 2>&5 | ||
4667 | ac_status=$? | ||
4668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4669 | test $ac_status = 0; }; then : | ||
4670 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
4671 | test -f "$ac_file" || continue; | ||
4672 | case $ac_file in | ||
4673 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
4674 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
4675 | break;; | ||
4676 | esac | ||
4677 | done | ||
4678 | else | ||
4679 | $as_echo "$as_me: failed program was:" >&5 | ||
4680 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4681 | |||
4682 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4683 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4684 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4685 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4686 | fi | ||
4687 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4688 | fi | ||
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4690 | $as_echo "$ac_cv_objext" >&6; } | ||
4691 | OBJEXT=$ac_cv_objext | ||
4692 | ac_objext=$OBJEXT | ||
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4694 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4695 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4696 | $as_echo_n "(cached) " >&6 | ||
4697 | else | ||
4698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4699 | /* end confdefs.h. */ | ||
4700 | |||
4701 | int | ||
4702 | main () | ||
4703 | { | ||
4704 | #ifndef __GNUC__ | ||
4705 | choke me | ||
4706 | #endif | ||
4707 | |||
4708 | ; | ||
4709 | return 0; | ||
4710 | } | ||
4711 | _ACEOF | ||
4712 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4713 | ac_compiler_gnu=yes | ||
4714 | else | ||
4715 | ac_compiler_gnu=no | ||
4716 | fi | ||
4717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4718 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4719 | |||
4720 | fi | ||
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4722 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4723 | if test $ac_compiler_gnu = yes; then | ||
4724 | GCC=yes | ||
4725 | else | ||
4726 | GCC= | ||
4727 | fi | ||
4728 | ac_test_CFLAGS=${CFLAGS+set} | ||
4729 | ac_save_CFLAGS=$CFLAGS | ||
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4731 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4732 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4733 | $as_echo_n "(cached) " >&6 | ||
4734 | else | ||
4735 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4736 | ac_c_werror_flag=yes | ||
4737 | ac_cv_prog_cc_g=no | ||
4738 | CFLAGS="-g" | ||
4739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4740 | /* end confdefs.h. */ | ||
4741 | |||
4742 | int | ||
4743 | main () | ||
4744 | { | ||
4745 | |||
4746 | ; | ||
4747 | return 0; | ||
4748 | } | ||
4749 | _ACEOF | ||
4750 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4751 | ac_cv_prog_cc_g=yes | ||
4752 | else | ||
4753 | CFLAGS="" | ||
4754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4755 | /* end confdefs.h. */ | ||
4756 | |||
4757 | int | ||
4758 | main () | ||
4759 | { | ||
4760 | |||
4761 | ; | ||
4762 | return 0; | ||
4763 | } | ||
4764 | _ACEOF | ||
4765 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4766 | |||
4767 | else | ||
4768 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4769 | CFLAGS="-g" | ||
4770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4771 | /* end confdefs.h. */ | ||
4772 | |||
4773 | int | ||
4774 | main () | ||
4775 | { | ||
4776 | |||
4777 | ; | ||
4778 | return 0; | ||
4779 | } | ||
4780 | _ACEOF | ||
4781 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4782 | ac_cv_prog_cc_g=yes | ||
4783 | fi | ||
4784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4785 | fi | ||
4786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4787 | fi | ||
4788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4789 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4790 | fi | ||
4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4792 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4793 | if test "$ac_test_CFLAGS" = set; then | ||
4794 | CFLAGS=$ac_save_CFLAGS | ||
4795 | elif test $ac_cv_prog_cc_g = yes; then | ||
4796 | if test "$GCC" = yes; then | ||
4797 | CFLAGS="-g -O2" | ||
4798 | else | ||
4799 | CFLAGS="-g" | ||
4800 | fi | ||
4801 | else | ||
4802 | if test "$GCC" = yes; then | ||
4803 | CFLAGS="-O2" | ||
4804 | else | ||
4805 | CFLAGS= | ||
4806 | fi | ||
4807 | fi | ||
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4809 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4810 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4811 | $as_echo_n "(cached) " >&6 | ||
4812 | else | ||
4813 | ac_cv_prog_cc_c89=no | ||
4814 | ac_save_CC=$CC | ||
4815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4816 | /* end confdefs.h. */ | ||
4817 | #include <stdarg.h> | ||
4818 | #include <stdio.h> | ||
4819 | #include <sys/types.h> | ||
4820 | #include <sys/stat.h> | ||
4821 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4822 | struct buf { int x; }; | ||
4823 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4824 | static char *e (p, i) | ||
4825 | char **p; | ||
4826 | int i; | ||
4827 | { | ||
4828 | return p[i]; | ||
4829 | } | ||
4830 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4831 | { | ||
4832 | char *s; | ||
4833 | va_list v; | ||
4834 | va_start (v,p); | ||
4835 | s = g (p, va_arg (v,int)); | ||
4836 | va_end (v); | ||
4837 | return s; | ||
4838 | } | ||
4839 | |||
4840 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4841 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4842 | These don't provoke an error unfortunately, instead are silently treated | ||
4843 | as 'x'. The following induces an error, until -std is added to get | ||
4844 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4845 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4846 | that's true only with -std. */ | ||
4847 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4848 | |||
4849 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4850 | inside strings and character constants. */ | ||
4851 | #define FOO(x) 'x' | ||
4852 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4853 | |||
4854 | int test (int i, double x); | ||
4855 | struct s1 {int (*f) (int a);}; | ||
4856 | struct s2 {int (*f) (double a);}; | ||
4857 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4858 | int argc; | ||
4859 | char **argv; | ||
4860 | int | ||
4861 | main () | ||
4862 | { | ||
4863 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4864 | ; | ||
4865 | return 0; | ||
4866 | } | ||
4867 | _ACEOF | ||
4868 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4869 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4870 | do | ||
4871 | CC="$ac_save_CC $ac_arg" | ||
4872 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4873 | ac_cv_prog_cc_c89=$ac_arg | ||
4874 | fi | ||
4875 | rm -f core conftest.err conftest.$ac_objext | ||
4876 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4877 | done | ||
4878 | rm -f conftest.$ac_ext | ||
4879 | CC=$ac_save_CC | ||
4880 | |||
4881 | fi | ||
4882 | # AC_CACHE_VAL | ||
4883 | case "x$ac_cv_prog_cc_c89" in | ||
4884 | x) | ||
4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4886 | $as_echo "none needed" >&6; } ;; | ||
4887 | xno) | ||
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4889 | $as_echo "unsupported" >&6; } ;; | ||
4890 | *) | ||
4891 | CC="$CC $ac_cv_prog_cc_c89" | ||
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4893 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4894 | esac | ||
4895 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4896 | |||
4897 | fi | ||
4898 | |||
4899 | ac_ext=c | ||
4900 | ac_cpp='$CPP $CPPFLAGS' | ||
4901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4904 | |||
4905 | depcc="$CC" am_compiler_list= | ||
4906 | |||
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4908 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4909 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4910 | $as_echo_n "(cached) " >&6 | ||
4911 | else | ||
4912 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4913 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4914 | # making bogus files that we don't know about and never remove. For | ||
4915 | # instance it was reported that on HP-UX the gcc test will end up | ||
4916 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4917 | # in D'. | ||
4918 | mkdir conftest.dir | ||
4919 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4920 | # using a relative directory. | ||
4921 | cp "$am_depcomp" conftest.dir | ||
4922 | cd conftest.dir | ||
4923 | # We will build objects and dependencies in a subdirectory because | ||
4924 | # it helps to detect inapplicable dependency modes. For instance | ||
4925 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4926 | # side effect of compilation, but ICC will put the dependencies in | ||
4927 | # the current directory while Tru64 will put them in the object | ||
4928 | # directory. | ||
4929 | mkdir sub | ||
4930 | |||
4931 | am_cv_CC_dependencies_compiler_type=none | ||
4932 | if test "$am_compiler_list" = ""; then | ||
4933 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4934 | fi | ||
4935 | am__universal=false | ||
4936 | case " $depcc " in #( | ||
4937 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4938 | esac | ||
4939 | |||
4940 | for depmode in $am_compiler_list; do | ||
4941 | # Setup a source with many dependencies, because some compilers | ||
4942 | # like to wrap large dependency lists on column 80 (with \), and | ||
4943 | # we should not choose a depcomp mode which is confused by this. | ||
4944 | # | ||
4945 | # We need to recreate these files for each test, as the compiler may | ||
4946 | # overwrite some of them when testing with obscure command lines. | ||
4947 | # This happens at least with the AIX C compiler. | ||
4948 | : > sub/conftest.c | ||
4949 | for i in 1 2 3 4 5 6; do | ||
4950 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4951 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4952 | # Solaris 8's {/usr,}/bin/sh. | ||
4953 | touch sub/conftst$i.h | ||
4954 | done | ||
4955 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4956 | |||
4957 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4958 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4959 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
4960 | # versions had trouble with output in subdirs | ||
4961 | am__obj=sub/conftest.${OBJEXT-o} | ||
4962 | am__minus_obj="-o $am__obj" | ||
4963 | case $depmode in | ||
4964 | gcc) | ||
4965 | # This depmode causes a compiler race in universal mode. | ||
4966 | test "$am__universal" = false || continue | ||
4967 | ;; | ||
4968 | nosideeffect) | ||
4969 | # after this tag, mechanisms are not by side-effect, so they'll | ||
4970 | # only be used when explicitly requested | ||
4971 | if test "x$enable_dependency_tracking" = xyes; then | ||
4972 | continue | ||
4973 | else | ||
4974 | break | ||
4975 | fi | ||
4976 | ;; | ||
4977 | msvisualcpp | msvcmsys) | ||
4978 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
4979 | # not run yet. These depmodes are late enough in the game, and | ||
4980 | # so weak that their functioning should not be impacted. | ||
4981 | am__obj=conftest.${OBJEXT-o} | ||
4982 | am__minus_obj= | ||
4983 | ;; | ||
4984 | none) break ;; | ||
4985 | esac | ||
4986 | if depmode=$depmode \ | ||
4987 | source=sub/conftest.c object=$am__obj \ | ||
4988 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
4989 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
4990 | >/dev/null 2>conftest.err && | ||
4991 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4992 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
4993 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
4994 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
4995 | # icc doesn't choke on unknown options, it will just issue warnings | ||
4996 | # or remarks (even with -Werror). So we grep stderr for any message | ||
4997 | # that says an option was ignored or not supported. | ||
4998 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
4999 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
5000 | # The diagnosis changed in icc 8.0: | ||
5001 | # icc: Command line remark: option '-MP' not supported | ||
5002 | if (grep 'ignoring option' conftest.err || | ||
5003 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
5004 | am_cv_CC_dependencies_compiler_type=$depmode | ||
5005 | break | ||
5006 | fi | ||
5007 | fi | ||
5008 | done | ||
5009 | |||
5010 | cd .. | ||
5011 | rm -rf conftest.dir | ||
5012 | else | ||
5013 | am_cv_CC_dependencies_compiler_type=none | ||
5014 | fi | ||
5015 | |||
5016 | fi | ||
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
5018 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
5019 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
5020 | |||
5021 | if | ||
5022 | test "x$enable_dependency_tracking" != xno \ | ||
5023 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
5024 | am__fastdepCC_TRUE= | ||
5025 | am__fastdepCC_FALSE='#' | ||
5026 | else | ||
5027 | am__fastdepCC_TRUE='#' | ||
5028 | am__fastdepCC_FALSE= | ||
5029 | fi | ||
5030 | |||
5031 | |||
5032 | |||
5033 | ac_ext=c | ||
5034 | ac_cpp='$CPP $CPPFLAGS' | ||
5035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
5039 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
5040 | # On Suns, sometimes $CPP names a directory. | ||
5041 | if test -n "$CPP" && test -d "$CPP"; then | ||
5042 | CPP= | ||
5043 | fi | ||
5044 | if test -z "$CPP"; then | ||
5045 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
5046 | $as_echo_n "(cached) " >&6 | ||
5047 | else | ||
5048 | # Double quotes because CPP needs to be expanded | ||
5049 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
5050 | do | ||
5051 | ac_preproc_ok=false | ||
5052 | for ac_c_preproc_warn_flag in '' yes | ||
5053 | do | ||
5054 | # Use a header file that comes with gcc, so configuring glibc | ||
5055 | # with a fresh cross-compiler works. | ||
5056 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5057 | # <limits.h> exists even on freestanding compilers. | ||
5058 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5059 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5061 | /* end confdefs.h. */ | ||
5062 | #ifdef __STDC__ | ||
5063 | # include <limits.h> | ||
5064 | #else | ||
5065 | # include <assert.h> | ||
5066 | #endif | ||
5067 | Syntax error | ||
5068 | _ACEOF | ||
5069 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5070 | |||
5071 | else | ||
5072 | # Broken: fails on valid input. | ||
5073 | continue | ||
5074 | fi | ||
5075 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5076 | |||
5077 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5078 | # can be detected and how. | ||
5079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5080 | /* end confdefs.h. */ | ||
5081 | #include <ac_nonexistent.h> | ||
5082 | _ACEOF | ||
5083 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5084 | # Broken: success on invalid input. | ||
5085 | continue | ||
5086 | else | ||
5087 | # Passes both tests. | ||
5088 | ac_preproc_ok=: | ||
5089 | break | ||
5090 | fi | ||
5091 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5092 | |||
5093 | done | ||
5094 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5095 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
5096 | if $ac_preproc_ok; then : | ||
5097 | break | ||
5098 | fi | ||
5099 | |||
5100 | done | ||
5101 | ac_cv_prog_CPP=$CPP | ||
5102 | |||
5103 | fi | ||
5104 | CPP=$ac_cv_prog_CPP | ||
5105 | else | ||
5106 | ac_cv_prog_CPP=$CPP | ||
5107 | fi | ||
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
5109 | $as_echo "$CPP" >&6; } | ||
5110 | ac_preproc_ok=false | ||
5111 | for ac_c_preproc_warn_flag in '' yes | ||
5112 | do | ||
5113 | # Use a header file that comes with gcc, so configuring glibc | ||
5114 | # with a fresh cross-compiler works. | ||
5115 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5116 | # <limits.h> exists even on freestanding compilers. | ||
5117 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5118 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5120 | /* end confdefs.h. */ | ||
5121 | #ifdef __STDC__ | ||
5122 | # include <limits.h> | ||
5123 | #else | ||
5124 | # include <assert.h> | ||
5125 | #endif | ||
5126 | Syntax error | ||
5127 | _ACEOF | ||
5128 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5129 | |||
5130 | else | ||
5131 | # Broken: fails on valid input. | ||
5132 | continue | ||
5133 | fi | ||
5134 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5135 | |||
5136 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5137 | # can be detected and how. | ||
5138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5139 | /* end confdefs.h. */ | ||
5140 | #include <ac_nonexistent.h> | ||
5141 | _ACEOF | ||
5142 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5143 | # Broken: success on invalid input. | ||
5144 | continue | ||
5145 | else | ||
5146 | # Passes both tests. | ||
5147 | ac_preproc_ok=: | ||
5148 | break | ||
5149 | fi | ||
5150 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5151 | |||
5152 | done | ||
5153 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5154 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
5155 | if $ac_preproc_ok; then : | ||
5156 | |||
5157 | else | ||
5158 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
5159 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
5160 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
5161 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
5162 | fi | ||
5163 | |||
5164 | ac_ext=c | ||
5165 | ac_cpp='$CPP $CPPFLAGS' | ||
5166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5169 | |||
5170 | |||
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
5172 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
5173 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
5174 | $as_echo_n "(cached) " >&6 | ||
5175 | else | ||
5176 | if test -z "$GREP"; then | ||
5177 | ac_path_GREP_found=false | ||
5178 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5180 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5181 | do | ||
5182 | IFS=$as_save_IFS | ||
5183 | test -z "$as_dir" && as_dir=. | ||
5184 | for ac_prog in grep ggrep; do | ||
5185 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5186 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5187 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
5188 | # Check for GNU ac_path_GREP and select it if it is found. | ||
5189 | # Check for GNU $ac_path_GREP | ||
5190 | case `"$ac_path_GREP" --version 2>&1` in | ||
5191 | *GNU*) | ||
5192 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
5193 | *) | ||
5194 | ac_count=0 | ||
5195 | $as_echo_n 0123456789 >"conftest.in" | ||
5196 | while : | ||
5197 | do | ||
5198 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5199 | mv "conftest.tmp" "conftest.in" | ||
5200 | cp "conftest.in" "conftest.nl" | ||
5201 | $as_echo 'GREP' >> "conftest.nl" | ||
5202 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5203 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5204 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5205 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
5206 | # Best one so far, save it but keep looking for a better one | ||
5207 | ac_cv_path_GREP="$ac_path_GREP" | ||
5208 | ac_path_GREP_max=$ac_count | ||
5209 | fi | ||
5210 | # 10*(2^10) chars as input seems more than enough | ||
5211 | test $ac_count -gt 10 && break | ||
5212 | done | ||
5213 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5214 | esac | ||
5215 | |||
5216 | $ac_path_GREP_found && break 3 | ||
5217 | done | ||
5218 | done | ||
5219 | done | ||
5220 | IFS=$as_save_IFS | ||
5221 | if test -z "$ac_cv_path_GREP"; then | ||
5222 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5223 | fi | ||
5224 | else | ||
5225 | ac_cv_path_GREP=$GREP | ||
5226 | fi | ||
5227 | |||
5228 | fi | ||
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
5230 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
5231 | GREP="$ac_cv_path_GREP" | ||
5232 | |||
5233 | |||
5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
5235 | $as_echo_n "checking for egrep... " >&6; } | ||
5236 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
5237 | $as_echo_n "(cached) " >&6 | ||
5238 | else | ||
5239 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
5240 | then ac_cv_path_EGREP="$GREP -E" | ||
5241 | else | ||
5242 | if test -z "$EGREP"; then | ||
5243 | ac_path_EGREP_found=false | ||
5244 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5246 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5247 | do | ||
5248 | IFS=$as_save_IFS | ||
5249 | test -z "$as_dir" && as_dir=. | ||
5250 | for ac_prog in egrep; do | ||
5251 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5252 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5253 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
5254 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
5255 | # Check for GNU $ac_path_EGREP | ||
5256 | case `"$ac_path_EGREP" --version 2>&1` in | ||
5257 | *GNU*) | ||
5258 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
5259 | *) | ||
5260 | ac_count=0 | ||
5261 | $as_echo_n 0123456789 >"conftest.in" | ||
5262 | while : | ||
5263 | do | ||
5264 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5265 | mv "conftest.tmp" "conftest.in" | ||
5266 | cp "conftest.in" "conftest.nl" | ||
5267 | $as_echo 'EGREP' >> "conftest.nl" | ||
5268 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5269 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5270 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5271 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
5272 | # Best one so far, save it but keep looking for a better one | ||
5273 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
5274 | ac_path_EGREP_max=$ac_count | ||
5275 | fi | ||
5276 | # 10*(2^10) chars as input seems more than enough | ||
5277 | test $ac_count -gt 10 && break | ||
5278 | done | ||
5279 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5280 | esac | ||
5281 | |||
5282 | $ac_path_EGREP_found && break 3 | ||
5283 | done | ||
5284 | done | ||
5285 | done | ||
5286 | IFS=$as_save_IFS | ||
5287 | if test -z "$ac_cv_path_EGREP"; then | ||
5288 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5289 | fi | ||
5290 | else | ||
5291 | ac_cv_path_EGREP=$EGREP | ||
5292 | fi | ||
5293 | |||
5294 | fi | ||
5295 | fi | ||
5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
5297 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
5298 | EGREP="$ac_cv_path_EGREP" | ||
5299 | |||
5300 | |||
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
5302 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
5303 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
5304 | $as_echo_n "(cached) " >&6 | ||
5305 | else | ||
5306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5307 | /* end confdefs.h. */ | ||
5308 | #include <stdlib.h> | ||
5309 | #include <stdarg.h> | ||
5310 | #include <string.h> | ||
5311 | #include <float.h> | ||
5312 | |||
5313 | int | ||
5314 | main () | ||
5315 | { | ||
5316 | |||
5317 | ; | ||
5318 | return 0; | ||
5319 | } | ||
5320 | _ACEOF | ||
5321 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5322 | ac_cv_header_stdc=yes | ||
5323 | else | ||
5324 | ac_cv_header_stdc=no | ||
5325 | fi | ||
5326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5327 | |||
5328 | if test $ac_cv_header_stdc = yes; then | ||
5329 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
5330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5331 | /* end confdefs.h. */ | ||
5332 | #include <string.h> | ||
5333 | |||
5334 | _ACEOF | ||
5335 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5336 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
5337 | |||
5338 | else | ||
5339 | ac_cv_header_stdc=no | ||
5340 | fi | ||
5341 | rm -f conftest* | ||
5342 | |||
5343 | fi | ||
5344 | |||
5345 | if test $ac_cv_header_stdc = yes; then | ||
5346 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
5347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5348 | /* end confdefs.h. */ | ||
5349 | #include <stdlib.h> | ||
5350 | |||
5351 | _ACEOF | ||
5352 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5353 | $EGREP "free" >/dev/null 2>&1; then : | ||
5354 | |||
5355 | else | ||
5356 | ac_cv_header_stdc=no | ||
5357 | fi | ||
5358 | rm -f conftest* | ||
5359 | |||
5360 | fi | ||
5361 | |||
5362 | if test $ac_cv_header_stdc = yes; then | ||
5363 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
5364 | if test "$cross_compiling" = yes; then : | ||
5365 | : | ||
5366 | else | ||
5367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5368 | /* end confdefs.h. */ | ||
5369 | #include <ctype.h> | ||
5370 | #include <stdlib.h> | ||
5371 | #if ((' ' & 0x0FF) == 0x020) | ||
5372 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
5373 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
5374 | #else | ||
5375 | # define ISLOWER(c) \ | ||
5376 | (('a' <= (c) && (c) <= 'i') \ | ||
5377 | || ('j' <= (c) && (c) <= 'r') \ | ||
5378 | || ('s' <= (c) && (c) <= 'z')) | ||
5379 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
5380 | #endif | ||
5381 | |||
5382 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
5383 | int | ||
5384 | main () | ||
5385 | { | ||
5386 | int i; | ||
5387 | for (i = 0; i < 256; i++) | ||
5388 | if (XOR (islower (i), ISLOWER (i)) | ||
5389 | || toupper (i) != TOUPPER (i)) | ||
5390 | return 2; | ||
5391 | return 0; | ||
5392 | } | ||
5393 | _ACEOF | ||
5394 | if ac_fn_c_try_run "$LINENO"; then : | ||
5395 | |||
5396 | else | ||
5397 | ac_cv_header_stdc=no | ||
5398 | fi | ||
5399 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
5400 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
5401 | fi | ||
5402 | |||
5403 | fi | ||
5404 | fi | ||
5405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
5406 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
5407 | if test $ac_cv_header_stdc = yes; then | ||
5408 | |||
5409 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
5410 | |||
5411 | fi | ||
5412 | |||
5413 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
5414 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
5415 | inttypes.h stdint.h unistd.h | ||
5416 | do : | ||
5417 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5418 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
5419 | " | ||
5420 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
5421 | cat >>confdefs.h <<_ACEOF | ||
5422 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5423 | _ACEOF | ||
5424 | |||
5425 | fi | ||
5426 | |||
5427 | done | ||
5428 | |||
5429 | |||
5430 | |||
5431 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||
5432 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | ||
5433 | MINIX=yes | ||
5434 | else | ||
5435 | MINIX= | ||
5436 | fi | ||
5437 | |||
5438 | |||
5439 | if test "$MINIX" = yes; then | ||
5440 | |||
5441 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||
5442 | |||
5443 | |||
5444 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||
5445 | |||
5446 | |||
5447 | $as_echo "#define _MINIX 1" >>confdefs.h | ||
5448 | |||
5449 | fi | ||
5450 | |||
5451 | |||
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||
5453 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||
5454 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | ||
5455 | $as_echo_n "(cached) " >&6 | ||
5456 | else | ||
5457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5458 | /* end confdefs.h. */ | ||
5459 | |||
5460 | # define __EXTENSIONS__ 1 | ||
5461 | $ac_includes_default | ||
5462 | int | ||
5463 | main () | ||
5464 | { | ||
5465 | |||
5466 | ; | ||
5467 | return 0; | ||
5468 | } | ||
5469 | _ACEOF | ||
5470 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5471 | ac_cv_safe_to_define___extensions__=yes | ||
5472 | else | ||
5473 | ac_cv_safe_to_define___extensions__=no | ||
5474 | fi | ||
5475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5476 | fi | ||
5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||
5478 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||
5479 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
5480 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||
5481 | |||
5482 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||
5483 | |||
5484 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||
5485 | |||
5486 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||
5487 | |||
5488 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||
5489 | |||
5490 | |||
5491 | |||
5492 | |||
5493 | # Make sure we can run config.sub. | ||
5494 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
5495 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
5496 | |||
5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
5498 | $as_echo_n "checking build system type... " >&6; } | ||
5499 | if test "${ac_cv_build+set}" = set; then : | ||
5500 | $as_echo_n "(cached) " >&6 | ||
5501 | else | ||
5502 | ac_build_alias=$build_alias | ||
5503 | test "x$ac_build_alias" = x && | ||
5504 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
5505 | test "x$ac_build_alias" = x && | ||
5506 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
5507 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
5508 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
5509 | |||
5510 | fi | ||
5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
5512 | $as_echo "$ac_cv_build" >&6; } | ||
5513 | case $ac_cv_build in | ||
5514 | *-*-*) ;; | ||
5515 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
5516 | esac | ||
5517 | build=$ac_cv_build | ||
5518 | ac_save_IFS=$IFS; IFS='-' | ||
5519 | set x $ac_cv_build | ||
5520 | shift | ||
5521 | build_cpu=$1 | ||
5522 | build_vendor=$2 | ||
5523 | shift; shift | ||
5524 | # Remember, the first character of IFS is used to create $*, | ||
5525 | # except with old shells: | ||
5526 | build_os=$* | ||
5527 | IFS=$ac_save_IFS | ||
5528 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
5529 | |||
5530 | |||
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
5532 | $as_echo_n "checking host system type... " >&6; } | ||
5533 | if test "${ac_cv_host+set}" = set; then : | ||
5534 | $as_echo_n "(cached) " >&6 | ||
5535 | else | ||
5536 | if test "x$host_alias" = x; then | ||
5537 | ac_cv_host=$ac_cv_build | ||
5538 | else | ||
5539 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
5540 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
5541 | fi | ||
5542 | |||
5543 | fi | ||
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
5545 | $as_echo "$ac_cv_host" >&6; } | ||
5546 | case $ac_cv_host in | ||
5547 | *-*-*) ;; | ||
5548 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
5549 | esac | ||
5550 | host=$ac_cv_host | ||
5551 | ac_save_IFS=$IFS; IFS='-' | ||
5552 | set x $ac_cv_host | ||
5553 | shift | ||
5554 | host_cpu=$1 | ||
5555 | host_vendor=$2 | ||
5556 | shift; shift | ||
5557 | # Remember, the first character of IFS is used to create $*, | ||
5558 | # except with old shells: | ||
5559 | host_os=$* | ||
5560 | IFS=$ac_save_IFS | ||
5561 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
5562 | |||
5563 | |||
5564 | enable_win32_dll=yes | ||
5565 | |||
5566 | case $host in | ||
5567 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
5568 | if test -n "$ac_tool_prefix"; then | ||
5569 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
5570 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5572 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5573 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
5574 | $as_echo_n "(cached) " >&6 | ||
5575 | else | ||
5576 | if test -n "$AS"; then | ||
5577 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
5578 | else | ||
5579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5580 | for as_dir in $PATH | ||
5581 | do | ||
5582 | IFS=$as_save_IFS | ||
5583 | test -z "$as_dir" && as_dir=. | ||
5584 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5586 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
5587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5588 | break 2 | ||
5589 | fi | ||
5590 | done | ||
5591 | done | ||
5592 | IFS=$as_save_IFS | ||
5593 | |||
5594 | fi | ||
5595 | fi | ||
5596 | AS=$ac_cv_prog_AS | ||
5597 | if test -n "$AS"; then | ||
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
5599 | $as_echo "$AS" >&6; } | ||
5600 | else | ||
5601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5602 | $as_echo "no" >&6; } | ||
5603 | fi | ||
5604 | |||
5605 | |||
5606 | fi | ||
5607 | if test -z "$ac_cv_prog_AS"; then | ||
5608 | ac_ct_AS=$AS | ||
5609 | # Extract the first word of "as", so it can be a program name with args. | ||
5610 | set dummy 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_ac_ct_AS+set}" = set; then : | ||
5614 | $as_echo_n "(cached) " >&6 | ||
5615 | else | ||
5616 | if test -n "$ac_ct_AS"; then | ||
5617 | ac_cv_prog_ac_ct_AS="$ac_ct_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_ac_ct_AS="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 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
5637 | if test -n "$ac_ct_AS"; then | ||
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
5639 | $as_echo "$ac_ct_AS" >&6; } | ||
5640 | else | ||
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5642 | $as_echo "no" >&6; } | ||
5643 | fi | ||
5644 | |||
5645 | if test "x$ac_ct_AS" = x; then | ||
5646 | AS="false" | ||
5647 | else | ||
5648 | case $cross_compiling:$ac_tool_warned in | ||
5649 | yes:) | ||
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5651 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5652 | ac_tool_warned=yes ;; | ||
5653 | esac | ||
5654 | AS=$ac_ct_AS | ||
5655 | fi | ||
5656 | else | ||
5657 | AS="$ac_cv_prog_AS" | ||
5658 | fi | ||
5659 | |||
5660 | if test -n "$ac_tool_prefix"; then | ||
5661 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
5662 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5664 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5665 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
5666 | $as_echo_n "(cached) " >&6 | ||
5667 | else | ||
5668 | if test -n "$DLLTOOL"; then | ||
5669 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
5670 | else | ||
5671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5672 | for as_dir in $PATH | ||
5673 | do | ||
5674 | IFS=$as_save_IFS | ||
5675 | test -z "$as_dir" && as_dir=. | ||
5676 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5678 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
5679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5680 | break 2 | ||
5681 | fi | ||
5682 | done | ||
5683 | done | ||
5684 | IFS=$as_save_IFS | ||
5685 | |||
5686 | fi | ||
5687 | fi | ||
5688 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
5689 | if test -n "$DLLTOOL"; then | ||
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
5691 | $as_echo "$DLLTOOL" >&6; } | ||
5692 | else | ||
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5694 | $as_echo "no" >&6; } | ||
5695 | fi | ||
5696 | |||
5697 | |||
5698 | fi | ||
5699 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
5700 | ac_ct_DLLTOOL=$DLLTOOL | ||
5701 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
5702 | set dummy 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_ac_ct_DLLTOOL+set}" = set; then : | ||
5706 | $as_echo_n "(cached) " >&6 | ||
5707 | else | ||
5708 | if test -n "$ac_ct_DLLTOOL"; then | ||
5709 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_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_ac_ct_DLLTOOL="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 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
5729 | if test -n "$ac_ct_DLLTOOL"; then | ||
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
5731 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
5732 | else | ||
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5734 | $as_echo "no" >&6; } | ||
5735 | fi | ||
5736 | |||
5737 | if test "x$ac_ct_DLLTOOL" = x; then | ||
5738 | DLLTOOL="false" | ||
5739 | else | ||
5740 | case $cross_compiling:$ac_tool_warned in | ||
5741 | yes:) | ||
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5743 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5744 | ac_tool_warned=yes ;; | ||
5745 | esac | ||
5746 | DLLTOOL=$ac_ct_DLLTOOL | ||
5747 | fi | ||
5748 | else | ||
5749 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
5750 | fi | ||
5751 | |||
5752 | if test -n "$ac_tool_prefix"; then | ||
5753 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5754 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5756 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5757 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5758 | $as_echo_n "(cached) " >&6 | ||
5759 | else | ||
5760 | if test -n "$OBJDUMP"; then | ||
5761 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5762 | else | ||
5763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5764 | for as_dir in $PATH | ||
5765 | do | ||
5766 | IFS=$as_save_IFS | ||
5767 | test -z "$as_dir" && as_dir=. | ||
5768 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5770 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5772 | break 2 | ||
5773 | fi | ||
5774 | done | ||
5775 | done | ||
5776 | IFS=$as_save_IFS | ||
5777 | |||
5778 | fi | ||
5779 | fi | ||
5780 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5781 | if test -n "$OBJDUMP"; then | ||
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5783 | $as_echo "$OBJDUMP" >&6; } | ||
5784 | else | ||
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5786 | $as_echo "no" >&6; } | ||
5787 | fi | ||
5788 | |||
5789 | |||
5790 | fi | ||
5791 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5792 | ac_ct_OBJDUMP=$OBJDUMP | ||
5793 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5794 | set dummy 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_ac_ct_OBJDUMP+set}" = set; then : | ||
5798 | $as_echo_n "(cached) " >&6 | ||
5799 | else | ||
5800 | if test -n "$ac_ct_OBJDUMP"; then | ||
5801 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="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 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5821 | if test -n "$ac_ct_OBJDUMP"; then | ||
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5823 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5824 | else | ||
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5826 | $as_echo "no" >&6; } | ||
5827 | fi | ||
5828 | |||
5829 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5830 | OBJDUMP="false" | ||
5831 | else | ||
5832 | case $cross_compiling:$ac_tool_warned in | ||
5833 | yes:) | ||
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5835 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5836 | ac_tool_warned=yes ;; | ||
5837 | esac | ||
5838 | OBJDUMP=$ac_ct_OBJDUMP | ||
5839 | fi | ||
5840 | else | ||
5841 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5842 | fi | ||
5843 | |||
5844 | ;; | ||
5845 | esac | ||
5846 | |||
5847 | test -z "$AS" && AS=as | ||
5848 | |||
5849 | |||
5850 | |||
5851 | |||
5852 | |||
5853 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
5854 | |||
5855 | |||
5856 | |||
5857 | |||
5858 | |||
5859 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5860 | |||
5861 | |||
5862 | |||
5863 | |||
5864 | |||
5865 | |||
5866 | |||
5867 | case `pwd` in | ||
5868 | *\ * | *\ *) | ||
5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
5870 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
5871 | esac | ||
5872 | |||
5873 | |||
5874 | |||
5875 | macro_version='2.2.6b' | ||
5876 | macro_revision='1.3017' | ||
5877 | |||
5878 | |||
5879 | |||
5880 | |||
5881 | |||
5882 | |||
5883 | |||
5884 | |||
5885 | |||
5886 | |||
5887 | |||
5888 | |||
5889 | |||
5890 | ltmain="$ac_aux_dir/ltmain.sh" | ||
5891 | |||
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
5893 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
5894 | if test "${ac_cv_path_SED+set}" = set; then : | ||
5895 | $as_echo_n "(cached) " >&6 | ||
5896 | else | ||
5897 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
5898 | for ac_i in 1 2 3 4 5 6 7; do | ||
5899 | ac_script="$ac_script$as_nl$ac_script" | ||
5900 | done | ||
5901 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
5902 | { ac_script=; unset ac_script;} | ||
5903 | if test -z "$SED"; then | ||
5904 | ac_path_SED_found=false | ||
5905 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5907 | for as_dir in $PATH | ||
5908 | do | ||
5909 | IFS=$as_save_IFS | ||
5910 | test -z "$as_dir" && as_dir=. | ||
5911 | for ac_prog in sed gsed; do | ||
5912 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5913 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
5914 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
5915 | # Check for GNU ac_path_SED and select it if it is found. | ||
5916 | # Check for GNU $ac_path_SED | ||
5917 | case `"$ac_path_SED" --version 2>&1` in | ||
5918 | *GNU*) | ||
5919 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
5920 | *) | ||
5921 | ac_count=0 | ||
5922 | $as_echo_n 0123456789 >"conftest.in" | ||
5923 | while : | ||
5924 | do | ||
5925 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5926 | mv "conftest.tmp" "conftest.in" | ||
5927 | cp "conftest.in" "conftest.nl" | ||
5928 | $as_echo '' >> "conftest.nl" | ||
5929 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5930 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5931 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5932 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
5933 | # Best one so far, save it but keep looking for a better one | ||
5934 | ac_cv_path_SED="$ac_path_SED" | ||
5935 | ac_path_SED_max=$ac_count | ||
5936 | fi | ||
5937 | # 10*(2^10) chars as input seems more than enough | ||
5938 | test $ac_count -gt 10 && break | ||
5939 | done | ||
5940 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5941 | esac | ||
5942 | |||
5943 | $ac_path_SED_found && break 3 | ||
5944 | done | ||
5945 | done | ||
5946 | done | ||
5947 | IFS=$as_save_IFS | ||
5948 | if test -z "$ac_cv_path_SED"; then | ||
5949 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
5950 | fi | ||
5951 | else | ||
5952 | ac_cv_path_SED=$SED | ||
5953 | fi | ||
5954 | |||
5955 | fi | ||
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
5957 | $as_echo "$ac_cv_path_SED" >&6; } | ||
5958 | SED="$ac_cv_path_SED" | ||
5959 | rm -f conftest.sed | ||
5960 | |||
5961 | test -z "$SED" && SED=sed | ||
5962 | Xsed="$SED -e 1s/^X//" | ||
5963 | |||
5964 | |||
5965 | |||
5966 | |||
5967 | |||
5968 | |||
5969 | |||
5970 | |||
5971 | |||
5972 | |||
5973 | |||
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
5975 | $as_echo_n "checking for fgrep... " >&6; } | ||
5976 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
5977 | $as_echo_n "(cached) " >&6 | ||
5978 | else | ||
5979 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
5980 | then ac_cv_path_FGREP="$GREP -F" | ||
5981 | else | ||
5982 | if test -z "$FGREP"; then | ||
5983 | ac_path_FGREP_found=false | ||
5984 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5986 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5987 | do | ||
5988 | IFS=$as_save_IFS | ||
5989 | test -z "$as_dir" && as_dir=. | ||
5990 | for ac_prog in fgrep; do | ||
5991 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5992 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5993 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
5994 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
5995 | # Check for GNU $ac_path_FGREP | ||
5996 | case `"$ac_path_FGREP" --version 2>&1` in | ||
5997 | *GNU*) | ||
5998 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
5999 | *) | ||
6000 | ac_count=0 | ||
6001 | $as_echo_n 0123456789 >"conftest.in" | ||
6002 | while : | ||
6003 | do | ||
6004 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
6005 | mv "conftest.tmp" "conftest.in" | ||
6006 | cp "conftest.in" "conftest.nl" | ||
6007 | $as_echo 'FGREP' >> "conftest.nl" | ||
6008 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
6009 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
6010 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
6011 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
6012 | # Best one so far, save it but keep looking for a better one | ||
6013 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
6014 | ac_path_FGREP_max=$ac_count | ||
6015 | fi | ||
6016 | # 10*(2^10) chars as input seems more than enough | ||
6017 | test $ac_count -gt 10 && break | ||
6018 | done | ||
6019 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
6020 | esac | ||
6021 | |||
6022 | $ac_path_FGREP_found && break 3 | ||
6023 | done | ||
6024 | done | ||
6025 | done | ||
6026 | IFS=$as_save_IFS | ||
6027 | if test -z "$ac_cv_path_FGREP"; then | ||
6028 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
6029 | fi | ||
6030 | else | ||
6031 | ac_cv_path_FGREP=$FGREP | ||
6032 | fi | ||
6033 | |||
6034 | fi | ||
6035 | fi | ||
6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
6037 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
6038 | FGREP="$ac_cv_path_FGREP" | ||
6039 | |||
6040 | |||
6041 | test -z "$GREP" && GREP=grep | ||
6042 | |||
6043 | |||
6044 | |||
6045 | |||
6046 | |||
6047 | |||
6048 | |||
6049 | |||
6050 | |||
6051 | |||
6052 | |||
6053 | |||
6054 | |||
6055 | |||
6056 | |||
6057 | |||
6058 | |||
6059 | |||
6060 | |||
6061 | # Check whether --with-gnu-ld was given. | ||
6062 | if test "${with_gnu_ld+set}" = set; then : | ||
6063 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
6064 | else | ||
6065 | with_gnu_ld=no | ||
6066 | fi | ||
6067 | |||
6068 | ac_prog=ld | ||
6069 | if test "$GCC" = yes; then | ||
6070 | # Check if gcc -print-prog-name=ld gives a path. | ||
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
6072 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
6073 | case $host in | ||
6074 | *-*-mingw*) | ||
6075 | # gcc leaves a trailing carriage return which upsets mingw | ||
6076 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
6077 | *) | ||
6078 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
6079 | esac | ||
6080 | case $ac_prog in | ||
6081 | # Accept absolute paths. | ||
6082 | [\\/]* | ?:[\\/]*) | ||
6083 | re_direlt='/[^/][^/]*/\.\./' | ||
6084 | # Canonicalize the pathname of ld | ||
6085 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
6086 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
6087 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
6088 | done | ||
6089 | test -z "$LD" && LD="$ac_prog" | ||
6090 | ;; | ||
6091 | "") | ||
6092 | # If it fails, then pretend we aren't using GCC. | ||
6093 | ac_prog=ld | ||
6094 | ;; | ||
6095 | *) | ||
6096 | # If it is relative, then search for the first ld in PATH. | ||
6097 | with_gnu_ld=unknown | ||
6098 | ;; | ||
6099 | esac | ||
6100 | elif test "$with_gnu_ld" = yes; then | ||
6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
6102 | $as_echo_n "checking for GNU ld... " >&6; } | ||
6103 | else | ||
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
6105 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
6106 | fi | ||
6107 | if test "${lt_cv_path_LD+set}" = set; then : | ||
6108 | $as_echo_n "(cached) " >&6 | ||
6109 | else | ||
6110 | if test -z "$LD"; then | ||
6111 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6112 | for ac_dir in $PATH; do | ||
6113 | IFS="$lt_save_ifs" | ||
6114 | test -z "$ac_dir" && ac_dir=. | ||
6115 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
6116 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
6117 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
6118 | # but apparently some variants of GNU ld only accept -v. | ||
6119 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
6120 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
6121 | *GNU* | *'with BFD'*) | ||
6122 | test "$with_gnu_ld" != no && break | ||
6123 | ;; | ||
6124 | *) | ||
6125 | test "$with_gnu_ld" != yes && break | ||
6126 | ;; | ||
6127 | esac | ||
6128 | fi | ||
6129 | done | ||
6130 | IFS="$lt_save_ifs" | ||
6131 | else | ||
6132 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
6133 | fi | ||
6134 | fi | ||
6135 | |||
6136 | LD="$lt_cv_path_LD" | ||
6137 | if test -n "$LD"; then | ||
6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
6139 | $as_echo "$LD" >&6; } | ||
6140 | else | ||
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6142 | $as_echo "no" >&6; } | ||
6143 | fi | ||
6144 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
6146 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
6147 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
6148 | $as_echo_n "(cached) " >&6 | ||
6149 | else | ||
6150 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
6151 | case `$LD -v 2>&1 </dev/null` in | ||
6152 | *GNU* | *'with BFD'*) | ||
6153 | lt_cv_prog_gnu_ld=yes | ||
6154 | ;; | ||
6155 | *) | ||
6156 | lt_cv_prog_gnu_ld=no | ||
6157 | ;; | ||
6158 | esac | ||
6159 | fi | ||
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
6161 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
6162 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
6163 | |||
6164 | |||
6165 | |||
6166 | |||
6167 | |||
6168 | |||
6169 | |||
6170 | |||
6171 | |||
6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
6173 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
6174 | if test "${lt_cv_path_NM+set}" = set; then : | ||
6175 | $as_echo_n "(cached) " >&6 | ||
6176 | else | ||
6177 | if test -n "$NM"; then | ||
6178 | # Let the user override the test. | ||
6179 | lt_cv_path_NM="$NM" | ||
6180 | else | ||
6181 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
6182 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
6183 | lt_nm_to_check="$lt_nm_to_check nm" | ||
6184 | fi | ||
6185 | for lt_tmp_nm in $lt_nm_to_check; do | ||
6186 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6187 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
6188 | IFS="$lt_save_ifs" | ||
6189 | test -z "$ac_dir" && ac_dir=. | ||
6190 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
6191 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
6192 | # Check to see if the nm accepts a BSD-compat flag. | ||
6193 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
6194 | # nm: unknown option "B" ignored | ||
6195 | # Tru64's nm complains that /dev/null is an invalid object file | ||
6196 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
6197 | */dev/null* | *'Invalid file or object type'*) | ||
6198 | lt_cv_path_NM="$tmp_nm -B" | ||
6199 | break | ||
6200 | ;; | ||
6201 | *) | ||
6202 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
6203 | */dev/null*) | ||
6204 | lt_cv_path_NM="$tmp_nm -p" | ||
6205 | break | ||
6206 | ;; | ||
6207 | *) | ||
6208 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
6209 | continue # so that we can try to find one that supports BSD flags | ||
6210 | ;; | ||
6211 | esac | ||
6212 | ;; | ||
6213 | esac | ||
6214 | fi | ||
6215 | done | ||
6216 | IFS="$lt_save_ifs" | ||
6217 | done | ||
6218 | : ${lt_cv_path_NM=no} | ||
6219 | fi | ||
6220 | fi | ||
6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
6222 | $as_echo "$lt_cv_path_NM" >&6; } | ||
6223 | if test "$lt_cv_path_NM" != "no"; then | ||
6224 | NM="$lt_cv_path_NM" | ||
6225 | else | ||
6226 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
6227 | if test -n "$ac_tool_prefix"; then | ||
6228 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
6229 | do | ||
6230 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
6231 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6233 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6234 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
6235 | $as_echo_n "(cached) " >&6 | ||
6236 | else | ||
6237 | if test -n "$DUMPBIN"; then | ||
6238 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
6239 | else | ||
6240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6241 | for as_dir in $PATH | ||
6242 | do | ||
6243 | IFS=$as_save_IFS | ||
6244 | test -z "$as_dir" && as_dir=. | ||
6245 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6247 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
6248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6249 | break 2 | ||
6250 | fi | ||
6251 | done | ||
6252 | done | ||
6253 | IFS=$as_save_IFS | ||
6254 | |||
6255 | fi | ||
6256 | fi | ||
6257 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
6258 | if test -n "$DUMPBIN"; then | ||
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
6260 | $as_echo "$DUMPBIN" >&6; } | ||
6261 | else | ||
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6263 | $as_echo "no" >&6; } | ||
6264 | fi | ||
6265 | |||
6266 | |||
6267 | test -n "$DUMPBIN" && break | ||
6268 | done | ||
6269 | fi | ||
6270 | if test -z "$DUMPBIN"; then | ||
6271 | ac_ct_DUMPBIN=$DUMPBIN | ||
6272 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
6273 | do | ||
6274 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
6275 | set dummy $ac_prog; ac_word=$2 | ||
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6277 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6278 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
6279 | $as_echo_n "(cached) " >&6 | ||
6280 | else | ||
6281 | if test -n "$ac_ct_DUMPBIN"; then | ||
6282 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
6283 | else | ||
6284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6285 | for as_dir in $PATH | ||
6286 | do | ||
6287 | IFS=$as_save_IFS | ||
6288 | test -z "$as_dir" && as_dir=. | ||
6289 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6291 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
6292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6293 | break 2 | ||
6294 | fi | ||
6295 | done | ||
6296 | done | ||
6297 | IFS=$as_save_IFS | ||
6298 | |||
6299 | fi | ||
6300 | fi | ||
6301 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
6302 | if test -n "$ac_ct_DUMPBIN"; then | ||
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
6304 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
6305 | else | ||
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6307 | $as_echo "no" >&6; } | ||
6308 | fi | ||
6309 | |||
6310 | |||
6311 | test -n "$ac_ct_DUMPBIN" && break | ||
6312 | done | ||
6313 | |||
6314 | if test "x$ac_ct_DUMPBIN" = x; then | ||
6315 | DUMPBIN=":" | ||
6316 | else | ||
6317 | case $cross_compiling:$ac_tool_warned in | ||
6318 | yes:) | ||
6319 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6320 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6321 | ac_tool_warned=yes ;; | ||
6322 | esac | ||
6323 | DUMPBIN=$ac_ct_DUMPBIN | ||
6324 | fi | ||
6325 | fi | ||
6326 | |||
6327 | |||
6328 | if test "$DUMPBIN" != ":"; then | ||
6329 | NM="$DUMPBIN" | ||
6330 | fi | ||
6331 | fi | ||
6332 | test -z "$NM" && NM=nm | ||
6333 | |||
6334 | |||
6335 | |||
6336 | |||
6337 | |||
6338 | |||
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
6340 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
6341 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
6342 | $as_echo_n "(cached) " >&6 | ||
6343 | else | ||
6344 | lt_cv_nm_interface="BSD nm" | ||
6345 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
6346 | (eval echo "\"\$as_me:6346: $ac_compile\"" >&5) | ||
6347 | (eval "$ac_compile" 2>conftest.err) | ||
6348 | cat conftest.err >&5 | ||
6349 | (eval echo "\"\$as_me:6349: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
6350 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
6351 | cat conftest.err >&5 | ||
6352 | (eval echo "\"\$as_me:6352: output\"" >&5) | ||
6353 | cat conftest.out >&5 | ||
6354 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
6355 | lt_cv_nm_interface="MS dumpbin" | ||
6356 | fi | ||
6357 | rm -f conftest* | ||
6358 | fi | ||
6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
6360 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
6361 | |||
6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
6363 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
6364 | LN_S=$as_ln_s | ||
6365 | if test "$LN_S" = "ln -s"; then | ||
6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6367 | $as_echo "yes" >&6; } | ||
6368 | else | ||
6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
6370 | $as_echo "no, using $LN_S" >&6; } | ||
6371 | fi | ||
6372 | |||
6373 | # find the maximum length of command line arguments | ||
6374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
6375 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
6376 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
6377 | $as_echo_n "(cached) " >&6 | ||
6378 | else | ||
6379 | i=0 | ||
6380 | teststring="ABCD" | ||
6381 | |||
6382 | case $build_os in | ||
6383 | msdosdjgpp*) | ||
6384 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
6385 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
6386 | # during glob expansion). Even if it were fixed, the result of this | ||
6387 | # check would be larger than it should be. | ||
6388 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
6389 | ;; | ||
6390 | |||
6391 | gnu*) | ||
6392 | # Under GNU Hurd, this test is not required because there is | ||
6393 | # no limit to the length of command line arguments. | ||
6394 | # Libtool will interpret -1 as no limit whatsoever | ||
6395 | lt_cv_sys_max_cmd_len=-1; | ||
6396 | ;; | ||
6397 | |||
6398 | cygwin* | mingw* | cegcc*) | ||
6399 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
6400 | # about 5 minutes as the teststring grows exponentially. | ||
6401 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
6402 | # you end up with a "frozen" computer, even though with patience | ||
6403 | # the test eventually succeeds (with a max line length of 256k). | ||
6404 | # Instead, let's just punt: use the minimum linelength reported by | ||
6405 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
6406 | lt_cv_sys_max_cmd_len=8192; | ||
6407 | ;; | ||
6408 | |||
6409 | amigaos*) | ||
6410 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
6411 | # So we just punt and use a minimum line length of 8192. | ||
6412 | lt_cv_sys_max_cmd_len=8192; | ||
6413 | ;; | ||
6414 | |||
6415 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
6416 | # This has been around since 386BSD, at least. Likely further. | ||
6417 | if test -x /sbin/sysctl; then | ||
6418 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
6419 | elif test -x /usr/sbin/sysctl; then | ||
6420 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
6421 | else | ||
6422 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
6423 | fi | ||
6424 | # And add a safety zone | ||
6425 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6426 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6427 | ;; | ||
6428 | |||
6429 | interix*) | ||
6430 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
6431 | lt_cv_sys_max_cmd_len=196608 | ||
6432 | ;; | ||
6433 | |||
6434 | osf*) | ||
6435 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
6436 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
6437 | # nice to cause kernel panics so lets avoid the loop below. | ||
6438 | # First set a reasonable default. | ||
6439 | lt_cv_sys_max_cmd_len=16384 | ||
6440 | # | ||
6441 | if test -x /sbin/sysconfig; then | ||
6442 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
6443 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
6444 | esac | ||
6445 | fi | ||
6446 | ;; | ||
6447 | sco3.2v5*) | ||
6448 | lt_cv_sys_max_cmd_len=102400 | ||
6449 | ;; | ||
6450 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
6451 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
6452 | if test -n "$kargmax"; then | ||
6453 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
6454 | else | ||
6455 | lt_cv_sys_max_cmd_len=32768 | ||
6456 | fi | ||
6457 | ;; | ||
6458 | *) | ||
6459 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
6460 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
6461 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6462 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6463 | else | ||
6464 | # Make teststring a little bigger before we do anything with it. | ||
6465 | # a 1K string should be a reasonable start. | ||
6466 | for i in 1 2 3 4 5 6 7 8 ; do | ||
6467 | teststring=$teststring$teststring | ||
6468 | done | ||
6469 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
6470 | # If test is not a shell built-in, we'll probably end up computing a | ||
6471 | # maximum length that is only half of the actual maximum length, but | ||
6472 | # we can't tell. | ||
6473 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
6474 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
6475 | test $i != 17 # 1/2 MB should be enough | ||
6476 | do | ||
6477 | i=`expr $i + 1` | ||
6478 | teststring=$teststring$teststring | ||
6479 | done | ||
6480 | # Only check the string length outside the loop. | ||
6481 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
6482 | teststring= | ||
6483 | # Add a significant safety factor because C++ compilers can tack on | ||
6484 | # massive amounts of additional arguments before passing them to the | ||
6485 | # linker. It appears as though 1/2 is a usable value. | ||
6486 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
6487 | fi | ||
6488 | ;; | ||
6489 | esac | ||
6490 | |||
6491 | fi | ||
6492 | |||
6493 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
6495 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
6496 | else | ||
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
6498 | $as_echo "none" >&6; } | ||
6499 | fi | ||
6500 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
6501 | |||
6502 | |||
6503 | |||
6504 | |||
6505 | |||
6506 | |||
6507 | : ${CP="cp -f"} | ||
6508 | : ${MV="mv -f"} | ||
6509 | : ${RM="rm -f"} | ||
6510 | |||
6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
6512 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
6513 | # Try some XSI features | ||
6514 | xsi_shell=no | ||
6515 | ( _lt_dummy="a/b/c" | ||
6516 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
6517 | = c,a/b,, \ | ||
6518 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
6519 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
6520 | && xsi_shell=yes | ||
6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
6522 | $as_echo "$xsi_shell" >&6; } | ||
6523 | |||
6524 | |||
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
6526 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
6527 | lt_shell_append=no | ||
6528 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
6529 | >/dev/null 2>&1 \ | ||
6530 | && lt_shell_append=yes | ||
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
6532 | $as_echo "$lt_shell_append" >&6; } | ||
6533 | |||
6534 | |||
6535 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
6536 | lt_unset=unset | ||
6537 | else | ||
6538 | lt_unset=false | ||
6539 | fi | ||
6540 | |||
6541 | |||
6542 | |||
6543 | |||
6544 | |||
6545 | # test EBCDIC or ASCII | ||
6546 | case `echo X|tr X '\101'` in | ||
6547 | A) # ASCII based system | ||
6548 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
6549 | lt_SP2NL='tr \040 \012' | ||
6550 | lt_NL2SP='tr \015\012 \040\040' | ||
6551 | ;; | ||
6552 | *) # EBCDIC based system | ||
6553 | lt_SP2NL='tr \100 \n' | ||
6554 | lt_NL2SP='tr \r\n \100\100' | ||
6555 | ;; | ||
6556 | esac | ||
6557 | |||
6558 | |||
6559 | |||
6560 | |||
6561 | |||
6562 | |||
6563 | |||
6564 | |||
6565 | |||
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
6567 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
6568 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
6569 | $as_echo_n "(cached) " >&6 | ||
6570 | else | ||
6571 | lt_cv_ld_reload_flag='-r' | ||
6572 | fi | ||
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
6574 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
6575 | reload_flag=$lt_cv_ld_reload_flag | ||
6576 | case $reload_flag in | ||
6577 | "" | " "*) ;; | ||
6578 | *) reload_flag=" $reload_flag" ;; | ||
6579 | esac | ||
6580 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6581 | case $host_os in | ||
6582 | darwin*) | ||
6583 | if test "$GCC" = yes; then | ||
6584 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
6585 | else | ||
6586 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6587 | fi | ||
6588 | ;; | ||
6589 | esac | ||
6590 | |||
6591 | |||
6592 | |||
6593 | |||
6594 | |||
6595 | |||
6596 | |||
6597 | |||
6598 | |||
6599 | if test -n "$ac_tool_prefix"; then | ||
6600 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
6601 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6603 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6604 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
6605 | $as_echo_n "(cached) " >&6 | ||
6606 | else | ||
6607 | if test -n "$OBJDUMP"; then | ||
6608 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
6609 | else | ||
6610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6611 | for as_dir in $PATH | ||
6612 | do | ||
6613 | IFS=$as_save_IFS | ||
6614 | test -z "$as_dir" && as_dir=. | ||
6615 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6617 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
6618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6619 | break 2 | ||
6620 | fi | ||
6621 | done | ||
6622 | done | ||
6623 | IFS=$as_save_IFS | ||
6624 | |||
6625 | fi | ||
6626 | fi | ||
6627 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
6628 | if test -n "$OBJDUMP"; then | ||
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
6630 | $as_echo "$OBJDUMP" >&6; } | ||
6631 | else | ||
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6633 | $as_echo "no" >&6; } | ||
6634 | fi | ||
6635 | |||
6636 | |||
6637 | fi | ||
6638 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
6639 | ac_ct_OBJDUMP=$OBJDUMP | ||
6640 | # Extract the first word of "objdump", so it can be a program name with args. | ||
6641 | set dummy 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_ac_ct_OBJDUMP+set}" = set; then : | ||
6645 | $as_echo_n "(cached) " >&6 | ||
6646 | else | ||
6647 | if test -n "$ac_ct_OBJDUMP"; then | ||
6648 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="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 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
6668 | if test -n "$ac_ct_OBJDUMP"; then | ||
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
6670 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
6671 | else | ||
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6673 | $as_echo "no" >&6; } | ||
6674 | fi | ||
6675 | |||
6676 | if test "x$ac_ct_OBJDUMP" = x; then | ||
6677 | OBJDUMP="false" | ||
6678 | else | ||
6679 | case $cross_compiling:$ac_tool_warned in | ||
6680 | yes:) | ||
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6682 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6683 | ac_tool_warned=yes ;; | ||
6684 | esac | ||
6685 | OBJDUMP=$ac_ct_OBJDUMP | ||
6686 | fi | ||
6687 | else | ||
6688 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
6689 | fi | ||
6690 | |||
6691 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
6692 | |||
6693 | |||
6694 | |||
6695 | |||
6696 | |||
6697 | |||
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
6699 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
6700 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
6701 | $as_echo_n "(cached) " >&6 | ||
6702 | else | ||
6703 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
6704 | lt_cv_file_magic_test_file= | ||
6705 | lt_cv_deplibs_check_method='unknown' | ||
6706 | # Need to set the preceding variable on all platforms that support | ||
6707 | # interlibrary dependencies. | ||
6708 | # 'none' -- dependencies not supported. | ||
6709 | # `unknown' -- same as none, but documents that we really don't know. | ||
6710 | # 'pass_all' -- all dependencies passed with no checks. | ||
6711 | # 'test_compile' -- check by making test program. | ||
6712 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
6713 | # which responds to the $file_magic_cmd with a given extended regex. | ||
6714 | # If you have `file' or equivalent on your system and you're not sure | ||
6715 | # whether `pass_all' will *always* work, you probably want this one. | ||
6716 | |||
6717 | case $host_os in | ||
6718 | aix[4-9]*) | ||
6719 | lt_cv_deplibs_check_method=pass_all | ||
6720 | ;; | ||
6721 | |||
6722 | beos*) | ||
6723 | lt_cv_deplibs_check_method=pass_all | ||
6724 | ;; | ||
6725 | |||
6726 | bsdi[45]*) | ||
6727 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
6728 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
6729 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
6730 | ;; | ||
6731 | |||
6732 | cygwin*) | ||
6733 | # func_win32_libid is a shell function defined in ltmain.sh | ||
6734 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6735 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6736 | ;; | ||
6737 | |||
6738 | mingw* | pw32*) | ||
6739 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
6740 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
6741 | # unless we find 'file', for example because we are cross-compiling. | ||
6742 | if ( file / ) >/dev/null 2>&1; then | ||
6743 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6744 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6745 | else | ||
6746 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
6747 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6748 | fi | ||
6749 | ;; | ||
6750 | |||
6751 | cegcc) | ||
6752 | # use the weaker test based on 'objdump'. See mingw*. | ||
6753 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
6754 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6755 | ;; | ||
6756 | |||
6757 | darwin* | rhapsody*) | ||
6758 | lt_cv_deplibs_check_method=pass_all | ||
6759 | ;; | ||
6760 | |||
6761 | freebsd* | dragonfly*) | ||
6762 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6763 | case $host_cpu in | ||
6764 | i*86 ) | ||
6765 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
6766 | # Let's accept both of them until this is cleared up. | ||
6767 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
6768 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6769 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
6770 | ;; | ||
6771 | esac | ||
6772 | else | ||
6773 | lt_cv_deplibs_check_method=pass_all | ||
6774 | fi | ||
6775 | ;; | ||
6776 | |||
6777 | gnu*) | ||
6778 | lt_cv_deplibs_check_method=pass_all | ||
6779 | ;; | ||
6780 | |||
6781 | hpux10.20* | hpux11*) | ||
6782 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6783 | case $host_cpu in | ||
6784 | ia64*) | ||
6785 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
6786 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
6787 | ;; | ||
6788 | hppa*64*) | ||
6789 | 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]' | ||
6790 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
6791 | ;; | ||
6792 | *) | ||
6793 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
6794 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
6795 | ;; | ||
6796 | esac | ||
6797 | ;; | ||
6798 | |||
6799 | interix[3-9]*) | ||
6800 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
6801 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
6802 | ;; | ||
6803 | |||
6804 | irix5* | irix6* | nonstopux*) | ||
6805 | case $LD in | ||
6806 | *-32|*"-32 ") libmagic=32-bit;; | ||
6807 | *-n32|*"-n32 ") libmagic=N32;; | ||
6808 | *-64|*"-64 ") libmagic=64-bit;; | ||
6809 | *) libmagic=never-match;; | ||
6810 | esac | ||
6811 | lt_cv_deplibs_check_method=pass_all | ||
6812 | ;; | ||
6813 | |||
6814 | # This must be Linux ELF. | ||
6815 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
6816 | lt_cv_deplibs_check_method=pass_all | ||
6817 | ;; | ||
6818 | |||
6819 | netbsd* | netbsdelf*-gnu) | ||
6820 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6821 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6822 | else | ||
6823 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
6824 | fi | ||
6825 | ;; | ||
6826 | |||
6827 | newos6*) | ||
6828 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
6829 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6830 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
6831 | ;; | ||
6832 | |||
6833 | *nto* | *qnx*) | ||
6834 | lt_cv_deplibs_check_method=pass_all | ||
6835 | ;; | ||
6836 | |||
6837 | openbsd*) | ||
6838 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
6839 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
6840 | else | ||
6841 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6842 | fi | ||
6843 | ;; | ||
6844 | |||
6845 | osf3* | osf4* | osf5*) | ||
6846 | lt_cv_deplibs_check_method=pass_all | ||
6847 | ;; | ||
6848 | |||
6849 | rdos*) | ||
6850 | lt_cv_deplibs_check_method=pass_all | ||
6851 | ;; | ||
6852 | |||
6853 | solaris*) | ||
6854 | lt_cv_deplibs_check_method=pass_all | ||
6855 | ;; | ||
6856 | |||
6857 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
6858 | lt_cv_deplibs_check_method=pass_all | ||
6859 | ;; | ||
6860 | |||
6861 | sysv4 | sysv4.3*) | ||
6862 | case $host_vendor in | ||
6863 | motorola) | ||
6864 | 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]' | ||
6865 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
6866 | ;; | ||
6867 | ncr) | ||
6868 | lt_cv_deplibs_check_method=pass_all | ||
6869 | ;; | ||
6870 | sequent) | ||
6871 | lt_cv_file_magic_cmd='/bin/file' | ||
6872 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
6873 | ;; | ||
6874 | sni) | ||
6875 | lt_cv_file_magic_cmd='/bin/file' | ||
6876 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
6877 | lt_cv_file_magic_test_file=/lib/libc.so | ||
6878 | ;; | ||
6879 | siemens) | ||
6880 | lt_cv_deplibs_check_method=pass_all | ||
6881 | ;; | ||
6882 | pc) | ||
6883 | lt_cv_deplibs_check_method=pass_all | ||
6884 | ;; | ||
6885 | esac | ||
6886 | ;; | ||
6887 | |||
6888 | tpf*) | ||
6889 | lt_cv_deplibs_check_method=pass_all | ||
6890 | ;; | ||
6891 | esac | ||
6892 | |||
6893 | fi | ||
6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
6895 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
6896 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
6897 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
6898 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6899 | |||
6900 | |||
6901 | |||
6902 | |||
6903 | |||
6904 | |||
6905 | |||
6906 | |||
6907 | |||
6908 | |||
6909 | |||
6910 | |||
6911 | if test -n "$ac_tool_prefix"; then | ||
6912 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6913 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6915 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6916 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
6917 | $as_echo_n "(cached) " >&6 | ||
6918 | else | ||
6919 | if test -n "$AR"; then | ||
6920 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
6921 | else | ||
6922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6923 | for as_dir in $PATH | ||
6924 | do | ||
6925 | IFS=$as_save_IFS | ||
6926 | test -z "$as_dir" && as_dir=. | ||
6927 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6929 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
6930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6931 | break 2 | ||
6932 | fi | ||
6933 | done | ||
6934 | done | ||
6935 | IFS=$as_save_IFS | ||
6936 | |||
6937 | fi | ||
6938 | fi | ||
6939 | AR=$ac_cv_prog_AR | ||
6940 | if test -n "$AR"; then | ||
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
6942 | $as_echo "$AR" >&6; } | ||
6943 | else | ||
6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6945 | $as_echo "no" >&6; } | ||
6946 | fi | ||
6947 | |||
6948 | |||
6949 | fi | ||
6950 | if test -z "$ac_cv_prog_AR"; then | ||
6951 | ac_ct_AR=$AR | ||
6952 | # Extract the first word of "ar", so it can be a program name with args. | ||
6953 | set dummy 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_ac_ct_AR+set}" = set; then : | ||
6957 | $as_echo_n "(cached) " >&6 | ||
6958 | else | ||
6959 | if test -n "$ac_ct_AR"; then | ||
6960 | ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
6980 | if test -n "$ac_ct_AR"; then | ||
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
6982 | $as_echo "$ac_ct_AR" >&6; } | ||
6983 | else | ||
6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6985 | $as_echo "no" >&6; } | ||
6986 | fi | ||
6987 | |||
6988 | if test "x$ac_ct_AR" = x; then | ||
6989 | AR="false" | ||
6990 | else | ||
6991 | case $cross_compiling:$ac_tool_warned in | ||
6992 | yes:) | ||
6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6994 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6995 | ac_tool_warned=yes ;; | ||
6996 | esac | ||
6997 | AR=$ac_ct_AR | ||
6998 | fi | ||
6999 | else | ||
7000 | AR="$ac_cv_prog_AR" | ||
7001 | fi | ||
7002 | |||
7003 | test -z "$AR" && AR=ar | ||
7004 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
7005 | |||
7006 | |||
7007 | |||
7008 | |||
7009 | |||
7010 | |||
7011 | |||
7012 | |||
7013 | |||
7014 | |||
7015 | |||
7016 | if test -n "$ac_tool_prefix"; then | ||
7017 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
7018 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7020 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7021 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
7022 | $as_echo_n "(cached) " >&6 | ||
7023 | else | ||
7024 | if test -n "$STRIP"; then | ||
7025 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
7026 | else | ||
7027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7028 | for as_dir in $PATH | ||
7029 | do | ||
7030 | IFS=$as_save_IFS | ||
7031 | test -z "$as_dir" && as_dir=. | ||
7032 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7034 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
7035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7036 | break 2 | ||
7037 | fi | ||
7038 | done | ||
7039 | done | ||
7040 | IFS=$as_save_IFS | ||
7041 | |||
7042 | fi | ||
7043 | fi | ||
7044 | STRIP=$ac_cv_prog_STRIP | ||
7045 | if test -n "$STRIP"; then | ||
7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
7047 | $as_echo "$STRIP" >&6; } | ||
7048 | else | ||
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7050 | $as_echo "no" >&6; } | ||
7051 | fi | ||
7052 | |||
7053 | |||
7054 | fi | ||
7055 | if test -z "$ac_cv_prog_STRIP"; then | ||
7056 | ac_ct_STRIP=$STRIP | ||
7057 | # Extract the first word of "strip", so it can be a program name with args. | ||
7058 | set dummy 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_ac_ct_STRIP+set}" = set; then : | ||
7062 | $as_echo_n "(cached) " >&6 | ||
7063 | else | ||
7064 | if test -n "$ac_ct_STRIP"; then | ||
7065 | ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
7085 | if test -n "$ac_ct_STRIP"; then | ||
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
7087 | $as_echo "$ac_ct_STRIP" >&6; } | ||
7088 | else | ||
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7090 | $as_echo "no" >&6; } | ||
7091 | fi | ||
7092 | |||
7093 | if test "x$ac_ct_STRIP" = x; then | ||
7094 | STRIP=":" | ||
7095 | else | ||
7096 | case $cross_compiling:$ac_tool_warned in | ||
7097 | yes:) | ||
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7099 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7100 | ac_tool_warned=yes ;; | ||
7101 | esac | ||
7102 | STRIP=$ac_ct_STRIP | ||
7103 | fi | ||
7104 | else | ||
7105 | STRIP="$ac_cv_prog_STRIP" | ||
7106 | fi | ||
7107 | |||
7108 | test -z "$STRIP" && STRIP=: | ||
7109 | |||
7110 | |||
7111 | |||
7112 | |||
7113 | |||
7114 | |||
7115 | if test -n "$ac_tool_prefix"; then | ||
7116 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
7117 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7119 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7120 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
7121 | $as_echo_n "(cached) " >&6 | ||
7122 | else | ||
7123 | if test -n "$RANLIB"; then | ||
7124 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
7125 | else | ||
7126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7127 | for as_dir in $PATH | ||
7128 | do | ||
7129 | IFS=$as_save_IFS | ||
7130 | test -z "$as_dir" && as_dir=. | ||
7131 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7133 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
7134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7135 | break 2 | ||
7136 | fi | ||
7137 | done | ||
7138 | done | ||
7139 | IFS=$as_save_IFS | ||
7140 | |||
7141 | fi | ||
7142 | fi | ||
7143 | RANLIB=$ac_cv_prog_RANLIB | ||
7144 | if test -n "$RANLIB"; then | ||
7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
7146 | $as_echo "$RANLIB" >&6; } | ||
7147 | else | ||
7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7149 | $as_echo "no" >&6; } | ||
7150 | fi | ||
7151 | |||
7152 | |||
7153 | fi | ||
7154 | if test -z "$ac_cv_prog_RANLIB"; then | ||
7155 | ac_ct_RANLIB=$RANLIB | ||
7156 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
7157 | set dummy 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_ac_ct_RANLIB+set}" = set; then : | ||
7161 | $as_echo_n "(cached) " >&6 | ||
7162 | else | ||
7163 | if test -n "$ac_ct_RANLIB"; then | ||
7164 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
7184 | if test -n "$ac_ct_RANLIB"; then | ||
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
7186 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
7187 | else | ||
7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7189 | $as_echo "no" >&6; } | ||
7190 | fi | ||
7191 | |||
7192 | if test "x$ac_ct_RANLIB" = x; then | ||
7193 | RANLIB=":" | ||
7194 | else | ||
7195 | case $cross_compiling:$ac_tool_warned in | ||
7196 | yes:) | ||
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7198 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7199 | ac_tool_warned=yes ;; | ||
7200 | esac | ||
7201 | RANLIB=$ac_ct_RANLIB | ||
7202 | fi | ||
7203 | else | ||
7204 | RANLIB="$ac_cv_prog_RANLIB" | ||
7205 | fi | ||
7206 | |||
7207 | test -z "$RANLIB" && RANLIB=: | ||
7208 | |||
7209 | |||
7210 | |||
7211 | |||
7212 | |||
7213 | |||
7214 | # Determine commands to create old-style static archives. | ||
7215 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
7216 | old_postinstall_cmds='chmod 644 $oldlib' | ||
7217 | old_postuninstall_cmds= | ||
7218 | |||
7219 | if test -n "$RANLIB"; then | ||
7220 | case $host_os in | ||
7221 | openbsd*) | ||
7222 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
7223 | ;; | ||
7224 | *) | ||
7225 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
7226 | ;; | ||
7227 | esac | ||
7228 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
7229 | fi | ||
7230 | |||
7231 | |||
7232 | |||
7233 | |||
7234 | |||
7235 | |||
7236 | |||
7237 | |||
7238 | |||
7239 | |||
7240 | |||
7241 | |||
7242 | |||
7243 | |||
7244 | |||
7245 | |||
7246 | |||
7247 | |||
7248 | |||
7249 | |||
7250 | |||
7251 | |||
7252 | |||
7253 | |||
7254 | |||
7255 | |||
7256 | |||
7257 | |||
7258 | |||
7259 | |||
7260 | |||
7261 | |||
7262 | |||
7263 | |||
7264 | # If no C compiler was specified, use CC. | ||
7265 | LTCC=${LTCC-"$CC"} | ||
7266 | |||
7267 | # If no C compiler flags were specified, use CFLAGS. | ||
7268 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7269 | |||
7270 | # Allow CC to be a program name with arguments. | ||
7271 | compiler=$CC | ||
7272 | |||
7273 | |||
7274 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
7275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
7276 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
7277 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
7278 | $as_echo_n "(cached) " >&6 | ||
7279 | else | ||
7280 | |||
7281 | # These are sane defaults that work on at least a few old systems. | ||
7282 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
7283 | |||
7284 | # Character class describing NM global symbol codes. | ||
7285 | symcode='[BCDEGRST]' | ||
7286 | |||
7287 | # Regexp to match symbols that can be accessed directly from C. | ||
7288 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
7289 | |||
7290 | # Define system-specific variables. | ||
7291 | case $host_os in | ||
7292 | aix*) | ||
7293 | symcode='[BCDT]' | ||
7294 | ;; | ||
7295 | cygwin* | mingw* | pw32* | cegcc*) | ||
7296 | symcode='[ABCDGISTW]' | ||
7297 | ;; | ||
7298 | hpux*) | ||
7299 | if test "$host_cpu" = ia64; then | ||
7300 | symcode='[ABCDEGRST]' | ||
7301 | fi | ||
7302 | ;; | ||
7303 | irix* | nonstopux*) | ||
7304 | symcode='[BCDEGRST]' | ||
7305 | ;; | ||
7306 | osf*) | ||
7307 | symcode='[BCDEGQRST]' | ||
7308 | ;; | ||
7309 | solaris*) | ||
7310 | symcode='[BDRT]' | ||
7311 | ;; | ||
7312 | sco3.2v5*) | ||
7313 | symcode='[DT]' | ||
7314 | ;; | ||
7315 | sysv4.2uw2*) | ||
7316 | symcode='[DT]' | ||
7317 | ;; | ||
7318 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
7319 | symcode='[ABDT]' | ||
7320 | ;; | ||
7321 | sysv4) | ||
7322 | symcode='[DFNSTU]' | ||
7323 | ;; | ||
7324 | esac | ||
7325 | |||
7326 | # If we're using GNU nm, then use its standard symbol codes. | ||
7327 | case `$NM -V 2>&1` in | ||
7328 | *GNU* | *'with BFD'*) | ||
7329 | symcode='[ABCDGIRSTW]' ;; | ||
7330 | esac | ||
7331 | |||
7332 | # Transform an extracted symbol line into a proper C declaration. | ||
7333 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
7334 | # so use this general approach. | ||
7335 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
7336 | |||
7337 | # Transform an extracted symbol line into symbol name and symbol address | ||
7338 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
7339 | 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'" | ||
7340 | |||
7341 | # Handle CRLF in mingw tool chain | ||
7342 | opt_cr= | ||
7343 | case $build_os in | ||
7344 | mingw*) | ||
7345 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
7346 | ;; | ||
7347 | esac | ||
7348 | |||
7349 | # Try without a prefix underscore, then with it. | ||
7350 | for ac_symprfx in "" "_"; do | ||
7351 | |||
7352 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
7353 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
7354 | |||
7355 | # Write the raw and C identifiers. | ||
7356 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
7357 | # Fake it for dumpbin and say T for any non-static function | ||
7358 | # and D for any global variable. | ||
7359 | # Also find C++ and __fastcall symbols from MSVC++, | ||
7360 | # which start with @ or ?. | ||
7361 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
7362 | " {last_section=section; section=\$ 3};"\ | ||
7363 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
7364 | " \$ 0!~/External *\|/{next};"\ | ||
7365 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
7366 | " {if(hide[section]) next};"\ | ||
7367 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
7368 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
7369 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
7370 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
7371 | " ' prfx=^$ac_symprfx" | ||
7372 | else | ||
7373 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
7374 | fi | ||
7375 | |||
7376 | # Check to see that the pipe works correctly. | ||
7377 | pipe_works=no | ||
7378 | |||
7379 | rm -f conftest* | ||
7380 | cat > conftest.$ac_ext <<_LT_EOF | ||
7381 | #ifdef __cplusplus | ||
7382 | extern "C" { | ||
7383 | #endif | ||
7384 | char nm_test_var; | ||
7385 | void nm_test_func(void); | ||
7386 | void nm_test_func(void){} | ||
7387 | #ifdef __cplusplus | ||
7388 | } | ||
7389 | #endif | ||
7390 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
7391 | _LT_EOF | ||
7392 | |||
7393 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7394 | (eval $ac_compile) 2>&5 | ||
7395 | ac_status=$? | ||
7396 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7397 | test $ac_status = 0; }; then | ||
7398 | # Now try to grab the symbols. | ||
7399 | nlist=conftest.nm | ||
7400 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
7401 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
7402 | ac_status=$? | ||
7403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7404 | test $ac_status = 0; } && test -s "$nlist"; then | ||
7405 | # Try sorting and uniquifying the output. | ||
7406 | if sort "$nlist" | uniq > "$nlist"T; then | ||
7407 | mv -f "$nlist"T "$nlist" | ||
7408 | else | ||
7409 | rm -f "$nlist"T | ||
7410 | fi | ||
7411 | |||
7412 | # Make sure that we snagged all the symbols we need. | ||
7413 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
7414 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
7415 | cat <<_LT_EOF > conftest.$ac_ext | ||
7416 | #ifdef __cplusplus | ||
7417 | extern "C" { | ||
7418 | #endif | ||
7419 | |||
7420 | _LT_EOF | ||
7421 | # Now generate the symbol file. | ||
7422 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
7423 | |||
7424 | cat <<_LT_EOF >> conftest.$ac_ext | ||
7425 | |||
7426 | /* The mapping between symbol names and symbols. */ | ||
7427 | const struct { | ||
7428 | const char *name; | ||
7429 | void *address; | ||
7430 | } | ||
7431 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
7432 | { | ||
7433 | { "@PROGRAM@", (void *) 0 }, | ||
7434 | _LT_EOF | ||
7435 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
7436 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
7437 | {0, (void *) 0} | ||
7438 | }; | ||
7439 | |||
7440 | /* This works around a problem in FreeBSD linker */ | ||
7441 | #ifdef FREEBSD_WORKAROUND | ||
7442 | static const void *lt_preloaded_setup() { | ||
7443 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
7444 | } | ||
7445 | #endif | ||
7446 | |||
7447 | #ifdef __cplusplus | ||
7448 | } | ||
7449 | #endif | ||
7450 | _LT_EOF | ||
7451 | # Now try linking the two files. | ||
7452 | mv conftest.$ac_objext conftstm.$ac_objext | ||
7453 | lt_save_LIBS="$LIBS" | ||
7454 | lt_save_CFLAGS="$CFLAGS" | ||
7455 | LIBS="conftstm.$ac_objext" | ||
7456 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
7457 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
7458 | (eval $ac_link) 2>&5 | ||
7459 | ac_status=$? | ||
7460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7461 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
7462 | pipe_works=yes | ||
7463 | fi | ||
7464 | LIBS="$lt_save_LIBS" | ||
7465 | CFLAGS="$lt_save_CFLAGS" | ||
7466 | else | ||
7467 | echo "cannot find nm_test_func in $nlist" >&5 | ||
7468 | fi | ||
7469 | else | ||
7470 | echo "cannot find nm_test_var in $nlist" >&5 | ||
7471 | fi | ||
7472 | else | ||
7473 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
7474 | fi | ||
7475 | else | ||
7476 | echo "$progname: failed program was:" >&5 | ||
7477 | cat conftest.$ac_ext >&5 | ||
7478 | fi | ||
7479 | rm -rf conftest* conftst* | ||
7480 | |||
7481 | # Do not use the global_symbol_pipe unless it works. | ||
7482 | if test "$pipe_works" = yes; then | ||
7483 | break | ||
7484 | else | ||
7485 | lt_cv_sys_global_symbol_pipe= | ||
7486 | fi | ||
7487 | done | ||
7488 | |||
7489 | fi | ||
7490 | |||
7491 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
7492 | lt_cv_sys_global_symbol_to_cdecl= | ||
7493 | fi | ||
7494 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
7496 | $as_echo "failed" >&6; } | ||
7497 | else | ||
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
7499 | $as_echo "ok" >&6; } | ||
7500 | fi | ||
7501 | |||
7502 | |||
7503 | |||
7504 | |||
7505 | |||
7506 | |||
7507 | |||
7508 | |||
7509 | |||
7510 | |||
7511 | |||
7512 | |||
7513 | |||
7514 | |||
7515 | |||
7516 | |||
7517 | |||
7518 | |||
7519 | |||
7520 | |||
7521 | |||
7522 | |||
7523 | # Check whether --enable-libtool-lock was given. | ||
7524 | if test "${enable_libtool_lock+set}" = set; then : | ||
7525 | enableval=$enable_libtool_lock; | ||
7526 | fi | ||
7527 | |||
7528 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
7529 | |||
7530 | # Some flags need to be propagated to the compiler or linker for good | ||
7531 | # libtool support. | ||
7532 | case $host in | ||
7533 | ia64-*-hpux*) | ||
7534 | # Find out which ABI we are using. | ||
7535 | echo 'int i;' > conftest.$ac_ext | ||
7536 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7537 | (eval $ac_compile) 2>&5 | ||
7538 | ac_status=$? | ||
7539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7540 | test $ac_status = 0; }; then | ||
7541 | case `/usr/bin/file conftest.$ac_objext` in | ||
7542 | *ELF-32*) | ||
7543 | HPUX_IA64_MODE="32" | ||
7544 | ;; | ||
7545 | *ELF-64*) | ||
7546 | HPUX_IA64_MODE="64" | ||
7547 | ;; | ||
7548 | esac | ||
7549 | fi | ||
7550 | rm -rf conftest* | ||
7551 | ;; | ||
7552 | *-*-irix6*) | ||
7553 | # Find out which ABI we are using. | ||
7554 | echo '#line 7554 "configure"' > conftest.$ac_ext | ||
7555 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7556 | (eval $ac_compile) 2>&5 | ||
7557 | ac_status=$? | ||
7558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7559 | test $ac_status = 0; }; then | ||
7560 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
7561 | case `/usr/bin/file conftest.$ac_objext` in | ||
7562 | *32-bit*) | ||
7563 | LD="${LD-ld} -melf32bsmip" | ||
7564 | ;; | ||
7565 | *N32*) | ||
7566 | LD="${LD-ld} -melf32bmipn32" | ||
7567 | ;; | ||
7568 | *64-bit*) | ||
7569 | LD="${LD-ld} -melf64bmip" | ||
7570 | ;; | ||
7571 | esac | ||
7572 | else | ||
7573 | case `/usr/bin/file conftest.$ac_objext` in | ||
7574 | *32-bit*) | ||
7575 | LD="${LD-ld} -32" | ||
7576 | ;; | ||
7577 | *N32*) | ||
7578 | LD="${LD-ld} -n32" | ||
7579 | ;; | ||
7580 | *64-bit*) | ||
7581 | LD="${LD-ld} -64" | ||
7582 | ;; | ||
7583 | esac | ||
7584 | fi | ||
7585 | fi | ||
7586 | rm -rf conftest* | ||
7587 | ;; | ||
7588 | |||
7589 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
7590 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
7591 | # Find out which ABI we are using. | ||
7592 | echo 'int i;' > conftest.$ac_ext | ||
7593 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7594 | (eval $ac_compile) 2>&5 | ||
7595 | ac_status=$? | ||
7596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7597 | test $ac_status = 0; }; then | ||
7598 | case `/usr/bin/file conftest.o` in | ||
7599 | *32-bit*) | ||
7600 | case $host in | ||
7601 | x86_64-*kfreebsd*-gnu) | ||
7602 | LD="${LD-ld} -m elf_i386_fbsd" | ||
7603 | ;; | ||
7604 | x86_64-*linux*) | ||
7605 | LD="${LD-ld} -m elf_i386" | ||
7606 | ;; | ||
7607 | ppc64-*linux*|powerpc64-*linux*) | ||
7608 | LD="${LD-ld} -m elf32ppclinux" | ||
7609 | ;; | ||
7610 | s390x-*linux*) | ||
7611 | LD="${LD-ld} -m elf_s390" | ||
7612 | ;; | ||
7613 | sparc64-*linux*) | ||
7614 | LD="${LD-ld} -m elf32_sparc" | ||
7615 | ;; | ||
7616 | esac | ||
7617 | ;; | ||
7618 | *64-bit*) | ||
7619 | case $host in | ||
7620 | x86_64-*kfreebsd*-gnu) | ||
7621 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
7622 | ;; | ||
7623 | x86_64-*linux*) | ||
7624 | LD="${LD-ld} -m elf_x86_64" | ||
7625 | ;; | ||
7626 | ppc*-*linux*|powerpc*-*linux*) | ||
7627 | LD="${LD-ld} -m elf64ppc" | ||
7628 | ;; | ||
7629 | s390*-*linux*|s390*-*tpf*) | ||
7630 | LD="${LD-ld} -m elf64_s390" | ||
7631 | ;; | ||
7632 | sparc*-*linux*) | ||
7633 | LD="${LD-ld} -m elf64_sparc" | ||
7634 | ;; | ||
7635 | esac | ||
7636 | ;; | ||
7637 | esac | ||
7638 | fi | ||
7639 | rm -rf conftest* | ||
7640 | ;; | ||
7641 | |||
7642 | *-*-sco3.2v5*) | ||
7643 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
7644 | SAVE_CFLAGS="$CFLAGS" | ||
7645 | CFLAGS="$CFLAGS -belf" | ||
7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
7647 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
7648 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
7649 | $as_echo_n "(cached) " >&6 | ||
7650 | else | ||
7651 | ac_ext=c | ||
7652 | ac_cpp='$CPP $CPPFLAGS' | ||
7653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7656 | |||
7657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7658 | /* end confdefs.h. */ | ||
7659 | |||
7660 | int | ||
7661 | main () | ||
7662 | { | ||
7663 | |||
7664 | ; | ||
7665 | return 0; | ||
7666 | } | ||
7667 | _ACEOF | ||
7668 | if ac_fn_c_try_link "$LINENO"; then : | ||
7669 | lt_cv_cc_needs_belf=yes | ||
7670 | else | ||
7671 | lt_cv_cc_needs_belf=no | ||
7672 | fi | ||
7673 | rm -f core conftest.err conftest.$ac_objext \ | ||
7674 | conftest$ac_exeext conftest.$ac_ext | ||
7675 | ac_ext=c | ||
7676 | ac_cpp='$CPP $CPPFLAGS' | ||
7677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7680 | |||
7681 | fi | ||
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
7683 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
7684 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
7685 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
7686 | CFLAGS="$SAVE_CFLAGS" | ||
7687 | fi | ||
7688 | ;; | ||
7689 | sparc*-*solaris*) | ||
7690 | # Find out which ABI we are using. | ||
7691 | echo 'int i;' > conftest.$ac_ext | ||
7692 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7693 | (eval $ac_compile) 2>&5 | ||
7694 | ac_status=$? | ||
7695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7696 | test $ac_status = 0; }; then | ||
7697 | case `/usr/bin/file conftest.o` in | ||
7698 | *64-bit*) | ||
7699 | case $lt_cv_prog_gnu_ld in | ||
7700 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
7701 | *) | ||
7702 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
7703 | LD="${LD-ld} -64" | ||
7704 | fi | ||
7705 | ;; | ||
7706 | esac | ||
7707 | ;; | ||
7708 | esac | ||
7709 | fi | ||
7710 | rm -rf conftest* | ||
7711 | ;; | ||
7712 | esac | ||
7713 | |||
7714 | need_locks="$enable_libtool_lock" | ||
7715 | |||
7716 | |||
7717 | case $host_os in | ||
7718 | rhapsody* | darwin*) | ||
7719 | if test -n "$ac_tool_prefix"; then | ||
7720 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
7721 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
7722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7723 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7724 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
7725 | $as_echo_n "(cached) " >&6 | ||
7726 | else | ||
7727 | if test -n "$DSYMUTIL"; then | ||
7728 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
7729 | else | ||
7730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7731 | for as_dir in $PATH | ||
7732 | do | ||
7733 | IFS=$as_save_IFS | ||
7734 | test -z "$as_dir" && as_dir=. | ||
7735 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7737 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
7738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7739 | break 2 | ||
7740 | fi | ||
7741 | done | ||
7742 | done | ||
7743 | IFS=$as_save_IFS | ||
7744 | |||
7745 | fi | ||
7746 | fi | ||
7747 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
7748 | if test -n "$DSYMUTIL"; then | ||
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
7750 | $as_echo "$DSYMUTIL" >&6; } | ||
7751 | else | ||
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7753 | $as_echo "no" >&6; } | ||
7754 | fi | ||
7755 | |||
7756 | |||
7757 | fi | ||
7758 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
7759 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
7760 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
7761 | set dummy 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_ac_ct_DSYMUTIL+set}" = set; then : | ||
7765 | $as_echo_n "(cached) " >&6 | ||
7766 | else | ||
7767 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7768 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_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_ac_ct_DSYMUTIL="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 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
7788 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
7790 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
7791 | else | ||
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7793 | $as_echo "no" >&6; } | ||
7794 | fi | ||
7795 | |||
7796 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
7797 | DSYMUTIL=":" | ||
7798 | else | ||
7799 | case $cross_compiling:$ac_tool_warned in | ||
7800 | yes:) | ||
7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7802 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7803 | ac_tool_warned=yes ;; | ||
7804 | esac | ||
7805 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
7806 | fi | ||
7807 | else | ||
7808 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
7809 | fi | ||
7810 | |||
7811 | if test -n "$ac_tool_prefix"; then | ||
7812 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
7813 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7815 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7816 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
7817 | $as_echo_n "(cached) " >&6 | ||
7818 | else | ||
7819 | if test -n "$NMEDIT"; then | ||
7820 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
7821 | else | ||
7822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7823 | for as_dir in $PATH | ||
7824 | do | ||
7825 | IFS=$as_save_IFS | ||
7826 | test -z "$as_dir" && as_dir=. | ||
7827 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7829 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
7830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7831 | break 2 | ||
7832 | fi | ||
7833 | done | ||
7834 | done | ||
7835 | IFS=$as_save_IFS | ||
7836 | |||
7837 | fi | ||
7838 | fi | ||
7839 | NMEDIT=$ac_cv_prog_NMEDIT | ||
7840 | if test -n "$NMEDIT"; then | ||
7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
7842 | $as_echo "$NMEDIT" >&6; } | ||
7843 | else | ||
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7845 | $as_echo "no" >&6; } | ||
7846 | fi | ||
7847 | |||
7848 | |||
7849 | fi | ||
7850 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
7851 | ac_ct_NMEDIT=$NMEDIT | ||
7852 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
7853 | set dummy 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_ac_ct_NMEDIT+set}" = set; then : | ||
7857 | $as_echo_n "(cached) " >&6 | ||
7858 | else | ||
7859 | if test -n "$ac_ct_NMEDIT"; then | ||
7860 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_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_ac_ct_NMEDIT="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 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
7880 | if test -n "$ac_ct_NMEDIT"; then | ||
7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
7882 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
7883 | else | ||
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7885 | $as_echo "no" >&6; } | ||
7886 | fi | ||
7887 | |||
7888 | if test "x$ac_ct_NMEDIT" = x; then | ||
7889 | NMEDIT=":" | ||
7890 | else | ||
7891 | case $cross_compiling:$ac_tool_warned in | ||
7892 | yes:) | ||
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7894 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7895 | ac_tool_warned=yes ;; | ||
7896 | esac | ||
7897 | NMEDIT=$ac_ct_NMEDIT | ||
7898 | fi | ||
7899 | else | ||
7900 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
7901 | fi | ||
7902 | |||
7903 | if test -n "$ac_tool_prefix"; then | ||
7904 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
7905 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7907 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7908 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
7909 | $as_echo_n "(cached) " >&6 | ||
7910 | else | ||
7911 | if test -n "$LIPO"; then | ||
7912 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
7913 | else | ||
7914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7915 | for as_dir in $PATH | ||
7916 | do | ||
7917 | IFS=$as_save_IFS | ||
7918 | test -z "$as_dir" && as_dir=. | ||
7919 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7921 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
7922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7923 | break 2 | ||
7924 | fi | ||
7925 | done | ||
7926 | done | ||
7927 | IFS=$as_save_IFS | ||
7928 | |||
7929 | fi | ||
7930 | fi | ||
7931 | LIPO=$ac_cv_prog_LIPO | ||
7932 | if test -n "$LIPO"; then | ||
7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
7934 | $as_echo "$LIPO" >&6; } | ||
7935 | else | ||
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7937 | $as_echo "no" >&6; } | ||
7938 | fi | ||
7939 | |||
7940 | |||
7941 | fi | ||
7942 | if test -z "$ac_cv_prog_LIPO"; then | ||
7943 | ac_ct_LIPO=$LIPO | ||
7944 | # Extract the first word of "lipo", so it can be a program name with args. | ||
7945 | set dummy 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_ac_ct_LIPO+set}" = set; then : | ||
7949 | $as_echo_n "(cached) " >&6 | ||
7950 | else | ||
7951 | if test -n "$ac_ct_LIPO"; then | ||
7952 | ac_cv_prog_ac_ct_LIPO="$ac_ct_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_ac_ct_LIPO="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 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
7972 | if test -n "$ac_ct_LIPO"; then | ||
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
7974 | $as_echo "$ac_ct_LIPO" >&6; } | ||
7975 | else | ||
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7977 | $as_echo "no" >&6; } | ||
7978 | fi | ||
7979 | |||
7980 | if test "x$ac_ct_LIPO" = x; then | ||
7981 | LIPO=":" | ||
7982 | else | ||
7983 | case $cross_compiling:$ac_tool_warned in | ||
7984 | yes:) | ||
7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7986 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7987 | ac_tool_warned=yes ;; | ||
7988 | esac | ||
7989 | LIPO=$ac_ct_LIPO | ||
7990 | fi | ||
7991 | else | ||
7992 | LIPO="$ac_cv_prog_LIPO" | ||
7993 | fi | ||
7994 | |||
7995 | if test -n "$ac_tool_prefix"; then | ||
7996 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
7997 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7999 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8000 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
8001 | $as_echo_n "(cached) " >&6 | ||
8002 | else | ||
8003 | if test -n "$OTOOL"; then | ||
8004 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
8005 | else | ||
8006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8007 | for as_dir in $PATH | ||
8008 | do | ||
8009 | IFS=$as_save_IFS | ||
8010 | test -z "$as_dir" && as_dir=. | ||
8011 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8013 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
8014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8015 | break 2 | ||
8016 | fi | ||
8017 | done | ||
8018 | done | ||
8019 | IFS=$as_save_IFS | ||
8020 | |||
8021 | fi | ||
8022 | fi | ||
8023 | OTOOL=$ac_cv_prog_OTOOL | ||
8024 | if test -n "$OTOOL"; then | ||
8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
8026 | $as_echo "$OTOOL" >&6; } | ||
8027 | else | ||
8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8029 | $as_echo "no" >&6; } | ||
8030 | fi | ||
8031 | |||
8032 | |||
8033 | fi | ||
8034 | if test -z "$ac_cv_prog_OTOOL"; then | ||
8035 | ac_ct_OTOOL=$OTOOL | ||
8036 | # Extract the first word of "otool", so it can be a program name with args. | ||
8037 | set dummy 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_ac_ct_OTOOL+set}" = set; then : | ||
8041 | $as_echo_n "(cached) " >&6 | ||
8042 | else | ||
8043 | if test -n "$ac_ct_OTOOL"; then | ||
8044 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_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_ac_ct_OTOOL="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 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
8064 | if test -n "$ac_ct_OTOOL"; then | ||
8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
8066 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
8067 | else | ||
8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8069 | $as_echo "no" >&6; } | ||
8070 | fi | ||
8071 | |||
8072 | if test "x$ac_ct_OTOOL" = x; then | ||
8073 | OTOOL=":" | ||
8074 | else | ||
8075 | case $cross_compiling:$ac_tool_warned in | ||
8076 | yes:) | ||
8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8078 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8079 | ac_tool_warned=yes ;; | ||
8080 | esac | ||
8081 | OTOOL=$ac_ct_OTOOL | ||
8082 | fi | ||
8083 | else | ||
8084 | OTOOL="$ac_cv_prog_OTOOL" | ||
8085 | fi | ||
8086 | |||
8087 | if test -n "$ac_tool_prefix"; then | ||
8088 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
8089 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8091 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8092 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
8093 | $as_echo_n "(cached) " >&6 | ||
8094 | else | ||
8095 | if test -n "$OTOOL64"; then | ||
8096 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
8097 | else | ||
8098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8099 | for as_dir in $PATH | ||
8100 | do | ||
8101 | IFS=$as_save_IFS | ||
8102 | test -z "$as_dir" && as_dir=. | ||
8103 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8105 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
8106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8107 | break 2 | ||
8108 | fi | ||
8109 | done | ||
8110 | done | ||
8111 | IFS=$as_save_IFS | ||
8112 | |||
8113 | fi | ||
8114 | fi | ||
8115 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
8116 | if test -n "$OTOOL64"; then | ||
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
8118 | $as_echo "$OTOOL64" >&6; } | ||
8119 | else | ||
8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8121 | $as_echo "no" >&6; } | ||
8122 | fi | ||
8123 | |||
8124 | |||
8125 | fi | ||
8126 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
8127 | ac_ct_OTOOL64=$OTOOL64 | ||
8128 | # Extract the first word of "otool64", so it can be a program name with args. | ||
8129 | set dummy 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_ac_ct_OTOOL64+set}" = set; then : | ||
8133 | $as_echo_n "(cached) " >&6 | ||
8134 | else | ||
8135 | if test -n "$ac_ct_OTOOL64"; then | ||
8136 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_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_ac_ct_OTOOL64="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 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
8156 | if test -n "$ac_ct_OTOOL64"; then | ||
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
8158 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
8159 | else | ||
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8161 | $as_echo "no" >&6; } | ||
8162 | fi | ||
8163 | |||
8164 | if test "x$ac_ct_OTOOL64" = x; then | ||
8165 | OTOOL64=":" | ||
8166 | else | ||
8167 | case $cross_compiling:$ac_tool_warned in | ||
8168 | yes:) | ||
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8170 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8171 | ac_tool_warned=yes ;; | ||
8172 | esac | ||
8173 | OTOOL64=$ac_ct_OTOOL64 | ||
8174 | fi | ||
8175 | else | ||
8176 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
8177 | fi | ||
8178 | |||
8179 | |||
8180 | |||
8181 | |||
8182 | |||
8183 | |||
8184 | |||
8185 | |||
8186 | |||
8187 | |||
8188 | |||
8189 | |||
8190 | |||
8191 | |||
8192 | |||
8193 | |||
8194 | |||
8195 | |||
8196 | |||
8197 | |||
8198 | |||
8199 | |||
8200 | |||
8201 | |||
8202 | |||
8203 | |||
8204 | |||
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
8206 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
8207 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
8208 | $as_echo_n "(cached) " >&6 | ||
8209 | else | ||
8210 | lt_cv_apple_cc_single_mod=no | ||
8211 | if test -z "${LT_MULTI_MODULE}"; then | ||
8212 | # By default we will add the -single_module flag. You can override | ||
8213 | # by either setting the environment variable LT_MULTI_MODULE | ||
8214 | # non-empty at configure time, or by adding -multi_module to the | ||
8215 | # link flags. | ||
8216 | rm -rf libconftest.dylib* | ||
8217 | echo "int foo(void){return 1;}" > conftest.c | ||
8218 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
8219 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
8220 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
8221 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
8222 | _lt_result=$? | ||
8223 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
8224 | lt_cv_apple_cc_single_mod=yes | ||
8225 | else | ||
8226 | cat conftest.err >&5 | ||
8227 | fi | ||
8228 | rm -rf libconftest.dylib* | ||
8229 | rm -f conftest.* | ||
8230 | fi | ||
8231 | fi | ||
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
8233 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
8235 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
8236 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
8237 | $as_echo_n "(cached) " >&6 | ||
8238 | else | ||
8239 | lt_cv_ld_exported_symbols_list=no | ||
8240 | save_LDFLAGS=$LDFLAGS | ||
8241 | echo "_main" > conftest.sym | ||
8242 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
8243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8244 | /* end confdefs.h. */ | ||
8245 | |||
8246 | int | ||
8247 | main () | ||
8248 | { | ||
8249 | |||
8250 | ; | ||
8251 | return 0; | ||
8252 | } | ||
8253 | _ACEOF | ||
8254 | if ac_fn_c_try_link "$LINENO"; then : | ||
8255 | lt_cv_ld_exported_symbols_list=yes | ||
8256 | else | ||
8257 | lt_cv_ld_exported_symbols_list=no | ||
8258 | fi | ||
8259 | rm -f core conftest.err conftest.$ac_objext \ | ||
8260 | conftest$ac_exeext conftest.$ac_ext | ||
8261 | LDFLAGS="$save_LDFLAGS" | ||
8262 | |||
8263 | fi | ||
8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
8265 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
8266 | case $host_os in | ||
8267 | rhapsody* | darwin1.[012]) | ||
8268 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
8269 | darwin1.*) | ||
8270 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
8271 | darwin*) # darwin 5.x on | ||
8272 | # if running on 10.5 or later, the deployment target defaults | ||
8273 | # to the OS version, if on x86, and 10.4, the deployment | ||
8274 | # target defaults to 10.4. Don't you love it? | ||
8275 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
8276 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
8277 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
8278 | 10.[012]*) | ||
8279 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
8280 | 10.*) | ||
8281 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
8282 | esac | ||
8283 | ;; | ||
8284 | esac | ||
8285 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
8286 | _lt_dar_single_mod='$single_module' | ||
8287 | fi | ||
8288 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
8289 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
8290 | else | ||
8291 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
8292 | fi | ||
8293 | if test "$DSYMUTIL" != ":"; then | ||
8294 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
8295 | else | ||
8296 | _lt_dsymutil= | ||
8297 | fi | ||
8298 | ;; | ||
8299 | esac | ||
8300 | |||
8301 | for ac_header in dlfcn.h | ||
8302 | do : | ||
8303 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
8304 | " | ||
8305 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
8306 | cat >>confdefs.h <<_ACEOF | ||
8307 | #define HAVE_DLFCN_H 1 | ||
8308 | _ACEOF | ||
8309 | |||
8310 | fi | ||
8311 | |||
8312 | done | ||
8313 | |||
8314 | |||
8315 | |||
8316 | # Set options | ||
8317 | |||
8318 | |||
8319 | |||
8320 | enable_dlopen=no | ||
8321 | |||
8322 | |||
8323 | |||
8324 | # Check whether --enable-shared was given. | ||
8325 | if test "${enable_shared+set}" = set; then : | ||
8326 | enableval=$enable_shared; p=${PACKAGE-default} | ||
8327 | case $enableval in | ||
8328 | yes) enable_shared=yes ;; | ||
8329 | no) enable_shared=no ;; | ||
8330 | *) | ||
8331 | enable_shared=no | ||
8332 | # Look at the argument we got. We use all the common list separators. | ||
8333 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8334 | for pkg in $enableval; do | ||
8335 | IFS="$lt_save_ifs" | ||
8336 | if test "X$pkg" = "X$p"; then | ||
8337 | enable_shared=yes | ||
8338 | fi | ||
8339 | done | ||
8340 | IFS="$lt_save_ifs" | ||
8341 | ;; | ||
8342 | esac | ||
8343 | else | ||
8344 | enable_shared=yes | ||
8345 | fi | ||
8346 | |||
8347 | |||
8348 | |||
8349 | |||
8350 | |||
8351 | |||
8352 | |||
8353 | |||
8354 | |||
8355 | # Check whether --enable-static was given. | ||
8356 | if test "${enable_static+set}" = set; then : | ||
8357 | enableval=$enable_static; p=${PACKAGE-default} | ||
8358 | case $enableval in | ||
8359 | yes) enable_static=yes ;; | ||
8360 | no) enable_static=no ;; | ||
8361 | *) | ||
8362 | enable_static=no | ||
8363 | # Look at the argument we got. We use all the common list separators. | ||
8364 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8365 | for pkg in $enableval; do | ||
8366 | IFS="$lt_save_ifs" | ||
8367 | if test "X$pkg" = "X$p"; then | ||
8368 | enable_static=yes | ||
8369 | fi | ||
8370 | done | ||
8371 | IFS="$lt_save_ifs" | ||
8372 | ;; | ||
8373 | esac | ||
8374 | else | ||
8375 | enable_static=yes | ||
8376 | fi | ||
8377 | |||
8378 | |||
8379 | |||
8380 | |||
8381 | |||
8382 | |||
8383 | |||
8384 | |||
8385 | |||
8386 | |||
8387 | # Check whether --with-pic was given. | ||
8388 | if test "${with_pic+set}" = set; then : | ||
8389 | withval=$with_pic; pic_mode="$withval" | ||
8390 | else | ||
8391 | pic_mode=default | ||
8392 | fi | ||
8393 | |||
8394 | |||
8395 | test -z "$pic_mode" && pic_mode=default | ||
8396 | |||
8397 | |||
8398 | |||
8399 | |||
8400 | |||
8401 | |||
8402 | |||
8403 | # Check whether --enable-fast-install was given. | ||
8404 | if test "${enable_fast_install+set}" = set; then : | ||
8405 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
8406 | case $enableval in | ||
8407 | yes) enable_fast_install=yes ;; | ||
8408 | no) enable_fast_install=no ;; | ||
8409 | *) | ||
8410 | enable_fast_install=no | ||
8411 | # Look at the argument we got. We use all the common list separators. | ||
8412 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8413 | for pkg in $enableval; do | ||
8414 | IFS="$lt_save_ifs" | ||
8415 | if test "X$pkg" = "X$p"; then | ||
8416 | enable_fast_install=yes | ||
8417 | fi | ||
8418 | done | ||
8419 | IFS="$lt_save_ifs" | ||
8420 | ;; | ||
8421 | esac | ||
8422 | else | ||
8423 | enable_fast_install=yes | ||
8424 | fi | ||
8425 | |||
8426 | |||
8427 | |||
8428 | |||
8429 | |||
8430 | |||
8431 | |||
8432 | |||
8433 | |||
8434 | |||
8435 | |||
8436 | # This can be used to rebuild libtool when needed | ||
8437 | LIBTOOL_DEPS="$ltmain" | ||
8438 | |||
8439 | # Always use our own libtool. | ||
8440 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
8441 | |||
8442 | |||
8443 | |||
8444 | |||
8445 | |||
8446 | |||
8447 | |||
8448 | |||
8449 | |||
8450 | |||
8451 | |||
8452 | |||
8453 | |||
8454 | |||
8455 | |||
8456 | |||
8457 | |||
8458 | |||
8459 | |||
8460 | |||
8461 | |||
8462 | |||
8463 | |||
8464 | |||
8465 | |||
8466 | test -z "$LN_S" && LN_S="ln -s" | ||
8467 | |||
8468 | |||
8469 | |||
8470 | |||
8471 | |||
8472 | |||
8473 | |||
8474 | |||
8475 | |||
8476 | |||
8477 | |||
8478 | |||
8479 | |||
8480 | |||
8481 | if test -n "${ZSH_VERSION+set}" ; then | ||
8482 | setopt NO_GLOB_SUBST | ||
8483 | fi | ||
8484 | |||
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
8486 | $as_echo_n "checking for objdir... " >&6; } | ||
8487 | if test "${lt_cv_objdir+set}" = set; then : | ||
8488 | $as_echo_n "(cached) " >&6 | ||
8489 | else | ||
8490 | rm -f .libs 2>/dev/null | ||
8491 | mkdir .libs 2>/dev/null | ||
8492 | if test -d .libs; then | ||
8493 | lt_cv_objdir=.libs | ||
8494 | else | ||
8495 | # MS-DOS does not allow filenames that begin with a dot. | ||
8496 | lt_cv_objdir=_libs | ||
8497 | fi | ||
8498 | rmdir .libs 2>/dev/null | ||
8499 | fi | ||
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
8501 | $as_echo "$lt_cv_objdir" >&6; } | ||
8502 | objdir=$lt_cv_objdir | ||
8503 | |||
8504 | |||
8505 | |||
8506 | |||
8507 | |||
8508 | cat >>confdefs.h <<_ACEOF | ||
8509 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
8510 | _ACEOF | ||
8511 | |||
8512 | |||
8513 | |||
8514 | |||
8515 | |||
8516 | |||
8517 | |||
8518 | |||
8519 | |||
8520 | |||
8521 | |||
8522 | |||
8523 | |||
8524 | |||
8525 | |||
8526 | |||
8527 | |||
8528 | case $host_os in | ||
8529 | aix3*) | ||
8530 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
8531 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
8532 | # vanish in a puff of smoke. | ||
8533 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
8534 | COLLECT_NAMES= | ||
8535 | export COLLECT_NAMES | ||
8536 | fi | ||
8537 | ;; | ||
8538 | esac | ||
8539 | |||
8540 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
8541 | # metacharacters that are still active within double-quoted strings. | ||
8542 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
8543 | |||
8544 | # Same as above, but do not quote variable references. | ||
8545 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
8546 | |||
8547 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
8548 | # double_quote_subst'ed string. | ||
8549 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
8550 | |||
8551 | # Sed substitution to delay expansion of an escaped single quote. | ||
8552 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
8553 | |||
8554 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
8555 | no_glob_subst='s/\*/\\\*/g' | ||
8556 | |||
8557 | # Global variables: | ||
8558 | ofile=libtool | ||
8559 | can_build_shared=yes | ||
8560 | |||
8561 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
8562 | # which needs '.lib'). | ||
8563 | libext=a | ||
8564 | |||
8565 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
8566 | |||
8567 | old_CC="$CC" | ||
8568 | old_CFLAGS="$CFLAGS" | ||
8569 | |||
8570 | # Set sane defaults for various variables | ||
8571 | test -z "$CC" && CC=cc | ||
8572 | test -z "$LTCC" && LTCC=$CC | ||
8573 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
8574 | test -z "$LD" && LD=ld | ||
8575 | test -z "$ac_objext" && ac_objext=o | ||
8576 | |||
8577 | for cc_temp in $compiler""; do | ||
8578 | case $cc_temp in | ||
8579 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
8580 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
8581 | \-*) ;; | ||
8582 | *) break;; | ||
8583 | esac | ||
8584 | done | ||
8585 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
8586 | |||
8587 | |||
8588 | # Only perform the check for file, if the check method requires it | ||
8589 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
8590 | case $deplibs_check_method in | ||
8591 | file_magic*) | ||
8592 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
8594 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
8595 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8596 | $as_echo_n "(cached) " >&6 | ||
8597 | else | ||
8598 | case $MAGIC_CMD in | ||
8599 | [\\/*] | ?:[\\/]*) | ||
8600 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8601 | ;; | ||
8602 | *) | ||
8603 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8604 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8605 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8606 | for ac_dir in $ac_dummy; do | ||
8607 | IFS="$lt_save_ifs" | ||
8608 | test -z "$ac_dir" && ac_dir=. | ||
8609 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
8610 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
8611 | if test -n "$file_magic_test_file"; then | ||
8612 | case $deplibs_check_method in | ||
8613 | "file_magic "*) | ||
8614 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8615 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8616 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8617 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8618 | : | ||
8619 | else | ||
8620 | cat <<_LT_EOF 1>&2 | ||
8621 | |||
8622 | *** Warning: the command libtool uses to detect shared libraries, | ||
8623 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8624 | *** The result is that libtool may fail to recognize shared libraries | ||
8625 | *** as such. This will affect the creation of libtool libraries that | ||
8626 | *** depend on shared libraries, but programs linked with such libtool | ||
8627 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8628 | *** may want to report the problem to your system manager and/or to | ||
8629 | *** bug-libtool@gnu.org | ||
8630 | |||
8631 | _LT_EOF | ||
8632 | fi ;; | ||
8633 | esac | ||
8634 | fi | ||
8635 | break | ||
8636 | fi | ||
8637 | done | ||
8638 | IFS="$lt_save_ifs" | ||
8639 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8640 | ;; | ||
8641 | esac | ||
8642 | fi | ||
8643 | |||
8644 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8645 | if test -n "$MAGIC_CMD"; then | ||
8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8647 | $as_echo "$MAGIC_CMD" >&6; } | ||
8648 | else | ||
8649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8650 | $as_echo "no" >&6; } | ||
8651 | fi | ||
8652 | |||
8653 | |||
8654 | |||
8655 | |||
8656 | |||
8657 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
8658 | if test -n "$ac_tool_prefix"; then | ||
8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
8660 | $as_echo_n "checking for file... " >&6; } | ||
8661 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8662 | $as_echo_n "(cached) " >&6 | ||
8663 | else | ||
8664 | case $MAGIC_CMD in | ||
8665 | [\\/*] | ?:[\\/]*) | ||
8666 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8667 | ;; | ||
8668 | *) | ||
8669 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8670 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8671 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8672 | for ac_dir in $ac_dummy; do | ||
8673 | IFS="$lt_save_ifs" | ||
8674 | test -z "$ac_dir" && ac_dir=. | ||
8675 | if test -f $ac_dir/file; then | ||
8676 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
8677 | if test -n "$file_magic_test_file"; then | ||
8678 | case $deplibs_check_method in | ||
8679 | "file_magic "*) | ||
8680 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8681 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8682 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8683 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8684 | : | ||
8685 | else | ||
8686 | cat <<_LT_EOF 1>&2 | ||
8687 | |||
8688 | *** Warning: the command libtool uses to detect shared libraries, | ||
8689 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8690 | *** The result is that libtool may fail to recognize shared libraries | ||
8691 | *** as such. This will affect the creation of libtool libraries that | ||
8692 | *** depend on shared libraries, but programs linked with such libtool | ||
8693 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8694 | *** may want to report the problem to your system manager and/or to | ||
8695 | *** bug-libtool@gnu.org | ||
8696 | |||
8697 | _LT_EOF | ||
8698 | fi ;; | ||
8699 | esac | ||
8700 | fi | ||
8701 | break | ||
8702 | fi | ||
8703 | done | ||
8704 | IFS="$lt_save_ifs" | ||
8705 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8706 | ;; | ||
8707 | esac | ||
8708 | fi | ||
8709 | |||
8710 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8711 | if test -n "$MAGIC_CMD"; then | ||
8712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8713 | $as_echo "$MAGIC_CMD" >&6; } | ||
8714 | else | ||
8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8716 | $as_echo "no" >&6; } | ||
8717 | fi | ||
8718 | |||
8719 | |||
8720 | else | ||
8721 | MAGIC_CMD=: | ||
8722 | fi | ||
8723 | fi | ||
8724 | |||
8725 | fi | ||
8726 | ;; | ||
8727 | esac | ||
8728 | |||
8729 | # Use C for the default configuration in the libtool script | ||
8730 | |||
8731 | lt_save_CC="$CC" | ||
8732 | ac_ext=c | ||
8733 | ac_cpp='$CPP $CPPFLAGS' | ||
8734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
8735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
8736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
8737 | |||
8738 | |||
8739 | # Source file extension for C test sources. | ||
8740 | ac_ext=c | ||
8741 | |||
8742 | # Object file extension for compiled C test sources. | ||
8743 | objext=o | ||
8744 | objext=$objext | ||
8745 | |||
8746 | # Code to be used in simple compile tests | ||
8747 | lt_simple_compile_test_code="int some_variable = 0;" | ||
8748 | |||
8749 | # Code to be used in simple link tests | ||
8750 | lt_simple_link_test_code='int main(){return(0);}' | ||
8751 | |||
8752 | |||
8753 | |||
8754 | |||
8755 | |||
8756 | |||
8757 | |||
8758 | # If no C compiler was specified, use CC. | ||
8759 | LTCC=${LTCC-"$CC"} | ||
8760 | |||
8761 | # If no C compiler flags were specified, use CFLAGS. | ||
8762 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
8763 | |||
8764 | # Allow CC to be a program name with arguments. | ||
8765 | compiler=$CC | ||
8766 | |||
8767 | # Save the default compiler, since it gets overwritten when the other | ||
8768 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
8769 | compiler_DEFAULT=$CC | ||
8770 | |||
8771 | # save warnings/boilerplate of simple test code | ||
8772 | ac_outfile=conftest.$ac_objext | ||
8773 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
8774 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8775 | _lt_compiler_boilerplate=`cat conftest.err` | ||
8776 | $RM conftest* | ||
8777 | |||
8778 | ac_outfile=conftest.$ac_objext | ||
8779 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
8780 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8781 | _lt_linker_boilerplate=`cat conftest.err` | ||
8782 | $RM -r conftest* | ||
8783 | |||
8784 | |||
8785 | ## CAVEAT EMPTOR: | ||
8786 | ## There is no encapsulation within the following macros, do not change | ||
8787 | ## the running order or otherwise move them around unless you know exactly | ||
8788 | ## what you are doing... | ||
8789 | if test -n "$compiler"; then | ||
8790 | |||
8791 | lt_prog_compiler_no_builtin_flag= | ||
8792 | |||
8793 | if test "$GCC" = yes; then | ||
8794 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
8795 | |||
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
8797 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
8798 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
8799 | $as_echo_n "(cached) " >&6 | ||
8800 | else | ||
8801 | lt_cv_prog_compiler_rtti_exceptions=no | ||
8802 | ac_outfile=conftest.$ac_objext | ||
8803 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8804 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
8805 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8806 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8807 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8808 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8809 | # The option is referenced via a variable to avoid confusing sed. | ||
8810 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8811 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8812 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8813 | -e 's:$: $lt_compiler_flag:'` | ||
8814 | (eval echo "\"\$as_me:8814: $lt_compile\"" >&5) | ||
8815 | (eval "$lt_compile" 2>conftest.err) | ||
8816 | ac_status=$? | ||
8817 | cat conftest.err >&5 | ||
8818 | echo "$as_me:8818: \$? = $ac_status" >&5 | ||
8819 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8820 | # The compiler can only warn and ignore the option if not recognized | ||
8821 | # So say no if there are warnings other than the usual output. | ||
8822 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8823 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8824 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8825 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
8826 | fi | ||
8827 | fi | ||
8828 | $RM conftest* | ||
8829 | |||
8830 | fi | ||
8831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
8832 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
8833 | |||
8834 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
8835 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
8836 | else | ||
8837 | : | ||
8838 | fi | ||
8839 | |||
8840 | fi | ||
8841 | |||
8842 | |||
8843 | |||
8844 | |||
8845 | |||
8846 | |||
8847 | lt_prog_compiler_wl= | ||
8848 | lt_prog_compiler_pic= | ||
8849 | lt_prog_compiler_static= | ||
8850 | |||
8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
8852 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8853 | |||
8854 | if test "$GCC" = yes; then | ||
8855 | lt_prog_compiler_wl='-Wl,' | ||
8856 | lt_prog_compiler_static='-static' | ||
8857 | |||
8858 | case $host_os in | ||
8859 | aix*) | ||
8860 | # All AIX code is PIC. | ||
8861 | if test "$host_cpu" = ia64; then | ||
8862 | # AIX 5 now supports IA64 processor | ||
8863 | lt_prog_compiler_static='-Bstatic' | ||
8864 | fi | ||
8865 | ;; | ||
8866 | |||
8867 | amigaos*) | ||
8868 | case $host_cpu in | ||
8869 | powerpc) | ||
8870 | # see comment about AmigaOS4 .so support | ||
8871 | lt_prog_compiler_pic='-fPIC' | ||
8872 | ;; | ||
8873 | m68k) | ||
8874 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
8875 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
8876 | # like `-m68040'. | ||
8877 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
8878 | ;; | ||
8879 | esac | ||
8880 | ;; | ||
8881 | |||
8882 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
8883 | # PIC is the default for these OSes. | ||
8884 | ;; | ||
8885 | |||
8886 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
8887 | # This hack is so that the source file can tell whether it is being | ||
8888 | # built for inclusion in a dll (and should export symbols for example). | ||
8889 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
8890 | # (--disable-auto-import) libraries | ||
8891 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8892 | ;; | ||
8893 | |||
8894 | darwin* | rhapsody*) | ||
8895 | # PIC is the default on this platform | ||
8896 | # Common symbols not allowed in MH_DYLIB files | ||
8897 | lt_prog_compiler_pic='-fno-common' | ||
8898 | ;; | ||
8899 | |||
8900 | hpux*) | ||
8901 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
8902 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
8903 | # sets the default TLS model and affects inlining. | ||
8904 | case $host_cpu in | ||
8905 | hppa*64*) | ||
8906 | # +Z the default | ||
8907 | ;; | ||
8908 | *) | ||
8909 | lt_prog_compiler_pic='-fPIC' | ||
8910 | ;; | ||
8911 | esac | ||
8912 | ;; | ||
8913 | |||
8914 | interix[3-9]*) | ||
8915 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
8916 | # Instead, we relocate shared libraries at runtime. | ||
8917 | ;; | ||
8918 | |||
8919 | msdosdjgpp*) | ||
8920 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
8921 | # on systems that don't support them. | ||
8922 | lt_prog_compiler_can_build_shared=no | ||
8923 | enable_shared=no | ||
8924 | ;; | ||
8925 | |||
8926 | *nto* | *qnx*) | ||
8927 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
8928 | # it will coredump. | ||
8929 | lt_prog_compiler_pic='-fPIC -shared' | ||
8930 | ;; | ||
8931 | |||
8932 | sysv4*MP*) | ||
8933 | if test -d /usr/nec; then | ||
8934 | lt_prog_compiler_pic=-Kconform_pic | ||
8935 | fi | ||
8936 | ;; | ||
8937 | |||
8938 | *) | ||
8939 | lt_prog_compiler_pic='-fPIC' | ||
8940 | ;; | ||
8941 | esac | ||
8942 | else | ||
8943 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
8944 | case $host_os in | ||
8945 | aix*) | ||
8946 | lt_prog_compiler_wl='-Wl,' | ||
8947 | if test "$host_cpu" = ia64; then | ||
8948 | # AIX 5 now supports IA64 processor | ||
8949 | lt_prog_compiler_static='-Bstatic' | ||
8950 | else | ||
8951 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
8952 | fi | ||
8953 | ;; | ||
8954 | |||
8955 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
8956 | # This hack is so that the source file can tell whether it is being | ||
8957 | # built for inclusion in a dll (and should export symbols for example). | ||
8958 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8959 | ;; | ||
8960 | |||
8961 | hpux9* | hpux10* | hpux11*) | ||
8962 | lt_prog_compiler_wl='-Wl,' | ||
8963 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
8964 | # not for PA HP-UX. | ||
8965 | case $host_cpu in | ||
8966 | hppa*64*|ia64*) | ||
8967 | # +Z the default | ||
8968 | ;; | ||
8969 | *) | ||
8970 | lt_prog_compiler_pic='+Z' | ||
8971 | ;; | ||
8972 | esac | ||
8973 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
8974 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
8975 | ;; | ||
8976 | |||
8977 | irix5* | irix6* | nonstopux*) | ||
8978 | lt_prog_compiler_wl='-Wl,' | ||
8979 | # PIC (with -KPIC) is the default. | ||
8980 | lt_prog_compiler_static='-non_shared' | ||
8981 | ;; | ||
8982 | |||
8983 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
8984 | case $cc_basename in | ||
8985 | # old Intel for x86_64 which still supported -KPIC. | ||
8986 | ecc*) | ||
8987 | lt_prog_compiler_wl='-Wl,' | ||
8988 | lt_prog_compiler_pic='-KPIC' | ||
8989 | lt_prog_compiler_static='-static' | ||
8990 | ;; | ||
8991 | # icc used to be incompatible with GCC. | ||
8992 | # ICC 10 doesn't accept -KPIC any more. | ||
8993 | icc* | ifort*) | ||
8994 | lt_prog_compiler_wl='-Wl,' | ||
8995 | lt_prog_compiler_pic='-fPIC' | ||
8996 | lt_prog_compiler_static='-static' | ||
8997 | ;; | ||
8998 | # Lahey Fortran 8.1. | ||
8999 | lf95*) | ||
9000 | lt_prog_compiler_wl='-Wl,' | ||
9001 | lt_prog_compiler_pic='--shared' | ||
9002 | lt_prog_compiler_static='--static' | ||
9003 | ;; | ||
9004 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
9005 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
9006 | # which looks to be a dead project) | ||
9007 | lt_prog_compiler_wl='-Wl,' | ||
9008 | lt_prog_compiler_pic='-fpic' | ||
9009 | lt_prog_compiler_static='-Bstatic' | ||
9010 | ;; | ||
9011 | ccc*) | ||
9012 | lt_prog_compiler_wl='-Wl,' | ||
9013 | # All Alpha code is PIC. | ||
9014 | lt_prog_compiler_static='-non_shared' | ||
9015 | ;; | ||
9016 | xl*) | ||
9017 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
9018 | lt_prog_compiler_wl='-Wl,' | ||
9019 | lt_prog_compiler_pic='-qpic' | ||
9020 | lt_prog_compiler_static='-qstaticlink' | ||
9021 | ;; | ||
9022 | *) | ||
9023 | case `$CC -V 2>&1 | sed 5q` in | ||
9024 | *Sun\ C*) | ||
9025 | # Sun C 5.9 | ||
9026 | lt_prog_compiler_pic='-KPIC' | ||
9027 | lt_prog_compiler_static='-Bstatic' | ||
9028 | lt_prog_compiler_wl='-Wl,' | ||
9029 | ;; | ||
9030 | *Sun\ F*) | ||
9031 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
9032 | lt_prog_compiler_pic='-KPIC' | ||
9033 | lt_prog_compiler_static='-Bstatic' | ||
9034 | lt_prog_compiler_wl='' | ||
9035 | ;; | ||
9036 | esac | ||
9037 | ;; | ||
9038 | esac | ||
9039 | ;; | ||
9040 | |||
9041 | newsos6) | ||
9042 | lt_prog_compiler_pic='-KPIC' | ||
9043 | lt_prog_compiler_static='-Bstatic' | ||
9044 | ;; | ||
9045 | |||
9046 | *nto* | *qnx*) | ||
9047 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
9048 | # it will coredump. | ||
9049 | lt_prog_compiler_pic='-fPIC -shared' | ||
9050 | ;; | ||
9051 | |||
9052 | osf3* | osf4* | osf5*) | ||
9053 | lt_prog_compiler_wl='-Wl,' | ||
9054 | # All OSF/1 code is PIC. | ||
9055 | lt_prog_compiler_static='-non_shared' | ||
9056 | ;; | ||
9057 | |||
9058 | rdos*) | ||
9059 | lt_prog_compiler_static='-non_shared' | ||
9060 | ;; | ||
9061 | |||
9062 | solaris*) | ||
9063 | lt_prog_compiler_pic='-KPIC' | ||
9064 | lt_prog_compiler_static='-Bstatic' | ||
9065 | case $cc_basename in | ||
9066 | f77* | f90* | f95*) | ||
9067 | lt_prog_compiler_wl='-Qoption ld ';; | ||
9068 | *) | ||
9069 | lt_prog_compiler_wl='-Wl,';; | ||
9070 | esac | ||
9071 | ;; | ||
9072 | |||
9073 | sunos4*) | ||
9074 | lt_prog_compiler_wl='-Qoption ld ' | ||
9075 | lt_prog_compiler_pic='-PIC' | ||
9076 | lt_prog_compiler_static='-Bstatic' | ||
9077 | ;; | ||
9078 | |||
9079 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
9080 | lt_prog_compiler_wl='-Wl,' | ||
9081 | lt_prog_compiler_pic='-KPIC' | ||
9082 | lt_prog_compiler_static='-Bstatic' | ||
9083 | ;; | ||
9084 | |||
9085 | sysv4*MP*) | ||
9086 | if test -d /usr/nec ;then | ||
9087 | lt_prog_compiler_pic='-Kconform_pic' | ||
9088 | lt_prog_compiler_static='-Bstatic' | ||
9089 | fi | ||
9090 | ;; | ||
9091 | |||
9092 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
9093 | lt_prog_compiler_wl='-Wl,' | ||
9094 | lt_prog_compiler_pic='-KPIC' | ||
9095 | lt_prog_compiler_static='-Bstatic' | ||
9096 | ;; | ||
9097 | |||
9098 | unicos*) | ||
9099 | lt_prog_compiler_wl='-Wl,' | ||
9100 | lt_prog_compiler_can_build_shared=no | ||
9101 | ;; | ||
9102 | |||
9103 | uts4*) | ||
9104 | lt_prog_compiler_pic='-pic' | ||
9105 | lt_prog_compiler_static='-Bstatic' | ||
9106 | ;; | ||
9107 | |||
9108 | *) | ||
9109 | lt_prog_compiler_can_build_shared=no | ||
9110 | ;; | ||
9111 | esac | ||
9112 | fi | ||
9113 | |||
9114 | case $host_os in | ||
9115 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
9116 | *djgpp*) | ||
9117 | lt_prog_compiler_pic= | ||
9118 | ;; | ||
9119 | *) | ||
9120 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
9121 | ;; | ||
9122 | esac | ||
9123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
9124 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
9125 | |||
9126 | |||
9127 | |||
9128 | |||
9129 | |||
9130 | |||
9131 | # | ||
9132 | # Check to make sure the PIC flag actually works. | ||
9133 | # | ||
9134 | if test -n "$lt_prog_compiler_pic"; then | ||
9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
9136 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
9137 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
9138 | $as_echo_n "(cached) " >&6 | ||
9139 | else | ||
9140 | lt_cv_prog_compiler_pic_works=no | ||
9141 | ac_outfile=conftest.$ac_objext | ||
9142 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9143 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
9144 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9145 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9146 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9147 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9148 | # The option is referenced via a variable to avoid confusing sed. | ||
9149 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9150 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9151 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9152 | -e 's:$: $lt_compiler_flag:'` | ||
9153 | (eval echo "\"\$as_me:9153: $lt_compile\"" >&5) | ||
9154 | (eval "$lt_compile" 2>conftest.err) | ||
9155 | ac_status=$? | ||
9156 | cat conftest.err >&5 | ||
9157 | echo "$as_me:9157: \$? = $ac_status" >&5 | ||
9158 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
9159 | # The compiler can only warn and ignore the option if not recognized | ||
9160 | # So say no if there are warnings other than the usual output. | ||
9161 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
9162 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
9163 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
9164 | lt_cv_prog_compiler_pic_works=yes | ||
9165 | fi | ||
9166 | fi | ||
9167 | $RM conftest* | ||
9168 | |||
9169 | fi | ||
9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
9171 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
9172 | |||
9173 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
9174 | case $lt_prog_compiler_pic in | ||
9175 | "" | " "*) ;; | ||
9176 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
9177 | esac | ||
9178 | else | ||
9179 | lt_prog_compiler_pic= | ||
9180 | lt_prog_compiler_can_build_shared=no | ||
9181 | fi | ||
9182 | |||
9183 | fi | ||
9184 | |||
9185 | |||
9186 | |||
9187 | |||
9188 | |||
9189 | |||
9190 | # | ||
9191 | # Check to make sure the static flag actually works. | ||
9192 | # | ||
9193 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
9195 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
9196 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
9197 | $as_echo_n "(cached) " >&6 | ||
9198 | else | ||
9199 | lt_cv_prog_compiler_static_works=no | ||
9200 | save_LDFLAGS="$LDFLAGS" | ||
9201 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
9202 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
9203 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
9204 | # The linker can only warn and ignore the option if not recognized | ||
9205 | # So say no if there are warnings | ||
9206 | if test -s conftest.err; then | ||
9207 | # Append any errors to the config.log. | ||
9208 | cat conftest.err 1>&5 | ||
9209 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
9210 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
9211 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
9212 | lt_cv_prog_compiler_static_works=yes | ||
9213 | fi | ||
9214 | else | ||
9215 | lt_cv_prog_compiler_static_works=yes | ||
9216 | fi | ||
9217 | fi | ||
9218 | $RM -r conftest* | ||
9219 | LDFLAGS="$save_LDFLAGS" | ||
9220 | |||
9221 | fi | ||
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
9223 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
9224 | |||
9225 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
9226 | : | ||
9227 | else | ||
9228 | lt_prog_compiler_static= | ||
9229 | fi | ||
9230 | |||
9231 | |||
9232 | |||
9233 | |||
9234 | |||
9235 | |||
9236 | |||
9237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
9238 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
9239 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
9240 | $as_echo_n "(cached) " >&6 | ||
9241 | else | ||
9242 | lt_cv_prog_compiler_c_o=no | ||
9243 | $RM -r conftest 2>/dev/null | ||
9244 | mkdir conftest | ||
9245 | cd conftest | ||
9246 | mkdir out | ||
9247 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9248 | |||
9249 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
9250 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9251 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9252 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9253 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9254 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9255 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9256 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9257 | -e 's:$: $lt_compiler_flag:'` | ||
9258 | (eval echo "\"\$as_me:9258: $lt_compile\"" >&5) | ||
9259 | (eval "$lt_compile" 2>out/conftest.err) | ||
9260 | ac_status=$? | ||
9261 | cat out/conftest.err >&5 | ||
9262 | echo "$as_me:9262: \$? = $ac_status" >&5 | ||
9263 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
9264 | then | ||
9265 | # The compiler can only warn and ignore the option if not recognized | ||
9266 | # So say no if there are warnings | ||
9267 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
9268 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
9269 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
9270 | lt_cv_prog_compiler_c_o=yes | ||
9271 | fi | ||
9272 | fi | ||
9273 | chmod u+w . 2>&5 | ||
9274 | $RM conftest* | ||
9275 | # SGI C++ compiler will create directory out/ii_files/ for | ||
9276 | # template instantiation | ||
9277 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
9278 | $RM out/* && rmdir out | ||
9279 | cd .. | ||
9280 | $RM -r conftest | ||
9281 | $RM conftest* | ||
9282 | |||
9283 | fi | ||
9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
9285 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
9286 | |||
9287 | |||
9288 | |||
9289 | |||
9290 | |||
9291 | |||
9292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
9293 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
9294 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
9295 | $as_echo_n "(cached) " >&6 | ||
9296 | else | ||
9297 | lt_cv_prog_compiler_c_o=no | ||
9298 | $RM -r conftest 2>/dev/null | ||
9299 | mkdir conftest | ||
9300 | cd conftest | ||
9301 | mkdir out | ||
9302 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9303 | |||
9304 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
9305 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9306 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9307 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9308 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9309 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9310 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9311 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9312 | -e 's:$: $lt_compiler_flag:'` | ||
9313 | (eval echo "\"\$as_me:9313: $lt_compile\"" >&5) | ||
9314 | (eval "$lt_compile" 2>out/conftest.err) | ||
9315 | ac_status=$? | ||
9316 | cat out/conftest.err >&5 | ||
9317 | echo "$as_me:9317: \$? = $ac_status" >&5 | ||
9318 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
9319 | then | ||
9320 | # The compiler can only warn and ignore the option if not recognized | ||
9321 | # So say no if there are warnings | ||
9322 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
9323 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
9324 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
9325 | lt_cv_prog_compiler_c_o=yes | ||
9326 | fi | ||
9327 | fi | ||
9328 | chmod u+w . 2>&5 | ||
9329 | $RM conftest* | ||
9330 | # SGI C++ compiler will create directory out/ii_files/ for | ||
9331 | # template instantiation | ||
9332 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
9333 | $RM out/* && rmdir out | ||
9334 | cd .. | ||
9335 | $RM -r conftest | ||
9336 | $RM conftest* | ||
9337 | |||
9338 | fi | ||
9339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
9340 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
9341 | |||
9342 | |||
9343 | |||
9344 | |||
9345 | hard_links="nottested" | ||
9346 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
9347 | # do not overwrite the value of need_locks provided by the user | ||
9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
9349 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
9350 | hard_links=yes | ||
9351 | $RM conftest* | ||
9352 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
9353 | touch conftest.a | ||
9354 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
9355 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
9357 | $as_echo "$hard_links" >&6; } | ||
9358 | if test "$hard_links" = no; then | ||
9359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
9360 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
9361 | need_locks=warn | ||
9362 | fi | ||
9363 | else | ||
9364 | need_locks=no | ||
9365 | fi | ||
9366 | |||
9367 | |||
9368 | |||
9369 | |||
9370 | |||
9371 | |||
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
9373 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
9374 | |||
9375 | runpath_var= | ||
9376 | allow_undefined_flag= | ||
9377 | always_export_symbols=no | ||
9378 | archive_cmds= | ||
9379 | archive_expsym_cmds= | ||
9380 | compiler_needs_object=no | ||
9381 | enable_shared_with_static_runtimes=no | ||
9382 | export_dynamic_flag_spec= | ||
9383 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
9384 | hardcode_automatic=no | ||
9385 | hardcode_direct=no | ||
9386 | hardcode_direct_absolute=no | ||
9387 | hardcode_libdir_flag_spec= | ||
9388 | hardcode_libdir_flag_spec_ld= | ||
9389 | hardcode_libdir_separator= | ||
9390 | hardcode_minus_L=no | ||
9391 | hardcode_shlibpath_var=unsupported | ||
9392 | inherit_rpath=no | ||
9393 | link_all_deplibs=unknown | ||
9394 | module_cmds= | ||
9395 | module_expsym_cmds= | ||
9396 | old_archive_from_new_cmds= | ||
9397 | old_archive_from_expsyms_cmds= | ||
9398 | thread_safe_flag_spec= | ||
9399 | whole_archive_flag_spec= | ||
9400 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
9401 | # included in the symbol list | ||
9402 | include_expsyms= | ||
9403 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
9404 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
9405 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
9406 | # as well as any symbol that contains `d'. | ||
9407 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
9408 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
9409 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
9410 | # the symbol is explicitly referenced. Since portable code cannot | ||
9411 | # rely on this symbol name, it's probably fine to never include it in | ||
9412 | # preloaded symbol tables. | ||
9413 | # Exclude shared library initialization/finalization symbols. | ||
9414 | extract_expsyms_cmds= | ||
9415 | |||
9416 | case $host_os in | ||
9417 | cygwin* | mingw* | pw32* | cegcc*) | ||
9418 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
9419 | # When not using gcc, we currently assume that we are using | ||
9420 | # Microsoft Visual C++. | ||
9421 | if test "$GCC" != yes; then | ||
9422 | with_gnu_ld=no | ||
9423 | fi | ||
9424 | ;; | ||
9425 | interix*) | ||
9426 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
9427 | with_gnu_ld=yes | ||
9428 | ;; | ||
9429 | openbsd*) | ||
9430 | with_gnu_ld=no | ||
9431 | ;; | ||
9432 | linux* | k*bsd*-gnu) | ||
9433 | link_all_deplibs=no | ||
9434 | ;; | ||
9435 | esac | ||
9436 | |||
9437 | ld_shlibs=yes | ||
9438 | if test "$with_gnu_ld" = yes; then | ||
9439 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
9440 | wlarc='${wl}' | ||
9441 | |||
9442 | # Set some defaults for GNU ld with shared library support. These | ||
9443 | # are reset later if shared libraries are not supported. Putting them | ||
9444 | # here allows them to be overridden if necessary. | ||
9445 | runpath_var=LD_RUN_PATH | ||
9446 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9447 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
9448 | # ancient GNU ld didn't support --whole-archive et. al. | ||
9449 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
9450 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
9451 | else | ||
9452 | whole_archive_flag_spec= | ||
9453 | fi | ||
9454 | supports_anon_versioning=no | ||
9455 | case `$LD -v 2>&1` in | ||
9456 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
9457 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
9458 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
9459 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
9460 | *\ 2.11.*) ;; # other 2.11 versions | ||
9461 | *) supports_anon_versioning=yes ;; | ||
9462 | esac | ||
9463 | |||
9464 | # See if GNU ld supports shared libraries. | ||
9465 | case $host_os in | ||
9466 | aix[3-9]*) | ||
9467 | # On AIX/PPC, the GNU linker is very broken | ||
9468 | if test "$host_cpu" != ia64; then | ||
9469 | ld_shlibs=no | ||
9470 | cat <<_LT_EOF 1>&2 | ||
9471 | |||
9472 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
9473 | *** to be unable to reliably create shared libraries on AIX. | ||
9474 | *** Therefore, libtool is disabling shared libraries support. If you | ||
9475 | *** really care for shared libraries, you may want to modify your PATH | ||
9476 | *** so that a non-GNU linker is found, and then restart. | ||
9477 | |||
9478 | _LT_EOF | ||
9479 | fi | ||
9480 | ;; | ||
9481 | |||
9482 | amigaos*) | ||
9483 | case $host_cpu in | ||
9484 | powerpc) | ||
9485 | # see comment about AmigaOS4 .so support | ||
9486 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9487 | archive_expsym_cmds='' | ||
9488 | ;; | ||
9489 | m68k) | ||
9490 | 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)' | ||
9491 | hardcode_libdir_flag_spec='-L$libdir' | ||
9492 | hardcode_minus_L=yes | ||
9493 | ;; | ||
9494 | esac | ||
9495 | ;; | ||
9496 | |||
9497 | beos*) | ||
9498 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9499 | allow_undefined_flag=unsupported | ||
9500 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
9501 | # support --undefined. This deserves some investigation. FIXME | ||
9502 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9503 | else | ||
9504 | ld_shlibs=no | ||
9505 | fi | ||
9506 | ;; | ||
9507 | |||
9508 | cygwin* | mingw* | pw32* | cegcc*) | ||
9509 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
9510 | # as there is no search path for DLLs. | ||
9511 | hardcode_libdir_flag_spec='-L$libdir' | ||
9512 | allow_undefined_flag=unsupported | ||
9513 | always_export_symbols=no | ||
9514 | enable_shared_with_static_runtimes=yes | ||
9515 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
9516 | |||
9517 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
9518 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9519 | # If the export-symbols file already is a .def file (1st line | ||
9520 | # is EXPORTS), use it as is; otherwise, prepend... | ||
9521 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9522 | cp $export_symbols $output_objdir/$soname.def; | ||
9523 | else | ||
9524 | echo EXPORTS > $output_objdir/$soname.def; | ||
9525 | cat $export_symbols >> $output_objdir/$soname.def; | ||
9526 | fi~ | ||
9527 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9528 | else | ||
9529 | ld_shlibs=no | ||
9530 | fi | ||
9531 | ;; | ||
9532 | |||
9533 | interix[3-9]*) | ||
9534 | hardcode_direct=no | ||
9535 | hardcode_shlibpath_var=no | ||
9536 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9537 | export_dynamic_flag_spec='${wl}-E' | ||
9538 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
9539 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
9540 | # default) and relocated if they conflict, which is a slow very memory | ||
9541 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
9542 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
9543 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
9544 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
9545 | 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' | ||
9546 | ;; | ||
9547 | |||
9548 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9549 | tmp_diet=no | ||
9550 | if test "$host_os" = linux-dietlibc; then | ||
9551 | case $cc_basename in | ||
9552 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
9553 | esac | ||
9554 | fi | ||
9555 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
9556 | && test "$tmp_diet" = no | ||
9557 | then | ||
9558 | tmp_addflag= | ||
9559 | tmp_sharedflag='-shared' | ||
9560 | case $cc_basename,$host_cpu in | ||
9561 | pgcc*) # Portland Group C compiler | ||
9562 | 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' | ||
9563 | tmp_addflag=' $pic_flag' | ||
9564 | ;; | ||
9565 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
9566 | 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' | ||
9567 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
9568 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
9569 | tmp_addflag=' -i_dynamic' ;; | ||
9570 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
9571 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
9572 | ifc* | ifort*) # Intel Fortran compiler | ||
9573 | tmp_addflag=' -nofor_main' ;; | ||
9574 | lf95*) # Lahey Fortran 8.1 | ||
9575 | whole_archive_flag_spec= | ||
9576 | tmp_sharedflag='--shared' ;; | ||
9577 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
9578 | tmp_sharedflag='-qmkshrobj' | ||
9579 | tmp_addflag= ;; | ||
9580 | esac | ||
9581 | case `$CC -V 2>&1 | sed 5q` in | ||
9582 | *Sun\ C*) # Sun C 5.9 | ||
9583 | 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' | ||
9584 | compiler_needs_object=yes | ||
9585 | tmp_sharedflag='-G' ;; | ||
9586 | *Sun\ F*) # Sun Fortran 8.3 | ||
9587 | tmp_sharedflag='-G' ;; | ||
9588 | esac | ||
9589 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9590 | |||
9591 | if test "x$supports_anon_versioning" = xyes; then | ||
9592 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9593 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9594 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9595 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
9596 | fi | ||
9597 | |||
9598 | case $cc_basename in | ||
9599 | xlf*) | ||
9600 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
9601 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
9602 | hardcode_libdir_flag_spec= | ||
9603 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
9604 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
9605 | if test "x$supports_anon_versioning" = xyes; then | ||
9606 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9607 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9608 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9609 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
9610 | fi | ||
9611 | ;; | ||
9612 | esac | ||
9613 | else | ||
9614 | ld_shlibs=no | ||
9615 | fi | ||
9616 | ;; | ||
9617 | |||
9618 | netbsd* | netbsdelf*-gnu) | ||
9619 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9620 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
9621 | wlarc= | ||
9622 | else | ||
9623 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9624 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9625 | fi | ||
9626 | ;; | ||
9627 | |||
9628 | solaris*) | ||
9629 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
9630 | ld_shlibs=no | ||
9631 | cat <<_LT_EOF 1>&2 | ||
9632 | |||
9633 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
9634 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
9635 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9636 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
9637 | *** your PATH or compiler configuration so that the native linker is | ||
9638 | *** used, and then restart. | ||
9639 | |||
9640 | _LT_EOF | ||
9641 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9642 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9643 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9644 | else | ||
9645 | ld_shlibs=no | ||
9646 | fi | ||
9647 | ;; | ||
9648 | |||
9649 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
9650 | case `$LD -v 2>&1` in | ||
9651 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
9652 | ld_shlibs=no | ||
9653 | cat <<_LT_EOF 1>&2 | ||
9654 | |||
9655 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
9656 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
9657 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9658 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
9659 | *** your PATH or compiler configuration so that the native linker is | ||
9660 | *** used, and then restart. | ||
9661 | |||
9662 | _LT_EOF | ||
9663 | ;; | ||
9664 | *) | ||
9665 | # For security reasons, it is highly recommended that you always | ||
9666 | # use absolute paths for naming shared libraries, and exclude the | ||
9667 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
9668 | # requires that you compile everything twice, which is a pain. | ||
9669 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9670 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9671 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9672 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9673 | else | ||
9674 | ld_shlibs=no | ||
9675 | fi | ||
9676 | ;; | ||
9677 | esac | ||
9678 | ;; | ||
9679 | |||
9680 | sunos4*) | ||
9681 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9682 | wlarc= | ||
9683 | hardcode_direct=yes | ||
9684 | hardcode_shlibpath_var=no | ||
9685 | ;; | ||
9686 | |||
9687 | *) | ||
9688 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9689 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9690 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9691 | else | ||
9692 | ld_shlibs=no | ||
9693 | fi | ||
9694 | ;; | ||
9695 | esac | ||
9696 | |||
9697 | if test "$ld_shlibs" = no; then | ||
9698 | runpath_var= | ||
9699 | hardcode_libdir_flag_spec= | ||
9700 | export_dynamic_flag_spec= | ||
9701 | whole_archive_flag_spec= | ||
9702 | fi | ||
9703 | else | ||
9704 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
9705 | case $host_os in | ||
9706 | aix3*) | ||
9707 | allow_undefined_flag=unsupported | ||
9708 | always_export_symbols=yes | ||
9709 | 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' | ||
9710 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
9711 | # are no directories specified by -L. | ||
9712 | hardcode_minus_L=yes | ||
9713 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
9714 | # Neither direct hardcoding nor static linking is supported with a | ||
9715 | # broken collect2. | ||
9716 | hardcode_direct=unsupported | ||
9717 | fi | ||
9718 | ;; | ||
9719 | |||
9720 | aix[4-9]*) | ||
9721 | if test "$host_cpu" = ia64; then | ||
9722 | # On IA64, the linker does run time linking by default, so we don't | ||
9723 | # have to do anything special. | ||
9724 | aix_use_runtimelinking=no | ||
9725 | exp_sym_flag='-Bexport' | ||
9726 | no_entry_flag="" | ||
9727 | else | ||
9728 | # If we're using GNU nm, then we don't want the "-C" option. | ||
9729 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
9730 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
9731 | 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' | ||
9732 | else | ||
9733 | 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' | ||
9734 | fi | ||
9735 | aix_use_runtimelinking=no | ||
9736 | |||
9737 | # Test if we are trying to use run time linking or normal | ||
9738 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
9739 | # need to do runtime linking. | ||
9740 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
9741 | for ld_flag in $LDFLAGS; do | ||
9742 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
9743 | aix_use_runtimelinking=yes | ||
9744 | break | ||
9745 | fi | ||
9746 | done | ||
9747 | ;; | ||
9748 | esac | ||
9749 | |||
9750 | exp_sym_flag='-bexport' | ||
9751 | no_entry_flag='-bnoentry' | ||
9752 | fi | ||
9753 | |||
9754 | # When large executables or shared objects are built, AIX ld can | ||
9755 | # have problems creating the table of contents. If linking a library | ||
9756 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
9757 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
9758 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
9759 | |||
9760 | archive_cmds='' | ||
9761 | hardcode_direct=yes | ||
9762 | hardcode_direct_absolute=yes | ||
9763 | hardcode_libdir_separator=':' | ||
9764 | link_all_deplibs=yes | ||
9765 | file_list_spec='${wl}-f,' | ||
9766 | |||
9767 | if test "$GCC" = yes; then | ||
9768 | case $host_os in aix4.[012]|aix4.[012].*) | ||
9769 | # We only want to do this on AIX 4.2 and lower, the check | ||
9770 | # below for broken collect2 doesn't work under 4.3+ | ||
9771 | collect2name=`${CC} -print-prog-name=collect2` | ||
9772 | if test -f "$collect2name" && | ||
9773 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
9774 | then | ||
9775 | # We have reworked collect2 | ||
9776 | : | ||
9777 | else | ||
9778 | # We have old collect2 | ||
9779 | hardcode_direct=unsupported | ||
9780 | # It fails to find uninstalled libraries when the uninstalled | ||
9781 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
9782 | # to unsupported forces relinking | ||
9783 | hardcode_minus_L=yes | ||
9784 | hardcode_libdir_flag_spec='-L$libdir' | ||
9785 | hardcode_libdir_separator= | ||
9786 | fi | ||
9787 | ;; | ||
9788 | esac | ||
9789 | shared_flag='-shared' | ||
9790 | if test "$aix_use_runtimelinking" = yes; then | ||
9791 | shared_flag="$shared_flag "'${wl}-G' | ||
9792 | fi | ||
9793 | link_all_deplibs=no | ||
9794 | else | ||
9795 | # not using gcc | ||
9796 | if test "$host_cpu" = ia64; then | ||
9797 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
9798 | # chokes on -Wl,-G. The following line is correct: | ||
9799 | shared_flag='-G' | ||
9800 | else | ||
9801 | if test "$aix_use_runtimelinking" = yes; then | ||
9802 | shared_flag='${wl}-G' | ||
9803 | else | ||
9804 | shared_flag='${wl}-bM:SRE' | ||
9805 | fi | ||
9806 | fi | ||
9807 | fi | ||
9808 | |||
9809 | export_dynamic_flag_spec='${wl}-bexpall' | ||
9810 | # It seems that -bexpall does not export symbols beginning with | ||
9811 | # underscore (_), so it is better to generate a list of symbols to export. | ||
9812 | always_export_symbols=yes | ||
9813 | if test "$aix_use_runtimelinking" = yes; then | ||
9814 | # Warning - without using the other runtime loading flags (-brtl), | ||
9815 | # -berok will link without error, but may produce a broken library. | ||
9816 | allow_undefined_flag='-berok' | ||
9817 | # Determine the default libpath from the value encoded in an | ||
9818 | # empty executable. | ||
9819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9820 | /* end confdefs.h. */ | ||
9821 | |||
9822 | int | ||
9823 | main () | ||
9824 | { | ||
9825 | |||
9826 | ; | ||
9827 | return 0; | ||
9828 | } | ||
9829 | _ACEOF | ||
9830 | if ac_fn_c_try_link "$LINENO"; then : | ||
9831 | |||
9832 | lt_aix_libpath_sed=' | ||
9833 | /Import File Strings/,/^$/ { | ||
9834 | /^0/ { | ||
9835 | s/^0 *\(.*\)$/\1/ | ||
9836 | p | ||
9837 | } | ||
9838 | }' | ||
9839 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9840 | # Check for a 64-bit object if we didn't find anything. | ||
9841 | if test -z "$aix_libpath"; then | ||
9842 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9843 | fi | ||
9844 | fi | ||
9845 | rm -f core conftest.err conftest.$ac_objext \ | ||
9846 | conftest$ac_exeext conftest.$ac_ext | ||
9847 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9848 | |||
9849 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9850 | 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" | ||
9851 | else | ||
9852 | if test "$host_cpu" = ia64; then | ||
9853 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
9854 | allow_undefined_flag="-z nodefs" | ||
9855 | 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" | ||
9856 | else | ||
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 | # Warning - without using the other run time loading flags, | ||
9891 | # -berok will link without error, but may produce a broken library. | ||
9892 | no_undefined_flag=' ${wl}-bernotok' | ||
9893 | allow_undefined_flag=' ${wl}-berok' | ||
9894 | # Exported symbols can be pulled into shared objects from archives | ||
9895 | whole_archive_flag_spec='$convenience' | ||
9896 | archive_cmds_need_lc=yes | ||
9897 | # This is similar to how AIX traditionally builds its shared libraries. | ||
9898 | 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' | ||
9899 | fi | ||
9900 | fi | ||
9901 | ;; | ||
9902 | |||
9903 | amigaos*) | ||
9904 | case $host_cpu in | ||
9905 | powerpc) | ||
9906 | # see comment about AmigaOS4 .so support | ||
9907 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9908 | archive_expsym_cmds='' | ||
9909 | ;; | ||
9910 | m68k) | ||
9911 | 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)' | ||
9912 | hardcode_libdir_flag_spec='-L$libdir' | ||
9913 | hardcode_minus_L=yes | ||
9914 | ;; | ||
9915 | esac | ||
9916 | ;; | ||
9917 | |||
9918 | bsdi[45]*) | ||
9919 | export_dynamic_flag_spec=-rdynamic | ||
9920 | ;; | ||
9921 | |||
9922 | cygwin* | mingw* | pw32* | cegcc*) | ||
9923 | # When not using gcc, we currently assume that we are using | ||
9924 | # Microsoft Visual C++. | ||
9925 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
9926 | # no search path for DLLs. | ||
9927 | hardcode_libdir_flag_spec=' ' | ||
9928 | allow_undefined_flag=unsupported | ||
9929 | # Tell ltmain to make .lib files, not .a files. | ||
9930 | libext=lib | ||
9931 | # Tell ltmain to make .dll files, not .so files. | ||
9932 | shrext_cmds=".dll" | ||
9933 | # FIXME: Setting linknames here is a bad hack. | ||
9934 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
9935 | # The linker will automatically build a .lib file if we build a DLL. | ||
9936 | old_archive_from_new_cmds='true' | ||
9937 | # FIXME: Should let the user specify the lib program. | ||
9938 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
9939 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
9940 | enable_shared_with_static_runtimes=yes | ||
9941 | ;; | ||
9942 | |||
9943 | darwin* | rhapsody*) | ||
9944 | |||
9945 | |||
9946 | archive_cmds_need_lc=no | ||
9947 | hardcode_direct=no | ||
9948 | hardcode_automatic=yes | ||
9949 | hardcode_shlibpath_var=unsupported | ||
9950 | whole_archive_flag_spec='' | ||
9951 | link_all_deplibs=yes | ||
9952 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
9953 | case $cc_basename in | ||
9954 | ifort*) _lt_dar_can_shared=yes ;; | ||
9955 | *) _lt_dar_can_shared=$GCC ;; | ||
9956 | esac | ||
9957 | if test "$_lt_dar_can_shared" = "yes"; then | ||
9958 | output_verbose_link_cmd=echo | ||
9959 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
9960 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
9961 | 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}" | ||
9962 | 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}" | ||
9963 | |||
9964 | else | ||
9965 | ld_shlibs=no | ||
9966 | fi | ||
9967 | |||
9968 | ;; | ||
9969 | |||
9970 | dgux*) | ||
9971 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9972 | hardcode_libdir_flag_spec='-L$libdir' | ||
9973 | hardcode_shlibpath_var=no | ||
9974 | ;; | ||
9975 | |||
9976 | freebsd1*) | ||
9977 | ld_shlibs=no | ||
9978 | ;; | ||
9979 | |||
9980 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
9981 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
9982 | # does not break anything, and helps significantly (at the cost of a little | ||
9983 | # extra space). | ||
9984 | freebsd2.2*) | ||
9985 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
9986 | hardcode_libdir_flag_spec='-R$libdir' | ||
9987 | hardcode_direct=yes | ||
9988 | hardcode_shlibpath_var=no | ||
9989 | ;; | ||
9990 | |||
9991 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
9992 | freebsd2*) | ||
9993 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9994 | hardcode_direct=yes | ||
9995 | hardcode_minus_L=yes | ||
9996 | hardcode_shlibpath_var=no | ||
9997 | ;; | ||
9998 | |||
9999 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
10000 | freebsd* | dragonfly*) | ||
10001 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
10002 | hardcode_libdir_flag_spec='-R$libdir' | ||
10003 | hardcode_direct=yes | ||
10004 | hardcode_shlibpath_var=no | ||
10005 | ;; | ||
10006 | |||
10007 | hpux9*) | ||
10008 | if test "$GCC" = yes; then | ||
10009 | 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' | ||
10010 | else | ||
10011 | 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' | ||
10012 | fi | ||
10013 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10014 | hardcode_libdir_separator=: | ||
10015 | hardcode_direct=yes | ||
10016 | |||
10017 | # hardcode_minus_L: Not really in the search PATH, | ||
10018 | # but as the default location of the library. | ||
10019 | hardcode_minus_L=yes | ||
10020 | export_dynamic_flag_spec='${wl}-E' | ||
10021 | ;; | ||
10022 | |||
10023 | hpux10*) | ||
10024 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
10025 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10026 | else | ||
10027 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
10028 | fi | ||
10029 | if test "$with_gnu_ld" = no; then | ||
10030 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10031 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
10032 | hardcode_libdir_separator=: | ||
10033 | hardcode_direct=yes | ||
10034 | hardcode_direct_absolute=yes | ||
10035 | export_dynamic_flag_spec='${wl}-E' | ||
10036 | # hardcode_minus_L: Not really in the search PATH, | ||
10037 | # but as the default location of the library. | ||
10038 | hardcode_minus_L=yes | ||
10039 | fi | ||
10040 | ;; | ||
10041 | |||
10042 | hpux11*) | ||
10043 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
10044 | case $host_cpu in | ||
10045 | hppa*64*) | ||
10046 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10047 | ;; | ||
10048 | ia64*) | ||
10049 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
10050 | ;; | ||
10051 | *) | ||
10052 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10053 | ;; | ||
10054 | esac | ||
10055 | else | ||
10056 | case $host_cpu in | ||
10057 | hppa*64*) | ||
10058 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10059 | ;; | ||
10060 | ia64*) | ||
10061 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
10062 | ;; | ||
10063 | *) | ||
10064 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10065 | ;; | ||
10066 | esac | ||
10067 | fi | ||
10068 | if test "$with_gnu_ld" = no; then | ||
10069 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10070 | hardcode_libdir_separator=: | ||
10071 | |||
10072 | case $host_cpu in | ||
10073 | hppa*64*|ia64*) | ||
10074 | hardcode_direct=no | ||
10075 | hardcode_shlibpath_var=no | ||
10076 | ;; | ||
10077 | *) | ||
10078 | hardcode_direct=yes | ||
10079 | hardcode_direct_absolute=yes | ||
10080 | export_dynamic_flag_spec='${wl}-E' | ||
10081 | |||
10082 | # hardcode_minus_L: Not really in the search PATH, | ||
10083 | # but as the default location of the library. | ||
10084 | hardcode_minus_L=yes | ||
10085 | ;; | ||
10086 | esac | ||
10087 | fi | ||
10088 | ;; | ||
10089 | |||
10090 | irix5* | irix6* | nonstopux*) | ||
10091 | if test "$GCC" = yes; then | ||
10092 | 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' | ||
10093 | # Try to use the -exported_symbol ld option, if it does not | ||
10094 | # work, assume that -exports_file does not work either and | ||
10095 | # implicitly export all symbols. | ||
10096 | save_LDFLAGS="$LDFLAGS" | ||
10097 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
10098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10099 | /* end confdefs.h. */ | ||
10100 | int foo(void) {} | ||
10101 | _ACEOF | ||
10102 | if ac_fn_c_try_link "$LINENO"; then : | ||
10103 | 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' | ||
10104 | |||
10105 | fi | ||
10106 | rm -f core conftest.err conftest.$ac_objext \ | ||
10107 | conftest$ac_exeext conftest.$ac_ext | ||
10108 | LDFLAGS="$save_LDFLAGS" | ||
10109 | else | ||
10110 | 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' | ||
10111 | 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' | ||
10112 | fi | ||
10113 | archive_cmds_need_lc='no' | ||
10114 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10115 | hardcode_libdir_separator=: | ||
10116 | inherit_rpath=yes | ||
10117 | link_all_deplibs=yes | ||
10118 | ;; | ||
10119 | |||
10120 | netbsd* | netbsdelf*-gnu) | ||
10121 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
10122 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
10123 | else | ||
10124 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
10125 | fi | ||
10126 | hardcode_libdir_flag_spec='-R$libdir' | ||
10127 | hardcode_direct=yes | ||
10128 | hardcode_shlibpath_var=no | ||
10129 | ;; | ||
10130 | |||
10131 | newsos6) | ||
10132 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10133 | hardcode_direct=yes | ||
10134 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10135 | hardcode_libdir_separator=: | ||
10136 | hardcode_shlibpath_var=no | ||
10137 | ;; | ||
10138 | |||
10139 | *nto* | *qnx*) | ||
10140 | ;; | ||
10141 | |||
10142 | openbsd*) | ||
10143 | if test -f /usr/libexec/ld.so; then | ||
10144 | hardcode_direct=yes | ||
10145 | hardcode_shlibpath_var=no | ||
10146 | hardcode_direct_absolute=yes | ||
10147 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
10148 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
10149 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
10150 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
10151 | export_dynamic_flag_spec='${wl}-E' | ||
10152 | else | ||
10153 | case $host_os in | ||
10154 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
10155 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
10156 | hardcode_libdir_flag_spec='-R$libdir' | ||
10157 | ;; | ||
10158 | *) | ||
10159 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
10160 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
10161 | ;; | ||
10162 | esac | ||
10163 | fi | ||
10164 | else | ||
10165 | ld_shlibs=no | ||
10166 | fi | ||
10167 | ;; | ||
10168 | |||
10169 | os2*) | ||
10170 | hardcode_libdir_flag_spec='-L$libdir' | ||
10171 | hardcode_minus_L=yes | ||
10172 | allow_undefined_flag=unsupported | ||
10173 | 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' | ||
10174 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
10175 | ;; | ||
10176 | |||
10177 | osf3*) | ||
10178 | if test "$GCC" = yes; then | ||
10179 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
10180 | 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' | ||
10181 | else | ||
10182 | allow_undefined_flag=' -expect_unresolved \*' | ||
10183 | 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' | ||
10184 | fi | ||
10185 | archive_cmds_need_lc='no' | ||
10186 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10187 | hardcode_libdir_separator=: | ||
10188 | ;; | ||
10189 | |||
10190 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
10191 | if test "$GCC" = yes; then | ||
10192 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
10193 | 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' | ||
10194 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10195 | else | ||
10196 | allow_undefined_flag=' -expect_unresolved \*' | ||
10197 | 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' | ||
10198 | 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~ | ||
10199 | $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' | ||
10200 | |||
10201 | # Both c and cxx compiler support -rpath directly | ||
10202 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
10203 | fi | ||
10204 | archive_cmds_need_lc='no' | ||
10205 | hardcode_libdir_separator=: | ||
10206 | ;; | ||
10207 | |||
10208 | solaris*) | ||
10209 | no_undefined_flag=' -z defs' | ||
10210 | if test "$GCC" = yes; then | ||
10211 | wlarc='${wl}' | ||
10212 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10213 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10214 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
10215 | else | ||
10216 | case `$CC -V 2>&1` in | ||
10217 | *"Compilers 5.0"*) | ||
10218 | wlarc='' | ||
10219 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10220 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10221 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
10222 | ;; | ||
10223 | *) | ||
10224 | wlarc='${wl}' | ||
10225 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10226 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10227 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
10228 | ;; | ||
10229 | esac | ||
10230 | fi | ||
10231 | hardcode_libdir_flag_spec='-R$libdir' | ||
10232 | hardcode_shlibpath_var=no | ||
10233 | case $host_os in | ||
10234 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
10235 | *) | ||
10236 | # The compiler driver will combine and reorder linker options, | ||
10237 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
10238 | # but is careful enough not to reorder. | ||
10239 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
10240 | if test "$GCC" = yes; then | ||
10241 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
10242 | else | ||
10243 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
10244 | fi | ||
10245 | ;; | ||
10246 | esac | ||
10247 | link_all_deplibs=yes | ||
10248 | ;; | ||
10249 | |||
10250 | sunos4*) | ||
10251 | if test "x$host_vendor" = xsequent; then | ||
10252 | # Use $CC to link under sequent, because it throws in some extra .o | ||
10253 | # files that make .init and .fini sections work. | ||
10254 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10255 | else | ||
10256 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
10257 | fi | ||
10258 | hardcode_libdir_flag_spec='-L$libdir' | ||
10259 | hardcode_direct=yes | ||
10260 | hardcode_minus_L=yes | ||
10261 | hardcode_shlibpath_var=no | ||
10262 | ;; | ||
10263 | |||
10264 | sysv4) | ||
10265 | case $host_vendor in | ||
10266 | sni) | ||
10267 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10268 | hardcode_direct=yes # is this really true??? | ||
10269 | ;; | ||
10270 | siemens) | ||
10271 | ## LD is ld it makes a PLAMLIB | ||
10272 | ## CC just makes a GrossModule. | ||
10273 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
10274 | reload_cmds='$CC -r -o $output$reload_objs' | ||
10275 | hardcode_direct=no | ||
10276 | ;; | ||
10277 | motorola) | ||
10278 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10279 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
10280 | ;; | ||
10281 | esac | ||
10282 | runpath_var='LD_RUN_PATH' | ||
10283 | hardcode_shlibpath_var=no | ||
10284 | ;; | ||
10285 | |||
10286 | sysv4.3*) | ||
10287 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10288 | hardcode_shlibpath_var=no | ||
10289 | export_dynamic_flag_spec='-Bexport' | ||
10290 | ;; | ||
10291 | |||
10292 | sysv4*MP*) | ||
10293 | if test -d /usr/nec; then | ||
10294 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10295 | hardcode_shlibpath_var=no | ||
10296 | runpath_var=LD_RUN_PATH | ||
10297 | hardcode_runpath_var=yes | ||
10298 | ld_shlibs=yes | ||
10299 | fi | ||
10300 | ;; | ||
10301 | |||
10302 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
10303 | no_undefined_flag='${wl}-z,text' | ||
10304 | archive_cmds_need_lc=no | ||
10305 | hardcode_shlibpath_var=no | ||
10306 | runpath_var='LD_RUN_PATH' | ||
10307 | |||
10308 | if test "$GCC" = yes; then | ||
10309 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10310 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10311 | else | ||
10312 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10313 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10314 | fi | ||
10315 | ;; | ||
10316 | |||
10317 | sysv5* | sco3.2v5* | sco5v6*) | ||
10318 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
10319 | # link with -lc, and that would cause any symbols used from libc to | ||
10320 | # always be unresolved, which means just about no library would | ||
10321 | # ever link correctly. If we're not using GNU ld we use -z text | ||
10322 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
10323 | # as -z defs. | ||
10324 | no_undefined_flag='${wl}-z,text' | ||
10325 | allow_undefined_flag='${wl}-z,nodefs' | ||
10326 | archive_cmds_need_lc=no | ||
10327 | hardcode_shlibpath_var=no | ||
10328 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
10329 | hardcode_libdir_separator=':' | ||
10330 | link_all_deplibs=yes | ||
10331 | export_dynamic_flag_spec='${wl}-Bexport' | ||
10332 | runpath_var='LD_RUN_PATH' | ||
10333 | |||
10334 | if test "$GCC" = yes; then | ||
10335 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10336 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10337 | else | ||
10338 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10339 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10340 | fi | ||
10341 | ;; | ||
10342 | |||
10343 | uts4*) | ||
10344 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10345 | hardcode_libdir_flag_spec='-L$libdir' | ||
10346 | hardcode_shlibpath_var=no | ||
10347 | ;; | ||
10348 | |||
10349 | *) | ||
10350 | ld_shlibs=no | ||
10351 | ;; | ||
10352 | esac | ||
10353 | |||
10354 | if test x$host_vendor = xsni; then | ||
10355 | case $host in | ||
10356 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
10357 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
10358 | ;; | ||
10359 | esac | ||
10360 | fi | ||
10361 | fi | ||
10362 | |||
10363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
10364 | $as_echo "$ld_shlibs" >&6; } | ||
10365 | test "$ld_shlibs" = no && can_build_shared=no | ||
10366 | |||
10367 | with_gnu_ld=$with_gnu_ld | ||
10368 | |||
10369 | |||
10370 | |||
10371 | |||
10372 | |||
10373 | |||
10374 | |||
10375 | |||
10376 | |||
10377 | |||
10378 | |||
10379 | |||
10380 | |||
10381 | |||
10382 | |||
10383 | # | ||
10384 | # Do we need to explicitly link libc? | ||
10385 | # | ||
10386 | case "x$archive_cmds_need_lc" in | ||
10387 | x|xyes) | ||
10388 | # Assume -lc should be added | ||
10389 | archive_cmds_need_lc=yes | ||
10390 | |||
10391 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
10392 | case $archive_cmds in | ||
10393 | *'~'*) | ||
10394 | # FIXME: we may have to deal with multi-command sequences. | ||
10395 | ;; | ||
10396 | '$CC '*) | ||
10397 | # Test whether the compiler implicitly links with -lc since on some | ||
10398 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
10399 | # to ld, don't add -lc before -lgcc. | ||
10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
10401 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
10402 | $RM conftest* | ||
10403 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
10404 | |||
10405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
10406 | (eval $ac_compile) 2>&5 | ||
10407 | ac_status=$? | ||
10408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10409 | test $ac_status = 0; } 2>conftest.err; then | ||
10410 | soname=conftest | ||
10411 | lib=conftest | ||
10412 | libobjs=conftest.$ac_objext | ||
10413 | deplibs= | ||
10414 | wl=$lt_prog_compiler_wl | ||
10415 | pic_flag=$lt_prog_compiler_pic | ||
10416 | compiler_flags=-v | ||
10417 | linker_flags=-v | ||
10418 | verstring= | ||
10419 | output_objdir=. | ||
10420 | libname=conftest | ||
10421 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
10422 | allow_undefined_flag= | ||
10423 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
10424 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
10425 | ac_status=$? | ||
10426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10427 | test $ac_status = 0; } | ||
10428 | then | ||
10429 | archive_cmds_need_lc=no | ||
10430 | else | ||
10431 | archive_cmds_need_lc=yes | ||
10432 | fi | ||
10433 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
10434 | else | ||
10435 | cat conftest.err 1>&5 | ||
10436 | fi | ||
10437 | $RM conftest* | ||
10438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
10439 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
10440 | ;; | ||
10441 | esac | ||
10442 | fi | ||
10443 | ;; | ||
10444 | esac | ||
10445 | |||
10446 | |||
10447 | |||
10448 | |||
10449 | |||
10450 | |||
10451 | |||
10452 | |||
10453 | |||
10454 | |||
10455 | |||
10456 | |||
10457 | |||
10458 | |||
10459 | |||
10460 | |||
10461 | |||
10462 | |||
10463 | |||
10464 | |||
10465 | |||
10466 | |||
10467 | |||
10468 | |||
10469 | |||
10470 | |||
10471 | |||
10472 | |||
10473 | |||
10474 | |||
10475 | |||
10476 | |||
10477 | |||
10478 | |||
10479 | |||
10480 | |||
10481 | |||
10482 | |||
10483 | |||
10484 | |||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
10603 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
10604 | |||
10605 | if test "$GCC" = yes; then | ||
10606 | case $host_os in | ||
10607 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
10608 | *) lt_awk_arg="/^libraries:/" ;; | ||
10609 | esac | ||
10610 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10611 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
10612 | # if the path contains ";" then we assume it to be the separator | ||
10613 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
10614 | # assumed that no part of a normal pathname contains ";" but that should | ||
10615 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
10616 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
10617 | else | ||
10618 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10619 | fi | ||
10620 | # Ok, now we have the path, separated by spaces, we can step through it | ||
10621 | # and add multilib dir if necessary. | ||
10622 | lt_tmp_lt_search_path_spec= | ||
10623 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
10624 | for lt_sys_path in $lt_search_path_spec; do | ||
10625 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
10626 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
10627 | else | ||
10628 | test -d "$lt_sys_path" && \ | ||
10629 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
10630 | fi | ||
10631 | done | ||
10632 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
10633 | BEGIN {RS=" "; FS="/|\n";} { | ||
10634 | lt_foo=""; | ||
10635 | lt_count=0; | ||
10636 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
10637 | if ($lt_i != "" && $lt_i != ".") { | ||
10638 | if ($lt_i == "..") { | ||
10639 | lt_count++; | ||
10640 | } else { | ||
10641 | if (lt_count == 0) { | ||
10642 | lt_foo="/" $lt_i lt_foo; | ||
10643 | } else { | ||
10644 | lt_count--; | ||
10645 | } | ||
10646 | } | ||
10647 | } | ||
10648 | } | ||
10649 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
10650 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
10651 | }'` | ||
10652 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
10653 | else | ||
10654 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
10655 | fi | ||
10656 | library_names_spec= | ||
10657 | libname_spec='lib$name' | ||
10658 | soname_spec= | ||
10659 | shrext_cmds=".so" | ||
10660 | postinstall_cmds= | ||
10661 | postuninstall_cmds= | ||
10662 | finish_cmds= | ||
10663 | finish_eval= | ||
10664 | shlibpath_var= | ||
10665 | shlibpath_overrides_runpath=unknown | ||
10666 | version_type=none | ||
10667 | dynamic_linker="$host_os ld.so" | ||
10668 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
10669 | need_lib_prefix=unknown | ||
10670 | hardcode_into_libs=no | ||
10671 | |||
10672 | # when you set need_version to no, make sure it does not cause -set_version | ||
10673 | # flags to be left without arguments | ||
10674 | need_version=unknown | ||
10675 | |||
10676 | case $host_os in | ||
10677 | aix3*) | ||
10678 | version_type=linux | ||
10679 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
10680 | shlibpath_var=LIBPATH | ||
10681 | |||
10682 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
10683 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10684 | ;; | ||
10685 | |||
10686 | aix[4-9]*) | ||
10687 | version_type=linux | ||
10688 | need_lib_prefix=no | ||
10689 | need_version=no | ||
10690 | hardcode_into_libs=yes | ||
10691 | if test "$host_cpu" = ia64; then | ||
10692 | # AIX 5 supports IA64 | ||
10693 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
10694 | shlibpath_var=LD_LIBRARY_PATH | ||
10695 | else | ||
10696 | # With GCC up to 2.95.x, collect2 would create an import file | ||
10697 | # for dependence libraries. The import file would start with | ||
10698 | # the line `#! .'. This would cause the generated library to | ||
10699 | # depend on `.', always an invalid library. This was fixed in | ||
10700 | # development snapshots of GCC prior to 3.0. | ||
10701 | case $host_os in | ||
10702 | aix4 | aix4.[01] | aix4.[01].*) | ||
10703 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
10704 | echo ' yes ' | ||
10705 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
10706 | : | ||
10707 | else | ||
10708 | can_build_shared=no | ||
10709 | fi | ||
10710 | ;; | ||
10711 | esac | ||
10712 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
10713 | # soname into executable. Probably we can add versioning support to | ||
10714 | # collect2, so additional links can be useful in future. | ||
10715 | if test "$aix_use_runtimelinking" = yes; then | ||
10716 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
10717 | # instead of lib<name>.a to let people know that these are not | ||
10718 | # typical AIX shared libraries. | ||
10719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10720 | else | ||
10721 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
10722 | # and later when we are not doing run time linking. | ||
10723 | library_names_spec='${libname}${release}.a $libname.a' | ||
10724 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10725 | fi | ||
10726 | shlibpath_var=LIBPATH | ||
10727 | fi | ||
10728 | ;; | ||
10729 | |||
10730 | amigaos*) | ||
10731 | case $host_cpu in | ||
10732 | powerpc) | ||
10733 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
10734 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
10735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10736 | ;; | ||
10737 | m68k) | ||
10738 | library_names_spec='$libname.ixlibrary $libname.a' | ||
10739 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
10740 | 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' | ||
10741 | ;; | ||
10742 | esac | ||
10743 | ;; | ||
10744 | |||
10745 | beos*) | ||
10746 | library_names_spec='${libname}${shared_ext}' | ||
10747 | dynamic_linker="$host_os ld.so" | ||
10748 | shlibpath_var=LIBRARY_PATH | ||
10749 | ;; | ||
10750 | |||
10751 | bsdi[45]*) | ||
10752 | version_type=linux | ||
10753 | need_version=no | ||
10754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10755 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10756 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
10757 | shlibpath_var=LD_LIBRARY_PATH | ||
10758 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
10759 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
10760 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
10761 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
10762 | # libtool to hard-code these into programs | ||
10763 | ;; | ||
10764 | |||
10765 | cygwin* | mingw* | pw32* | cegcc*) | ||
10766 | version_type=windows | ||
10767 | shrext_cmds=".dll" | ||
10768 | need_version=no | ||
10769 | need_lib_prefix=no | ||
10770 | |||
10771 | case $GCC,$host_os in | ||
10772 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
10773 | library_names_spec='$libname.dll.a' | ||
10774 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
10775 | postinstall_cmds='base_file=`basename \${file}`~ | ||
10776 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
10777 | dldir=$destdir/`dirname \$dlpath`~ | ||
10778 | test -d \$dldir || mkdir -p \$dldir~ | ||
10779 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
10780 | chmod a+x \$dldir/$dlname~ | ||
10781 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
10782 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
10783 | fi' | ||
10784 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
10785 | dlpath=$dir/\$dldll~ | ||
10786 | $RM \$dlpath' | ||
10787 | shlibpath_overrides_runpath=yes | ||
10788 | |||
10789 | case $host_os in | ||
10790 | cygwin*) | ||
10791 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
10792 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10793 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
10794 | ;; | ||
10795 | mingw* | cegcc*) | ||
10796 | # MinGW DLLs use traditional 'lib' prefix | ||
10797 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10798 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10799 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
10800 | # It is most probably a Windows format PATH printed by | ||
10801 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
10802 | # path with ; separators, and with drive letters. We can handle the | ||
10803 | # drive letters (cygwin fileutils understands them), so leave them, | ||
10804 | # especially as we might pass files found there to a mingw objdump, | ||
10805 | # which wouldn't understand a cygwinified path. Ahh. | ||
10806 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
10807 | else | ||
10808 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10809 | fi | ||
10810 | ;; | ||
10811 | pw32*) | ||
10812 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
10813 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10814 | ;; | ||
10815 | esac | ||
10816 | ;; | ||
10817 | |||
10818 | *) | ||
10819 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
10820 | ;; | ||
10821 | esac | ||
10822 | dynamic_linker='Win32 ld.exe' | ||
10823 | # FIXME: first we should search . and the directory the executable is in | ||
10824 | shlibpath_var=PATH | ||
10825 | ;; | ||
10826 | |||
10827 | darwin* | rhapsody*) | ||
10828 | dynamic_linker="$host_os dyld" | ||
10829 | version_type=darwin | ||
10830 | need_lib_prefix=no | ||
10831 | need_version=no | ||
10832 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
10833 | soname_spec='${libname}${release}${major}$shared_ext' | ||
10834 | shlibpath_overrides_runpath=yes | ||
10835 | shlibpath_var=DYLD_LIBRARY_PATH | ||
10836 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
10837 | |||
10838 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
10839 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
10840 | ;; | ||
10841 | |||
10842 | dgux*) | ||
10843 | version_type=linux | ||
10844 | need_lib_prefix=no | ||
10845 | need_version=no | ||
10846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
10847 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10848 | shlibpath_var=LD_LIBRARY_PATH | ||
10849 | ;; | ||
10850 | |||
10851 | freebsd1*) | ||
10852 | dynamic_linker=no | ||
10853 | ;; | ||
10854 | |||
10855 | freebsd* | dragonfly*) | ||
10856 | # DragonFly does not have aout. When/if they implement a new | ||
10857 | # versioning mechanism, adjust this. | ||
10858 | if test -x /usr/bin/objformat; then | ||
10859 | objformat=`/usr/bin/objformat` | ||
10860 | else | ||
10861 | case $host_os in | ||
10862 | freebsd[123]*) objformat=aout ;; | ||
10863 | *) objformat=elf ;; | ||
10864 | esac | ||
10865 | fi | ||
10866 | version_type=freebsd-$objformat | ||
10867 | case $version_type in | ||
10868 | freebsd-elf*) | ||
10869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10870 | need_version=no | ||
10871 | need_lib_prefix=no | ||
10872 | ;; | ||
10873 | freebsd-*) | ||
10874 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
10875 | need_version=yes | ||
10876 | ;; | ||
10877 | esac | ||
10878 | shlibpath_var=LD_LIBRARY_PATH | ||
10879 | case $host_os in | ||
10880 | freebsd2*) | ||
10881 | shlibpath_overrides_runpath=yes | ||
10882 | ;; | ||
10883 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
10884 | shlibpath_overrides_runpath=yes | ||
10885 | hardcode_into_libs=yes | ||
10886 | ;; | ||
10887 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
10888 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
10889 | shlibpath_overrides_runpath=no | ||
10890 | hardcode_into_libs=yes | ||
10891 | ;; | ||
10892 | *) # from 4.6 on, and DragonFly | ||
10893 | shlibpath_overrides_runpath=yes | ||
10894 | hardcode_into_libs=yes | ||
10895 | ;; | ||
10896 | esac | ||
10897 | ;; | ||
10898 | |||
10899 | gnu*) | ||
10900 | version_type=linux | ||
10901 | need_lib_prefix=no | ||
10902 | need_version=no | ||
10903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
10904 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10905 | shlibpath_var=LD_LIBRARY_PATH | ||
10906 | hardcode_into_libs=yes | ||
10907 | ;; | ||
10908 | |||
10909 | hpux9* | hpux10* | hpux11*) | ||
10910 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
10911 | # link against other versions. | ||
10912 | version_type=sunos | ||
10913 | need_lib_prefix=no | ||
10914 | need_version=no | ||
10915 | case $host_cpu in | ||
10916 | ia64*) | ||
10917 | shrext_cmds='.so' | ||
10918 | hardcode_into_libs=yes | ||
10919 | dynamic_linker="$host_os dld.so" | ||
10920 | shlibpath_var=LD_LIBRARY_PATH | ||
10921 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10923 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10924 | if test "X$HPUX_IA64_MODE" = X32; then | ||
10925 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
10926 | else | ||
10927 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
10928 | fi | ||
10929 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10930 | ;; | ||
10931 | hppa*64*) | ||
10932 | shrext_cmds='.sl' | ||
10933 | hardcode_into_libs=yes | ||
10934 | dynamic_linker="$host_os dld.sl" | ||
10935 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
10936 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10938 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10939 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
10940 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10941 | ;; | ||
10942 | *) | ||
10943 | shrext_cmds='.sl' | ||
10944 | dynamic_linker="$host_os dld.sl" | ||
10945 | shlibpath_var=SHLIB_PATH | ||
10946 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
10947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10948 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10949 | ;; | ||
10950 | esac | ||
10951 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
10952 | postinstall_cmds='chmod 555 $lib' | ||
10953 | ;; | ||
10954 | |||
10955 | interix[3-9]*) | ||
10956 | version_type=linux | ||
10957 | need_lib_prefix=no | ||
10958 | need_version=no | ||
10959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
10960 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10961 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
10962 | shlibpath_var=LD_LIBRARY_PATH | ||
10963 | shlibpath_overrides_runpath=no | ||
10964 | hardcode_into_libs=yes | ||
10965 | ;; | ||
10966 | |||
10967 | irix5* | irix6* | nonstopux*) | ||
10968 | case $host_os in | ||
10969 | nonstopux*) version_type=nonstopux ;; | ||
10970 | *) | ||
10971 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
10972 | version_type=linux | ||
10973 | else | ||
10974 | version_type=irix | ||
10975 | fi ;; | ||
10976 | esac | ||
10977 | need_lib_prefix=no | ||
10978 | need_version=no | ||
10979 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10981 | case $host_os in | ||
10982 | irix5* | nonstopux*) | ||
10983 | libsuff= shlibsuff= | ||
10984 | ;; | ||
10985 | *) | ||
10986 | case $LD in # libtool.m4 will add one of these switches to LD | ||
10987 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
10988 | libsuff= shlibsuff= libmagic=32-bit;; | ||
10989 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
10990 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
10991 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
10992 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
10993 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
10994 | esac | ||
10995 | ;; | ||
10996 | esac | ||
10997 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
10998 | shlibpath_overrides_runpath=no | ||
10999 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
11000 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
11001 | hardcode_into_libs=yes | ||
11002 | ;; | ||
11003 | |||
11004 | # No shared lib support for Linux oldld, aout, or coff. | ||
11005 | linux*oldld* | linux*aout* | linux*coff*) | ||
11006 | dynamic_linker=no | ||
11007 | ;; | ||
11008 | |||
11009 | # This must be Linux ELF. | ||
11010 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
11011 | version_type=linux | ||
11012 | need_lib_prefix=no | ||
11013 | need_version=no | ||
11014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11015 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11016 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
11017 | shlibpath_var=LD_LIBRARY_PATH | ||
11018 | shlibpath_overrides_runpath=no | ||
11019 | # Some binutils ld are patched to set DT_RUNPATH | ||
11020 | save_LDFLAGS=$LDFLAGS | ||
11021 | save_libdir=$libdir | ||
11022 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
11023 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
11024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11025 | /* end confdefs.h. */ | ||
11026 | |||
11027 | int | ||
11028 | main () | ||
11029 | { | ||
11030 | |||
11031 | ; | ||
11032 | return 0; | ||
11033 | } | ||
11034 | _ACEOF | ||
11035 | if ac_fn_c_try_link "$LINENO"; then : | ||
11036 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
11037 | shlibpath_overrides_runpath=yes | ||
11038 | fi | ||
11039 | fi | ||
11040 | rm -f core conftest.err conftest.$ac_objext \ | ||
11041 | conftest$ac_exeext conftest.$ac_ext | ||
11042 | LDFLAGS=$save_LDFLAGS | ||
11043 | libdir=$save_libdir | ||
11044 | |||
11045 | # This implies no fast_install, which is unacceptable. | ||
11046 | # Some rework will be needed to allow for fast_install | ||
11047 | # before this can be enabled. | ||
11048 | hardcode_into_libs=yes | ||
11049 | |||
11050 | # Append ld.so.conf contents to the search path | ||
11051 | if test -f /etc/ld.so.conf; then | ||
11052 | 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' ' '` | ||
11053 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
11054 | fi | ||
11055 | |||
11056 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
11057 | # powerpc, because MkLinux only supported shared libraries with the | ||
11058 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
11059 | # most powerpc-linux boxes support dynamic linking these days and | ||
11060 | # people can always --disable-shared, the test was removed, and we | ||
11061 | # assume the GNU/Linux dynamic linker is in use. | ||
11062 | dynamic_linker='GNU/Linux ld.so' | ||
11063 | ;; | ||
11064 | |||
11065 | netbsdelf*-gnu) | ||
11066 | version_type=linux | ||
11067 | need_lib_prefix=no | ||
11068 | need_version=no | ||
11069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11070 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11071 | shlibpath_var=LD_LIBRARY_PATH | ||
11072 | shlibpath_overrides_runpath=no | ||
11073 | hardcode_into_libs=yes | ||
11074 | dynamic_linker='NetBSD ld.elf_so' | ||
11075 | ;; | ||
11076 | |||
11077 | netbsd*) | ||
11078 | version_type=sunos | ||
11079 | need_lib_prefix=no | ||
11080 | need_version=no | ||
11081 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
11082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11083 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
11084 | dynamic_linker='NetBSD (a.out) ld.so' | ||
11085 | else | ||
11086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11087 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11088 | dynamic_linker='NetBSD ld.elf_so' | ||
11089 | fi | ||
11090 | shlibpath_var=LD_LIBRARY_PATH | ||
11091 | shlibpath_overrides_runpath=yes | ||
11092 | hardcode_into_libs=yes | ||
11093 | ;; | ||
11094 | |||
11095 | newsos6) | ||
11096 | version_type=linux | ||
11097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11098 | shlibpath_var=LD_LIBRARY_PATH | ||
11099 | shlibpath_overrides_runpath=yes | ||
11100 | ;; | ||
11101 | |||
11102 | *nto* | *qnx*) | ||
11103 | version_type=qnx | ||
11104 | need_lib_prefix=no | ||
11105 | need_version=no | ||
11106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11107 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11108 | shlibpath_var=LD_LIBRARY_PATH | ||
11109 | shlibpath_overrides_runpath=no | ||
11110 | hardcode_into_libs=yes | ||
11111 | dynamic_linker='ldqnx.so' | ||
11112 | ;; | ||
11113 | |||
11114 | openbsd*) | ||
11115 | version_type=sunos | ||
11116 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
11117 | need_lib_prefix=no | ||
11118 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
11119 | case $host_os in | ||
11120 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
11121 | *) need_version=no ;; | ||
11122 | esac | ||
11123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11124 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
11125 | shlibpath_var=LD_LIBRARY_PATH | ||
11126 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
11127 | case $host_os in | ||
11128 | openbsd2.[89] | openbsd2.[89].*) | ||
11129 | shlibpath_overrides_runpath=no | ||
11130 | ;; | ||
11131 | *) | ||
11132 | shlibpath_overrides_runpath=yes | ||
11133 | ;; | ||
11134 | esac | ||
11135 | else | ||
11136 | shlibpath_overrides_runpath=yes | ||
11137 | fi | ||
11138 | ;; | ||
11139 | |||
11140 | os2*) | ||
11141 | libname_spec='$name' | ||
11142 | shrext_cmds=".dll" | ||
11143 | need_lib_prefix=no | ||
11144 | library_names_spec='$libname${shared_ext} $libname.a' | ||
11145 | dynamic_linker='OS/2 ld.exe' | ||
11146 | shlibpath_var=LIBPATH | ||
11147 | ;; | ||
11148 | |||
11149 | osf3* | osf4* | osf5*) | ||
11150 | version_type=osf | ||
11151 | need_lib_prefix=no | ||
11152 | need_version=no | ||
11153 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11155 | shlibpath_var=LD_LIBRARY_PATH | ||
11156 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
11157 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
11158 | ;; | ||
11159 | |||
11160 | rdos*) | ||
11161 | dynamic_linker=no | ||
11162 | ;; | ||
11163 | |||
11164 | solaris*) | ||
11165 | version_type=linux | ||
11166 | need_lib_prefix=no | ||
11167 | need_version=no | ||
11168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11169 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11170 | shlibpath_var=LD_LIBRARY_PATH | ||
11171 | shlibpath_overrides_runpath=yes | ||
11172 | hardcode_into_libs=yes | ||
11173 | # ldd complains unless libraries are executable | ||
11174 | postinstall_cmds='chmod +x $lib' | ||
11175 | ;; | ||
11176 | |||
11177 | sunos4*) | ||
11178 | version_type=sunos | ||
11179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11180 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
11181 | shlibpath_var=LD_LIBRARY_PATH | ||
11182 | shlibpath_overrides_runpath=yes | ||
11183 | if test "$with_gnu_ld" = yes; then | ||
11184 | need_lib_prefix=no | ||
11185 | fi | ||
11186 | need_version=yes | ||
11187 | ;; | ||
11188 | |||
11189 | sysv4 | sysv4.3*) | ||
11190 | version_type=linux | ||
11191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11192 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11193 | shlibpath_var=LD_LIBRARY_PATH | ||
11194 | case $host_vendor in | ||
11195 | sni) | ||
11196 | shlibpath_overrides_runpath=no | ||
11197 | need_lib_prefix=no | ||
11198 | runpath_var=LD_RUN_PATH | ||
11199 | ;; | ||
11200 | siemens) | ||
11201 | need_lib_prefix=no | ||
11202 | ;; | ||
11203 | motorola) | ||
11204 | need_lib_prefix=no | ||
11205 | need_version=no | ||
11206 | shlibpath_overrides_runpath=no | ||
11207 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
11208 | ;; | ||
11209 | esac | ||
11210 | ;; | ||
11211 | |||
11212 | sysv4*MP*) | ||
11213 | if test -d /usr/nec ;then | ||
11214 | version_type=linux | ||
11215 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
11216 | soname_spec='$libname${shared_ext}.$major' | ||
11217 | shlibpath_var=LD_LIBRARY_PATH | ||
11218 | fi | ||
11219 | ;; | ||
11220 | |||
11221 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
11222 | version_type=freebsd-elf | ||
11223 | need_lib_prefix=no | ||
11224 | need_version=no | ||
11225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
11226 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11227 | shlibpath_var=LD_LIBRARY_PATH | ||
11228 | shlibpath_overrides_runpath=yes | ||
11229 | hardcode_into_libs=yes | ||
11230 | if test "$with_gnu_ld" = yes; then | ||
11231 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
11232 | else | ||
11233 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
11234 | case $host_os in | ||
11235 | sco3.2v5*) | ||
11236 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
11237 | ;; | ||
11238 | esac | ||
11239 | fi | ||
11240 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
11241 | ;; | ||
11242 | |||
11243 | tpf*) | ||
11244 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
11245 | version_type=linux | ||
11246 | need_lib_prefix=no | ||
11247 | need_version=no | ||
11248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11249 | shlibpath_var=LD_LIBRARY_PATH | ||
11250 | shlibpath_overrides_runpath=no | ||
11251 | hardcode_into_libs=yes | ||
11252 | ;; | ||
11253 | |||
11254 | uts4*) | ||
11255 | version_type=linux | ||
11256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11257 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11258 | shlibpath_var=LD_LIBRARY_PATH | ||
11259 | ;; | ||
11260 | |||
11261 | *) | ||
11262 | dynamic_linker=no | ||
11263 | ;; | ||
11264 | esac | ||
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
11266 | $as_echo "$dynamic_linker" >&6; } | ||
11267 | test "$dynamic_linker" = no && can_build_shared=no | ||
11268 | |||
11269 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
11270 | if test "$GCC" = yes; then | ||
11271 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
11272 | fi | ||
11273 | |||
11274 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
11275 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
11276 | fi | ||
11277 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
11278 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
11279 | fi | ||
11280 | |||
11281 | |||
11282 | |||
11283 | |||
11284 | |||
11285 | |||
11286 | |||
11287 | |||
11288 | |||
11289 | |||
11290 | |||
11291 | |||
11292 | |||
11293 | |||
11294 | |||
11295 | |||
11296 | |||
11297 | |||
11298 | |||
11299 | |||
11300 | |||
11301 | |||
11302 | |||
11303 | |||
11304 | |||
11305 | |||
11306 | |||
11307 | |||
11308 | |||
11309 | |||
11310 | |||
11311 | |||
11312 | |||
11313 | |||
11314 | |||
11315 | |||
11316 | |||
11317 | |||
11318 | |||
11319 | |||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
11368 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
11369 | hardcode_action= | ||
11370 | if test -n "$hardcode_libdir_flag_spec" || | ||
11371 | test -n "$runpath_var" || | ||
11372 | test "X$hardcode_automatic" = "Xyes" ; then | ||
11373 | |||
11374 | # We can hardcode non-existent directories. | ||
11375 | if test "$hardcode_direct" != no && | ||
11376 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
11377 | # have to relink, otherwise we might link with an installed library | ||
11378 | # when we should be linking with a yet-to-be-installed one | ||
11379 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
11380 | test "$hardcode_minus_L" != no; then | ||
11381 | # Linking always hardcodes the temporary library directory. | ||
11382 | hardcode_action=relink | ||
11383 | else | ||
11384 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
11385 | hardcode_action=immediate | ||
11386 | fi | ||
11387 | else | ||
11388 | # We cannot hardcode anything, or else we can only hardcode existing | ||
11389 | # directories. | ||
11390 | hardcode_action=unsupported | ||
11391 | fi | ||
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
11393 | $as_echo "$hardcode_action" >&6; } | ||
11394 | |||
11395 | if test "$hardcode_action" = relink || | ||
11396 | test "$inherit_rpath" = yes; then | ||
11397 | # Fast installation is not supported | ||
11398 | enable_fast_install=no | ||
11399 | elif test "$shlibpath_overrides_runpath" = yes || | ||
11400 | test "$enable_shared" = no; then | ||
11401 | # Fast installation is not necessary | ||
11402 | enable_fast_install=needless | ||
11403 | fi | ||
11404 | |||
11405 | |||
11406 | |||
11407 | |||
11408 | |||
11409 | |||
11410 | if test "x$enable_dlopen" != xyes; then | ||
11411 | enable_dlopen=unknown | ||
11412 | enable_dlopen_self=unknown | ||
11413 | enable_dlopen_self_static=unknown | ||
11414 | else | ||
11415 | lt_cv_dlopen=no | ||
11416 | lt_cv_dlopen_libs= | ||
11417 | |||
11418 | case $host_os in | ||
11419 | beos*) | ||
11420 | lt_cv_dlopen="load_add_on" | ||
11421 | lt_cv_dlopen_libs= | ||
11422 | lt_cv_dlopen_self=yes | ||
11423 | ;; | ||
11424 | |||
11425 | mingw* | pw32* | cegcc*) | ||
11426 | lt_cv_dlopen="LoadLibrary" | ||
11427 | lt_cv_dlopen_libs= | ||
11428 | ;; | ||
11429 | |||
11430 | cygwin*) | ||
11431 | lt_cv_dlopen="dlopen" | ||
11432 | lt_cv_dlopen_libs= | ||
11433 | ;; | ||
11434 | |||
11435 | darwin*) | ||
11436 | # if libdl is installed we need to link against it | ||
11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11438 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11439 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11440 | $as_echo_n "(cached) " >&6 | ||
11441 | else | ||
11442 | ac_check_lib_save_LIBS=$LIBS | ||
11443 | LIBS="-ldl $LIBS" | ||
11444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11445 | /* end confdefs.h. */ | ||
11446 | |||
11447 | /* Override any GCC internal prototype to avoid an error. | ||
11448 | Use char because int might match the return type of a GCC | ||
11449 | builtin and then its argument prototype would still apply. */ | ||
11450 | #ifdef __cplusplus | ||
11451 | extern "C" | ||
11452 | #endif | ||
11453 | char dlopen (); | ||
11454 | int | ||
11455 | main () | ||
11456 | { | ||
11457 | return dlopen (); | ||
11458 | ; | ||
11459 | return 0; | ||
11460 | } | ||
11461 | _ACEOF | ||
11462 | if ac_fn_c_try_link "$LINENO"; then : | ||
11463 | ac_cv_lib_dl_dlopen=yes | ||
11464 | else | ||
11465 | ac_cv_lib_dl_dlopen=no | ||
11466 | fi | ||
11467 | rm -f core conftest.err conftest.$ac_objext \ | ||
11468 | conftest$ac_exeext conftest.$ac_ext | ||
11469 | LIBS=$ac_check_lib_save_LIBS | ||
11470 | fi | ||
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11472 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11473 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11474 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11475 | else | ||
11476 | |||
11477 | lt_cv_dlopen="dyld" | ||
11478 | lt_cv_dlopen_libs= | ||
11479 | lt_cv_dlopen_self=yes | ||
11480 | |||
11481 | fi | ||
11482 | |||
11483 | ;; | ||
11484 | |||
11485 | *) | ||
11486 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
11487 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
11488 | lt_cv_dlopen="shl_load" | ||
11489 | else | ||
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
11491 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
11492 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
11493 | $as_echo_n "(cached) " >&6 | ||
11494 | else | ||
11495 | ac_check_lib_save_LIBS=$LIBS | ||
11496 | LIBS="-ldld $LIBS" | ||
11497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11498 | /* end confdefs.h. */ | ||
11499 | |||
11500 | /* Override any GCC internal prototype to avoid an error. | ||
11501 | Use char because int might match the return type of a GCC | ||
11502 | builtin and then its argument prototype would still apply. */ | ||
11503 | #ifdef __cplusplus | ||
11504 | extern "C" | ||
11505 | #endif | ||
11506 | char shl_load (); | ||
11507 | int | ||
11508 | main () | ||
11509 | { | ||
11510 | return shl_load (); | ||
11511 | ; | ||
11512 | return 0; | ||
11513 | } | ||
11514 | _ACEOF | ||
11515 | if ac_fn_c_try_link "$LINENO"; then : | ||
11516 | ac_cv_lib_dld_shl_load=yes | ||
11517 | else | ||
11518 | ac_cv_lib_dld_shl_load=no | ||
11519 | fi | ||
11520 | rm -f core conftest.err conftest.$ac_objext \ | ||
11521 | conftest$ac_exeext conftest.$ac_ext | ||
11522 | LIBS=$ac_check_lib_save_LIBS | ||
11523 | fi | ||
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
11525 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
11526 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
11527 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
11528 | else | ||
11529 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
11530 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
11531 | lt_cv_dlopen="dlopen" | ||
11532 | else | ||
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11534 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11535 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11536 | $as_echo_n "(cached) " >&6 | ||
11537 | else | ||
11538 | ac_check_lib_save_LIBS=$LIBS | ||
11539 | LIBS="-ldl $LIBS" | ||
11540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11541 | /* end confdefs.h. */ | ||
11542 | |||
11543 | /* Override any GCC internal prototype to avoid an error. | ||
11544 | Use char because int might match the return type of a GCC | ||
11545 | builtin and then its argument prototype would still apply. */ | ||
11546 | #ifdef __cplusplus | ||
11547 | extern "C" | ||
11548 | #endif | ||
11549 | char dlopen (); | ||
11550 | int | ||
11551 | main () | ||
11552 | { | ||
11553 | return dlopen (); | ||
11554 | ; | ||
11555 | return 0; | ||
11556 | } | ||
11557 | _ACEOF | ||
11558 | if ac_fn_c_try_link "$LINENO"; then : | ||
11559 | ac_cv_lib_dl_dlopen=yes | ||
11560 | else | ||
11561 | ac_cv_lib_dl_dlopen=no | ||
11562 | fi | ||
11563 | rm -f core conftest.err conftest.$ac_objext \ | ||
11564 | conftest$ac_exeext conftest.$ac_ext | ||
11565 | LIBS=$ac_check_lib_save_LIBS | ||
11566 | fi | ||
11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11568 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11569 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11570 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11571 | else | ||
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
11573 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
11574 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
11575 | $as_echo_n "(cached) " >&6 | ||
11576 | else | ||
11577 | ac_check_lib_save_LIBS=$LIBS | ||
11578 | LIBS="-lsvld $LIBS" | ||
11579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11580 | /* end confdefs.h. */ | ||
11581 | |||
11582 | /* Override any GCC internal prototype to avoid an error. | ||
11583 | Use char because int might match the return type of a GCC | ||
11584 | builtin and then its argument prototype would still apply. */ | ||
11585 | #ifdef __cplusplus | ||
11586 | extern "C" | ||
11587 | #endif | ||
11588 | char dlopen (); | ||
11589 | int | ||
11590 | main () | ||
11591 | { | ||
11592 | return dlopen (); | ||
11593 | ; | ||
11594 | return 0; | ||
11595 | } | ||
11596 | _ACEOF | ||
11597 | if ac_fn_c_try_link "$LINENO"; then : | ||
11598 | ac_cv_lib_svld_dlopen=yes | ||
11599 | else | ||
11600 | ac_cv_lib_svld_dlopen=no | ||
11601 | fi | ||
11602 | rm -f core conftest.err conftest.$ac_objext \ | ||
11603 | conftest$ac_exeext conftest.$ac_ext | ||
11604 | LIBS=$ac_check_lib_save_LIBS | ||
11605 | fi | ||
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
11607 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
11608 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
11609 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
11610 | else | ||
11611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
11612 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
11613 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
11614 | $as_echo_n "(cached) " >&6 | ||
11615 | else | ||
11616 | ac_check_lib_save_LIBS=$LIBS | ||
11617 | LIBS="-ldld $LIBS" | ||
11618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11619 | /* end confdefs.h. */ | ||
11620 | |||
11621 | /* Override any GCC internal prototype to avoid an error. | ||
11622 | Use char because int might match the return type of a GCC | ||
11623 | builtin and then its argument prototype would still apply. */ | ||
11624 | #ifdef __cplusplus | ||
11625 | extern "C" | ||
11626 | #endif | ||
11627 | char dld_link (); | ||
11628 | int | ||
11629 | main () | ||
11630 | { | ||
11631 | return dld_link (); | ||
11632 | ; | ||
11633 | return 0; | ||
11634 | } | ||
11635 | _ACEOF | ||
11636 | if ac_fn_c_try_link "$LINENO"; then : | ||
11637 | ac_cv_lib_dld_dld_link=yes | ||
11638 | else | ||
11639 | ac_cv_lib_dld_dld_link=no | ||
11640 | fi | ||
11641 | rm -f core conftest.err conftest.$ac_objext \ | ||
11642 | conftest$ac_exeext conftest.$ac_ext | ||
11643 | LIBS=$ac_check_lib_save_LIBS | ||
11644 | fi | ||
11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
11646 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
11647 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
11648 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
11649 | fi | ||
11650 | |||
11651 | |||
11652 | fi | ||
11653 | |||
11654 | |||
11655 | fi | ||
11656 | |||
11657 | |||
11658 | fi | ||
11659 | |||
11660 | |||
11661 | fi | ||
11662 | |||
11663 | |||
11664 | fi | ||
11665 | |||
11666 | ;; | ||
11667 | esac | ||
11668 | |||
11669 | if test "x$lt_cv_dlopen" != xno; then | ||
11670 | enable_dlopen=yes | ||
11671 | else | ||
11672 | enable_dlopen=no | ||
11673 | fi | ||
11674 | |||
11675 | case $lt_cv_dlopen in | ||
11676 | dlopen) | ||
11677 | save_CPPFLAGS="$CPPFLAGS" | ||
11678 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
11679 | |||
11680 | save_LDFLAGS="$LDFLAGS" | ||
11681 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
11682 | |||
11683 | save_LIBS="$LIBS" | ||
11684 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
11685 | |||
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
11687 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
11688 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
11689 | $as_echo_n "(cached) " >&6 | ||
11690 | else | ||
11691 | if test "$cross_compiling" = yes; then : | ||
11692 | lt_cv_dlopen_self=cross | ||
11693 | else | ||
11694 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11695 | lt_status=$lt_dlunknown | ||
11696 | cat > conftest.$ac_ext <<_LT_EOF | ||
11697 | #line 11697 "configure" | ||
11698 | #include "confdefs.h" | ||
11699 | |||
11700 | #if HAVE_DLFCN_H | ||
11701 | #include <dlfcn.h> | ||
11702 | #endif | ||
11703 | |||
11704 | #include <stdio.h> | ||
11705 | |||
11706 | #ifdef RTLD_GLOBAL | ||
11707 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11708 | #else | ||
11709 | # ifdef DL_GLOBAL | ||
11710 | # define LT_DLGLOBAL DL_GLOBAL | ||
11711 | # else | ||
11712 | # define LT_DLGLOBAL 0 | ||
11713 | # endif | ||
11714 | #endif | ||
11715 | |||
11716 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11717 | find out it does not work in some platform. */ | ||
11718 | #ifndef LT_DLLAZY_OR_NOW | ||
11719 | # ifdef RTLD_LAZY | ||
11720 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11721 | # else | ||
11722 | # ifdef DL_LAZY | ||
11723 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11724 | # else | ||
11725 | # ifdef RTLD_NOW | ||
11726 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11727 | # else | ||
11728 | # ifdef DL_NOW | ||
11729 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11730 | # else | ||
11731 | # define LT_DLLAZY_OR_NOW 0 | ||
11732 | # endif | ||
11733 | # endif | ||
11734 | # endif | ||
11735 | # endif | ||
11736 | #endif | ||
11737 | |||
11738 | void fnord() { int i=42;} | ||
11739 | int main () | ||
11740 | { | ||
11741 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11742 | int status = $lt_dlunknown; | ||
11743 | |||
11744 | if (self) | ||
11745 | { | ||
11746 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11747 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11748 | /* dlclose (self); */ | ||
11749 | } | ||
11750 | else | ||
11751 | puts (dlerror ()); | ||
11752 | |||
11753 | return status; | ||
11754 | } | ||
11755 | _LT_EOF | ||
11756 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11757 | (eval $ac_link) 2>&5 | ||
11758 | ac_status=$? | ||
11759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11760 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11761 | (./conftest; exit; ) >&5 2>/dev/null | ||
11762 | lt_status=$? | ||
11763 | case x$lt_status in | ||
11764 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
11765 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
11766 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
11767 | esac | ||
11768 | else : | ||
11769 | # compilation failed | ||
11770 | lt_cv_dlopen_self=no | ||
11771 | fi | ||
11772 | fi | ||
11773 | rm -fr conftest* | ||
11774 | |||
11775 | |||
11776 | fi | ||
11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
11778 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
11779 | |||
11780 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
11781 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
11783 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
11784 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
11785 | $as_echo_n "(cached) " >&6 | ||
11786 | else | ||
11787 | if test "$cross_compiling" = yes; then : | ||
11788 | lt_cv_dlopen_self_static=cross | ||
11789 | else | ||
11790 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11791 | lt_status=$lt_dlunknown | ||
11792 | cat > conftest.$ac_ext <<_LT_EOF | ||
11793 | #line 11793 "configure" | ||
11794 | #include "confdefs.h" | ||
11795 | |||
11796 | #if HAVE_DLFCN_H | ||
11797 | #include <dlfcn.h> | ||
11798 | #endif | ||
11799 | |||
11800 | #include <stdio.h> | ||
11801 | |||
11802 | #ifdef RTLD_GLOBAL | ||
11803 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11804 | #else | ||
11805 | # ifdef DL_GLOBAL | ||
11806 | # define LT_DLGLOBAL DL_GLOBAL | ||
11807 | # else | ||
11808 | # define LT_DLGLOBAL 0 | ||
11809 | # endif | ||
11810 | #endif | ||
11811 | |||
11812 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11813 | find out it does not work in some platform. */ | ||
11814 | #ifndef LT_DLLAZY_OR_NOW | ||
11815 | # ifdef RTLD_LAZY | ||
11816 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11817 | # else | ||
11818 | # ifdef DL_LAZY | ||
11819 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11820 | # else | ||
11821 | # ifdef RTLD_NOW | ||
11822 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11823 | # else | ||
11824 | # ifdef DL_NOW | ||
11825 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11826 | # else | ||
11827 | # define LT_DLLAZY_OR_NOW 0 | ||
11828 | # endif | ||
11829 | # endif | ||
11830 | # endif | ||
11831 | # endif | ||
11832 | #endif | ||
11833 | |||
11834 | void fnord() { int i=42;} | ||
11835 | int main () | ||
11836 | { | ||
11837 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11838 | int status = $lt_dlunknown; | ||
11839 | |||
11840 | if (self) | ||
11841 | { | ||
11842 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11843 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11844 | /* dlclose (self); */ | ||
11845 | } | ||
11846 | else | ||
11847 | puts (dlerror ()); | ||
11848 | |||
11849 | return status; | ||
11850 | } | ||
11851 | _LT_EOF | ||
11852 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11853 | (eval $ac_link) 2>&5 | ||
11854 | ac_status=$? | ||
11855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11856 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11857 | (./conftest; exit; ) >&5 2>/dev/null | ||
11858 | lt_status=$? | ||
11859 | case x$lt_status in | ||
11860 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11861 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11862 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
11863 | esac | ||
11864 | else : | ||
11865 | # compilation failed | ||
11866 | lt_cv_dlopen_self_static=no | ||
11867 | fi | ||
11868 | fi | ||
11869 | rm -fr conftest* | ||
11870 | |||
11871 | |||
11872 | fi | ||
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
11874 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
11875 | fi | ||
11876 | |||
11877 | CPPFLAGS="$save_CPPFLAGS" | ||
11878 | LDFLAGS="$save_LDFLAGS" | ||
11879 | LIBS="$save_LIBS" | ||
11880 | ;; | ||
11881 | esac | ||
11882 | |||
11883 | case $lt_cv_dlopen_self in | ||
11884 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
11885 | *) enable_dlopen_self=unknown ;; | ||
11886 | esac | ||
11887 | |||
11888 | case $lt_cv_dlopen_self_static in | ||
11889 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
11890 | *) enable_dlopen_self_static=unknown ;; | ||
11891 | esac | ||
11892 | fi | ||
11893 | |||
11894 | |||
11895 | |||
11896 | |||
11897 | |||
11898 | |||
11899 | |||
11900 | |||
11901 | |||
11902 | |||
11903 | |||
11904 | |||
11905 | |||
11906 | |||
11907 | |||
11908 | |||
11909 | |||
11910 | striplib= | ||
11911 | old_striplib= | ||
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
11913 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
11914 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
11915 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
11916 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11918 | $as_echo "yes" >&6; } | ||
11919 | else | ||
11920 | # FIXME - insert some real tests, host_os isn't really good enough | ||
11921 | case $host_os in | ||
11922 | darwin*) | ||
11923 | if test -n "$STRIP" ; then | ||
11924 | striplib="$STRIP -x" | ||
11925 | old_striplib="$STRIP -S" | ||
11926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11927 | $as_echo "yes" >&6; } | ||
11928 | else | ||
11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11930 | $as_echo "no" >&6; } | ||
11931 | fi | ||
11932 | ;; | ||
11933 | *) | ||
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11935 | $as_echo "no" >&6; } | ||
11936 | ;; | ||
11937 | esac | ||
11938 | fi | ||
11939 | |||
11940 | |||
11941 | |||
11942 | |||
11943 | |||
11944 | |||
11945 | |||
11946 | |||
11947 | |||
11948 | |||
11949 | |||
11950 | |||
11951 | # Report which library types will actually be built | ||
11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
11953 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
11955 | $as_echo "$can_build_shared" >&6; } | ||
11956 | |||
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
11958 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
11959 | test "$can_build_shared" = "no" && enable_shared=no | ||
11960 | |||
11961 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
11962 | # are all built from PIC. | ||
11963 | case $host_os in | ||
11964 | aix3*) | ||
11965 | test "$enable_shared" = yes && enable_static=no | ||
11966 | if test -n "$RANLIB"; then | ||
11967 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
11968 | postinstall_cmds='$RANLIB $lib' | ||
11969 | fi | ||
11970 | ;; | ||
11971 | |||
11972 | aix[4-9]*) | ||
11973 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
11974 | test "$enable_shared" = yes && enable_static=no | ||
11975 | fi | ||
11976 | ;; | ||
11977 | esac | ||
11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
11979 | $as_echo "$enable_shared" >&6; } | ||
11980 | |||
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
11982 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
11983 | # Make sure either enable_shared or enable_static is yes. | ||
11984 | test "$enable_shared" = yes || enable_static=yes | ||
11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
11986 | $as_echo "$enable_static" >&6; } | ||
11987 | |||
11988 | |||
11989 | |||
11990 | |||
11991 | fi | ||
11992 | ac_ext=c | ||
11993 | ac_cpp='$CPP $CPPFLAGS' | ||
11994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11997 | |||
11998 | CC="$lt_save_CC" | ||
11999 | |||
12000 | |||
12001 | |||
12002 | |||
12003 | |||
12004 | |||
12005 | |||
12006 | |||
12007 | |||
12008 | |||
12009 | |||
12010 | |||
12011 | |||
12012 | ac_config_commands="$ac_config_commands libtool" | ||
12013 | |||
12014 | |||
12015 | |||
12016 | |||
12017 | # Only expand once: | ||
12018 | |||
12019 | |||
12020 | |||
12021 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12022 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12023 | |||
12024 | |||
12025 | |||
12026 | cat >>confdefs.h <<_ACEOF | ||
12027 | #define VERS_MAJ 1 | ||
12028 | _ACEOF | ||
12029 | |||
12030 | |||
12031 | cat >>confdefs.h <<_ACEOF | ||
12032 | #define VERS_MIN 1 | ||
12033 | _ACEOF | ||
12034 | |||
12035 | |||
12036 | cat >>confdefs.h <<_ACEOF | ||
12037 | #define VERS_MIC 0 | ||
12038 | _ACEOF | ||
12039 | |||
12040 | |||
12041 | cat >>confdefs.h <<_ACEOF | ||
12042 | #define VERS_REV 0 | ||
12043 | _ACEOF | ||
12044 | |||
12045 | version_info="2:0:1" | ||
12046 | release_info="" | ||
12047 | |||
12048 | |||
12049 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12050 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12051 | VMAJ=1 | ||
12052 | |||
12053 | |||
12054 | |||
12055 | |||
12056 | |||
12057 | |||
12058 | |||
12059 | |||
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | ||
12061 | $as_echo_n "checking whether NLS is requested... " >&6; } | ||
12062 | # Check whether --enable-nls was given. | ||
12063 | if test "${enable_nls+set}" = set; then : | ||
12064 | enableval=$enable_nls; USE_NLS=$enableval | ||
12065 | else | ||
12066 | USE_NLS=yes | ||
12067 | fi | ||
12068 | |||
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | ||
12070 | $as_echo "$USE_NLS" >&6; } | ||
12071 | |||
12072 | |||
12073 | |||
12074 | |||
12075 | GETTEXT_MACRO_VERSION=0.17 | ||
12076 | |||
12077 | |||
12078 | |||
12079 | |||
12080 | # Prepare PATH_SEPARATOR. | ||
12081 | # The user is always right. | ||
12082 | if test "${PATH_SEPARATOR+set}" != set; then | ||
12083 | echo "#! /bin/sh" >conf$$.sh | ||
12084 | echo "exit 0" >>conf$$.sh | ||
12085 | chmod +x conf$$.sh | ||
12086 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
12087 | PATH_SEPARATOR=';' | ||
12088 | else | ||
12089 | PATH_SEPARATOR=: | ||
12090 | fi | ||
12091 | rm -f conf$$.sh | ||
12092 | fi | ||
12093 | |||
12094 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
12095 | # as systems may use methods other than mode bits to determine executability. | ||
12096 | cat >conf$$.file <<_ASEOF | ||
12097 | #! /bin/sh | ||
12098 | exit 0 | ||
12099 | _ASEOF | ||
12100 | chmod +x conf$$.file | ||
12101 | if test -x conf$$.file >/dev/null 2>&1; then | ||
12102 | ac_executable_p="test -x" | ||
12103 | else | ||
12104 | ac_executable_p="test -f" | ||
12105 | fi | ||
12106 | rm -f conf$$.file | ||
12107 | |||
12108 | # Extract the first word of "msgfmt", so it can be a program name with args. | ||
12109 | set dummy msgfmt; ac_word=$2 | ||
12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12111 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12112 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | ||
12113 | $as_echo_n "(cached) " >&6 | ||
12114 | else | ||
12115 | case "$MSGFMT" in | ||
12116 | [\\/]* | ?:[\\/]*) | ||
12117 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | ||
12118 | ;; | ||
12119 | *) | ||
12120 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
12121 | for ac_dir in $PATH; do | ||
12122 | IFS="$ac_save_IFS" | ||
12123 | test -z "$ac_dir" && ac_dir=. | ||
12124 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12125 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
12126 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | ||
12127 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | ||
12128 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
12129 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | ||
12130 | break 2 | ||
12131 | fi | ||
12132 | fi | ||
12133 | done | ||
12134 | done | ||
12135 | IFS="$ac_save_IFS" | ||
12136 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | ||
12137 | ;; | ||
12138 | esac | ||
12139 | fi | ||
12140 | MSGFMT="$ac_cv_path_MSGFMT" | ||
12141 | if test "$MSGFMT" != ":"; then | ||
12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | ||
12143 | $as_echo "$MSGFMT" >&6; } | ||
12144 | else | ||
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12146 | $as_echo "no" >&6; } | ||
12147 | fi | ||
12148 | |||
12149 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | ||
12150 | set dummy gmsgfmt; ac_word=$2 | ||
12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12152 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12153 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | ||
12154 | $as_echo_n "(cached) " >&6 | ||
12155 | else | ||
12156 | case $GMSGFMT in | ||
12157 | [\\/]* | ?:[\\/]*) | ||
12158 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | ||
12159 | ;; | ||
12160 | *) | ||
12161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12162 | for as_dir in $PATH | ||
12163 | do | ||
12164 | IFS=$as_save_IFS | ||
12165 | test -z "$as_dir" && as_dir=. | ||
12166 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12168 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | ||
12169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12170 | break 2 | ||
12171 | fi | ||
12172 | done | ||
12173 | done | ||
12174 | IFS=$as_save_IFS | ||
12175 | |||
12176 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | ||
12177 | ;; | ||
12178 | esac | ||
12179 | fi | ||
12180 | GMSGFMT=$ac_cv_path_GMSGFMT | ||
12181 | if test -n "$GMSGFMT"; then | ||
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | ||
12183 | $as_echo "$GMSGFMT" >&6; } | ||
12184 | else | ||
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12186 | $as_echo "no" >&6; } | ||
12187 | fi | ||
12188 | |||
12189 | |||
12190 | |||
12191 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
12192 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | ||
12193 | *) MSGFMT_015=$MSGFMT ;; | ||
12194 | esac | ||
12195 | |||
12196 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
12197 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | ||
12198 | *) GMSGFMT_015=$GMSGFMT ;; | ||
12199 | esac | ||
12200 | |||
12201 | |||
12202 | |||
12203 | # Prepare PATH_SEPARATOR. | ||
12204 | # The user is always right. | ||
12205 | if test "${PATH_SEPARATOR+set}" != set; then | ||
12206 | echo "#! /bin/sh" >conf$$.sh | ||
12207 | echo "exit 0" >>conf$$.sh | ||
12208 | chmod +x conf$$.sh | ||
12209 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
12210 | PATH_SEPARATOR=';' | ||
12211 | else | ||
12212 | PATH_SEPARATOR=: | ||
12213 | fi | ||
12214 | rm -f conf$$.sh | ||
12215 | fi | ||
12216 | |||
12217 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
12218 | # as systems may use methods other than mode bits to determine executability. | ||
12219 | cat >conf$$.file <<_ASEOF | ||
12220 | #! /bin/sh | ||
12221 | exit 0 | ||
12222 | _ASEOF | ||
12223 | chmod +x conf$$.file | ||
12224 | if test -x conf$$.file >/dev/null 2>&1; then | ||
12225 | ac_executable_p="test -x" | ||
12226 | else | ||
12227 | ac_executable_p="test -f" | ||
12228 | fi | ||
12229 | rm -f conf$$.file | ||
12230 | |||
12231 | # Extract the first word of "xgettext", so it can be a program name with args. | ||
12232 | set dummy xgettext; ac_word=$2 | ||
12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12234 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12235 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | ||
12236 | $as_echo_n "(cached) " >&6 | ||
12237 | else | ||
12238 | case "$XGETTEXT" in | ||
12239 | [\\/]* | ?:[\\/]*) | ||
12240 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | ||
12241 | ;; | ||
12242 | *) | ||
12243 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
12244 | for ac_dir in $PATH; do | ||
12245 | IFS="$ac_save_IFS" | ||
12246 | test -z "$ac_dir" && ac_dir=. | ||
12247 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12248 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
12249 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | ||
12250 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | ||
12251 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
12252 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | ||
12253 | break 2 | ||
12254 | fi | ||
12255 | fi | ||
12256 | done | ||
12257 | done | ||
12258 | IFS="$ac_save_IFS" | ||
12259 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | ||
12260 | ;; | ||
12261 | esac | ||
12262 | fi | ||
12263 | XGETTEXT="$ac_cv_path_XGETTEXT" | ||
12264 | if test "$XGETTEXT" != ":"; then | ||
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | ||
12266 | $as_echo "$XGETTEXT" >&6; } | ||
12267 | else | ||
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12269 | $as_echo "no" >&6; } | ||
12270 | fi | ||
12271 | |||
12272 | rm -f messages.po | ||
12273 | |||
12274 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
12275 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | ||
12276 | *) XGETTEXT_015=$XGETTEXT ;; | ||
12277 | esac | ||
12278 | |||
12279 | |||
12280 | |||
12281 | # Prepare PATH_SEPARATOR. | ||
12282 | # The user is always right. | ||
12283 | if test "${PATH_SEPARATOR+set}" != set; then | ||
12284 | echo "#! /bin/sh" >conf$$.sh | ||
12285 | echo "exit 0" >>conf$$.sh | ||
12286 | chmod +x conf$$.sh | ||
12287 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
12288 | PATH_SEPARATOR=';' | ||
12289 | else | ||
12290 | PATH_SEPARATOR=: | ||
12291 | fi | ||
12292 | rm -f conf$$.sh | ||
12293 | fi | ||
12294 | |||
12295 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
12296 | # as systems may use methods other than mode bits to determine executability. | ||
12297 | cat >conf$$.file <<_ASEOF | ||
12298 | #! /bin/sh | ||
12299 | exit 0 | ||
12300 | _ASEOF | ||
12301 | chmod +x conf$$.file | ||
12302 | if test -x conf$$.file >/dev/null 2>&1; then | ||
12303 | ac_executable_p="test -x" | ||
12304 | else | ||
12305 | ac_executable_p="test -f" | ||
12306 | fi | ||
12307 | rm -f conf$$.file | ||
12308 | |||
12309 | # Extract the first word of "msgmerge", so it can be a program name with args. | ||
12310 | set dummy msgmerge; ac_word=$2 | ||
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12312 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12313 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | ||
12314 | $as_echo_n "(cached) " >&6 | ||
12315 | else | ||
12316 | case "$MSGMERGE" in | ||
12317 | [\\/]* | ?:[\\/]*) | ||
12318 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | ||
12319 | ;; | ||
12320 | *) | ||
12321 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
12322 | for ac_dir in $PATH; do | ||
12323 | IFS="$ac_save_IFS" | ||
12324 | test -z "$ac_dir" && ac_dir=. | ||
12325 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12326 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
12327 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | ||
12328 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | ||
12329 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | ||
12330 | break 2 | ||
12331 | fi | ||
12332 | fi | ||
12333 | done | ||
12334 | done | ||
12335 | IFS="$ac_save_IFS" | ||
12336 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | ||
12337 | ;; | ||
12338 | esac | ||
12339 | fi | ||
12340 | MSGMERGE="$ac_cv_path_MSGMERGE" | ||
12341 | if test "$MSGMERGE" != ":"; then | ||
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | ||
12343 | $as_echo "$MSGMERGE" >&6; } | ||
12344 | else | ||
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12346 | $as_echo "no" >&6; } | ||
12347 | fi | ||
12348 | |||
12349 | |||
12350 | test -n "$localedir" || localedir='${datadir}/locale' | ||
12351 | |||
12352 | |||
12353 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | ||
12354 | |||
12355 | |||
12356 | ac_config_commands="$ac_config_commands po-directories" | ||
12357 | |||
12358 | |||
12359 | |||
12360 | if test "X$prefix" = "XNONE"; then | ||
12361 | acl_final_prefix="$ac_default_prefix" | ||
12362 | else | ||
12363 | acl_final_prefix="$prefix" | ||
12364 | fi | ||
12365 | if test "X$exec_prefix" = "XNONE"; then | ||
12366 | acl_final_exec_prefix='${prefix}' | ||
12367 | else | ||
12368 | acl_final_exec_prefix="$exec_prefix" | ||
12369 | fi | ||
12370 | acl_save_prefix="$prefix" | ||
12371 | prefix="$acl_final_prefix" | ||
12372 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | ||
12373 | prefix="$acl_save_prefix" | ||
12374 | |||
12375 | |||
12376 | # Check whether --with-gnu-ld was given. | ||
12377 | if test "${with_gnu_ld+set}" = set; then : | ||
12378 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
12379 | else | ||
12380 | with_gnu_ld=no | ||
12381 | fi | ||
12382 | |||
12383 | # Prepare PATH_SEPARATOR. | ||
12384 | # The user is always right. | ||
12385 | if test "${PATH_SEPARATOR+set}" != set; then | ||
12386 | echo "#! /bin/sh" >conf$$.sh | ||
12387 | echo "exit 0" >>conf$$.sh | ||
12388 | chmod +x conf$$.sh | ||
12389 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
12390 | PATH_SEPARATOR=';' | ||
12391 | else | ||
12392 | PATH_SEPARATOR=: | ||
12393 | fi | ||
12394 | rm -f conf$$.sh | ||
12395 | fi | ||
12396 | ac_prog=ld | ||
12397 | if test "$GCC" = yes; then | ||
12398 | # Check if gcc -print-prog-name=ld gives a path. | ||
12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | ||
12400 | $as_echo_n "checking for ld used by GCC... " >&6; } | ||
12401 | case $host in | ||
12402 | *-*-mingw*) | ||
12403 | # gcc leaves a trailing carriage return which upsets mingw | ||
12404 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
12405 | *) | ||
12406 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
12407 | esac | ||
12408 | case $ac_prog in | ||
12409 | # Accept absolute paths. | ||
12410 | [\\/]* | [A-Za-z]:[\\/]*) | ||
12411 | re_direlt='/[^/][^/]*/\.\./' | ||
12412 | # Canonicalize the path of ld | ||
12413 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
12414 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
12415 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | ||
12416 | done | ||
12417 | test -z "$LD" && LD="$ac_prog" | ||
12418 | ;; | ||
12419 | "") | ||
12420 | # If it fails, then pretend we aren't using GCC. | ||
12421 | ac_prog=ld | ||
12422 | ;; | ||
12423 | *) | ||
12424 | # If it is relative, then search for the first ld in PATH. | ||
12425 | with_gnu_ld=unknown | ||
12426 | ;; | ||
12427 | esac | ||
12428 | elif test "$with_gnu_ld" = yes; then | ||
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
12430 | $as_echo_n "checking for GNU ld... " >&6; } | ||
12431 | else | ||
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
12433 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
12434 | fi | ||
12435 | if test "${acl_cv_path_LD+set}" = set; then : | ||
12436 | $as_echo_n "(cached) " >&6 | ||
12437 | else | ||
12438 | if test -z "$LD"; then | ||
12439 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | ||
12440 | for ac_dir in $PATH; do | ||
12441 | test -z "$ac_dir" && ac_dir=. | ||
12442 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
12443 | acl_cv_path_LD="$ac_dir/$ac_prog" | ||
12444 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
12445 | # but apparently some GNU ld's only accept -v. | ||
12446 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
12447 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | ||
12448 | *GNU* | *'with BFD'*) | ||
12449 | test "$with_gnu_ld" != no && break ;; | ||
12450 | *) | ||
12451 | test "$with_gnu_ld" != yes && break ;; | ||
12452 | esac | ||
12453 | fi | ||
12454 | done | ||
12455 | IFS="$ac_save_ifs" | ||
12456 | else | ||
12457 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | ||
12458 | fi | ||
12459 | fi | ||
12460 | |||
12461 | LD="$acl_cv_path_LD" | ||
12462 | if test -n "$LD"; then | ||
12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
12464 | $as_echo "$LD" >&6; } | ||
12465 | else | ||
12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12467 | $as_echo "no" >&6; } | ||
12468 | fi | ||
12469 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
12471 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
12472 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | ||
12473 | $as_echo_n "(cached) " >&6 | ||
12474 | else | ||
12475 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
12476 | case `$LD -v 2>&1 </dev/null` in | ||
12477 | *GNU* | *'with BFD'*) | ||
12478 | acl_cv_prog_gnu_ld=yes ;; | ||
12479 | *) | ||
12480 | acl_cv_prog_gnu_ld=no ;; | ||
12481 | esac | ||
12482 | fi | ||
12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | ||
12484 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | ||
12485 | with_gnu_ld=$acl_cv_prog_gnu_ld | ||
12486 | |||
12487 | |||
12488 | |||
12489 | |||
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | ||
12491 | $as_echo_n "checking for shared library run path origin... " >&6; } | ||
12492 | if test "${acl_cv_rpath+set}" = set; then : | ||
12493 | $as_echo_n "(cached) " >&6 | ||
12494 | else | ||
12495 | |||
12496 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | ||
12497 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | ||
12498 | . ./conftest.sh | ||
12499 | rm -f ./conftest.sh | ||
12500 | acl_cv_rpath=done | ||
12501 | |||
12502 | fi | ||
12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | ||
12504 | $as_echo "$acl_cv_rpath" >&6; } | ||
12505 | wl="$acl_cv_wl" | ||
12506 | acl_libext="$acl_cv_libext" | ||
12507 | acl_shlibext="$acl_cv_shlibext" | ||
12508 | acl_libname_spec="$acl_cv_libname_spec" | ||
12509 | acl_library_names_spec="$acl_cv_library_names_spec" | ||
12510 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
12511 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
12512 | acl_hardcode_direct="$acl_cv_hardcode_direct" | ||
12513 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
12514 | # Check whether --enable-rpath was given. | ||
12515 | if test "${enable_rpath+set}" = set; then : | ||
12516 | enableval=$enable_rpath; : | ||
12517 | else | ||
12518 | enable_rpath=yes | ||
12519 | fi | ||
12520 | |||
12521 | |||
12522 | |||
12523 | acl_libdirstem=lib | ||
12524 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | ||
12525 | if test -n "$searchpath"; then | ||
12526 | acl_save_IFS="${IFS= }"; IFS=":" | ||
12527 | for searchdir in $searchpath; do | ||
12528 | if test -d "$searchdir"; then | ||
12529 | case "$searchdir" in | ||
12530 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | ||
12531 | *) searchdir=`cd "$searchdir" && pwd` | ||
12532 | case "$searchdir" in | ||
12533 | */lib64 ) acl_libdirstem=lib64 ;; | ||
12534 | esac ;; | ||
12535 | esac | ||
12536 | fi | ||
12537 | done | ||
12538 | IFS="$acl_save_IFS" | ||
12539 | fi | ||
12540 | |||
12541 | |||
12542 | |||
12543 | |||
12544 | |||
12545 | |||
12546 | |||
12547 | |||
12548 | |||
12549 | use_additional=yes | ||
12550 | |||
12551 | acl_save_prefix="$prefix" | ||
12552 | prefix="$acl_final_prefix" | ||
12553 | acl_save_exec_prefix="$exec_prefix" | ||
12554 | exec_prefix="$acl_final_exec_prefix" | ||
12555 | |||
12556 | eval additional_includedir=\"$includedir\" | ||
12557 | eval additional_libdir=\"$libdir\" | ||
12558 | |||
12559 | exec_prefix="$acl_save_exec_prefix" | ||
12560 | prefix="$acl_save_prefix" | ||
12561 | |||
12562 | |||
12563 | # Check whether --with-libiconv-prefix was given. | ||
12564 | if test "${with_libiconv_prefix+set}" = set; then : | ||
12565 | withval=$with_libiconv_prefix; | ||
12566 | if test "X$withval" = "Xno"; then | ||
12567 | use_additional=no | ||
12568 | else | ||
12569 | if test "X$withval" = "X"; then | ||
12570 | |||
12571 | acl_save_prefix="$prefix" | ||
12572 | prefix="$acl_final_prefix" | ||
12573 | acl_save_exec_prefix="$exec_prefix" | ||
12574 | exec_prefix="$acl_final_exec_prefix" | ||
12575 | |||
12576 | eval additional_includedir=\"$includedir\" | ||
12577 | eval additional_libdir=\"$libdir\" | ||
12578 | |||
12579 | exec_prefix="$acl_save_exec_prefix" | ||
12580 | prefix="$acl_save_prefix" | ||
12581 | |||
12582 | else | ||
12583 | additional_includedir="$withval/include" | ||
12584 | additional_libdir="$withval/$acl_libdirstem" | ||
12585 | fi | ||
12586 | fi | ||
12587 | |||
12588 | fi | ||
12589 | |||
12590 | LIBICONV= | ||
12591 | LTLIBICONV= | ||
12592 | INCICONV= | ||
12593 | LIBICONV_PREFIX= | ||
12594 | rpathdirs= | ||
12595 | ltrpathdirs= | ||
12596 | names_already_handled= | ||
12597 | names_next_round='iconv ' | ||
12598 | while test -n "$names_next_round"; do | ||
12599 | names_this_round="$names_next_round" | ||
12600 | names_next_round= | ||
12601 | for name in $names_this_round; do | ||
12602 | already_handled= | ||
12603 | for n in $names_already_handled; do | ||
12604 | if test "$n" = "$name"; then | ||
12605 | already_handled=yes | ||
12606 | break | ||
12607 | fi | ||
12608 | done | ||
12609 | if test -z "$already_handled"; then | ||
12610 | names_already_handled="$names_already_handled $name" | ||
12611 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | ||
12612 | eval value=\"\$HAVE_LIB$uppername\" | ||
12613 | if test -n "$value"; then | ||
12614 | if test "$value" = yes; then | ||
12615 | eval value=\"\$LIB$uppername\" | ||
12616 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | ||
12617 | eval value=\"\$LTLIB$uppername\" | ||
12618 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | ||
12619 | else | ||
12620 | : | ||
12621 | fi | ||
12622 | else | ||
12623 | found_dir= | ||
12624 | found_la= | ||
12625 | found_so= | ||
12626 | found_a= | ||
12627 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | ||
12628 | if test -n "$acl_shlibext"; then | ||
12629 | shrext=".$acl_shlibext" # typically: shrext=.so | ||
12630 | else | ||
12631 | shrext= | ||
12632 | fi | ||
12633 | if test $use_additional = yes; then | ||
12634 | dir="$additional_libdir" | ||
12635 | if test -n "$acl_shlibext"; then | ||
12636 | if test -f "$dir/$libname$shrext"; then | ||
12637 | found_dir="$dir" | ||
12638 | found_so="$dir/$libname$shrext" | ||
12639 | else | ||
12640 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
12641 | ver=`(cd "$dir" && \ | ||
12642 | for f in "$libname$shrext".*; do echo "$f"; done \ | ||
12643 | | sed -e "s,^$libname$shrext\\\\.,," \ | ||
12644 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
12645 | | sed 1q ) 2>/dev/null` | ||
12646 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
12647 | found_dir="$dir" | ||
12648 | found_so="$dir/$libname$shrext.$ver" | ||
12649 | fi | ||
12650 | else | ||
12651 | eval library_names=\"$acl_library_names_spec\" | ||
12652 | for f in $library_names; do | ||
12653 | if test -f "$dir/$f"; then | ||
12654 | found_dir="$dir" | ||
12655 | found_so="$dir/$f" | ||
12656 | break | ||
12657 | fi | ||
12658 | done | ||
12659 | fi | ||
12660 | fi | ||
12661 | fi | ||
12662 | if test "X$found_dir" = "X"; then | ||
12663 | if test -f "$dir/$libname.$acl_libext"; then | ||
12664 | found_dir="$dir" | ||
12665 | found_a="$dir/$libname.$acl_libext" | ||
12666 | fi | ||
12667 | fi | ||
12668 | if test "X$found_dir" != "X"; then | ||
12669 | if test -f "$dir/$libname.la"; then | ||
12670 | found_la="$dir/$libname.la" | ||
12671 | fi | ||
12672 | fi | ||
12673 | fi | ||
12674 | if test "X$found_dir" = "X"; then | ||
12675 | for x in $LDFLAGS $LTLIBICONV; do | ||
12676 | |||
12677 | acl_save_prefix="$prefix" | ||
12678 | prefix="$acl_final_prefix" | ||
12679 | acl_save_exec_prefix="$exec_prefix" | ||
12680 | exec_prefix="$acl_final_exec_prefix" | ||
12681 | eval x=\"$x\" | ||
12682 | exec_prefix="$acl_save_exec_prefix" | ||
12683 | prefix="$acl_save_prefix" | ||
12684 | |||
12685 | case "$x" in | ||
12686 | -L*) | ||
12687 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
12688 | if test -n "$acl_shlibext"; then | ||
12689 | if test -f "$dir/$libname$shrext"; then | ||
12690 | found_dir="$dir" | ||
12691 | found_so="$dir/$libname$shrext" | ||
12692 | else | ||
12693 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
12694 | ver=`(cd "$dir" && \ | ||
12695 | for f in "$libname$shrext".*; do echo "$f"; done \ | ||
12696 | | sed -e "s,^$libname$shrext\\\\.,," \ | ||
12697 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
12698 | | sed 1q ) 2>/dev/null` | ||
12699 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
12700 | found_dir="$dir" | ||
12701 | found_so="$dir/$libname$shrext.$ver" | ||
12702 | fi | ||
12703 | else | ||
12704 | eval library_names=\"$acl_library_names_spec\" | ||
12705 | for f in $library_names; do | ||
12706 | if test -f "$dir/$f"; then | ||
12707 | found_dir="$dir" | ||
12708 | found_so="$dir/$f" | ||
12709 | break | ||
12710 | fi | ||
12711 | done | ||
12712 | fi | ||
12713 | fi | ||
12714 | fi | ||
12715 | if test "X$found_dir" = "X"; then | ||
12716 | if test -f "$dir/$libname.$acl_libext"; then | ||
12717 | found_dir="$dir" | ||
12718 | found_a="$dir/$libname.$acl_libext" | ||
12719 | fi | ||
12720 | fi | ||
12721 | if test "X$found_dir" != "X"; then | ||
12722 | if test -f "$dir/$libname.la"; then | ||
12723 | found_la="$dir/$libname.la" | ||
12724 | fi | ||
12725 | fi | ||
12726 | ;; | ||
12727 | esac | ||
12728 | if test "X$found_dir" != "X"; then | ||
12729 | break | ||
12730 | fi | ||
12731 | done | ||
12732 | fi | ||
12733 | if test "X$found_dir" != "X"; then | ||
12734 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | ||
12735 | if test "X$found_so" != "X"; then | ||
12736 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | ||
12737 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
12738 | else | ||
12739 | haveit= | ||
12740 | for x in $ltrpathdirs; do | ||
12741 | if test "X$x" = "X$found_dir"; then | ||
12742 | haveit=yes | ||
12743 | break | ||
12744 | fi | ||
12745 | done | ||
12746 | if test -z "$haveit"; then | ||
12747 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
12748 | fi | ||
12749 | if test "$acl_hardcode_direct" = yes; then | ||
12750 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
12751 | else | ||
12752 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | ||
12753 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
12754 | haveit= | ||
12755 | for x in $rpathdirs; do | ||
12756 | if test "X$x" = "X$found_dir"; then | ||
12757 | haveit=yes | ||
12758 | break | ||
12759 | fi | ||
12760 | done | ||
12761 | if test -z "$haveit"; then | ||
12762 | rpathdirs="$rpathdirs $found_dir" | ||
12763 | fi | ||
12764 | else | ||
12765 | haveit= | ||
12766 | for x in $LDFLAGS $LIBICONV; do | ||
12767 | |||
12768 | acl_save_prefix="$prefix" | ||
12769 | prefix="$acl_final_prefix" | ||
12770 | acl_save_exec_prefix="$exec_prefix" | ||
12771 | exec_prefix="$acl_final_exec_prefix" | ||
12772 | eval x=\"$x\" | ||
12773 | exec_prefix="$acl_save_exec_prefix" | ||
12774 | prefix="$acl_save_prefix" | ||
12775 | |||
12776 | if test "X$x" = "X-L$found_dir"; then | ||
12777 | haveit=yes | ||
12778 | break | ||
12779 | fi | ||
12780 | done | ||
12781 | if test -z "$haveit"; then | ||
12782 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | ||
12783 | fi | ||
12784 | if test "$acl_hardcode_minus_L" != no; then | ||
12785 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
12786 | else | ||
12787 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | ||
12788 | fi | ||
12789 | fi | ||
12790 | fi | ||
12791 | fi | ||
12792 | else | ||
12793 | if test "X$found_a" != "X"; then | ||
12794 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | ||
12795 | else | ||
12796 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | ||
12797 | fi | ||
12798 | fi | ||
12799 | additional_includedir= | ||
12800 | case "$found_dir" in | ||
12801 | */$acl_libdirstem | */$acl_libdirstem/) | ||
12802 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | ||
12803 | LIBICONV_PREFIX="$basedir" | ||
12804 | additional_includedir="$basedir/include" | ||
12805 | ;; | ||
12806 | esac | ||
12807 | if test "X$additional_includedir" != "X"; then | ||
12808 | if test "X$additional_includedir" != "X/usr/include"; then | ||
12809 | haveit= | ||
12810 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
12811 | if test -n "$GCC"; then | ||
12812 | case $host_os in | ||
12813 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
12814 | esac | ||
12815 | fi | ||
12816 | fi | ||
12817 | if test -z "$haveit"; then | ||
12818 | for x in $CPPFLAGS $INCICONV; do | ||
12819 | |||
12820 | acl_save_prefix="$prefix" | ||
12821 | prefix="$acl_final_prefix" | ||
12822 | acl_save_exec_prefix="$exec_prefix" | ||
12823 | exec_prefix="$acl_final_exec_prefix" | ||
12824 | eval x=\"$x\" | ||
12825 | exec_prefix="$acl_save_exec_prefix" | ||
12826 | prefix="$acl_save_prefix" | ||
12827 | |||
12828 | if test "X$x" = "X-I$additional_includedir"; then | ||
12829 | haveit=yes | ||
12830 | break | ||
12831 | fi | ||
12832 | done | ||
12833 | if test -z "$haveit"; then | ||
12834 | if test -d "$additional_includedir"; then | ||
12835 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | ||
12836 | fi | ||
12837 | fi | ||
12838 | fi | ||
12839 | fi | ||
12840 | fi | ||
12841 | if test -n "$found_la"; then | ||
12842 | save_libdir="$libdir" | ||
12843 | case "$found_la" in | ||
12844 | */* | *\\*) . "$found_la" ;; | ||
12845 | *) . "./$found_la" ;; | ||
12846 | esac | ||
12847 | libdir="$save_libdir" | ||
12848 | for dep in $dependency_libs; do | ||
12849 | case "$dep" in | ||
12850 | -L*) | ||
12851 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | ||
12852 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | ||
12853 | haveit= | ||
12854 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | ||
12855 | if test -n "$GCC"; then | ||
12856 | case $host_os in | ||
12857 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
12858 | esac | ||
12859 | fi | ||
12860 | fi | ||
12861 | if test -z "$haveit"; then | ||
12862 | haveit= | ||
12863 | for x in $LDFLAGS $LIBICONV; do | ||
12864 | |||
12865 | acl_save_prefix="$prefix" | ||
12866 | prefix="$acl_final_prefix" | ||
12867 | acl_save_exec_prefix="$exec_prefix" | ||
12868 | exec_prefix="$acl_final_exec_prefix" | ||
12869 | eval x=\"$x\" | ||
12870 | exec_prefix="$acl_save_exec_prefix" | ||
12871 | prefix="$acl_save_prefix" | ||
12872 | |||
12873 | if test "X$x" = "X-L$additional_libdir"; then | ||
12874 | haveit=yes | ||
12875 | break | ||
12876 | fi | ||
12877 | done | ||
12878 | if test -z "$haveit"; then | ||
12879 | if test -d "$additional_libdir"; then | ||
12880 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | ||
12881 | fi | ||
12882 | fi | ||
12883 | haveit= | ||
12884 | for x in $LDFLAGS $LTLIBICONV; do | ||
12885 | |||
12886 | acl_save_prefix="$prefix" | ||
12887 | prefix="$acl_final_prefix" | ||
12888 | acl_save_exec_prefix="$exec_prefix" | ||
12889 | exec_prefix="$acl_final_exec_prefix" | ||
12890 | eval x=\"$x\" | ||
12891 | exec_prefix="$acl_save_exec_prefix" | ||
12892 | prefix="$acl_save_prefix" | ||
12893 | |||
12894 | if test "X$x" = "X-L$additional_libdir"; then | ||
12895 | haveit=yes | ||
12896 | break | ||
12897 | fi | ||
12898 | done | ||
12899 | if test -z "$haveit"; then | ||
12900 | if test -d "$additional_libdir"; then | ||
12901 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | ||
12902 | fi | ||
12903 | fi | ||
12904 | fi | ||
12905 | fi | ||
12906 | ;; | ||
12907 | -R*) | ||
12908 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | ||
12909 | if test "$enable_rpath" != no; then | ||
12910 | haveit= | ||
12911 | for x in $rpathdirs; do | ||
12912 | if test "X$x" = "X$dir"; then | ||
12913 | haveit=yes | ||
12914 | break | ||
12915 | fi | ||
12916 | done | ||
12917 | if test -z "$haveit"; then | ||
12918 | rpathdirs="$rpathdirs $dir" | ||
12919 | fi | ||
12920 | haveit= | ||
12921 | for x in $ltrpathdirs; do | ||
12922 | if test "X$x" = "X$dir"; then | ||
12923 | haveit=yes | ||
12924 | break | ||
12925 | fi | ||
12926 | done | ||
12927 | if test -z "$haveit"; then | ||
12928 | ltrpathdirs="$ltrpathdirs $dir" | ||
12929 | fi | ||
12930 | fi | ||
12931 | ;; | ||
12932 | -l*) | ||
12933 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | ||
12934 | ;; | ||
12935 | *.la) | ||
12936 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | ||
12937 | ;; | ||
12938 | *) | ||
12939 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | ||
12940 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | ||
12941 | ;; | ||
12942 | esac | ||
12943 | done | ||
12944 | fi | ||
12945 | else | ||
12946 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | ||
12947 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | ||
12948 | fi | ||
12949 | fi | ||
12950 | fi | ||
12951 | done | ||
12952 | done | ||
12953 | if test "X$rpathdirs" != "X"; then | ||
12954 | if test -n "$acl_hardcode_libdir_separator"; then | ||
12955 | alldirs= | ||
12956 | for found_dir in $rpathdirs; do | ||
12957 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | ||
12958 | done | ||
12959 | acl_save_libdir="$libdir" | ||
12960 | libdir="$alldirs" | ||
12961 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
12962 | libdir="$acl_save_libdir" | ||
12963 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | ||
12964 | else | ||
12965 | for found_dir in $rpathdirs; do | ||
12966 | acl_save_libdir="$libdir" | ||
12967 | libdir="$found_dir" | ||
12968 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
12969 | libdir="$acl_save_libdir" | ||
12970 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | ||
12971 | done | ||
12972 | fi | ||
12973 | fi | ||
12974 | if test "X$ltrpathdirs" != "X"; then | ||
12975 | for found_dir in $ltrpathdirs; do | ||
12976 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | ||
12977 | done | ||
12978 | fi | ||
12979 | |||
12980 | |||
12981 | |||
12982 | |||
12983 | |||
12984 | |||
12985 | |||
12986 | |||
12987 | |||
12988 | |||
12989 | |||
12990 | |||
12991 | |||
12992 | |||
12993 | |||
12994 | |||
12995 | |||
12996 | |||
12997 | |||
12998 | |||
12999 | |||
13000 | |||
13001 | |||
13002 | |||
13003 | |||
13004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | ||
13005 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | ||
13006 | if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : | ||
13007 | $as_echo_n "(cached) " >&6 | ||
13008 | else | ||
13009 | gt_save_LIBS="$LIBS" | ||
13010 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | ||
13011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13012 | /* end confdefs.h. */ | ||
13013 | #include <CoreFoundation/CFPreferences.h> | ||
13014 | int | ||
13015 | main () | ||
13016 | { | ||
13017 | CFPreferencesCopyAppValue(NULL, NULL) | ||
13018 | ; | ||
13019 | return 0; | ||
13020 | } | ||
13021 | _ACEOF | ||
13022 | if ac_fn_c_try_link "$LINENO"; then : | ||
13023 | gt_cv_func_CFPreferencesCopyAppValue=yes | ||
13024 | else | ||
13025 | gt_cv_func_CFPreferencesCopyAppValue=no | ||
13026 | fi | ||
13027 | rm -f core conftest.err conftest.$ac_objext \ | ||
13028 | conftest$ac_exeext conftest.$ac_ext | ||
13029 | LIBS="$gt_save_LIBS" | ||
13030 | fi | ||
13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | ||
13032 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | ||
13033 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | ||
13034 | |||
13035 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | ||
13036 | |||
13037 | fi | ||
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | ||
13039 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | ||
13040 | if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : | ||
13041 | $as_echo_n "(cached) " >&6 | ||
13042 | else | ||
13043 | gt_save_LIBS="$LIBS" | ||
13044 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | ||
13045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13046 | /* end confdefs.h. */ | ||
13047 | #include <CoreFoundation/CFLocale.h> | ||
13048 | int | ||
13049 | main () | ||
13050 | { | ||
13051 | CFLocaleCopyCurrent(); | ||
13052 | ; | ||
13053 | return 0; | ||
13054 | } | ||
13055 | _ACEOF | ||
13056 | if ac_fn_c_try_link "$LINENO"; then : | ||
13057 | gt_cv_func_CFLocaleCopyCurrent=yes | ||
13058 | else | ||
13059 | gt_cv_func_CFLocaleCopyCurrent=no | ||
13060 | fi | ||
13061 | rm -f core conftest.err conftest.$ac_objext \ | ||
13062 | conftest$ac_exeext conftest.$ac_ext | ||
13063 | LIBS="$gt_save_LIBS" | ||
13064 | fi | ||
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | ||
13066 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | ||
13067 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | ||
13068 | |||
13069 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | ||
13070 | |||
13071 | fi | ||
13072 | INTL_MACOSX_LIBS= | ||
13073 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | ||
13074 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | ||
13075 | fi | ||
13076 | |||
13077 | |||
13078 | |||
13079 | |||
13080 | |||
13081 | |||
13082 | LIBINTL= | ||
13083 | LTLIBINTL= | ||
13084 | POSUB= | ||
13085 | |||
13086 | case " $gt_needs " in | ||
13087 | *" need-formatstring-macros "*) gt_api_version=3 ;; | ||
13088 | *" need-ngettext "*) gt_api_version=2 ;; | ||
13089 | *) gt_api_version=1 ;; | ||
13090 | esac | ||
13091 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | ||
13092 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | ||
13093 | |||
13094 | if test "$USE_NLS" = "yes"; then | ||
13095 | gt_use_preinstalled_gnugettext=no | ||
13096 | |||
13097 | |||
13098 | if test $gt_api_version -ge 3; then | ||
13099 | gt_revision_test_code=' | ||
13100 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | ||
13101 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | ||
13102 | #endif | ||
13103 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | ||
13104 | ' | ||
13105 | else | ||
13106 | gt_revision_test_code= | ||
13107 | fi | ||
13108 | if test $gt_api_version -ge 2; then | ||
13109 | gt_expression_test_code=' + * ngettext ("", "", 0)' | ||
13110 | else | ||
13111 | gt_expression_test_code= | ||
13112 | fi | ||
13113 | |||
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | ||
13115 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | ||
13116 | if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then : | ||
13117 | $as_echo_n "(cached) " >&6 | ||
13118 | else | ||
13119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13120 | /* end confdefs.h. */ | ||
13121 | #include <libintl.h> | ||
13122 | $gt_revision_test_code | ||
13123 | extern int _nl_msg_cat_cntr; | ||
13124 | extern int *_nl_domain_bindings; | ||
13125 | int | ||
13126 | main () | ||
13127 | { | ||
13128 | bindtextdomain ("", ""); | ||
13129 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings | ||
13130 | ; | ||
13131 | return 0; | ||
13132 | } | ||
13133 | _ACEOF | ||
13134 | if ac_fn_c_try_link "$LINENO"; then : | ||
13135 | eval "$gt_func_gnugettext_libc=yes" | ||
13136 | else | ||
13137 | eval "$gt_func_gnugettext_libc=no" | ||
13138 | fi | ||
13139 | rm -f core conftest.err conftest.$ac_objext \ | ||
13140 | conftest$ac_exeext conftest.$ac_ext | ||
13141 | fi | ||
13142 | eval ac_res=\$$gt_func_gnugettext_libc | ||
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
13144 | $as_echo "$ac_res" >&6; } | ||
13145 | |||
13146 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | ||
13147 | |||
13148 | |||
13149 | |||
13150 | |||
13151 | |||
13152 | am_save_CPPFLAGS="$CPPFLAGS" | ||
13153 | |||
13154 | for element in $INCICONV; do | ||
13155 | haveit= | ||
13156 | for x in $CPPFLAGS; do | ||
13157 | |||
13158 | acl_save_prefix="$prefix" | ||
13159 | prefix="$acl_final_prefix" | ||
13160 | acl_save_exec_prefix="$exec_prefix" | ||
13161 | exec_prefix="$acl_final_exec_prefix" | ||
13162 | eval x=\"$x\" | ||
13163 | exec_prefix="$acl_save_exec_prefix" | ||
13164 | prefix="$acl_save_prefix" | ||
13165 | |||
13166 | if test "X$x" = "X$element"; then | ||
13167 | haveit=yes | ||
13168 | break | ||
13169 | fi | ||
13170 | done | ||
13171 | if test -z "$haveit"; then | ||
13172 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | ||
13173 | fi | ||
13174 | done | ||
13175 | |||
13176 | |||
13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | ||
13178 | $as_echo_n "checking for iconv... " >&6; } | ||
13179 | if test "${am_cv_func_iconv+set}" = set; then : | ||
13180 | $as_echo_n "(cached) " >&6 | ||
13181 | else | ||
13182 | |||
13183 | am_cv_func_iconv="no, consider installing GNU libiconv" | ||
13184 | am_cv_lib_iconv=no | ||
13185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13186 | /* end confdefs.h. */ | ||
13187 | #include <stdlib.h> | ||
13188 | #include <iconv.h> | ||
13189 | int | ||
13190 | main () | ||
13191 | { | ||
13192 | iconv_t cd = iconv_open("",""); | ||
13193 | iconv(cd,NULL,NULL,NULL,NULL); | ||
13194 | iconv_close(cd); | ||
13195 | ; | ||
13196 | return 0; | ||
13197 | } | ||
13198 | _ACEOF | ||
13199 | if ac_fn_c_try_link "$LINENO"; then : | ||
13200 | am_cv_func_iconv=yes | ||
13201 | fi | ||
13202 | rm -f core conftest.err conftest.$ac_objext \ | ||
13203 | conftest$ac_exeext conftest.$ac_ext | ||
13204 | if test "$am_cv_func_iconv" != yes; then | ||
13205 | am_save_LIBS="$LIBS" | ||
13206 | LIBS="$LIBS $LIBICONV" | ||
13207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13208 | /* end confdefs.h. */ | ||
13209 | #include <stdlib.h> | ||
13210 | #include <iconv.h> | ||
13211 | int | ||
13212 | main () | ||
13213 | { | ||
13214 | iconv_t cd = iconv_open("",""); | ||
13215 | iconv(cd,NULL,NULL,NULL,NULL); | ||
13216 | iconv_close(cd); | ||
13217 | ; | ||
13218 | return 0; | ||
13219 | } | ||
13220 | _ACEOF | ||
13221 | if ac_fn_c_try_link "$LINENO"; then : | ||
13222 | am_cv_lib_iconv=yes | ||
13223 | am_cv_func_iconv=yes | ||
13224 | fi | ||
13225 | rm -f core conftest.err conftest.$ac_objext \ | ||
13226 | conftest$ac_exeext conftest.$ac_ext | ||
13227 | LIBS="$am_save_LIBS" | ||
13228 | fi | ||
13229 | |||
13230 | fi | ||
13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | ||
13232 | $as_echo "$am_cv_func_iconv" >&6; } | ||
13233 | if test "$am_cv_func_iconv" = yes; then | ||
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | ||
13235 | $as_echo_n "checking for working iconv... " >&6; } | ||
13236 | if test "${am_cv_func_iconv_works+set}" = set; then : | ||
13237 | $as_echo_n "(cached) " >&6 | ||
13238 | else | ||
13239 | |||
13240 | am_save_LIBS="$LIBS" | ||
13241 | if test $am_cv_lib_iconv = yes; then | ||
13242 | LIBS="$LIBS $LIBICONV" | ||
13243 | fi | ||
13244 | if test "$cross_compiling" = yes; then : | ||
13245 | case "$host_os" in | ||
13246 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | ||
13247 | *) am_cv_func_iconv_works="guessing yes" ;; | ||
13248 | esac | ||
13249 | else | ||
13250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13251 | /* end confdefs.h. */ | ||
13252 | |||
13253 | #include <iconv.h> | ||
13254 | #include <string.h> | ||
13255 | int main () | ||
13256 | { | ||
13257 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | ||
13258 | returns. */ | ||
13259 | { | ||
13260 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | ||
13261 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | ||
13262 | { | ||
13263 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | ||
13264 | char buf[10]; | ||
13265 | const char *inptr = input; | ||
13266 | size_t inbytesleft = strlen (input); | ||
13267 | char *outptr = buf; | ||
13268 | size_t outbytesleft = sizeof (buf); | ||
13269 | size_t res = iconv (cd_utf8_to_88591, | ||
13270 | (char **) &inptr, &inbytesleft, | ||
13271 | &outptr, &outbytesleft); | ||
13272 | if (res == 0) | ||
13273 | return 1; | ||
13274 | } | ||
13275 | } | ||
13276 | #if 0 /* This bug could be worked around by the caller. */ | ||
13277 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | ||
13278 | { | ||
13279 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | ||
13280 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | ||
13281 | { | ||
13282 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | ||
13283 | char buf[50]; | ||
13284 | const char *inptr = input; | ||
13285 | size_t inbytesleft = strlen (input); | ||
13286 | char *outptr = buf; | ||
13287 | size_t outbytesleft = sizeof (buf); | ||
13288 | size_t res = iconv (cd_88591_to_utf8, | ||
13289 | (char **) &inptr, &inbytesleft, | ||
13290 | &outptr, &outbytesleft); | ||
13291 | if ((int)res > 0) | ||
13292 | return 1; | ||
13293 | } | ||
13294 | } | ||
13295 | #endif | ||
13296 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | ||
13297 | provided. */ | ||
13298 | if (/* Try standardized names. */ | ||
13299 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | ||
13300 | /* Try IRIX, OSF/1 names. */ | ||
13301 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | ||
13302 | /* Try AIX names. */ | ||
13303 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | ||
13304 | /* Try HP-UX names. */ | ||
13305 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | ||
13306 | return 1; | ||
13307 | return 0; | ||
13308 | } | ||
13309 | _ACEOF | ||
13310 | if ac_fn_c_try_run "$LINENO"; then : | ||
13311 | am_cv_func_iconv_works=yes | ||
13312 | else | ||
13313 | am_cv_func_iconv_works=no | ||
13314 | fi | ||
13315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13316 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13317 | fi | ||
13318 | |||
13319 | LIBS="$am_save_LIBS" | ||
13320 | |||
13321 | fi | ||
13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | ||
13323 | $as_echo "$am_cv_func_iconv_works" >&6; } | ||
13324 | case "$am_cv_func_iconv_works" in | ||
13325 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | ||
13326 | *) am_func_iconv=yes ;; | ||
13327 | esac | ||
13328 | else | ||
13329 | am_func_iconv=no am_cv_lib_iconv=no | ||
13330 | fi | ||
13331 | if test "$am_func_iconv" = yes; then | ||
13332 | |||
13333 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | ||
13334 | |||
13335 | fi | ||
13336 | if test "$am_cv_lib_iconv" = yes; then | ||
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | ||
13338 | $as_echo_n "checking how to link with libiconv... " >&6; } | ||
13339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | ||
13340 | $as_echo "$LIBICONV" >&6; } | ||
13341 | else | ||
13342 | CPPFLAGS="$am_save_CPPFLAGS" | ||
13343 | LIBICONV= | ||
13344 | LTLIBICONV= | ||
13345 | fi | ||
13346 | |||
13347 | |||
13348 | |||
13349 | |||
13350 | |||
13351 | |||
13352 | |||
13353 | |||
13354 | use_additional=yes | ||
13355 | |||
13356 | acl_save_prefix="$prefix" | ||
13357 | prefix="$acl_final_prefix" | ||
13358 | acl_save_exec_prefix="$exec_prefix" | ||
13359 | exec_prefix="$acl_final_exec_prefix" | ||
13360 | |||
13361 | eval additional_includedir=\"$includedir\" | ||
13362 | eval additional_libdir=\"$libdir\" | ||
13363 | |||
13364 | exec_prefix="$acl_save_exec_prefix" | ||
13365 | prefix="$acl_save_prefix" | ||
13366 | |||
13367 | |||
13368 | # Check whether --with-libintl-prefix was given. | ||
13369 | if test "${with_libintl_prefix+set}" = set; then : | ||
13370 | withval=$with_libintl_prefix; | ||
13371 | if test "X$withval" = "Xno"; then | ||
13372 | use_additional=no | ||
13373 | else | ||
13374 | if test "X$withval" = "X"; then | ||
13375 | |||
13376 | acl_save_prefix="$prefix" | ||
13377 | prefix="$acl_final_prefix" | ||
13378 | acl_save_exec_prefix="$exec_prefix" | ||
13379 | exec_prefix="$acl_final_exec_prefix" | ||
13380 | |||
13381 | eval additional_includedir=\"$includedir\" | ||
13382 | eval additional_libdir=\"$libdir\" | ||
13383 | |||
13384 | exec_prefix="$acl_save_exec_prefix" | ||
13385 | prefix="$acl_save_prefix" | ||
13386 | |||
13387 | else | ||
13388 | additional_includedir="$withval/include" | ||
13389 | additional_libdir="$withval/$acl_libdirstem" | ||
13390 | fi | ||
13391 | fi | ||
13392 | |||
13393 | fi | ||
13394 | |||
13395 | LIBINTL= | ||
13396 | LTLIBINTL= | ||
13397 | INCINTL= | ||
13398 | LIBINTL_PREFIX= | ||
13399 | rpathdirs= | ||
13400 | ltrpathdirs= | ||
13401 | names_already_handled= | ||
13402 | names_next_round='intl ' | ||
13403 | while test -n "$names_next_round"; do | ||
13404 | names_this_round="$names_next_round" | ||
13405 | names_next_round= | ||
13406 | for name in $names_this_round; do | ||
13407 | already_handled= | ||
13408 | for n in $names_already_handled; do | ||
13409 | if test "$n" = "$name"; then | ||
13410 | already_handled=yes | ||
13411 | break | ||
13412 | fi | ||
13413 | done | ||
13414 | if test -z "$already_handled"; then | ||
13415 | names_already_handled="$names_already_handled $name" | ||
13416 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | ||
13417 | eval value=\"\$HAVE_LIB$uppername\" | ||
13418 | if test -n "$value"; then | ||
13419 | if test "$value" = yes; then | ||
13420 | eval value=\"\$LIB$uppername\" | ||
13421 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | ||
13422 | eval value=\"\$LTLIB$uppername\" | ||
13423 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | ||
13424 | else | ||
13425 | : | ||
13426 | fi | ||
13427 | else | ||
13428 | found_dir= | ||
13429 | found_la= | ||
13430 | found_so= | ||
13431 | found_a= | ||
13432 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | ||
13433 | if test -n "$acl_shlibext"; then | ||
13434 | shrext=".$acl_shlibext" # typically: shrext=.so | ||
13435 | else | ||
13436 | shrext= | ||
13437 | fi | ||
13438 | if test $use_additional = yes; then | ||
13439 | dir="$additional_libdir" | ||
13440 | if test -n "$acl_shlibext"; then | ||
13441 | if test -f "$dir/$libname$shrext"; then | ||
13442 | found_dir="$dir" | ||
13443 | found_so="$dir/$libname$shrext" | ||
13444 | else | ||
13445 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
13446 | ver=`(cd "$dir" && \ | ||
13447 | for f in "$libname$shrext".*; do echo "$f"; done \ | ||
13448 | | sed -e "s,^$libname$shrext\\\\.,," \ | ||
13449 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
13450 | | sed 1q ) 2>/dev/null` | ||
13451 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
13452 | found_dir="$dir" | ||
13453 | found_so="$dir/$libname$shrext.$ver" | ||
13454 | fi | ||
13455 | else | ||
13456 | eval library_names=\"$acl_library_names_spec\" | ||
13457 | for f in $library_names; do | ||
13458 | if test -f "$dir/$f"; then | ||
13459 | found_dir="$dir" | ||
13460 | found_so="$dir/$f" | ||
13461 | break | ||
13462 | fi | ||
13463 | done | ||
13464 | fi | ||
13465 | fi | ||
13466 | fi | ||
13467 | if test "X$found_dir" = "X"; then | ||
13468 | if test -f "$dir/$libname.$acl_libext"; then | ||
13469 | found_dir="$dir" | ||
13470 | found_a="$dir/$libname.$acl_libext" | ||
13471 | fi | ||
13472 | fi | ||
13473 | if test "X$found_dir" != "X"; then | ||
13474 | if test -f "$dir/$libname.la"; then | ||
13475 | found_la="$dir/$libname.la" | ||
13476 | fi | ||
13477 | fi | ||
13478 | fi | ||
13479 | if test "X$found_dir" = "X"; then | ||
13480 | for x in $LDFLAGS $LTLIBINTL; do | ||
13481 | |||
13482 | acl_save_prefix="$prefix" | ||
13483 | prefix="$acl_final_prefix" | ||
13484 | acl_save_exec_prefix="$exec_prefix" | ||
13485 | exec_prefix="$acl_final_exec_prefix" | ||
13486 | eval x=\"$x\" | ||
13487 | exec_prefix="$acl_save_exec_prefix" | ||
13488 | prefix="$acl_save_prefix" | ||
13489 | |||
13490 | case "$x" in | ||
13491 | -L*) | ||
13492 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
13493 | if test -n "$acl_shlibext"; then | ||
13494 | if test -f "$dir/$libname$shrext"; then | ||
13495 | found_dir="$dir" | ||
13496 | found_so="$dir/$libname$shrext" | ||
13497 | else | ||
13498 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
13499 | ver=`(cd "$dir" && \ | ||
13500 | for f in "$libname$shrext".*; do echo "$f"; done \ | ||
13501 | | sed -e "s,^$libname$shrext\\\\.,," \ | ||
13502 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
13503 | | sed 1q ) 2>/dev/null` | ||
13504 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
13505 | found_dir="$dir" | ||
13506 | found_so="$dir/$libname$shrext.$ver" | ||
13507 | fi | ||
13508 | else | ||
13509 | eval library_names=\"$acl_library_names_spec\" | ||
13510 | for f in $library_names; do | ||
13511 | if test -f "$dir/$f"; then | ||
13512 | found_dir="$dir" | ||
13513 | found_so="$dir/$f" | ||
13514 | break | ||
13515 | fi | ||
13516 | done | ||
13517 | fi | ||
13518 | fi | ||
13519 | fi | ||
13520 | if test "X$found_dir" = "X"; then | ||
13521 | if test -f "$dir/$libname.$acl_libext"; then | ||
13522 | found_dir="$dir" | ||
13523 | found_a="$dir/$libname.$acl_libext" | ||
13524 | fi | ||
13525 | fi | ||
13526 | if test "X$found_dir" != "X"; then | ||
13527 | if test -f "$dir/$libname.la"; then | ||
13528 | found_la="$dir/$libname.la" | ||
13529 | fi | ||
13530 | fi | ||
13531 | ;; | ||
13532 | esac | ||
13533 | if test "X$found_dir" != "X"; then | ||
13534 | break | ||
13535 | fi | ||
13536 | done | ||
13537 | fi | ||
13538 | if test "X$found_dir" != "X"; then | ||
13539 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | ||
13540 | if test "X$found_so" != "X"; then | ||
13541 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | ||
13542 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
13543 | else | ||
13544 | haveit= | ||
13545 | for x in $ltrpathdirs; do | ||
13546 | if test "X$x" = "X$found_dir"; then | ||
13547 | haveit=yes | ||
13548 | break | ||
13549 | fi | ||
13550 | done | ||
13551 | if test -z "$haveit"; then | ||
13552 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
13553 | fi | ||
13554 | if test "$acl_hardcode_direct" = yes; then | ||
13555 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
13556 | else | ||
13557 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | ||
13558 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
13559 | haveit= | ||
13560 | for x in $rpathdirs; do | ||
13561 | if test "X$x" = "X$found_dir"; then | ||
13562 | haveit=yes | ||
13563 | break | ||
13564 | fi | ||
13565 | done | ||
13566 | if test -z "$haveit"; then | ||
13567 | rpathdirs="$rpathdirs $found_dir" | ||
13568 | fi | ||
13569 | else | ||
13570 | haveit= | ||
13571 | for x in $LDFLAGS $LIBINTL; do | ||
13572 | |||
13573 | acl_save_prefix="$prefix" | ||
13574 | prefix="$acl_final_prefix" | ||
13575 | acl_save_exec_prefix="$exec_prefix" | ||
13576 | exec_prefix="$acl_final_exec_prefix" | ||
13577 | eval x=\"$x\" | ||
13578 | exec_prefix="$acl_save_exec_prefix" | ||
13579 | prefix="$acl_save_prefix" | ||
13580 | |||
13581 | if test "X$x" = "X-L$found_dir"; then | ||
13582 | haveit=yes | ||
13583 | break | ||
13584 | fi | ||
13585 | done | ||
13586 | if test -z "$haveit"; then | ||
13587 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | ||
13588 | fi | ||
13589 | if test "$acl_hardcode_minus_L" != no; then | ||
13590 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
13591 | else | ||
13592 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | ||
13593 | fi | ||
13594 | fi | ||
13595 | fi | ||
13596 | fi | ||
13597 | else | ||
13598 | if test "X$found_a" != "X"; then | ||
13599 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | ||
13600 | else | ||
13601 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | ||
13602 | fi | ||
13603 | fi | ||
13604 | additional_includedir= | ||
13605 | case "$found_dir" in | ||
13606 | */$acl_libdirstem | */$acl_libdirstem/) | ||
13607 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | ||
13608 | LIBINTL_PREFIX="$basedir" | ||
13609 | additional_includedir="$basedir/include" | ||
13610 | ;; | ||
13611 | esac | ||
13612 | if test "X$additional_includedir" != "X"; then | ||
13613 | if test "X$additional_includedir" != "X/usr/include"; then | ||
13614 | haveit= | ||
13615 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
13616 | if test -n "$GCC"; then | ||
13617 | case $host_os in | ||
13618 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
13619 | esac | ||
13620 | fi | ||
13621 | fi | ||
13622 | if test -z "$haveit"; then | ||
13623 | for x in $CPPFLAGS $INCINTL; do | ||
13624 | |||
13625 | acl_save_prefix="$prefix" | ||
13626 | prefix="$acl_final_prefix" | ||
13627 | acl_save_exec_prefix="$exec_prefix" | ||
13628 | exec_prefix="$acl_final_exec_prefix" | ||
13629 | eval x=\"$x\" | ||
13630 | exec_prefix="$acl_save_exec_prefix" | ||
13631 | prefix="$acl_save_prefix" | ||
13632 | |||
13633 | if test "X$x" = "X-I$additional_includedir"; then | ||
13634 | haveit=yes | ||
13635 | break | ||
13636 | fi | ||
13637 | done | ||
13638 | if test -z "$haveit"; then | ||
13639 | if test -d "$additional_includedir"; then | ||
13640 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | ||
13641 | fi | ||
13642 | fi | ||
13643 | fi | ||
13644 | fi | ||
13645 | fi | ||
13646 | if test -n "$found_la"; then | ||
13647 | save_libdir="$libdir" | ||
13648 | case "$found_la" in | ||
13649 | */* | *\\*) . "$found_la" ;; | ||
13650 | *) . "./$found_la" ;; | ||
13651 | esac | ||
13652 | libdir="$save_libdir" | ||
13653 | for dep in $dependency_libs; do | ||
13654 | case "$dep" in | ||
13655 | -L*) | ||
13656 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | ||
13657 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | ||
13658 | haveit= | ||
13659 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | ||
13660 | if test -n "$GCC"; then | ||
13661 | case $host_os in | ||
13662 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
13663 | esac | ||
13664 | fi | ||
13665 | fi | ||
13666 | if test -z "$haveit"; then | ||
13667 | haveit= | ||
13668 | for x in $LDFLAGS $LIBINTL; do | ||
13669 | |||
13670 | acl_save_prefix="$prefix" | ||
13671 | prefix="$acl_final_prefix" | ||
13672 | acl_save_exec_prefix="$exec_prefix" | ||
13673 | exec_prefix="$acl_final_exec_prefix" | ||
13674 | eval x=\"$x\" | ||
13675 | exec_prefix="$acl_save_exec_prefix" | ||
13676 | prefix="$acl_save_prefix" | ||
13677 | |||
13678 | if test "X$x" = "X-L$additional_libdir"; then | ||
13679 | haveit=yes | ||
13680 | break | ||
13681 | fi | ||
13682 | done | ||
13683 | if test -z "$haveit"; then | ||
13684 | if test -d "$additional_libdir"; then | ||
13685 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | ||
13686 | fi | ||
13687 | fi | ||
13688 | haveit= | ||
13689 | for x in $LDFLAGS $LTLIBINTL; do | ||
13690 | |||
13691 | acl_save_prefix="$prefix" | ||
13692 | prefix="$acl_final_prefix" | ||
13693 | acl_save_exec_prefix="$exec_prefix" | ||
13694 | exec_prefix="$acl_final_exec_prefix" | ||
13695 | eval x=\"$x\" | ||
13696 | exec_prefix="$acl_save_exec_prefix" | ||
13697 | prefix="$acl_save_prefix" | ||
13698 | |||
13699 | if test "X$x" = "X-L$additional_libdir"; then | ||
13700 | haveit=yes | ||
13701 | break | ||
13702 | fi | ||
13703 | done | ||
13704 | if test -z "$haveit"; then | ||
13705 | if test -d "$additional_libdir"; then | ||
13706 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | ||
13707 | fi | ||
13708 | fi | ||
13709 | fi | ||
13710 | fi | ||
13711 | ;; | ||
13712 | -R*) | ||
13713 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | ||
13714 | if test "$enable_rpath" != no; then | ||
13715 | haveit= | ||
13716 | for x in $rpathdirs; do | ||
13717 | if test "X$x" = "X$dir"; then | ||
13718 | haveit=yes | ||
13719 | break | ||
13720 | fi | ||
13721 | done | ||
13722 | if test -z "$haveit"; then | ||
13723 | rpathdirs="$rpathdirs $dir" | ||
13724 | fi | ||
13725 | haveit= | ||
13726 | for x in $ltrpathdirs; do | ||
13727 | if test "X$x" = "X$dir"; then | ||
13728 | haveit=yes | ||
13729 | break | ||
13730 | fi | ||
13731 | done | ||
13732 | if test -z "$haveit"; then | ||
13733 | ltrpathdirs="$ltrpathdirs $dir" | ||
13734 | fi | ||
13735 | fi | ||
13736 | ;; | ||
13737 | -l*) | ||
13738 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | ||
13739 | ;; | ||
13740 | *.la) | ||
13741 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | ||
13742 | ;; | ||
13743 | *) | ||
13744 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | ||
13745 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | ||
13746 | ;; | ||
13747 | esac | ||
13748 | done | ||
13749 | fi | ||
13750 | else | ||
13751 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | ||
13752 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | ||
13753 | fi | ||
13754 | fi | ||
13755 | fi | ||
13756 | done | ||
13757 | done | ||
13758 | if test "X$rpathdirs" != "X"; then | ||
13759 | if test -n "$acl_hardcode_libdir_separator"; then | ||
13760 | alldirs= | ||
13761 | for found_dir in $rpathdirs; do | ||
13762 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | ||
13763 | done | ||
13764 | acl_save_libdir="$libdir" | ||
13765 | libdir="$alldirs" | ||
13766 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
13767 | libdir="$acl_save_libdir" | ||
13768 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | ||
13769 | else | ||
13770 | for found_dir in $rpathdirs; do | ||
13771 | acl_save_libdir="$libdir" | ||
13772 | libdir="$found_dir" | ||
13773 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
13774 | libdir="$acl_save_libdir" | ||
13775 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | ||
13776 | done | ||
13777 | fi | ||
13778 | fi | ||
13779 | if test "X$ltrpathdirs" != "X"; then | ||
13780 | for found_dir in $ltrpathdirs; do | ||
13781 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | ||
13782 | done | ||
13783 | fi | ||
13784 | |||
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | ||
13786 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | ||
13787 | if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then : | ||
13788 | $as_echo_n "(cached) " >&6 | ||
13789 | else | ||
13790 | gt_save_CPPFLAGS="$CPPFLAGS" | ||
13791 | CPPFLAGS="$CPPFLAGS $INCINTL" | ||
13792 | gt_save_LIBS="$LIBS" | ||
13793 | LIBS="$LIBS $LIBINTL" | ||
13794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13795 | /* end confdefs.h. */ | ||
13796 | #include <libintl.h> | ||
13797 | $gt_revision_test_code | ||
13798 | extern int _nl_msg_cat_cntr; | ||
13799 | extern | ||
13800 | #ifdef __cplusplus | ||
13801 | "C" | ||
13802 | #endif | ||
13803 | const char *_nl_expand_alias (const char *); | ||
13804 | int | ||
13805 | main () | ||
13806 | { | ||
13807 | bindtextdomain ("", ""); | ||
13808 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | ||
13809 | ; | ||
13810 | return 0; | ||
13811 | } | ||
13812 | _ACEOF | ||
13813 | if ac_fn_c_try_link "$LINENO"; then : | ||
13814 | eval "$gt_func_gnugettext_libintl=yes" | ||
13815 | else | ||
13816 | eval "$gt_func_gnugettext_libintl=no" | ||
13817 | fi | ||
13818 | rm -f core conftest.err conftest.$ac_objext \ | ||
13819 | conftest$ac_exeext conftest.$ac_ext | ||
13820 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | ||
13821 | LIBS="$LIBS $LIBICONV" | ||
13822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13823 | /* end confdefs.h. */ | ||
13824 | #include <libintl.h> | ||
13825 | $gt_revision_test_code | ||
13826 | extern int _nl_msg_cat_cntr; | ||
13827 | extern | ||
13828 | #ifdef __cplusplus | ||
13829 | "C" | ||
13830 | #endif | ||
13831 | const char *_nl_expand_alias (const char *); | ||
13832 | int | ||
13833 | main () | ||
13834 | { | ||
13835 | bindtextdomain ("", ""); | ||
13836 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | ||
13837 | ; | ||
13838 | return 0; | ||
13839 | } | ||
13840 | _ACEOF | ||
13841 | if ac_fn_c_try_link "$LINENO"; then : | ||
13842 | LIBINTL="$LIBINTL $LIBICONV" | ||
13843 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | ||
13844 | eval "$gt_func_gnugettext_libintl=yes" | ||
13845 | |||
13846 | fi | ||
13847 | rm -f core conftest.err conftest.$ac_objext \ | ||
13848 | conftest$ac_exeext conftest.$ac_ext | ||
13849 | fi | ||
13850 | CPPFLAGS="$gt_save_CPPFLAGS" | ||
13851 | LIBS="$gt_save_LIBS" | ||
13852 | fi | ||
13853 | eval ac_res=\$$gt_func_gnugettext_libintl | ||
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
13855 | $as_echo "$ac_res" >&6; } | ||
13856 | fi | ||
13857 | |||
13858 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ | ||
13859 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | ||
13860 | && test "$PACKAGE" != gettext-runtime \ | ||
13861 | && test "$PACKAGE" != gettext-tools; }; then | ||
13862 | gt_use_preinstalled_gnugettext=yes | ||
13863 | else | ||
13864 | LIBINTL= | ||
13865 | LTLIBINTL= | ||
13866 | INCINTL= | ||
13867 | fi | ||
13868 | |||
13869 | |||
13870 | |||
13871 | if test -n "$INTL_MACOSX_LIBS"; then | ||
13872 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | ||
13873 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | ||
13874 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | ||
13875 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | ||
13876 | fi | ||
13877 | fi | ||
13878 | |||
13879 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | ||
13880 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | ||
13881 | |||
13882 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | ||
13883 | |||
13884 | else | ||
13885 | USE_NLS=no | ||
13886 | fi | ||
13887 | fi | ||
13888 | |||
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 | ||
13890 | $as_echo_n "checking whether to use NLS... " >&6; } | ||
13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | ||
13892 | $as_echo "$USE_NLS" >&6; } | ||
13893 | if test "$USE_NLS" = "yes"; then | ||
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | ||
13895 | $as_echo_n "checking where the gettext function comes from... " >&6; } | ||
13896 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | ||
13897 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | ||
13898 | gt_source="external libintl" | ||
13899 | else | ||
13900 | gt_source="libc" | ||
13901 | fi | ||
13902 | else | ||
13903 | gt_source="included intl directory" | ||
13904 | fi | ||
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | ||
13906 | $as_echo "$gt_source" >&6; } | ||
13907 | fi | ||
13908 | |||
13909 | if test "$USE_NLS" = "yes"; then | ||
13910 | |||
13911 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | ||
13912 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | ||
13913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | ||
13914 | $as_echo_n "checking how to link with libintl... " >&6; } | ||
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | ||
13916 | $as_echo "$LIBINTL" >&6; } | ||
13917 | |||
13918 | for element in $INCINTL; do | ||
13919 | haveit= | ||
13920 | for x in $CPPFLAGS; do | ||
13921 | |||
13922 | acl_save_prefix="$prefix" | ||
13923 | prefix="$acl_final_prefix" | ||
13924 | acl_save_exec_prefix="$exec_prefix" | ||
13925 | exec_prefix="$acl_final_exec_prefix" | ||
13926 | eval x=\"$x\" | ||
13927 | exec_prefix="$acl_save_exec_prefix" | ||
13928 | prefix="$acl_save_prefix" | ||
13929 | |||
13930 | if test "X$x" = "X$element"; then | ||
13931 | haveit=yes | ||
13932 | break | ||
13933 | fi | ||
13934 | done | ||
13935 | if test -z "$haveit"; then | ||
13936 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | ||
13937 | fi | ||
13938 | done | ||
13939 | |||
13940 | fi | ||
13941 | |||
13942 | |||
13943 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h | ||
13944 | |||
13945 | |||
13946 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h | ||
13947 | |||
13948 | fi | ||
13949 | |||
13950 | POSUB=po | ||
13951 | fi | ||
13952 | |||
13953 | |||
13954 | |||
13955 | INTLLIBS="$LIBINTL" | ||
13956 | |||
13957 | |||
13958 | |||
13959 | |||
13960 | |||
13961 | |||
13962 | po_makefile_in=po/Makefile.in | ||
13963 | have_po="yes" | ||
13964 | |||
13965 | |||
13966 | |||
13967 | if test "x${POSUB}" = "x" ; then | ||
13968 | have_po="no" | ||
13969 | fi | ||
13970 | |||
13971 | if test "x${have_po}" = "xyes"; then | ||
13972 | HAVE_PO_TRUE= | ||
13973 | HAVE_PO_FALSE='#' | ||
13974 | else | ||
13975 | HAVE_PO_TRUE='#' | ||
13976 | HAVE_PO_FALSE= | ||
13977 | fi | ||
13978 | |||
13979 | |||
13980 | with_max_log_level="<unset>" | ||
13981 | |||
13982 | # Check whether --with-internal-maximum-log-level was given. | ||
13983 | if test "${with_internal_maximum_log_level+set}" = set; then : | ||
13984 | withval=$with_internal_maximum_log_level; | ||
13985 | if test "x${withval}" != "xno"; then | ||
13986 | if echo "${withval}" | grep -E '^[0-9]+$' >/dev/null 2>/dev/null; then | ||
13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: ignoring any EINA_LOG() with level greater than ${withval}" >&5 | ||
13988 | $as_echo "$as_me: ignoring any EINA_LOG() with level greater than ${withval}" >&6;} | ||
13989 | |||
13990 | cat >>confdefs.h <<_ACEOF | ||
13991 | #define EINA_LOG_LEVEL_MAXIMUM ${withval} | ||
13992 | _ACEOF | ||
13993 | |||
13994 | with_max_log_level="${withval}" | ||
13995 | else | ||
13996 | as_fn_error $? "--with-internal-maximum-log-level takes a decimal number, got \"${withval}\" instead." "$LINENO" 5 | ||
13997 | fi | ||
13998 | fi | ||
13999 | |||
14000 | else | ||
14001 | : | ||
14002 | fi | ||
14003 | |||
14004 | |||
14005 | |||
14006 | ### Default options with respect to host | ||
14007 | |||
14008 | |||
14009 | |||
14010 | |||
14011 | # dependencies and options | ||
14012 | want_curl="no" | ||
14013 | want_local_sockets="yes" | ||
14014 | want_abstract_sockets="no" | ||
14015 | want_gnutls="no" | ||
14016 | want_openssl="no" | ||
14017 | want_cares="no" | ||
14018 | want_cipher="no" | ||
14019 | want_signature="no" | ||
14020 | want_poll="yes" | ||
14021 | want_inotify="no" | ||
14022 | want_notify_win32="no" | ||
14023 | want_tslib="no" | ||
14024 | want_glib="no" | ||
14025 | |||
14026 | # core modules | ||
14027 | want_ecore_con="yes" | ||
14028 | want_ecore_ipc="yes" | ||
14029 | want_ecore_file="yes" | ||
14030 | #want_ecore_config="no" | ||
14031 | want_ecore_imf="no" | ||
14032 | want_ecore_input="yes" | ||
14033 | |||
14034 | # graphic system modules | ||
14035 | want_evas_simple_x11="no" | ||
14036 | want_ecore_x_xcb="no" | ||
14037 | want_ecore_x="no" | ||
14038 | want_ecore_win32="no" | ||
14039 | want_ecore_cocoa="no" | ||
14040 | want_ecore_sdl="no" | ||
14041 | want_ecore_psl1ght="no" | ||
14042 | want_ecore_fb="no" | ||
14043 | want_ecore_directfb="no" | ||
14044 | want_ecore_wince="no" | ||
14045 | |||
14046 | # ecore_x options (both xlib and xcb) | ||
14047 | want_ecore_x_composite="yes" | ||
14048 | want_ecore_x_damage="yes" | ||
14049 | want_ecore_x_dpms="yes" | ||
14050 | want_ecore_x_randr="yes" | ||
14051 | want_ecore_x_render="yes" | ||
14052 | want_ecore_x_screensaver="yes" | ||
14053 | want_ecore_x_shape="yes" | ||
14054 | want_ecore_x_gesture="no" | ||
14055 | want_ecore_x_sync="yes" | ||
14056 | want_ecore_x_xfixes="yes" | ||
14057 | want_ecore_x_xinerama="yes" | ||
14058 | want_ecore_x_xprint="yes" | ||
14059 | want_ecore_x_xtest="yes" | ||
14060 | want_ecore_x_cursor="yes" | ||
14061 | want_ecore_x_input="yes" | ||
14062 | want_ecore_x_dri="yes" | ||
14063 | |||
14064 | # ecore_evas modules | ||
14065 | want_ecore_evas="yes" | ||
14066 | want_ecore_evas_software_buffer="yes" | ||
14067 | want_ecore_evas_software_x11="no" | ||
14068 | want_ecore_evas_opengl_x11="no" | ||
14069 | want_ecore_evas_software_16_x11="no" | ||
14070 | want_ecore_evas_software_8_x11="no" | ||
14071 | want_ecore_evas_software_xcb="no" | ||
14072 | want_ecore_evas_software_gdi="no" | ||
14073 | want_ecore_evas_software_ddraw="no" | ||
14074 | want_ecore_evas_direct3d="no" | ||
14075 | want_ecore_evas_opengl_glew="no" | ||
14076 | want_ecore_evas_software_16_ddraw="no" | ||
14077 | want_ecore_evas_software_sdl="no" | ||
14078 | want_ecore_evas_gl_sdl="no" | ||
14079 | want_ecore_evas_gl_cocoa="no" | ||
14080 | want_ecore_evas_psl1ght="no" | ||
14081 | want_ecore_evas_directfb="no" | ||
14082 | want_ecore_evas_fb="no" | ||
14083 | want_ecore_evas_software_16_wince="no" | ||
14084 | want_ecore_evas_ews="yes" | ||
14085 | |||
14086 | # ecore_imf modules | ||
14087 | want_ecore_imf_xim="no" | ||
14088 | |||
14089 | case "$host_os" in | ||
14090 | mingw32ce* | cegcc*) | ||
14091 | want_ecore_con="no" | ||
14092 | want_ecore_ipc="no" | ||
14093 | want_ecore_wince="yes" | ||
14094 | want_ecore_evas_software_16_wince="yes" | ||
14095 | ;; | ||
14096 | mingw*) | ||
14097 | want_notify_win32="yes" | ||
14098 | want_curl="yes" | ||
14099 | want_glib="auto" | ||
14100 | want_gnutls="auto" | ||
14101 | want_openssl="auto" | ||
14102 | want_ecore_imf="yes" | ||
14103 | want_ecore_win32="yes" | ||
14104 | want_ecore_evas_software_gdi="yes" | ||
14105 | want_ecore_evas_software_ddraw="yes" | ||
14106 | want_ecore_evas_direct3d="yes" | ||
14107 | want_ecore_evas_opengl_glew="yes" | ||
14108 | want_ecore_evas_software_16_ddraw="auto" | ||
14109 | want_ecore_evas_software_sdl="yes" | ||
14110 | want_ecore_evas_gl_sdl="yes" | ||
14111 | ;; | ||
14112 | darwin*) | ||
14113 | want_curl="yes" | ||
14114 | want_glib="auto" | ||
14115 | want_gnutls="auto" | ||
14116 | want_openssl="auto" | ||
14117 | want_ecore_imf="yes" | ||
14118 | want_ecore_cocoa="yes" | ||
14119 | want_ecore_evas_software_sdl="yes" | ||
14120 | want_ecore_evas_gl_sdl="yes" | ||
14121 | want_ecore_evas_gl_cocoa="yes" | ||
14122 | ;; | ||
14123 | *) | ||
14124 | want_curl="yes" | ||
14125 | want_glib="auto" | ||
14126 | want_abstract_sockets="yes" | ||
14127 | want_gnutls="auto" | ||
14128 | want_openssl="auto" | ||
14129 | want_cipher="yes" | ||
14130 | want_signature="yes" | ||
14131 | want_inotify="yes" | ||
14132 | want_tslib="yes" | ||
14133 | want_ecore_fb="yes" | ||
14134 | want_ecore_imf="yes" | ||
14135 | want_ecore_x="yes" | ||
14136 | want_ecore_evas_software_x11="yes" | ||
14137 | want_ecore_evas_opengl_x11="yes" | ||
14138 | want_ecore_evas_software_16_x11="yes" | ||
14139 | want_ecore_evas_software_8_x11="yes" | ||
14140 | want_ecore_evas_software_xcb="no" | ||
14141 | want_ecore_evas_software_sdl="yes" | ||
14142 | want_ecore_evas_gl_sdl="yes" | ||
14143 | want_ecore_evas_gl_cocoa="no" | ||
14144 | want_ecore_evas_directfb="yes" | ||
14145 | want_ecore_evas_fb="yes" | ||
14146 | want_ecore_imf_xim="yes" | ||
14147 | ;; | ||
14148 | esac | ||
14149 | |||
14150 | case "$host_vendor" in | ||
14151 | ps3*) | ||
14152 | want_local_sockets="no" | ||
14153 | ;; | ||
14154 | esac | ||
14155 | requirements_ecore="" | ||
14156 | requirements_ecore_con="" | ||
14157 | #requirements_ecore_config="" | ||
14158 | requirements_ecore_directfb="" | ||
14159 | requirements_ecore_evas="" | ||
14160 | requirements_ecore_fb="" | ||
14161 | requirements_ecore_file="" | ||
14162 | requirements_ecore_imf="" | ||
14163 | requirements_ecore_imf_evas="" | ||
14164 | requirements_ecore_input="" | ||
14165 | requirements_ecore_input_evas="" | ||
14166 | requirements_ecore_ipc="" | ||
14167 | requirements_ecore_cocoa="" | ||
14168 | requirements_ecore_sdl="" | ||
14169 | requirements_ecore_psl1ght="" | ||
14170 | requirements_ecore_x="" | ||
14171 | requirements_ecore_win32="" | ||
14172 | requirements_ecore_wince="" | ||
14173 | requirements_ecore_imf_xim="" | ||
14174 | |||
14175 | ac_fn_c_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default" | ||
14176 | if test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = x""yes; then : | ||
14177 | FOUND_MAXHOSTNAMELEN=yes | ||
14178 | fi | ||
14179 | |||
14180 | |||
14181 | if test x$FOUND_MAXHOSTNAMELEN != xyes ; then | ||
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5 | ||
14183 | $as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; } | ||
14184 | |||
14185 | FOUND_MAXHOSTNAMELEN='not found' | ||
14186 | |||
14187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14188 | /* end confdefs.h. */ | ||
14189 | #include <sys/param.h> | ||
14190 | int | ||
14191 | main () | ||
14192 | { | ||
14193 | int h = MAXHOSTNAMELEN; | ||
14194 | ; | ||
14195 | return 0; | ||
14196 | } | ||
14197 | _ACEOF | ||
14198 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14199 | FOUND_MAXHOSTNAMELEN='sys/param.h' | ||
14200 | |||
14201 | $as_echo "#define NEED_SYS_PARAM_H 1" >>confdefs.h | ||
14202 | |||
14203 | fi | ||
14204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14205 | |||
14206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14207 | /* end confdefs.h. */ | ||
14208 | #include <netdb.h> | ||
14209 | int | ||
14210 | main () | ||
14211 | { | ||
14212 | int h = MAXHOSTNAMELEN; | ||
14213 | ; | ||
14214 | return 0; | ||
14215 | } | ||
14216 | _ACEOF | ||
14217 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14218 | FOUND_MAXHOSTNAMELEN='netdb.h' | ||
14219 | |||
14220 | $as_echo "#define NEED_NETDB_H 1" >>confdefs.h | ||
14221 | |||
14222 | fi | ||
14223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14224 | |||
14225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5 | ||
14226 | $as_echo "$FOUND_MAXHOSTNAMELEN" >&6; } | ||
14227 | fi | ||
14228 | |||
14229 | ### Additional options to configure | ||
14230 | |||
14231 | want_glib_integration_always=no | ||
14232 | # Check whether --enable-glib-integration-always was given. | ||
14233 | if test "${enable_glib_integration_always+set}" = set; then : | ||
14234 | enableval=$enable_glib_integration_always; want_glib_integration_always=$enableval | ||
14235 | fi | ||
14236 | |||
14237 | |||
14238 | if test "x${want_glib_integration_always}" = "xyes" ; then | ||
14239 | |||
14240 | $as_echo "#define GLIB_INTEGRATION_ALWAYS 1" >>confdefs.h | ||
14241 | |||
14242 | want_glib=yes | ||
14243 | fi | ||
14244 | |||
14245 | want_g_main_loop=no | ||
14246 | # Check whether --enable-g-main-loop was given. | ||
14247 | if test "${enable_g_main_loop+set}" = set; then : | ||
14248 | enableval=$enable_g_main_loop; want_g_main_loop=$enableval | ||
14249 | fi | ||
14250 | |||
14251 | |||
14252 | if test "x${want_g_main_loop}" = "xyes" ; then | ||
14253 | |||
14254 | $as_echo "#define USE_G_MAIN_LOOP 1" >>confdefs.h | ||
14255 | |||
14256 | want_glib=yes | ||
14257 | fi | ||
14258 | |||
14259 | if test "x${want_glib_integration_always}" = "xyes" -a "x${want_g_main_loop}" = "xyes"; then | ||
14260 | as_fn_error $? "--enable-glib-integration-always and --enable-glib-main-loop are mutually exclusive" "$LINENO" 5 | ||
14261 | fi | ||
14262 | |||
14263 | # local sockets (ecore_con.c) | ||
14264 | # Check whether --enable-local-sockets was given. | ||
14265 | if test "${enable_local_sockets+set}" = set; then : | ||
14266 | enableval=$enable_local_sockets; | ||
14267 | if test "x${enableval}" = "xyes" ; then | ||
14268 | want_ecore_con_local_sockets="yes" | ||
14269 | else | ||
14270 | want_ecore_con_local_sockets="no" | ||
14271 | fi | ||
14272 | |||
14273 | else | ||
14274 | want_ecore_con_local_sockets=${want_local_sockets} | ||
14275 | fi | ||
14276 | |||
14277 | |||
14278 | if test "x${want_ecore_con_local_sockets}" = "xyes" ; then | ||
14279 | |||
14280 | $as_echo "#define HAVE_LOCAL_SOCKETS 1" >>confdefs.h | ||
14281 | |||
14282 | fi | ||
14283 | |||
14284 | # abstract sockets (ecore_con.c) | ||
14285 | # Check whether --enable-abstract-sockets was given. | ||
14286 | if test "${enable_abstract_sockets+set}" = set; then : | ||
14287 | enableval=$enable_abstract_sockets; | ||
14288 | if test "x${enableval}" = "xyes" ; then | ||
14289 | want_ecore_con_abstract_sockets="yes" | ||
14290 | else | ||
14291 | want_ecore_con_abstract_sockets="no" | ||
14292 | fi | ||
14293 | |||
14294 | else | ||
14295 | want_ecore_con_abstract_sockets=${want_abstract_sockets} | ||
14296 | fi | ||
14297 | |||
14298 | |||
14299 | if test "x${want_ecore_con_abstract_sockets}" = "xyes" ; then | ||
14300 | |||
14301 | $as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h | ||
14302 | |||
14303 | fi | ||
14304 | |||
14305 | # Simple X11 build/link | ||
14306 | |||
14307 | # Check whether --enable-simple-x11 was given. | ||
14308 | if test "${enable_simple_x11+set}" = set; then : | ||
14309 | enableval=$enable_simple_x11; want_evas_simple_x11=$enableval | ||
14310 | fi | ||
14311 | |||
14312 | |||
14313 | # XIM | ||
14314 | # Check whether --enable-xim was given. | ||
14315 | if test "${enable_xim+set}" = set; then : | ||
14316 | enableval=$enable_xim; | ||
14317 | if test "x${enableval}" = "xyes" ; then | ||
14318 | want_xim="yes" | ||
14319 | else | ||
14320 | want_xim="no" | ||
14321 | fi | ||
14322 | |||
14323 | else | ||
14324 | want_xim="yes" | ||
14325 | fi | ||
14326 | |||
14327 | |||
14328 | if test "x${want_xim}" = "xyes" ; then | ||
14329 | |||
14330 | $as_echo "#define ENABLE_XIM 1" >>confdefs.h | ||
14331 | |||
14332 | fi | ||
14333 | |||
14334 | # Unit tests | ||
14335 | |||
14336 | |||
14337 | |||
14338 | |||
14339 | |||
14340 | |||
14341 | |||
14342 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
14343 | if test -n "$ac_tool_prefix"; then | ||
14344 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
14345 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14347 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14348 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
14349 | $as_echo_n "(cached) " >&6 | ||
14350 | else | ||
14351 | case $PKG_CONFIG in | ||
14352 | [\\/]* | ?:[\\/]*) | ||
14353 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
14354 | ;; | ||
14355 | *) | ||
14356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14357 | for as_dir in $PATH | ||
14358 | do | ||
14359 | IFS=$as_save_IFS | ||
14360 | test -z "$as_dir" && as_dir=. | ||
14361 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14363 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
14364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14365 | break 2 | ||
14366 | fi | ||
14367 | done | ||
14368 | done | ||
14369 | IFS=$as_save_IFS | ||
14370 | |||
14371 | ;; | ||
14372 | esac | ||
14373 | fi | ||
14374 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
14375 | if test -n "$PKG_CONFIG"; then | ||
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
14377 | $as_echo "$PKG_CONFIG" >&6; } | ||
14378 | else | ||
14379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14380 | $as_echo "no" >&6; } | ||
14381 | fi | ||
14382 | |||
14383 | |||
14384 | fi | ||
14385 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
14386 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
14387 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
14388 | set dummy pkg-config; ac_word=$2 | ||
14389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14390 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14391 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
14392 | $as_echo_n "(cached) " >&6 | ||
14393 | else | ||
14394 | case $ac_pt_PKG_CONFIG in | ||
14395 | [\\/]* | ?:[\\/]*) | ||
14396 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
14397 | ;; | ||
14398 | *) | ||
14399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14400 | for as_dir in $PATH | ||
14401 | do | ||
14402 | IFS=$as_save_IFS | ||
14403 | test -z "$as_dir" && as_dir=. | ||
14404 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14406 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
14407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14408 | break 2 | ||
14409 | fi | ||
14410 | done | ||
14411 | done | ||
14412 | IFS=$as_save_IFS | ||
14413 | |||
14414 | ;; | ||
14415 | esac | ||
14416 | fi | ||
14417 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
14418 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
14420 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
14421 | else | ||
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14423 | $as_echo "no" >&6; } | ||
14424 | fi | ||
14425 | |||
14426 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
14427 | PKG_CONFIG="" | ||
14428 | else | ||
14429 | case $cross_compiling:$ac_tool_warned in | ||
14430 | yes:) | ||
14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
14432 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
14433 | ac_tool_warned=yes ;; | ||
14434 | esac | ||
14435 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
14436 | fi | ||
14437 | else | ||
14438 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
14439 | fi | ||
14440 | |||
14441 | fi | ||
14442 | if test -n "$PKG_CONFIG"; then | ||
14443 | _pkg_min_version=0.9.0 | ||
14444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
14445 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
14446 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14448 | $as_echo "yes" >&6; } | ||
14449 | else | ||
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14451 | $as_echo "no" >&6; } | ||
14452 | PKG_CONFIG="" | ||
14453 | fi | ||
14454 | fi | ||
14455 | |||
14456 | |||
14457 | |||
14458 | # Check whether --enable-tests was given. | ||
14459 | if test "${enable_tests+set}" = set; then : | ||
14460 | enableval=$enable_tests; | ||
14461 | if test "x${enableval}" = "xyes" ; then | ||
14462 | _efl_enable_tests="yes" | ||
14463 | else | ||
14464 | _efl_enable_tests="no" | ||
14465 | fi | ||
14466 | |||
14467 | else | ||
14468 | _efl_enable_tests="no" | ||
14469 | fi | ||
14470 | |||
14471 | |||
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
14473 | $as_echo_n "checking whether tests are built... " >&6; } | ||
14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
14475 | $as_echo "${_efl_enable_tests}" >&6; } | ||
14476 | |||
14477 | |||
14478 | |||
14479 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
14480 | |||
14481 | pkg_failed=no | ||
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
14483 | $as_echo_n "checking for CHECK... " >&6; } | ||
14484 | |||
14485 | if test -n "$CHECK_CFLAGS"; then | ||
14486 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
14487 | elif test -n "$PKG_CONFIG"; then | ||
14488 | if test -n "$PKG_CONFIG" && \ | ||
14489 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
14490 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
14491 | ac_status=$? | ||
14492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14493 | test $ac_status = 0; }; then | ||
14494 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
14495 | else | ||
14496 | pkg_failed=yes | ||
14497 | fi | ||
14498 | else | ||
14499 | pkg_failed=untried | ||
14500 | fi | ||
14501 | if test -n "$CHECK_LIBS"; then | ||
14502 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
14503 | elif test -n "$PKG_CONFIG"; then | ||
14504 | if test -n "$PKG_CONFIG" && \ | ||
14505 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
14506 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
14507 | ac_status=$? | ||
14508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14509 | test $ac_status = 0; }; then | ||
14510 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
14511 | else | ||
14512 | pkg_failed=yes | ||
14513 | fi | ||
14514 | else | ||
14515 | pkg_failed=untried | ||
14516 | fi | ||
14517 | |||
14518 | |||
14519 | |||
14520 | if test $pkg_failed = yes; then | ||
14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14522 | $as_echo "no" >&6; } | ||
14523 | |||
14524 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
14525 | _pkg_short_errors_supported=yes | ||
14526 | else | ||
14527 | _pkg_short_errors_supported=no | ||
14528 | fi | ||
14529 | if test $_pkg_short_errors_supported = yes; then | ||
14530 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
14531 | else | ||
14532 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
14533 | fi | ||
14534 | # Put the nasty error message in config.log where it belongs | ||
14535 | echo "$CHECK_PKG_ERRORS" >&5 | ||
14536 | |||
14537 | _efl_enable_tests="no" | ||
14538 | elif test $pkg_failed = untried; then | ||
14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14540 | $as_echo "no" >&6; } | ||
14541 | _efl_enable_tests="no" | ||
14542 | else | ||
14543 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
14544 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
14545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14546 | $as_echo "yes" >&6; } | ||
14547 | dummy="yes" | ||
14548 | fi | ||
14549 | fi | ||
14550 | |||
14551 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
14552 | EFL_ENABLE_TESTS_TRUE= | ||
14553 | EFL_ENABLE_TESTS_FALSE='#' | ||
14554 | else | ||
14555 | EFL_ENABLE_TESTS_TRUE='#' | ||
14556 | EFL_ENABLE_TESTS_FALSE= | ||
14557 | fi | ||
14558 | |||
14559 | |||
14560 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
14561 | enable_tests="yes" | ||
14562 | else | ||
14563 | enable_tests="no" | ||
14564 | fi | ||
14565 | |||
14566 | |||
14567 | ### Checks for programs | ||
14568 | |||
14569 | |||
14570 | ac_ext=m | ||
14571 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
14572 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14573 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14574 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
14575 | if test -n "$ac_tool_prefix"; then | ||
14576 | for ac_prog in gcc objcc objc cc CC | ||
14577 | do | ||
14578 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
14579 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14581 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14582 | if test "${ac_cv_prog_OBJC+set}" = set; then : | ||
14583 | $as_echo_n "(cached) " >&6 | ||
14584 | else | ||
14585 | if test -n "$OBJC"; then | ||
14586 | ac_cv_prog_OBJC="$OBJC" # Let the user override the test. | ||
14587 | else | ||
14588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14589 | for as_dir in $PATH | ||
14590 | do | ||
14591 | IFS=$as_save_IFS | ||
14592 | test -z "$as_dir" && as_dir=. | ||
14593 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14595 | ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" | ||
14596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14597 | break 2 | ||
14598 | fi | ||
14599 | done | ||
14600 | done | ||
14601 | IFS=$as_save_IFS | ||
14602 | |||
14603 | fi | ||
14604 | fi | ||
14605 | OBJC=$ac_cv_prog_OBJC | ||
14606 | if test -n "$OBJC"; then | ||
14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 | ||
14608 | $as_echo "$OBJC" >&6; } | ||
14609 | else | ||
14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14611 | $as_echo "no" >&6; } | ||
14612 | fi | ||
14613 | |||
14614 | |||
14615 | test -n "$OBJC" && break | ||
14616 | done | ||
14617 | fi | ||
14618 | if test -z "$OBJC"; then | ||
14619 | ac_ct_OBJC=$OBJC | ||
14620 | for ac_prog in gcc objcc objc cc CC | ||
14621 | do | ||
14622 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
14623 | set dummy $ac_prog; ac_word=$2 | ||
14624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14625 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14626 | if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then : | ||
14627 | $as_echo_n "(cached) " >&6 | ||
14628 | else | ||
14629 | if test -n "$ac_ct_OBJC"; then | ||
14630 | ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. | ||
14631 | else | ||
14632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14633 | for as_dir in $PATH | ||
14634 | do | ||
14635 | IFS=$as_save_IFS | ||
14636 | test -z "$as_dir" && as_dir=. | ||
14637 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14639 | ac_cv_prog_ac_ct_OBJC="$ac_prog" | ||
14640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14641 | break 2 | ||
14642 | fi | ||
14643 | done | ||
14644 | done | ||
14645 | IFS=$as_save_IFS | ||
14646 | |||
14647 | fi | ||
14648 | fi | ||
14649 | ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC | ||
14650 | if test -n "$ac_ct_OBJC"; then | ||
14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 | ||
14652 | $as_echo "$ac_ct_OBJC" >&6; } | ||
14653 | else | ||
14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14655 | $as_echo "no" >&6; } | ||
14656 | fi | ||
14657 | |||
14658 | |||
14659 | test -n "$ac_ct_OBJC" && break | ||
14660 | done | ||
14661 | |||
14662 | if test "x$ac_ct_OBJC" = x; then | ||
14663 | OBJC="gcc" | ||
14664 | else | ||
14665 | case $cross_compiling:$ac_tool_warned in | ||
14666 | yes:) | ||
14667 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
14668 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
14669 | ac_tool_warned=yes ;; | ||
14670 | esac | ||
14671 | OBJC=$ac_ct_OBJC | ||
14672 | fi | ||
14673 | fi | ||
14674 | |||
14675 | # Provide some information about the compiler. | ||
14676 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 | ||
14677 | set X $ac_compile | ||
14678 | ac_compiler=$2 | ||
14679 | for ac_option in --version -v -V -qversion; do | ||
14680 | { { ac_try="$ac_compiler $ac_option >&5" | ||
14681 | case "(($ac_try" in | ||
14682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14683 | *) ac_try_echo=$ac_try;; | ||
14684 | esac | ||
14685 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
14686 | $as_echo "$ac_try_echo"; } >&5 | ||
14687 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
14688 | ac_status=$? | ||
14689 | if test -s conftest.err; then | ||
14690 | sed '10a\ | ||
14691 | ... rest of stderr output deleted ... | ||
14692 | 10q' conftest.err >conftest.er1 | ||
14693 | cat conftest.er1 >&5 | ||
14694 | fi | ||
14695 | rm -f conftest.er1 conftest.err | ||
14696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14697 | test $ac_status = 0; } | ||
14698 | done | ||
14699 | |||
14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 | ||
14701 | $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } | ||
14702 | if test "${ac_cv_objc_compiler_gnu+set}" = set; then : | ||
14703 | $as_echo_n "(cached) " >&6 | ||
14704 | else | ||
14705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14706 | /* end confdefs.h. */ | ||
14707 | |||
14708 | int | ||
14709 | main () | ||
14710 | { | ||
14711 | #ifndef __GNUC__ | ||
14712 | choke me | ||
14713 | #endif | ||
14714 | |||
14715 | ; | ||
14716 | return 0; | ||
14717 | } | ||
14718 | _ACEOF | ||
14719 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
14720 | ac_compiler_gnu=yes | ||
14721 | else | ||
14722 | ac_compiler_gnu=no | ||
14723 | fi | ||
14724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14725 | ac_cv_objc_compiler_gnu=$ac_compiler_gnu | ||
14726 | |||
14727 | fi | ||
14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 | ||
14729 | $as_echo "$ac_cv_objc_compiler_gnu" >&6; } | ||
14730 | if test $ac_compiler_gnu = yes; then | ||
14731 | GOBJC=yes | ||
14732 | else | ||
14733 | GOBJC= | ||
14734 | fi | ||
14735 | ac_test_OBJCFLAGS=${OBJCFLAGS+set} | ||
14736 | ac_save_OBJCFLAGS=$OBJCFLAGS | ||
14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 | ||
14738 | $as_echo_n "checking whether $OBJC accepts -g... " >&6; } | ||
14739 | if test "${ac_cv_prog_objc_g+set}" = set; then : | ||
14740 | $as_echo_n "(cached) " >&6 | ||
14741 | else | ||
14742 | ac_save_objc_werror_flag=$ac_objc_werror_flag | ||
14743 | ac_objc_werror_flag=yes | ||
14744 | ac_cv_prog_objc_g=no | ||
14745 | OBJCFLAGS="-g" | ||
14746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14747 | /* end confdefs.h. */ | ||
14748 | |||
14749 | int | ||
14750 | main () | ||
14751 | { | ||
14752 | |||
14753 | ; | ||
14754 | return 0; | ||
14755 | } | ||
14756 | _ACEOF | ||
14757 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
14758 | ac_cv_prog_objc_g=yes | ||
14759 | else | ||
14760 | OBJCFLAGS="" | ||
14761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14762 | /* end confdefs.h. */ | ||
14763 | |||
14764 | int | ||
14765 | main () | ||
14766 | { | ||
14767 | |||
14768 | ; | ||
14769 | return 0; | ||
14770 | } | ||
14771 | _ACEOF | ||
14772 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
14773 | |||
14774 | else | ||
14775 | ac_objc_werror_flag=$ac_save_objc_werror_flag | ||
14776 | OBJCFLAGS="-g" | ||
14777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14778 | /* end confdefs.h. */ | ||
14779 | |||
14780 | int | ||
14781 | main () | ||
14782 | { | ||
14783 | |||
14784 | ; | ||
14785 | return 0; | ||
14786 | } | ||
14787 | _ACEOF | ||
14788 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
14789 | ac_cv_prog_objc_g=yes | ||
14790 | fi | ||
14791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14792 | fi | ||
14793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14794 | fi | ||
14795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14796 | ac_objc_werror_flag=$ac_save_objc_werror_flag | ||
14797 | fi | ||
14798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 | ||
14799 | $as_echo "$ac_cv_prog_objc_g" >&6; } | ||
14800 | if test "$ac_test_OBJCFLAGS" = set; then | ||
14801 | OBJCFLAGS=$ac_save_OBJCFLAGS | ||
14802 | elif test $ac_cv_prog_objc_g = yes; then | ||
14803 | if test "$GOBJC" = yes; then | ||
14804 | OBJCFLAGS="-g -O2" | ||
14805 | else | ||
14806 | OBJCFLAGS="-g" | ||
14807 | fi | ||
14808 | else | ||
14809 | if test "$GOBJC" = yes; then | ||
14810 | OBJCFLAGS="-O2" | ||
14811 | else | ||
14812 | OBJCFLAGS= | ||
14813 | fi | ||
14814 | fi | ||
14815 | ac_ext=c | ||
14816 | ac_cpp='$CPP $CPPFLAGS' | ||
14817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
14820 | |||
14821 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | ||
14822 | |||
14823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
14824 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
14825 | if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then : | ||
14826 | $as_echo_n "(cached) " >&6 | ||
14827 | else | ||
14828 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
14829 | # We make a subdir and do the tests there. Otherwise we can end up | ||
14830 | # making bogus files that we don't know about and never remove. For | ||
14831 | # instance it was reported that on HP-UX the gcc test will end up | ||
14832 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
14833 | # in D'. | ||
14834 | mkdir conftest.dir | ||
14835 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
14836 | # using a relative directory. | ||
14837 | cp "$am_depcomp" conftest.dir | ||
14838 | cd conftest.dir | ||
14839 | # We will build objects and dependencies in a subdirectory because | ||
14840 | # it helps to detect inapplicable dependency modes. For instance | ||
14841 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
14842 | # side effect of compilation, but ICC will put the dependencies in | ||
14843 | # the current directory while Tru64 will put them in the object | ||
14844 | # directory. | ||
14845 | mkdir sub | ||
14846 | |||
14847 | am_cv_OBJC_dependencies_compiler_type=none | ||
14848 | if test "$am_compiler_list" = ""; then | ||
14849 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
14850 | fi | ||
14851 | am__universal=false | ||
14852 | |||
14853 | |||
14854 | for depmode in $am_compiler_list; do | ||
14855 | # Setup a source with many dependencies, because some compilers | ||
14856 | # like to wrap large dependency lists on column 80 (with \), and | ||
14857 | # we should not choose a depcomp mode which is confused by this. | ||
14858 | # | ||
14859 | # We need to recreate these files for each test, as the compiler may | ||
14860 | # overwrite some of them when testing with obscure command lines. | ||
14861 | # This happens at least with the AIX C compiler. | ||
14862 | : > sub/conftest.c | ||
14863 | for i in 1 2 3 4 5 6; do | ||
14864 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
14865 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
14866 | # Solaris 8's {/usr,}/bin/sh. | ||
14867 | touch sub/conftst$i.h | ||
14868 | done | ||
14869 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
14870 | |||
14871 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
14872 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
14873 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
14874 | # versions had trouble with output in subdirs | ||
14875 | am__obj=sub/conftest.${OBJEXT-o} | ||
14876 | am__minus_obj="-o $am__obj" | ||
14877 | case $depmode in | ||
14878 | gcc) | ||
14879 | # This depmode causes a compiler race in universal mode. | ||
14880 | test "$am__universal" = false || continue | ||
14881 | ;; | ||
14882 | nosideeffect) | ||
14883 | # after this tag, mechanisms are not by side-effect, so they'll | ||
14884 | # only be used when explicitly requested | ||
14885 | if test "x$enable_dependency_tracking" = xyes; then | ||
14886 | continue | ||
14887 | else | ||
14888 | break | ||
14889 | fi | ||
14890 | ;; | ||
14891 | msvisualcpp | msvcmsys) | ||
14892 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
14893 | # not run yet. These depmodes are late enough in the game, and | ||
14894 | # so weak that their functioning should not be impacted. | ||
14895 | am__obj=conftest.${OBJEXT-o} | ||
14896 | am__minus_obj= | ||
14897 | ;; | ||
14898 | none) break ;; | ||
14899 | esac | ||
14900 | if depmode=$depmode \ | ||
14901 | source=sub/conftest.c object=$am__obj \ | ||
14902 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
14903 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
14904 | >/dev/null 2>conftest.err && | ||
14905 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
14906 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
14907 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
14908 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
14909 | # icc doesn't choke on unknown options, it will just issue warnings | ||
14910 | # or remarks (even with -Werror). So we grep stderr for any message | ||
14911 | # that says an option was ignored or not supported. | ||
14912 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
14913 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
14914 | # The diagnosis changed in icc 8.0: | ||
14915 | # icc: Command line remark: option '-MP' not supported | ||
14916 | if (grep 'ignoring option' conftest.err || | ||
14917 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
14918 | am_cv_OBJC_dependencies_compiler_type=$depmode | ||
14919 | break | ||
14920 | fi | ||
14921 | fi | ||
14922 | done | ||
14923 | |||
14924 | cd .. | ||
14925 | rm -rf conftest.dir | ||
14926 | else | ||
14927 | am_cv_OBJC_dependencies_compiler_type=none | ||
14928 | fi | ||
14929 | |||
14930 | fi | ||
14931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | ||
14932 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | ||
14933 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | ||
14934 | |||
14935 | if | ||
14936 | test "x$enable_dependency_tracking" != xno \ | ||
14937 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | ||
14938 | am__fastdepOBJC_TRUE= | ||
14939 | am__fastdepOBJC_FALSE='#' | ||
14940 | else | ||
14941 | am__fastdepOBJC_TRUE='#' | ||
14942 | am__fastdepOBJC_FALSE= | ||
14943 | fi | ||
14944 | |||
14945 | |||
14946 | |||
14947 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | ||
14948 | |||
14949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
14950 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
14951 | if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then : | ||
14952 | $as_echo_n "(cached) " >&6 | ||
14953 | else | ||
14954 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
14955 | # We make a subdir and do the tests there. Otherwise we can end up | ||
14956 | # making bogus files that we don't know about and never remove. For | ||
14957 | # instance it was reported that on HP-UX the gcc test will end up | ||
14958 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
14959 | # in D'. | ||
14960 | mkdir conftest.dir | ||
14961 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
14962 | # using a relative directory. | ||
14963 | cp "$am_depcomp" conftest.dir | ||
14964 | cd conftest.dir | ||
14965 | # We will build objects and dependencies in a subdirectory because | ||
14966 | # it helps to detect inapplicable dependency modes. For instance | ||
14967 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
14968 | # side effect of compilation, but ICC will put the dependencies in | ||
14969 | # the current directory while Tru64 will put them in the object | ||
14970 | # directory. | ||
14971 | mkdir sub | ||
14972 | |||
14973 | am_cv_OBJC_dependencies_compiler_type=none | ||
14974 | if test "$am_compiler_list" = ""; then | ||
14975 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
14976 | fi | ||
14977 | am__universal=false | ||
14978 | |||
14979 | |||
14980 | for depmode in $am_compiler_list; do | ||
14981 | # Setup a source with many dependencies, because some compilers | ||
14982 | # like to wrap large dependency lists on column 80 (with \), and | ||
14983 | # we should not choose a depcomp mode which is confused by this. | ||
14984 | # | ||
14985 | # We need to recreate these files for each test, as the compiler may | ||
14986 | # overwrite some of them when testing with obscure command lines. | ||
14987 | # This happens at least with the AIX C compiler. | ||
14988 | : > sub/conftest.c | ||
14989 | for i in 1 2 3 4 5 6; do | ||
14990 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
14991 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
14992 | # Solaris 8's {/usr,}/bin/sh. | ||
14993 | touch sub/conftst$i.h | ||
14994 | done | ||
14995 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
14996 | |||
14997 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
14998 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
14999 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
15000 | # versions had trouble with output in subdirs | ||
15001 | am__obj=sub/conftest.${OBJEXT-o} | ||
15002 | am__minus_obj="-o $am__obj" | ||
15003 | case $depmode in | ||
15004 | gcc) | ||
15005 | # This depmode causes a compiler race in universal mode. | ||
15006 | test "$am__universal" = false || continue | ||
15007 | ;; | ||
15008 | nosideeffect) | ||
15009 | # after this tag, mechanisms are not by side-effect, so they'll | ||
15010 | # only be used when explicitly requested | ||
15011 | if test "x$enable_dependency_tracking" = xyes; then | ||
15012 | continue | ||
15013 | else | ||
15014 | break | ||
15015 | fi | ||
15016 | ;; | ||
15017 | msvisualcpp | msvcmsys) | ||
15018 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
15019 | # not run yet. These depmodes are late enough in the game, and | ||
15020 | # so weak that their functioning should not be impacted. | ||
15021 | am__obj=conftest.${OBJEXT-o} | ||
15022 | am__minus_obj= | ||
15023 | ;; | ||
15024 | none) break ;; | ||
15025 | esac | ||
15026 | if depmode=$depmode \ | ||
15027 | source=sub/conftest.c object=$am__obj \ | ||
15028 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
15029 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
15030 | >/dev/null 2>conftest.err && | ||
15031 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
15032 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
15033 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
15034 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
15035 | # icc doesn't choke on unknown options, it will just issue warnings | ||
15036 | # or remarks (even with -Werror). So we grep stderr for any message | ||
15037 | # that says an option was ignored or not supported. | ||
15038 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
15039 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
15040 | # The diagnosis changed in icc 8.0: | ||
15041 | # icc: Command line remark: option '-MP' not supported | ||
15042 | if (grep 'ignoring option' conftest.err || | ||
15043 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
15044 | am_cv_OBJC_dependencies_compiler_type=$depmode | ||
15045 | break | ||
15046 | fi | ||
15047 | fi | ||
15048 | done | ||
15049 | |||
15050 | cd .. | ||
15051 | rm -rf conftest.dir | ||
15052 | else | ||
15053 | am_cv_OBJC_dependencies_compiler_type=none | ||
15054 | fi | ||
15055 | |||
15056 | fi | ||
15057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | ||
15058 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | ||
15059 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | ||
15060 | |||
15061 | if | ||
15062 | test "x$enable_dependency_tracking" != xno \ | ||
15063 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | ||
15064 | am__fastdepOBJC_TRUE= | ||
15065 | am__fastdepOBJC_FALSE='#' | ||
15066 | else | ||
15067 | am__fastdepOBJC_TRUE='#' | ||
15068 | am__fastdepOBJC_FALSE= | ||
15069 | fi | ||
15070 | |||
15071 | |||
15072 | |||
15073 | |||
15074 | if false; then | ||
15075 | am__fastdepOBJC_TRUE= | ||
15076 | am__fastdepOBJC_FALSE='#' | ||
15077 | else | ||
15078 | am__fastdepOBJC_TRUE='#' | ||
15079 | am__fastdepOBJC_FALSE= | ||
15080 | fi | ||
15081 | |||
15082 | |||
15083 | |||
15084 | ac_ext=cpp | ||
15085 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
15086 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15087 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15088 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
15089 | if test -z "$CXX"; then | ||
15090 | if test -n "$CCC"; then | ||
15091 | CXX=$CCC | ||
15092 | else | ||
15093 | if test -n "$ac_tool_prefix"; then | ||
15094 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
15095 | do | ||
15096 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
15097 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
15098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15099 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15100 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
15101 | $as_echo_n "(cached) " >&6 | ||
15102 | else | ||
15103 | if test -n "$CXX"; then | ||
15104 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
15105 | else | ||
15106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15107 | for as_dir in $PATH | ||
15108 | do | ||
15109 | IFS=$as_save_IFS | ||
15110 | test -z "$as_dir" && as_dir=. | ||
15111 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15113 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
15114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15115 | break 2 | ||
15116 | fi | ||
15117 | done | ||
15118 | done | ||
15119 | IFS=$as_save_IFS | ||
15120 | |||
15121 | fi | ||
15122 | fi | ||
15123 | CXX=$ac_cv_prog_CXX | ||
15124 | if test -n "$CXX"; then | ||
15125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
15126 | $as_echo "$CXX" >&6; } | ||
15127 | else | ||
15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15129 | $as_echo "no" >&6; } | ||
15130 | fi | ||
15131 | |||
15132 | |||
15133 | test -n "$CXX" && break | ||
15134 | done | ||
15135 | fi | ||
15136 | if test -z "$CXX"; then | ||
15137 | ac_ct_CXX=$CXX | ||
15138 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
15139 | do | ||
15140 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
15141 | set dummy $ac_prog; ac_word=$2 | ||
15142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15143 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15144 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
15145 | $as_echo_n "(cached) " >&6 | ||
15146 | else | ||
15147 | if test -n "$ac_ct_CXX"; then | ||
15148 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
15149 | else | ||
15150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15151 | for as_dir in $PATH | ||
15152 | do | ||
15153 | IFS=$as_save_IFS | ||
15154 | test -z "$as_dir" && as_dir=. | ||
15155 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15157 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
15158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15159 | break 2 | ||
15160 | fi | ||
15161 | done | ||
15162 | done | ||
15163 | IFS=$as_save_IFS | ||
15164 | |||
15165 | fi | ||
15166 | fi | ||
15167 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
15168 | if test -n "$ac_ct_CXX"; then | ||
15169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
15170 | $as_echo "$ac_ct_CXX" >&6; } | ||
15171 | else | ||
15172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15173 | $as_echo "no" >&6; } | ||
15174 | fi | ||
15175 | |||
15176 | |||
15177 | test -n "$ac_ct_CXX" && break | ||
15178 | done | ||
15179 | |||
15180 | if test "x$ac_ct_CXX" = x; then | ||
15181 | CXX="g++" | ||
15182 | else | ||
15183 | case $cross_compiling:$ac_tool_warned in | ||
15184 | yes:) | ||
15185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
15186 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
15187 | ac_tool_warned=yes ;; | ||
15188 | esac | ||
15189 | CXX=$ac_ct_CXX | ||
15190 | fi | ||
15191 | fi | ||
15192 | |||
15193 | fi | ||
15194 | fi | ||
15195 | # Provide some information about the compiler. | ||
15196 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
15197 | set X $ac_compile | ||
15198 | ac_compiler=$2 | ||
15199 | for ac_option in --version -v -V -qversion; do | ||
15200 | { { ac_try="$ac_compiler $ac_option >&5" | ||
15201 | case "(($ac_try" in | ||
15202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15203 | *) ac_try_echo=$ac_try;; | ||
15204 | esac | ||
15205 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
15206 | $as_echo "$ac_try_echo"; } >&5 | ||
15207 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
15208 | ac_status=$? | ||
15209 | if test -s conftest.err; then | ||
15210 | sed '10a\ | ||
15211 | ... rest of stderr output deleted ... | ||
15212 | 10q' conftest.err >conftest.er1 | ||
15213 | cat conftest.er1 >&5 | ||
15214 | fi | ||
15215 | rm -f conftest.er1 conftest.err | ||
15216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15217 | test $ac_status = 0; } | ||
15218 | done | ||
15219 | |||
15220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
15221 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
15222 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
15223 | $as_echo_n "(cached) " >&6 | ||
15224 | else | ||
15225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15226 | /* end confdefs.h. */ | ||
15227 | |||
15228 | int | ||
15229 | main () | ||
15230 | { | ||
15231 | #ifndef __GNUC__ | ||
15232 | choke me | ||
15233 | #endif | ||
15234 | |||
15235 | ; | ||
15236 | return 0; | ||
15237 | } | ||
15238 | _ACEOF | ||
15239 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15240 | ac_compiler_gnu=yes | ||
15241 | else | ||
15242 | ac_compiler_gnu=no | ||
15243 | fi | ||
15244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15245 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
15246 | |||
15247 | fi | ||
15248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
15249 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
15250 | if test $ac_compiler_gnu = yes; then | ||
15251 | GXX=yes | ||
15252 | else | ||
15253 | GXX= | ||
15254 | fi | ||
15255 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
15256 | ac_save_CXXFLAGS=$CXXFLAGS | ||
15257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
15258 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
15259 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
15260 | $as_echo_n "(cached) " >&6 | ||
15261 | else | ||
15262 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
15263 | ac_cxx_werror_flag=yes | ||
15264 | ac_cv_prog_cxx_g=no | ||
15265 | CXXFLAGS="-g" | ||
15266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15267 | /* end confdefs.h. */ | ||
15268 | |||
15269 | int | ||
15270 | main () | ||
15271 | { | ||
15272 | |||
15273 | ; | ||
15274 | return 0; | ||
15275 | } | ||
15276 | _ACEOF | ||
15277 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15278 | ac_cv_prog_cxx_g=yes | ||
15279 | else | ||
15280 | CXXFLAGS="" | ||
15281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15282 | /* end confdefs.h. */ | ||
15283 | |||
15284 | int | ||
15285 | main () | ||
15286 | { | ||
15287 | |||
15288 | ; | ||
15289 | return 0; | ||
15290 | } | ||
15291 | _ACEOF | ||
15292 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15293 | |||
15294 | else | ||
15295 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
15296 | CXXFLAGS="-g" | ||
15297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15298 | /* end confdefs.h. */ | ||
15299 | |||
15300 | int | ||
15301 | main () | ||
15302 | { | ||
15303 | |||
15304 | ; | ||
15305 | return 0; | ||
15306 | } | ||
15307 | _ACEOF | ||
15308 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15309 | ac_cv_prog_cxx_g=yes | ||
15310 | fi | ||
15311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15312 | fi | ||
15313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15314 | fi | ||
15315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15316 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
15317 | fi | ||
15318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
15319 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
15320 | if test "$ac_test_CXXFLAGS" = set; then | ||
15321 | CXXFLAGS=$ac_save_CXXFLAGS | ||
15322 | elif test $ac_cv_prog_cxx_g = yes; then | ||
15323 | if test "$GXX" = yes; then | ||
15324 | CXXFLAGS="-g -O2" | ||
15325 | else | ||
15326 | CXXFLAGS="-g" | ||
15327 | fi | ||
15328 | else | ||
15329 | if test "$GXX" = yes; then | ||
15330 | CXXFLAGS="-O2" | ||
15331 | else | ||
15332 | CXXFLAGS= | ||
15333 | fi | ||
15334 | fi | ||
15335 | ac_ext=c | ||
15336 | ac_cpp='$CPP $CPPFLAGS' | ||
15337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15340 | |||
15341 | depcc="$CXX" am_compiler_list= | ||
15342 | |||
15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
15344 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
15345 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
15346 | $as_echo_n "(cached) " >&6 | ||
15347 | else | ||
15348 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
15349 | # We make a subdir and do the tests there. Otherwise we can end up | ||
15350 | # making bogus files that we don't know about and never remove. For | ||
15351 | # instance it was reported that on HP-UX the gcc test will end up | ||
15352 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
15353 | # in D'. | ||
15354 | mkdir conftest.dir | ||
15355 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
15356 | # using a relative directory. | ||
15357 | cp "$am_depcomp" conftest.dir | ||
15358 | cd conftest.dir | ||
15359 | # We will build objects and dependencies in a subdirectory because | ||
15360 | # it helps to detect inapplicable dependency modes. For instance | ||
15361 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
15362 | # side effect of compilation, but ICC will put the dependencies in | ||
15363 | # the current directory while Tru64 will put them in the object | ||
15364 | # directory. | ||
15365 | mkdir sub | ||
15366 | |||
15367 | am_cv_CXX_dependencies_compiler_type=none | ||
15368 | if test "$am_compiler_list" = ""; then | ||
15369 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
15370 | fi | ||
15371 | am__universal=false | ||
15372 | case " $depcc " in #( | ||
15373 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
15374 | esac | ||
15375 | |||
15376 | for depmode in $am_compiler_list; do | ||
15377 | # Setup a source with many dependencies, because some compilers | ||
15378 | # like to wrap large dependency lists on column 80 (with \), and | ||
15379 | # we should not choose a depcomp mode which is confused by this. | ||
15380 | # | ||
15381 | # We need to recreate these files for each test, as the compiler may | ||
15382 | # overwrite some of them when testing with obscure command lines. | ||
15383 | # This happens at least with the AIX C compiler. | ||
15384 | : > sub/conftest.c | ||
15385 | for i in 1 2 3 4 5 6; do | ||
15386 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
15387 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
15388 | # Solaris 8's {/usr,}/bin/sh. | ||
15389 | touch sub/conftst$i.h | ||
15390 | done | ||
15391 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
15392 | |||
15393 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
15394 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
15395 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
15396 | # versions had trouble with output in subdirs | ||
15397 | am__obj=sub/conftest.${OBJEXT-o} | ||
15398 | am__minus_obj="-o $am__obj" | ||
15399 | case $depmode in | ||
15400 | gcc) | ||
15401 | # This depmode causes a compiler race in universal mode. | ||
15402 | test "$am__universal" = false || continue | ||
15403 | ;; | ||
15404 | nosideeffect) | ||
15405 | # after this tag, mechanisms are not by side-effect, so they'll | ||
15406 | # only be used when explicitly requested | ||
15407 | if test "x$enable_dependency_tracking" = xyes; then | ||
15408 | continue | ||
15409 | else | ||
15410 | break | ||
15411 | fi | ||
15412 | ;; | ||
15413 | msvisualcpp | msvcmsys) | ||
15414 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
15415 | # not run yet. These depmodes are late enough in the game, and | ||
15416 | # so weak that their functioning should not be impacted. | ||
15417 | am__obj=conftest.${OBJEXT-o} | ||
15418 | am__minus_obj= | ||
15419 | ;; | ||
15420 | none) break ;; | ||
15421 | esac | ||
15422 | if depmode=$depmode \ | ||
15423 | source=sub/conftest.c object=$am__obj \ | ||
15424 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
15425 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
15426 | >/dev/null 2>conftest.err && | ||
15427 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
15428 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
15429 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
15430 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
15431 | # icc doesn't choke on unknown options, it will just issue warnings | ||
15432 | # or remarks (even with -Werror). So we grep stderr for any message | ||
15433 | # that says an option was ignored or not supported. | ||
15434 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
15435 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
15436 | # The diagnosis changed in icc 8.0: | ||
15437 | # icc: Command line remark: option '-MP' not supported | ||
15438 | if (grep 'ignoring option' conftest.err || | ||
15439 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
15440 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
15441 | break | ||
15442 | fi | ||
15443 | fi | ||
15444 | done | ||
15445 | |||
15446 | cd .. | ||
15447 | rm -rf conftest.dir | ||
15448 | else | ||
15449 | am_cv_CXX_dependencies_compiler_type=none | ||
15450 | fi | ||
15451 | |||
15452 | fi | ||
15453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
15454 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
15455 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
15456 | |||
15457 | if | ||
15458 | test "x$enable_dependency_tracking" != xno \ | ||
15459 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
15460 | am__fastdepCXX_TRUE= | ||
15461 | am__fastdepCXX_FALSE='#' | ||
15462 | else | ||
15463 | am__fastdepCXX_TRUE='#' | ||
15464 | am__fastdepCXX_FALSE= | ||
15465 | fi | ||
15466 | |||
15467 | |||
15468 | |||
15469 | ac_ext=cpp | ||
15470 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
15471 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15472 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15473 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
15474 | if test -z "$CXX"; then | ||
15475 | if test -n "$CCC"; then | ||
15476 | CXX=$CCC | ||
15477 | else | ||
15478 | if test -n "$ac_tool_prefix"; then | ||
15479 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
15480 | do | ||
15481 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
15482 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
15483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15484 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15485 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
15486 | $as_echo_n "(cached) " >&6 | ||
15487 | else | ||
15488 | if test -n "$CXX"; then | ||
15489 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
15490 | else | ||
15491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15492 | for as_dir in $PATH | ||
15493 | do | ||
15494 | IFS=$as_save_IFS | ||
15495 | test -z "$as_dir" && as_dir=. | ||
15496 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15498 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
15499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15500 | break 2 | ||
15501 | fi | ||
15502 | done | ||
15503 | done | ||
15504 | IFS=$as_save_IFS | ||
15505 | |||
15506 | fi | ||
15507 | fi | ||
15508 | CXX=$ac_cv_prog_CXX | ||
15509 | if test -n "$CXX"; then | ||
15510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
15511 | $as_echo "$CXX" >&6; } | ||
15512 | else | ||
15513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15514 | $as_echo "no" >&6; } | ||
15515 | fi | ||
15516 | |||
15517 | |||
15518 | test -n "$CXX" && break | ||
15519 | done | ||
15520 | fi | ||
15521 | if test -z "$CXX"; then | ||
15522 | ac_ct_CXX=$CXX | ||
15523 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
15524 | do | ||
15525 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
15526 | set dummy $ac_prog; ac_word=$2 | ||
15527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15528 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15529 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
15530 | $as_echo_n "(cached) " >&6 | ||
15531 | else | ||
15532 | if test -n "$ac_ct_CXX"; then | ||
15533 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
15534 | else | ||
15535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15536 | for as_dir in $PATH | ||
15537 | do | ||
15538 | IFS=$as_save_IFS | ||
15539 | test -z "$as_dir" && as_dir=. | ||
15540 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15542 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
15543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15544 | break 2 | ||
15545 | fi | ||
15546 | done | ||
15547 | done | ||
15548 | IFS=$as_save_IFS | ||
15549 | |||
15550 | fi | ||
15551 | fi | ||
15552 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
15553 | if test -n "$ac_ct_CXX"; then | ||
15554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
15555 | $as_echo "$ac_ct_CXX" >&6; } | ||
15556 | else | ||
15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15558 | $as_echo "no" >&6; } | ||
15559 | fi | ||
15560 | |||
15561 | |||
15562 | test -n "$ac_ct_CXX" && break | ||
15563 | done | ||
15564 | |||
15565 | if test "x$ac_ct_CXX" = x; then | ||
15566 | CXX="g++" | ||
15567 | else | ||
15568 | case $cross_compiling:$ac_tool_warned in | ||
15569 | yes:) | ||
15570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
15571 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
15572 | ac_tool_warned=yes ;; | ||
15573 | esac | ||
15574 | CXX=$ac_ct_CXX | ||
15575 | fi | ||
15576 | fi | ||
15577 | |||
15578 | fi | ||
15579 | fi | ||
15580 | # Provide some information about the compiler. | ||
15581 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
15582 | set X $ac_compile | ||
15583 | ac_compiler=$2 | ||
15584 | for ac_option in --version -v -V -qversion; do | ||
15585 | { { ac_try="$ac_compiler $ac_option >&5" | ||
15586 | case "(($ac_try" in | ||
15587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15588 | *) ac_try_echo=$ac_try;; | ||
15589 | esac | ||
15590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
15591 | $as_echo "$ac_try_echo"; } >&5 | ||
15592 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
15593 | ac_status=$? | ||
15594 | if test -s conftest.err; then | ||
15595 | sed '10a\ | ||
15596 | ... rest of stderr output deleted ... | ||
15597 | 10q' conftest.err >conftest.er1 | ||
15598 | cat conftest.er1 >&5 | ||
15599 | fi | ||
15600 | rm -f conftest.er1 conftest.err | ||
15601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15602 | test $ac_status = 0; } | ||
15603 | done | ||
15604 | |||
15605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
15606 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
15607 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
15608 | $as_echo_n "(cached) " >&6 | ||
15609 | else | ||
15610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15611 | /* end confdefs.h. */ | ||
15612 | |||
15613 | int | ||
15614 | main () | ||
15615 | { | ||
15616 | #ifndef __GNUC__ | ||
15617 | choke me | ||
15618 | #endif | ||
15619 | |||
15620 | ; | ||
15621 | return 0; | ||
15622 | } | ||
15623 | _ACEOF | ||
15624 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15625 | ac_compiler_gnu=yes | ||
15626 | else | ||
15627 | ac_compiler_gnu=no | ||
15628 | fi | ||
15629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15630 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
15631 | |||
15632 | fi | ||
15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
15634 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
15635 | if test $ac_compiler_gnu = yes; then | ||
15636 | GXX=yes | ||
15637 | else | ||
15638 | GXX= | ||
15639 | fi | ||
15640 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
15641 | ac_save_CXXFLAGS=$CXXFLAGS | ||
15642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
15643 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
15644 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
15645 | $as_echo_n "(cached) " >&6 | ||
15646 | else | ||
15647 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
15648 | ac_cxx_werror_flag=yes | ||
15649 | ac_cv_prog_cxx_g=no | ||
15650 | CXXFLAGS="-g" | ||
15651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15652 | /* end confdefs.h. */ | ||
15653 | |||
15654 | int | ||
15655 | main () | ||
15656 | { | ||
15657 | |||
15658 | ; | ||
15659 | return 0; | ||
15660 | } | ||
15661 | _ACEOF | ||
15662 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15663 | ac_cv_prog_cxx_g=yes | ||
15664 | else | ||
15665 | CXXFLAGS="" | ||
15666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15667 | /* end confdefs.h. */ | ||
15668 | |||
15669 | int | ||
15670 | main () | ||
15671 | { | ||
15672 | |||
15673 | ; | ||
15674 | return 0; | ||
15675 | } | ||
15676 | _ACEOF | ||
15677 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15678 | |||
15679 | else | ||
15680 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
15681 | CXXFLAGS="-g" | ||
15682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15683 | /* end confdefs.h. */ | ||
15684 | |||
15685 | int | ||
15686 | main () | ||
15687 | { | ||
15688 | |||
15689 | ; | ||
15690 | return 0; | ||
15691 | } | ||
15692 | _ACEOF | ||
15693 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15694 | ac_cv_prog_cxx_g=yes | ||
15695 | fi | ||
15696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15697 | fi | ||
15698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15699 | fi | ||
15700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15701 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
15702 | fi | ||
15703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
15704 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
15705 | if test "$ac_test_CXXFLAGS" = set; then | ||
15706 | CXXFLAGS=$ac_save_CXXFLAGS | ||
15707 | elif test $ac_cv_prog_cxx_g = yes; then | ||
15708 | if test "$GXX" = yes; then | ||
15709 | CXXFLAGS="-g -O2" | ||
15710 | else | ||
15711 | CXXFLAGS="-g" | ||
15712 | fi | ||
15713 | else | ||
15714 | if test "$GXX" = yes; then | ||
15715 | CXXFLAGS="-O2" | ||
15716 | else | ||
15717 | CXXFLAGS= | ||
15718 | fi | ||
15719 | fi | ||
15720 | ac_ext=c | ||
15721 | ac_cpp='$CPP $CPPFLAGS' | ||
15722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15725 | |||
15726 | depcc="$CXX" am_compiler_list= | ||
15727 | |||
15728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
15729 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
15730 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
15731 | $as_echo_n "(cached) " >&6 | ||
15732 | else | ||
15733 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
15734 | # We make a subdir and do the tests there. Otherwise we can end up | ||
15735 | # making bogus files that we don't know about and never remove. For | ||
15736 | # instance it was reported that on HP-UX the gcc test will end up | ||
15737 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
15738 | # in D'. | ||
15739 | mkdir conftest.dir | ||
15740 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
15741 | # using a relative directory. | ||
15742 | cp "$am_depcomp" conftest.dir | ||
15743 | cd conftest.dir | ||
15744 | # We will build objects and dependencies in a subdirectory because | ||
15745 | # it helps to detect inapplicable dependency modes. For instance | ||
15746 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
15747 | # side effect of compilation, but ICC will put the dependencies in | ||
15748 | # the current directory while Tru64 will put them in the object | ||
15749 | # directory. | ||
15750 | mkdir sub | ||
15751 | |||
15752 | am_cv_CXX_dependencies_compiler_type=none | ||
15753 | if test "$am_compiler_list" = ""; then | ||
15754 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
15755 | fi | ||
15756 | am__universal=false | ||
15757 | case " $depcc " in #( | ||
15758 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
15759 | esac | ||
15760 | |||
15761 | for depmode in $am_compiler_list; do | ||
15762 | # Setup a source with many dependencies, because some compilers | ||
15763 | # like to wrap large dependency lists on column 80 (with \), and | ||
15764 | # we should not choose a depcomp mode which is confused by this. | ||
15765 | # | ||
15766 | # We need to recreate these files for each test, as the compiler may | ||
15767 | # overwrite some of them when testing with obscure command lines. | ||
15768 | # This happens at least with the AIX C compiler. | ||
15769 | : > sub/conftest.c | ||
15770 | for i in 1 2 3 4 5 6; do | ||
15771 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
15772 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
15773 | # Solaris 8's {/usr,}/bin/sh. | ||
15774 | touch sub/conftst$i.h | ||
15775 | done | ||
15776 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
15777 | |||
15778 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
15779 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
15780 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
15781 | # versions had trouble with output in subdirs | ||
15782 | am__obj=sub/conftest.${OBJEXT-o} | ||
15783 | am__minus_obj="-o $am__obj" | ||
15784 | case $depmode in | ||
15785 | gcc) | ||
15786 | # This depmode causes a compiler race in universal mode. | ||
15787 | test "$am__universal" = false || continue | ||
15788 | ;; | ||
15789 | nosideeffect) | ||
15790 | # after this tag, mechanisms are not by side-effect, so they'll | ||
15791 | # only be used when explicitly requested | ||
15792 | if test "x$enable_dependency_tracking" = xyes; then | ||
15793 | continue | ||
15794 | else | ||
15795 | break | ||
15796 | fi | ||
15797 | ;; | ||
15798 | msvisualcpp | msvcmsys) | ||
15799 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
15800 | # not run yet. These depmodes are late enough in the game, and | ||
15801 | # so weak that their functioning should not be impacted. | ||
15802 | am__obj=conftest.${OBJEXT-o} | ||
15803 | am__minus_obj= | ||
15804 | ;; | ||
15805 | none) break ;; | ||
15806 | esac | ||
15807 | if depmode=$depmode \ | ||
15808 | source=sub/conftest.c object=$am__obj \ | ||
15809 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
15810 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
15811 | >/dev/null 2>conftest.err && | ||
15812 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
15813 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
15814 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
15815 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
15816 | # icc doesn't choke on unknown options, it will just issue warnings | ||
15817 | # or remarks (even with -Werror). So we grep stderr for any message | ||
15818 | # that says an option was ignored or not supported. | ||
15819 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
15820 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
15821 | # The diagnosis changed in icc 8.0: | ||
15822 | # icc: Command line remark: option '-MP' not supported | ||
15823 | if (grep 'ignoring option' conftest.err || | ||
15824 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
15825 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
15826 | break | ||
15827 | fi | ||
15828 | fi | ||
15829 | done | ||
15830 | |||
15831 | cd .. | ||
15832 | rm -rf conftest.dir | ||
15833 | else | ||
15834 | am_cv_CXX_dependencies_compiler_type=none | ||
15835 | fi | ||
15836 | |||
15837 | fi | ||
15838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
15839 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
15840 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
15841 | |||
15842 | if | ||
15843 | test "x$enable_dependency_tracking" != xno \ | ||
15844 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
15845 | am__fastdepCXX_TRUE= | ||
15846 | am__fastdepCXX_FALSE='#' | ||
15847 | else | ||
15848 | am__fastdepCXX_TRUE='#' | ||
15849 | am__fastdepCXX_FALSE= | ||
15850 | fi | ||
15851 | |||
15852 | |||
15853 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
15854 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
15855 | (test "X$CXX" != "Xg++"))) ; then | ||
15856 | ac_ext=cpp | ||
15857 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
15858 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15859 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15860 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
15861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | ||
15862 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | ||
15863 | if test -z "$CXXCPP"; then | ||
15864 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | ||
15865 | $as_echo_n "(cached) " >&6 | ||
15866 | else | ||
15867 | # Double quotes because CXXCPP needs to be expanded | ||
15868 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
15869 | do | ||
15870 | ac_preproc_ok=false | ||
15871 | for ac_cxx_preproc_warn_flag in '' yes | ||
15872 | do | ||
15873 | # Use a header file that comes with gcc, so configuring glibc | ||
15874 | # with a fresh cross-compiler works. | ||
15875 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15876 | # <limits.h> exists even on freestanding compilers. | ||
15877 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
15878 | # not just through cpp. "Syntax error" is here to catch this case. | ||
15879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15880 | /* end confdefs.h. */ | ||
15881 | #ifdef __STDC__ | ||
15882 | # include <limits.h> | ||
15883 | #else | ||
15884 | # include <assert.h> | ||
15885 | #endif | ||
15886 | Syntax error | ||
15887 | _ACEOF | ||
15888 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
15889 | |||
15890 | else | ||
15891 | # Broken: fails on valid input. | ||
15892 | continue | ||
15893 | fi | ||
15894 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
15895 | |||
15896 | # OK, works on sane cases. Now check whether nonexistent headers | ||
15897 | # can be detected and how. | ||
15898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15899 | /* end confdefs.h. */ | ||
15900 | #include <ac_nonexistent.h> | ||
15901 | _ACEOF | ||
15902 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
15903 | # Broken: success on invalid input. | ||
15904 | continue | ||
15905 | else | ||
15906 | # Passes both tests. | ||
15907 | ac_preproc_ok=: | ||
15908 | break | ||
15909 | fi | ||
15910 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
15911 | |||
15912 | done | ||
15913 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
15914 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
15915 | if $ac_preproc_ok; then : | ||
15916 | break | ||
15917 | fi | ||
15918 | |||
15919 | done | ||
15920 | ac_cv_prog_CXXCPP=$CXXCPP | ||
15921 | |||
15922 | fi | ||
15923 | CXXCPP=$ac_cv_prog_CXXCPP | ||
15924 | else | ||
15925 | ac_cv_prog_CXXCPP=$CXXCPP | ||
15926 | fi | ||
15927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | ||
15928 | $as_echo "$CXXCPP" >&6; } | ||
15929 | ac_preproc_ok=false | ||
15930 | for ac_cxx_preproc_warn_flag in '' yes | ||
15931 | do | ||
15932 | # Use a header file that comes with gcc, so configuring glibc | ||
15933 | # with a fresh cross-compiler works. | ||
15934 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15935 | # <limits.h> exists even on freestanding compilers. | ||
15936 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
15937 | # not just through cpp. "Syntax error" is here to catch this case. | ||
15938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15939 | /* end confdefs.h. */ | ||
15940 | #ifdef __STDC__ | ||
15941 | # include <limits.h> | ||
15942 | #else | ||
15943 | # include <assert.h> | ||
15944 | #endif | ||
15945 | Syntax error | ||
15946 | _ACEOF | ||
15947 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
15948 | |||
15949 | else | ||
15950 | # Broken: fails on valid input. | ||
15951 | continue | ||
15952 | fi | ||
15953 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
15954 | |||
15955 | # OK, works on sane cases. Now check whether nonexistent headers | ||
15956 | # can be detected and how. | ||
15957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15958 | /* end confdefs.h. */ | ||
15959 | #include <ac_nonexistent.h> | ||
15960 | _ACEOF | ||
15961 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
15962 | # Broken: success on invalid input. | ||
15963 | continue | ||
15964 | else | ||
15965 | # Passes both tests. | ||
15966 | ac_preproc_ok=: | ||
15967 | break | ||
15968 | fi | ||
15969 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
15970 | |||
15971 | done | ||
15972 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
15973 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
15974 | if $ac_preproc_ok; then : | ||
15975 | |||
15976 | else | ||
15977 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
15978 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
15979 | _lt_caught_CXX_error=yes; } | ||
15980 | fi | ||
15981 | |||
15982 | ac_ext=c | ||
15983 | ac_cpp='$CPP $CPPFLAGS' | ||
15984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15987 | |||
15988 | else | ||
15989 | _lt_caught_CXX_error=yes | ||
15990 | fi | ||
15991 | |||
15992 | |||
15993 | |||
15994 | |||
15995 | ac_ext=cpp | ||
15996 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
15997 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15998 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15999 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
16000 | |||
16001 | archive_cmds_need_lc_CXX=no | ||
16002 | allow_undefined_flag_CXX= | ||
16003 | always_export_symbols_CXX=no | ||
16004 | archive_expsym_cmds_CXX= | ||
16005 | compiler_needs_object_CXX=no | ||
16006 | export_dynamic_flag_spec_CXX= | ||
16007 | hardcode_direct_CXX=no | ||
16008 | hardcode_direct_absolute_CXX=no | ||
16009 | hardcode_libdir_flag_spec_CXX= | ||
16010 | hardcode_libdir_flag_spec_ld_CXX= | ||
16011 | hardcode_libdir_separator_CXX= | ||
16012 | hardcode_minus_L_CXX=no | ||
16013 | hardcode_shlibpath_var_CXX=unsupported | ||
16014 | hardcode_automatic_CXX=no | ||
16015 | inherit_rpath_CXX=no | ||
16016 | module_cmds_CXX= | ||
16017 | module_expsym_cmds_CXX= | ||
16018 | link_all_deplibs_CXX=unknown | ||
16019 | old_archive_cmds_CXX=$old_archive_cmds | ||
16020 | no_undefined_flag_CXX= | ||
16021 | whole_archive_flag_spec_CXX= | ||
16022 | enable_shared_with_static_runtimes_CXX=no | ||
16023 | |||
16024 | # Source file extension for C++ test sources. | ||
16025 | ac_ext=cpp | ||
16026 | |||
16027 | # Object file extension for compiled C++ test sources. | ||
16028 | objext=o | ||
16029 | objext_CXX=$objext | ||
16030 | |||
16031 | # No sense in running all these tests if we already determined that | ||
16032 | # the CXX compiler isn't working. Some variables (like enable_shared) | ||
16033 | # are currently assumed to apply to all compilers on this platform, | ||
16034 | # and will be corrupted by setting them based on a non-working compiler. | ||
16035 | if test "$_lt_caught_CXX_error" != yes; then | ||
16036 | # Code to be used in simple compile tests | ||
16037 | lt_simple_compile_test_code="int some_variable = 0;" | ||
16038 | |||
16039 | # Code to be used in simple link tests | ||
16040 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | ||
16041 | |||
16042 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
16043 | |||
16044 | |||
16045 | |||
16046 | |||
16047 | |||
16048 | |||
16049 | # If no C compiler was specified, use CC. | ||
16050 | LTCC=${LTCC-"$CC"} | ||
16051 | |||
16052 | # If no C compiler flags were specified, use CFLAGS. | ||
16053 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
16054 | |||
16055 | # Allow CC to be a program name with arguments. | ||
16056 | compiler=$CC | ||
16057 | |||
16058 | |||
16059 | # save warnings/boilerplate of simple test code | ||
16060 | ac_outfile=conftest.$ac_objext | ||
16061 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
16062 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
16063 | _lt_compiler_boilerplate=`cat conftest.err` | ||
16064 | $RM conftest* | ||
16065 | |||
16066 | ac_outfile=conftest.$ac_objext | ||
16067 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
16068 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
16069 | _lt_linker_boilerplate=`cat conftest.err` | ||
16070 | $RM -r conftest* | ||
16071 | |||
16072 | |||
16073 | # Allow CC to be a program name with arguments. | ||
16074 | lt_save_CC=$CC | ||
16075 | lt_save_LD=$LD | ||
16076 | lt_save_GCC=$GCC | ||
16077 | GCC=$GXX | ||
16078 | lt_save_with_gnu_ld=$with_gnu_ld | ||
16079 | lt_save_path_LD=$lt_cv_path_LD | ||
16080 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
16081 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
16082 | else | ||
16083 | $as_unset lt_cv_prog_gnu_ld | ||
16084 | fi | ||
16085 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
16086 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
16087 | else | ||
16088 | $as_unset lt_cv_path_LD | ||
16089 | fi | ||
16090 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
16091 | CC=${CXX-"c++"} | ||
16092 | compiler=$CC | ||
16093 | compiler_CXX=$CC | ||
16094 | for cc_temp in $compiler""; do | ||
16095 | case $cc_temp in | ||
16096 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
16097 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
16098 | \-*) ;; | ||
16099 | *) break;; | ||
16100 | esac | ||
16101 | done | ||
16102 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
16103 | |||
16104 | |||
16105 | if test -n "$compiler"; then | ||
16106 | # We don't want -fno-exception when compiling C++ code, so set the | ||
16107 | # no_builtin_flag separately | ||
16108 | if test "$GXX" = yes; then | ||
16109 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
16110 | else | ||
16111 | lt_prog_compiler_no_builtin_flag_CXX= | ||
16112 | fi | ||
16113 | |||
16114 | if test "$GXX" = yes; then | ||
16115 | # Set up default GNU C++ configuration | ||
16116 | |||
16117 | |||
16118 | |||
16119 | # Check whether --with-gnu-ld was given. | ||
16120 | if test "${with_gnu_ld+set}" = set; then : | ||
16121 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
16122 | else | ||
16123 | with_gnu_ld=no | ||
16124 | fi | ||
16125 | |||
16126 | ac_prog=ld | ||
16127 | if test "$GCC" = yes; then | ||
16128 | # Check if gcc -print-prog-name=ld gives a path. | ||
16129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
16130 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
16131 | case $host in | ||
16132 | *-*-mingw*) | ||
16133 | # gcc leaves a trailing carriage return which upsets mingw | ||
16134 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
16135 | *) | ||
16136 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
16137 | esac | ||
16138 | case $ac_prog in | ||
16139 | # Accept absolute paths. | ||
16140 | [\\/]* | ?:[\\/]*) | ||
16141 | re_direlt='/[^/][^/]*/\.\./' | ||
16142 | # Canonicalize the pathname of ld | ||
16143 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
16144 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
16145 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
16146 | done | ||
16147 | test -z "$LD" && LD="$ac_prog" | ||
16148 | ;; | ||
16149 | "") | ||
16150 | # If it fails, then pretend we aren't using GCC. | ||
16151 | ac_prog=ld | ||
16152 | ;; | ||
16153 | *) | ||
16154 | # If it is relative, then search for the first ld in PATH. | ||
16155 | with_gnu_ld=unknown | ||
16156 | ;; | ||
16157 | esac | ||
16158 | elif test "$with_gnu_ld" = yes; then | ||
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
16160 | $as_echo_n "checking for GNU ld... " >&6; } | ||
16161 | else | ||
16162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
16163 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
16164 | fi | ||
16165 | if test "${lt_cv_path_LD+set}" = set; then : | ||
16166 | $as_echo_n "(cached) " >&6 | ||
16167 | else | ||
16168 | if test -z "$LD"; then | ||
16169 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
16170 | for ac_dir in $PATH; do | ||
16171 | IFS="$lt_save_ifs" | ||
16172 | test -z "$ac_dir" && ac_dir=. | ||
16173 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
16174 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
16175 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
16176 | # but apparently some variants of GNU ld only accept -v. | ||
16177 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
16178 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
16179 | *GNU* | *'with BFD'*) | ||
16180 | test "$with_gnu_ld" != no && break | ||
16181 | ;; | ||
16182 | *) | ||
16183 | test "$with_gnu_ld" != yes && break | ||
16184 | ;; | ||
16185 | esac | ||
16186 | fi | ||
16187 | done | ||
16188 | IFS="$lt_save_ifs" | ||
16189 | else | ||
16190 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
16191 | fi | ||
16192 | fi | ||
16193 | |||
16194 | LD="$lt_cv_path_LD" | ||
16195 | if test -n "$LD"; then | ||
16196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
16197 | $as_echo "$LD" >&6; } | ||
16198 | else | ||
16199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16200 | $as_echo "no" >&6; } | ||
16201 | fi | ||
16202 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
16203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
16204 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
16205 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
16206 | $as_echo_n "(cached) " >&6 | ||
16207 | else | ||
16208 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
16209 | case `$LD -v 2>&1 </dev/null` in | ||
16210 | *GNU* | *'with BFD'*) | ||
16211 | lt_cv_prog_gnu_ld=yes | ||
16212 | ;; | ||
16213 | *) | ||
16214 | lt_cv_prog_gnu_ld=no | ||
16215 | ;; | ||
16216 | esac | ||
16217 | fi | ||
16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
16219 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
16220 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
16221 | |||
16222 | |||
16223 | |||
16224 | |||
16225 | |||
16226 | |||
16227 | |||
16228 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
16229 | # archiving commands below assume that GNU ld is being used. | ||
16230 | if test "$with_gnu_ld" = yes; then | ||
16231 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16232 | 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' | ||
16233 | |||
16234 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16235 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16236 | |||
16237 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
16238 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
16239 | # investigate it a little bit more. (MM) | ||
16240 | wlarc='${wl}' | ||
16241 | |||
16242 | # ancient GNU ld didn't support --whole-archive et. al. | ||
16243 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | ||
16244 | $GREP 'no-whole-archive' > /dev/null; then | ||
16245 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
16246 | else | ||
16247 | whole_archive_flag_spec_CXX= | ||
16248 | fi | ||
16249 | else | ||
16250 | with_gnu_ld=no | ||
16251 | wlarc= | ||
16252 | |||
16253 | # A generic and very simple default shared library creation | ||
16254 | # command for GNU C++ for the case where it uses the native | ||
16255 | # linker, instead of GNU ld. If possible, this setting should | ||
16256 | # overridden to take advantage of the native linker features on | ||
16257 | # the platform it is being used on. | ||
16258 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
16259 | fi | ||
16260 | |||
16261 | # Commands to make compiler produce verbose output that lists | ||
16262 | # what "hidden" libraries, object files and flags are used when | ||
16263 | # linking a shared library. | ||
16264 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
16265 | |||
16266 | else | ||
16267 | GXX=no | ||
16268 | with_gnu_ld=no | ||
16269 | wlarc= | ||
16270 | fi | ||
16271 | |||
16272 | # PORTME: fill in a description of your system's C++ link characteristics | ||
16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
16274 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
16275 | ld_shlibs_CXX=yes | ||
16276 | case $host_os in | ||
16277 | aix3*) | ||
16278 | # FIXME: insert proper C++ library support | ||
16279 | ld_shlibs_CXX=no | ||
16280 | ;; | ||
16281 | aix[4-9]*) | ||
16282 | if test "$host_cpu" = ia64; then | ||
16283 | # On IA64, the linker does run time linking by default, so we don't | ||
16284 | # have to do anything special. | ||
16285 | aix_use_runtimelinking=no | ||
16286 | exp_sym_flag='-Bexport' | ||
16287 | no_entry_flag="" | ||
16288 | else | ||
16289 | aix_use_runtimelinking=no | ||
16290 | |||
16291 | # Test if we are trying to use run time linking or normal | ||
16292 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
16293 | # need to do runtime linking. | ||
16294 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
16295 | for ld_flag in $LDFLAGS; do | ||
16296 | case $ld_flag in | ||
16297 | *-brtl*) | ||
16298 | aix_use_runtimelinking=yes | ||
16299 | break | ||
16300 | ;; | ||
16301 | esac | ||
16302 | done | ||
16303 | ;; | ||
16304 | esac | ||
16305 | |||
16306 | exp_sym_flag='-bexport' | ||
16307 | no_entry_flag='-bnoentry' | ||
16308 | fi | ||
16309 | |||
16310 | # When large executables or shared objects are built, AIX ld can | ||
16311 | # have problems creating the table of contents. If linking a library | ||
16312 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
16313 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
16314 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
16315 | |||
16316 | archive_cmds_CXX='' | ||
16317 | hardcode_direct_CXX=yes | ||
16318 | hardcode_direct_absolute_CXX=yes | ||
16319 | hardcode_libdir_separator_CXX=':' | ||
16320 | link_all_deplibs_CXX=yes | ||
16321 | file_list_spec_CXX='${wl}-f,' | ||
16322 | |||
16323 | if test "$GXX" = yes; then | ||
16324 | case $host_os in aix4.[012]|aix4.[012].*) | ||
16325 | # We only want to do this on AIX 4.2 and lower, the check | ||
16326 | # below for broken collect2 doesn't work under 4.3+ | ||
16327 | collect2name=`${CC} -print-prog-name=collect2` | ||
16328 | if test -f "$collect2name" && | ||
16329 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
16330 | then | ||
16331 | # We have reworked collect2 | ||
16332 | : | ||
16333 | else | ||
16334 | # We have old collect2 | ||
16335 | hardcode_direct_CXX=unsupported | ||
16336 | # It fails to find uninstalled libraries when the uninstalled | ||
16337 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
16338 | # to unsupported forces relinking | ||
16339 | hardcode_minus_L_CXX=yes | ||
16340 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
16341 | hardcode_libdir_separator_CXX= | ||
16342 | fi | ||
16343 | esac | ||
16344 | shared_flag='-shared' | ||
16345 | if test "$aix_use_runtimelinking" = yes; then | ||
16346 | shared_flag="$shared_flag "'${wl}-G' | ||
16347 | fi | ||
16348 | else | ||
16349 | # not using gcc | ||
16350 | if test "$host_cpu" = ia64; then | ||
16351 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
16352 | # chokes on -Wl,-G. The following line is correct: | ||
16353 | shared_flag='-G' | ||
16354 | else | ||
16355 | if test "$aix_use_runtimelinking" = yes; then | ||
16356 | shared_flag='${wl}-G' | ||
16357 | else | ||
16358 | shared_flag='${wl}-bM:SRE' | ||
16359 | fi | ||
16360 | fi | ||
16361 | fi | ||
16362 | |||
16363 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | ||
16364 | # It seems that -bexpall does not export symbols beginning with | ||
16365 | # underscore (_), so it is better to generate a list of symbols to | ||
16366 | # export. | ||
16367 | always_export_symbols_CXX=yes | ||
16368 | if test "$aix_use_runtimelinking" = yes; then | ||
16369 | # Warning - without using the other runtime loading flags (-brtl), | ||
16370 | # -berok will link without error, but may produce a broken library. | ||
16371 | allow_undefined_flag_CXX='-berok' | ||
16372 | # Determine the default libpath from the value encoded in an empty | ||
16373 | # executable. | ||
16374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16375 | /* end confdefs.h. */ | ||
16376 | |||
16377 | int | ||
16378 | main () | ||
16379 | { | ||
16380 | |||
16381 | ; | ||
16382 | return 0; | ||
16383 | } | ||
16384 | _ACEOF | ||
16385 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
16386 | |||
16387 | lt_aix_libpath_sed=' | ||
16388 | /Import File Strings/,/^$/ { | ||
16389 | /^0/ { | ||
16390 | s/^0 *\(.*\)$/\1/ | ||
16391 | p | ||
16392 | } | ||
16393 | }' | ||
16394 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
16395 | # Check for a 64-bit object if we didn't find anything. | ||
16396 | if test -z "$aix_libpath"; then | ||
16397 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
16398 | fi | ||
16399 | fi | ||
16400 | rm -f core conftest.err conftest.$ac_objext \ | ||
16401 | conftest$ac_exeext conftest.$ac_ext | ||
16402 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
16403 | |||
16404 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
16405 | |||
16406 | 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" | ||
16407 | else | ||
16408 | if test "$host_cpu" = ia64; then | ||
16409 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
16410 | allow_undefined_flag_CXX="-z nodefs" | ||
16411 | 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" | ||
16412 | else | ||
16413 | # Determine the default libpath from the value encoded in an | ||
16414 | # empty executable. | ||
16415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16416 | /* end confdefs.h. */ | ||
16417 | |||
16418 | int | ||
16419 | main () | ||
16420 | { | ||
16421 | |||
16422 | ; | ||
16423 | return 0; | ||
16424 | } | ||
16425 | _ACEOF | ||
16426 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
16427 | |||
16428 | lt_aix_libpath_sed=' | ||
16429 | /Import File Strings/,/^$/ { | ||
16430 | /^0/ { | ||
16431 | s/^0 *\(.*\)$/\1/ | ||
16432 | p | ||
16433 | } | ||
16434 | }' | ||
16435 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
16436 | # Check for a 64-bit object if we didn't find anything. | ||
16437 | if test -z "$aix_libpath"; then | ||
16438 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
16439 | fi | ||
16440 | fi | ||
16441 | rm -f core conftest.err conftest.$ac_objext \ | ||
16442 | conftest$ac_exeext conftest.$ac_ext | ||
16443 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
16444 | |||
16445 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
16446 | # Warning - without using the other run time loading flags, | ||
16447 | # -berok will link without error, but may produce a broken library. | ||
16448 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
16449 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
16450 | # Exported symbols can be pulled into shared objects from archives | ||
16451 | whole_archive_flag_spec_CXX='$convenience' | ||
16452 | archive_cmds_need_lc_CXX=yes | ||
16453 | # This is similar to how AIX traditionally builds its shared | ||
16454 | # libraries. | ||
16455 | 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' | ||
16456 | fi | ||
16457 | fi | ||
16458 | ;; | ||
16459 | |||
16460 | beos*) | ||
16461 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
16462 | allow_undefined_flag_CXX=unsupported | ||
16463 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
16464 | # support --undefined. This deserves some investigation. FIXME | ||
16465 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16466 | else | ||
16467 | ld_shlibs_CXX=no | ||
16468 | fi | ||
16469 | ;; | ||
16470 | |||
16471 | chorus*) | ||
16472 | case $cc_basename in | ||
16473 | *) | ||
16474 | # FIXME: insert proper C++ library support | ||
16475 | ld_shlibs_CXX=no | ||
16476 | ;; | ||
16477 | esac | ||
16478 | ;; | ||
16479 | |||
16480 | cygwin* | mingw* | pw32* | cegcc*) | ||
16481 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
16482 | # as there is no search path for DLLs. | ||
16483 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
16484 | allow_undefined_flag_CXX=unsupported | ||
16485 | always_export_symbols_CXX=no | ||
16486 | enable_shared_with_static_runtimes_CXX=yes | ||
16487 | |||
16488 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
16489 | 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' | ||
16490 | # If the export-symbols file already is a .def file (1st line | ||
16491 | # is EXPORTS), use it as is; otherwise, prepend... | ||
16492 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
16493 | cp $export_symbols $output_objdir/$soname.def; | ||
16494 | else | ||
16495 | echo EXPORTS > $output_objdir/$soname.def; | ||
16496 | cat $export_symbols >> $output_objdir/$soname.def; | ||
16497 | fi~ | ||
16498 | $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' | ||
16499 | else | ||
16500 | ld_shlibs_CXX=no | ||
16501 | fi | ||
16502 | ;; | ||
16503 | darwin* | rhapsody*) | ||
16504 | |||
16505 | |||
16506 | archive_cmds_need_lc_CXX=no | ||
16507 | hardcode_direct_CXX=no | ||
16508 | hardcode_automatic_CXX=yes | ||
16509 | hardcode_shlibpath_var_CXX=unsupported | ||
16510 | whole_archive_flag_spec_CXX='' | ||
16511 | link_all_deplibs_CXX=yes | ||
16512 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | ||
16513 | case $cc_basename in | ||
16514 | ifort*) _lt_dar_can_shared=yes ;; | ||
16515 | *) _lt_dar_can_shared=$GCC ;; | ||
16516 | esac | ||
16517 | if test "$_lt_dar_can_shared" = "yes"; then | ||
16518 | output_verbose_link_cmd=echo | ||
16519 | 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}" | ||
16520 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
16521 | 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}" | ||
16522 | 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}" | ||
16523 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
16524 | 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}" | ||
16525 | 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}" | ||
16526 | fi | ||
16527 | |||
16528 | else | ||
16529 | ld_shlibs_CXX=no | ||
16530 | fi | ||
16531 | |||
16532 | ;; | ||
16533 | |||
16534 | dgux*) | ||
16535 | case $cc_basename in | ||
16536 | ec++*) | ||
16537 | # FIXME: insert proper C++ library support | ||
16538 | ld_shlibs_CXX=no | ||
16539 | ;; | ||
16540 | ghcx*) | ||
16541 | # Green Hills C++ Compiler | ||
16542 | # FIXME: insert proper C++ library support | ||
16543 | ld_shlibs_CXX=no | ||
16544 | ;; | ||
16545 | *) | ||
16546 | # FIXME: insert proper C++ library support | ||
16547 | ld_shlibs_CXX=no | ||
16548 | ;; | ||
16549 | esac | ||
16550 | ;; | ||
16551 | |||
16552 | freebsd[12]*) | ||
16553 | # C++ shared libraries reported to be fairly broken before | ||
16554 | # switch to ELF | ||
16555 | ld_shlibs_CXX=no | ||
16556 | ;; | ||
16557 | |||
16558 | freebsd-elf*) | ||
16559 | archive_cmds_need_lc_CXX=no | ||
16560 | ;; | ||
16561 | |||
16562 | freebsd* | dragonfly*) | ||
16563 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
16564 | # conventions | ||
16565 | ld_shlibs_CXX=yes | ||
16566 | ;; | ||
16567 | |||
16568 | gnu*) | ||
16569 | ;; | ||
16570 | |||
16571 | hpux9*) | ||
16572 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
16573 | hardcode_libdir_separator_CXX=: | ||
16574 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
16575 | hardcode_direct_CXX=yes | ||
16576 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
16577 | # but as the default | ||
16578 | # location of the library. | ||
16579 | |||
16580 | case $cc_basename in | ||
16581 | CC*) | ||
16582 | # FIXME: insert proper C++ library support | ||
16583 | ld_shlibs_CXX=no | ||
16584 | ;; | ||
16585 | aCC*) | ||
16586 | 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' | ||
16587 | # Commands to make compiler produce verbose output that lists | ||
16588 | # what "hidden" libraries, object files and flags are used when | ||
16589 | # linking a shared library. | ||
16590 | # | ||
16591 | # There doesn't appear to be a way to prevent this compiler from | ||
16592 | # explicitly linking system object files so we need to strip them | ||
16593 | # from the output so that they don't get included in the library | ||
16594 | # dependencies. | ||
16595 | 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' | ||
16596 | ;; | ||
16597 | *) | ||
16598 | if test "$GXX" = yes; then | ||
16599 | 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' | ||
16600 | else | ||
16601 | # FIXME: insert proper C++ library support | ||
16602 | ld_shlibs_CXX=no | ||
16603 | fi | ||
16604 | ;; | ||
16605 | esac | ||
16606 | ;; | ||
16607 | |||
16608 | hpux10*|hpux11*) | ||
16609 | if test $with_gnu_ld = no; then | ||
16610 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
16611 | hardcode_libdir_separator_CXX=: | ||
16612 | |||
16613 | case $host_cpu in | ||
16614 | hppa*64*|ia64*) | ||
16615 | ;; | ||
16616 | *) | ||
16617 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
16618 | ;; | ||
16619 | esac | ||
16620 | fi | ||
16621 | case $host_cpu in | ||
16622 | hppa*64*|ia64*) | ||
16623 | hardcode_direct_CXX=no | ||
16624 | hardcode_shlibpath_var_CXX=no | ||
16625 | ;; | ||
16626 | *) | ||
16627 | hardcode_direct_CXX=yes | ||
16628 | hardcode_direct_absolute_CXX=yes | ||
16629 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
16630 | # but as the default | ||
16631 | # location of the library. | ||
16632 | ;; | ||
16633 | esac | ||
16634 | |||
16635 | case $cc_basename in | ||
16636 | CC*) | ||
16637 | # FIXME: insert proper C++ library support | ||
16638 | ld_shlibs_CXX=no | ||
16639 | ;; | ||
16640 | aCC*) | ||
16641 | case $host_cpu in | ||
16642 | hppa*64*) | ||
16643 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16644 | ;; | ||
16645 | ia64*) | ||
16646 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16647 | ;; | ||
16648 | *) | ||
16649 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16650 | ;; | ||
16651 | esac | ||
16652 | # Commands to make compiler produce verbose output that lists | ||
16653 | # what "hidden" libraries, object files and flags are used when | ||
16654 | # linking a shared library. | ||
16655 | # | ||
16656 | # There doesn't appear to be a way to prevent this compiler from | ||
16657 | # explicitly linking system object files so we need to strip them | ||
16658 | # from the output so that they don't get included in the library | ||
16659 | # dependencies. | ||
16660 | 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' | ||
16661 | ;; | ||
16662 | *) | ||
16663 | if test "$GXX" = yes; then | ||
16664 | if test $with_gnu_ld = no; then | ||
16665 | case $host_cpu in | ||
16666 | hppa*64*) | ||
16667 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16668 | ;; | ||
16669 | ia64*) | ||
16670 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16671 | ;; | ||
16672 | *) | ||
16673 | 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' | ||
16674 | ;; | ||
16675 | esac | ||
16676 | fi | ||
16677 | else | ||
16678 | # FIXME: insert proper C++ library support | ||
16679 | ld_shlibs_CXX=no | ||
16680 | fi | ||
16681 | ;; | ||
16682 | esac | ||
16683 | ;; | ||
16684 | |||
16685 | interix[3-9]*) | ||
16686 | hardcode_direct_CXX=no | ||
16687 | hardcode_shlibpath_var_CXX=no | ||
16688 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16689 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
16690 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
16691 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
16692 | # default) and relocated if they conflict, which is a slow very memory | ||
16693 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
16694 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
16695 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
16696 | 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' | ||
16697 | 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' | ||
16698 | ;; | ||
16699 | irix5* | irix6*) | ||
16700 | case $cc_basename in | ||
16701 | CC*) | ||
16702 | # SGI C++ | ||
16703 | 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' | ||
16704 | |||
16705 | # Archives containing C++ object files must be created using | ||
16706 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
16707 | # necessary to make sure instantiated templates are included | ||
16708 | # in the archive. | ||
16709 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
16710 | ;; | ||
16711 | *) | ||
16712 | if test "$GXX" = yes; then | ||
16713 | if test "$with_gnu_ld" = no; then | ||
16714 | 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' | ||
16715 | else | ||
16716 | 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' | ||
16717 | fi | ||
16718 | fi | ||
16719 | link_all_deplibs_CXX=yes | ||
16720 | ;; | ||
16721 | esac | ||
16722 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16723 | hardcode_libdir_separator_CXX=: | ||
16724 | inherit_rpath_CXX=yes | ||
16725 | ;; | ||
16726 | |||
16727 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
16728 | case $cc_basename in | ||
16729 | KCC*) | ||
16730 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
16731 | |||
16732 | # KCC will only create a shared library if the output file | ||
16733 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
16734 | # to its proper name (with version) after linking. | ||
16735 | 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' | ||
16736 | 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' | ||
16737 | # Commands to make compiler produce verbose output that lists | ||
16738 | # what "hidden" libraries, object files and flags are used when | ||
16739 | # linking a shared library. | ||
16740 | # | ||
16741 | # There doesn't appear to be a way to prevent this compiler from | ||
16742 | # explicitly linking system object files so we need to strip them | ||
16743 | # from the output so that they don't get included in the library | ||
16744 | # dependencies. | ||
16745 | 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' | ||
16746 | |||
16747 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16748 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16749 | |||
16750 | # Archives containing C++ object files must be created using | ||
16751 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
16752 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
16753 | ;; | ||
16754 | icpc* | ecpc* ) | ||
16755 | # Intel C++ | ||
16756 | with_gnu_ld=yes | ||
16757 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
16758 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
16759 | # earlier do not add the objects themselves. | ||
16760 | case `$CC -V 2>&1` in | ||
16761 | *"Version 7."*) | ||
16762 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16763 | 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' | ||
16764 | ;; | ||
16765 | *) # Version 8.0 or newer | ||
16766 | tmp_idyn= | ||
16767 | case $host_cpu in | ||
16768 | ia64*) tmp_idyn=' -i_dynamic';; | ||
16769 | esac | ||
16770 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16771 | 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' | ||
16772 | ;; | ||
16773 | esac | ||
16774 | archive_cmds_need_lc_CXX=no | ||
16775 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16776 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16777 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
16778 | ;; | ||
16779 | pgCC* | pgcpp*) | ||
16780 | # Portland Group C++ compiler | ||
16781 | case `$CC -V` in | ||
16782 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | ||
16783 | prelink_cmds_CXX='tpldir=Template.dir~ | ||
16784 | rm -rf $tpldir~ | ||
16785 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
16786 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
16787 | old_archive_cmds_CXX='tpldir=Template.dir~ | ||
16788 | rm -rf $tpldir~ | ||
16789 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
16790 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
16791 | $RANLIB $oldlib' | ||
16792 | archive_cmds_CXX='tpldir=Template.dir~ | ||
16793 | rm -rf $tpldir~ | ||
16794 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
16795 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
16796 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | ||
16797 | rm -rf $tpldir~ | ||
16798 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
16799 | $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' | ||
16800 | ;; | ||
16801 | *) # Version 6 will use weak symbols | ||
16802 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
16803 | 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' | ||
16804 | ;; | ||
16805 | esac | ||
16806 | |||
16807 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
16808 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16809 | 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' | ||
16810 | ;; | ||
16811 | cxx*) | ||
16812 | # Compaq C++ | ||
16813 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16814 | 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' | ||
16815 | |||
16816 | runpath_var=LD_RUN_PATH | ||
16817 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
16818 | hardcode_libdir_separator_CXX=: | ||
16819 | |||
16820 | # Commands to make compiler produce verbose output that lists | ||
16821 | # what "hidden" libraries, object files and flags are used when | ||
16822 | # linking a shared library. | ||
16823 | # | ||
16824 | # There doesn't appear to be a way to prevent this compiler from | ||
16825 | # explicitly linking system object files so we need to strip them | ||
16826 | # from the output so that they don't get included in the library | ||
16827 | # dependencies. | ||
16828 | 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' | ||
16829 | ;; | ||
16830 | xl*) | ||
16831 | # IBM XL 8.0 on PPC, with GNU ld | ||
16832 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16833 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16834 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16835 | if test "x$supports_anon_versioning" = xyes; then | ||
16836 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | ||
16837 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
16838 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
16839 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
16840 | fi | ||
16841 | ;; | ||
16842 | *) | ||
16843 | case `$CC -V 2>&1 | sed 5q` in | ||
16844 | *Sun\ C*) | ||
16845 | # Sun C++ 5.9 | ||
16846 | no_undefined_flag_CXX=' -zdefs' | ||
16847 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16848 | 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' | ||
16849 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
16850 | 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' | ||
16851 | compiler_needs_object_CXX=yes | ||
16852 | |||
16853 | # Not sure whether something based on | ||
16854 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | ||
16855 | # would be better. | ||
16856 | output_verbose_link_cmd='echo' | ||
16857 | |||
16858 | # Archives containing C++ object files must be created using | ||
16859 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
16860 | # necessary to make sure instantiated templates are included | ||
16861 | # in the archive. | ||
16862 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
16863 | ;; | ||
16864 | esac | ||
16865 | ;; | ||
16866 | esac | ||
16867 | ;; | ||
16868 | |||
16869 | lynxos*) | ||
16870 | # FIXME: insert proper C++ library support | ||
16871 | ld_shlibs_CXX=no | ||
16872 | ;; | ||
16873 | |||
16874 | m88k*) | ||
16875 | # FIXME: insert proper C++ library support | ||
16876 | ld_shlibs_CXX=no | ||
16877 | ;; | ||
16878 | |||
16879 | mvs*) | ||
16880 | case $cc_basename in | ||
16881 | cxx*) | ||
16882 | # FIXME: insert proper C++ library support | ||
16883 | ld_shlibs_CXX=no | ||
16884 | ;; | ||
16885 | *) | ||
16886 | # FIXME: insert proper C++ library support | ||
16887 | ld_shlibs_CXX=no | ||
16888 | ;; | ||
16889 | esac | ||
16890 | ;; | ||
16891 | |||
16892 | netbsd*) | ||
16893 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
16894 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
16895 | wlarc= | ||
16896 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
16897 | hardcode_direct_CXX=yes | ||
16898 | hardcode_shlibpath_var_CXX=no | ||
16899 | fi | ||
16900 | # Workaround some broken pre-1.5 toolchains | ||
16901 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
16902 | ;; | ||
16903 | |||
16904 | *nto* | *qnx*) | ||
16905 | ld_shlibs_CXX=yes | ||
16906 | ;; | ||
16907 | |||
16908 | openbsd2*) | ||
16909 | # C++ shared libraries are fairly broken | ||
16910 | ld_shlibs_CXX=no | ||
16911 | ;; | ||
16912 | |||
16913 | openbsd*) | ||
16914 | if test -f /usr/libexec/ld.so; then | ||
16915 | hardcode_direct_CXX=yes | ||
16916 | hardcode_shlibpath_var_CXX=no | ||
16917 | hardcode_direct_absolute_CXX=yes | ||
16918 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
16919 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16920 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16921 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
16922 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
16923 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
16924 | fi | ||
16925 | output_verbose_link_cmd=echo | ||
16926 | else | ||
16927 | ld_shlibs_CXX=no | ||
16928 | fi | ||
16929 | ;; | ||
16930 | |||
16931 | osf3* | osf4* | osf5*) | ||
16932 | case $cc_basename in | ||
16933 | KCC*) | ||
16934 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
16935 | |||
16936 | # KCC will only create a shared library if the output file | ||
16937 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
16938 | # to its proper name (with version) after linking. | ||
16939 | 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' | ||
16940 | |||
16941 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16942 | hardcode_libdir_separator_CXX=: | ||
16943 | |||
16944 | # Archives containing C++ object files must be created using | ||
16945 | # the KAI C++ compiler. | ||
16946 | case $host in | ||
16947 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | ||
16948 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | ||
16949 | esac | ||
16950 | ;; | ||
16951 | RCC*) | ||
16952 | # Rational C++ 2.4.1 | ||
16953 | # FIXME: insert proper C++ library support | ||
16954 | ld_shlibs_CXX=no | ||
16955 | ;; | ||
16956 | cxx*) | ||
16957 | case $host in | ||
16958 | osf3*) | ||
16959 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
16960 | 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' | ||
16961 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16962 | ;; | ||
16963 | *) | ||
16964 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
16965 | 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' | ||
16966 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
16967 | echo "-hidden">> $lib.exp~ | ||
16968 | $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~ | ||
16969 | $RM $lib.exp' | ||
16970 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
16971 | ;; | ||
16972 | esac | ||
16973 | |||
16974 | hardcode_libdir_separator_CXX=: | ||
16975 | |||
16976 | # Commands to make compiler produce verbose output that lists | ||
16977 | # what "hidden" libraries, object files and flags are used when | ||
16978 | # linking a shared library. | ||
16979 | # | ||
16980 | # There doesn't appear to be a way to prevent this compiler from | ||
16981 | # explicitly linking system object files so we need to strip them | ||
16982 | # from the output so that they don't get included in the library | ||
16983 | # dependencies. | ||
16984 | 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' | ||
16985 | ;; | ||
16986 | *) | ||
16987 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
16988 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
16989 | case $host in | ||
16990 | osf3*) | ||
16991 | 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' | ||
16992 | ;; | ||
16993 | *) | ||
16994 | 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' | ||
16995 | ;; | ||
16996 | esac | ||
16997 | |||
16998 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16999 | hardcode_libdir_separator_CXX=: | ||
17000 | |||
17001 | # Commands to make compiler produce verbose output that lists | ||
17002 | # what "hidden" libraries, object files and flags are used when | ||
17003 | # linking a shared library. | ||
17004 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
17005 | |||
17006 | else | ||
17007 | # FIXME: insert proper C++ library support | ||
17008 | ld_shlibs_CXX=no | ||
17009 | fi | ||
17010 | ;; | ||
17011 | esac | ||
17012 | ;; | ||
17013 | |||
17014 | psos*) | ||
17015 | # FIXME: insert proper C++ library support | ||
17016 | ld_shlibs_CXX=no | ||
17017 | ;; | ||
17018 | |||
17019 | sunos4*) | ||
17020 | case $cc_basename in | ||
17021 | CC*) | ||
17022 | # Sun C++ 4.x | ||
17023 | # FIXME: insert proper C++ library support | ||
17024 | ld_shlibs_CXX=no | ||
17025 | ;; | ||
17026 | lcc*) | ||
17027 | # Lucid | ||
17028 | # FIXME: insert proper C++ library support | ||
17029 | ld_shlibs_CXX=no | ||
17030 | ;; | ||
17031 | *) | ||
17032 | # FIXME: insert proper C++ library support | ||
17033 | ld_shlibs_CXX=no | ||
17034 | ;; | ||
17035 | esac | ||
17036 | ;; | ||
17037 | |||
17038 | solaris*) | ||
17039 | case $cc_basename in | ||
17040 | CC*) | ||
17041 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
17042 | archive_cmds_need_lc_CXX=yes | ||
17043 | no_undefined_flag_CXX=' -zdefs' | ||
17044 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
17045 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
17046 | $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' | ||
17047 | |||
17048 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
17049 | hardcode_shlibpath_var_CXX=no | ||
17050 | case $host_os in | ||
17051 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
17052 | *) | ||
17053 | # The compiler driver will combine and reorder linker options, | ||
17054 | # but understands `-z linker_flag'. | ||
17055 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
17056 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | ||
17057 | ;; | ||
17058 | esac | ||
17059 | link_all_deplibs_CXX=yes | ||
17060 | |||
17061 | output_verbose_link_cmd='echo' | ||
17062 | |||
17063 | # Archives containing C++ object files must be created using | ||
17064 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
17065 | # necessary to make sure instantiated templates are included | ||
17066 | # in the archive. | ||
17067 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
17068 | ;; | ||
17069 | gcx*) | ||
17070 | # Green Hills C++ Compiler | ||
17071 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
17072 | |||
17073 | # The C++ compiler must be used to create the archive. | ||
17074 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
17075 | ;; | ||
17076 | *) | ||
17077 | # GNU C++ compiler with Solaris linker | ||
17078 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
17079 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
17080 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
17081 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
17082 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
17083 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
17084 | |||
17085 | # Commands to make compiler produce verbose output that lists | ||
17086 | # what "hidden" libraries, object files and flags are used when | ||
17087 | # linking a shared library. | ||
17088 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
17089 | else | ||
17090 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
17091 | # platform. | ||
17092 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
17093 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
17094 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
17095 | |||
17096 | # Commands to make compiler produce verbose output that lists | ||
17097 | # what "hidden" libraries, object files and flags are used when | ||
17098 | # linking a shared library. | ||
17099 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
17100 | fi | ||
17101 | |||
17102 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
17103 | case $host_os in | ||
17104 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
17105 | *) | ||
17106 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
17107 | ;; | ||
17108 | esac | ||
17109 | fi | ||
17110 | ;; | ||
17111 | esac | ||
17112 | ;; | ||
17113 | |||
17114 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
17115 | no_undefined_flag_CXX='${wl}-z,text' | ||
17116 | archive_cmds_need_lc_CXX=no | ||
17117 | hardcode_shlibpath_var_CXX=no | ||
17118 | runpath_var='LD_RUN_PATH' | ||
17119 | |||
17120 | case $cc_basename in | ||
17121 | CC*) | ||
17122 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17123 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17124 | ;; | ||
17125 | *) | ||
17126 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17127 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17128 | ;; | ||
17129 | esac | ||
17130 | ;; | ||
17131 | |||
17132 | sysv5* | sco3.2v5* | sco5v6*) | ||
17133 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
17134 | # link with -lc, and that would cause any symbols used from libc to | ||
17135 | # always be unresolved, which means just about no library would | ||
17136 | # ever link correctly. If we're not using GNU ld we use -z text | ||
17137 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
17138 | # as -z defs. | ||
17139 | no_undefined_flag_CXX='${wl}-z,text' | ||
17140 | allow_undefined_flag_CXX='${wl}-z,nodefs' | ||
17141 | archive_cmds_need_lc_CXX=no | ||
17142 | hardcode_shlibpath_var_CXX=no | ||
17143 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | ||
17144 | hardcode_libdir_separator_CXX=':' | ||
17145 | link_all_deplibs_CXX=yes | ||
17146 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | ||
17147 | runpath_var='LD_RUN_PATH' | ||
17148 | |||
17149 | case $cc_basename in | ||
17150 | CC*) | ||
17151 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17152 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17153 | ;; | ||
17154 | *) | ||
17155 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17156 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17157 | ;; | ||
17158 | esac | ||
17159 | ;; | ||
17160 | |||
17161 | tandem*) | ||
17162 | case $cc_basename in | ||
17163 | NCC*) | ||
17164 | # NonStop-UX NCC 3.20 | ||
17165 | # FIXME: insert proper C++ library support | ||
17166 | ld_shlibs_CXX=no | ||
17167 | ;; | ||
17168 | *) | ||
17169 | # FIXME: insert proper C++ library support | ||
17170 | ld_shlibs_CXX=no | ||
17171 | ;; | ||
17172 | esac | ||
17173 | ;; | ||
17174 | |||
17175 | vxworks*) | ||
17176 | # FIXME: insert proper C++ library support | ||
17177 | ld_shlibs_CXX=no | ||
17178 | ;; | ||
17179 | |||
17180 | *) | ||
17181 | # FIXME: insert proper C++ library support | ||
17182 | ld_shlibs_CXX=no | ||
17183 | ;; | ||
17184 | esac | ||
17185 | |||
17186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
17187 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
17188 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
17189 | |||
17190 | GCC_CXX="$GXX" | ||
17191 | LD_CXX="$LD" | ||
17192 | |||
17193 | ## CAVEAT EMPTOR: | ||
17194 | ## There is no encapsulation within the following macros, do not change | ||
17195 | ## the running order or otherwise move them around unless you know exactly | ||
17196 | ## what you are doing... | ||
17197 | # Dependencies to place before and after the object being linked: | ||
17198 | predep_objects_CXX= | ||
17199 | postdep_objects_CXX= | ||
17200 | predeps_CXX= | ||
17201 | postdeps_CXX= | ||
17202 | compiler_lib_search_path_CXX= | ||
17203 | |||
17204 | cat > conftest.$ac_ext <<_LT_EOF | ||
17205 | class Foo | ||
17206 | { | ||
17207 | public: | ||
17208 | Foo (void) { a = 0; } | ||
17209 | private: | ||
17210 | int a; | ||
17211 | }; | ||
17212 | _LT_EOF | ||
17213 | |||
17214 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
17215 | (eval $ac_compile) 2>&5 | ||
17216 | ac_status=$? | ||
17217 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17218 | test $ac_status = 0; }; then | ||
17219 | # Parse the compiler output and extract the necessary | ||
17220 | # objects, libraries and library flags. | ||
17221 | |||
17222 | # Sentinel used to keep track of whether or not we are before | ||
17223 | # the conftest object file. | ||
17224 | pre_test_object_deps_done=no | ||
17225 | |||
17226 | for p in `eval "$output_verbose_link_cmd"`; do | ||
17227 | case $p in | ||
17228 | |||
17229 | -L* | -R* | -l*) | ||
17230 | # Some compilers place space between "-{L,R}" and the path. | ||
17231 | # Remove the space. | ||
17232 | if test $p = "-L" || | ||
17233 | test $p = "-R"; then | ||
17234 | prev=$p | ||
17235 | continue | ||
17236 | else | ||
17237 | prev= | ||
17238 | fi | ||
17239 | |||
17240 | if test "$pre_test_object_deps_done" = no; then | ||
17241 | case $p in | ||
17242 | -L* | -R*) | ||
17243 | # Internal compiler library paths should come after those | ||
17244 | # provided the user. The postdeps already come after the | ||
17245 | # user supplied libs so there is no need to process them. | ||
17246 | if test -z "$compiler_lib_search_path_CXX"; then | ||
17247 | compiler_lib_search_path_CXX="${prev}${p}" | ||
17248 | else | ||
17249 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
17250 | fi | ||
17251 | ;; | ||
17252 | # The "-l" case would never come before the object being | ||
17253 | # linked, so don't bother handling this case. | ||
17254 | esac | ||
17255 | else | ||
17256 | if test -z "$postdeps_CXX"; then | ||
17257 | postdeps_CXX="${prev}${p}" | ||
17258 | else | ||
17259 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
17260 | fi | ||
17261 | fi | ||
17262 | ;; | ||
17263 | |||
17264 | *.$objext) | ||
17265 | # This assumes that the test object file only shows up | ||
17266 | # once in the compiler output. | ||
17267 | if test "$p" = "conftest.$objext"; then | ||
17268 | pre_test_object_deps_done=yes | ||
17269 | continue | ||
17270 | fi | ||
17271 | |||
17272 | if test "$pre_test_object_deps_done" = no; then | ||
17273 | if test -z "$predep_objects_CXX"; then | ||
17274 | predep_objects_CXX="$p" | ||
17275 | else | ||
17276 | predep_objects_CXX="$predep_objects_CXX $p" | ||
17277 | fi | ||
17278 | else | ||
17279 | if test -z "$postdep_objects_CXX"; then | ||
17280 | postdep_objects_CXX="$p" | ||
17281 | else | ||
17282 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
17283 | fi | ||
17284 | fi | ||
17285 | ;; | ||
17286 | |||
17287 | *) ;; # Ignore the rest. | ||
17288 | |||
17289 | esac | ||
17290 | done | ||
17291 | |||
17292 | # Clean up. | ||
17293 | rm -f a.out a.exe | ||
17294 | else | ||
17295 | echo "libtool.m4: error: problem compiling CXX test program" | ||
17296 | fi | ||
17297 | |||
17298 | $RM -f confest.$objext | ||
17299 | |||
17300 | # PORTME: override above test on systems where it is broken | ||
17301 | case $host_os in | ||
17302 | interix[3-9]*) | ||
17303 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
17304 | # hack all around it, let's just trust "g++" to DTRT. | ||
17305 | predep_objects_CXX= | ||
17306 | postdep_objects_CXX= | ||
17307 | postdeps_CXX= | ||
17308 | ;; | ||
17309 | |||
17310 | linux*) | ||
17311 | case `$CC -V 2>&1 | sed 5q` in | ||
17312 | *Sun\ C*) | ||
17313 | # Sun C++ 5.9 | ||
17314 | |||
17315 | # The more standards-conforming stlport4 library is | ||
17316 | # incompatible with the Cstd library. Avoid specifying | ||
17317 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
17318 | # -library=stlport4 depends on it. | ||
17319 | case " $CXX $CXXFLAGS " in | ||
17320 | *" -library=stlport4 "*) | ||
17321 | solaris_use_stlport4=yes | ||
17322 | ;; | ||
17323 | esac | ||
17324 | |||
17325 | if test "$solaris_use_stlport4" != yes; then | ||
17326 | postdeps_CXX='-library=Cstd -library=Crun' | ||
17327 | fi | ||
17328 | ;; | ||
17329 | esac | ||
17330 | ;; | ||
17331 | |||
17332 | solaris*) | ||
17333 | case $cc_basename in | ||
17334 | CC*) | ||
17335 | # The more standards-conforming stlport4 library is | ||
17336 | # incompatible with the Cstd library. Avoid specifying | ||
17337 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
17338 | # -library=stlport4 depends on it. | ||
17339 | case " $CXX $CXXFLAGS " in | ||
17340 | *" -library=stlport4 "*) | ||
17341 | solaris_use_stlport4=yes | ||
17342 | ;; | ||
17343 | esac | ||
17344 | |||
17345 | # Adding this requires a known-good setup of shared libraries for | ||
17346 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
17347 | # archive will be linked into the output, leading to subtle bugs. | ||
17348 | if test "$solaris_use_stlport4" != yes; then | ||
17349 | postdeps_CXX='-library=Cstd -library=Crun' | ||
17350 | fi | ||
17351 | ;; | ||
17352 | esac | ||
17353 | ;; | ||
17354 | esac | ||
17355 | |||
17356 | |||
17357 | case " $postdeps_CXX " in | ||
17358 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
17359 | esac | ||
17360 | compiler_lib_search_dirs_CXX= | ||
17361 | if test -n "${compiler_lib_search_path_CXX}"; then | ||
17362 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | ||
17363 | fi | ||
17364 | |||
17365 | |||
17366 | |||
17367 | |||
17368 | |||
17369 | |||
17370 | |||
17371 | |||
17372 | |||
17373 | |||
17374 | |||
17375 | |||
17376 | |||
17377 | |||
17378 | |||
17379 | |||
17380 | |||
17381 | |||
17382 | |||
17383 | |||
17384 | |||
17385 | |||
17386 | |||
17387 | |||
17388 | |||
17389 | |||
17390 | |||
17391 | |||
17392 | |||
17393 | |||
17394 | |||
17395 | lt_prog_compiler_wl_CXX= | ||
17396 | lt_prog_compiler_pic_CXX= | ||
17397 | lt_prog_compiler_static_CXX= | ||
17398 | |||
17399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
17400 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
17401 | |||
17402 | # C++ specific cases for pic, static, wl, etc. | ||
17403 | if test "$GXX" = yes; then | ||
17404 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17405 | lt_prog_compiler_static_CXX='-static' | ||
17406 | |||
17407 | case $host_os in | ||
17408 | aix*) | ||
17409 | # All AIX code is PIC. | ||
17410 | if test "$host_cpu" = ia64; then | ||
17411 | # AIX 5 now supports IA64 processor | ||
17412 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17413 | fi | ||
17414 | ;; | ||
17415 | |||
17416 | amigaos*) | ||
17417 | case $host_cpu in | ||
17418 | powerpc) | ||
17419 | # see comment about AmigaOS4 .so support | ||
17420 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17421 | ;; | ||
17422 | m68k) | ||
17423 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
17424 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
17425 | # like `-m68040'. | ||
17426 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
17427 | ;; | ||
17428 | esac | ||
17429 | ;; | ||
17430 | |||
17431 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
17432 | # PIC is the default for these OSes. | ||
17433 | ;; | ||
17434 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
17435 | # This hack is so that the source file can tell whether it is being | ||
17436 | # built for inclusion in a dll (and should export symbols for example). | ||
17437 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
17438 | # (--disable-auto-import) libraries | ||
17439 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
17440 | ;; | ||
17441 | darwin* | rhapsody*) | ||
17442 | # PIC is the default on this platform | ||
17443 | # Common symbols not allowed in MH_DYLIB files | ||
17444 | lt_prog_compiler_pic_CXX='-fno-common' | ||
17445 | ;; | ||
17446 | *djgpp*) | ||
17447 | # DJGPP does not support shared libraries at all | ||
17448 | lt_prog_compiler_pic_CXX= | ||
17449 | ;; | ||
17450 | interix[3-9]*) | ||
17451 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
17452 | # Instead, we relocate shared libraries at runtime. | ||
17453 | ;; | ||
17454 | sysv4*MP*) | ||
17455 | if test -d /usr/nec; then | ||
17456 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
17457 | fi | ||
17458 | ;; | ||
17459 | hpux*) | ||
17460 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
17461 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
17462 | # sets the default TLS model and affects inlining. | ||
17463 | case $host_cpu in | ||
17464 | hppa*64*) | ||
17465 | ;; | ||
17466 | *) | ||
17467 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17468 | ;; | ||
17469 | esac | ||
17470 | ;; | ||
17471 | *qnx* | *nto*) | ||
17472 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
17473 | # it will coredump. | ||
17474 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
17475 | ;; | ||
17476 | *) | ||
17477 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17478 | ;; | ||
17479 | esac | ||
17480 | else | ||
17481 | case $host_os in | ||
17482 | aix[4-9]*) | ||
17483 | # All AIX code is PIC. | ||
17484 | if test "$host_cpu" = ia64; then | ||
17485 | # AIX 5 now supports IA64 processor | ||
17486 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17487 | else | ||
17488 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
17489 | fi | ||
17490 | ;; | ||
17491 | chorus*) | ||
17492 | case $cc_basename in | ||
17493 | cxch68*) | ||
17494 | # Green Hills C++ Compiler | ||
17495 | # _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" | ||
17496 | ;; | ||
17497 | esac | ||
17498 | ;; | ||
17499 | dgux*) | ||
17500 | case $cc_basename in | ||
17501 | ec++*) | ||
17502 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17503 | ;; | ||
17504 | ghcx*) | ||
17505 | # Green Hills C++ Compiler | ||
17506 | lt_prog_compiler_pic_CXX='-pic' | ||
17507 | ;; | ||
17508 | *) | ||
17509 | ;; | ||
17510 | esac | ||
17511 | ;; | ||
17512 | freebsd* | dragonfly*) | ||
17513 | # FreeBSD uses GNU C++ | ||
17514 | ;; | ||
17515 | hpux9* | hpux10* | hpux11*) | ||
17516 | case $cc_basename in | ||
17517 | CC*) | ||
17518 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17519 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
17520 | if test "$host_cpu" != ia64; then | ||
17521 | lt_prog_compiler_pic_CXX='+Z' | ||
17522 | fi | ||
17523 | ;; | ||
17524 | aCC*) | ||
17525 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17526 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
17527 | case $host_cpu in | ||
17528 | hppa*64*|ia64*) | ||
17529 | # +Z the default | ||
17530 | ;; | ||
17531 | *) | ||
17532 | lt_prog_compiler_pic_CXX='+Z' | ||
17533 | ;; | ||
17534 | esac | ||
17535 | ;; | ||
17536 | *) | ||
17537 | ;; | ||
17538 | esac | ||
17539 | ;; | ||
17540 | interix*) | ||
17541 | # This is c89, which is MS Visual C++ (no shared libs) | ||
17542 | # Anyone wants to do a port? | ||
17543 | ;; | ||
17544 | irix5* | irix6* | nonstopux*) | ||
17545 | case $cc_basename in | ||
17546 | CC*) | ||
17547 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17548 | lt_prog_compiler_static_CXX='-non_shared' | ||
17549 | # CC pic flag -KPIC is the default. | ||
17550 | ;; | ||
17551 | *) | ||
17552 | ;; | ||
17553 | esac | ||
17554 | ;; | ||
17555 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
17556 | case $cc_basename in | ||
17557 | KCC*) | ||
17558 | # KAI C++ Compiler | ||
17559 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
17560 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17561 | ;; | ||
17562 | ecpc* ) | ||
17563 | # old Intel C++ for x86_64 which still supported -KPIC. | ||
17564 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17565 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17566 | lt_prog_compiler_static_CXX='-static' | ||
17567 | ;; | ||
17568 | icpc* ) | ||
17569 | # Intel C++, used to be incompatible with GCC. | ||
17570 | # ICC 10 doesn't accept -KPIC any more. | ||
17571 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17572 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17573 | lt_prog_compiler_static_CXX='-static' | ||
17574 | ;; | ||
17575 | pgCC* | pgcpp*) | ||
17576 | # Portland Group C++ compiler | ||
17577 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17578 | lt_prog_compiler_pic_CXX='-fpic' | ||
17579 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17580 | ;; | ||
17581 | cxx*) | ||
17582 | # Compaq C++ | ||
17583 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
17584 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
17585 | lt_prog_compiler_pic_CXX= | ||
17586 | lt_prog_compiler_static_CXX='-non_shared' | ||
17587 | ;; | ||
17588 | xlc* | xlC*) | ||
17589 | # IBM XL 8.0 on PPC | ||
17590 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17591 | lt_prog_compiler_pic_CXX='-qpic' | ||
17592 | lt_prog_compiler_static_CXX='-qstaticlink' | ||
17593 | ;; | ||
17594 | *) | ||
17595 | case `$CC -V 2>&1 | sed 5q` in | ||
17596 | *Sun\ C*) | ||
17597 | # Sun C++ 5.9 | ||
17598 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17599 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17600 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
17601 | ;; | ||
17602 | esac | ||
17603 | ;; | ||
17604 | esac | ||
17605 | ;; | ||
17606 | lynxos*) | ||
17607 | ;; | ||
17608 | m88k*) | ||
17609 | ;; | ||
17610 | mvs*) | ||
17611 | case $cc_basename in | ||
17612 | cxx*) | ||
17613 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
17614 | ;; | ||
17615 | *) | ||
17616 | ;; | ||
17617 | esac | ||
17618 | ;; | ||
17619 | netbsd* | netbsdelf*-gnu) | ||
17620 | ;; | ||
17621 | *qnx* | *nto*) | ||
17622 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
17623 | # it will coredump. | ||
17624 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
17625 | ;; | ||
17626 | osf3* | osf4* | osf5*) | ||
17627 | case $cc_basename in | ||
17628 | KCC*) | ||
17629 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
17630 | ;; | ||
17631 | RCC*) | ||
17632 | # Rational C++ 2.4.1 | ||
17633 | lt_prog_compiler_pic_CXX='-pic' | ||
17634 | ;; | ||
17635 | cxx*) | ||
17636 | # Digital/Compaq C++ | ||
17637 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17638 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
17639 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
17640 | lt_prog_compiler_pic_CXX= | ||
17641 | lt_prog_compiler_static_CXX='-non_shared' | ||
17642 | ;; | ||
17643 | *) | ||
17644 | ;; | ||
17645 | esac | ||
17646 | ;; | ||
17647 | psos*) | ||
17648 | ;; | ||
17649 | solaris*) | ||
17650 | case $cc_basename in | ||
17651 | CC*) | ||
17652 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
17653 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17654 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17655 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
17656 | ;; | ||
17657 | gcx*) | ||
17658 | # Green Hills C++ Compiler | ||
17659 | lt_prog_compiler_pic_CXX='-PIC' | ||
17660 | ;; | ||
17661 | *) | ||
17662 | ;; | ||
17663 | esac | ||
17664 | ;; | ||
17665 | sunos4*) | ||
17666 | case $cc_basename in | ||
17667 | CC*) | ||
17668 | # Sun C++ 4.x | ||
17669 | lt_prog_compiler_pic_CXX='-pic' | ||
17670 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17671 | ;; | ||
17672 | lcc*) | ||
17673 | # Lucid | ||
17674 | lt_prog_compiler_pic_CXX='-pic' | ||
17675 | ;; | ||
17676 | *) | ||
17677 | ;; | ||
17678 | esac | ||
17679 | ;; | ||
17680 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
17681 | case $cc_basename in | ||
17682 | CC*) | ||
17683 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17684 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17685 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17686 | ;; | ||
17687 | esac | ||
17688 | ;; | ||
17689 | tandem*) | ||
17690 | case $cc_basename in | ||
17691 | NCC*) | ||
17692 | # NonStop-UX NCC 3.20 | ||
17693 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17694 | ;; | ||
17695 | *) | ||
17696 | ;; | ||
17697 | esac | ||
17698 | ;; | ||
17699 | vxworks*) | ||
17700 | ;; | ||
17701 | *) | ||
17702 | lt_prog_compiler_can_build_shared_CXX=no | ||
17703 | ;; | ||
17704 | esac | ||
17705 | fi | ||
17706 | |||
17707 | case $host_os in | ||
17708 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
17709 | *djgpp*) | ||
17710 | lt_prog_compiler_pic_CXX= | ||
17711 | ;; | ||
17712 | *) | ||
17713 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
17714 | ;; | ||
17715 | esac | ||
17716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | ||
17717 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | ||
17718 | |||
17719 | |||
17720 | |||
17721 | # | ||
17722 | # Check to make sure the PIC flag actually works. | ||
17723 | # | ||
17724 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
17726 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | ||
17727 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | ||
17728 | $as_echo_n "(cached) " >&6 | ||
17729 | else | ||
17730 | lt_cv_prog_compiler_pic_works_CXX=no | ||
17731 | ac_outfile=conftest.$ac_objext | ||
17732 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17733 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
17734 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17735 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17736 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17737 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17738 | # The option is referenced via a variable to avoid confusing sed. | ||
17739 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17740 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17741 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17742 | -e 's:$: $lt_compiler_flag:'` | ||
17743 | (eval echo "\"\$as_me:17743: $lt_compile\"" >&5) | ||
17744 | (eval "$lt_compile" 2>conftest.err) | ||
17745 | ac_status=$? | ||
17746 | cat conftest.err >&5 | ||
17747 | echo "$as_me:17747: \$? = $ac_status" >&5 | ||
17748 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
17749 | # The compiler can only warn and ignore the option if not recognized | ||
17750 | # So say no if there are warnings other than the usual output. | ||
17751 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
17752 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
17753 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
17754 | lt_cv_prog_compiler_pic_works_CXX=yes | ||
17755 | fi | ||
17756 | fi | ||
17757 | $RM conftest* | ||
17758 | |||
17759 | fi | ||
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | ||
17761 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | ||
17762 | |||
17763 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | ||
17764 | case $lt_prog_compiler_pic_CXX in | ||
17765 | "" | " "*) ;; | ||
17766 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
17767 | esac | ||
17768 | else | ||
17769 | lt_prog_compiler_pic_CXX= | ||
17770 | lt_prog_compiler_can_build_shared_CXX=no | ||
17771 | fi | ||
17772 | |||
17773 | fi | ||
17774 | |||
17775 | |||
17776 | |||
17777 | # | ||
17778 | # Check to make sure the static flag actually works. | ||
17779 | # | ||
17780 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | ||
17781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
17782 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
17783 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | ||
17784 | $as_echo_n "(cached) " >&6 | ||
17785 | else | ||
17786 | lt_cv_prog_compiler_static_works_CXX=no | ||
17787 | save_LDFLAGS="$LDFLAGS" | ||
17788 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
17789 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
17790 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
17791 | # The linker can only warn and ignore the option if not recognized | ||
17792 | # So say no if there are warnings | ||
17793 | if test -s conftest.err; then | ||
17794 | # Append any errors to the config.log. | ||
17795 | cat conftest.err 1>&5 | ||
17796 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
17797 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
17798 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
17799 | lt_cv_prog_compiler_static_works_CXX=yes | ||
17800 | fi | ||
17801 | else | ||
17802 | lt_cv_prog_compiler_static_works_CXX=yes | ||
17803 | fi | ||
17804 | fi | ||
17805 | $RM -r conftest* | ||
17806 | LDFLAGS="$save_LDFLAGS" | ||
17807 | |||
17808 | fi | ||
17809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | ||
17810 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | ||
17811 | |||
17812 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | ||
17813 | : | ||
17814 | else | ||
17815 | lt_prog_compiler_static_CXX= | ||
17816 | fi | ||
17817 | |||
17818 | |||
17819 | |||
17820 | |||
17821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
17822 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
17823 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
17824 | $as_echo_n "(cached) " >&6 | ||
17825 | else | ||
17826 | lt_cv_prog_compiler_c_o_CXX=no | ||
17827 | $RM -r conftest 2>/dev/null | ||
17828 | mkdir conftest | ||
17829 | cd conftest | ||
17830 | mkdir out | ||
17831 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17832 | |||
17833 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
17834 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17835 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17836 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17837 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17838 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17839 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17840 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17841 | -e 's:$: $lt_compiler_flag:'` | ||
17842 | (eval echo "\"\$as_me:17842: $lt_compile\"" >&5) | ||
17843 | (eval "$lt_compile" 2>out/conftest.err) | ||
17844 | ac_status=$? | ||
17845 | cat out/conftest.err >&5 | ||
17846 | echo "$as_me:17846: \$? = $ac_status" >&5 | ||
17847 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
17848 | then | ||
17849 | # The compiler can only warn and ignore the option if not recognized | ||
17850 | # So say no if there are warnings | ||
17851 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
17852 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
17853 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
17854 | lt_cv_prog_compiler_c_o_CXX=yes | ||
17855 | fi | ||
17856 | fi | ||
17857 | chmod u+w . 2>&5 | ||
17858 | $RM conftest* | ||
17859 | # SGI C++ compiler will create directory out/ii_files/ for | ||
17860 | # template instantiation | ||
17861 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
17862 | $RM out/* && rmdir out | ||
17863 | cd .. | ||
17864 | $RM -r conftest | ||
17865 | $RM conftest* | ||
17866 | |||
17867 | fi | ||
17868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
17869 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
17870 | |||
17871 | |||
17872 | |||
17873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
17874 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
17875 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
17876 | $as_echo_n "(cached) " >&6 | ||
17877 | else | ||
17878 | lt_cv_prog_compiler_c_o_CXX=no | ||
17879 | $RM -r conftest 2>/dev/null | ||
17880 | mkdir conftest | ||
17881 | cd conftest | ||
17882 | mkdir out | ||
17883 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17884 | |||
17885 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
17886 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17887 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17888 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17889 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17890 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17891 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17892 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17893 | -e 's:$: $lt_compiler_flag:'` | ||
17894 | (eval echo "\"\$as_me:17894: $lt_compile\"" >&5) | ||
17895 | (eval "$lt_compile" 2>out/conftest.err) | ||
17896 | ac_status=$? | ||
17897 | cat out/conftest.err >&5 | ||
17898 | echo "$as_me:17898: \$? = $ac_status" >&5 | ||
17899 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
17900 | then | ||
17901 | # The compiler can only warn and ignore the option if not recognized | ||
17902 | # So say no if there are warnings | ||
17903 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
17904 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
17905 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
17906 | lt_cv_prog_compiler_c_o_CXX=yes | ||
17907 | fi | ||
17908 | fi | ||
17909 | chmod u+w . 2>&5 | ||
17910 | $RM conftest* | ||
17911 | # SGI C++ compiler will create directory out/ii_files/ for | ||
17912 | # template instantiation | ||
17913 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
17914 | $RM out/* && rmdir out | ||
17915 | cd .. | ||
17916 | $RM -r conftest | ||
17917 | $RM conftest* | ||
17918 | |||
17919 | fi | ||
17920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
17921 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
17922 | |||
17923 | |||
17924 | |||
17925 | |||
17926 | hard_links="nottested" | ||
17927 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
17928 | # do not overwrite the value of need_locks provided by the user | ||
17929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
17930 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
17931 | hard_links=yes | ||
17932 | $RM conftest* | ||
17933 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
17934 | touch conftest.a | ||
17935 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
17936 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
17937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
17938 | $as_echo "$hard_links" >&6; } | ||
17939 | if test "$hard_links" = no; then | ||
17940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
17941 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
17942 | need_locks=warn | ||
17943 | fi | ||
17944 | else | ||
17945 | need_locks=no | ||
17946 | fi | ||
17947 | |||
17948 | |||
17949 | |||
17950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
17951 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
17952 | |||
17953 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
17954 | case $host_os in | ||
17955 | aix[4-9]*) | ||
17956 | # If we're using GNU nm, then we don't want the "-C" option. | ||
17957 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
17958 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
17959 | 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' | ||
17960 | else | ||
17961 | 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' | ||
17962 | fi | ||
17963 | ;; | ||
17964 | pw32*) | ||
17965 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
17966 | ;; | ||
17967 | cygwin* | mingw* | cegcc*) | ||
17968 | 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' | ||
17969 | ;; | ||
17970 | linux* | k*bsd*-gnu) | ||
17971 | link_all_deplibs_CXX=no | ||
17972 | ;; | ||
17973 | *) | ||
17974 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
17975 | ;; | ||
17976 | esac | ||
17977 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
17978 | |||
17979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
17980 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
17981 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
17982 | |||
17983 | with_gnu_ld_CXX=$with_gnu_ld | ||
17984 | |||
17985 | |||
17986 | |||
17987 | |||
17988 | |||
17989 | |||
17990 | # | ||
17991 | # Do we need to explicitly link libc? | ||
17992 | # | ||
17993 | case "x$archive_cmds_need_lc_CXX" in | ||
17994 | x|xyes) | ||
17995 | # Assume -lc should be added | ||
17996 | archive_cmds_need_lc_CXX=yes | ||
17997 | |||
17998 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
17999 | case $archive_cmds_CXX in | ||
18000 | *'~'*) | ||
18001 | # FIXME: we may have to deal with multi-command sequences. | ||
18002 | ;; | ||
18003 | '$CC '*) | ||
18004 | # Test whether the compiler implicitly links with -lc since on some | ||
18005 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
18006 | # to ld, don't add -lc before -lgcc. | ||
18007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
18008 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
18009 | $RM conftest* | ||
18010 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
18011 | |||
18012 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
18013 | (eval $ac_compile) 2>&5 | ||
18014 | ac_status=$? | ||
18015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18016 | test $ac_status = 0; } 2>conftest.err; then | ||
18017 | soname=conftest | ||
18018 | lib=conftest | ||
18019 | libobjs=conftest.$ac_objext | ||
18020 | deplibs= | ||
18021 | wl=$lt_prog_compiler_wl_CXX | ||
18022 | pic_flag=$lt_prog_compiler_pic_CXX | ||
18023 | compiler_flags=-v | ||
18024 | linker_flags=-v | ||
18025 | verstring= | ||
18026 | output_objdir=. | ||
18027 | libname=conftest | ||
18028 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
18029 | allow_undefined_flag_CXX= | ||
18030 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
18031 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
18032 | ac_status=$? | ||
18033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18034 | test $ac_status = 0; } | ||
18035 | then | ||
18036 | archive_cmds_need_lc_CXX=no | ||
18037 | else | ||
18038 | archive_cmds_need_lc_CXX=yes | ||
18039 | fi | ||
18040 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
18041 | else | ||
18042 | cat conftest.err 1>&5 | ||
18043 | fi | ||
18044 | $RM conftest* | ||
18045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | ||
18046 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | ||
18047 | ;; | ||
18048 | esac | ||
18049 | fi | ||
18050 | ;; | ||
18051 | esac | ||
18052 | |||
18053 | |||
18054 | |||
18055 | |||
18056 | |||
18057 | |||
18058 | |||
18059 | |||
18060 | |||
18061 | |||
18062 | |||
18063 | |||
18064 | |||
18065 | |||
18066 | |||
18067 | |||
18068 | |||
18069 | |||
18070 | |||
18071 | |||
18072 | |||
18073 | |||
18074 | |||
18075 | |||
18076 | |||
18077 | |||
18078 | |||
18079 | |||
18080 | |||
18081 | |||
18082 | |||
18083 | |||
18084 | |||
18085 | |||
18086 | |||
18087 | |||
18088 | |||
18089 | |||
18090 | |||
18091 | |||
18092 | |||
18093 | |||
18094 | |||
18095 | |||
18096 | |||
18097 | |||
18098 | |||
18099 | |||
18100 | |||
18101 | |||
18102 | |||
18103 | |||
18104 | |||
18105 | |||
18106 | |||
18107 | |||
18108 | |||
18109 | |||
18110 | |||
18111 | |||
18112 | |||
18113 | |||
18114 | |||
18115 | |||
18116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
18117 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
18118 | |||
18119 | library_names_spec= | ||
18120 | libname_spec='lib$name' | ||
18121 | soname_spec= | ||
18122 | shrext_cmds=".so" | ||
18123 | postinstall_cmds= | ||
18124 | postuninstall_cmds= | ||
18125 | finish_cmds= | ||
18126 | finish_eval= | ||
18127 | shlibpath_var= | ||
18128 | shlibpath_overrides_runpath=unknown | ||
18129 | version_type=none | ||
18130 | dynamic_linker="$host_os ld.so" | ||
18131 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
18132 | need_lib_prefix=unknown | ||
18133 | hardcode_into_libs=no | ||
18134 | |||
18135 | # when you set need_version to no, make sure it does not cause -set_version | ||
18136 | # flags to be left without arguments | ||
18137 | need_version=unknown | ||
18138 | |||
18139 | case $host_os in | ||
18140 | aix3*) | ||
18141 | version_type=linux | ||
18142 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
18143 | shlibpath_var=LIBPATH | ||
18144 | |||
18145 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
18146 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18147 | ;; | ||
18148 | |||
18149 | aix[4-9]*) | ||
18150 | version_type=linux | ||
18151 | need_lib_prefix=no | ||
18152 | need_version=no | ||
18153 | hardcode_into_libs=yes | ||
18154 | if test "$host_cpu" = ia64; then | ||
18155 | # AIX 5 supports IA64 | ||
18156 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
18157 | shlibpath_var=LD_LIBRARY_PATH | ||
18158 | else | ||
18159 | # With GCC up to 2.95.x, collect2 would create an import file | ||
18160 | # for dependence libraries. The import file would start with | ||
18161 | # the line `#! .'. This would cause the generated library to | ||
18162 | # depend on `.', always an invalid library. This was fixed in | ||
18163 | # development snapshots of GCC prior to 3.0. | ||
18164 | case $host_os in | ||
18165 | aix4 | aix4.[01] | aix4.[01].*) | ||
18166 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
18167 | echo ' yes ' | ||
18168 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
18169 | : | ||
18170 | else | ||
18171 | can_build_shared=no | ||
18172 | fi | ||
18173 | ;; | ||
18174 | esac | ||
18175 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
18176 | # soname into executable. Probably we can add versioning support to | ||
18177 | # collect2, so additional links can be useful in future. | ||
18178 | if test "$aix_use_runtimelinking" = yes; then | ||
18179 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
18180 | # instead of lib<name>.a to let people know that these are not | ||
18181 | # typical AIX shared libraries. | ||
18182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18183 | else | ||
18184 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
18185 | # and later when we are not doing run time linking. | ||
18186 | library_names_spec='${libname}${release}.a $libname.a' | ||
18187 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18188 | fi | ||
18189 | shlibpath_var=LIBPATH | ||
18190 | fi | ||
18191 | ;; | ||
18192 | |||
18193 | amigaos*) | ||
18194 | case $host_cpu in | ||
18195 | powerpc) | ||
18196 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
18197 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
18198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18199 | ;; | ||
18200 | m68k) | ||
18201 | library_names_spec='$libname.ixlibrary $libname.a' | ||
18202 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
18203 | 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' | ||
18204 | ;; | ||
18205 | esac | ||
18206 | ;; | ||
18207 | |||
18208 | beos*) | ||
18209 | library_names_spec='${libname}${shared_ext}' | ||
18210 | dynamic_linker="$host_os ld.so" | ||
18211 | shlibpath_var=LIBRARY_PATH | ||
18212 | ;; | ||
18213 | |||
18214 | bsdi[45]*) | ||
18215 | version_type=linux | ||
18216 | need_version=no | ||
18217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18218 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18219 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
18220 | shlibpath_var=LD_LIBRARY_PATH | ||
18221 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
18222 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
18223 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
18224 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
18225 | # libtool to hard-code these into programs | ||
18226 | ;; | ||
18227 | |||
18228 | cygwin* | mingw* | pw32* | cegcc*) | ||
18229 | version_type=windows | ||
18230 | shrext_cmds=".dll" | ||
18231 | need_version=no | ||
18232 | need_lib_prefix=no | ||
18233 | |||
18234 | case $GCC,$host_os in | ||
18235 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
18236 | library_names_spec='$libname.dll.a' | ||
18237 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
18238 | postinstall_cmds='base_file=`basename \${file}`~ | ||
18239 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
18240 | dldir=$destdir/`dirname \$dlpath`~ | ||
18241 | test -d \$dldir || mkdir -p \$dldir~ | ||
18242 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
18243 | chmod a+x \$dldir/$dlname~ | ||
18244 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
18245 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
18246 | fi' | ||
18247 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
18248 | dlpath=$dir/\$dldll~ | ||
18249 | $RM \$dlpath' | ||
18250 | shlibpath_overrides_runpath=yes | ||
18251 | |||
18252 | case $host_os in | ||
18253 | cygwin*) | ||
18254 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
18255 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18256 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
18257 | ;; | ||
18258 | mingw* | cegcc*) | ||
18259 | # MinGW DLLs use traditional 'lib' prefix | ||
18260 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18261 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
18262 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
18263 | # It is most probably a Windows format PATH printed by | ||
18264 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
18265 | # path with ; separators, and with drive letters. We can handle the | ||
18266 | # drive letters (cygwin fileutils understands them), so leave them, | ||
18267 | # especially as we might pass files found there to a mingw objdump, | ||
18268 | # which wouldn't understand a cygwinified path. Ahh. | ||
18269 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
18270 | else | ||
18271 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
18272 | fi | ||
18273 | ;; | ||
18274 | pw32*) | ||
18275 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
18276 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18277 | ;; | ||
18278 | esac | ||
18279 | ;; | ||
18280 | |||
18281 | *) | ||
18282 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
18283 | ;; | ||
18284 | esac | ||
18285 | dynamic_linker='Win32 ld.exe' | ||
18286 | # FIXME: first we should search . and the directory the executable is in | ||
18287 | shlibpath_var=PATH | ||
18288 | ;; | ||
18289 | |||
18290 | darwin* | rhapsody*) | ||
18291 | dynamic_linker="$host_os dyld" | ||
18292 | version_type=darwin | ||
18293 | need_lib_prefix=no | ||
18294 | need_version=no | ||
18295 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
18296 | soname_spec='${libname}${release}${major}$shared_ext' | ||
18297 | shlibpath_overrides_runpath=yes | ||
18298 | shlibpath_var=DYLD_LIBRARY_PATH | ||
18299 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
18300 | |||
18301 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
18302 | ;; | ||
18303 | |||
18304 | dgux*) | ||
18305 | version_type=linux | ||
18306 | need_lib_prefix=no | ||
18307 | need_version=no | ||
18308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
18309 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18310 | shlibpath_var=LD_LIBRARY_PATH | ||
18311 | ;; | ||
18312 | |||
18313 | freebsd1*) | ||
18314 | dynamic_linker=no | ||
18315 | ;; | ||
18316 | |||
18317 | freebsd* | dragonfly*) | ||
18318 | # DragonFly does not have aout. When/if they implement a new | ||
18319 | # versioning mechanism, adjust this. | ||
18320 | if test -x /usr/bin/objformat; then | ||
18321 | objformat=`/usr/bin/objformat` | ||
18322 | else | ||
18323 | case $host_os in | ||
18324 | freebsd[123]*) objformat=aout ;; | ||
18325 | *) objformat=elf ;; | ||
18326 | esac | ||
18327 | fi | ||
18328 | version_type=freebsd-$objformat | ||
18329 | case $version_type in | ||
18330 | freebsd-elf*) | ||
18331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18332 | need_version=no | ||
18333 | need_lib_prefix=no | ||
18334 | ;; | ||
18335 | freebsd-*) | ||
18336 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
18337 | need_version=yes | ||
18338 | ;; | ||
18339 | esac | ||
18340 | shlibpath_var=LD_LIBRARY_PATH | ||
18341 | case $host_os in | ||
18342 | freebsd2*) | ||
18343 | shlibpath_overrides_runpath=yes | ||
18344 | ;; | ||
18345 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
18346 | shlibpath_overrides_runpath=yes | ||
18347 | hardcode_into_libs=yes | ||
18348 | ;; | ||
18349 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
18350 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
18351 | shlibpath_overrides_runpath=no | ||
18352 | hardcode_into_libs=yes | ||
18353 | ;; | ||
18354 | *) # from 4.6 on, and DragonFly | ||
18355 | shlibpath_overrides_runpath=yes | ||
18356 | hardcode_into_libs=yes | ||
18357 | ;; | ||
18358 | esac | ||
18359 | ;; | ||
18360 | |||
18361 | gnu*) | ||
18362 | version_type=linux | ||
18363 | need_lib_prefix=no | ||
18364 | need_version=no | ||
18365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
18366 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18367 | shlibpath_var=LD_LIBRARY_PATH | ||
18368 | hardcode_into_libs=yes | ||
18369 | ;; | ||
18370 | |||
18371 | hpux9* | hpux10* | hpux11*) | ||
18372 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
18373 | # link against other versions. | ||
18374 | version_type=sunos | ||
18375 | need_lib_prefix=no | ||
18376 | need_version=no | ||
18377 | case $host_cpu in | ||
18378 | ia64*) | ||
18379 | shrext_cmds='.so' | ||
18380 | hardcode_into_libs=yes | ||
18381 | dynamic_linker="$host_os dld.so" | ||
18382 | shlibpath_var=LD_LIBRARY_PATH | ||
18383 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
18384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18385 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18386 | if test "X$HPUX_IA64_MODE" = X32; then | ||
18387 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
18388 | else | ||
18389 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
18390 | fi | ||
18391 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
18392 | ;; | ||
18393 | hppa*64*) | ||
18394 | shrext_cmds='.sl' | ||
18395 | hardcode_into_libs=yes | ||
18396 | dynamic_linker="$host_os dld.sl" | ||
18397 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
18398 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
18399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18400 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18401 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
18402 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
18403 | ;; | ||
18404 | *) | ||
18405 | shrext_cmds='.sl' | ||
18406 | dynamic_linker="$host_os dld.sl" | ||
18407 | shlibpath_var=SHLIB_PATH | ||
18408 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
18409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18410 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18411 | ;; | ||
18412 | esac | ||
18413 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
18414 | postinstall_cmds='chmod 555 $lib' | ||
18415 | ;; | ||
18416 | |||
18417 | interix[3-9]*) | ||
18418 | version_type=linux | ||
18419 | need_lib_prefix=no | ||
18420 | need_version=no | ||
18421 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18422 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18423 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
18424 | shlibpath_var=LD_LIBRARY_PATH | ||
18425 | shlibpath_overrides_runpath=no | ||
18426 | hardcode_into_libs=yes | ||
18427 | ;; | ||
18428 | |||
18429 | irix5* | irix6* | nonstopux*) | ||
18430 | case $host_os in | ||
18431 | nonstopux*) version_type=nonstopux ;; | ||
18432 | *) | ||
18433 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
18434 | version_type=linux | ||
18435 | else | ||
18436 | version_type=irix | ||
18437 | fi ;; | ||
18438 | esac | ||
18439 | need_lib_prefix=no | ||
18440 | need_version=no | ||
18441 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18443 | case $host_os in | ||
18444 | irix5* | nonstopux*) | ||
18445 | libsuff= shlibsuff= | ||
18446 | ;; | ||
18447 | *) | ||
18448 | case $LD in # libtool.m4 will add one of these switches to LD | ||
18449 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
18450 | libsuff= shlibsuff= libmagic=32-bit;; | ||
18451 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
18452 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
18453 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
18454 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
18455 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
18456 | esac | ||
18457 | ;; | ||
18458 | esac | ||
18459 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
18460 | shlibpath_overrides_runpath=no | ||
18461 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
18462 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
18463 | hardcode_into_libs=yes | ||
18464 | ;; | ||
18465 | |||
18466 | # No shared lib support for Linux oldld, aout, or coff. | ||
18467 | linux*oldld* | linux*aout* | linux*coff*) | ||
18468 | dynamic_linker=no | ||
18469 | ;; | ||
18470 | |||
18471 | # This must be Linux ELF. | ||
18472 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
18473 | version_type=linux | ||
18474 | need_lib_prefix=no | ||
18475 | need_version=no | ||
18476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18477 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18478 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
18479 | shlibpath_var=LD_LIBRARY_PATH | ||
18480 | shlibpath_overrides_runpath=no | ||
18481 | # Some binutils ld are patched to set DT_RUNPATH | ||
18482 | save_LDFLAGS=$LDFLAGS | ||
18483 | save_libdir=$libdir | ||
18484 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | ||
18485 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | ||
18486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18487 | /* end confdefs.h. */ | ||
18488 | |||
18489 | int | ||
18490 | main () | ||
18491 | { | ||
18492 | |||
18493 | ; | ||
18494 | return 0; | ||
18495 | } | ||
18496 | _ACEOF | ||
18497 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
18498 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
18499 | shlibpath_overrides_runpath=yes | ||
18500 | fi | ||
18501 | fi | ||
18502 | rm -f core conftest.err conftest.$ac_objext \ | ||
18503 | conftest$ac_exeext conftest.$ac_ext | ||
18504 | LDFLAGS=$save_LDFLAGS | ||
18505 | libdir=$save_libdir | ||
18506 | |||
18507 | # This implies no fast_install, which is unacceptable. | ||
18508 | # Some rework will be needed to allow for fast_install | ||
18509 | # before this can be enabled. | ||
18510 | hardcode_into_libs=yes | ||
18511 | |||
18512 | # Append ld.so.conf contents to the search path | ||
18513 | if test -f /etc/ld.so.conf; then | ||
18514 | 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' ' '` | ||
18515 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
18516 | fi | ||
18517 | |||
18518 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
18519 | # powerpc, because MkLinux only supported shared libraries with the | ||
18520 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
18521 | # most powerpc-linux boxes support dynamic linking these days and | ||
18522 | # people can always --disable-shared, the test was removed, and we | ||
18523 | # assume the GNU/Linux dynamic linker is in use. | ||
18524 | dynamic_linker='GNU/Linux ld.so' | ||
18525 | ;; | ||
18526 | |||
18527 | netbsdelf*-gnu) | ||
18528 | version_type=linux | ||
18529 | need_lib_prefix=no | ||
18530 | need_version=no | ||
18531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18532 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18533 | shlibpath_var=LD_LIBRARY_PATH | ||
18534 | shlibpath_overrides_runpath=no | ||
18535 | hardcode_into_libs=yes | ||
18536 | dynamic_linker='NetBSD ld.elf_so' | ||
18537 | ;; | ||
18538 | |||
18539 | netbsd*) | ||
18540 | version_type=sunos | ||
18541 | need_lib_prefix=no | ||
18542 | need_version=no | ||
18543 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
18544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18545 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
18546 | dynamic_linker='NetBSD (a.out) ld.so' | ||
18547 | else | ||
18548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18549 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18550 | dynamic_linker='NetBSD ld.elf_so' | ||
18551 | fi | ||
18552 | shlibpath_var=LD_LIBRARY_PATH | ||
18553 | shlibpath_overrides_runpath=yes | ||
18554 | hardcode_into_libs=yes | ||
18555 | ;; | ||
18556 | |||
18557 | newsos6) | ||
18558 | version_type=linux | ||
18559 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18560 | shlibpath_var=LD_LIBRARY_PATH | ||
18561 | shlibpath_overrides_runpath=yes | ||
18562 | ;; | ||
18563 | |||
18564 | *nto* | *qnx*) | ||
18565 | version_type=qnx | ||
18566 | need_lib_prefix=no | ||
18567 | need_version=no | ||
18568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18569 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18570 | shlibpath_var=LD_LIBRARY_PATH | ||
18571 | shlibpath_overrides_runpath=no | ||
18572 | hardcode_into_libs=yes | ||
18573 | dynamic_linker='ldqnx.so' | ||
18574 | ;; | ||
18575 | |||
18576 | openbsd*) | ||
18577 | version_type=sunos | ||
18578 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
18579 | need_lib_prefix=no | ||
18580 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
18581 | case $host_os in | ||
18582 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
18583 | *) need_version=no ;; | ||
18584 | esac | ||
18585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18586 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
18587 | shlibpath_var=LD_LIBRARY_PATH | ||
18588 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
18589 | case $host_os in | ||
18590 | openbsd2.[89] | openbsd2.[89].*) | ||
18591 | shlibpath_overrides_runpath=no | ||
18592 | ;; | ||
18593 | *) | ||
18594 | shlibpath_overrides_runpath=yes | ||
18595 | ;; | ||
18596 | esac | ||
18597 | else | ||
18598 | shlibpath_overrides_runpath=yes | ||
18599 | fi | ||
18600 | ;; | ||
18601 | |||
18602 | os2*) | ||
18603 | libname_spec='$name' | ||
18604 | shrext_cmds=".dll" | ||
18605 | need_lib_prefix=no | ||
18606 | library_names_spec='$libname${shared_ext} $libname.a' | ||
18607 | dynamic_linker='OS/2 ld.exe' | ||
18608 | shlibpath_var=LIBPATH | ||
18609 | ;; | ||
18610 | |||
18611 | osf3* | osf4* | osf5*) | ||
18612 | version_type=osf | ||
18613 | need_lib_prefix=no | ||
18614 | need_version=no | ||
18615 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18617 | shlibpath_var=LD_LIBRARY_PATH | ||
18618 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
18619 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
18620 | ;; | ||
18621 | |||
18622 | rdos*) | ||
18623 | dynamic_linker=no | ||
18624 | ;; | ||
18625 | |||
18626 | solaris*) | ||
18627 | version_type=linux | ||
18628 | need_lib_prefix=no | ||
18629 | need_version=no | ||
18630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18631 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18632 | shlibpath_var=LD_LIBRARY_PATH | ||
18633 | shlibpath_overrides_runpath=yes | ||
18634 | hardcode_into_libs=yes | ||
18635 | # ldd complains unless libraries are executable | ||
18636 | postinstall_cmds='chmod +x $lib' | ||
18637 | ;; | ||
18638 | |||
18639 | sunos4*) | ||
18640 | version_type=sunos | ||
18641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18642 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
18643 | shlibpath_var=LD_LIBRARY_PATH | ||
18644 | shlibpath_overrides_runpath=yes | ||
18645 | if test "$with_gnu_ld" = yes; then | ||
18646 | need_lib_prefix=no | ||
18647 | fi | ||
18648 | need_version=yes | ||
18649 | ;; | ||
18650 | |||
18651 | sysv4 | sysv4.3*) | ||
18652 | version_type=linux | ||
18653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18654 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18655 | shlibpath_var=LD_LIBRARY_PATH | ||
18656 | case $host_vendor in | ||
18657 | sni) | ||
18658 | shlibpath_overrides_runpath=no | ||
18659 | need_lib_prefix=no | ||
18660 | runpath_var=LD_RUN_PATH | ||
18661 | ;; | ||
18662 | siemens) | ||
18663 | need_lib_prefix=no | ||
18664 | ;; | ||
18665 | motorola) | ||
18666 | need_lib_prefix=no | ||
18667 | need_version=no | ||
18668 | shlibpath_overrides_runpath=no | ||
18669 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
18670 | ;; | ||
18671 | esac | ||
18672 | ;; | ||
18673 | |||
18674 | sysv4*MP*) | ||
18675 | if test -d /usr/nec ;then | ||
18676 | version_type=linux | ||
18677 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
18678 | soname_spec='$libname${shared_ext}.$major' | ||
18679 | shlibpath_var=LD_LIBRARY_PATH | ||
18680 | fi | ||
18681 | ;; | ||
18682 | |||
18683 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
18684 | version_type=freebsd-elf | ||
18685 | need_lib_prefix=no | ||
18686 | need_version=no | ||
18687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18688 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18689 | shlibpath_var=LD_LIBRARY_PATH | ||
18690 | shlibpath_overrides_runpath=yes | ||
18691 | hardcode_into_libs=yes | ||
18692 | if test "$with_gnu_ld" = yes; then | ||
18693 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
18694 | else | ||
18695 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
18696 | case $host_os in | ||
18697 | sco3.2v5*) | ||
18698 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
18699 | ;; | ||
18700 | esac | ||
18701 | fi | ||
18702 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
18703 | ;; | ||
18704 | |||
18705 | tpf*) | ||
18706 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
18707 | version_type=linux | ||
18708 | need_lib_prefix=no | ||
18709 | need_version=no | ||
18710 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18711 | shlibpath_var=LD_LIBRARY_PATH | ||
18712 | shlibpath_overrides_runpath=no | ||
18713 | hardcode_into_libs=yes | ||
18714 | ;; | ||
18715 | |||
18716 | uts4*) | ||
18717 | version_type=linux | ||
18718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18719 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18720 | shlibpath_var=LD_LIBRARY_PATH | ||
18721 | ;; | ||
18722 | |||
18723 | *) | ||
18724 | dynamic_linker=no | ||
18725 | ;; | ||
18726 | esac | ||
18727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
18728 | $as_echo "$dynamic_linker" >&6; } | ||
18729 | test "$dynamic_linker" = no && can_build_shared=no | ||
18730 | |||
18731 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
18732 | if test "$GCC" = yes; then | ||
18733 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
18734 | fi | ||
18735 | |||
18736 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
18737 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
18738 | fi | ||
18739 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
18740 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
18741 | fi | ||
18742 | |||
18743 | |||
18744 | |||
18745 | |||
18746 | |||
18747 | |||
18748 | |||
18749 | |||
18750 | |||
18751 | |||
18752 | |||
18753 | |||
18754 | |||
18755 | |||
18756 | |||
18757 | |||
18758 | |||
18759 | |||
18760 | |||
18761 | |||
18762 | |||
18763 | |||
18764 | |||
18765 | |||
18766 | |||
18767 | |||
18768 | |||
18769 | |||
18770 | |||
18771 | |||
18772 | |||
18773 | |||
18774 | |||
18775 | |||
18776 | |||
18777 | |||
18778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
18779 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
18780 | hardcode_action_CXX= | ||
18781 | if test -n "$hardcode_libdir_flag_spec_CXX" || | ||
18782 | test -n "$runpath_var_CXX" || | ||
18783 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | ||
18784 | |||
18785 | # We can hardcode non-existent directories. | ||
18786 | if test "$hardcode_direct_CXX" != no && | ||
18787 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
18788 | # have to relink, otherwise we might link with an installed library | ||
18789 | # when we should be linking with a yet-to-be-installed one | ||
18790 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
18791 | test "$hardcode_minus_L_CXX" != no; then | ||
18792 | # Linking always hardcodes the temporary library directory. | ||
18793 | hardcode_action_CXX=relink | ||
18794 | else | ||
18795 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
18796 | hardcode_action_CXX=immediate | ||
18797 | fi | ||
18798 | else | ||
18799 | # We cannot hardcode anything, or else we can only hardcode existing | ||
18800 | # directories. | ||
18801 | hardcode_action_CXX=unsupported | ||
18802 | fi | ||
18803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | ||
18804 | $as_echo "$hardcode_action_CXX" >&6; } | ||
18805 | |||
18806 | if test "$hardcode_action_CXX" = relink || | ||
18807 | test "$inherit_rpath_CXX" = yes; then | ||
18808 | # Fast installation is not supported | ||
18809 | enable_fast_install=no | ||
18810 | elif test "$shlibpath_overrides_runpath" = yes || | ||
18811 | test "$enable_shared" = no; then | ||
18812 | # Fast installation is not necessary | ||
18813 | enable_fast_install=needless | ||
18814 | fi | ||
18815 | |||
18816 | |||
18817 | |||
18818 | |||
18819 | |||
18820 | |||
18821 | |||
18822 | fi # test -n "$compiler" | ||
18823 | |||
18824 | CC=$lt_save_CC | ||
18825 | LDCXX=$LD | ||
18826 | LD=$lt_save_LD | ||
18827 | GCC=$lt_save_GCC | ||
18828 | with_gnu_ld=$lt_save_with_gnu_ld | ||
18829 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
18830 | lt_cv_path_LD=$lt_save_path_LD | ||
18831 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
18832 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
18833 | fi # test "$_lt_caught_CXX_error" != yes | ||
18834 | |||
18835 | ac_ext=c | ||
18836 | ac_cpp='$CPP $CPPFLAGS' | ||
18837 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18838 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18839 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18840 | |||
18841 | |||
18842 | ac_ext=c | ||
18843 | ac_cpp='$CPP $CPPFLAGS' | ||
18844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18847 | if test -n "$ac_tool_prefix"; then | ||
18848 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
18849 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
18850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18851 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18852 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
18853 | $as_echo_n "(cached) " >&6 | ||
18854 | else | ||
18855 | if test -n "$CC"; then | ||
18856 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
18857 | else | ||
18858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18859 | for as_dir in $PATH | ||
18860 | do | ||
18861 | IFS=$as_save_IFS | ||
18862 | test -z "$as_dir" && as_dir=. | ||
18863 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18865 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
18866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18867 | break 2 | ||
18868 | fi | ||
18869 | done | ||
18870 | done | ||
18871 | IFS=$as_save_IFS | ||
18872 | |||
18873 | fi | ||
18874 | fi | ||
18875 | CC=$ac_cv_prog_CC | ||
18876 | if test -n "$CC"; then | ||
18877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
18878 | $as_echo "$CC" >&6; } | ||
18879 | else | ||
18880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18881 | $as_echo "no" >&6; } | ||
18882 | fi | ||
18883 | |||
18884 | |||
18885 | fi | ||
18886 | if test -z "$ac_cv_prog_CC"; then | ||
18887 | ac_ct_CC=$CC | ||
18888 | # Extract the first word of "gcc", so it can be a program name with args. | ||
18889 | set dummy gcc; ac_word=$2 | ||
18890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18891 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18892 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
18893 | $as_echo_n "(cached) " >&6 | ||
18894 | else | ||
18895 | if test -n "$ac_ct_CC"; then | ||
18896 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
18897 | else | ||
18898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18899 | for as_dir in $PATH | ||
18900 | do | ||
18901 | IFS=$as_save_IFS | ||
18902 | test -z "$as_dir" && as_dir=. | ||
18903 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18905 | ac_cv_prog_ac_ct_CC="gcc" | ||
18906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18907 | break 2 | ||
18908 | fi | ||
18909 | done | ||
18910 | done | ||
18911 | IFS=$as_save_IFS | ||
18912 | |||
18913 | fi | ||
18914 | fi | ||
18915 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
18916 | if test -n "$ac_ct_CC"; then | ||
18917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
18918 | $as_echo "$ac_ct_CC" >&6; } | ||
18919 | else | ||
18920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18921 | $as_echo "no" >&6; } | ||
18922 | fi | ||
18923 | |||
18924 | if test "x$ac_ct_CC" = x; then | ||
18925 | CC="" | ||
18926 | else | ||
18927 | case $cross_compiling:$ac_tool_warned in | ||
18928 | yes:) | ||
18929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
18930 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
18931 | ac_tool_warned=yes ;; | ||
18932 | esac | ||
18933 | CC=$ac_ct_CC | ||
18934 | fi | ||
18935 | else | ||
18936 | CC="$ac_cv_prog_CC" | ||
18937 | fi | ||
18938 | |||
18939 | if test -z "$CC"; then | ||
18940 | if test -n "$ac_tool_prefix"; then | ||
18941 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
18942 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
18943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18944 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18945 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
18946 | $as_echo_n "(cached) " >&6 | ||
18947 | else | ||
18948 | if test -n "$CC"; then | ||
18949 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
18950 | else | ||
18951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18952 | for as_dir in $PATH | ||
18953 | do | ||
18954 | IFS=$as_save_IFS | ||
18955 | test -z "$as_dir" && as_dir=. | ||
18956 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18958 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
18959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18960 | break 2 | ||
18961 | fi | ||
18962 | done | ||
18963 | done | ||
18964 | IFS=$as_save_IFS | ||
18965 | |||
18966 | fi | ||
18967 | fi | ||
18968 | CC=$ac_cv_prog_CC | ||
18969 | if test -n "$CC"; then | ||
18970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
18971 | $as_echo "$CC" >&6; } | ||
18972 | else | ||
18973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18974 | $as_echo "no" >&6; } | ||
18975 | fi | ||
18976 | |||
18977 | |||
18978 | fi | ||
18979 | fi | ||
18980 | if test -z "$CC"; then | ||
18981 | # Extract the first word of "cc", so it can be a program name with args. | ||
18982 | set dummy cc; ac_word=$2 | ||
18983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18984 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18985 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
18986 | $as_echo_n "(cached) " >&6 | ||
18987 | else | ||
18988 | if test -n "$CC"; then | ||
18989 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
18990 | else | ||
18991 | ac_prog_rejected=no | ||
18992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18993 | for as_dir in $PATH | ||
18994 | do | ||
18995 | IFS=$as_save_IFS | ||
18996 | test -z "$as_dir" && as_dir=. | ||
18997 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18999 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
19000 | ac_prog_rejected=yes | ||
19001 | continue | ||
19002 | fi | ||
19003 | ac_cv_prog_CC="cc" | ||
19004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19005 | break 2 | ||
19006 | fi | ||
19007 | done | ||
19008 | done | ||
19009 | IFS=$as_save_IFS | ||
19010 | |||
19011 | if test $ac_prog_rejected = yes; then | ||
19012 | # We found a bogon in the path, so make sure we never use it. | ||
19013 | set dummy $ac_cv_prog_CC | ||
19014 | shift | ||
19015 | if test $# != 0; then | ||
19016 | # We chose a different compiler from the bogus one. | ||
19017 | # However, it has the same basename, so the bogon will be chosen | ||
19018 | # first if we set CC to just the basename; use the full file name. | ||
19019 | shift | ||
19020 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
19021 | fi | ||
19022 | fi | ||
19023 | fi | ||
19024 | fi | ||
19025 | CC=$ac_cv_prog_CC | ||
19026 | if test -n "$CC"; then | ||
19027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
19028 | $as_echo "$CC" >&6; } | ||
19029 | else | ||
19030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19031 | $as_echo "no" >&6; } | ||
19032 | fi | ||
19033 | |||
19034 | |||
19035 | fi | ||
19036 | if test -z "$CC"; then | ||
19037 | if test -n "$ac_tool_prefix"; then | ||
19038 | for ac_prog in cl.exe | ||
19039 | do | ||
19040 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
19041 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
19042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19043 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19044 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
19045 | $as_echo_n "(cached) " >&6 | ||
19046 | else | ||
19047 | if test -n "$CC"; then | ||
19048 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
19049 | else | ||
19050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19051 | for as_dir in $PATH | ||
19052 | do | ||
19053 | IFS=$as_save_IFS | ||
19054 | test -z "$as_dir" && as_dir=. | ||
19055 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19057 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
19058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19059 | break 2 | ||
19060 | fi | ||
19061 | done | ||
19062 | done | ||
19063 | IFS=$as_save_IFS | ||
19064 | |||
19065 | fi | ||
19066 | fi | ||
19067 | CC=$ac_cv_prog_CC | ||
19068 | if test -n "$CC"; then | ||
19069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
19070 | $as_echo "$CC" >&6; } | ||
19071 | else | ||
19072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19073 | $as_echo "no" >&6; } | ||
19074 | fi | ||
19075 | |||
19076 | |||
19077 | test -n "$CC" && break | ||
19078 | done | ||
19079 | fi | ||
19080 | if test -z "$CC"; then | ||
19081 | ac_ct_CC=$CC | ||
19082 | for ac_prog in cl.exe | ||
19083 | do | ||
19084 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
19085 | set dummy $ac_prog; ac_word=$2 | ||
19086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19087 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19088 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
19089 | $as_echo_n "(cached) " >&6 | ||
19090 | else | ||
19091 | if test -n "$ac_ct_CC"; then | ||
19092 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
19093 | else | ||
19094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19095 | for as_dir in $PATH | ||
19096 | do | ||
19097 | IFS=$as_save_IFS | ||
19098 | test -z "$as_dir" && as_dir=. | ||
19099 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19101 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
19102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19103 | break 2 | ||
19104 | fi | ||
19105 | done | ||
19106 | done | ||
19107 | IFS=$as_save_IFS | ||
19108 | |||
19109 | fi | ||
19110 | fi | ||
19111 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
19112 | if test -n "$ac_ct_CC"; then | ||
19113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
19114 | $as_echo "$ac_ct_CC" >&6; } | ||
19115 | else | ||
19116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19117 | $as_echo "no" >&6; } | ||
19118 | fi | ||
19119 | |||
19120 | |||
19121 | test -n "$ac_ct_CC" && break | ||
19122 | done | ||
19123 | |||
19124 | if test "x$ac_ct_CC" = x; then | ||
19125 | CC="" | ||
19126 | else | ||
19127 | case $cross_compiling:$ac_tool_warned in | ||
19128 | yes:) | ||
19129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
19130 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
19131 | ac_tool_warned=yes ;; | ||
19132 | esac | ||
19133 | CC=$ac_ct_CC | ||
19134 | fi | ||
19135 | fi | ||
19136 | |||
19137 | fi | ||
19138 | |||
19139 | |||
19140 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
19141 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
19142 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
19143 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
19144 | |||
19145 | # Provide some information about the compiler. | ||
19146 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
19147 | set X $ac_compile | ||
19148 | ac_compiler=$2 | ||
19149 | for ac_option in --version -v -V -qversion; do | ||
19150 | { { ac_try="$ac_compiler $ac_option >&5" | ||
19151 | case "(($ac_try" in | ||
19152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19153 | *) ac_try_echo=$ac_try;; | ||
19154 | esac | ||
19155 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
19156 | $as_echo "$ac_try_echo"; } >&5 | ||
19157 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
19158 | ac_status=$? | ||
19159 | if test -s conftest.err; then | ||
19160 | sed '10a\ | ||
19161 | ... rest of stderr output deleted ... | ||
19162 | 10q' conftest.err >conftest.er1 | ||
19163 | cat conftest.er1 >&5 | ||
19164 | fi | ||
19165 | rm -f conftest.er1 conftest.err | ||
19166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19167 | test $ac_status = 0; } | ||
19168 | done | ||
19169 | |||
19170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
19171 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
19172 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
19173 | $as_echo_n "(cached) " >&6 | ||
19174 | else | ||
19175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19176 | /* end confdefs.h. */ | ||
19177 | |||
19178 | int | ||
19179 | main () | ||
19180 | { | ||
19181 | #ifndef __GNUC__ | ||
19182 | choke me | ||
19183 | #endif | ||
19184 | |||
19185 | ; | ||
19186 | return 0; | ||
19187 | } | ||
19188 | _ACEOF | ||
19189 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19190 | ac_compiler_gnu=yes | ||
19191 | else | ||
19192 | ac_compiler_gnu=no | ||
19193 | fi | ||
19194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19195 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
19196 | |||
19197 | fi | ||
19198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
19199 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
19200 | if test $ac_compiler_gnu = yes; then | ||
19201 | GCC=yes | ||
19202 | else | ||
19203 | GCC= | ||
19204 | fi | ||
19205 | ac_test_CFLAGS=${CFLAGS+set} | ||
19206 | ac_save_CFLAGS=$CFLAGS | ||
19207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
19208 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
19209 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
19210 | $as_echo_n "(cached) " >&6 | ||
19211 | else | ||
19212 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
19213 | ac_c_werror_flag=yes | ||
19214 | ac_cv_prog_cc_g=no | ||
19215 | CFLAGS="-g" | ||
19216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19217 | /* end confdefs.h. */ | ||
19218 | |||
19219 | int | ||
19220 | main () | ||
19221 | { | ||
19222 | |||
19223 | ; | ||
19224 | return 0; | ||
19225 | } | ||
19226 | _ACEOF | ||
19227 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19228 | ac_cv_prog_cc_g=yes | ||
19229 | else | ||
19230 | CFLAGS="" | ||
19231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19232 | /* end confdefs.h. */ | ||
19233 | |||
19234 | int | ||
19235 | main () | ||
19236 | { | ||
19237 | |||
19238 | ; | ||
19239 | return 0; | ||
19240 | } | ||
19241 | _ACEOF | ||
19242 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19243 | |||
19244 | else | ||
19245 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
19246 | CFLAGS="-g" | ||
19247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19248 | /* end confdefs.h. */ | ||
19249 | |||
19250 | int | ||
19251 | main () | ||
19252 | { | ||
19253 | |||
19254 | ; | ||
19255 | return 0; | ||
19256 | } | ||
19257 | _ACEOF | ||
19258 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19259 | ac_cv_prog_cc_g=yes | ||
19260 | fi | ||
19261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19262 | fi | ||
19263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19264 | fi | ||
19265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19266 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
19267 | fi | ||
19268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
19269 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
19270 | if test "$ac_test_CFLAGS" = set; then | ||
19271 | CFLAGS=$ac_save_CFLAGS | ||
19272 | elif test $ac_cv_prog_cc_g = yes; then | ||
19273 | if test "$GCC" = yes; then | ||
19274 | CFLAGS="-g -O2" | ||
19275 | else | ||
19276 | CFLAGS="-g" | ||
19277 | fi | ||
19278 | else | ||
19279 | if test "$GCC" = yes; then | ||
19280 | CFLAGS="-O2" | ||
19281 | else | ||
19282 | CFLAGS= | ||
19283 | fi | ||
19284 | fi | ||
19285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
19286 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
19287 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
19288 | $as_echo_n "(cached) " >&6 | ||
19289 | else | ||
19290 | ac_cv_prog_cc_c89=no | ||
19291 | ac_save_CC=$CC | ||
19292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19293 | /* end confdefs.h. */ | ||
19294 | #include <stdarg.h> | ||
19295 | #include <stdio.h> | ||
19296 | #include <sys/types.h> | ||
19297 | #include <sys/stat.h> | ||
19298 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
19299 | struct buf { int x; }; | ||
19300 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
19301 | static char *e (p, i) | ||
19302 | char **p; | ||
19303 | int i; | ||
19304 | { | ||
19305 | return p[i]; | ||
19306 | } | ||
19307 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
19308 | { | ||
19309 | char *s; | ||
19310 | va_list v; | ||
19311 | va_start (v,p); | ||
19312 | s = g (p, va_arg (v,int)); | ||
19313 | va_end (v); | ||
19314 | return s; | ||
19315 | } | ||
19316 | |||
19317 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
19318 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
19319 | These don't provoke an error unfortunately, instead are silently treated | ||
19320 | as 'x'. The following induces an error, until -std is added to get | ||
19321 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
19322 | array size at least. It's necessary to write '\x00'==0 to get something | ||
19323 | that's true only with -std. */ | ||
19324 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
19325 | |||
19326 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
19327 | inside strings and character constants. */ | ||
19328 | #define FOO(x) 'x' | ||
19329 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
19330 | |||
19331 | int test (int i, double x); | ||
19332 | struct s1 {int (*f) (int a);}; | ||
19333 | struct s2 {int (*f) (double a);}; | ||
19334 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
19335 | int argc; | ||
19336 | char **argv; | ||
19337 | int | ||
19338 | main () | ||
19339 | { | ||
19340 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
19341 | ; | ||
19342 | return 0; | ||
19343 | } | ||
19344 | _ACEOF | ||
19345 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
19346 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
19347 | do | ||
19348 | CC="$ac_save_CC $ac_arg" | ||
19349 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19350 | ac_cv_prog_cc_c89=$ac_arg | ||
19351 | fi | ||
19352 | rm -f core conftest.err conftest.$ac_objext | ||
19353 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
19354 | done | ||
19355 | rm -f conftest.$ac_ext | ||
19356 | CC=$ac_save_CC | ||
19357 | |||
19358 | fi | ||
19359 | # AC_CACHE_VAL | ||
19360 | case "x$ac_cv_prog_cc_c89" in | ||
19361 | x) | ||
19362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
19363 | $as_echo "none needed" >&6; } ;; | ||
19364 | xno) | ||
19365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
19366 | $as_echo "unsupported" >&6; } ;; | ||
19367 | *) | ||
19368 | CC="$CC $ac_cv_prog_cc_c89" | ||
19369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
19370 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
19371 | esac | ||
19372 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
19373 | |||
19374 | fi | ||
19375 | |||
19376 | ac_ext=c | ||
19377 | ac_cpp='$CPP $CPPFLAGS' | ||
19378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19381 | |||
19382 | depcc="$CC" am_compiler_list= | ||
19383 | |||
19384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
19385 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
19386 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
19387 | $as_echo_n "(cached) " >&6 | ||
19388 | else | ||
19389 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
19390 | # We make a subdir and do the tests there. Otherwise we can end up | ||
19391 | # making bogus files that we don't know about and never remove. For | ||
19392 | # instance it was reported that on HP-UX the gcc test will end up | ||
19393 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
19394 | # in D'. | ||
19395 | mkdir conftest.dir | ||
19396 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
19397 | # using a relative directory. | ||
19398 | cp "$am_depcomp" conftest.dir | ||
19399 | cd conftest.dir | ||
19400 | # We will build objects and dependencies in a subdirectory because | ||
19401 | # it helps to detect inapplicable dependency modes. For instance | ||
19402 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
19403 | # side effect of compilation, but ICC will put the dependencies in | ||
19404 | # the current directory while Tru64 will put them in the object | ||
19405 | # directory. | ||
19406 | mkdir sub | ||
19407 | |||
19408 | am_cv_CC_dependencies_compiler_type=none | ||
19409 | if test "$am_compiler_list" = ""; then | ||
19410 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
19411 | fi | ||
19412 | am__universal=false | ||
19413 | case " $depcc " in #( | ||
19414 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
19415 | esac | ||
19416 | |||
19417 | for depmode in $am_compiler_list; do | ||
19418 | # Setup a source with many dependencies, because some compilers | ||
19419 | # like to wrap large dependency lists on column 80 (with \), and | ||
19420 | # we should not choose a depcomp mode which is confused by this. | ||
19421 | # | ||
19422 | # We need to recreate these files for each test, as the compiler may | ||
19423 | # overwrite some of them when testing with obscure command lines. | ||
19424 | # This happens at least with the AIX C compiler. | ||
19425 | : > sub/conftest.c | ||
19426 | for i in 1 2 3 4 5 6; do | ||
19427 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
19428 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
19429 | # Solaris 8's {/usr,}/bin/sh. | ||
19430 | touch sub/conftst$i.h | ||
19431 | done | ||
19432 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
19433 | |||
19434 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
19435 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
19436 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
19437 | # versions had trouble with output in subdirs | ||
19438 | am__obj=sub/conftest.${OBJEXT-o} | ||
19439 | am__minus_obj="-o $am__obj" | ||
19440 | case $depmode in | ||
19441 | gcc) | ||
19442 | # This depmode causes a compiler race in universal mode. | ||
19443 | test "$am__universal" = false || continue | ||
19444 | ;; | ||
19445 | nosideeffect) | ||
19446 | # after this tag, mechanisms are not by side-effect, so they'll | ||
19447 | # only be used when explicitly requested | ||
19448 | if test "x$enable_dependency_tracking" = xyes; then | ||
19449 | continue | ||
19450 | else | ||
19451 | break | ||
19452 | fi | ||
19453 | ;; | ||
19454 | msvisualcpp | msvcmsys) | ||
19455 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
19456 | # not run yet. These depmodes are late enough in the game, and | ||
19457 | # so weak that their functioning should not be impacted. | ||
19458 | am__obj=conftest.${OBJEXT-o} | ||
19459 | am__minus_obj= | ||
19460 | ;; | ||
19461 | none) break ;; | ||
19462 | esac | ||
19463 | if depmode=$depmode \ | ||
19464 | source=sub/conftest.c object=$am__obj \ | ||
19465 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
19466 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
19467 | >/dev/null 2>conftest.err && | ||
19468 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
19469 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
19470 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
19471 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
19472 | # icc doesn't choke on unknown options, it will just issue warnings | ||
19473 | # or remarks (even with -Werror). So we grep stderr for any message | ||
19474 | # that says an option was ignored or not supported. | ||
19475 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
19476 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
19477 | # The diagnosis changed in icc 8.0: | ||
19478 | # icc: Command line remark: option '-MP' not supported | ||
19479 | if (grep 'ignoring option' conftest.err || | ||
19480 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
19481 | am_cv_CC_dependencies_compiler_type=$depmode | ||
19482 | break | ||
19483 | fi | ||
19484 | fi | ||
19485 | done | ||
19486 | |||
19487 | cd .. | ||
19488 | rm -rf conftest.dir | ||
19489 | else | ||
19490 | am_cv_CC_dependencies_compiler_type=none | ||
19491 | fi | ||
19492 | |||
19493 | fi | ||
19494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
19495 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
19496 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
19497 | |||
19498 | if | ||
19499 | test "x$enable_dependency_tracking" != xno \ | ||
19500 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
19501 | am__fastdepCC_TRUE= | ||
19502 | am__fastdepCC_FALSE='#' | ||
19503 | else | ||
19504 | am__fastdepCC_TRUE='#' | ||
19505 | am__fastdepCC_FALSE= | ||
19506 | fi | ||
19507 | |||
19508 | |||
19509 | |||
19510 | have_gnu_objc=${ac_cv_objc_compiler_gnu} | ||
19511 | |||
19512 | # doxygen program for documentation building | ||
19513 | |||
19514 | |||
19515 | |||
19516 | # Check whether --enable-doc was given. | ||
19517 | if test "${enable_doc+set}" = set; then : | ||
19518 | enableval=$enable_doc; | ||
19519 | if test "x${enableval}" = "xyes" ; then | ||
19520 | efl_enable_doc="yes" | ||
19521 | else | ||
19522 | efl_enable_doc="no" | ||
19523 | fi | ||
19524 | |||
19525 | else | ||
19526 | efl_enable_doc="yes" | ||
19527 | fi | ||
19528 | |||
19529 | |||
19530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
19531 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
19532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
19533 | $as_echo "${efl_enable_doc}" >&6; } | ||
19534 | |||
19535 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
19536 | |||
19537 | |||
19538 | efl_doxygen="doxygen" | ||
19539 | |||
19540 | |||
19541 | # Check whether --with-doxygen was given. | ||
19542 | if test "${with_doxygen+set}" = set; then : | ||
19543 | withval=$with_doxygen; | ||
19544 | efl_doxygen=${withval} | ||
19545 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
19546 | set dummy ${efl_doxygen}; ac_word=$2 | ||
19547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19548 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19549 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
19550 | $as_echo_n "(cached) " >&6 | ||
19551 | else | ||
19552 | if test -n "$efl_have_doxygen"; then | ||
19553 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
19554 | else | ||
19555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19556 | for as_dir in $PATH | ||
19557 | do | ||
19558 | IFS=$as_save_IFS | ||
19559 | test -z "$as_dir" && as_dir=. | ||
19560 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19562 | ac_cv_prog_efl_have_doxygen="yes" | ||
19563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19564 | break 2 | ||
19565 | fi | ||
19566 | done | ||
19567 | done | ||
19568 | IFS=$as_save_IFS | ||
19569 | |||
19570 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
19571 | fi | ||
19572 | fi | ||
19573 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
19574 | if test -n "$efl_have_doxygen"; then | ||
19575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
19576 | $as_echo "$efl_have_doxygen" >&6; } | ||
19577 | else | ||
19578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19579 | $as_echo "no" >&6; } | ||
19580 | fi | ||
19581 | |||
19582 | |||
19583 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
19584 | echo "WARNING:" | ||
19585 | echo "The doxygen program you specified:" | ||
19586 | echo "${efl_doxygen}" | ||
19587 | echo "was not found. Please check the path and make sure " | ||
19588 | echo "the program exists and is executable." | ||
19589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
19590 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
19591 | fi | ||
19592 | |||
19593 | else | ||
19594 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
19595 | set dummy ${efl_doxygen}; ac_word=$2 | ||
19596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19597 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19598 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
19599 | $as_echo_n "(cached) " >&6 | ||
19600 | else | ||
19601 | if test -n "$efl_have_doxygen"; then | ||
19602 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
19603 | else | ||
19604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19605 | for as_dir in $PATH | ||
19606 | do | ||
19607 | IFS=$as_save_IFS | ||
19608 | test -z "$as_dir" && as_dir=. | ||
19609 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19611 | ac_cv_prog_efl_have_doxygen="yes" | ||
19612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19613 | break 2 | ||
19614 | fi | ||
19615 | done | ||
19616 | done | ||
19617 | IFS=$as_save_IFS | ||
19618 | |||
19619 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
19620 | fi | ||
19621 | fi | ||
19622 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
19623 | if test -n "$efl_have_doxygen"; then | ||
19624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
19625 | $as_echo "$efl_have_doxygen" >&6; } | ||
19626 | else | ||
19627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19628 | $as_echo "no" >&6; } | ||
19629 | fi | ||
19630 | |||
19631 | |||
19632 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
19633 | echo "WARNING:" | ||
19634 | echo "The doxygen program was not found in your execute path." | ||
19635 | echo "You may have doxygen installed somewhere not covered by your path." | ||
19636 | echo "" | ||
19637 | echo "If this is the case make sure you have the packages installed, AND" | ||
19638 | echo "that the doxygen program is in your execute path (see your" | ||
19639 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
19640 | echo "alternatively, specify the program to use with --with-doxygen." | ||
19641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
19642 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
19643 | fi | ||
19644 | |||
19645 | fi | ||
19646 | |||
19647 | fi | ||
19648 | |||
19649 | |||
19650 | |||
19651 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
19652 | efl_enable_doc="no" | ||
19653 | fi | ||
19654 | |||
19655 | if test "x${efl_enable_doc}" = "xyes"; then | ||
19656 | EFL_BUILD_DOC_TRUE= | ||
19657 | EFL_BUILD_DOC_FALSE='#' | ||
19658 | else | ||
19659 | EFL_BUILD_DOC_TRUE='#' | ||
19660 | EFL_BUILD_DOC_FALSE= | ||
19661 | fi | ||
19662 | |||
19663 | |||
19664 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
19665 | build_doc="yes" | ||
19666 | else | ||
19667 | build_doc="no" | ||
19668 | fi | ||
19669 | |||
19670 | |||
19671 | |||
19672 | |||
19673 | |||
19674 | |||
19675 | CFLAGS_save="${CFLAGS}" | ||
19676 | CFLAGS="${CFLAGS} -Wall" | ||
19677 | |||
19678 | ac_ext=c | ||
19679 | ac_cpp='$CPP $CPPFLAGS' | ||
19680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19683 | |||
19684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wall" >&5 | ||
19685 | $as_echo_n "checking whether the compiler supports -Wall... " >&6; } | ||
19686 | |||
19687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19688 | /* end confdefs.h. */ | ||
19689 | |||
19690 | int | ||
19691 | main () | ||
19692 | { | ||
19693 | |||
19694 | ; | ||
19695 | return 0; | ||
19696 | } | ||
19697 | _ACEOF | ||
19698 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19699 | have_flag="yes" | ||
19700 | else | ||
19701 | have_flag="no" | ||
19702 | fi | ||
19703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
19705 | $as_echo "${have_flag}" >&6; } | ||
19706 | |||
19707 | if test "x${have_flag}" = "xno" ; then | ||
19708 | CFLAGS="${CFLAGS_save}" | ||
19709 | fi | ||
19710 | ac_ext=c | ||
19711 | ac_cpp='$CPP $CPPFLAGS' | ||
19712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19715 | |||
19716 | |||
19717 | |||
19718 | |||
19719 | |||
19720 | CFLAGS_save="${CFLAGS}" | ||
19721 | CFLAGS="${CFLAGS} -W" | ||
19722 | |||
19723 | ac_ext=c | ||
19724 | ac_cpp='$CPP $CPPFLAGS' | ||
19725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19728 | |||
19729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -W" >&5 | ||
19730 | $as_echo_n "checking whether the compiler supports -W... " >&6; } | ||
19731 | |||
19732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19733 | /* end confdefs.h. */ | ||
19734 | |||
19735 | int | ||
19736 | main () | ||
19737 | { | ||
19738 | |||
19739 | ; | ||
19740 | return 0; | ||
19741 | } | ||
19742 | _ACEOF | ||
19743 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19744 | have_flag="yes" | ||
19745 | else | ||
19746 | have_flag="no" | ||
19747 | fi | ||
19748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
19750 | $as_echo "${have_flag}" >&6; } | ||
19751 | |||
19752 | if test "x${have_flag}" = "xno" ; then | ||
19753 | CFLAGS="${CFLAGS_save}" | ||
19754 | fi | ||
19755 | ac_ext=c | ||
19756 | ac_cpp='$CPP $CPPFLAGS' | ||
19757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19760 | |||
19761 | |||
19762 | |||
19763 | |||
19764 | |||
19765 | # The first call to PKG_CHECK_MODULES is done conditionally, | ||
19766 | # so we should include this here: | ||
19767 | |||
19768 | |||
19769 | |||
19770 | |||
19771 | |||
19772 | |||
19773 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
19774 | if test -n "$ac_tool_prefix"; then | ||
19775 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
19776 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
19777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19778 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19779 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
19780 | $as_echo_n "(cached) " >&6 | ||
19781 | else | ||
19782 | case $PKG_CONFIG in | ||
19783 | [\\/]* | ?:[\\/]*) | ||
19784 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
19785 | ;; | ||
19786 | *) | ||
19787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19788 | for as_dir in $PATH | ||
19789 | do | ||
19790 | IFS=$as_save_IFS | ||
19791 | test -z "$as_dir" && as_dir=. | ||
19792 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19794 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
19795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19796 | break 2 | ||
19797 | fi | ||
19798 | done | ||
19799 | done | ||
19800 | IFS=$as_save_IFS | ||
19801 | |||
19802 | ;; | ||
19803 | esac | ||
19804 | fi | ||
19805 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
19806 | if test -n "$PKG_CONFIG"; then | ||
19807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
19808 | $as_echo "$PKG_CONFIG" >&6; } | ||
19809 | else | ||
19810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19811 | $as_echo "no" >&6; } | ||
19812 | fi | ||
19813 | |||
19814 | |||
19815 | fi | ||
19816 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
19817 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
19818 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
19819 | set dummy pkg-config; ac_word=$2 | ||
19820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19821 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19822 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
19823 | $as_echo_n "(cached) " >&6 | ||
19824 | else | ||
19825 | case $ac_pt_PKG_CONFIG in | ||
19826 | [\\/]* | ?:[\\/]*) | ||
19827 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
19828 | ;; | ||
19829 | *) | ||
19830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19831 | for as_dir in $PATH | ||
19832 | do | ||
19833 | IFS=$as_save_IFS | ||
19834 | test -z "$as_dir" && as_dir=. | ||
19835 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19837 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
19838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19839 | break 2 | ||
19840 | fi | ||
19841 | done | ||
19842 | done | ||
19843 | IFS=$as_save_IFS | ||
19844 | |||
19845 | ;; | ||
19846 | esac | ||
19847 | fi | ||
19848 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
19849 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
19850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
19851 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
19852 | else | ||
19853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19854 | $as_echo "no" >&6; } | ||
19855 | fi | ||
19856 | |||
19857 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
19858 | PKG_CONFIG="" | ||
19859 | else | ||
19860 | case $cross_compiling:$ac_tool_warned in | ||
19861 | yes:) | ||
19862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
19863 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
19864 | ac_tool_warned=yes ;; | ||
19865 | esac | ||
19866 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
19867 | fi | ||
19868 | else | ||
19869 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
19870 | fi | ||
19871 | |||
19872 | fi | ||
19873 | if test -n "$PKG_CONFIG"; then | ||
19874 | _pkg_min_version=0.9.0 | ||
19875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
19876 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
19877 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
19878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19879 | $as_echo "yes" >&6; } | ||
19880 | else | ||
19881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19882 | $as_echo "no" >&6; } | ||
19883 | PKG_CONFIG="" | ||
19884 | fi | ||
19885 | fi | ||
19886 | |||
19887 | # Check whether pkg-config supports Requires.private | ||
19888 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
19889 | pkgconfig_requires_private="Requires.private" | ||
19890 | else | ||
19891 | pkgconfig_requires_private="Requires" | ||
19892 | fi | ||
19893 | |||
19894 | |||
19895 | ### Checks for some build time option | ||
19896 | have_backtrace="no" | ||
19897 | for ac_func in backtrace | ||
19898 | do : | ||
19899 | ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" | ||
19900 | if test "x$ac_cv_func_backtrace" = x""yes; then : | ||
19901 | cat >>confdefs.h <<_ACEOF | ||
19902 | #define HAVE_BACKTRACE 1 | ||
19903 | _ACEOF | ||
19904 | have_backtrace="yes" | ||
19905 | fi | ||
19906 | done | ||
19907 | |||
19908 | |||
19909 | want_ecore_timer_dump="yes" | ||
19910 | |||
19911 | # Check whether --enable-ecore-timer-dump was given. | ||
19912 | if test "${enable_ecore_timer_dump+set}" = set; then : | ||
19913 | enableval=$enable_ecore_timer_dump; want_ecore_timer_dump=$enableval | ||
19914 | fi | ||
19915 | |||
19916 | |||
19917 | if test "x$want_ecore_timer_dump" = "xyes" -a "x$have_backtrace" = "xyes"; then | ||
19918 | |||
19919 | $as_echo "#define WANT_ECORE_TIMER_DUMP 1" >>confdefs.h | ||
19920 | |||
19921 | fi | ||
19922 | |||
19923 | ### Checks for libraries | ||
19924 | |||
19925 | # Evil library for compilation on Windows | ||
19926 | |||
19927 | case "$host_os" in | ||
19928 | mingw*) | ||
19929 | |||
19930 | pkg_failed=no | ||
19931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
19932 | $as_echo_n "checking for EVIL... " >&6; } | ||
19933 | |||
19934 | if test -n "$EVIL_CFLAGS"; then | ||
19935 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
19936 | elif test -n "$PKG_CONFIG"; then | ||
19937 | if test -n "$PKG_CONFIG" && \ | ||
19938 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
19939 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
19940 | ac_status=$? | ||
19941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19942 | test $ac_status = 0; }; then | ||
19943 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
19944 | else | ||
19945 | pkg_failed=yes | ||
19946 | fi | ||
19947 | else | ||
19948 | pkg_failed=untried | ||
19949 | fi | ||
19950 | if test -n "$EVIL_LIBS"; then | ||
19951 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
19952 | elif test -n "$PKG_CONFIG"; then | ||
19953 | if test -n "$PKG_CONFIG" && \ | ||
19954 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
19955 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
19956 | ac_status=$? | ||
19957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19958 | test $ac_status = 0; }; then | ||
19959 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
19960 | else | ||
19961 | pkg_failed=yes | ||
19962 | fi | ||
19963 | else | ||
19964 | pkg_failed=untried | ||
19965 | fi | ||
19966 | |||
19967 | |||
19968 | |||
19969 | if test $pkg_failed = yes; then | ||
19970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19971 | $as_echo "no" >&6; } | ||
19972 | |||
19973 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
19974 | _pkg_short_errors_supported=yes | ||
19975 | else | ||
19976 | _pkg_short_errors_supported=no | ||
19977 | fi | ||
19978 | if test $_pkg_short_errors_supported = yes; then | ||
19979 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
19980 | else | ||
19981 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
19982 | fi | ||
19983 | # Put the nasty error message in config.log where it belongs | ||
19984 | echo "$EVIL_PKG_ERRORS" >&5 | ||
19985 | |||
19986 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
19987 | |||
19988 | $EVIL_PKG_ERRORS | ||
19989 | |||
19990 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
19991 | installed software in a non-standard prefix. | ||
19992 | |||
19993 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
19994 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
19995 | See the pkg-config man page for more details." "$LINENO" 5 | ||
19996 | elif test $pkg_failed = untried; then | ||
19997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19998 | $as_echo "no" >&6; } | ||
19999 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
20000 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
20001 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
20002 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
20003 | path to pkg-config. | ||
20004 | |||
20005 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
20006 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
20007 | See the pkg-config man page for more details. | ||
20008 | |||
20009 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
20010 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
20011 | else | ||
20012 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
20013 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
20014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20015 | $as_echo "yes" >&6; } | ||
20016 | |||
20017 | fi | ||
20018 | |||
20019 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
20020 | |||
20021 | requirements_ecore="evil ${requirements_ecore}" | ||
20022 | requirements_ecore_evas="evil ${requirements_ecore_evas}" | ||
20023 | requirements_ecore_file="evil ${requirements_ecore_file}" | ||
20024 | requirements_ecore_imf="evil ${requirements_ecore_imf}" | ||
20025 | requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}" | ||
20026 | EFL_ECORE_BUILD="-DEFL_ECORE_BUILD" | ||
20027 | EFL_ECORE_CON_BUILD="-DEFL_ECORE_CON_BUILD" | ||
20028 | EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD" | ||
20029 | EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD" | ||
20030 | EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD" | ||
20031 | EFL_ECORE_IMF_EVAS_BUILD="-DEFL_ECORE_IMF_EVAS_BUILD" | ||
20032 | EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD" | ||
20033 | EFL_ECORE_INPUT_EVAS_BUILD="-DEFL_ECORE_INPUT_EVAS_BUILD" | ||
20034 | EFL_ECORE_IPC_BUILD="-DEFL_ECORE_IPC_BUILD" | ||
20035 | ;; | ||
20036 | esac | ||
20037 | |||
20038 | have_win32="" | ||
20039 | have_wince="" | ||
20040 | case "$host_os" in | ||
20041 | mingw32ce* | cegcc*) | ||
20042 | EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD" | ||
20043 | requirements_ecore_wince="evil ${requirements_ecore_wince}" | ||
20044 | have_wince="yes" | ||
20045 | ;; | ||
20046 | mingw*) | ||
20047 | EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD" | ||
20048 | EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD" | ||
20049 | requirements_ecore_win32="evil ${requirements_ecore_win32}" | ||
20050 | requirements_ecore_sdl="evil ${requirements_ecore_sdl}" | ||
20051 | have_win32="yes" | ||
20052 | ;; | ||
20053 | esac | ||
20054 | |||
20055 | have_ps3="" | ||
20056 | case "$host_vendor" in | ||
20057 | ps3*) | ||
20058 | have_ps3="yes" | ||
20059 | |||
20060 | pkg_failed=no | ||
20061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESCAPE" >&5 | ||
20062 | $as_echo_n "checking for ESCAPE... " >&6; } | ||
20063 | |||
20064 | if test -n "$ESCAPE_CFLAGS"; then | ||
20065 | pkg_cv_ESCAPE_CFLAGS="$ESCAPE_CFLAGS" | ||
20066 | elif test -n "$PKG_CONFIG"; then | ||
20067 | if test -n "$PKG_CONFIG" && \ | ||
20068 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"escape\""; } >&5 | ||
20069 | ($PKG_CONFIG --exists --print-errors "escape") 2>&5 | ||
20070 | ac_status=$? | ||
20071 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20072 | test $ac_status = 0; }; then | ||
20073 | pkg_cv_ESCAPE_CFLAGS=`$PKG_CONFIG --cflags "escape" 2>/dev/null` | ||
20074 | else | ||
20075 | pkg_failed=yes | ||
20076 | fi | ||
20077 | else | ||
20078 | pkg_failed=untried | ||
20079 | fi | ||
20080 | if test -n "$ESCAPE_LIBS"; then | ||
20081 | pkg_cv_ESCAPE_LIBS="$ESCAPE_LIBS" | ||
20082 | elif test -n "$PKG_CONFIG"; then | ||
20083 | if test -n "$PKG_CONFIG" && \ | ||
20084 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"escape\""; } >&5 | ||
20085 | ($PKG_CONFIG --exists --print-errors "escape") 2>&5 | ||
20086 | ac_status=$? | ||
20087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20088 | test $ac_status = 0; }; then | ||
20089 | pkg_cv_ESCAPE_LIBS=`$PKG_CONFIG --libs "escape" 2>/dev/null` | ||
20090 | else | ||
20091 | pkg_failed=yes | ||
20092 | fi | ||
20093 | else | ||
20094 | pkg_failed=untried | ||
20095 | fi | ||
20096 | |||
20097 | |||
20098 | |||
20099 | if test $pkg_failed = yes; then | ||
20100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20101 | $as_echo "no" >&6; } | ||
20102 | |||
20103 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20104 | _pkg_short_errors_supported=yes | ||
20105 | else | ||
20106 | _pkg_short_errors_supported=no | ||
20107 | fi | ||
20108 | if test $_pkg_short_errors_supported = yes; then | ||
20109 | ESCAPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "escape" 2>&1` | ||
20110 | else | ||
20111 | ESCAPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "escape" 2>&1` | ||
20112 | fi | ||
20113 | # Put the nasty error message in config.log where it belongs | ||
20114 | echo "$ESCAPE_PKG_ERRORS" >&5 | ||
20115 | |||
20116 | as_fn_error $? "Package requirements (escape) were not met: | ||
20117 | |||
20118 | $ESCAPE_PKG_ERRORS | ||
20119 | |||
20120 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
20121 | installed software in a non-standard prefix. | ||
20122 | |||
20123 | Alternatively, you may set the environment variables ESCAPE_CFLAGS | ||
20124 | and ESCAPE_LIBS to avoid the need to call pkg-config. | ||
20125 | See the pkg-config man page for more details." "$LINENO" 5 | ||
20126 | elif test $pkg_failed = untried; then | ||
20127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20128 | $as_echo "no" >&6; } | ||
20129 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
20130 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
20131 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
20132 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
20133 | path to pkg-config. | ||
20134 | |||
20135 | Alternatively, you may set the environment variables ESCAPE_CFLAGS | ||
20136 | and ESCAPE_LIBS to avoid the need to call pkg-config. | ||
20137 | See the pkg-config man page for more details. | ||
20138 | |||
20139 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
20140 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
20141 | else | ||
20142 | ESCAPE_CFLAGS=$pkg_cv_ESCAPE_CFLAGS | ||
20143 | ESCAPE_LIBS=$pkg_cv_ESCAPE_LIBS | ||
20144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20145 | $as_echo "yes" >&6; } | ||
20146 | |||
20147 | fi | ||
20148 | CFLAGS="$CFLAGS $ESCAPE_CFLAGS" | ||
20149 | |||
20150 | $as_echo "#define HAVE_ESCAPE 1" >>confdefs.h | ||
20151 | |||
20152 | EFL_ECORE_PSL1GHT_BUILD="-DEFL_ECORE_PSL1GHT_BUILD" | ||
20153 | requirements_ecore="escape ${requirements_ecore}" | ||
20154 | requirements_ecore_evas="escape ${requirements_ecore_evas}" | ||
20155 | requirements_ecore_file="escape ${requirements_ecore_file}" | ||
20156 | requirements_ecore_imf="escape ${requirements_ecore_imf}" | ||
20157 | requirements_ecore_imf_evas="escape ${requirements_ecore_imf_evas}" | ||
20158 | requirements_ecore_sdl="escape ${requirements_ecore_sdl}" | ||
20159 | want_ecore_psl1ght="yes" | ||
20160 | want_ecore_evas_psl1ght="yes" | ||
20161 | ;; | ||
20162 | esac | ||
20163 | |||
20164 | |||
20165 | |||
20166 | |||
20167 | |||
20168 | |||
20169 | |||
20170 | |||
20171 | |||
20172 | |||
20173 | |||
20174 | |||
20175 | |||
20176 | |||
20177 | |||
20178 | if test "x${have_wince}" = "xyes"; then | ||
20179 | ECORE_HAVE_WINCE_TRUE= | ||
20180 | ECORE_HAVE_WINCE_FALSE='#' | ||
20181 | else | ||
20182 | ECORE_HAVE_WINCE_TRUE='#' | ||
20183 | ECORE_HAVE_WINCE_FALSE= | ||
20184 | fi | ||
20185 | |||
20186 | if test "x${have_win32}" = "xyes"; then | ||
20187 | ECORE_HAVE_WIN32_TRUE= | ||
20188 | ECORE_HAVE_WIN32_FALSE='#' | ||
20189 | else | ||
20190 | ECORE_HAVE_WIN32_TRUE='#' | ||
20191 | ECORE_HAVE_WIN32_FALSE= | ||
20192 | fi | ||
20193 | |||
20194 | if test "x${have_ps3}" = "xyes"; then | ||
20195 | ECORE_HAVE_PS3_TRUE= | ||
20196 | ECORE_HAVE_PS3_FALSE='#' | ||
20197 | else | ||
20198 | ECORE_HAVE_PS3_TRUE='#' | ||
20199 | ECORE_HAVE_PS3_FALSE= | ||
20200 | fi | ||
20201 | |||
20202 | |||
20203 | WIN32_LIBS="" | ||
20204 | case "$host_os" in | ||
20205 | mingw32ce* | cegcc*) | ||
20206 | WIN32_LIBS="-lws2" | ||
20207 | dlopen_libs="-ldl" | ||
20208 | ;; | ||
20209 | mingw*) | ||
20210 | WIN32_LIBS="-lws2_32" | ||
20211 | dlopen_libs="-ldl" | ||
20212 | ;; | ||
20213 | *) | ||
20214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 | ||
20215 | $as_echo_n "checking for dlopen in -lc... " >&6; } | ||
20216 | if test "${ac_cv_lib_c_dlopen+set}" = set; then : | ||
20217 | $as_echo_n "(cached) " >&6 | ||
20218 | else | ||
20219 | ac_check_lib_save_LIBS=$LIBS | ||
20220 | LIBS="-lc $LIBS" | ||
20221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20222 | /* end confdefs.h. */ | ||
20223 | |||
20224 | /* Override any GCC internal prototype to avoid an error. | ||
20225 | Use char because int might match the return type of a GCC | ||
20226 | builtin and then its argument prototype would still apply. */ | ||
20227 | #ifdef __cplusplus | ||
20228 | extern "C" | ||
20229 | #endif | ||
20230 | char dlopen (); | ||
20231 | int | ||
20232 | main () | ||
20233 | { | ||
20234 | return dlopen (); | ||
20235 | ; | ||
20236 | return 0; | ||
20237 | } | ||
20238 | _ACEOF | ||
20239 | if ac_fn_c_try_link "$LINENO"; then : | ||
20240 | ac_cv_lib_c_dlopen=yes | ||
20241 | else | ||
20242 | ac_cv_lib_c_dlopen=no | ||
20243 | fi | ||
20244 | rm -f core conftest.err conftest.$ac_objext \ | ||
20245 | conftest$ac_exeext conftest.$ac_ext | ||
20246 | LIBS=$ac_check_lib_save_LIBS | ||
20247 | fi | ||
20248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 | ||
20249 | $as_echo "$ac_cv_lib_c_dlopen" >&6; } | ||
20250 | if test "x$ac_cv_lib_c_dlopen" = x""yes; then : | ||
20251 | cat >>confdefs.h <<_ACEOF | ||
20252 | #define HAVE_LIBC 1 | ||
20253 | _ACEOF | ||
20254 | |||
20255 | LIBS="-lc $LIBS" | ||
20256 | |||
20257 | else | ||
20258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
20259 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
20260 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
20261 | $as_echo_n "(cached) " >&6 | ||
20262 | else | ||
20263 | ac_check_lib_save_LIBS=$LIBS | ||
20264 | LIBS="-ldl $LIBS" | ||
20265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20266 | /* end confdefs.h. */ | ||
20267 | |||
20268 | /* Override any GCC internal prototype to avoid an error. | ||
20269 | Use char because int might match the return type of a GCC | ||
20270 | builtin and then its argument prototype would still apply. */ | ||
20271 | #ifdef __cplusplus | ||
20272 | extern "C" | ||
20273 | #endif | ||
20274 | char dlopen (); | ||
20275 | int | ||
20276 | main () | ||
20277 | { | ||
20278 | return dlopen (); | ||
20279 | ; | ||
20280 | return 0; | ||
20281 | } | ||
20282 | _ACEOF | ||
20283 | if ac_fn_c_try_link "$LINENO"; then : | ||
20284 | ac_cv_lib_dl_dlopen=yes | ||
20285 | else | ||
20286 | ac_cv_lib_dl_dlopen=no | ||
20287 | fi | ||
20288 | rm -f core conftest.err conftest.$ac_objext \ | ||
20289 | conftest$ac_exeext conftest.$ac_ext | ||
20290 | LIBS=$ac_check_lib_save_LIBS | ||
20291 | fi | ||
20292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
20293 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
20294 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
20295 | dlopen_libs=-ldl | ||
20296 | fi | ||
20297 | |||
20298 | |||
20299 | fi | ||
20300 | |||
20301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5 | ||
20302 | $as_echo_n "checking for clock_gettime in -lc... " >&6; } | ||
20303 | if test "${ac_cv_lib_c_clock_gettime+set}" = set; then : | ||
20304 | $as_echo_n "(cached) " >&6 | ||
20305 | else | ||
20306 | ac_check_lib_save_LIBS=$LIBS | ||
20307 | LIBS="-lc $LIBS" | ||
20308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20309 | /* end confdefs.h. */ | ||
20310 | |||
20311 | /* Override any GCC internal prototype to avoid an error. | ||
20312 | Use char because int might match the return type of a GCC | ||
20313 | builtin and then its argument prototype would still apply. */ | ||
20314 | #ifdef __cplusplus | ||
20315 | extern "C" | ||
20316 | #endif | ||
20317 | char clock_gettime (); | ||
20318 | int | ||
20319 | main () | ||
20320 | { | ||
20321 | return clock_gettime (); | ||
20322 | ; | ||
20323 | return 0; | ||
20324 | } | ||
20325 | _ACEOF | ||
20326 | if ac_fn_c_try_link "$LINENO"; then : | ||
20327 | ac_cv_lib_c_clock_gettime=yes | ||
20328 | else | ||
20329 | ac_cv_lib_c_clock_gettime=no | ||
20330 | fi | ||
20331 | rm -f core conftest.err conftest.$ac_objext \ | ||
20332 | conftest$ac_exeext conftest.$ac_ext | ||
20333 | LIBS=$ac_check_lib_save_LIBS | ||
20334 | fi | ||
20335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5 | ||
20336 | $as_echo "$ac_cv_lib_c_clock_gettime" >&6; } | ||
20337 | if test "x$ac_cv_lib_c_clock_gettime" = x""yes; then : | ||
20338 | |||
20339 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
20340 | |||
20341 | else | ||
20342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | ||
20343 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | ||
20344 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | ||
20345 | $as_echo_n "(cached) " >&6 | ||
20346 | else | ||
20347 | ac_check_lib_save_LIBS=$LIBS | ||
20348 | LIBS="-lrt $LIBS" | ||
20349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20350 | /* end confdefs.h. */ | ||
20351 | |||
20352 | /* Override any GCC internal prototype to avoid an error. | ||
20353 | Use char because int might match the return type of a GCC | ||
20354 | builtin and then its argument prototype would still apply. */ | ||
20355 | #ifdef __cplusplus | ||
20356 | extern "C" | ||
20357 | #endif | ||
20358 | char clock_gettime (); | ||
20359 | int | ||
20360 | main () | ||
20361 | { | ||
20362 | return clock_gettime (); | ||
20363 | ; | ||
20364 | return 0; | ||
20365 | } | ||
20366 | _ACEOF | ||
20367 | if ac_fn_c_try_link "$LINENO"; then : | ||
20368 | ac_cv_lib_rt_clock_gettime=yes | ||
20369 | else | ||
20370 | ac_cv_lib_rt_clock_gettime=no | ||
20371 | fi | ||
20372 | rm -f core conftest.err conftest.$ac_objext \ | ||
20373 | conftest$ac_exeext conftest.$ac_ext | ||
20374 | LIBS=$ac_check_lib_save_LIBS | ||
20375 | fi | ||
20376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | ||
20377 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | ||
20378 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | ||
20379 | |||
20380 | rt_libs=-lrt | ||
20381 | |||
20382 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
20383 | |||
20384 | |||
20385 | fi | ||
20386 | |||
20387 | |||
20388 | fi | ||
20389 | |||
20390 | ;; | ||
20391 | esac | ||
20392 | |||
20393 | |||
20394 | |||
20395 | |||
20396 | # Eina library | ||
20397 | |||
20398 | |||
20399 | pkg_failed=no | ||
20400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EINA" >&5 | ||
20401 | $as_echo_n "checking for EINA... " >&6; } | ||
20402 | |||
20403 | if test -n "$EINA_CFLAGS"; then | ||
20404 | pkg_cv_EINA_CFLAGS="$EINA_CFLAGS" | ||
20405 | elif test -n "$PKG_CONFIG"; then | ||
20406 | if test -n "$PKG_CONFIG" && \ | ||
20407 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.1.0\""; } >&5 | ||
20408 | ($PKG_CONFIG --exists --print-errors "eina >= 1.1.0") 2>&5 | ||
20409 | ac_status=$? | ||
20410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20411 | test $ac_status = 0; }; then | ||
20412 | pkg_cv_EINA_CFLAGS=`$PKG_CONFIG --cflags "eina >= 1.1.0" 2>/dev/null` | ||
20413 | else | ||
20414 | pkg_failed=yes | ||
20415 | fi | ||
20416 | else | ||
20417 | pkg_failed=untried | ||
20418 | fi | ||
20419 | if test -n "$EINA_LIBS"; then | ||
20420 | pkg_cv_EINA_LIBS="$EINA_LIBS" | ||
20421 | elif test -n "$PKG_CONFIG"; then | ||
20422 | if test -n "$PKG_CONFIG" && \ | ||
20423 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.1.0\""; } >&5 | ||
20424 | ($PKG_CONFIG --exists --print-errors "eina >= 1.1.0") 2>&5 | ||
20425 | ac_status=$? | ||
20426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20427 | test $ac_status = 0; }; then | ||
20428 | pkg_cv_EINA_LIBS=`$PKG_CONFIG --libs "eina >= 1.1.0" 2>/dev/null` | ||
20429 | else | ||
20430 | pkg_failed=yes | ||
20431 | fi | ||
20432 | else | ||
20433 | pkg_failed=untried | ||
20434 | fi | ||
20435 | |||
20436 | |||
20437 | |||
20438 | if test $pkg_failed = yes; then | ||
20439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20440 | $as_echo "no" >&6; } | ||
20441 | |||
20442 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20443 | _pkg_short_errors_supported=yes | ||
20444 | else | ||
20445 | _pkg_short_errors_supported=no | ||
20446 | fi | ||
20447 | if test $_pkg_short_errors_supported = yes; then | ||
20448 | EINA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eina >= 1.1.0" 2>&1` | ||
20449 | else | ||
20450 | EINA_PKG_ERRORS=`$PKG_CONFIG --print-errors "eina >= 1.1.0" 2>&1` | ||
20451 | fi | ||
20452 | # Put the nasty error message in config.log where it belongs | ||
20453 | echo "$EINA_PKG_ERRORS" >&5 | ||
20454 | |||
20455 | as_fn_error $? "Package requirements (eina >= 1.1.0) were not met: | ||
20456 | |||
20457 | $EINA_PKG_ERRORS | ||
20458 | |||
20459 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
20460 | installed software in a non-standard prefix. | ||
20461 | |||
20462 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
20463 | and EINA_LIBS to avoid the need to call pkg-config. | ||
20464 | See the pkg-config man page for more details." "$LINENO" 5 | ||
20465 | elif test $pkg_failed = untried; then | ||
20466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20467 | $as_echo "no" >&6; } | ||
20468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
20469 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
20470 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
20471 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
20472 | path to pkg-config. | ||
20473 | |||
20474 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
20475 | and EINA_LIBS to avoid the need to call pkg-config. | ||
20476 | See the pkg-config man page for more details. | ||
20477 | |||
20478 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
20479 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
20480 | else | ||
20481 | EINA_CFLAGS=$pkg_cv_EINA_CFLAGS | ||
20482 | EINA_LIBS=$pkg_cv_EINA_LIBS | ||
20483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20484 | $as_echo "yes" >&6; } | ||
20485 | |||
20486 | fi | ||
20487 | #FIXME check all the requirements when the eina move will be finished | ||
20488 | requirements_ecore="eina >= 1.1.0 ${requirements_ecore}" | ||
20489 | requirements_ecore_con="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_con}" | ||
20490 | #requirements_ecore_config="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_config}" | ||
20491 | requirements_ecore_directfb="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_directfb}" | ||
20492 | requirements_ecore_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_evas}" | ||
20493 | requirements_ecore_fb="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_fb}" | ||
20494 | requirements_ecore_file="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_file}" | ||
20495 | requirements_ecore_imf="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_imf}" | ||
20496 | requirements_ecore_imf_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_imf_evas}" | ||
20497 | requirements_ecore_input="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_input}" | ||
20498 | requirements_ecore_input_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_input_evas}" | ||
20499 | requirements_ecore_ipc="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_ipc}" | ||
20500 | requirements_ecore_cocoa="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_cocoa}" | ||
20501 | requirements_ecore_sdl="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_sdl}" | ||
20502 | requirements_ecore_psl1ght="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_sdl}" | ||
20503 | requirements_ecore_win32="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_win32}" | ||
20504 | requirements_ecore_wince="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_wince}" | ||
20505 | requirements_ecore_x="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_x}" | ||
20506 | |||
20507 | |||
20508 | # glib support (main loop integration) | ||
20509 | # Check whether --enable-glib was given. | ||
20510 | if test "${enable_glib+set}" = set; then : | ||
20511 | enableval=$enable_glib; want_glib=$enableval | ||
20512 | fi | ||
20513 | |||
20514 | |||
20515 | if test "x$want_glib" != "xno"; then | ||
20516 | |||
20517 | pkg_failed=no | ||
20518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 | ||
20519 | $as_echo_n "checking for GLIB... " >&6; } | ||
20520 | |||
20521 | if test -n "$GLIB_CFLAGS"; then | ||
20522 | pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" | ||
20523 | elif test -n "$PKG_CONFIG"; then | ||
20524 | if test -n "$PKG_CONFIG" && \ | ||
20525 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 | ||
20526 | ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 | ||
20527 | ac_status=$? | ||
20528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20529 | test $ac_status = 0; }; then | ||
20530 | pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null` | ||
20531 | else | ||
20532 | pkg_failed=yes | ||
20533 | fi | ||
20534 | else | ||
20535 | pkg_failed=untried | ||
20536 | fi | ||
20537 | if test -n "$GLIB_LIBS"; then | ||
20538 | pkg_cv_GLIB_LIBS="$GLIB_LIBS" | ||
20539 | elif test -n "$PKG_CONFIG"; then | ||
20540 | if test -n "$PKG_CONFIG" && \ | ||
20541 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 | ||
20542 | ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 | ||
20543 | ac_status=$? | ||
20544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20545 | test $ac_status = 0; }; then | ||
20546 | pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null` | ||
20547 | else | ||
20548 | pkg_failed=yes | ||
20549 | fi | ||
20550 | else | ||
20551 | pkg_failed=untried | ||
20552 | fi | ||
20553 | |||
20554 | |||
20555 | |||
20556 | if test $pkg_failed = yes; then | ||
20557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20558 | $as_echo "no" >&6; } | ||
20559 | |||
20560 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20561 | _pkg_short_errors_supported=yes | ||
20562 | else | ||
20563 | _pkg_short_errors_supported=no | ||
20564 | fi | ||
20565 | if test $_pkg_short_errors_supported = yes; then | ||
20566 | GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1` | ||
20567 | else | ||
20568 | GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1` | ||
20569 | fi | ||
20570 | # Put the nasty error message in config.log where it belongs | ||
20571 | echo "$GLIB_PKG_ERRORS" >&5 | ||
20572 | |||
20573 | have_glib="no" | ||
20574 | elif test $pkg_failed = untried; then | ||
20575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20576 | $as_echo "no" >&6; } | ||
20577 | have_glib="no" | ||
20578 | else | ||
20579 | GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS | ||
20580 | GLIB_LIBS=$pkg_cv_GLIB_LIBS | ||
20581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20582 | $as_echo "yes" >&6; } | ||
20583 | have_glib="yes" | ||
20584 | fi | ||
20585 | else | ||
20586 | have_glib="no" | ||
20587 | fi | ||
20588 | if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then | ||
20589 | as_fn_error $? "GLib support requested, but no GLib found by pkg-config." "$LINENO" 5 | ||
20590 | elif test "x$have_glib" = "xyes"; then | ||
20591 | |||
20592 | $as_echo "#define HAVE_GLIB 1" >>confdefs.h | ||
20593 | |||
20594 | requirements_ecore="glib-2.0 ${requirements_ecore}" | ||
20595 | fi | ||
20596 | |||
20597 | |||
20598 | # SDL library (ecore_sdl) | ||
20599 | |||
20600 | have_sdl="no" | ||
20601 | |||
20602 | pkg_failed=no | ||
20603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 | ||
20604 | $as_echo_n "checking for SDL... " >&6; } | ||
20605 | |||
20606 | if test -n "$SDL_CFLAGS"; then | ||
20607 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | ||
20608 | elif test -n "$PKG_CONFIG"; then | ||
20609 | if test -n "$PKG_CONFIG" && \ | ||
20610 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20611 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20612 | ac_status=$? | ||
20613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20614 | test $ac_status = 0; }; then | ||
20615 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null` | ||
20616 | else | ||
20617 | pkg_failed=yes | ||
20618 | fi | ||
20619 | else | ||
20620 | pkg_failed=untried | ||
20621 | fi | ||
20622 | if test -n "$SDL_LIBS"; then | ||
20623 | pkg_cv_SDL_LIBS="$SDL_LIBS" | ||
20624 | elif test -n "$PKG_CONFIG"; then | ||
20625 | if test -n "$PKG_CONFIG" && \ | ||
20626 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20627 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20628 | ac_status=$? | ||
20629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20630 | test $ac_status = 0; }; then | ||
20631 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null` | ||
20632 | else | ||
20633 | pkg_failed=yes | ||
20634 | fi | ||
20635 | else | ||
20636 | pkg_failed=untried | ||
20637 | fi | ||
20638 | |||
20639 | |||
20640 | |||
20641 | if test $pkg_failed = yes; then | ||
20642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20643 | $as_echo "no" >&6; } | ||
20644 | |||
20645 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20646 | _pkg_short_errors_supported=yes | ||
20647 | else | ||
20648 | _pkg_short_errors_supported=no | ||
20649 | fi | ||
20650 | if test $_pkg_short_errors_supported = yes; then | ||
20651 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1` | ||
20652 | else | ||
20653 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1` | ||
20654 | fi | ||
20655 | # Put the nasty error message in config.log where it belongs | ||
20656 | echo "$SDL_PKG_ERRORS" >&5 | ||
20657 | |||
20658 | have_sdl="no" | ||
20659 | elif test $pkg_failed = untried; then | ||
20660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20661 | $as_echo "no" >&6; } | ||
20662 | have_sdl="no" | ||
20663 | else | ||
20664 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | ||
20665 | SDL_LIBS=$pkg_cv_SDL_LIBS | ||
20666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20667 | $as_echo "yes" >&6; } | ||
20668 | have_sdl="yes" | ||
20669 | fi | ||
20670 | if test "x${have_sdl}" != "xyes" ; then | ||
20671 | SDL_CONFIG="sdl-config" | ||
20672 | |||
20673 | # Check whether --with-sdl-config was given. | ||
20674 | if test "${with_sdl_config+set}" = set; then : | ||
20675 | withval=$with_sdl_config; | ||
20676 | SDL_CONFIG=$withval | ||
20677 | { $as_echo "$as_me:${as_lineno-$LINENO}: using ${SDL_CONFIG} for sdl-config" >&5 | ||
20678 | $as_echo "$as_me: using ${SDL_CONFIG} for sdl-config" >&6;} | ||
20679 | |||
20680 | fi | ||
20681 | |||
20682 | |||
20683 | # Extract the first word of ""sdl-config"", so it can be a program name with args. | ||
20684 | set dummy "sdl-config"; ac_word=$2 | ||
20685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
20686 | $as_echo_n "checking for $ac_word... " >&6; } | ||
20687 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then : | ||
20688 | $as_echo_n "(cached) " >&6 | ||
20689 | else | ||
20690 | case $SDL_CONFIG in | ||
20691 | [\\/]* | ?:[\\/]*) | ||
20692 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | ||
20693 | ;; | ||
20694 | *) | ||
20695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20696 | for as_dir in $PATH | ||
20697 | do | ||
20698 | IFS=$as_save_IFS | ||
20699 | test -z "$as_dir" && as_dir=. | ||
20700 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20702 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
20703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20704 | break 2 | ||
20705 | fi | ||
20706 | done | ||
20707 | done | ||
20708 | IFS=$as_save_IFS | ||
20709 | |||
20710 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="""" | ||
20711 | ;; | ||
20712 | esac | ||
20713 | fi | ||
20714 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | ||
20715 | if test -n "$SDL_CONFIG"; then | ||
20716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 | ||
20717 | $as_echo "$SDL_CONFIG" >&6; } | ||
20718 | else | ||
20719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20720 | $as_echo "no" >&6; } | ||
20721 | fi | ||
20722 | |||
20723 | |||
20724 | |||
20725 | if test -n "$SDL_CONFIG" ; then | ||
20726 | SDL_CFLAGS=`$SDL_CONFIG --cflags` | ||
20727 | SDL_LIBS=`$SDL_CONFIG --libs` | ||
20728 | |||
20729 | |||
20730 | have_sdl="yes" | ||
20731 | fi | ||
20732 | fi | ||
20733 | |||
20734 | if test "x${have_sdl}" = "xyes" ; then | ||
20735 | if test -n "$PKG_CONFIG" && \ | ||
20736 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.3.0\""; } >&5 | ||
20737 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.3.0") 2>&5 | ||
20738 | ac_status=$? | ||
20739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20740 | test $ac_status = 0; }; then | ||
20741 | |||
20742 | $as_echo "#define BUILD_ECORE_EVAS_SDL_130 1" >>confdefs.h | ||
20743 | |||
20744 | fi | ||
20745 | fi | ||
20746 | |||
20747 | |||
20748 | # DirectFB library (ecore_directfb) | ||
20749 | |||
20750 | |||
20751 | pkg_failed=no | ||
20752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5 | ||
20753 | $as_echo_n "checking for DIRECTFB... " >&6; } | ||
20754 | |||
20755 | if test -n "$DIRECTFB_CFLAGS"; then | ||
20756 | pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" | ||
20757 | elif test -n "$PKG_CONFIG"; then | ||
20758 | if test -n "$PKG_CONFIG" && \ | ||
20759 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5 | ||
20760 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5 | ||
20761 | ac_status=$? | ||
20762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20763 | test $ac_status = 0; }; then | ||
20764 | pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.16" 2>/dev/null` | ||
20765 | else | ||
20766 | pkg_failed=yes | ||
20767 | fi | ||
20768 | else | ||
20769 | pkg_failed=untried | ||
20770 | fi | ||
20771 | if test -n "$DIRECTFB_LIBS"; then | ||
20772 | pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" | ||
20773 | elif test -n "$PKG_CONFIG"; then | ||
20774 | if test -n "$PKG_CONFIG" && \ | ||
20775 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5 | ||
20776 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5 | ||
20777 | ac_status=$? | ||
20778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20779 | test $ac_status = 0; }; then | ||
20780 | pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.16" 2>/dev/null` | ||
20781 | else | ||
20782 | pkg_failed=yes | ||
20783 | fi | ||
20784 | else | ||
20785 | pkg_failed=untried | ||
20786 | fi | ||
20787 | |||
20788 | |||
20789 | |||
20790 | if test $pkg_failed = yes; then | ||
20791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20792 | $as_echo "no" >&6; } | ||
20793 | |||
20794 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20795 | _pkg_short_errors_supported=yes | ||
20796 | else | ||
20797 | _pkg_short_errors_supported=no | ||
20798 | fi | ||
20799 | if test $_pkg_short_errors_supported = yes; then | ||
20800 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 0.9.16" 2>&1` | ||
20801 | else | ||
20802 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 0.9.16" 2>&1` | ||
20803 | fi | ||
20804 | # Put the nasty error message in config.log where it belongs | ||
20805 | echo "$DIRECTFB_PKG_ERRORS" >&5 | ||
20806 | |||
20807 | have_directfb="no" | ||
20808 | elif test $pkg_failed = untried; then | ||
20809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20810 | $as_echo "no" >&6; } | ||
20811 | have_directfb="no" | ||
20812 | else | ||
20813 | DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS | ||
20814 | DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS | ||
20815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20816 | $as_echo "yes" >&6; } | ||
20817 | have_directfb="yes" | ||
20818 | fi | ||
20819 | |||
20820 | |||
20821 | # Eet library (ecore_config) | ||
20822 | |||
20823 | #PKG_CHECK_MODULES([EET], | ||
20824 | # [eet >= 1.4.0], | ||
20825 | # [have_eet="yes"], | ||
20826 | # [have_eet="no"]) | ||
20827 | |||
20828 | |||
20829 | # Xlib and XCB (ecore_x) | ||
20830 | |||
20831 | have_x="no" | ||
20832 | have_ecore_x="no" | ||
20833 | have_ecore_x_xlib="no" | ||
20834 | have_ecore_x_xcb="no" | ||
20835 | |||
20836 | x_dir=""; | ||
20837 | x_includes=""; | ||
20838 | x_cflags=""; | ||
20839 | x_libs=""; | ||
20840 | |||
20841 | ecore_x_libs_private="" | ||
20842 | |||
20843 | # Check whether --enable-ecore-x-composite was given. | ||
20844 | if test "${enable_ecore_x_composite+set}" = set; then : | ||
20845 | enableval=$enable_ecore_x_composite; want_ecore_x_composite=$enableval | ||
20846 | fi | ||
20847 | |||
20848 | |||
20849 | # Check whether --enable-ecore-x-damage was given. | ||
20850 | if test "${enable_ecore_x_damage+set}" = set; then : | ||
20851 | enableval=$enable_ecore_x_damage; want_ecore_x_damage=$enableval | ||
20852 | fi | ||
20853 | |||
20854 | |||
20855 | # Check whether --enable-ecore-x-dpms was given. | ||
20856 | if test "${enable_ecore_x_dpms+set}" = set; then : | ||
20857 | enableval=$enable_ecore_x_dpms; want_ecore_x_dpms=$enableval | ||
20858 | fi | ||
20859 | |||
20860 | |||
20861 | # Check whether --enable-ecore-x-randr was given. | ||
20862 | if test "${enable_ecore_x_randr+set}" = set; then : | ||
20863 | enableval=$enable_ecore_x_randr; want_ecore_x_randr=$enableval | ||
20864 | fi | ||
20865 | |||
20866 | |||
20867 | # Check whether --enable-ecore-x-render was given. | ||
20868 | if test "${enable_ecore_x_render+set}" = set; then : | ||
20869 | enableval=$enable_ecore_x_render; want_ecore_x_render=$enableval | ||
20870 | fi | ||
20871 | |||
20872 | |||
20873 | # Check whether --enable-ecore-x-screensaver was given. | ||
20874 | if test "${enable_ecore_x_screensaver+set}" = set; then : | ||
20875 | enableval=$enable_ecore_x_screensaver; want_ecore_x_screensaver=$enableval | ||
20876 | fi | ||
20877 | |||
20878 | |||
20879 | # Check whether --enable-ecore-x-shape was given. | ||
20880 | if test "${enable_ecore_x_shape+set}" = set; then : | ||
20881 | enableval=$enable_ecore_x_shape; want_ecore_x_shape=$enableval | ||
20882 | fi | ||
20883 | |||
20884 | |||
20885 | # Check whether --enable-ecore-x-gesture was given. | ||
20886 | if test "${enable_ecore_x_gesture+set}" = set; then : | ||
20887 | enableval=$enable_ecore_x_gesture; want_ecore_x_gesture=$enableval | ||
20888 | fi | ||
20889 | |||
20890 | |||
20891 | # Check whether --enable-ecore-x-sync was given. | ||
20892 | if test "${enable_ecore_x_sync+set}" = set; then : | ||
20893 | enableval=$enable_ecore_x_sync; want_ecore_x_sync=$enableval | ||
20894 | fi | ||
20895 | |||
20896 | |||
20897 | # Check whether --enable-ecore-x-xfixes was given. | ||
20898 | if test "${enable_ecore_x_xfixes+set}" = set; then : | ||
20899 | enableval=$enable_ecore_x_xfixes; want_ecore_x_xfixes=$enableval | ||
20900 | fi | ||
20901 | |||
20902 | |||
20903 | # Check whether --enable-ecore-x-xinerama was given. | ||
20904 | if test "${enable_ecore_x_xinerama+set}" = set; then : | ||
20905 | enableval=$enable_ecore_x_xinerama; want_ecore_x_xinerama=$enableval | ||
20906 | fi | ||
20907 | |||
20908 | |||
20909 | # Check whether --enable-ecore-x-xprint was given. | ||
20910 | if test "${enable_ecore_x_xprint+set}" = set; then : | ||
20911 | enableval=$enable_ecore_x_xprint; want_ecore_x_xprint=$enableval | ||
20912 | fi | ||
20913 | |||
20914 | |||
20915 | # Check whether --enable-ecore-x-xtest was given. | ||
20916 | if test "${enable_ecore_x_xtest+set}" = set; then : | ||
20917 | enableval=$enable_ecore_x_xtest; want_ecore_x_xtest=$enableval | ||
20918 | fi | ||
20919 | |||
20920 | |||
20921 | # Check whether --enable-ecore-x-cursor was given. | ||
20922 | if test "${enable_ecore_x_cursor+set}" = set; then : | ||
20923 | enableval=$enable_ecore_x_cursor; want_ecore_x_cursor=$enableval | ||
20924 | fi | ||
20925 | |||
20926 | |||
20927 | # Check whether --enable-ecore-x-input was given. | ||
20928 | if test "${enable_ecore_x_input+set}" = set; then : | ||
20929 | enableval=$enable_ecore_x_input; want_ecore_x_input=$enableval | ||
20930 | fi | ||
20931 | |||
20932 | |||
20933 | # Check whether --enable-ecore-x-dri was given. | ||
20934 | if test "${enable_ecore_x_dri+set}" = set; then : | ||
20935 | enableval=$enable_ecore_x_dri; want_ecore_x_dri=$enableval | ||
20936 | fi | ||
20937 | |||
20938 | |||
20939 | # Check whether --enable-ecore-x-xcb was given. | ||
20940 | if test "${enable_ecore_x_xcb+set}" = set; then : | ||
20941 | enableval=$enable_ecore_x_xcb; want_ecore_x_xcb=$enableval | ||
20942 | fi | ||
20943 | |||
20944 | |||
20945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_x with XCB backend is to be built" >&5 | ||
20946 | $as_echo_n "checking whether ecore_x with XCB backend is to be built... " >&6; } | ||
20947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ecore_x_xcb" >&5 | ||
20948 | $as_echo "$want_ecore_x_xcb" >&6; } | ||
20949 | |||
20950 | if test "x$want_ecore_x_xcb" = "xyes" ; then | ||
20951 | |||
20952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 | ||
20953 | $as_echo_n "checking keysym definitions... " >&6; } | ||
20954 | KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 | ||
20955 | FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" | ||
20956 | for i in $FILES; do | ||
20957 | if test -f "$KEYSYMDEFDIR/$i"; then | ||
20958 | KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" | ||
20959 | elif test "x$i" = "xkeysymdef.h"; then | ||
20960 | as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 | ||
20961 | fi | ||
20962 | done | ||
20963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 | ||
20964 | $as_echo "$KEYSYMDEFS" >&6; } | ||
20965 | |||
20966 | |||
20967 | have_iconv="no" | ||
20968 | |||
20969 | # Check whether --with-iconv-link was given. | ||
20970 | if test "${with_iconv_link+set}" = set; then : | ||
20971 | withval=$with_iconv_link; | ||
20972 | LIBS="$withval $LIBS" | ||
20973 | have_iconv="yes" | ||
20974 | |||
20975 | fi | ||
20976 | |||
20977 | |||
20978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit iconv link options" >&5 | ||
20979 | $as_echo_n "checking for explicit iconv link options... " >&6; } | ||
20980 | if test "x${iconv_libs}" = "x" ; then | ||
20981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no explicit iconv link option" >&5 | ||
20982 | $as_echo "no explicit iconv link option" >&6; } | ||
20983 | else | ||
20984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_libs" >&5 | ||
20985 | $as_echo "$iconv_libs" >&6; } | ||
20986 | fi | ||
20987 | |||
20988 | if test "x${have_iconv}" = "xno" ; then | ||
20989 | for ac_header in iconv.h | ||
20990 | do : | ||
20991 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | ||
20992 | if test "x$ac_cv_header_iconv_h" = x""yes; then : | ||
20993 | cat >>confdefs.h <<_ACEOF | ||
20994 | #define HAVE_ICONV_H 1 | ||
20995 | _ACEOF | ||
20996 | have_iconv="yes" | ||
20997 | fi | ||
20998 | |||
20999 | done | ||
21000 | |||
21001 | |||
21002 | if test "x${have_iconv}" = "xyes" ; then | ||
21003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libc" >&5 | ||
21004 | $as_echo_n "checking whether iconv() is in libc... " >&6; } | ||
21005 | |||
21006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21007 | /* end confdefs.h. */ | ||
21008 | |||
21009 | #include <stdlib.h> | ||
21010 | #include <iconv.h> | ||
21011 | |||
21012 | int | ||
21013 | main () | ||
21014 | { | ||
21015 | |||
21016 | iconv_t ic; | ||
21017 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
21018 | |||
21019 | ; | ||
21020 | return 0; | ||
21021 | } | ||
21022 | _ACEOF | ||
21023 | if ac_fn_c_try_link "$LINENO"; then : | ||
21024 | have_iconv="yes" | ||
21025 | else | ||
21026 | have_iconv="no" | ||
21027 | fi | ||
21028 | rm -f core conftest.err conftest.$ac_objext \ | ||
21029 | conftest$ac_exeext conftest.$ac_ext | ||
21030 | |||
21031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
21032 | $as_echo "${have_iconv}" >&6; } | ||
21033 | fi | ||
21034 | |||
21035 | if test "x${have_iconv}" = "xno" ; then | ||
21036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libiconv.a" >&5 | ||
21037 | $as_echo_n "checking whether iconv() is in libiconv.a... " >&6; } | ||
21038 | |||
21039 | LIBS_save="${LIBS}" | ||
21040 | LIBS="-liconv $LIBS" | ||
21041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21042 | /* end confdefs.h. */ | ||
21043 | |||
21044 | #include <stdlib.h> | ||
21045 | #include <iconv.h> | ||
21046 | |||
21047 | int | ||
21048 | main () | ||
21049 | { | ||
21050 | |||
21051 | iconv_t ic; | ||
21052 | size_t count; | ||
21053 | count = iconv(ic, NULL, NULL, NULL, NULL); | ||
21054 | |||
21055 | ; | ||
21056 | return 0; | ||
21057 | } | ||
21058 | _ACEOF | ||
21059 | if ac_fn_c_try_link "$LINENO"; then : | ||
21060 | have_iconv="yes" | ||
21061 | else | ||
21062 | |||
21063 | have_iconv="no" | ||
21064 | LIBS=${LIBS_save} | ||
21065 | |||
21066 | fi | ||
21067 | rm -f core conftest.err conftest.$ac_objext \ | ||
21068 | conftest$ac_exeext conftest.$ac_ext | ||
21069 | |||
21070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
21071 | $as_echo "${have_iconv}" >&6; } | ||
21072 | fi | ||
21073 | |||
21074 | if test "x${have_iconv}" = "xno" ; then | ||
21075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libiconv_plug.a" >&5 | ||
21076 | $as_echo_n "checking whether iconv() is in libiconv_plug.a... " >&6; } | ||
21077 | |||
21078 | LIBS_save="${LIBS}" | ||
21079 | LIBS="-liconv_plug $LIBS" | ||
21080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21081 | /* end confdefs.h. */ | ||
21082 | |||
21083 | #include <stdlib.h> | ||
21084 | #include <iconv.h> | ||
21085 | |||
21086 | int | ||
21087 | main () | ||
21088 | { | ||
21089 | |||
21090 | iconv_t ic; | ||
21091 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
21092 | |||
21093 | ; | ||
21094 | return 0; | ||
21095 | } | ||
21096 | _ACEOF | ||
21097 | if ac_fn_c_try_link "$LINENO"; then : | ||
21098 | have_iconv="yes" | ||
21099 | else | ||
21100 | |||
21101 | have_iconv="no" | ||
21102 | LIBS=${LIBS_save} | ||
21103 | |||
21104 | fi | ||
21105 | rm -f core conftest.err conftest.$ac_objext \ | ||
21106 | conftest$ac_exeext conftest.$ac_ext | ||
21107 | |||
21108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
21109 | $as_echo "${have_iconv}" >&6; } | ||
21110 | fi | ||
21111 | |||
21112 | if test "x${have_iconv}" = "xyes" ; then | ||
21113 | |||
21114 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | ||
21115 | |||
21116 | fi | ||
21117 | fi | ||
21118 | |||
21119 | |||
21120 | pkg_failed=no | ||
21121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_XCB" >&5 | ||
21122 | $as_echo_n "checking for ECORE_XCB... " >&6; } | ||
21123 | |||
21124 | if test -n "$ECORE_XCB_CFLAGS"; then | ||
21125 | pkg_cv_ECORE_XCB_CFLAGS="$ECORE_XCB_CFLAGS" | ||
21126 | elif test -n "$PKG_CONFIG"; then | ||
21127 | if test -n "$PKG_CONFIG" && \ | ||
21128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8\""; } >&5 | ||
21129 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8") 2>&5 | ||
21130 | ac_status=$? | ||
21131 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21132 | test $ac_status = 0; }; then | ||
21133 | pkg_cv_ECORE_XCB_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8" 2>/dev/null` | ||
21134 | else | ||
21135 | pkg_failed=yes | ||
21136 | fi | ||
21137 | else | ||
21138 | pkg_failed=untried | ||
21139 | fi | ||
21140 | if test -n "$ECORE_XCB_LIBS"; then | ||
21141 | pkg_cv_ECORE_XCB_LIBS="$ECORE_XCB_LIBS" | ||
21142 | elif test -n "$PKG_CONFIG"; then | ||
21143 | if test -n "$PKG_CONFIG" && \ | ||
21144 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8\""; } >&5 | ||
21145 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8") 2>&5 | ||
21146 | ac_status=$? | ||
21147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21148 | test $ac_status = 0; }; then | ||
21149 | pkg_cv_ECORE_XCB_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8" 2>/dev/null` | ||
21150 | else | ||
21151 | pkg_failed=yes | ||
21152 | fi | ||
21153 | else | ||
21154 | pkg_failed=untried | ||
21155 | fi | ||
21156 | |||
21157 | |||
21158 | |||
21159 | if test $pkg_failed = yes; then | ||
21160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21161 | $as_echo "no" >&6; } | ||
21162 | |||
21163 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21164 | _pkg_short_errors_supported=yes | ||
21165 | else | ||
21166 | _pkg_short_errors_supported=no | ||
21167 | fi | ||
21168 | if test $_pkg_short_errors_supported = yes; then | ||
21169 | ECORE_XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8" 2>&1` | ||
21170 | else | ||
21171 | ECORE_XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8" 2>&1` | ||
21172 | fi | ||
21173 | # Put the nasty error message in config.log where it belongs | ||
21174 | echo "$ECORE_XCB_PKG_ERRORS" >&5 | ||
21175 | |||
21176 | |||
21177 | |||
21178 | pkg_failed=no | ||
21179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_XCB" >&5 | ||
21180 | $as_echo_n "checking for ECORE_XCB... " >&6; } | ||
21181 | |||
21182 | if test -n "$ECORE_XCB_CFLAGS"; then | ||
21183 | pkg_cv_ECORE_XCB_CFLAGS="$ECORE_XCB_CFLAGS" | ||
21184 | elif test -n "$PKG_CONFIG"; then | ||
21185 | if test -n "$PKG_CONFIG" && \ | ||
21186 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms\""; } >&5 | ||
21187 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms") 2>&5 | ||
21188 | ac_status=$? | ||
21189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21190 | test $ac_status = 0; }; then | ||
21191 | pkg_cv_ECORE_XCB_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>/dev/null` | ||
21192 | else | ||
21193 | pkg_failed=yes | ||
21194 | fi | ||
21195 | else | ||
21196 | pkg_failed=untried | ||
21197 | fi | ||
21198 | if test -n "$ECORE_XCB_LIBS"; then | ||
21199 | pkg_cv_ECORE_XCB_LIBS="$ECORE_XCB_LIBS" | ||
21200 | elif test -n "$PKG_CONFIG"; then | ||
21201 | if test -n "$PKG_CONFIG" && \ | ||
21202 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms\""; } >&5 | ||
21203 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms") 2>&5 | ||
21204 | ac_status=$? | ||
21205 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21206 | test $ac_status = 0; }; then | ||
21207 | pkg_cv_ECORE_XCB_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>/dev/null` | ||
21208 | else | ||
21209 | pkg_failed=yes | ||
21210 | fi | ||
21211 | else | ||
21212 | pkg_failed=untried | ||
21213 | fi | ||
21214 | |||
21215 | |||
21216 | |||
21217 | if test $pkg_failed = yes; then | ||
21218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21219 | $as_echo "no" >&6; } | ||
21220 | |||
21221 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21222 | _pkg_short_errors_supported=yes | ||
21223 | else | ||
21224 | _pkg_short_errors_supported=no | ||
21225 | fi | ||
21226 | if test $_pkg_short_errors_supported = yes; then | ||
21227 | ECORE_XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>&1` | ||
21228 | else | ||
21229 | ECORE_XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>&1` | ||
21230 | fi | ||
21231 | # Put the nasty error message in config.log where it belongs | ||
21232 | echo "$ECORE_XCB_PKG_ERRORS" >&5 | ||
21233 | |||
21234 | have_ecore_x_xcb="no" | ||
21235 | elif test $pkg_failed = untried; then | ||
21236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21237 | $as_echo "no" >&6; } | ||
21238 | have_ecore_x_xcb="no" | ||
21239 | else | ||
21240 | ECORE_XCB_CFLAGS=$pkg_cv_ECORE_XCB_CFLAGS | ||
21241 | ECORE_XCB_LIBS=$pkg_cv_ECORE_XCB_LIBS | ||
21242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21243 | $as_echo "yes" >&6; } | ||
21244 | have_ecore_x_xcb="yes" | ||
21245 | |||
21246 | $as_echo "#define OLD_XCB_VERSION 1" >>confdefs.h | ||
21247 | |||
21248 | requirements_ecore_x="x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" | ||
21249 | fi | ||
21250 | |||
21251 | elif test $pkg_failed = untried; then | ||
21252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21253 | $as_echo "no" >&6; } | ||
21254 | |||
21255 | |||
21256 | pkg_failed=no | ||
21257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_XCB" >&5 | ||
21258 | $as_echo_n "checking for ECORE_XCB... " >&6; } | ||
21259 | |||
21260 | if test -n "$ECORE_XCB_CFLAGS"; then | ||
21261 | pkg_cv_ECORE_XCB_CFLAGS="$ECORE_XCB_CFLAGS" | ||
21262 | elif test -n "$PKG_CONFIG"; then | ||
21263 | if test -n "$PKG_CONFIG" && \ | ||
21264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms\""; } >&5 | ||
21265 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms") 2>&5 | ||
21266 | ac_status=$? | ||
21267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21268 | test $ac_status = 0; }; then | ||
21269 | pkg_cv_ECORE_XCB_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>/dev/null` | ||
21270 | else | ||
21271 | pkg_failed=yes | ||
21272 | fi | ||
21273 | else | ||
21274 | pkg_failed=untried | ||
21275 | fi | ||
21276 | if test -n "$ECORE_XCB_LIBS"; then | ||
21277 | pkg_cv_ECORE_XCB_LIBS="$ECORE_XCB_LIBS" | ||
21278 | elif test -n "$PKG_CONFIG"; then | ||
21279 | if test -n "$PKG_CONFIG" && \ | ||
21280 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms\""; } >&5 | ||
21281 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms") 2>&5 | ||
21282 | ac_status=$? | ||
21283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21284 | test $ac_status = 0; }; then | ||
21285 | pkg_cv_ECORE_XCB_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>/dev/null` | ||
21286 | else | ||
21287 | pkg_failed=yes | ||
21288 | fi | ||
21289 | else | ||
21290 | pkg_failed=untried | ||
21291 | fi | ||
21292 | |||
21293 | |||
21294 | |||
21295 | if test $pkg_failed = yes; then | ||
21296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21297 | $as_echo "no" >&6; } | ||
21298 | |||
21299 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21300 | _pkg_short_errors_supported=yes | ||
21301 | else | ||
21302 | _pkg_short_errors_supported=no | ||
21303 | fi | ||
21304 | if test $_pkg_short_errors_supported = yes; then | ||
21305 | ECORE_XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>&1` | ||
21306 | else | ||
21307 | ECORE_XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>&1` | ||
21308 | fi | ||
21309 | # Put the nasty error message in config.log where it belongs | ||
21310 | echo "$ECORE_XCB_PKG_ERRORS" >&5 | ||
21311 | |||
21312 | have_ecore_x_xcb="no" | ||
21313 | elif test $pkg_failed = untried; then | ||
21314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21315 | $as_echo "no" >&6; } | ||
21316 | have_ecore_x_xcb="no" | ||
21317 | else | ||
21318 | ECORE_XCB_CFLAGS=$pkg_cv_ECORE_XCB_CFLAGS | ||
21319 | ECORE_XCB_LIBS=$pkg_cv_ECORE_XCB_LIBS | ||
21320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21321 | $as_echo "yes" >&6; } | ||
21322 | have_ecore_x_xcb="yes" | ||
21323 | |||
21324 | $as_echo "#define OLD_XCB_VERSION 1" >>confdefs.h | ||
21325 | |||
21326 | requirements_ecore_x="x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" | ||
21327 | fi | ||
21328 | |||
21329 | else | ||
21330 | ECORE_XCB_CFLAGS=$pkg_cv_ECORE_XCB_CFLAGS | ||
21331 | ECORE_XCB_LIBS=$pkg_cv_ECORE_XCB_LIBS | ||
21332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21333 | $as_echo "yes" >&6; } | ||
21334 | have_ecore_x_xcb="yes" | ||
21335 | requirements_ecore_x="x11-xcb xcb xcb-shm xcb-event xcb-icccm xcb-util xcb-image xcb-keysyms ${requirements_ecore_x}" | ||
21336 | |||
21337 | fi | ||
21338 | |||
21339 | if test "x$have_ecore_x_xcb" = "xyes" ; then | ||
21340 | |||
21341 | |||
21342 | pkg_failed=no | ||
21343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 | ||
21344 | $as_echo_n "checking for PIXMAN... " >&6; } | ||
21345 | |||
21346 | if test -n "$PIXMAN_CFLAGS"; then | ||
21347 | pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" | ||
21348 | elif test -n "$PKG_CONFIG"; then | ||
21349 | if test -n "$PKG_CONFIG" && \ | ||
21350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5 | ||
21351 | ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5 | ||
21352 | ac_status=$? | ||
21353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21354 | test $ac_status = 0; }; then | ||
21355 | pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1" 2>/dev/null` | ||
21356 | else | ||
21357 | pkg_failed=yes | ||
21358 | fi | ||
21359 | else | ||
21360 | pkg_failed=untried | ||
21361 | fi | ||
21362 | if test -n "$PIXMAN_LIBS"; then | ||
21363 | pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" | ||
21364 | elif test -n "$PKG_CONFIG"; then | ||
21365 | if test -n "$PKG_CONFIG" && \ | ||
21366 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5 | ||
21367 | ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5 | ||
21368 | ac_status=$? | ||
21369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21370 | test $ac_status = 0; }; then | ||
21371 | pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "pixman-1" 2>/dev/null` | ||
21372 | else | ||
21373 | pkg_failed=yes | ||
21374 | fi | ||
21375 | else | ||
21376 | pkg_failed=untried | ||
21377 | fi | ||
21378 | |||
21379 | |||
21380 | |||
21381 | if test $pkg_failed = yes; then | ||
21382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21383 | $as_echo "no" >&6; } | ||
21384 | |||
21385 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21386 | _pkg_short_errors_supported=yes | ||
21387 | else | ||
21388 | _pkg_short_errors_supported=no | ||
21389 | fi | ||
21390 | if test $_pkg_short_errors_supported = yes; then | ||
21391 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pixman-1" 2>&1` | ||
21392 | else | ||
21393 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "pixman-1" 2>&1` | ||
21394 | fi | ||
21395 | # Put the nasty error message in config.log where it belongs | ||
21396 | echo "$PIXMAN_PKG_ERRORS" >&5 | ||
21397 | |||
21398 | |||
21399 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21400 | as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5 | ||
21401 | fi | ||
21402 | |||
21403 | elif test $pkg_failed = untried; then | ||
21404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21405 | $as_echo "no" >&6; } | ||
21406 | |||
21407 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21408 | as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5 | ||
21409 | fi | ||
21410 | |||
21411 | else | ||
21412 | PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS | ||
21413 | PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS | ||
21414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21415 | $as_echo "yes" >&6; } | ||
21416 | |||
21417 | have_pixman="yes" | ||
21418 | |||
21419 | $as_echo "#define HAVE_PIXMAN 1" >>confdefs.h | ||
21420 | |||
21421 | requirements_ecore_x="pixman-1 ${requirements_ecore_x}" | ||
21422 | |||
21423 | fi | ||
21424 | |||
21425 | if test "x$want_ecore_x_composite" != "xno"; then | ||
21426 | |||
21427 | pkg_failed=no | ||
21428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_COMPOSITE" >&5 | ||
21429 | $as_echo_n "checking for XCB_COMPOSITE... " >&6; } | ||
21430 | |||
21431 | if test -n "$XCB_COMPOSITE_CFLAGS"; then | ||
21432 | pkg_cv_XCB_COMPOSITE_CFLAGS="$XCB_COMPOSITE_CFLAGS" | ||
21433 | elif test -n "$PKG_CONFIG"; then | ||
21434 | if test -n "$PKG_CONFIG" && \ | ||
21435 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-composite\""; } >&5 | ||
21436 | ($PKG_CONFIG --exists --print-errors "xcb-composite") 2>&5 | ||
21437 | ac_status=$? | ||
21438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21439 | test $ac_status = 0; }; then | ||
21440 | pkg_cv_XCB_COMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcb-composite" 2>/dev/null` | ||
21441 | else | ||
21442 | pkg_failed=yes | ||
21443 | fi | ||
21444 | else | ||
21445 | pkg_failed=untried | ||
21446 | fi | ||
21447 | if test -n "$XCB_COMPOSITE_LIBS"; then | ||
21448 | pkg_cv_XCB_COMPOSITE_LIBS="$XCB_COMPOSITE_LIBS" | ||
21449 | elif test -n "$PKG_CONFIG"; then | ||
21450 | if test -n "$PKG_CONFIG" && \ | ||
21451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-composite\""; } >&5 | ||
21452 | ($PKG_CONFIG --exists --print-errors "xcb-composite") 2>&5 | ||
21453 | ac_status=$? | ||
21454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21455 | test $ac_status = 0; }; then | ||
21456 | pkg_cv_XCB_COMPOSITE_LIBS=`$PKG_CONFIG --libs "xcb-composite" 2>/dev/null` | ||
21457 | else | ||
21458 | pkg_failed=yes | ||
21459 | fi | ||
21460 | else | ||
21461 | pkg_failed=untried | ||
21462 | fi | ||
21463 | |||
21464 | |||
21465 | |||
21466 | if test $pkg_failed = yes; then | ||
21467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21468 | $as_echo "no" >&6; } | ||
21469 | |||
21470 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21471 | _pkg_short_errors_supported=yes | ||
21472 | else | ||
21473 | _pkg_short_errors_supported=no | ||
21474 | fi | ||
21475 | if test $_pkg_short_errors_supported = yes; then | ||
21476 | XCB_COMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-composite" 2>&1` | ||
21477 | else | ||
21478 | XCB_COMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-composite" 2>&1` | ||
21479 | fi | ||
21480 | # Put the nasty error message in config.log where it belongs | ||
21481 | echo "$XCB_COMPOSITE_PKG_ERRORS" >&5 | ||
21482 | |||
21483 | have_ecore_x_xcb_composite="no" | ||
21484 | elif test $pkg_failed = untried; then | ||
21485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21486 | $as_echo "no" >&6; } | ||
21487 | have_ecore_x_xcb_composite="no" | ||
21488 | else | ||
21489 | XCB_COMPOSITE_CFLAGS=$pkg_cv_XCB_COMPOSITE_CFLAGS | ||
21490 | XCB_COMPOSITE_LIBS=$pkg_cv_XCB_COMPOSITE_LIBS | ||
21491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21492 | $as_echo "yes" >&6; } | ||
21493 | have_ecore_x_xcb_composite="yes" | ||
21494 | requirements_ecore_x="xcb-composite ${requirements_ecore_x}" | ||
21495 | |||
21496 | $as_echo "#define ECORE_XCB_COMPOSITE 1" >>confdefs.h | ||
21497 | |||
21498 | fi | ||
21499 | else | ||
21500 | have_ecore_x_xcb_composite="no" | ||
21501 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"composite extension explicitly disabled\"" >&5 | ||
21502 | $as_echo "$as_me: \"composite extension explicitly disabled\"" >&6;} | ||
21503 | fi | ||
21504 | |||
21505 | if test "x$want_ecore_x_damage" != "xno"; then | ||
21506 | |||
21507 | pkg_failed=no | ||
21508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_DAMAGE" >&5 | ||
21509 | $as_echo_n "checking for XCB_DAMAGE... " >&6; } | ||
21510 | |||
21511 | if test -n "$XCB_DAMAGE_CFLAGS"; then | ||
21512 | pkg_cv_XCB_DAMAGE_CFLAGS="$XCB_DAMAGE_CFLAGS" | ||
21513 | elif test -n "$PKG_CONFIG"; then | ||
21514 | if test -n "$PKG_CONFIG" && \ | ||
21515 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-damage\""; } >&5 | ||
21516 | ($PKG_CONFIG --exists --print-errors "xcb-damage") 2>&5 | ||
21517 | ac_status=$? | ||
21518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21519 | test $ac_status = 0; }; then | ||
21520 | pkg_cv_XCB_DAMAGE_CFLAGS=`$PKG_CONFIG --cflags "xcb-damage" 2>/dev/null` | ||
21521 | else | ||
21522 | pkg_failed=yes | ||
21523 | fi | ||
21524 | else | ||
21525 | pkg_failed=untried | ||
21526 | fi | ||
21527 | if test -n "$XCB_DAMAGE_LIBS"; then | ||
21528 | pkg_cv_XCB_DAMAGE_LIBS="$XCB_DAMAGE_LIBS" | ||
21529 | elif test -n "$PKG_CONFIG"; then | ||
21530 | if test -n "$PKG_CONFIG" && \ | ||
21531 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-damage\""; } >&5 | ||
21532 | ($PKG_CONFIG --exists --print-errors "xcb-damage") 2>&5 | ||
21533 | ac_status=$? | ||
21534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21535 | test $ac_status = 0; }; then | ||
21536 | pkg_cv_XCB_DAMAGE_LIBS=`$PKG_CONFIG --libs "xcb-damage" 2>/dev/null` | ||
21537 | else | ||
21538 | pkg_failed=yes | ||
21539 | fi | ||
21540 | else | ||
21541 | pkg_failed=untried | ||
21542 | fi | ||
21543 | |||
21544 | |||
21545 | |||
21546 | if test $pkg_failed = yes; then | ||
21547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21548 | $as_echo "no" >&6; } | ||
21549 | |||
21550 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21551 | _pkg_short_errors_supported=yes | ||
21552 | else | ||
21553 | _pkg_short_errors_supported=no | ||
21554 | fi | ||
21555 | if test $_pkg_short_errors_supported = yes; then | ||
21556 | XCB_DAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-damage" 2>&1` | ||
21557 | else | ||
21558 | XCB_DAMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-damage" 2>&1` | ||
21559 | fi | ||
21560 | # Put the nasty error message in config.log where it belongs | ||
21561 | echo "$XCB_DAMAGE_PKG_ERRORS" >&5 | ||
21562 | |||
21563 | have_ecore_x_xcb_damage="no" | ||
21564 | elif test $pkg_failed = untried; then | ||
21565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21566 | $as_echo "no" >&6; } | ||
21567 | have_ecore_x_xcb_damage="no" | ||
21568 | else | ||
21569 | XCB_DAMAGE_CFLAGS=$pkg_cv_XCB_DAMAGE_CFLAGS | ||
21570 | XCB_DAMAGE_LIBS=$pkg_cv_XCB_DAMAGE_LIBS | ||
21571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21572 | $as_echo "yes" >&6; } | ||
21573 | have_ecore_x_xcb_damage="yes" | ||
21574 | requirements_ecore_x="xcb-damage ${requirements_ecore_x}" | ||
21575 | |||
21576 | $as_echo "#define ECORE_XCB_DAMAGE 1" >>confdefs.h | ||
21577 | |||
21578 | fi | ||
21579 | else | ||
21580 | have_ecore_x_xcb_damage="no" | ||
21581 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"damage extension explicitly disabled\"" >&5 | ||
21582 | $as_echo "$as_me: \"damage extension explicitly disabled\"" >&6;} | ||
21583 | fi | ||
21584 | |||
21585 | if test "x$want_ecore_x_dpms" != "xno"; then | ||
21586 | |||
21587 | pkg_failed=no | ||
21588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_DPMS" >&5 | ||
21589 | $as_echo_n "checking for XCB_DPMS... " >&6; } | ||
21590 | |||
21591 | if test -n "$XCB_DPMS_CFLAGS"; then | ||
21592 | pkg_cv_XCB_DPMS_CFLAGS="$XCB_DPMS_CFLAGS" | ||
21593 | elif test -n "$PKG_CONFIG"; then | ||
21594 | if test -n "$PKG_CONFIG" && \ | ||
21595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dpms\""; } >&5 | ||
21596 | ($PKG_CONFIG --exists --print-errors "xcb-dpms") 2>&5 | ||
21597 | ac_status=$? | ||
21598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21599 | test $ac_status = 0; }; then | ||
21600 | pkg_cv_XCB_DPMS_CFLAGS=`$PKG_CONFIG --cflags "xcb-dpms" 2>/dev/null` | ||
21601 | else | ||
21602 | pkg_failed=yes | ||
21603 | fi | ||
21604 | else | ||
21605 | pkg_failed=untried | ||
21606 | fi | ||
21607 | if test -n "$XCB_DPMS_LIBS"; then | ||
21608 | pkg_cv_XCB_DPMS_LIBS="$XCB_DPMS_LIBS" | ||
21609 | elif test -n "$PKG_CONFIG"; then | ||
21610 | if test -n "$PKG_CONFIG" && \ | ||
21611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dpms\""; } >&5 | ||
21612 | ($PKG_CONFIG --exists --print-errors "xcb-dpms") 2>&5 | ||
21613 | ac_status=$? | ||
21614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21615 | test $ac_status = 0; }; then | ||
21616 | pkg_cv_XCB_DPMS_LIBS=`$PKG_CONFIG --libs "xcb-dpms" 2>/dev/null` | ||
21617 | else | ||
21618 | pkg_failed=yes | ||
21619 | fi | ||
21620 | else | ||
21621 | pkg_failed=untried | ||
21622 | fi | ||
21623 | |||
21624 | |||
21625 | |||
21626 | if test $pkg_failed = yes; then | ||
21627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21628 | $as_echo "no" >&6; } | ||
21629 | |||
21630 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21631 | _pkg_short_errors_supported=yes | ||
21632 | else | ||
21633 | _pkg_short_errors_supported=no | ||
21634 | fi | ||
21635 | if test $_pkg_short_errors_supported = yes; then | ||
21636 | XCB_DPMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-dpms" 2>&1` | ||
21637 | else | ||
21638 | XCB_DPMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-dpms" 2>&1` | ||
21639 | fi | ||
21640 | # Put the nasty error message in config.log where it belongs | ||
21641 | echo "$XCB_DPMS_PKG_ERRORS" >&5 | ||
21642 | |||
21643 | have_ecore_x_xcb_dpms="no" | ||
21644 | elif test $pkg_failed = untried; then | ||
21645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21646 | $as_echo "no" >&6; } | ||
21647 | have_ecore_x_xcb_dpms="no" | ||
21648 | else | ||
21649 | XCB_DPMS_CFLAGS=$pkg_cv_XCB_DPMS_CFLAGS | ||
21650 | XCB_DPMS_LIBS=$pkg_cv_XCB_DPMS_LIBS | ||
21651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21652 | $as_echo "yes" >&6; } | ||
21653 | have_ecore_x_xcb_dpms="yes" | ||
21654 | requirements_ecore_x="xcb-dpms ${requirements_ecore_x}" | ||
21655 | |||
21656 | $as_echo "#define ECORE_XCB_DPMS 1" >>confdefs.h | ||
21657 | |||
21658 | fi | ||
21659 | else | ||
21660 | have_ecore_x_xcb_dpms="no" | ||
21661 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"dpms extension explicitly disabled\"" >&5 | ||
21662 | $as_echo "$as_me: \"dpms extension explicitly disabled\"" >&6;} | ||
21663 | fi | ||
21664 | |||
21665 | if test "x$want_ecore_x_randr" != "xno"; then | ||
21666 | |||
21667 | pkg_failed=no | ||
21668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_RANDR" >&5 | ||
21669 | $as_echo_n "checking for XCB_RANDR... " >&6; } | ||
21670 | |||
21671 | if test -n "$XCB_RANDR_CFLAGS"; then | ||
21672 | pkg_cv_XCB_RANDR_CFLAGS="$XCB_RANDR_CFLAGS" | ||
21673 | elif test -n "$PKG_CONFIG"; then | ||
21674 | if test -n "$PKG_CONFIG" && \ | ||
21675 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-randr\""; } >&5 | ||
21676 | ($PKG_CONFIG --exists --print-errors "xcb-randr") 2>&5 | ||
21677 | ac_status=$? | ||
21678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21679 | test $ac_status = 0; }; then | ||
21680 | pkg_cv_XCB_RANDR_CFLAGS=`$PKG_CONFIG --cflags "xcb-randr" 2>/dev/null` | ||
21681 | else | ||
21682 | pkg_failed=yes | ||
21683 | fi | ||
21684 | else | ||
21685 | pkg_failed=untried | ||
21686 | fi | ||
21687 | if test -n "$XCB_RANDR_LIBS"; then | ||
21688 | pkg_cv_XCB_RANDR_LIBS="$XCB_RANDR_LIBS" | ||
21689 | elif test -n "$PKG_CONFIG"; then | ||
21690 | if test -n "$PKG_CONFIG" && \ | ||
21691 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-randr\""; } >&5 | ||
21692 | ($PKG_CONFIG --exists --print-errors "xcb-randr") 2>&5 | ||
21693 | ac_status=$? | ||
21694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21695 | test $ac_status = 0; }; then | ||
21696 | pkg_cv_XCB_RANDR_LIBS=`$PKG_CONFIG --libs "xcb-randr" 2>/dev/null` | ||
21697 | else | ||
21698 | pkg_failed=yes | ||
21699 | fi | ||
21700 | else | ||
21701 | pkg_failed=untried | ||
21702 | fi | ||
21703 | |||
21704 | |||
21705 | |||
21706 | if test $pkg_failed = yes; then | ||
21707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21708 | $as_echo "no" >&6; } | ||
21709 | |||
21710 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21711 | _pkg_short_errors_supported=yes | ||
21712 | else | ||
21713 | _pkg_short_errors_supported=no | ||
21714 | fi | ||
21715 | if test $_pkg_short_errors_supported = yes; then | ||
21716 | XCB_RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-randr" 2>&1` | ||
21717 | else | ||
21718 | XCB_RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-randr" 2>&1` | ||
21719 | fi | ||
21720 | # Put the nasty error message in config.log where it belongs | ||
21721 | echo "$XCB_RANDR_PKG_ERRORS" >&5 | ||
21722 | |||
21723 | have_ecore_x_xcb_randr="no" | ||
21724 | elif test $pkg_failed = untried; then | ||
21725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21726 | $as_echo "no" >&6; } | ||
21727 | have_ecore_x_xcb_randr="no" | ||
21728 | else | ||
21729 | XCB_RANDR_CFLAGS=$pkg_cv_XCB_RANDR_CFLAGS | ||
21730 | XCB_RANDR_LIBS=$pkg_cv_XCB_RANDR_LIBS | ||
21731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21732 | $as_echo "yes" >&6; } | ||
21733 | have_ecore_x_xcb_randr="yes" | ||
21734 | requirements_ecore_x="xcb-randr ${requirements_ecore_x}" | ||
21735 | |||
21736 | $as_echo "#define ECORE_XCB_RANDR 1" >>confdefs.h | ||
21737 | |||
21738 | fi | ||
21739 | else | ||
21740 | have_ecore_x_xcb_randr="no" | ||
21741 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"randr extension explicitly disabled\"" >&5 | ||
21742 | $as_echo "$as_me: \"randr extension explicitly disabled\"" >&6;} | ||
21743 | fi | ||
21744 | |||
21745 | if test "x$want_ecore_x_render" != "xno"; then | ||
21746 | |||
21747 | pkg_failed=no | ||
21748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_RENDER" >&5 | ||
21749 | $as_echo_n "checking for XCB_RENDER... " >&6; } | ||
21750 | |||
21751 | if test -n "$XCB_RENDER_CFLAGS"; then | ||
21752 | pkg_cv_XCB_RENDER_CFLAGS="$XCB_RENDER_CFLAGS" | ||
21753 | elif test -n "$PKG_CONFIG"; then | ||
21754 | if test -n "$PKG_CONFIG" && \ | ||
21755 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render xcb-renderutil\""; } >&5 | ||
21756 | ($PKG_CONFIG --exists --print-errors "xcb-render xcb-renderutil") 2>&5 | ||
21757 | ac_status=$? | ||
21758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21759 | test $ac_status = 0; }; then | ||
21760 | pkg_cv_XCB_RENDER_CFLAGS=`$PKG_CONFIG --cflags "xcb-render xcb-renderutil" 2>/dev/null` | ||
21761 | else | ||
21762 | pkg_failed=yes | ||
21763 | fi | ||
21764 | else | ||
21765 | pkg_failed=untried | ||
21766 | fi | ||
21767 | if test -n "$XCB_RENDER_LIBS"; then | ||
21768 | pkg_cv_XCB_RENDER_LIBS="$XCB_RENDER_LIBS" | ||
21769 | elif test -n "$PKG_CONFIG"; then | ||
21770 | if test -n "$PKG_CONFIG" && \ | ||
21771 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render xcb-renderutil\""; } >&5 | ||
21772 | ($PKG_CONFIG --exists --print-errors "xcb-render xcb-renderutil") 2>&5 | ||
21773 | ac_status=$? | ||
21774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21775 | test $ac_status = 0; }; then | ||
21776 | pkg_cv_XCB_RENDER_LIBS=`$PKG_CONFIG --libs "xcb-render xcb-renderutil" 2>/dev/null` | ||
21777 | else | ||
21778 | pkg_failed=yes | ||
21779 | fi | ||
21780 | else | ||
21781 | pkg_failed=untried | ||
21782 | fi | ||
21783 | |||
21784 | |||
21785 | |||
21786 | if test $pkg_failed = yes; then | ||
21787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21788 | $as_echo "no" >&6; } | ||
21789 | |||
21790 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21791 | _pkg_short_errors_supported=yes | ||
21792 | else | ||
21793 | _pkg_short_errors_supported=no | ||
21794 | fi | ||
21795 | if test $_pkg_short_errors_supported = yes; then | ||
21796 | XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-render xcb-renderutil" 2>&1` | ||
21797 | else | ||
21798 | XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-render xcb-renderutil" 2>&1` | ||
21799 | fi | ||
21800 | # Put the nasty error message in config.log where it belongs | ||
21801 | echo "$XCB_RENDER_PKG_ERRORS" >&5 | ||
21802 | |||
21803 | have_ecore_x_xcb_render="no" | ||
21804 | elif test $pkg_failed = untried; then | ||
21805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21806 | $as_echo "no" >&6; } | ||
21807 | have_ecore_x_xcb_render="no" | ||
21808 | else | ||
21809 | XCB_RENDER_CFLAGS=$pkg_cv_XCB_RENDER_CFLAGS | ||
21810 | XCB_RENDER_LIBS=$pkg_cv_XCB_RENDER_LIBS | ||
21811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21812 | $as_echo "yes" >&6; } | ||
21813 | have_ecore_x_xcb_render="yes" | ||
21814 | requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}" | ||
21815 | |||
21816 | $as_echo "#define ECORE_XCB_RENDER 1" >>confdefs.h | ||
21817 | |||
21818 | fi | ||
21819 | else | ||
21820 | have_ecore_x_xcb_render="no" | ||
21821 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"render extension explicitly disabled\"" >&5 | ||
21822 | $as_echo "$as_me: \"render extension explicitly disabled\"" >&6;} | ||
21823 | fi | ||
21824 | |||
21825 | if test "x$want_ecore_x_screensaver" != "xno"; then | ||
21826 | |||
21827 | pkg_failed=no | ||
21828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SCREENSAVER" >&5 | ||
21829 | $as_echo_n "checking for XCB_SCREENSAVER... " >&6; } | ||
21830 | |||
21831 | if test -n "$XCB_SCREENSAVER_CFLAGS"; then | ||
21832 | pkg_cv_XCB_SCREENSAVER_CFLAGS="$XCB_SCREENSAVER_CFLAGS" | ||
21833 | elif test -n "$PKG_CONFIG"; then | ||
21834 | if test -n "$PKG_CONFIG" && \ | ||
21835 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-screensaver\""; } >&5 | ||
21836 | ($PKG_CONFIG --exists --print-errors "xcb-screensaver") 2>&5 | ||
21837 | ac_status=$? | ||
21838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21839 | test $ac_status = 0; }; then | ||
21840 | pkg_cv_XCB_SCREENSAVER_CFLAGS=`$PKG_CONFIG --cflags "xcb-screensaver" 2>/dev/null` | ||
21841 | else | ||
21842 | pkg_failed=yes | ||
21843 | fi | ||
21844 | else | ||
21845 | pkg_failed=untried | ||
21846 | fi | ||
21847 | if test -n "$XCB_SCREENSAVER_LIBS"; then | ||
21848 | pkg_cv_XCB_SCREENSAVER_LIBS="$XCB_SCREENSAVER_LIBS" | ||
21849 | elif test -n "$PKG_CONFIG"; then | ||
21850 | if test -n "$PKG_CONFIG" && \ | ||
21851 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-screensaver\""; } >&5 | ||
21852 | ($PKG_CONFIG --exists --print-errors "xcb-screensaver") 2>&5 | ||
21853 | ac_status=$? | ||
21854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21855 | test $ac_status = 0; }; then | ||
21856 | pkg_cv_XCB_SCREENSAVER_LIBS=`$PKG_CONFIG --libs "xcb-screensaver" 2>/dev/null` | ||
21857 | else | ||
21858 | pkg_failed=yes | ||
21859 | fi | ||
21860 | else | ||
21861 | pkg_failed=untried | ||
21862 | fi | ||
21863 | |||
21864 | |||
21865 | |||
21866 | if test $pkg_failed = yes; then | ||
21867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21868 | $as_echo "no" >&6; } | ||
21869 | |||
21870 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21871 | _pkg_short_errors_supported=yes | ||
21872 | else | ||
21873 | _pkg_short_errors_supported=no | ||
21874 | fi | ||
21875 | if test $_pkg_short_errors_supported = yes; then | ||
21876 | XCB_SCREENSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-screensaver" 2>&1` | ||
21877 | else | ||
21878 | XCB_SCREENSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-screensaver" 2>&1` | ||
21879 | fi | ||
21880 | # Put the nasty error message in config.log where it belongs | ||
21881 | echo "$XCB_SCREENSAVER_PKG_ERRORS" >&5 | ||
21882 | |||
21883 | have_ecore_x_xcb_screensaver="no" | ||
21884 | elif test $pkg_failed = untried; then | ||
21885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21886 | $as_echo "no" >&6; } | ||
21887 | have_ecore_x_xcb_screensaver="no" | ||
21888 | else | ||
21889 | XCB_SCREENSAVER_CFLAGS=$pkg_cv_XCB_SCREENSAVER_CFLAGS | ||
21890 | XCB_SCREENSAVER_LIBS=$pkg_cv_XCB_SCREENSAVER_LIBS | ||
21891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21892 | $as_echo "yes" >&6; } | ||
21893 | have_ecore_x_xcb_screensaver="yes" | ||
21894 | requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}" | ||
21895 | |||
21896 | $as_echo "#define ECORE_XCB_SCREENSAVER 1" >>confdefs.h | ||
21897 | |||
21898 | fi | ||
21899 | else | ||
21900 | have_ecore_x_xcb_screensaver="no" | ||
21901 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"screensaver extension explicitly disabled\"" >&5 | ||
21902 | $as_echo "$as_me: \"screensaver extension explicitly disabled\"" >&6;} | ||
21903 | fi | ||
21904 | |||
21905 | if test "x$want_ecore_x_shape" != "xno"; then | ||
21906 | |||
21907 | pkg_failed=no | ||
21908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SHAPE" >&5 | ||
21909 | $as_echo_n "checking for XCB_SHAPE... " >&6; } | ||
21910 | |||
21911 | if test -n "$XCB_SHAPE_CFLAGS"; then | ||
21912 | pkg_cv_XCB_SHAPE_CFLAGS="$XCB_SHAPE_CFLAGS" | ||
21913 | elif test -n "$PKG_CONFIG"; then | ||
21914 | if test -n "$PKG_CONFIG" && \ | ||
21915 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shape\""; } >&5 | ||
21916 | ($PKG_CONFIG --exists --print-errors "xcb-shape") 2>&5 | ||
21917 | ac_status=$? | ||
21918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21919 | test $ac_status = 0; }; then | ||
21920 | pkg_cv_XCB_SHAPE_CFLAGS=`$PKG_CONFIG --cflags "xcb-shape" 2>/dev/null` | ||
21921 | else | ||
21922 | pkg_failed=yes | ||
21923 | fi | ||
21924 | else | ||
21925 | pkg_failed=untried | ||
21926 | fi | ||
21927 | if test -n "$XCB_SHAPE_LIBS"; then | ||
21928 | pkg_cv_XCB_SHAPE_LIBS="$XCB_SHAPE_LIBS" | ||
21929 | elif test -n "$PKG_CONFIG"; then | ||
21930 | if test -n "$PKG_CONFIG" && \ | ||
21931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shape\""; } >&5 | ||
21932 | ($PKG_CONFIG --exists --print-errors "xcb-shape") 2>&5 | ||
21933 | ac_status=$? | ||
21934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21935 | test $ac_status = 0; }; then | ||
21936 | pkg_cv_XCB_SHAPE_LIBS=`$PKG_CONFIG --libs "xcb-shape" 2>/dev/null` | ||
21937 | else | ||
21938 | pkg_failed=yes | ||
21939 | fi | ||
21940 | else | ||
21941 | pkg_failed=untried | ||
21942 | fi | ||
21943 | |||
21944 | |||
21945 | |||
21946 | if test $pkg_failed = yes; then | ||
21947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21948 | $as_echo "no" >&6; } | ||
21949 | |||
21950 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21951 | _pkg_short_errors_supported=yes | ||
21952 | else | ||
21953 | _pkg_short_errors_supported=no | ||
21954 | fi | ||
21955 | if test $_pkg_short_errors_supported = yes; then | ||
21956 | XCB_SHAPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-shape" 2>&1` | ||
21957 | else | ||
21958 | XCB_SHAPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-shape" 2>&1` | ||
21959 | fi | ||
21960 | # Put the nasty error message in config.log where it belongs | ||
21961 | echo "$XCB_SHAPE_PKG_ERRORS" >&5 | ||
21962 | |||
21963 | have_ecore_x_xcb_shape="no" | ||
21964 | elif test $pkg_failed = untried; then | ||
21965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21966 | $as_echo "no" >&6; } | ||
21967 | have_ecore_x_xcb_shape="no" | ||
21968 | else | ||
21969 | XCB_SHAPE_CFLAGS=$pkg_cv_XCB_SHAPE_CFLAGS | ||
21970 | XCB_SHAPE_LIBS=$pkg_cv_XCB_SHAPE_LIBS | ||
21971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21972 | $as_echo "yes" >&6; } | ||
21973 | have_ecore_x_xcb_shape="yes" | ||
21974 | requirements_ecore_x="xcb-shape ${requirements_ecore_x}" | ||
21975 | |||
21976 | $as_echo "#define ECORE_XCB_SHAPE 1" >>confdefs.h | ||
21977 | |||
21978 | fi | ||
21979 | else | ||
21980 | have_ecore_x_xcb_shape="no" | ||
21981 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"shape extension explicitly disabled\"" >&5 | ||
21982 | $as_echo "$as_me: \"shape extension explicitly disabled\"" >&6;} | ||
21983 | fi | ||
21984 | |||
21985 | if test "x$want_ecore_x_gesture" != "xno"; then | ||
21986 | |||
21987 | pkg_failed=no | ||
21988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XGESTURE" >&5 | ||
21989 | $as_echo_n "checking for XCB_XGESTURE... " >&6; } | ||
21990 | |||
21991 | if test -n "$XCB_XGESTURE_CFLAGS"; then | ||
21992 | pkg_cv_XCB_XGESTURE_CFLAGS="$XCB_XGESTURE_CFLAGS" | ||
21993 | elif test -n "$PKG_CONFIG"; then | ||
21994 | if test -n "$PKG_CONFIG" && \ | ||
21995 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-gesture\""; } >&5 | ||
21996 | ($PKG_CONFIG --exists --print-errors "xcb-gesture") 2>&5 | ||
21997 | ac_status=$? | ||
21998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21999 | test $ac_status = 0; }; then | ||
22000 | pkg_cv_XCB_XGESTURE_CFLAGS=`$PKG_CONFIG --cflags "xcb-gesture" 2>/dev/null` | ||
22001 | else | ||
22002 | pkg_failed=yes | ||
22003 | fi | ||
22004 | else | ||
22005 | pkg_failed=untried | ||
22006 | fi | ||
22007 | if test -n "$XCB_XGESTURE_LIBS"; then | ||
22008 | pkg_cv_XCB_XGESTURE_LIBS="$XCB_XGESTURE_LIBS" | ||
22009 | elif test -n "$PKG_CONFIG"; then | ||
22010 | if test -n "$PKG_CONFIG" && \ | ||
22011 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-gesture\""; } >&5 | ||
22012 | ($PKG_CONFIG --exists --print-errors "xcb-gesture") 2>&5 | ||
22013 | ac_status=$? | ||
22014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22015 | test $ac_status = 0; }; then | ||
22016 | pkg_cv_XCB_XGESTURE_LIBS=`$PKG_CONFIG --libs "xcb-gesture" 2>/dev/null` | ||
22017 | else | ||
22018 | pkg_failed=yes | ||
22019 | fi | ||
22020 | else | ||
22021 | pkg_failed=untried | ||
22022 | fi | ||
22023 | |||
22024 | |||
22025 | |||
22026 | if test $pkg_failed = yes; then | ||
22027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22028 | $as_echo "no" >&6; } | ||
22029 | |||
22030 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22031 | _pkg_short_errors_supported=yes | ||
22032 | else | ||
22033 | _pkg_short_errors_supported=no | ||
22034 | fi | ||
22035 | if test $_pkg_short_errors_supported = yes; then | ||
22036 | XCB_XGESTURE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-gesture" 2>&1` | ||
22037 | else | ||
22038 | XCB_XGESTURE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-gesture" 2>&1` | ||
22039 | fi | ||
22040 | # Put the nasty error message in config.log where it belongs | ||
22041 | echo "$XCB_XGESTURE_PKG_ERRORS" >&5 | ||
22042 | |||
22043 | have_ecore_x_xcb_gesture="no" | ||
22044 | elif test $pkg_failed = untried; then | ||
22045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22046 | $as_echo "no" >&6; } | ||
22047 | have_ecore_x_xcb_gesture="no" | ||
22048 | else | ||
22049 | XCB_XGESTURE_CFLAGS=$pkg_cv_XCB_XGESTURE_CFLAGS | ||
22050 | XCB_XGESTURE_LIBS=$pkg_cv_XCB_XGESTURE_LIBS | ||
22051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22052 | $as_echo "yes" >&6; } | ||
22053 | have_ecore_x_xcb_gesture="yes" | ||
22054 | requirements_ecore_x="xcb-gesture ${requirements_ecore_x}" | ||
22055 | |||
22056 | $as_echo "#define ECORE_XCB_XGESTURE 1" >>confdefs.h | ||
22057 | |||
22058 | fi | ||
22059 | else | ||
22060 | have_ecore_x_xcb_gesture="no" | ||
22061 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"gesture extension explicitly disabled\"" >&5 | ||
22062 | $as_echo "$as_me: \"gesture extension explicitly disabled\"" >&6;} | ||
22063 | fi | ||
22064 | |||
22065 | if test "x$want_ecore_x_sync" != "xno"; then | ||
22066 | |||
22067 | pkg_failed=no | ||
22068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SYNC" >&5 | ||
22069 | $as_echo_n "checking for XCB_SYNC... " >&6; } | ||
22070 | |||
22071 | if test -n "$XCB_SYNC_CFLAGS"; then | ||
22072 | pkg_cv_XCB_SYNC_CFLAGS="$XCB_SYNC_CFLAGS" | ||
22073 | elif test -n "$PKG_CONFIG"; then | ||
22074 | if test -n "$PKG_CONFIG" && \ | ||
22075 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-sync\""; } >&5 | ||
22076 | ($PKG_CONFIG --exists --print-errors "xcb-sync") 2>&5 | ||
22077 | ac_status=$? | ||
22078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22079 | test $ac_status = 0; }; then | ||
22080 | pkg_cv_XCB_SYNC_CFLAGS=`$PKG_CONFIG --cflags "xcb-sync" 2>/dev/null` | ||
22081 | else | ||
22082 | pkg_failed=yes | ||
22083 | fi | ||
22084 | else | ||
22085 | pkg_failed=untried | ||
22086 | fi | ||
22087 | if test -n "$XCB_SYNC_LIBS"; then | ||
22088 | pkg_cv_XCB_SYNC_LIBS="$XCB_SYNC_LIBS" | ||
22089 | elif test -n "$PKG_CONFIG"; then | ||
22090 | if test -n "$PKG_CONFIG" && \ | ||
22091 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-sync\""; } >&5 | ||
22092 | ($PKG_CONFIG --exists --print-errors "xcb-sync") 2>&5 | ||
22093 | ac_status=$? | ||
22094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22095 | test $ac_status = 0; }; then | ||
22096 | pkg_cv_XCB_SYNC_LIBS=`$PKG_CONFIG --libs "xcb-sync" 2>/dev/null` | ||
22097 | else | ||
22098 | pkg_failed=yes | ||
22099 | fi | ||
22100 | else | ||
22101 | pkg_failed=untried | ||
22102 | fi | ||
22103 | |||
22104 | |||
22105 | |||
22106 | if test $pkg_failed = yes; then | ||
22107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22108 | $as_echo "no" >&6; } | ||
22109 | |||
22110 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22111 | _pkg_short_errors_supported=yes | ||
22112 | else | ||
22113 | _pkg_short_errors_supported=no | ||
22114 | fi | ||
22115 | if test $_pkg_short_errors_supported = yes; then | ||
22116 | XCB_SYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-sync" 2>&1` | ||
22117 | else | ||
22118 | XCB_SYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-sync" 2>&1` | ||
22119 | fi | ||
22120 | # Put the nasty error message in config.log where it belongs | ||
22121 | echo "$XCB_SYNC_PKG_ERRORS" >&5 | ||
22122 | |||
22123 | have_ecore_x_xcb_sync="no" | ||
22124 | elif test $pkg_failed = untried; then | ||
22125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22126 | $as_echo "no" >&6; } | ||
22127 | have_ecore_x_xcb_sync="no" | ||
22128 | else | ||
22129 | XCB_SYNC_CFLAGS=$pkg_cv_XCB_SYNC_CFLAGS | ||
22130 | XCB_SYNC_LIBS=$pkg_cv_XCB_SYNC_LIBS | ||
22131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22132 | $as_echo "yes" >&6; } | ||
22133 | have_ecore_x_xcb_sync="yes" | ||
22134 | requirements_ecore_x="xcb-sync ${requirements_ecore_x}" | ||
22135 | |||
22136 | $as_echo "#define ECORE_XCB_SYNC 1" >>confdefs.h | ||
22137 | |||
22138 | fi | ||
22139 | else | ||
22140 | have_ecore_x_xcb_sync="no" | ||
22141 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"sync extension explicitly disabled\"" >&5 | ||
22142 | $as_echo "$as_me: \"sync extension explicitly disabled\"" >&6;} | ||
22143 | fi | ||
22144 | |||
22145 | if test "x$want_ecore_x_xfixes" != "xno"; then | ||
22146 | |||
22147 | pkg_failed=no | ||
22148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XFIXES" >&5 | ||
22149 | $as_echo_n "checking for XCB_XFIXES... " >&6; } | ||
22150 | |||
22151 | if test -n "$XCB_XFIXES_CFLAGS"; then | ||
22152 | pkg_cv_XCB_XFIXES_CFLAGS="$XCB_XFIXES_CFLAGS" | ||
22153 | elif test -n "$PKG_CONFIG"; then | ||
22154 | if test -n "$PKG_CONFIG" && \ | ||
22155 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xfixes\""; } >&5 | ||
22156 | ($PKG_CONFIG --exists --print-errors "xcb-xfixes") 2>&5 | ||
22157 | ac_status=$? | ||
22158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22159 | test $ac_status = 0; }; then | ||
22160 | pkg_cv_XCB_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xcb-xfixes" 2>/dev/null` | ||
22161 | else | ||
22162 | pkg_failed=yes | ||
22163 | fi | ||
22164 | else | ||
22165 | pkg_failed=untried | ||
22166 | fi | ||
22167 | if test -n "$XCB_XFIXES_LIBS"; then | ||
22168 | pkg_cv_XCB_XFIXES_LIBS="$XCB_XFIXES_LIBS" | ||
22169 | elif test -n "$PKG_CONFIG"; then | ||
22170 | if test -n "$PKG_CONFIG" && \ | ||
22171 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xfixes\""; } >&5 | ||
22172 | ($PKG_CONFIG --exists --print-errors "xcb-xfixes") 2>&5 | ||
22173 | ac_status=$? | ||
22174 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22175 | test $ac_status = 0; }; then | ||
22176 | pkg_cv_XCB_XFIXES_LIBS=`$PKG_CONFIG --libs "xcb-xfixes" 2>/dev/null` | ||
22177 | else | ||
22178 | pkg_failed=yes | ||
22179 | fi | ||
22180 | else | ||
22181 | pkg_failed=untried | ||
22182 | fi | ||
22183 | |||
22184 | |||
22185 | |||
22186 | if test $pkg_failed = yes; then | ||
22187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22188 | $as_echo "no" >&6; } | ||
22189 | |||
22190 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22191 | _pkg_short_errors_supported=yes | ||
22192 | else | ||
22193 | _pkg_short_errors_supported=no | ||
22194 | fi | ||
22195 | if test $_pkg_short_errors_supported = yes; then | ||
22196 | XCB_XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xfixes" 2>&1` | ||
22197 | else | ||
22198 | XCB_XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xfixes" 2>&1` | ||
22199 | fi | ||
22200 | # Put the nasty error message in config.log where it belongs | ||
22201 | echo "$XCB_XFIXES_PKG_ERRORS" >&5 | ||
22202 | |||
22203 | have_ecore_x_xcb_xfixes="no" | ||
22204 | elif test $pkg_failed = untried; then | ||
22205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22206 | $as_echo "no" >&6; } | ||
22207 | have_ecore_x_xcb_xfixes="no" | ||
22208 | else | ||
22209 | XCB_XFIXES_CFLAGS=$pkg_cv_XCB_XFIXES_CFLAGS | ||
22210 | XCB_XFIXES_LIBS=$pkg_cv_XCB_XFIXES_LIBS | ||
22211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22212 | $as_echo "yes" >&6; } | ||
22213 | have_ecore_x_xcb_xfixes="yes" | ||
22214 | requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}" | ||
22215 | |||
22216 | $as_echo "#define ECORE_XCB_XFIXES 1" >>confdefs.h | ||
22217 | |||
22218 | fi | ||
22219 | else | ||
22220 | have_ecore_x_xcb_xfixes="no" | ||
22221 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xfixes extension explicitly disabled\"" >&5 | ||
22222 | $as_echo "$as_me: \"xfixes extension explicitly disabled\"" >&6;} | ||
22223 | fi | ||
22224 | |||
22225 | if test "x$want_ecore_x_xinerama" != "xno"; then | ||
22226 | |||
22227 | pkg_failed=no | ||
22228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XINERAMA" >&5 | ||
22229 | $as_echo_n "checking for XCB_XINERAMA... " >&6; } | ||
22230 | |||
22231 | if test -n "$XCB_XINERAMA_CFLAGS"; then | ||
22232 | pkg_cv_XCB_XINERAMA_CFLAGS="$XCB_XINERAMA_CFLAGS" | ||
22233 | elif test -n "$PKG_CONFIG"; then | ||
22234 | if test -n "$PKG_CONFIG" && \ | ||
22235 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xinerama\""; } >&5 | ||
22236 | ($PKG_CONFIG --exists --print-errors "xcb-xinerama") 2>&5 | ||
22237 | ac_status=$? | ||
22238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22239 | test $ac_status = 0; }; then | ||
22240 | pkg_cv_XCB_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xcb-xinerama" 2>/dev/null` | ||
22241 | else | ||
22242 | pkg_failed=yes | ||
22243 | fi | ||
22244 | else | ||
22245 | pkg_failed=untried | ||
22246 | fi | ||
22247 | if test -n "$XCB_XINERAMA_LIBS"; then | ||
22248 | pkg_cv_XCB_XINERAMA_LIBS="$XCB_XINERAMA_LIBS" | ||
22249 | elif test -n "$PKG_CONFIG"; then | ||
22250 | if test -n "$PKG_CONFIG" && \ | ||
22251 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xinerama\""; } >&5 | ||
22252 | ($PKG_CONFIG --exists --print-errors "xcb-xinerama") 2>&5 | ||
22253 | ac_status=$? | ||
22254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22255 | test $ac_status = 0; }; then | ||
22256 | pkg_cv_XCB_XINERAMA_LIBS=`$PKG_CONFIG --libs "xcb-xinerama" 2>/dev/null` | ||
22257 | else | ||
22258 | pkg_failed=yes | ||
22259 | fi | ||
22260 | else | ||
22261 | pkg_failed=untried | ||
22262 | fi | ||
22263 | |||
22264 | |||
22265 | |||
22266 | if test $pkg_failed = yes; then | ||
22267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22268 | $as_echo "no" >&6; } | ||
22269 | |||
22270 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22271 | _pkg_short_errors_supported=yes | ||
22272 | else | ||
22273 | _pkg_short_errors_supported=no | ||
22274 | fi | ||
22275 | if test $_pkg_short_errors_supported = yes; then | ||
22276 | XCB_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xinerama" 2>&1` | ||
22277 | else | ||
22278 | XCB_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xinerama" 2>&1` | ||
22279 | fi | ||
22280 | # Put the nasty error message in config.log where it belongs | ||
22281 | echo "$XCB_XINERAMA_PKG_ERRORS" >&5 | ||
22282 | |||
22283 | have_ecore_x_xcb_xinerama="no" | ||
22284 | elif test $pkg_failed = untried; then | ||
22285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22286 | $as_echo "no" >&6; } | ||
22287 | have_ecore_x_xcb_xinerama="no" | ||
22288 | else | ||
22289 | XCB_XINERAMA_CFLAGS=$pkg_cv_XCB_XINERAMA_CFLAGS | ||
22290 | XCB_XINERAMA_LIBS=$pkg_cv_XCB_XINERAMA_LIBS | ||
22291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22292 | $as_echo "yes" >&6; } | ||
22293 | have_ecore_x_xcb_xinerama="yes" | ||
22294 | requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}" | ||
22295 | |||
22296 | $as_echo "#define ECORE_XCB_XINERAMA 1" >>confdefs.h | ||
22297 | |||
22298 | fi | ||
22299 | else | ||
22300 | have_ecore_x_xcb_xinerama="no" | ||
22301 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xinerama extension explicitly disabled\"" >&5 | ||
22302 | $as_echo "$as_me: \"xinerama extension explicitly disabled\"" >&6;} | ||
22303 | fi | ||
22304 | |||
22305 | if test "x$want_ecore_x_xprint" != "xno"; then | ||
22306 | |||
22307 | pkg_failed=no | ||
22308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XPRINT" >&5 | ||
22309 | $as_echo_n "checking for XCB_XPRINT... " >&6; } | ||
22310 | |||
22311 | if test -n "$XCB_XPRINT_CFLAGS"; then | ||
22312 | pkg_cv_XCB_XPRINT_CFLAGS="$XCB_XPRINT_CFLAGS" | ||
22313 | elif test -n "$PKG_CONFIG"; then | ||
22314 | if test -n "$PKG_CONFIG" && \ | ||
22315 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xprint\""; } >&5 | ||
22316 | ($PKG_CONFIG --exists --print-errors "xcb-xprint") 2>&5 | ||
22317 | ac_status=$? | ||
22318 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22319 | test $ac_status = 0; }; then | ||
22320 | pkg_cv_XCB_XPRINT_CFLAGS=`$PKG_CONFIG --cflags "xcb-xprint" 2>/dev/null` | ||
22321 | else | ||
22322 | pkg_failed=yes | ||
22323 | fi | ||
22324 | else | ||
22325 | pkg_failed=untried | ||
22326 | fi | ||
22327 | if test -n "$XCB_XPRINT_LIBS"; then | ||
22328 | pkg_cv_XCB_XPRINT_LIBS="$XCB_XPRINT_LIBS" | ||
22329 | elif test -n "$PKG_CONFIG"; then | ||
22330 | if test -n "$PKG_CONFIG" && \ | ||
22331 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xprint\""; } >&5 | ||
22332 | ($PKG_CONFIG --exists --print-errors "xcb-xprint") 2>&5 | ||
22333 | ac_status=$? | ||
22334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22335 | test $ac_status = 0; }; then | ||
22336 | pkg_cv_XCB_XPRINT_LIBS=`$PKG_CONFIG --libs "xcb-xprint" 2>/dev/null` | ||
22337 | else | ||
22338 | pkg_failed=yes | ||
22339 | fi | ||
22340 | else | ||
22341 | pkg_failed=untried | ||
22342 | fi | ||
22343 | |||
22344 | |||
22345 | |||
22346 | if test $pkg_failed = yes; then | ||
22347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22348 | $as_echo "no" >&6; } | ||
22349 | |||
22350 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22351 | _pkg_short_errors_supported=yes | ||
22352 | else | ||
22353 | _pkg_short_errors_supported=no | ||
22354 | fi | ||
22355 | if test $_pkg_short_errors_supported = yes; then | ||
22356 | XCB_XPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xprint" 2>&1` | ||
22357 | else | ||
22358 | XCB_XPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xprint" 2>&1` | ||
22359 | fi | ||
22360 | # Put the nasty error message in config.log where it belongs | ||
22361 | echo "$XCB_XPRINT_PKG_ERRORS" >&5 | ||
22362 | |||
22363 | have_ecore_x_xcb_xprint="no" | ||
22364 | elif test $pkg_failed = untried; then | ||
22365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22366 | $as_echo "no" >&6; } | ||
22367 | have_ecore_x_xcb_xprint="no" | ||
22368 | else | ||
22369 | XCB_XPRINT_CFLAGS=$pkg_cv_XCB_XPRINT_CFLAGS | ||
22370 | XCB_XPRINT_LIBS=$pkg_cv_XCB_XPRINT_LIBS | ||
22371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22372 | $as_echo "yes" >&6; } | ||
22373 | have_ecore_x_xcb_xprint="yes" | ||
22374 | requirements_ecore_x="xcb-xprint ${requirements_ecore_x}" | ||
22375 | |||
22376 | $as_echo "#define ECORE_XCB_XPRINT 1" >>confdefs.h | ||
22377 | |||
22378 | fi | ||
22379 | else | ||
22380 | have_ecore_x_xcb_xprint="no" | ||
22381 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xprint extension explicitly disabled\"" >&5 | ||
22382 | $as_echo "$as_me: \"xprint extension explicitly disabled\"" >&6;} | ||
22383 | fi | ||
22384 | |||
22385 | if test "x$want_ecore_x_xtest" != "xno"; then | ||
22386 | |||
22387 | pkg_failed=no | ||
22388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XTEST" >&5 | ||
22389 | $as_echo_n "checking for XCB_XTEST... " >&6; } | ||
22390 | |||
22391 | if test -n "$XCB_XTEST_CFLAGS"; then | ||
22392 | pkg_cv_XCB_XTEST_CFLAGS="$XCB_XTEST_CFLAGS" | ||
22393 | elif test -n "$PKG_CONFIG"; then | ||
22394 | if test -n "$PKG_CONFIG" && \ | ||
22395 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xtest\""; } >&5 | ||
22396 | ($PKG_CONFIG --exists --print-errors "xcb-xtest") 2>&5 | ||
22397 | ac_status=$? | ||
22398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22399 | test $ac_status = 0; }; then | ||
22400 | pkg_cv_XCB_XTEST_CFLAGS=`$PKG_CONFIG --cflags "xcb-xtest" 2>/dev/null` | ||
22401 | else | ||
22402 | pkg_failed=yes | ||
22403 | fi | ||
22404 | else | ||
22405 | pkg_failed=untried | ||
22406 | fi | ||
22407 | if test -n "$XCB_XTEST_LIBS"; then | ||
22408 | pkg_cv_XCB_XTEST_LIBS="$XCB_XTEST_LIBS" | ||
22409 | elif test -n "$PKG_CONFIG"; then | ||
22410 | if test -n "$PKG_CONFIG" && \ | ||
22411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xtest\""; } >&5 | ||
22412 | ($PKG_CONFIG --exists --print-errors "xcb-xtest") 2>&5 | ||
22413 | ac_status=$? | ||
22414 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22415 | test $ac_status = 0; }; then | ||
22416 | pkg_cv_XCB_XTEST_LIBS=`$PKG_CONFIG --libs "xcb-xtest" 2>/dev/null` | ||
22417 | else | ||
22418 | pkg_failed=yes | ||
22419 | fi | ||
22420 | else | ||
22421 | pkg_failed=untried | ||
22422 | fi | ||
22423 | |||
22424 | |||
22425 | |||
22426 | if test $pkg_failed = yes; then | ||
22427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22428 | $as_echo "no" >&6; } | ||
22429 | |||
22430 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22431 | _pkg_short_errors_supported=yes | ||
22432 | else | ||
22433 | _pkg_short_errors_supported=no | ||
22434 | fi | ||
22435 | if test $_pkg_short_errors_supported = yes; then | ||
22436 | XCB_XTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xtest" 2>&1` | ||
22437 | else | ||
22438 | XCB_XTEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xtest" 2>&1` | ||
22439 | fi | ||
22440 | # Put the nasty error message in config.log where it belongs | ||
22441 | echo "$XCB_XTEST_PKG_ERRORS" >&5 | ||
22442 | |||
22443 | have_ecore_x_xcb_xtest="no" | ||
22444 | elif test $pkg_failed = untried; then | ||
22445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22446 | $as_echo "no" >&6; } | ||
22447 | have_ecore_x_xcb_xtest="no" | ||
22448 | else | ||
22449 | XCB_XTEST_CFLAGS=$pkg_cv_XCB_XTEST_CFLAGS | ||
22450 | XCB_XTEST_LIBS=$pkg_cv_XCB_XTEST_LIBS | ||
22451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22452 | $as_echo "yes" >&6; } | ||
22453 | have_ecore_x_xcb_xtest="yes" | ||
22454 | requirements_ecore_x="xcb-xtest ${requirements_ecore_x}" | ||
22455 | |||
22456 | $as_echo "#define ECORE_XCB_XTEST 1" >>confdefs.h | ||
22457 | |||
22458 | fi | ||
22459 | else | ||
22460 | have_ecore_x_xcb_xtest="no" | ||
22461 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xtest extension explicitly disabled\"" >&5 | ||
22462 | $as_echo "$as_me: \"xtest extension explicitly disabled\"" >&6;} | ||
22463 | fi | ||
22464 | |||
22465 | # input extension disabled currently in xcb as xcb-input has some issues | ||
22466 | want_ecore_x_input="no" | ||
22467 | if test "x$want_ecore_x_input" != "xno"; then | ||
22468 | |||
22469 | pkg_failed=no | ||
22470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XINPUT" >&5 | ||
22471 | $as_echo_n "checking for XCB_XINPUT... " >&6; } | ||
22472 | |||
22473 | if test -n "$XCB_XINPUT_CFLAGS"; then | ||
22474 | pkg_cv_XCB_XINPUT_CFLAGS="$XCB_XINPUT_CFLAGS" | ||
22475 | elif test -n "$PKG_CONFIG"; then | ||
22476 | if test -n "$PKG_CONFIG" && \ | ||
22477 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xinput\""; } >&5 | ||
22478 | ($PKG_CONFIG --exists --print-errors "xcb-xinput") 2>&5 | ||
22479 | ac_status=$? | ||
22480 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22481 | test $ac_status = 0; }; then | ||
22482 | pkg_cv_XCB_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xcb-xinput" 2>/dev/null` | ||
22483 | else | ||
22484 | pkg_failed=yes | ||
22485 | fi | ||
22486 | else | ||
22487 | pkg_failed=untried | ||
22488 | fi | ||
22489 | if test -n "$XCB_XINPUT_LIBS"; then | ||
22490 | pkg_cv_XCB_XINPUT_LIBS="$XCB_XINPUT_LIBS" | ||
22491 | elif test -n "$PKG_CONFIG"; then | ||
22492 | if test -n "$PKG_CONFIG" && \ | ||
22493 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xinput\""; } >&5 | ||
22494 | ($PKG_CONFIG --exists --print-errors "xcb-xinput") 2>&5 | ||
22495 | ac_status=$? | ||
22496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22497 | test $ac_status = 0; }; then | ||
22498 | pkg_cv_XCB_XINPUT_LIBS=`$PKG_CONFIG --libs "xcb-xinput" 2>/dev/null` | ||
22499 | else | ||
22500 | pkg_failed=yes | ||
22501 | fi | ||
22502 | else | ||
22503 | pkg_failed=untried | ||
22504 | fi | ||
22505 | |||
22506 | |||
22507 | |||
22508 | if test $pkg_failed = yes; then | ||
22509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22510 | $as_echo "no" >&6; } | ||
22511 | |||
22512 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22513 | _pkg_short_errors_supported=yes | ||
22514 | else | ||
22515 | _pkg_short_errors_supported=no | ||
22516 | fi | ||
22517 | if test $_pkg_short_errors_supported = yes; then | ||
22518 | XCB_XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xinput" 2>&1` | ||
22519 | else | ||
22520 | XCB_XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xinput" 2>&1` | ||
22521 | fi | ||
22522 | # Put the nasty error message in config.log where it belongs | ||
22523 | echo "$XCB_XINPUT_PKG_ERRORS" >&5 | ||
22524 | |||
22525 | have_ecore_x_xcb_xinput="no" | ||
22526 | elif test $pkg_failed = untried; then | ||
22527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22528 | $as_echo "no" >&6; } | ||
22529 | have_ecore_x_xcb_xinput="no" | ||
22530 | else | ||
22531 | XCB_XINPUT_CFLAGS=$pkg_cv_XCB_XINPUT_CFLAGS | ||
22532 | XCB_XINPUT_LIBS=$pkg_cv_XCB_XINPUT_LIBS | ||
22533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22534 | $as_echo "yes" >&6; } | ||
22535 | have_ecore_x_xcb_xinput="yes" | ||
22536 | requirements_ecore_x="xcb-xinput ${requirements_ecore_x}" | ||
22537 | |||
22538 | $as_echo "#define ECORE_XCB_XINPUT 1" >>confdefs.h | ||
22539 | |||
22540 | fi | ||
22541 | else | ||
22542 | have_ecore_x_xcb_xinput="no" | ||
22543 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xinput extension explicitly disabled\"" >&5 | ||
22544 | $as_echo "$as_me: \"xinput extension explicitly disabled\"" >&6;} | ||
22545 | fi | ||
22546 | |||
22547 | if test "x$want_ecore_x_cursor" != "xno"; then | ||
22548 | |||
22549 | pkg_failed=no | ||
22550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_CURSOR" >&5 | ||
22551 | $as_echo_n "checking for XCB_CURSOR... " >&6; } | ||
22552 | |||
22553 | if test -n "$XCB_CURSOR_CFLAGS"; then | ||
22554 | pkg_cv_XCB_CURSOR_CFLAGS="$XCB_CURSOR_CFLAGS" | ||
22555 | elif test -n "$PKG_CONFIG"; then | ||
22556 | if test -n "$PKG_CONFIG" && \ | ||
22557 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render xcb-renderutil\""; } >&5 | ||
22558 | ($PKG_CONFIG --exists --print-errors "xcb-render xcb-renderutil") 2>&5 | ||
22559 | ac_status=$? | ||
22560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22561 | test $ac_status = 0; }; then | ||
22562 | pkg_cv_XCB_CURSOR_CFLAGS=`$PKG_CONFIG --cflags "xcb-render xcb-renderutil" 2>/dev/null` | ||
22563 | else | ||
22564 | pkg_failed=yes | ||
22565 | fi | ||
22566 | else | ||
22567 | pkg_failed=untried | ||
22568 | fi | ||
22569 | if test -n "$XCB_CURSOR_LIBS"; then | ||
22570 | pkg_cv_XCB_CURSOR_LIBS="$XCB_CURSOR_LIBS" | ||
22571 | elif test -n "$PKG_CONFIG"; then | ||
22572 | if test -n "$PKG_CONFIG" && \ | ||
22573 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render xcb-renderutil\""; } >&5 | ||
22574 | ($PKG_CONFIG --exists --print-errors "xcb-render xcb-renderutil") 2>&5 | ||
22575 | ac_status=$? | ||
22576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22577 | test $ac_status = 0; }; then | ||
22578 | pkg_cv_XCB_CURSOR_LIBS=`$PKG_CONFIG --libs "xcb-render xcb-renderutil" 2>/dev/null` | ||
22579 | else | ||
22580 | pkg_failed=yes | ||
22581 | fi | ||
22582 | else | ||
22583 | pkg_failed=untried | ||
22584 | fi | ||
22585 | |||
22586 | |||
22587 | |||
22588 | if test $pkg_failed = yes; then | ||
22589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22590 | $as_echo "no" >&6; } | ||
22591 | |||
22592 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22593 | _pkg_short_errors_supported=yes | ||
22594 | else | ||
22595 | _pkg_short_errors_supported=no | ||
22596 | fi | ||
22597 | if test $_pkg_short_errors_supported = yes; then | ||
22598 | XCB_CURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-render xcb-renderutil" 2>&1` | ||
22599 | else | ||
22600 | XCB_CURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-render xcb-renderutil" 2>&1` | ||
22601 | fi | ||
22602 | # Put the nasty error message in config.log where it belongs | ||
22603 | echo "$XCB_CURSOR_PKG_ERRORS" >&5 | ||
22604 | |||
22605 | have_ecore_x_xcb_cursor="no" | ||
22606 | elif test $pkg_failed = untried; then | ||
22607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22608 | $as_echo "no" >&6; } | ||
22609 | have_ecore_x_xcb_cursor="no" | ||
22610 | else | ||
22611 | XCB_CURSOR_CFLAGS=$pkg_cv_XCB_CURSOR_CFLAGS | ||
22612 | XCB_CURSOR_LIBS=$pkg_cv_XCB_CURSOR_LIBS | ||
22613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22614 | $as_echo "yes" >&6; } | ||
22615 | have_ecore_x_xcb_cursor="yes" | ||
22616 | requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}" | ||
22617 | |||
22618 | $as_echo "#define ECORE_XCB_CURSOR 1" >>confdefs.h | ||
22619 | |||
22620 | fi | ||
22621 | else | ||
22622 | have_ecore_x_xcb_cursor="no" | ||
22623 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"cursor extension explicitly disabled\"" >&5 | ||
22624 | $as_echo "$as_me: \"cursor extension explicitly disabled\"" >&6;} | ||
22625 | fi | ||
22626 | |||
22627 | # if test "x$want_ecore_x_dri" != "xno"; then | ||
22628 | # PKG_CHECK_MODULES(XCB_DRI, xcb-dri2, | ||
22629 | # [ have_ecore_x_xcb_dri="yes" | ||
22630 | # requirements_ecore_x="xcb-dri2 ${requirements_ecore_x}" | ||
22631 | # AC_DEFINE(ECORE_XCB_DRI, 1, [Build support for XCB dri/dri2]) ], | ||
22632 | # [ have_ecore_x_xcb_dri="no" ]) | ||
22633 | # else | ||
22634 | # have_ecore_x_xcb_dri="no" | ||
22635 | # AC_MSG_NOTICE("dri extension explicitly disabled") | ||
22636 | # fi | ||
22637 | |||
22638 | |||
22639 | $as_echo "#define HAVE_ECORE_X_XCB 1" >>confdefs.h | ||
22640 | |||
22641 | |||
22642 | x_cflags=$ECORE_XCB_CFLAGS | ||
22643 | x_libs=$ECORE_XCB_LIBS | ||
22644 | have_x="yes" | ||
22645 | |||
22646 | have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB" | ||
22647 | |||
22648 | fi | ||
22649 | fi | ||
22650 | |||
22651 | if ! test "x$have_ecore_x_xcb" = "xyes" ; then | ||
22652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
22653 | $as_echo_n "checking for X... " >&6; } | ||
22654 | |||
22655 | |||
22656 | # Check whether --with-x was given. | ||
22657 | if test "${with_x+set}" = set; then : | ||
22658 | withval=$with_x; | ||
22659 | fi | ||
22660 | |||
22661 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
22662 | if test "x$with_x" = xno; then | ||
22663 | # The user explicitly disabled X. | ||
22664 | have_x=disabled | ||
22665 | else | ||
22666 | case $x_includes,$x_libraries in #( | ||
22667 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
22668 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
22669 | $as_echo_n "(cached) " >&6 | ||
22670 | else | ||
22671 | # One or both of the vars are not set, and there is no cached value. | ||
22672 | ac_x_includes=no ac_x_libraries=no | ||
22673 | rm -f -r conftest.dir | ||
22674 | if mkdir conftest.dir; then | ||
22675 | cd conftest.dir | ||
22676 | cat >Imakefile <<'_ACEOF' | ||
22677 | incroot: | ||
22678 | @echo incroot='${INCROOT}' | ||
22679 | usrlibdir: | ||
22680 | @echo usrlibdir='${USRLIBDIR}' | ||
22681 | libdir: | ||
22682 | @echo libdir='${LIBDIR}' | ||
22683 | _ACEOF | ||
22684 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
22685 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
22686 | for ac_var in incroot usrlibdir libdir; do | ||
22687 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
22688 | done | ||
22689 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
22690 | for ac_extension in a so sl dylib la dll; do | ||
22691 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
22692 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
22693 | ac_im_usrlibdir=$ac_im_libdir; break | ||
22694 | fi | ||
22695 | done | ||
22696 | # Screen out bogus values from the imake configuration. They are | ||
22697 | # bogus both because they are the default anyway, and because | ||
22698 | # using them would break gcc on systems where it needs fixed includes. | ||
22699 | case $ac_im_incroot in | ||
22700 | /usr/include) ac_x_includes= ;; | ||
22701 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
22702 | esac | ||
22703 | case $ac_im_usrlibdir in | ||
22704 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
22705 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
22706 | esac | ||
22707 | fi | ||
22708 | cd .. | ||
22709 | rm -f -r conftest.dir | ||
22710 | fi | ||
22711 | |||
22712 | # Standard set of common directories for X headers. | ||
22713 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
22714 | ac_x_header_dirs=' | ||
22715 | /usr/X11/include | ||
22716 | /usr/X11R7/include | ||
22717 | /usr/X11R6/include | ||
22718 | /usr/X11R5/include | ||
22719 | /usr/X11R4/include | ||
22720 | |||
22721 | /usr/include/X11 | ||
22722 | /usr/include/X11R7 | ||
22723 | /usr/include/X11R6 | ||
22724 | /usr/include/X11R5 | ||
22725 | /usr/include/X11R4 | ||
22726 | |||
22727 | /usr/local/X11/include | ||
22728 | /usr/local/X11R7/include | ||
22729 | /usr/local/X11R6/include | ||
22730 | /usr/local/X11R5/include | ||
22731 | /usr/local/X11R4/include | ||
22732 | |||
22733 | /usr/local/include/X11 | ||
22734 | /usr/local/include/X11R7 | ||
22735 | /usr/local/include/X11R6 | ||
22736 | /usr/local/include/X11R5 | ||
22737 | /usr/local/include/X11R4 | ||
22738 | |||
22739 | /usr/X386/include | ||
22740 | /usr/x386/include | ||
22741 | /usr/XFree86/include/X11 | ||
22742 | |||
22743 | /usr/include | ||
22744 | /usr/local/include | ||
22745 | /usr/unsupported/include | ||
22746 | /usr/athena/include | ||
22747 | /usr/local/x11r5/include | ||
22748 | /usr/lpp/Xamples/include | ||
22749 | |||
22750 | /usr/openwin/include | ||
22751 | /usr/openwin/share/include' | ||
22752 | |||
22753 | if test "$ac_x_includes" = no; then | ||
22754 | # Guess where to find include files, by looking for Xlib.h. | ||
22755 | # First, try using that file with no special directory specified. | ||
22756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22757 | /* end confdefs.h. */ | ||
22758 | #include <X11/Xlib.h> | ||
22759 | _ACEOF | ||
22760 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
22761 | # We can compile using X headers with no special include directory. | ||
22762 | ac_x_includes= | ||
22763 | else | ||
22764 | for ac_dir in $ac_x_header_dirs; do | ||
22765 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
22766 | ac_x_includes=$ac_dir | ||
22767 | break | ||
22768 | fi | ||
22769 | done | ||
22770 | fi | ||
22771 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
22772 | fi # $ac_x_includes = no | ||
22773 | |||
22774 | if test "$ac_x_libraries" = no; then | ||
22775 | # Check for the libraries. | ||
22776 | # See if we find them without any special options. | ||
22777 | # Don't add to $LIBS permanently. | ||
22778 | ac_save_LIBS=$LIBS | ||
22779 | LIBS="-lX11 $LIBS" | ||
22780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22781 | /* end confdefs.h. */ | ||
22782 | #include <X11/Xlib.h> | ||
22783 | int | ||
22784 | main () | ||
22785 | { | ||
22786 | XrmInitialize () | ||
22787 | ; | ||
22788 | return 0; | ||
22789 | } | ||
22790 | _ACEOF | ||
22791 | if ac_fn_c_try_link "$LINENO"; then : | ||
22792 | LIBS=$ac_save_LIBS | ||
22793 | # We can link X programs with no special library path. | ||
22794 | ac_x_libraries= | ||
22795 | else | ||
22796 | LIBS=$ac_save_LIBS | ||
22797 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
22798 | do | ||
22799 | # Don't even attempt the hair of trying to link an X program! | ||
22800 | for ac_extension in a so sl dylib la dll; do | ||
22801 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
22802 | ac_x_libraries=$ac_dir | ||
22803 | break 2 | ||
22804 | fi | ||
22805 | done | ||
22806 | done | ||
22807 | fi | ||
22808 | rm -f core conftest.err conftest.$ac_objext \ | ||
22809 | conftest$ac_exeext conftest.$ac_ext | ||
22810 | fi # $ac_x_libraries = no | ||
22811 | |||
22812 | case $ac_x_includes,$ac_x_libraries in #( | ||
22813 | no,* | *,no | *\'*) | ||
22814 | # Didn't find X, or a directory has "'" in its name. | ||
22815 | ac_cv_have_x="have_x=no";; #( | ||
22816 | *) | ||
22817 | # Record where we found X for the cache. | ||
22818 | ac_cv_have_x="have_x=yes\ | ||
22819 | ac_x_includes='$ac_x_includes'\ | ||
22820 | ac_x_libraries='$ac_x_libraries'" | ||
22821 | esac | ||
22822 | fi | ||
22823 | ;; #( | ||
22824 | *) have_x=yes;; | ||
22825 | esac | ||
22826 | eval "$ac_cv_have_x" | ||
22827 | fi # $with_x != no | ||
22828 | |||
22829 | if test "$have_x" != yes; then | ||
22830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
22831 | $as_echo "$have_x" >&6; } | ||
22832 | no_x=yes | ||
22833 | else | ||
22834 | # If each of the values was on the command line, it overrides each guess. | ||
22835 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
22836 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
22837 | # Update the cache value to reflect the command line values. | ||
22838 | ac_cv_have_x="have_x=yes\ | ||
22839 | ac_x_includes='$x_includes'\ | ||
22840 | ac_x_libraries='$x_libraries'" | ||
22841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
22842 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
22843 | fi | ||
22844 | |||
22845 | if test "$no_x" = yes; then | ||
22846 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
22847 | |||
22848 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
22849 | |||
22850 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
22851 | else | ||
22852 | if test -n "$x_includes"; then | ||
22853 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
22854 | fi | ||
22855 | |||
22856 | # It would also be nice to do this for all -L options, not just this one. | ||
22857 | if test -n "$x_libraries"; then | ||
22858 | X_LIBS="$X_LIBS -L$x_libraries" | ||
22859 | # For Solaris; some versions of Sun CC require a space after -R and | ||
22860 | # others require no space. Words are not sufficient . . . . | ||
22861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
22862 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
22863 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
22864 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
22865 | ac_c_werror_flag=yes | ||
22866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22867 | /* end confdefs.h. */ | ||
22868 | |||
22869 | int | ||
22870 | main () | ||
22871 | { | ||
22872 | |||
22873 | ; | ||
22874 | return 0; | ||
22875 | } | ||
22876 | _ACEOF | ||
22877 | if ac_fn_c_try_link "$LINENO"; then : | ||
22878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22879 | $as_echo "no" >&6; } | ||
22880 | X_LIBS="$X_LIBS -R$x_libraries" | ||
22881 | else | ||
22882 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
22883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22884 | /* end confdefs.h. */ | ||
22885 | |||
22886 | int | ||
22887 | main () | ||
22888 | { | ||
22889 | |||
22890 | ; | ||
22891 | return 0; | ||
22892 | } | ||
22893 | _ACEOF | ||
22894 | if ac_fn_c_try_link "$LINENO"; then : | ||
22895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22896 | $as_echo "yes" >&6; } | ||
22897 | X_LIBS="$X_LIBS -R $x_libraries" | ||
22898 | else | ||
22899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
22900 | $as_echo "neither works" >&6; } | ||
22901 | fi | ||
22902 | rm -f core conftest.err conftest.$ac_objext \ | ||
22903 | conftest$ac_exeext conftest.$ac_ext | ||
22904 | fi | ||
22905 | rm -f core conftest.err conftest.$ac_objext \ | ||
22906 | conftest$ac_exeext conftest.$ac_ext | ||
22907 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
22908 | LIBS=$ac_xsave_LIBS | ||
22909 | fi | ||
22910 | |||
22911 | # Check for system-dependent libraries X programs must link with. | ||
22912 | # Do this before checking for the system-independent R6 libraries | ||
22913 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
22914 | |||
22915 | if test "$ISC" = yes; then | ||
22916 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
22917 | else | ||
22918 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
22919 | # libraries were built with DECnet support. And Karl Berry says | ||
22920 | # the Alpha needs dnet_stub (dnet does not exist). | ||
22921 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
22922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22923 | /* end confdefs.h. */ | ||
22924 | |||
22925 | /* Override any GCC internal prototype to avoid an error. | ||
22926 | Use char because int might match the return type of a GCC | ||
22927 | builtin and then its argument prototype would still apply. */ | ||
22928 | #ifdef __cplusplus | ||
22929 | extern "C" | ||
22930 | #endif | ||
22931 | char XOpenDisplay (); | ||
22932 | int | ||
22933 | main () | ||
22934 | { | ||
22935 | return XOpenDisplay (); | ||
22936 | ; | ||
22937 | return 0; | ||
22938 | } | ||
22939 | _ACEOF | ||
22940 | if ac_fn_c_try_link "$LINENO"; then : | ||
22941 | |||
22942 | else | ||
22943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
22944 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
22945 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
22946 | $as_echo_n "(cached) " >&6 | ||
22947 | else | ||
22948 | ac_check_lib_save_LIBS=$LIBS | ||
22949 | LIBS="-ldnet $LIBS" | ||
22950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22951 | /* end confdefs.h. */ | ||
22952 | |||
22953 | /* Override any GCC internal prototype to avoid an error. | ||
22954 | Use char because int might match the return type of a GCC | ||
22955 | builtin and then its argument prototype would still apply. */ | ||
22956 | #ifdef __cplusplus | ||
22957 | extern "C" | ||
22958 | #endif | ||
22959 | char dnet_ntoa (); | ||
22960 | int | ||
22961 | main () | ||
22962 | { | ||
22963 | return dnet_ntoa (); | ||
22964 | ; | ||
22965 | return 0; | ||
22966 | } | ||
22967 | _ACEOF | ||
22968 | if ac_fn_c_try_link "$LINENO"; then : | ||
22969 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
22970 | else | ||
22971 | ac_cv_lib_dnet_dnet_ntoa=no | ||
22972 | fi | ||
22973 | rm -f core conftest.err conftest.$ac_objext \ | ||
22974 | conftest$ac_exeext conftest.$ac_ext | ||
22975 | LIBS=$ac_check_lib_save_LIBS | ||
22976 | fi | ||
22977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
22978 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
22979 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
22980 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
22981 | fi | ||
22982 | |||
22983 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
22984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
22985 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
22986 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
22987 | $as_echo_n "(cached) " >&6 | ||
22988 | else | ||
22989 | ac_check_lib_save_LIBS=$LIBS | ||
22990 | LIBS="-ldnet_stub $LIBS" | ||
22991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22992 | /* end confdefs.h. */ | ||
22993 | |||
22994 | /* Override any GCC internal prototype to avoid an error. | ||
22995 | Use char because int might match the return type of a GCC | ||
22996 | builtin and then its argument prototype would still apply. */ | ||
22997 | #ifdef __cplusplus | ||
22998 | extern "C" | ||
22999 | #endif | ||
23000 | char dnet_ntoa (); | ||
23001 | int | ||
23002 | main () | ||
23003 | { | ||
23004 | return dnet_ntoa (); | ||
23005 | ; | ||
23006 | return 0; | ||
23007 | } | ||
23008 | _ACEOF | ||
23009 | if ac_fn_c_try_link "$LINENO"; then : | ||
23010 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
23011 | else | ||
23012 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
23013 | fi | ||
23014 | rm -f core conftest.err conftest.$ac_objext \ | ||
23015 | conftest$ac_exeext conftest.$ac_ext | ||
23016 | LIBS=$ac_check_lib_save_LIBS | ||
23017 | fi | ||
23018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
23019 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
23020 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
23021 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
23022 | fi | ||
23023 | |||
23024 | fi | ||
23025 | fi | ||
23026 | rm -f core conftest.err conftest.$ac_objext \ | ||
23027 | conftest$ac_exeext conftest.$ac_ext | ||
23028 | LIBS="$ac_xsave_LIBS" | ||
23029 | |||
23030 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
23031 | # to get the SysV transport functions. | ||
23032 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
23033 | # needs -lnsl. | ||
23034 | # The nsl library prevents programs from opening the X display | ||
23035 | # on Irix 5.2, according to T.E. Dickey. | ||
23036 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
23037 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
23038 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
23039 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
23040 | |||
23041 | fi | ||
23042 | |||
23043 | if test $ac_cv_func_gethostbyname = no; then | ||
23044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
23045 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
23046 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
23047 | $as_echo_n "(cached) " >&6 | ||
23048 | else | ||
23049 | ac_check_lib_save_LIBS=$LIBS | ||
23050 | LIBS="-lnsl $LIBS" | ||
23051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23052 | /* end confdefs.h. */ | ||
23053 | |||
23054 | /* Override any GCC internal prototype to avoid an error. | ||
23055 | Use char because int might match the return type of a GCC | ||
23056 | builtin and then its argument prototype would still apply. */ | ||
23057 | #ifdef __cplusplus | ||
23058 | extern "C" | ||
23059 | #endif | ||
23060 | char gethostbyname (); | ||
23061 | int | ||
23062 | main () | ||
23063 | { | ||
23064 | return gethostbyname (); | ||
23065 | ; | ||
23066 | return 0; | ||
23067 | } | ||
23068 | _ACEOF | ||
23069 | if ac_fn_c_try_link "$LINENO"; then : | ||
23070 | ac_cv_lib_nsl_gethostbyname=yes | ||
23071 | else | ||
23072 | ac_cv_lib_nsl_gethostbyname=no | ||
23073 | fi | ||
23074 | rm -f core conftest.err conftest.$ac_objext \ | ||
23075 | conftest$ac_exeext conftest.$ac_ext | ||
23076 | LIBS=$ac_check_lib_save_LIBS | ||
23077 | fi | ||
23078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
23079 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
23080 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
23081 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
23082 | fi | ||
23083 | |||
23084 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
23085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
23086 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
23087 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
23088 | $as_echo_n "(cached) " >&6 | ||
23089 | else | ||
23090 | ac_check_lib_save_LIBS=$LIBS | ||
23091 | LIBS="-lbsd $LIBS" | ||
23092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23093 | /* end confdefs.h. */ | ||
23094 | |||
23095 | /* Override any GCC internal prototype to avoid an error. | ||
23096 | Use char because int might match the return type of a GCC | ||
23097 | builtin and then its argument prototype would still apply. */ | ||
23098 | #ifdef __cplusplus | ||
23099 | extern "C" | ||
23100 | #endif | ||
23101 | char gethostbyname (); | ||
23102 | int | ||
23103 | main () | ||
23104 | { | ||
23105 | return gethostbyname (); | ||
23106 | ; | ||
23107 | return 0; | ||
23108 | } | ||
23109 | _ACEOF | ||
23110 | if ac_fn_c_try_link "$LINENO"; then : | ||
23111 | ac_cv_lib_bsd_gethostbyname=yes | ||
23112 | else | ||
23113 | ac_cv_lib_bsd_gethostbyname=no | ||
23114 | fi | ||
23115 | rm -f core conftest.err conftest.$ac_objext \ | ||
23116 | conftest$ac_exeext conftest.$ac_ext | ||
23117 | LIBS=$ac_check_lib_save_LIBS | ||
23118 | fi | ||
23119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
23120 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
23121 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
23122 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
23123 | fi | ||
23124 | |||
23125 | fi | ||
23126 | fi | ||
23127 | |||
23128 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
23129 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
23130 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
23131 | # on later versions), says Simon Leinen: it contains gethostby* | ||
23132 | # variants that don't use the name server (or something). -lsocket | ||
23133 | # must be given before -lnsl if both are needed. We assume that | ||
23134 | # if connect needs -lnsl, so does gethostbyname. | ||
23135 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
23136 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
23137 | |||
23138 | fi | ||
23139 | |||
23140 | if test $ac_cv_func_connect = no; then | ||
23141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
23142 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
23143 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
23144 | $as_echo_n "(cached) " >&6 | ||
23145 | else | ||
23146 | ac_check_lib_save_LIBS=$LIBS | ||
23147 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
23148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23149 | /* end confdefs.h. */ | ||
23150 | |||
23151 | /* Override any GCC internal prototype to avoid an error. | ||
23152 | Use char because int might match the return type of a GCC | ||
23153 | builtin and then its argument prototype would still apply. */ | ||
23154 | #ifdef __cplusplus | ||
23155 | extern "C" | ||
23156 | #endif | ||
23157 | char connect (); | ||
23158 | int | ||
23159 | main () | ||
23160 | { | ||
23161 | return connect (); | ||
23162 | ; | ||
23163 | return 0; | ||
23164 | } | ||
23165 | _ACEOF | ||
23166 | if ac_fn_c_try_link "$LINENO"; then : | ||
23167 | ac_cv_lib_socket_connect=yes | ||
23168 | else | ||
23169 | ac_cv_lib_socket_connect=no | ||
23170 | fi | ||
23171 | rm -f core conftest.err conftest.$ac_objext \ | ||
23172 | conftest$ac_exeext conftest.$ac_ext | ||
23173 | LIBS=$ac_check_lib_save_LIBS | ||
23174 | fi | ||
23175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
23176 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
23177 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
23178 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
23179 | fi | ||
23180 | |||
23181 | fi | ||
23182 | |||
23183 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
23184 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
23185 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
23186 | |||
23187 | fi | ||
23188 | |||
23189 | if test $ac_cv_func_remove = no; then | ||
23190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
23191 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
23192 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
23193 | $as_echo_n "(cached) " >&6 | ||
23194 | else | ||
23195 | ac_check_lib_save_LIBS=$LIBS | ||
23196 | LIBS="-lposix $LIBS" | ||
23197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23198 | /* end confdefs.h. */ | ||
23199 | |||
23200 | /* Override any GCC internal prototype to avoid an error. | ||
23201 | Use char because int might match the return type of a GCC | ||
23202 | builtin and then its argument prototype would still apply. */ | ||
23203 | #ifdef __cplusplus | ||
23204 | extern "C" | ||
23205 | #endif | ||
23206 | char remove (); | ||
23207 | int | ||
23208 | main () | ||
23209 | { | ||
23210 | return remove (); | ||
23211 | ; | ||
23212 | return 0; | ||
23213 | } | ||
23214 | _ACEOF | ||
23215 | if ac_fn_c_try_link "$LINENO"; then : | ||
23216 | ac_cv_lib_posix_remove=yes | ||
23217 | else | ||
23218 | ac_cv_lib_posix_remove=no | ||
23219 | fi | ||
23220 | rm -f core conftest.err conftest.$ac_objext \ | ||
23221 | conftest$ac_exeext conftest.$ac_ext | ||
23222 | LIBS=$ac_check_lib_save_LIBS | ||
23223 | fi | ||
23224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
23225 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
23226 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
23227 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
23228 | fi | ||
23229 | |||
23230 | fi | ||
23231 | |||
23232 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
23233 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
23234 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
23235 | |||
23236 | fi | ||
23237 | |||
23238 | if test $ac_cv_func_shmat = no; then | ||
23239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
23240 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
23241 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
23242 | $as_echo_n "(cached) " >&6 | ||
23243 | else | ||
23244 | ac_check_lib_save_LIBS=$LIBS | ||
23245 | LIBS="-lipc $LIBS" | ||
23246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23247 | /* end confdefs.h. */ | ||
23248 | |||
23249 | /* Override any GCC internal prototype to avoid an error. | ||
23250 | Use char because int might match the return type of a GCC | ||
23251 | builtin and then its argument prototype would still apply. */ | ||
23252 | #ifdef __cplusplus | ||
23253 | extern "C" | ||
23254 | #endif | ||
23255 | char shmat (); | ||
23256 | int | ||
23257 | main () | ||
23258 | { | ||
23259 | return shmat (); | ||
23260 | ; | ||
23261 | return 0; | ||
23262 | } | ||
23263 | _ACEOF | ||
23264 | if ac_fn_c_try_link "$LINENO"; then : | ||
23265 | ac_cv_lib_ipc_shmat=yes | ||
23266 | else | ||
23267 | ac_cv_lib_ipc_shmat=no | ||
23268 | fi | ||
23269 | rm -f core conftest.err conftest.$ac_objext \ | ||
23270 | conftest$ac_exeext conftest.$ac_ext | ||
23271 | LIBS=$ac_check_lib_save_LIBS | ||
23272 | fi | ||
23273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
23274 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
23275 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
23276 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
23277 | fi | ||
23278 | |||
23279 | fi | ||
23280 | fi | ||
23281 | |||
23282 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
23283 | ac_save_LDFLAGS=$LDFLAGS | ||
23284 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
23285 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
23286 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
23287 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
23288 | # These have to be linked with before -lX11, unlike the other | ||
23289 | # libraries we check for below, so use a different variable. | ||
23290 | # John Interrante, Karl Berry | ||
23291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
23292 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
23293 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
23294 | $as_echo_n "(cached) " >&6 | ||
23295 | else | ||
23296 | ac_check_lib_save_LIBS=$LIBS | ||
23297 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
23298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23299 | /* end confdefs.h. */ | ||
23300 | |||
23301 | /* Override any GCC internal prototype to avoid an error. | ||
23302 | Use char because int might match the return type of a GCC | ||
23303 | builtin and then its argument prototype would still apply. */ | ||
23304 | #ifdef __cplusplus | ||
23305 | extern "C" | ||
23306 | #endif | ||
23307 | char IceConnectionNumber (); | ||
23308 | int | ||
23309 | main () | ||
23310 | { | ||
23311 | return IceConnectionNumber (); | ||
23312 | ; | ||
23313 | return 0; | ||
23314 | } | ||
23315 | _ACEOF | ||
23316 | if ac_fn_c_try_link "$LINENO"; then : | ||
23317 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
23318 | else | ||
23319 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
23320 | fi | ||
23321 | rm -f core conftest.err conftest.$ac_objext \ | ||
23322 | conftest$ac_exeext conftest.$ac_ext | ||
23323 | LIBS=$ac_check_lib_save_LIBS | ||
23324 | fi | ||
23325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
23326 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
23327 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
23328 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
23329 | fi | ||
23330 | |||
23331 | LDFLAGS=$ac_save_LDFLAGS | ||
23332 | |||
23333 | fi | ||
23334 | |||
23335 | ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default" | ||
23336 | if test "x$ac_cv_header_X11_X_h" = x""yes; then : | ||
23337 | |||
23338 | if test "x$want_evas_simple_x11" = "xyes"; then | ||
23339 | x_libs="${x_libs} -lX11 -lXext" | ||
23340 | else | ||
23341 | x_dir=${x_dir:-/usr/X11R6} | ||
23342 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
23343 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" | ||
23344 | fi | ||
23345 | have_ecore_x_xlib="yes" | ||
23346 | |||
23347 | |||
23348 | fi | ||
23349 | |||
23350 | |||
23351 | |||
23352 | if test "x$have_ecore_x_xlib" = "xyes"; then | ||
23353 | Xcursor_libs="" | ||
23354 | Xcursor_cflags="" | ||
23355 | use_Xcursor="no" | ||
23356 | PCFLAGS=$CFLAGS | ||
23357 | CFLAGS="$x_cflags $x_includes" | ||
23358 | |||
23359 | if test "x$want_ecore_x_cursor" = "xyes"; then | ||
23360 | ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" " | ||
23361 | #include <X11/Xlib.h> | ||
23362 | |||
23363 | |||
23364 | " | ||
23365 | if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = x""yes; then : | ||
23366 | |||
23367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageLoadCursor in -lXcursor" >&5 | ||
23368 | $as_echo_n "checking for XcursorImageLoadCursor in -lXcursor... " >&6; } | ||
23369 | if test "${ac_cv_lib_Xcursor_XcursorImageLoadCursor+set}" = set; then : | ||
23370 | $as_echo_n "(cached) " >&6 | ||
23371 | else | ||
23372 | ac_check_lib_save_LIBS=$LIBS | ||
23373 | LIBS="-lXcursor | ||
23374 | $x_libs -lXrender | ||
23375 | |||
23376 | $LIBS" | ||
23377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23378 | /* end confdefs.h. */ | ||
23379 | |||
23380 | /* Override any GCC internal prototype to avoid an error. | ||
23381 | Use char because int might match the return type of a GCC | ||
23382 | builtin and then its argument prototype would still apply. */ | ||
23383 | #ifdef __cplusplus | ||
23384 | extern "C" | ||
23385 | #endif | ||
23386 | char XcursorImageLoadCursor (); | ||
23387 | int | ||
23388 | main () | ||
23389 | { | ||
23390 | return XcursorImageLoadCursor (); | ||
23391 | ; | ||
23392 | return 0; | ||
23393 | } | ||
23394 | _ACEOF | ||
23395 | if ac_fn_c_try_link "$LINENO"; then : | ||
23396 | ac_cv_lib_Xcursor_XcursorImageLoadCursor=yes | ||
23397 | else | ||
23398 | ac_cv_lib_Xcursor_XcursorImageLoadCursor=no | ||
23399 | fi | ||
23400 | rm -f core conftest.err conftest.$ac_objext \ | ||
23401 | conftest$ac_exeext conftest.$ac_ext | ||
23402 | LIBS=$ac_check_lib_save_LIBS | ||
23403 | fi | ||
23404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageLoadCursor" >&5 | ||
23405 | $as_echo "$ac_cv_lib_Xcursor_XcursorImageLoadCursor" >&6; } | ||
23406 | if test "x$ac_cv_lib_Xcursor_XcursorImageLoadCursor" = x""yes; then : | ||
23407 | |||
23408 | |||
23409 | $as_echo "#define ECORE_XCURSOR 1" >>confdefs.h | ||
23410 | |||
23411 | Xcursor_cflags="" | ||
23412 | Xcursor_libs="-lXcursor" | ||
23413 | use_Xcursor="yes" | ||
23414 | |||
23415 | else | ||
23416 | |||
23417 | Xcursor_cflags="" | ||
23418 | Xcursor_libs="" | ||
23419 | use_Xcursor="no" | ||
23420 | |||
23421 | fi | ||
23422 | |||
23423 | |||
23424 | else | ||
23425 | |||
23426 | Xcursor_cflags="" | ||
23427 | Xcursor_libs="" | ||
23428 | use_Xcursor="no" | ||
23429 | |||
23430 | fi | ||
23431 | |||
23432 | |||
23433 | CFLAGS=$PCFLAGS | ||
23434 | else | ||
23435 | Xcursor_cflags="" | ||
23436 | Xcursor_libs="" | ||
23437 | use_Xcursor="no" | ||
23438 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"Xcursor explicitly disabled\"" >&5 | ||
23439 | $as_echo "$as_me: \"Xcursor explicitly disabled\"" >&6;} | ||
23440 | fi | ||
23441 | |||
23442 | |||
23443 | |||
23444 | |||
23445 | |||
23446 | |||
23447 | XKB_CFLAGS="" | ||
23448 | XKB_LIBS="" | ||
23449 | use_xkb="no" | ||
23450 | |||
23451 | if test "x$want_ecore_x_xkb" != "xno"; then | ||
23452 | SAVE_CFLAGS=$CFLAGS | ||
23453 | CFLAGS="$x_cflags $x_includes" | ||
23454 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XKB.h" "ac_cv_header_X11_extensions_XKB_h" " #include <X11/Xlib.h> | ||
23455 | |||
23456 | " | ||
23457 | if test "x$ac_cv_header_X11_extensions_XKB_h" = x""yes; then : | ||
23458 | |||
23459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbSetDetectableAutoRepeat in -lX11" >&5 | ||
23460 | $as_echo_n "checking for XkbSetDetectableAutoRepeat in -lX11... " >&6; } | ||
23461 | if test "${ac_cv_lib_X11_XkbSetDetectableAutoRepeat+set}" = set; then : | ||
23462 | $as_echo_n "(cached) " >&6 | ||
23463 | else | ||
23464 | ac_check_lib_save_LIBS=$LIBS | ||
23465 | LIBS="-lX11 $x_libs | ||
23466 | $LIBS" | ||
23467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23468 | /* end confdefs.h. */ | ||
23469 | |||
23470 | /* Override any GCC internal prototype to avoid an error. | ||
23471 | Use char because int might match the return type of a GCC | ||
23472 | builtin and then its argument prototype would still apply. */ | ||
23473 | #ifdef __cplusplus | ||
23474 | extern "C" | ||
23475 | #endif | ||
23476 | char XkbSetDetectableAutoRepeat (); | ||
23477 | int | ||
23478 | main () | ||
23479 | { | ||
23480 | return XkbSetDetectableAutoRepeat (); | ||
23481 | ; | ||
23482 | return 0; | ||
23483 | } | ||
23484 | _ACEOF | ||
23485 | if ac_fn_c_try_link "$LINENO"; then : | ||
23486 | ac_cv_lib_X11_XkbSetDetectableAutoRepeat=yes | ||
23487 | else | ||
23488 | ac_cv_lib_X11_XkbSetDetectableAutoRepeat=no | ||
23489 | fi | ||
23490 | rm -f core conftest.err conftest.$ac_objext \ | ||
23491 | conftest$ac_exeext conftest.$ac_ext | ||
23492 | LIBS=$ac_check_lib_save_LIBS | ||
23493 | fi | ||
23494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbSetDetectableAutoRepeat" >&5 | ||
23495 | $as_echo "$ac_cv_lib_X11_XkbSetDetectableAutoRepeat" >&6; } | ||
23496 | if test "x$ac_cv_lib_X11_XkbSetDetectableAutoRepeat" = x""yes; then : | ||
23497 | |||
23498 | |||
23499 | $as_echo "#define ECORE_XKB 1" >>confdefs.h | ||
23500 | |||
23501 | XKB_LIBS="-lX11" | ||
23502 | use_xkb="yes" | ||
23503 | |||
23504 | else | ||
23505 | use_xkb="no" | ||
23506 | fi | ||
23507 | |||
23508 | |||
23509 | else | ||
23510 | use_xkb="no" | ||
23511 | fi | ||
23512 | |||
23513 | |||
23514 | CFLAGS=$SAVE_CFLAGS | ||
23515 | else | ||
23516 | use_xkb="no" | ||
23517 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xkb support disabled" >&5 | ||
23518 | $as_echo "$as_me: Xkb support disabled" >&6;} | ||
23519 | fi | ||
23520 | |||
23521 | |||
23522 | |||
23523 | |||
23524 | |||
23525 | |||
23526 | |||
23527 | |||
23528 | |||
23529 | XCOMPOSITE_CFLAGS="" | ||
23530 | XCOMPOSITE_LIBS="" | ||
23531 | use_xcomposite="no" | ||
23532 | |||
23533 | if test "x$want_ecore_x_composite" != "xno"; then | ||
23534 | SAVE_CFLAGS=$CFLAGS | ||
23535 | CFLAGS="$x_cflags $x_includes" | ||
23536 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" " #include <X11/Xlib.h> | ||
23537 | |||
23538 | " | ||
23539 | if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = x""yes; then : | ||
23540 | |||
23541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCompositeQueryExtension in -lXcomposite" >&5 | ||
23542 | $as_echo_n "checking for XCompositeQueryExtension in -lXcomposite... " >&6; } | ||
23543 | if test "${ac_cv_lib_Xcomposite_XCompositeQueryExtension+set}" = set; then : | ||
23544 | $as_echo_n "(cached) " >&6 | ||
23545 | else | ||
23546 | ac_check_lib_save_LIBS=$LIBS | ||
23547 | LIBS="-lXcomposite $x_libs | ||
23548 | $LIBS" | ||
23549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23550 | /* end confdefs.h. */ | ||
23551 | |||
23552 | /* Override any GCC internal prototype to avoid an error. | ||
23553 | Use char because int might match the return type of a GCC | ||
23554 | builtin and then its argument prototype would still apply. */ | ||
23555 | #ifdef __cplusplus | ||
23556 | extern "C" | ||
23557 | #endif | ||
23558 | char XCompositeQueryExtension (); | ||
23559 | int | ||
23560 | main () | ||
23561 | { | ||
23562 | return XCompositeQueryExtension (); | ||
23563 | ; | ||
23564 | return 0; | ||
23565 | } | ||
23566 | _ACEOF | ||
23567 | if ac_fn_c_try_link "$LINENO"; then : | ||
23568 | ac_cv_lib_Xcomposite_XCompositeQueryExtension=yes | ||
23569 | else | ||
23570 | ac_cv_lib_Xcomposite_XCompositeQueryExtension=no | ||
23571 | fi | ||
23572 | rm -f core conftest.err conftest.$ac_objext \ | ||
23573 | conftest$ac_exeext conftest.$ac_ext | ||
23574 | LIBS=$ac_check_lib_save_LIBS | ||
23575 | fi | ||
23576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&5 | ||
23577 | $as_echo "$ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&6; } | ||
23578 | if test "x$ac_cv_lib_Xcomposite_XCompositeQueryExtension" = x""yes; then : | ||
23579 | |||
23580 | |||
23581 | $as_echo "#define ECORE_XCOMPOSITE 1" >>confdefs.h | ||
23582 | |||
23583 | XCOMPOSITE_LIBS="-lXcomposite" | ||
23584 | use_xcomposite="yes" | ||
23585 | |||
23586 | else | ||
23587 | use_xcomposite="no" | ||
23588 | fi | ||
23589 | |||
23590 | |||
23591 | else | ||
23592 | use_xcomposite="no" | ||
23593 | fi | ||
23594 | |||
23595 | |||
23596 | CFLAGS=$SAVE_CFLAGS | ||
23597 | else | ||
23598 | use_xcomposite="no" | ||
23599 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xcomposite support disabled" >&5 | ||
23600 | $as_echo "$as_me: Xcomposite support disabled" >&6;} | ||
23601 | fi | ||
23602 | |||
23603 | |||
23604 | |||
23605 | |||
23606 | |||
23607 | |||
23608 | |||
23609 | |||
23610 | |||
23611 | XDAMAGE_CFLAGS="" | ||
23612 | XDAMAGE_LIBS="" | ||
23613 | use_xdamage="no" | ||
23614 | |||
23615 | if test "x$want_ecore_x_damage" != "xno"; then | ||
23616 | SAVE_CFLAGS=$CFLAGS | ||
23617 | CFLAGS="$x_cflags $x_includes" | ||
23618 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdamage.h" "ac_cv_header_X11_extensions_Xdamage_h" " #include <X11/Xlib.h> | ||
23619 | |||
23620 | " | ||
23621 | if test "x$ac_cv_header_X11_extensions_Xdamage_h" = x""yes; then : | ||
23622 | |||
23623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamageSubtract in -lXdamage" >&5 | ||
23624 | $as_echo_n "checking for XDamageSubtract in -lXdamage... " >&6; } | ||
23625 | if test "${ac_cv_lib_Xdamage_XDamageSubtract+set}" = set; then : | ||
23626 | $as_echo_n "(cached) " >&6 | ||
23627 | else | ||
23628 | ac_check_lib_save_LIBS=$LIBS | ||
23629 | LIBS="-lXdamage $x_libs | ||
23630 | $LIBS" | ||
23631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23632 | /* end confdefs.h. */ | ||
23633 | |||
23634 | /* Override any GCC internal prototype to avoid an error. | ||
23635 | Use char because int might match the return type of a GCC | ||
23636 | builtin and then its argument prototype would still apply. */ | ||
23637 | #ifdef __cplusplus | ||
23638 | extern "C" | ||
23639 | #endif | ||
23640 | char XDamageSubtract (); | ||
23641 | int | ||
23642 | main () | ||
23643 | { | ||
23644 | return XDamageSubtract (); | ||
23645 | ; | ||
23646 | return 0; | ||
23647 | } | ||
23648 | _ACEOF | ||
23649 | if ac_fn_c_try_link "$LINENO"; then : | ||
23650 | ac_cv_lib_Xdamage_XDamageSubtract=yes | ||
23651 | else | ||
23652 | ac_cv_lib_Xdamage_XDamageSubtract=no | ||
23653 | fi | ||
23654 | rm -f core conftest.err conftest.$ac_objext \ | ||
23655 | conftest$ac_exeext conftest.$ac_ext | ||
23656 | LIBS=$ac_check_lib_save_LIBS | ||
23657 | fi | ||
23658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdamage_XDamageSubtract" >&5 | ||
23659 | $as_echo "$ac_cv_lib_Xdamage_XDamageSubtract" >&6; } | ||
23660 | if test "x$ac_cv_lib_Xdamage_XDamageSubtract" = x""yes; then : | ||
23661 | |||
23662 | |||
23663 | $as_echo "#define ECORE_XDAMAGE 1" >>confdefs.h | ||
23664 | |||
23665 | XDAMAGE_LIBS="-lXdamage" | ||
23666 | use_xdamage="yes" | ||
23667 | |||
23668 | else | ||
23669 | use_xdamage="no" | ||
23670 | fi | ||
23671 | |||
23672 | |||
23673 | else | ||
23674 | use_xdamage="no" | ||
23675 | fi | ||
23676 | |||
23677 | |||
23678 | CFLAGS=$SAVE_CFLAGS | ||
23679 | else | ||
23680 | use_xdamage="no" | ||
23681 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xdamage support disabled" >&5 | ||
23682 | $as_echo "$as_me: Xdamage support disabled" >&6;} | ||
23683 | fi | ||
23684 | |||
23685 | |||
23686 | |||
23687 | |||
23688 | |||
23689 | |||
23690 | |||
23691 | |||
23692 | |||
23693 | XDPMS_CFLAGS="" | ||
23694 | XDPMS_LIBS="" | ||
23695 | use_xdpms="no" | ||
23696 | |||
23697 | if test "x$want_ecore_x_dpms" != "xno"; then | ||
23698 | SAVE_CFLAGS=$CFLAGS | ||
23699 | CFLAGS="$x_cflags $x_includes" | ||
23700 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" " #include <X11/Xlib.h> | ||
23701 | |||
23702 | " | ||
23703 | if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then : | ||
23704 | |||
23705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSQueryExtension in -lXdpms" >&5 | ||
23706 | $as_echo_n "checking for DPMSQueryExtension in -lXdpms... " >&6; } | ||
23707 | if test "${ac_cv_lib_Xdpms_DPMSQueryExtension+set}" = set; then : | ||
23708 | $as_echo_n "(cached) " >&6 | ||
23709 | else | ||
23710 | ac_check_lib_save_LIBS=$LIBS | ||
23711 | LIBS="-lXdpms $x_libs | ||
23712 | $LIBS" | ||
23713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23714 | /* end confdefs.h. */ | ||
23715 | |||
23716 | /* Override any GCC internal prototype to avoid an error. | ||
23717 | Use char because int might match the return type of a GCC | ||
23718 | builtin and then its argument prototype would still apply. */ | ||
23719 | #ifdef __cplusplus | ||
23720 | extern "C" | ||
23721 | #endif | ||
23722 | char DPMSQueryExtension (); | ||
23723 | int | ||
23724 | main () | ||
23725 | { | ||
23726 | return DPMSQueryExtension (); | ||
23727 | ; | ||
23728 | return 0; | ||
23729 | } | ||
23730 | _ACEOF | ||
23731 | if ac_fn_c_try_link "$LINENO"; then : | ||
23732 | ac_cv_lib_Xdpms_DPMSQueryExtension=yes | ||
23733 | else | ||
23734 | ac_cv_lib_Xdpms_DPMSQueryExtension=no | ||
23735 | fi | ||
23736 | rm -f core conftest.err conftest.$ac_objext \ | ||
23737 | conftest$ac_exeext conftest.$ac_ext | ||
23738 | LIBS=$ac_check_lib_save_LIBS | ||
23739 | fi | ||
23740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdpms_DPMSQueryExtension" >&5 | ||
23741 | $as_echo "$ac_cv_lib_Xdpms_DPMSQueryExtension" >&6; } | ||
23742 | if test "x$ac_cv_lib_Xdpms_DPMSQueryExtension" = x""yes; then : | ||
23743 | |||
23744 | |||
23745 | $as_echo "#define ECORE_XDPMS 1" >>confdefs.h | ||
23746 | |||
23747 | XDPMS_LIBS="-lXdpms" | ||
23748 | use_xdpms="yes" | ||
23749 | |||
23750 | else | ||
23751 | use_xdpms="no" | ||
23752 | fi | ||
23753 | |||
23754 | |||
23755 | else | ||
23756 | use_xdpms="no" | ||
23757 | fi | ||
23758 | |||
23759 | |||
23760 | CFLAGS=$SAVE_CFLAGS | ||
23761 | else | ||
23762 | use_xdpms="no" | ||
23763 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xdpms support disabled" >&5 | ||
23764 | $as_echo "$as_me: Xdpms support disabled" >&6;} | ||
23765 | fi | ||
23766 | |||
23767 | |||
23768 | |||
23769 | |||
23770 | |||
23771 | |||
23772 | |||
23773 | if test "x$use_xdpms" = "xno" ; then | ||
23774 | |||
23775 | |||
23776 | XDPMS_CFLAGS="" | ||
23777 | XDPMS_LIBS="" | ||
23778 | use_xdpms="no" | ||
23779 | |||
23780 | if test "x$want_ecore_x_dpms" != "xno"; then | ||
23781 | SAVE_CFLAGS=$CFLAGS | ||
23782 | CFLAGS="$x_cflags $x_includes" | ||
23783 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" " #include <X11/Xlib.h> | ||
23784 | |||
23785 | " | ||
23786 | if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then : | ||
23787 | |||
23788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSQueryExtension in -lXext" >&5 | ||
23789 | $as_echo_n "checking for DPMSQueryExtension in -lXext... " >&6; } | ||
23790 | if test "${ac_cv_lib_Xext_DPMSQueryExtension+set}" = set; then : | ||
23791 | $as_echo_n "(cached) " >&6 | ||
23792 | else | ||
23793 | ac_check_lib_save_LIBS=$LIBS | ||
23794 | LIBS="-lXext $x_libs | ||
23795 | $LIBS" | ||
23796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23797 | /* end confdefs.h. */ | ||
23798 | |||
23799 | /* Override any GCC internal prototype to avoid an error. | ||
23800 | Use char because int might match the return type of a GCC | ||
23801 | builtin and then its argument prototype would still apply. */ | ||
23802 | #ifdef __cplusplus | ||
23803 | extern "C" | ||
23804 | #endif | ||
23805 | char DPMSQueryExtension (); | ||
23806 | int | ||
23807 | main () | ||
23808 | { | ||
23809 | return DPMSQueryExtension (); | ||
23810 | ; | ||
23811 | return 0; | ||
23812 | } | ||
23813 | _ACEOF | ||
23814 | if ac_fn_c_try_link "$LINENO"; then : | ||
23815 | ac_cv_lib_Xext_DPMSQueryExtension=yes | ||
23816 | else | ||
23817 | ac_cv_lib_Xext_DPMSQueryExtension=no | ||
23818 | fi | ||
23819 | rm -f core conftest.err conftest.$ac_objext \ | ||
23820 | conftest$ac_exeext conftest.$ac_ext | ||
23821 | LIBS=$ac_check_lib_save_LIBS | ||
23822 | fi | ||
23823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSQueryExtension" >&5 | ||
23824 | $as_echo "$ac_cv_lib_Xext_DPMSQueryExtension" >&6; } | ||
23825 | if test "x$ac_cv_lib_Xext_DPMSQueryExtension" = x""yes; then : | ||
23826 | |||
23827 | |||
23828 | $as_echo "#define ECORE_XDPMS 1" >>confdefs.h | ||
23829 | |||
23830 | XDPMS_LIBS="-lXext" | ||
23831 | use_xdpms="yes" | ||
23832 | |||
23833 | else | ||
23834 | use_xdpms="no" | ||
23835 | fi | ||
23836 | |||
23837 | |||
23838 | else | ||
23839 | use_xdpms="no" | ||
23840 | fi | ||
23841 | |||
23842 | |||
23843 | CFLAGS=$SAVE_CFLAGS | ||
23844 | else | ||
23845 | use_xdpms="no" | ||
23846 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xdpms support disabled" >&5 | ||
23847 | $as_echo "$as_me: Xdpms support disabled" >&6;} | ||
23848 | fi | ||
23849 | |||
23850 | |||
23851 | |||
23852 | |||
23853 | |||
23854 | |||
23855 | |||
23856 | fi | ||
23857 | |||
23858 | |||
23859 | XFIXES_CFLAGS="" | ||
23860 | XFIXES_LIBS="" | ||
23861 | use_xfixes="no" | ||
23862 | |||
23863 | if test "x$want_ecore_x_xfixes" != "xno"; then | ||
23864 | SAVE_CFLAGS=$CFLAGS | ||
23865 | CFLAGS="$x_cflags $x_includes" | ||
23866 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" " #include <X11/Xlib.h> | ||
23867 | |||
23868 | " | ||
23869 | if test "x$ac_cv_header_X11_extensions_Xfixes_h" = x""yes; then : | ||
23870 | |||
23871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesExpandRegion in -lXfixes" >&5 | ||
23872 | $as_echo_n "checking for XFixesExpandRegion in -lXfixes... " >&6; } | ||
23873 | if test "${ac_cv_lib_Xfixes_XFixesExpandRegion+set}" = set; then : | ||
23874 | $as_echo_n "(cached) " >&6 | ||
23875 | else | ||
23876 | ac_check_lib_save_LIBS=$LIBS | ||
23877 | LIBS="-lXfixes $x_libs | ||
23878 | $LIBS" | ||
23879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23880 | /* end confdefs.h. */ | ||
23881 | |||
23882 | /* Override any GCC internal prototype to avoid an error. | ||
23883 | Use char because int might match the return type of a GCC | ||
23884 | builtin and then its argument prototype would still apply. */ | ||
23885 | #ifdef __cplusplus | ||
23886 | extern "C" | ||
23887 | #endif | ||
23888 | char XFixesExpandRegion (); | ||
23889 | int | ||
23890 | main () | ||
23891 | { | ||
23892 | return XFixesExpandRegion (); | ||
23893 | ; | ||
23894 | return 0; | ||
23895 | } | ||
23896 | _ACEOF | ||
23897 | if ac_fn_c_try_link "$LINENO"; then : | ||
23898 | ac_cv_lib_Xfixes_XFixesExpandRegion=yes | ||
23899 | else | ||
23900 | ac_cv_lib_Xfixes_XFixesExpandRegion=no | ||
23901 | fi | ||
23902 | rm -f core conftest.err conftest.$ac_objext \ | ||
23903 | conftest$ac_exeext conftest.$ac_ext | ||
23904 | LIBS=$ac_check_lib_save_LIBS | ||
23905 | fi | ||
23906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesExpandRegion" >&5 | ||
23907 | $as_echo "$ac_cv_lib_Xfixes_XFixesExpandRegion" >&6; } | ||
23908 | if test "x$ac_cv_lib_Xfixes_XFixesExpandRegion" = x""yes; then : | ||
23909 | |||
23910 | |||
23911 | $as_echo "#define ECORE_XFIXES 1" >>confdefs.h | ||
23912 | |||
23913 | XFIXES_LIBS="-lXfixes" | ||
23914 | use_xfixes="yes" | ||
23915 | |||
23916 | else | ||
23917 | use_xfixes="no" | ||
23918 | fi | ||
23919 | |||
23920 | |||
23921 | else | ||
23922 | use_xfixes="no" | ||
23923 | fi | ||
23924 | |||
23925 | |||
23926 | CFLAGS=$SAVE_CFLAGS | ||
23927 | else | ||
23928 | use_xfixes="no" | ||
23929 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xfixes support disabled" >&5 | ||
23930 | $as_echo "$as_me: Xfixes support disabled" >&6;} | ||
23931 | fi | ||
23932 | |||
23933 | |||
23934 | |||
23935 | |||
23936 | |||
23937 | |||
23938 | |||
23939 | |||
23940 | |||
23941 | XINERAMA_CFLAGS="" | ||
23942 | XINERAMA_LIBS="" | ||
23943 | use_xinerama="no" | ||
23944 | |||
23945 | if test "x$want_ecore_x_xinerama" != "xno"; then | ||
23946 | SAVE_CFLAGS=$CFLAGS | ||
23947 | CFLAGS="$x_cflags $x_includes" | ||
23948 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" " #include <X11/Xlib.h> | ||
23949 | |||
23950 | " | ||
23951 | if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then : | ||
23952 | |||
23953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5 | ||
23954 | $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; } | ||
23955 | if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then : | ||
23956 | $as_echo_n "(cached) " >&6 | ||
23957 | else | ||
23958 | ac_check_lib_save_LIBS=$LIBS | ||
23959 | LIBS="-lXinerama $x_libs | ||
23960 | $LIBS" | ||
23961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23962 | /* end confdefs.h. */ | ||
23963 | |||
23964 | /* Override any GCC internal prototype to avoid an error. | ||
23965 | Use char because int might match the return type of a GCC | ||
23966 | builtin and then its argument prototype would still apply. */ | ||
23967 | #ifdef __cplusplus | ||
23968 | extern "C" | ||
23969 | #endif | ||
23970 | char XineramaQueryScreens (); | ||
23971 | int | ||
23972 | main () | ||
23973 | { | ||
23974 | return XineramaQueryScreens (); | ||
23975 | ; | ||
23976 | return 0; | ||
23977 | } | ||
23978 | _ACEOF | ||
23979 | if ac_fn_c_try_link "$LINENO"; then : | ||
23980 | ac_cv_lib_Xinerama_XineramaQueryScreens=yes | ||
23981 | else | ||
23982 | ac_cv_lib_Xinerama_XineramaQueryScreens=no | ||
23983 | fi | ||
23984 | rm -f core conftest.err conftest.$ac_objext \ | ||
23985 | conftest$ac_exeext conftest.$ac_ext | ||
23986 | LIBS=$ac_check_lib_save_LIBS | ||
23987 | fi | ||
23988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 | ||
23989 | $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; } | ||
23990 | if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then : | ||
23991 | |||
23992 | |||
23993 | $as_echo "#define ECORE_XINERAMA 1" >>confdefs.h | ||
23994 | |||
23995 | XINERAMA_LIBS="-lXinerama" | ||
23996 | use_xinerama="yes" | ||
23997 | |||
23998 | else | ||
23999 | use_xinerama="no" | ||
24000 | fi | ||
24001 | |||
24002 | |||
24003 | else | ||
24004 | use_xinerama="no" | ||
24005 | fi | ||
24006 | |||
24007 | |||
24008 | CFLAGS=$SAVE_CFLAGS | ||
24009 | else | ||
24010 | use_xinerama="no" | ||
24011 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xinerama support disabled" >&5 | ||
24012 | $as_echo "$as_me: Xinerama support disabled" >&6;} | ||
24013 | fi | ||
24014 | |||
24015 | |||
24016 | |||
24017 | |||
24018 | |||
24019 | |||
24020 | |||
24021 | |||
24022 | |||
24023 | XPRINT_CFLAGS="" | ||
24024 | XPRINT_LIBS="" | ||
24025 | use_xprint="no" | ||
24026 | |||
24027 | if test "x$want_ecore_x_xprint" != "xno"; then | ||
24028 | SAVE_CFLAGS=$CFLAGS | ||
24029 | CFLAGS="$x_cflags $x_includes" | ||
24030 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Print.h" "ac_cv_header_X11_extensions_Print_h" " #include <X11/Xlib.h> | ||
24031 | |||
24032 | " | ||
24033 | if test "x$ac_cv_header_X11_extensions_Print_h" = x""yes; then : | ||
24034 | |||
24035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpQueryScreens in -lXp" >&5 | ||
24036 | $as_echo_n "checking for XpQueryScreens in -lXp... " >&6; } | ||
24037 | if test "${ac_cv_lib_Xp_XpQueryScreens+set}" = set; then : | ||
24038 | $as_echo_n "(cached) " >&6 | ||
24039 | else | ||
24040 | ac_check_lib_save_LIBS=$LIBS | ||
24041 | LIBS="-lXp $x_libs | ||
24042 | $LIBS" | ||
24043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24044 | /* end confdefs.h. */ | ||
24045 | |||
24046 | /* Override any GCC internal prototype to avoid an error. | ||
24047 | Use char because int might match the return type of a GCC | ||
24048 | builtin and then its argument prototype would still apply. */ | ||
24049 | #ifdef __cplusplus | ||
24050 | extern "C" | ||
24051 | #endif | ||
24052 | char XpQueryScreens (); | ||
24053 | int | ||
24054 | main () | ||
24055 | { | ||
24056 | return XpQueryScreens (); | ||
24057 | ; | ||
24058 | return 0; | ||
24059 | } | ||
24060 | _ACEOF | ||
24061 | if ac_fn_c_try_link "$LINENO"; then : | ||
24062 | ac_cv_lib_Xp_XpQueryScreens=yes | ||
24063 | else | ||
24064 | ac_cv_lib_Xp_XpQueryScreens=no | ||
24065 | fi | ||
24066 | rm -f core conftest.err conftest.$ac_objext \ | ||
24067 | conftest$ac_exeext conftest.$ac_ext | ||
24068 | LIBS=$ac_check_lib_save_LIBS | ||
24069 | fi | ||
24070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpQueryScreens" >&5 | ||
24071 | $as_echo "$ac_cv_lib_Xp_XpQueryScreens" >&6; } | ||
24072 | if test "x$ac_cv_lib_Xp_XpQueryScreens" = x""yes; then : | ||
24073 | |||
24074 | |||
24075 | $as_echo "#define ECORE_XPRINT 1" >>confdefs.h | ||
24076 | |||
24077 | XPRINT_LIBS="-lXp" | ||
24078 | use_xprint="yes" | ||
24079 | |||
24080 | else | ||
24081 | use_xprint="no" | ||
24082 | fi | ||
24083 | |||
24084 | |||
24085 | else | ||
24086 | use_xprint="no" | ||
24087 | fi | ||
24088 | |||
24089 | |||
24090 | CFLAGS=$SAVE_CFLAGS | ||
24091 | else | ||
24092 | use_xprint="no" | ||
24093 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xprint support disabled" >&5 | ||
24094 | $as_echo "$as_me: Xprint support disabled" >&6;} | ||
24095 | fi | ||
24096 | |||
24097 | |||
24098 | |||
24099 | |||
24100 | |||
24101 | |||
24102 | |||
24103 | |||
24104 | |||
24105 | XRANDR_CFLAGS="" | ||
24106 | XRANDR_LIBS="" | ||
24107 | use_xrandr="no" | ||
24108 | |||
24109 | if test "x$want_ecore_x_randr" != "xno"; then | ||
24110 | SAVE_CFLAGS=$CFLAGS | ||
24111 | CFLAGS="$x_cflags $x_includes" | ||
24112 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" " #include <X11/Xlib.h> | ||
24113 | |||
24114 | " | ||
24115 | if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then : | ||
24116 | |||
24117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResourcesCurrent in -lXrandr" >&5 | ||
24118 | $as_echo_n "checking for XRRGetScreenResourcesCurrent in -lXrandr... " >&6; } | ||
24119 | if test "${ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent+set}" = set; then : | ||
24120 | $as_echo_n "(cached) " >&6 | ||
24121 | else | ||
24122 | ac_check_lib_save_LIBS=$LIBS | ||
24123 | LIBS="-lXrandr $x_libs | ||
24124 | $LIBS" | ||
24125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24126 | /* end confdefs.h. */ | ||
24127 | |||
24128 | /* Override any GCC internal prototype to avoid an error. | ||
24129 | Use char because int might match the return type of a GCC | ||
24130 | builtin and then its argument prototype would still apply. */ | ||
24131 | #ifdef __cplusplus | ||
24132 | extern "C" | ||
24133 | #endif | ||
24134 | char XRRGetScreenResourcesCurrent (); | ||
24135 | int | ||
24136 | main () | ||
24137 | { | ||
24138 | return XRRGetScreenResourcesCurrent (); | ||
24139 | ; | ||
24140 | return 0; | ||
24141 | } | ||
24142 | _ACEOF | ||
24143 | if ac_fn_c_try_link "$LINENO"; then : | ||
24144 | ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent=yes | ||
24145 | else | ||
24146 | ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent=no | ||
24147 | fi | ||
24148 | rm -f core conftest.err conftest.$ac_objext \ | ||
24149 | conftest$ac_exeext conftest.$ac_ext | ||
24150 | LIBS=$ac_check_lib_save_LIBS | ||
24151 | fi | ||
24152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent" >&5 | ||
24153 | $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent" >&6; } | ||
24154 | if test "x$ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent" = x""yes; then : | ||
24155 | |||
24156 | |||
24157 | $as_echo "#define ECORE_XRANDR 1" >>confdefs.h | ||
24158 | |||
24159 | XRANDR_LIBS="-lXrandr" | ||
24160 | use_xrandr="yes" | ||
24161 | |||
24162 | else | ||
24163 | use_xrandr="no" | ||
24164 | fi | ||
24165 | |||
24166 | |||
24167 | else | ||
24168 | use_xrandr="no" | ||
24169 | fi | ||
24170 | |||
24171 | |||
24172 | CFLAGS=$SAVE_CFLAGS | ||
24173 | else | ||
24174 | use_xrandr="no" | ||
24175 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xrandr support disabled" >&5 | ||
24176 | $as_echo "$as_me: Xrandr support disabled" >&6;} | ||
24177 | fi | ||
24178 | |||
24179 | |||
24180 | |||
24181 | |||
24182 | |||
24183 | |||
24184 | |||
24185 | |||
24186 | |||
24187 | XGESTURE_CFLAGS="" | ||
24188 | XGESTURE_LIBS="" | ||
24189 | use_xgesture="no" | ||
24190 | |||
24191 | if test "x$want_ecore_x_gesture" != "xno"; then | ||
24192 | SAVE_CFLAGS=$CFLAGS | ||
24193 | CFLAGS="$x_cflags $x_includes" | ||
24194 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/gesture.h" "ac_cv_header_X11_extensions_gesture_h" " #include <X11/Xlib.h> | ||
24195 | |||
24196 | " | ||
24197 | if test "x$ac_cv_header_X11_extensions_gesture_h" = x""yes; then : | ||
24198 | |||
24199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGestureQueryExtension in -lXgesture" >&5 | ||
24200 | $as_echo_n "checking for XGestureQueryExtension in -lXgesture... " >&6; } | ||
24201 | if test "${ac_cv_lib_Xgesture_XGestureQueryExtension+set}" = set; then : | ||
24202 | $as_echo_n "(cached) " >&6 | ||
24203 | else | ||
24204 | ac_check_lib_save_LIBS=$LIBS | ||
24205 | LIBS="-lXgesture $x_libs | ||
24206 | $LIBS" | ||
24207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24208 | /* end confdefs.h. */ | ||
24209 | |||
24210 | /* Override any GCC internal prototype to avoid an error. | ||
24211 | Use char because int might match the return type of a GCC | ||
24212 | builtin and then its argument prototype would still apply. */ | ||
24213 | #ifdef __cplusplus | ||
24214 | extern "C" | ||
24215 | #endif | ||
24216 | char XGestureQueryExtension (); | ||
24217 | int | ||
24218 | main () | ||
24219 | { | ||
24220 | return XGestureQueryExtension (); | ||
24221 | ; | ||
24222 | return 0; | ||
24223 | } | ||
24224 | _ACEOF | ||
24225 | if ac_fn_c_try_link "$LINENO"; then : | ||
24226 | ac_cv_lib_Xgesture_XGestureQueryExtension=yes | ||
24227 | else | ||
24228 | ac_cv_lib_Xgesture_XGestureQueryExtension=no | ||
24229 | fi | ||
24230 | rm -f core conftest.err conftest.$ac_objext \ | ||
24231 | conftest$ac_exeext conftest.$ac_ext | ||
24232 | LIBS=$ac_check_lib_save_LIBS | ||
24233 | fi | ||
24234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xgesture_XGestureQueryExtension" >&5 | ||
24235 | $as_echo "$ac_cv_lib_Xgesture_XGestureQueryExtension" >&6; } | ||
24236 | if test "x$ac_cv_lib_Xgesture_XGestureQueryExtension" = x""yes; then : | ||
24237 | |||
24238 | |||
24239 | $as_echo "#define ECORE_XGESTURE 1" >>confdefs.h | ||
24240 | |||
24241 | XGESTURE_LIBS="-lXgesture" | ||
24242 | use_xgesture="yes" | ||
24243 | |||
24244 | else | ||
24245 | use_xgesture="no" | ||
24246 | fi | ||
24247 | |||
24248 | |||
24249 | else | ||
24250 | use_xgesture="no" | ||
24251 | fi | ||
24252 | |||
24253 | |||
24254 | CFLAGS=$SAVE_CFLAGS | ||
24255 | else | ||
24256 | use_xgesture="no" | ||
24257 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xgesture support disabled" >&5 | ||
24258 | $as_echo "$as_me: Xgesture support disabled" >&6;} | ||
24259 | fi | ||
24260 | |||
24261 | |||
24262 | |||
24263 | |||
24264 | |||
24265 | |||
24266 | |||
24267 | |||
24268 | |||
24269 | XRENDER_CFLAGS="" | ||
24270 | XRENDER_LIBS="" | ||
24271 | use_xrender="no" | ||
24272 | |||
24273 | if test "x$want_ecore_x_render" != "xno"; then | ||
24274 | SAVE_CFLAGS=$CFLAGS | ||
24275 | CFLAGS="$x_cflags $x_includes" | ||
24276 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" " #include <X11/Xlib.h> | ||
24277 | |||
24278 | " | ||
24279 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : | ||
24280 | |||
24281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderFindVisualFormat in -lXrender" >&5 | ||
24282 | $as_echo_n "checking for XRenderFindVisualFormat in -lXrender... " >&6; } | ||
24283 | if test "${ac_cv_lib_Xrender_XRenderFindVisualFormat+set}" = set; then : | ||
24284 | $as_echo_n "(cached) " >&6 | ||
24285 | else | ||
24286 | ac_check_lib_save_LIBS=$LIBS | ||
24287 | LIBS="-lXrender $x_libs | ||
24288 | $LIBS" | ||
24289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24290 | /* end confdefs.h. */ | ||
24291 | |||
24292 | /* Override any GCC internal prototype to avoid an error. | ||
24293 | Use char because int might match the return type of a GCC | ||
24294 | builtin and then its argument prototype would still apply. */ | ||
24295 | #ifdef __cplusplus | ||
24296 | extern "C" | ||
24297 | #endif | ||
24298 | char XRenderFindVisualFormat (); | ||
24299 | int | ||
24300 | main () | ||
24301 | { | ||
24302 | return XRenderFindVisualFormat (); | ||
24303 | ; | ||
24304 | return 0; | ||
24305 | } | ||
24306 | _ACEOF | ||
24307 | if ac_fn_c_try_link "$LINENO"; then : | ||
24308 | ac_cv_lib_Xrender_XRenderFindVisualFormat=yes | ||
24309 | else | ||
24310 | ac_cv_lib_Xrender_XRenderFindVisualFormat=no | ||
24311 | fi | ||
24312 | rm -f core conftest.err conftest.$ac_objext \ | ||
24313 | conftest$ac_exeext conftest.$ac_ext | ||
24314 | LIBS=$ac_check_lib_save_LIBS | ||
24315 | fi | ||
24316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderFindVisualFormat" >&5 | ||
24317 | $as_echo "$ac_cv_lib_Xrender_XRenderFindVisualFormat" >&6; } | ||
24318 | if test "x$ac_cv_lib_Xrender_XRenderFindVisualFormat" = x""yes; then : | ||
24319 | |||
24320 | |||
24321 | $as_echo "#define ECORE_XRENDER 1" >>confdefs.h | ||
24322 | |||
24323 | XRENDER_LIBS="-lXrender" | ||
24324 | use_xrender="yes" | ||
24325 | |||
24326 | else | ||
24327 | use_xrender="no" | ||
24328 | fi | ||
24329 | |||
24330 | |||
24331 | else | ||
24332 | use_xrender="no" | ||
24333 | fi | ||
24334 | |||
24335 | |||
24336 | CFLAGS=$SAVE_CFLAGS | ||
24337 | else | ||
24338 | use_xrender="no" | ||
24339 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xrender support disabled" >&5 | ||
24340 | $as_echo "$as_me: Xrender support disabled" >&6;} | ||
24341 | fi | ||
24342 | |||
24343 | |||
24344 | |||
24345 | |||
24346 | |||
24347 | |||
24348 | |||
24349 | |||
24350 | |||
24351 | XTEST_CFLAGS="" | ||
24352 | XTEST_LIBS="" | ||
24353 | use_xtest="no" | ||
24354 | |||
24355 | if test "x$want_ecore_x_xtest" != "xno"; then | ||
24356 | SAVE_CFLAGS=$CFLAGS | ||
24357 | CFLAGS="$x_cflags $x_includes" | ||
24358 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XTest.h" "ac_cv_header_X11_extensions_XTest_h" " #include <X11/Xlib.h> | ||
24359 | |||
24360 | " | ||
24361 | if test "x$ac_cv_header_X11_extensions_XTest_h" = x""yes; then : | ||
24362 | |||
24363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestFakeKeyEvent in -lXtst" >&5 | ||
24364 | $as_echo_n "checking for XTestFakeKeyEvent in -lXtst... " >&6; } | ||
24365 | if test "${ac_cv_lib_Xtst_XTestFakeKeyEvent+set}" = set; then : | ||
24366 | $as_echo_n "(cached) " >&6 | ||
24367 | else | ||
24368 | ac_check_lib_save_LIBS=$LIBS | ||
24369 | LIBS="-lXtst $x_libs | ||
24370 | $LIBS" | ||
24371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24372 | /* end confdefs.h. */ | ||
24373 | |||
24374 | /* Override any GCC internal prototype to avoid an error. | ||
24375 | Use char because int might match the return type of a GCC | ||
24376 | builtin and then its argument prototype would still apply. */ | ||
24377 | #ifdef __cplusplus | ||
24378 | extern "C" | ||
24379 | #endif | ||
24380 | char XTestFakeKeyEvent (); | ||
24381 | int | ||
24382 | main () | ||
24383 | { | ||
24384 | return XTestFakeKeyEvent (); | ||
24385 | ; | ||
24386 | return 0; | ||
24387 | } | ||
24388 | _ACEOF | ||
24389 | if ac_fn_c_try_link "$LINENO"; then : | ||
24390 | ac_cv_lib_Xtst_XTestFakeKeyEvent=yes | ||
24391 | else | ||
24392 | ac_cv_lib_Xtst_XTestFakeKeyEvent=no | ||
24393 | fi | ||
24394 | rm -f core conftest.err conftest.$ac_objext \ | ||
24395 | conftest$ac_exeext conftest.$ac_ext | ||
24396 | LIBS=$ac_check_lib_save_LIBS | ||
24397 | fi | ||
24398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestFakeKeyEvent" >&5 | ||
24399 | $as_echo "$ac_cv_lib_Xtst_XTestFakeKeyEvent" >&6; } | ||
24400 | if test "x$ac_cv_lib_Xtst_XTestFakeKeyEvent" = x""yes; then : | ||
24401 | |||
24402 | |||
24403 | $as_echo "#define ECORE_XTEST 1" >>confdefs.h | ||
24404 | |||
24405 | XTEST_LIBS="-lXtst" | ||
24406 | use_xtest="yes" | ||
24407 | |||
24408 | else | ||
24409 | use_xtest="no" | ||
24410 | fi | ||
24411 | |||
24412 | |||
24413 | else | ||
24414 | use_xtest="no" | ||
24415 | fi | ||
24416 | |||
24417 | |||
24418 | CFLAGS=$SAVE_CFLAGS | ||
24419 | else | ||
24420 | use_xtest="no" | ||
24421 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xtest support disabled" >&5 | ||
24422 | $as_echo "$as_me: Xtest support disabled" >&6;} | ||
24423 | fi | ||
24424 | |||
24425 | |||
24426 | |||
24427 | |||
24428 | |||
24429 | |||
24430 | |||
24431 | |||
24432 | |||
24433 | XSS_CFLAGS="" | ||
24434 | XSS_LIBS="" | ||
24435 | use_xss="no" | ||
24436 | |||
24437 | if test "x$want_ecore_x_screensaver" != "xno"; then | ||
24438 | SAVE_CFLAGS=$CFLAGS | ||
24439 | CFLAGS="$x_cflags $x_includes" | ||
24440 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" " #include <X11/Xlib.h> | ||
24441 | |||
24442 | " | ||
24443 | if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = x""yes; then : | ||
24444 | |||
24445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSelectInput in -lXss" >&5 | ||
24446 | $as_echo_n "checking for XScreenSaverSelectInput in -lXss... " >&6; } | ||
24447 | if test "${ac_cv_lib_Xss_XScreenSaverSelectInput+set}" = set; then : | ||
24448 | $as_echo_n "(cached) " >&6 | ||
24449 | else | ||
24450 | ac_check_lib_save_LIBS=$LIBS | ||
24451 | LIBS="-lXss $x_libs | ||
24452 | $LIBS" | ||
24453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24454 | /* end confdefs.h. */ | ||
24455 | |||
24456 | /* Override any GCC internal prototype to avoid an error. | ||
24457 | Use char because int might match the return type of a GCC | ||
24458 | builtin and then its argument prototype would still apply. */ | ||
24459 | #ifdef __cplusplus | ||
24460 | extern "C" | ||
24461 | #endif | ||
24462 | char XScreenSaverSelectInput (); | ||
24463 | int | ||
24464 | main () | ||
24465 | { | ||
24466 | return XScreenSaverSelectInput (); | ||
24467 | ; | ||
24468 | return 0; | ||
24469 | } | ||
24470 | _ACEOF | ||
24471 | if ac_fn_c_try_link "$LINENO"; then : | ||
24472 | ac_cv_lib_Xss_XScreenSaverSelectInput=yes | ||
24473 | else | ||
24474 | ac_cv_lib_Xss_XScreenSaverSelectInput=no | ||
24475 | fi | ||
24476 | rm -f core conftest.err conftest.$ac_objext \ | ||
24477 | conftest$ac_exeext conftest.$ac_ext | ||
24478 | LIBS=$ac_check_lib_save_LIBS | ||
24479 | fi | ||
24480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSelectInput" >&5 | ||
24481 | $as_echo "$ac_cv_lib_Xss_XScreenSaverSelectInput" >&6; } | ||
24482 | if test "x$ac_cv_lib_Xss_XScreenSaverSelectInput" = x""yes; then : | ||
24483 | |||
24484 | |||
24485 | $as_echo "#define ECORE_XSS 1" >>confdefs.h | ||
24486 | |||
24487 | XSS_LIBS="-lXss" | ||
24488 | use_xss="yes" | ||
24489 | |||
24490 | else | ||
24491 | use_xss="no" | ||
24492 | fi | ||
24493 | |||
24494 | |||
24495 | else | ||
24496 | use_xss="no" | ||
24497 | fi | ||
24498 | |||
24499 | |||
24500 | CFLAGS=$SAVE_CFLAGS | ||
24501 | else | ||
24502 | use_xss="no" | ||
24503 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xss support disabled" >&5 | ||
24504 | $as_echo "$as_me: Xss support disabled" >&6;} | ||
24505 | fi | ||
24506 | |||
24507 | |||
24508 | |||
24509 | |||
24510 | |||
24511 | |||
24512 | |||
24513 | |||
24514 | |||
24515 | XI2_CFLAGS="" | ||
24516 | XI2_LIBS="" | ||
24517 | use_xi2="no" | ||
24518 | |||
24519 | if test "x$want_ecore_x_input" != "xno"; then | ||
24520 | SAVE_CFLAGS=$CFLAGS | ||
24521 | CFLAGS="$x_cflags $x_includes" | ||
24522 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" " #include <X11/Xlib.h> | ||
24523 | |||
24524 | " | ||
24525 | if test "x$ac_cv_header_X11_extensions_XInput2_h" = x""yes; then : | ||
24526 | |||
24527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIQueryDevice in -lXi" >&5 | ||
24528 | $as_echo_n "checking for XIQueryDevice in -lXi... " >&6; } | ||
24529 | if test "${ac_cv_lib_Xi_XIQueryDevice+set}" = set; then : | ||
24530 | $as_echo_n "(cached) " >&6 | ||
24531 | else | ||
24532 | ac_check_lib_save_LIBS=$LIBS | ||
24533 | LIBS="-lXi $x_libs | ||
24534 | $LIBS" | ||
24535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24536 | /* end confdefs.h. */ | ||
24537 | |||
24538 | /* Override any GCC internal prototype to avoid an error. | ||
24539 | Use char because int might match the return type of a GCC | ||
24540 | builtin and then its argument prototype would still apply. */ | ||
24541 | #ifdef __cplusplus | ||
24542 | extern "C" | ||
24543 | #endif | ||
24544 | char XIQueryDevice (); | ||
24545 | int | ||
24546 | main () | ||
24547 | { | ||
24548 | return XIQueryDevice (); | ||
24549 | ; | ||
24550 | return 0; | ||
24551 | } | ||
24552 | _ACEOF | ||
24553 | if ac_fn_c_try_link "$LINENO"; then : | ||
24554 | ac_cv_lib_Xi_XIQueryDevice=yes | ||
24555 | else | ||
24556 | ac_cv_lib_Xi_XIQueryDevice=no | ||
24557 | fi | ||
24558 | rm -f core conftest.err conftest.$ac_objext \ | ||
24559 | conftest$ac_exeext conftest.$ac_ext | ||
24560 | LIBS=$ac_check_lib_save_LIBS | ||
24561 | fi | ||
24562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XIQueryDevice" >&5 | ||
24563 | $as_echo "$ac_cv_lib_Xi_XIQueryDevice" >&6; } | ||
24564 | if test "x$ac_cv_lib_Xi_XIQueryDevice" = x""yes; then : | ||
24565 | |||
24566 | |||
24567 | $as_echo "#define ECORE_XI2 1" >>confdefs.h | ||
24568 | |||
24569 | XI2_LIBS="-lXi" | ||
24570 | use_xi2="yes" | ||
24571 | |||
24572 | else | ||
24573 | use_xi2="no" | ||
24574 | fi | ||
24575 | |||
24576 | |||
24577 | else | ||
24578 | use_xi2="no" | ||
24579 | fi | ||
24580 | |||
24581 | |||
24582 | CFLAGS=$SAVE_CFLAGS | ||
24583 | else | ||
24584 | use_xi2="no" | ||
24585 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xi2 support disabled" >&5 | ||
24586 | $as_echo "$as_me: Xi2 support disabled" >&6;} | ||
24587 | fi | ||
24588 | |||
24589 | |||
24590 | |||
24591 | |||
24592 | |||
24593 | |||
24594 | |||
24595 | |||
24596 | ecore_x_libs_private="${Xcursor_libs} ${XKB_LIBS} ${XCOMPOSITE_LIBS} ${XGESTURE_LIBS} ${XDAMAGE_LIBS} ${XDPMS_LIBS} ${XFIXES_LIBS} ${XINERAMA_LIBS} ${XPRINT_LIBS} ${XRANDR_LIBS} ${XRENDER_LIBS} ${XTEST_LIBS} ${XSS_LIBS} ${XI2_LIBS}" | ||
24597 | |||
24598 | |||
24599 | $as_echo "#define HAVE_ECORE_X_XLIB 1" >>confdefs.h | ||
24600 | |||
24601 | have_x="yes" | ||
24602 | |||
24603 | have_ecore_x_xlib="yes" | ||
24604 | fi | ||
24605 | fi | ||
24606 | |||
24607 | |||
24608 | |||
24609 | |||
24610 | |||
24611 | |||
24612 | if test $have_ecore_x_xlib = yes; then | ||
24613 | BUILD_ECORE_X_XLIB_TRUE= | ||
24614 | BUILD_ECORE_X_XLIB_FALSE='#' | ||
24615 | else | ||
24616 | BUILD_ECORE_X_XLIB_TRUE='#' | ||
24617 | BUILD_ECORE_X_XLIB_FALSE= | ||
24618 | fi | ||
24619 | |||
24620 | if test $have_ecore_x_xcb = yes; then | ||
24621 | BUILD_ECORE_X_XCB_TRUE= | ||
24622 | BUILD_ECORE_X_XCB_FALSE='#' | ||
24623 | else | ||
24624 | BUILD_ECORE_X_XCB_TRUE='#' | ||
24625 | BUILD_ECORE_X_XCB_FALSE= | ||
24626 | fi | ||
24627 | |||
24628 | |||
24629 | |||
24630 | # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas) | ||
24631 | |||
24632 | |||
24633 | pkg_failed=no | ||
24634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVAS" >&5 | ||
24635 | $as_echo_n "checking for EVAS... " >&6; } | ||
24636 | |||
24637 | if test -n "$EVAS_CFLAGS"; then | ||
24638 | pkg_cv_EVAS_CFLAGS="$EVAS_CFLAGS" | ||
24639 | elif test -n "$PKG_CONFIG"; then | ||
24640 | if test -n "$PKG_CONFIG" && \ | ||
24641 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas >= 1.1.0\""; } >&5 | ||
24642 | ($PKG_CONFIG --exists --print-errors "evas >= 1.1.0") 2>&5 | ||
24643 | ac_status=$? | ||
24644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
24645 | test $ac_status = 0; }; then | ||
24646 | pkg_cv_EVAS_CFLAGS=`$PKG_CONFIG --cflags "evas >= 1.1.0" 2>/dev/null` | ||
24647 | else | ||
24648 | pkg_failed=yes | ||
24649 | fi | ||
24650 | else | ||
24651 | pkg_failed=untried | ||
24652 | fi | ||
24653 | if test -n "$EVAS_LIBS"; then | ||
24654 | pkg_cv_EVAS_LIBS="$EVAS_LIBS" | ||
24655 | elif test -n "$PKG_CONFIG"; then | ||
24656 | if test -n "$PKG_CONFIG" && \ | ||
24657 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas >= 1.1.0\""; } >&5 | ||
24658 | ($PKG_CONFIG --exists --print-errors "evas >= 1.1.0") 2>&5 | ||
24659 | ac_status=$? | ||
24660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
24661 | test $ac_status = 0; }; then | ||
24662 | pkg_cv_EVAS_LIBS=`$PKG_CONFIG --libs "evas >= 1.1.0" 2>/dev/null` | ||
24663 | else | ||
24664 | pkg_failed=yes | ||
24665 | fi | ||
24666 | else | ||
24667 | pkg_failed=untried | ||
24668 | fi | ||
24669 | |||
24670 | |||
24671 | |||
24672 | if test $pkg_failed = yes; then | ||
24673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24674 | $as_echo "no" >&6; } | ||
24675 | |||
24676 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
24677 | _pkg_short_errors_supported=yes | ||
24678 | else | ||
24679 | _pkg_short_errors_supported=no | ||
24680 | fi | ||
24681 | if test $_pkg_short_errors_supported = yes; then | ||
24682 | EVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evas >= 1.1.0" 2>&1` | ||
24683 | else | ||
24684 | EVAS_PKG_ERRORS=`$PKG_CONFIG --print-errors "evas >= 1.1.0" 2>&1` | ||
24685 | fi | ||
24686 | # Put the nasty error message in config.log where it belongs | ||
24687 | echo "$EVAS_PKG_ERRORS" >&5 | ||
24688 | |||
24689 | have_evas="no" | ||
24690 | elif test $pkg_failed = untried; then | ||
24691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24692 | $as_echo "no" >&6; } | ||
24693 | have_evas="no" | ||
24694 | else | ||
24695 | EVAS_CFLAGS=$pkg_cv_EVAS_CFLAGS | ||
24696 | EVAS_LIBS=$pkg_cv_EVAS_LIBS | ||
24697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
24698 | $as_echo "yes" >&6; } | ||
24699 | have_evas="yes" | ||
24700 | fi | ||
24701 | |||
24702 | |||
24703 | ### Checks for header files | ||
24704 | |||
24705 | for ac_header in sys/select.h sys/prctl.h | ||
24706 | do : | ||
24707 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
24708 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
24709 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
24710 | cat >>confdefs.h <<_ACEOF | ||
24711 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
24712 | _ACEOF | ||
24713 | |||
24714 | fi | ||
24715 | |||
24716 | done | ||
24717 | |||
24718 | |||
24719 | |||
24720 | |||
24721 | default_max="4096" | ||
24722 | ac_ext=c | ||
24723 | ac_cpp='$CPP $CPPFLAGS' | ||
24724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
24725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
24726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
24727 | |||
24728 | |||
24729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
24730 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
24731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24732 | /* end confdefs.h. */ | ||
24733 | |||
24734 | #include <limits.h> | ||
24735 | |||
24736 | int | ||
24737 | main () | ||
24738 | { | ||
24739 | |||
24740 | int i = PATH_MAX; | ||
24741 | |||
24742 | ; | ||
24743 | return 0; | ||
24744 | } | ||
24745 | _ACEOF | ||
24746 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
24748 | $as_echo "yes" >&6; } | ||
24749 | else | ||
24750 | |||
24751 | |||
24752 | cat >>confdefs.h <<_ACEOF | ||
24753 | #define PATH_MAX ${default_max} | ||
24754 | _ACEOF | ||
24755 | |||
24756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
24757 | $as_echo "no: using ${default_max}" >&6; } | ||
24758 | |||
24759 | fi | ||
24760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24761 | |||
24762 | ac_ext=c | ||
24763 | ac_cpp='$CPP $CPPFLAGS' | ||
24764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
24765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
24766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
24767 | |||
24768 | |||
24769 | |||
24770 | |||
24771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | ||
24772 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | ||
24773 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | ||
24774 | $as_echo_n "(cached) " >&6 | ||
24775 | else | ||
24776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24777 | /* end confdefs.h. */ | ||
24778 | #include <sys/types.h> | ||
24779 | #include <sys/wait.h> | ||
24780 | #ifndef WEXITSTATUS | ||
24781 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | ||
24782 | #endif | ||
24783 | #ifndef WIFEXITED | ||
24784 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | ||
24785 | #endif | ||
24786 | |||
24787 | int | ||
24788 | main () | ||
24789 | { | ||
24790 | int s; | ||
24791 | wait (&s); | ||
24792 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | ||
24793 | ; | ||
24794 | return 0; | ||
24795 | } | ||
24796 | _ACEOF | ||
24797 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24798 | ac_cv_header_sys_wait_h=yes | ||
24799 | else | ||
24800 | ac_cv_header_sys_wait_h=no | ||
24801 | fi | ||
24802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24803 | fi | ||
24804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | ||
24805 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | ||
24806 | if test $ac_cv_header_sys_wait_h = yes; then | ||
24807 | |||
24808 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | ||
24809 | |||
24810 | fi | ||
24811 | |||
24812 | # Check whether --enable-largefile was given. | ||
24813 | if test "${enable_largefile+set}" = set; then : | ||
24814 | enableval=$enable_largefile; | ||
24815 | fi | ||
24816 | |||
24817 | if test "$enable_largefile" != no; then | ||
24818 | |||
24819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
24820 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
24821 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | ||
24822 | $as_echo_n "(cached) " >&6 | ||
24823 | else | ||
24824 | ac_cv_sys_largefile_CC=no | ||
24825 | if test "$GCC" != yes; then | ||
24826 | ac_save_CC=$CC | ||
24827 | while :; do | ||
24828 | # IRIX 6.2 and later do not support large files by default, | ||
24829 | # so use the C compiler's -n32 option if that helps. | ||
24830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24831 | /* end confdefs.h. */ | ||
24832 | #include <sys/types.h> | ||
24833 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
24834 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
24835 | since some C++ compilers masquerading as C compilers | ||
24836 | incorrectly reject 9223372036854775807. */ | ||
24837 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
24838 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
24839 | && LARGE_OFF_T % 2147483647 == 1) | ||
24840 | ? 1 : -1]; | ||
24841 | int | ||
24842 | main () | ||
24843 | { | ||
24844 | |||
24845 | ; | ||
24846 | return 0; | ||
24847 | } | ||
24848 | _ACEOF | ||
24849 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24850 | break | ||
24851 | fi | ||
24852 | rm -f core conftest.err conftest.$ac_objext | ||
24853 | CC="$CC -n32" | ||
24854 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24855 | ac_cv_sys_largefile_CC=' -n32'; break | ||
24856 | fi | ||
24857 | rm -f core conftest.err conftest.$ac_objext | ||
24858 | break | ||
24859 | done | ||
24860 | CC=$ac_save_CC | ||
24861 | rm -f conftest.$ac_ext | ||
24862 | fi | ||
24863 | fi | ||
24864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
24865 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
24866 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
24867 | CC=$CC$ac_cv_sys_largefile_CC | ||
24868 | fi | ||
24869 | |||
24870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
24871 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
24872 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | ||
24873 | $as_echo_n "(cached) " >&6 | ||
24874 | else | ||
24875 | while :; do | ||
24876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24877 | /* end confdefs.h. */ | ||
24878 | #include <sys/types.h> | ||
24879 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
24880 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
24881 | since some C++ compilers masquerading as C compilers | ||
24882 | incorrectly reject 9223372036854775807. */ | ||
24883 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
24884 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
24885 | && LARGE_OFF_T % 2147483647 == 1) | ||
24886 | ? 1 : -1]; | ||
24887 | int | ||
24888 | main () | ||
24889 | { | ||
24890 | |||
24891 | ; | ||
24892 | return 0; | ||
24893 | } | ||
24894 | _ACEOF | ||
24895 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24896 | ac_cv_sys_file_offset_bits=no; break | ||
24897 | fi | ||
24898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24900 | /* end confdefs.h. */ | ||
24901 | #define _FILE_OFFSET_BITS 64 | ||
24902 | #include <sys/types.h> | ||
24903 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
24904 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
24905 | since some C++ compilers masquerading as C compilers | ||
24906 | incorrectly reject 9223372036854775807. */ | ||
24907 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
24908 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
24909 | && LARGE_OFF_T % 2147483647 == 1) | ||
24910 | ? 1 : -1]; | ||
24911 | int | ||
24912 | main () | ||
24913 | { | ||
24914 | |||
24915 | ; | ||
24916 | return 0; | ||
24917 | } | ||
24918 | _ACEOF | ||
24919 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24920 | ac_cv_sys_file_offset_bits=64; break | ||
24921 | fi | ||
24922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24923 | ac_cv_sys_file_offset_bits=unknown | ||
24924 | break | ||
24925 | done | ||
24926 | fi | ||
24927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
24928 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
24929 | case $ac_cv_sys_file_offset_bits in #( | ||
24930 | no | unknown) ;; | ||
24931 | *) | ||
24932 | cat >>confdefs.h <<_ACEOF | ||
24933 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
24934 | _ACEOF | ||
24935 | ;; | ||
24936 | esac | ||
24937 | rm -rf conftest* | ||
24938 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
24939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
24940 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
24941 | if test "${ac_cv_sys_large_files+set}" = set; then : | ||
24942 | $as_echo_n "(cached) " >&6 | ||
24943 | else | ||
24944 | while :; do | ||
24945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24946 | /* end confdefs.h. */ | ||
24947 | #include <sys/types.h> | ||
24948 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
24949 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
24950 | since some C++ compilers masquerading as C compilers | ||
24951 | incorrectly reject 9223372036854775807. */ | ||
24952 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
24953 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
24954 | && LARGE_OFF_T % 2147483647 == 1) | ||
24955 | ? 1 : -1]; | ||
24956 | int | ||
24957 | main () | ||
24958 | { | ||
24959 | |||
24960 | ; | ||
24961 | return 0; | ||
24962 | } | ||
24963 | _ACEOF | ||
24964 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24965 | ac_cv_sys_large_files=no; break | ||
24966 | fi | ||
24967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24969 | /* end confdefs.h. */ | ||
24970 | #define _LARGE_FILES 1 | ||
24971 | #include <sys/types.h> | ||
24972 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
24973 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
24974 | since some C++ compilers masquerading as C compilers | ||
24975 | incorrectly reject 9223372036854775807. */ | ||
24976 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
24977 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
24978 | && LARGE_OFF_T % 2147483647 == 1) | ||
24979 | ? 1 : -1]; | ||
24980 | int | ||
24981 | main () | ||
24982 | { | ||
24983 | |||
24984 | ; | ||
24985 | return 0; | ||
24986 | } | ||
24987 | _ACEOF | ||
24988 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24989 | ac_cv_sys_large_files=1; break | ||
24990 | fi | ||
24991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24992 | ac_cv_sys_large_files=unknown | ||
24993 | break | ||
24994 | done | ||
24995 | fi | ||
24996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
24997 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
24998 | case $ac_cv_sys_large_files in #( | ||
24999 | no | unknown) ;; | ||
25000 | *) | ||
25001 | cat >>confdefs.h <<_ACEOF | ||
25002 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
25003 | _ACEOF | ||
25004 | ;; | ||
25005 | esac | ||
25006 | rm -rf conftest* | ||
25007 | fi | ||
25008 | fi | ||
25009 | |||
25010 | |||
25011 | have_addrinfo="no" | ||
25012 | case "$host_os" in | ||
25013 | mingw* | cegcc*) | ||
25014 | |||
25015 | $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h | ||
25016 | |||
25017 | |||
25018 | $as_echo "#define HAVE_SYS_MMAN_H 1" >>confdefs.h | ||
25019 | |||
25020 | |||
25021 | $as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h | ||
25022 | |||
25023 | have_addrinfo="yes" | ||
25024 | ;; | ||
25025 | *) | ||
25026 | for ac_header in dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h | ||
25027 | do : | ||
25028 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
25029 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
25030 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
25031 | cat >>confdefs.h <<_ACEOF | ||
25032 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
25033 | _ACEOF | ||
25034 | |||
25035 | fi | ||
25036 | |||
25037 | done | ||
25038 | |||
25039 | ;; | ||
25040 | esac | ||
25041 | |||
25042 | # ecore_con | ||
25043 | |||
25044 | for ac_header in arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h sys/socket.h sys/un.h ws2tcpip.h netdb.h | ||
25045 | do : | ||
25046 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
25047 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
25048 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
25049 | cat >>confdefs.h <<_ACEOF | ||
25050 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
25051 | _ACEOF | ||
25052 | |||
25053 | fi | ||
25054 | |||
25055 | done | ||
25056 | |||
25057 | |||
25058 | if test "x${ac_cv_header_netdb_h}" = "xyes" ; then | ||
25059 | have_addrinfo="yes" | ||
25060 | fi | ||
25061 | |||
25062 | # Framebuffer (ecore_fb) | ||
25063 | have_fb="no" | ||
25064 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" | ||
25065 | if test "x$ac_cv_header_linux_fb_h" = x""yes; then : | ||
25066 | ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" | ||
25067 | if test "x$ac_cv_header_linux_input_h" = x""yes; then : | ||
25068 | have_fb="yes" | ||
25069 | fi | ||
25070 | |||
25071 | |||
25072 | fi | ||
25073 | |||
25074 | |||
25075 | |||
25076 | # Cocoa header files (ecore_cocoa) | ||
25077 | |||
25078 | if test "x${want_ecore_cocoa}" = "xyes" ; then | ||
25079 | cocoa_ldflags="" | ||
25080 | have_cocoa="no" | ||
25081 | |||
25082 | if test "x${have_gnu_objc}" = "xyes" ; then | ||
25083 | ac_ext=m | ||
25084 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
25085 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
25086 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
25087 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
25088 | |||
25089 | LIBS_save="$LIBS" | ||
25090 | LIBS="$LIBS -framework Cocoa" | ||
25091 | |||
25092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25093 | /* end confdefs.h. */ | ||
25094 | |||
25095 | #include <Cocoa/Cocoa.h> | ||
25096 | |||
25097 | int | ||
25098 | main () | ||
25099 | { | ||
25100 | |||
25101 | NSWindow *window; | ||
25102 | window = [[NSWindow alloc] | ||
25103 | initWithContentRect:NSMakeRect(0, 0, 1, 1) | ||
25104 | styleMask:(NSTitledWindowMask) | ||
25105 | backing:NSBackingStoreBuffered | ||
25106 | defer:NO | ||
25107 | screen:nil | ||
25108 | ]; | ||
25109 | |||
25110 | ; | ||
25111 | return 0; | ||
25112 | } | ||
25113 | _ACEOF | ||
25114 | if ac_fn_objc_try_link "$LINENO"; then : | ||
25115 | |||
25116 | have_cocoa="yes" | ||
25117 | cocoa_ldflags="-framework Cocoa" | ||
25118 | |||
25119 | else | ||
25120 | have_cocoa="no" | ||
25121 | fi | ||
25122 | rm -f core conftest.err conftest.$ac_objext \ | ||
25123 | conftest$ac_exeext conftest.$ac_ext | ||
25124 | LIBS="$LIBS_save" | ||
25125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Cocoa framework is supported" >&5 | ||
25126 | $as_echo_n "checking whether Cocoa framework is supported... " >&6; } | ||
25127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_cocoa}" >&5 | ||
25128 | $as_echo "${have_cocoa}" >&6; } | ||
25129 | ac_ext=c | ||
25130 | ac_cpp='$CPP $CPPFLAGS' | ||
25131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
25132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
25133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
25134 | |||
25135 | fi | ||
25136 | |||
25137 | fi | ||
25138 | |||
25139 | |||
25140 | want_epoll=yes | ||
25141 | # Check whether --enable-epoll was given. | ||
25142 | if test "${enable_epoll+set}" = set; then : | ||
25143 | enableval=$enable_epoll; want_epoll=$enableval | ||
25144 | fi | ||
25145 | |||
25146 | |||
25147 | if test "x${want_epoll}" = "xyes" ; then | ||
25148 | # check for epoll support | ||
25149 | for ac_header in sys/epoll.h | ||
25150 | do : | ||
25151 | ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" | ||
25152 | if test "x$ac_cv_header_sys_epoll_h" = x""yes; then : | ||
25153 | cat >>confdefs.h <<_ACEOF | ||
25154 | #define HAVE_SYS_EPOLL_H 1 | ||
25155 | _ACEOF | ||
25156 | |||
25157 | fi | ||
25158 | |||
25159 | done | ||
25160 | |||
25161 | fi | ||
25162 | |||
25163 | # timerfd_create | ||
25164 | for ac_header in sys/timerfd.h | ||
25165 | do : | ||
25166 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" | ||
25167 | if test "x$ac_cv_header_sys_timerfd_h" = x""yes; then : | ||
25168 | cat >>confdefs.h <<_ACEOF | ||
25169 | #define HAVE_SYS_TIMERFD_H 1 | ||
25170 | _ACEOF | ||
25171 | |||
25172 | fi | ||
25173 | |||
25174 | done | ||
25175 | |||
25176 | for ac_func in timerfd_create | ||
25177 | do : | ||
25178 | ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create" | ||
25179 | if test "x$ac_cv_func_timerfd_create" = x""yes; then : | ||
25180 | cat >>confdefs.h <<_ACEOF | ||
25181 | #define HAVE_TIMERFD_CREATE 1 | ||
25182 | _ACEOF | ||
25183 | |||
25184 | fi | ||
25185 | done | ||
25186 | |||
25187 | |||
25188 | # thread support | ||
25189 | |||
25190 | |||
25191 | |||
25192 | |||
25193 | # Check whether --enable-posix-threads was given. | ||
25194 | if test "${enable_posix_threads+set}" = set; then : | ||
25195 | enableval=$enable_posix_threads; | ||
25196 | if test "x${enableval}" = "xyes" ; then | ||
25197 | _efl_enable_posix_threads="yes" | ||
25198 | else | ||
25199 | _efl_enable_posix_threads="no" | ||
25200 | fi | ||
25201 | |||
25202 | else | ||
25203 | _efl_enable_posix_threads="auto" | ||
25204 | fi | ||
25205 | |||
25206 | |||
25207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build POSIX threads code" >&5 | ||
25208 | $as_echo_n "checking whether to build POSIX threads code... " >&6; } | ||
25209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_posix_threads}" >&5 | ||
25210 | $as_echo "${_efl_enable_posix_threads}" >&6; } | ||
25211 | |||
25212 | # Check whether --enable-win32-threads was given. | ||
25213 | if test "${enable_win32_threads+set}" = set; then : | ||
25214 | enableval=$enable_win32_threads; | ||
25215 | if test "x${enableval}" = "xyes" ; then | ||
25216 | _efl_enable_win32_threads="yes" | ||
25217 | else | ||
25218 | _efl_enable_win32_threads="no" | ||
25219 | fi | ||
25220 | |||
25221 | else | ||
25222 | _efl_enable_win32_threads="no" | ||
25223 | fi | ||
25224 | |||
25225 | |||
25226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Windows threads code" >&5 | ||
25227 | $as_echo_n "checking whether to build Windows threads code... " >&6; } | ||
25228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_win32_threads}" >&5 | ||
25229 | $as_echo "${_efl_enable_win32_threads}" >&6; } | ||
25230 | |||
25231 | |||
25232 | if test "x${_efl_enable_posix_threads}" = "xyes" && test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
25233 | case "$host_os" in | ||
25234 | mingw*) | ||
25235 | _efl_enable_posix_threads=no | ||
25236 | ;; | ||
25237 | *) | ||
25238 | _efl_enable_win32_threads=no | ||
25239 | ;; | ||
25240 | esac | ||
25241 | fi | ||
25242 | |||
25243 | if test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
25244 | case "$host_os" in | ||
25245 | mingw*) | ||
25246 | ;; | ||
25247 | *) | ||
25248 | as_fn_error $? "Win32 threads support requested but non Windows system found." "$LINENO" 5 | ||
25249 | ;; | ||
25250 | esac | ||
25251 | fi | ||
25252 | |||
25253 | if test "x${_efl_enable_posix_threads}" = "xyes" ; then | ||
25254 | case "$host_os" in | ||
25255 | mingw*) | ||
25256 | as_fn_error $? "POSIX threads support requested but Windows system found." "$LINENO" 5 | ||
25257 | ;; | ||
25258 | *) | ||
25259 | ;; | ||
25260 | esac | ||
25261 | fi | ||
25262 | |||
25263 | |||
25264 | case "$host_os" in | ||
25265 | mingw*) | ||
25266 | ;; | ||
25267 | solaris*) | ||
25268 | _efl_threads_cflags="-mt" | ||
25269 | _efl_threads_libs="-mt" | ||
25270 | ;; | ||
25271 | *) | ||
25272 | _efl_threads_cflags="-pthread" | ||
25273 | _efl_threads_libs="-pthread" | ||
25274 | ;; | ||
25275 | esac | ||
25276 | |||
25277 | _efl_have_posix_threads="no" | ||
25278 | _efl_have_win32_threads="no" | ||
25279 | |||
25280 | if test "x${_efl_enable_posix_threads}" = "xyes" || test "x${_efl_enable_posix_threads}" = "xauto" ; then | ||
25281 | |||
25282 | SAVE_CFLAGS=${CFLAGS} | ||
25283 | CFLAGS="${CFLAGS} ${_efl_threads_cflags}" | ||
25284 | SAVE_LIBS=${LIBS} | ||
25285 | LIBS="${LIBS} ${_efl_threads_libs}" | ||
25286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25287 | /* end confdefs.h. */ | ||
25288 | |||
25289 | #include <pthread.h> | ||
25290 | |||
25291 | int | ||
25292 | main () | ||
25293 | { | ||
25294 | |||
25295 | pthread_t id; | ||
25296 | id = pthread_self(); | ||
25297 | |||
25298 | ; | ||
25299 | return 0; | ||
25300 | } | ||
25301 | _ACEOF | ||
25302 | if ac_fn_c_try_link "$LINENO"; then : | ||
25303 | _efl_have_posix_threads="yes" | ||
25304 | else | ||
25305 | _efl_have_posix_threads="no" | ||
25306 | fi | ||
25307 | rm -f core conftest.err conftest.$ac_objext \ | ||
25308 | conftest$ac_exeext conftest.$ac_ext | ||
25309 | CFLAGS=${SAVE_CFLAGS} | ||
25310 | LIBS=${SAVE_LIBS} | ||
25311 | |||
25312 | fi | ||
25313 | |||
25314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system support POSIX threads" >&5 | ||
25315 | $as_echo_n "checking whether system support POSIX threads... " >&6; } | ||
25316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_have_posix_threads}" >&5 | ||
25317 | $as_echo "${_efl_have_posix_threads}" >&6; } | ||
25318 | if test "$x{_efl_enable_posix_threads}" = "xyes" && test "x${_efl_have_posix_threads}" = "xno"; then | ||
25319 | as_fn_error $? "POSIX threads support requested but not found." "$LINENO" 5 | ||
25320 | fi | ||
25321 | |||
25322 | EFL_PTHREAD_CFLAGS="" | ||
25323 | EFL_PTHREAD_LIBS="" | ||
25324 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
25325 | EFL_PTHREAD_CFLAGS=${_efl_threads_cflags} | ||
25326 | EFL_PTHREAD_LIBS=${_efl_threads_libs} | ||
25327 | fi | ||
25328 | |||
25329 | |||
25330 | |||
25331 | |||
25332 | _efl_enable_debug_threads="no" | ||
25333 | # Check whether --enable-debug-threads was given. | ||
25334 | if test "${enable_debug_threads+set}" = set; then : | ||
25335 | enableval=$enable_debug_threads; _efl_enable_debug_threads="${enableval}" | ||
25336 | fi | ||
25337 | |||
25338 | |||
25339 | have_debug_threads="no" | ||
25340 | if test "x${_efl_have_posix_threads}" = "xyes" -a "x${_efl_enable_debug_threads}" = "xyes"; then | ||
25341 | have_debug_threads="yes" | ||
25342 | |||
25343 | $as_echo "#define EFL_DEBUG_THREADS 1" >>confdefs.h | ||
25344 | |||
25345 | fi | ||
25346 | |||
25347 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
25348 | |||
25349 | $as_echo "#define EFL_HAVE_POSIX_THREADS 1" >>confdefs.h | ||
25350 | |||
25351 | fi | ||
25352 | |||
25353 | if test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
25354 | _efl_have_win32_threads="yes" | ||
25355 | |||
25356 | $as_echo "#define EFL_HAVE_WIN32_THREADS 1" >>confdefs.h | ||
25357 | |||
25358 | fi | ||
25359 | |||
25360 | if test "x${_efl_have_posix_threads}" = "xyes" || test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
25361 | |||
25362 | $as_echo "#define EFL_HAVE_THREADS 1" >>confdefs.h | ||
25363 | |||
25364 | fi | ||
25365 | |||
25366 | if test "x$_efl_have_posix_threads" = "xyes" || test "x$_efl_have_win32_threads" = "xyes"; then : | ||
25367 | |||
25368 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
25369 | have_threads="POSIX" | ||
25370 | else | ||
25371 | if test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
25372 | have_threads="Win32" | ||
25373 | else | ||
25374 | have_threads="no" | ||
25375 | fi | ||
25376 | fi | ||
25377 | |||
25378 | else | ||
25379 | have_threads="no" | ||
25380 | fi | ||
25381 | |||
25382 | |||
25383 | ### enable thread safety if we have threads, unless specifically asked not to | ||
25384 | if test "x${have_threads}" = "xno" | ||
25385 | then | ||
25386 | want_thread_safety="no" | ||
25387 | else | ||
25388 | want_thread_safety="no" # to be changed to yes when ready | ||
25389 | # Check whether --enable-thread-safety was given. | ||
25390 | if test "${enable_thread_safety+set}" = set; then : | ||
25391 | enableval=$enable_thread_safety; want_thread_safety=$enableval | ||
25392 | fi | ||
25393 | |||
25394 | fi | ||
25395 | |||
25396 | if test "x${want_thread_safety}" = "xyes" | ||
25397 | then | ||
25398 | |||
25399 | $as_echo "#define HAVE_THREAD_SAFETY 1" >>confdefs.h | ||
25400 | |||
25401 | fi | ||
25402 | |||
25403 | ### Checks for types | ||
25404 | # The cast to long int works around a bug in the HP C Compiler | ||
25405 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25406 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25407 | # This bug is HP SR number 8606223364. | ||
25408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
25409 | $as_echo_n "checking size of int... " >&6; } | ||
25410 | if test "${ac_cv_sizeof_int+set}" = set; then : | ||
25411 | $as_echo_n "(cached) " >&6 | ||
25412 | else | ||
25413 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
25414 | |||
25415 | else | ||
25416 | if test "$ac_cv_type_int" = yes; then | ||
25417 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
25418 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
25419 | as_fn_error 77 "cannot compute sizeof (int) | ||
25420 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
25421 | else | ||
25422 | ac_cv_sizeof_int=0 | ||
25423 | fi | ||
25424 | fi | ||
25425 | |||
25426 | fi | ||
25427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
25428 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
25429 | |||
25430 | |||
25431 | |||
25432 | cat >>confdefs.h <<_ACEOF | ||
25433 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
25434 | _ACEOF | ||
25435 | |||
25436 | |||
25437 | # The cast to long int works around a bug in the HP C Compiler | ||
25438 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25439 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25440 | # This bug is HP SR number 8606223364. | ||
25441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | ||
25442 | $as_echo_n "checking size of long... " >&6; } | ||
25443 | if test "${ac_cv_sizeof_long+set}" = set; then : | ||
25444 | $as_echo_n "(cached) " >&6 | ||
25445 | else | ||
25446 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | ||
25447 | |||
25448 | else | ||
25449 | if test "$ac_cv_type_long" = yes; then | ||
25450 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
25451 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
25452 | as_fn_error 77 "cannot compute sizeof (long) | ||
25453 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
25454 | else | ||
25455 | ac_cv_sizeof_long=0 | ||
25456 | fi | ||
25457 | fi | ||
25458 | |||
25459 | fi | ||
25460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | ||
25461 | $as_echo "$ac_cv_sizeof_long" >&6; } | ||
25462 | |||
25463 | |||
25464 | |||
25465 | cat >>confdefs.h <<_ACEOF | ||
25466 | #define SIZEOF_LONG $ac_cv_sizeof_long | ||
25467 | _ACEOF | ||
25468 | |||
25469 | |||
25470 | |||
25471 | |||
25472 | ### Checks for structures | ||
25473 | |||
25474 | |||
25475 | ### Checks for compiler characteristics | ||
25476 | case $ac_cv_prog_cc_stdc in #( | ||
25477 | no) : | ||
25478 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
25479 | *) : | ||
25480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
25481 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
25482 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
25483 | $as_echo_n "(cached) " >&6 | ||
25484 | else | ||
25485 | ac_cv_prog_cc_c99=no | ||
25486 | ac_save_CC=$CC | ||
25487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25488 | /* end confdefs.h. */ | ||
25489 | #include <stdarg.h> | ||
25490 | #include <stdbool.h> | ||
25491 | #include <stdlib.h> | ||
25492 | #include <wchar.h> | ||
25493 | #include <stdio.h> | ||
25494 | |||
25495 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
25496 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
25497 | #define showlist(...) puts (#__VA_ARGS__) | ||
25498 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
25499 | static void | ||
25500 | test_varargs_macros (void) | ||
25501 | { | ||
25502 | int x = 1234; | ||
25503 | int y = 5678; | ||
25504 | debug ("Flag"); | ||
25505 | debug ("X = %d\n", x); | ||
25506 | showlist (The first, second, and third items.); | ||
25507 | report (x>y, "x is %d but y is %d", x, y); | ||
25508 | } | ||
25509 | |||
25510 | // Check long long types. | ||
25511 | #define BIG64 18446744073709551615ull | ||
25512 | #define BIG32 4294967295ul | ||
25513 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
25514 | #if !BIG_OK | ||
25515 | your preprocessor is broken; | ||
25516 | #endif | ||
25517 | #if BIG_OK | ||
25518 | #else | ||
25519 | your preprocessor is broken; | ||
25520 | #endif | ||
25521 | static long long int bignum = -9223372036854775807LL; | ||
25522 | static unsigned long long int ubignum = BIG64; | ||
25523 | |||
25524 | struct incomplete_array | ||
25525 | { | ||
25526 | int datasize; | ||
25527 | double data[]; | ||
25528 | }; | ||
25529 | |||
25530 | struct named_init { | ||
25531 | int number; | ||
25532 | const wchar_t *name; | ||
25533 | double average; | ||
25534 | }; | ||
25535 | |||
25536 | typedef const char *ccp; | ||
25537 | |||
25538 | static inline int | ||
25539 | test_restrict (ccp restrict text) | ||
25540 | { | ||
25541 | // See if C++-style comments work. | ||
25542 | // Iterate through items via the restricted pointer. | ||
25543 | // Also check for declarations in for loops. | ||
25544 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
25545 | continue; | ||
25546 | return 0; | ||
25547 | } | ||
25548 | |||
25549 | // Check varargs and va_copy. | ||
25550 | static void | ||
25551 | test_varargs (const char *format, ...) | ||
25552 | { | ||
25553 | va_list args; | ||
25554 | va_start (args, format); | ||
25555 | va_list args_copy; | ||
25556 | va_copy (args_copy, args); | ||
25557 | |||
25558 | const char *str; | ||
25559 | int number; | ||
25560 | float fnumber; | ||
25561 | |||
25562 | while (*format) | ||
25563 | { | ||
25564 | switch (*format++) | ||
25565 | { | ||
25566 | case 's': // string | ||
25567 | str = va_arg (args_copy, const char *); | ||
25568 | break; | ||
25569 | case 'd': // int | ||
25570 | number = va_arg (args_copy, int); | ||
25571 | break; | ||
25572 | case 'f': // float | ||
25573 | fnumber = va_arg (args_copy, double); | ||
25574 | break; | ||
25575 | default: | ||
25576 | break; | ||
25577 | } | ||
25578 | } | ||
25579 | va_end (args_copy); | ||
25580 | va_end (args); | ||
25581 | } | ||
25582 | |||
25583 | int | ||
25584 | main () | ||
25585 | { | ||
25586 | |||
25587 | // Check bool. | ||
25588 | _Bool success = false; | ||
25589 | |||
25590 | // Check restrict. | ||
25591 | if (test_restrict ("String literal") == 0) | ||
25592 | success = true; | ||
25593 | char *restrict newvar = "Another string"; | ||
25594 | |||
25595 | // Check varargs. | ||
25596 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
25597 | test_varargs_macros (); | ||
25598 | |||
25599 | // Check flexible array members. | ||
25600 | struct incomplete_array *ia = | ||
25601 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
25602 | ia->datasize = 10; | ||
25603 | for (int i = 0; i < ia->datasize; ++i) | ||
25604 | ia->data[i] = i * 1.234; | ||
25605 | |||
25606 | // Check named initializers. | ||
25607 | struct named_init ni = { | ||
25608 | .number = 34, | ||
25609 | .name = L"Test wide string", | ||
25610 | .average = 543.34343, | ||
25611 | }; | ||
25612 | |||
25613 | ni.number = 58; | ||
25614 | |||
25615 | int dynamic_array[ni.number]; | ||
25616 | dynamic_array[ni.number - 1] = 543; | ||
25617 | |||
25618 | // work around unused variable warnings | ||
25619 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
25620 | || dynamic_array[ni.number - 1] != 543); | ||
25621 | |||
25622 | ; | ||
25623 | return 0; | ||
25624 | } | ||
25625 | _ACEOF | ||
25626 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
25627 | do | ||
25628 | CC="$ac_save_CC $ac_arg" | ||
25629 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25630 | ac_cv_prog_cc_c99=$ac_arg | ||
25631 | fi | ||
25632 | rm -f core conftest.err conftest.$ac_objext | ||
25633 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
25634 | done | ||
25635 | rm -f conftest.$ac_ext | ||
25636 | CC=$ac_save_CC | ||
25637 | |||
25638 | fi | ||
25639 | # AC_CACHE_VAL | ||
25640 | case "x$ac_cv_prog_cc_c99" in | ||
25641 | x) | ||
25642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
25643 | $as_echo "none needed" >&6; } ;; | ||
25644 | xno) | ||
25645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
25646 | $as_echo "unsupported" >&6; } ;; | ||
25647 | *) | ||
25648 | CC="$CC $ac_cv_prog_cc_c99" | ||
25649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
25650 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
25651 | esac | ||
25652 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
25653 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
25654 | else | ||
25655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
25656 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
25657 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
25658 | $as_echo_n "(cached) " >&6 | ||
25659 | else | ||
25660 | ac_cv_prog_cc_c89=no | ||
25661 | ac_save_CC=$CC | ||
25662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25663 | /* end confdefs.h. */ | ||
25664 | #include <stdarg.h> | ||
25665 | #include <stdio.h> | ||
25666 | #include <sys/types.h> | ||
25667 | #include <sys/stat.h> | ||
25668 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
25669 | struct buf { int x; }; | ||
25670 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
25671 | static char *e (p, i) | ||
25672 | char **p; | ||
25673 | int i; | ||
25674 | { | ||
25675 | return p[i]; | ||
25676 | } | ||
25677 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
25678 | { | ||
25679 | char *s; | ||
25680 | va_list v; | ||
25681 | va_start (v,p); | ||
25682 | s = g (p, va_arg (v,int)); | ||
25683 | va_end (v); | ||
25684 | return s; | ||
25685 | } | ||
25686 | |||
25687 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
25688 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
25689 | These don't provoke an error unfortunately, instead are silently treated | ||
25690 | as 'x'. The following induces an error, until -std is added to get | ||
25691 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
25692 | array size at least. It's necessary to write '\x00'==0 to get something | ||
25693 | that's true only with -std. */ | ||
25694 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
25695 | |||
25696 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
25697 | inside strings and character constants. */ | ||
25698 | #define FOO(x) 'x' | ||
25699 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
25700 | |||
25701 | int test (int i, double x); | ||
25702 | struct s1 {int (*f) (int a);}; | ||
25703 | struct s2 {int (*f) (double a);}; | ||
25704 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
25705 | int argc; | ||
25706 | char **argv; | ||
25707 | int | ||
25708 | main () | ||
25709 | { | ||
25710 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
25711 | ; | ||
25712 | return 0; | ||
25713 | } | ||
25714 | _ACEOF | ||
25715 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
25716 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
25717 | do | ||
25718 | CC="$ac_save_CC $ac_arg" | ||
25719 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25720 | ac_cv_prog_cc_c89=$ac_arg | ||
25721 | fi | ||
25722 | rm -f core conftest.err conftest.$ac_objext | ||
25723 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
25724 | done | ||
25725 | rm -f conftest.$ac_ext | ||
25726 | CC=$ac_save_CC | ||
25727 | |||
25728 | fi | ||
25729 | # AC_CACHE_VAL | ||
25730 | case "x$ac_cv_prog_cc_c89" in | ||
25731 | x) | ||
25732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
25733 | $as_echo "none needed" >&6; } ;; | ||
25734 | xno) | ||
25735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
25736 | $as_echo "unsupported" >&6; } ;; | ||
25737 | *) | ||
25738 | CC="$CC $ac_cv_prog_cc_c89" | ||
25739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
25740 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
25741 | esac | ||
25742 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
25743 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
25744 | else | ||
25745 | ac_cv_prog_cc_stdc=no | ||
25746 | fi | ||
25747 | |||
25748 | fi | ||
25749 | ;; | ||
25750 | esac | ||
25751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
25752 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
25753 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
25754 | $as_echo_n "(cached) " >&6 | ||
25755 | fi | ||
25756 | |||
25757 | case $ac_cv_prog_cc_stdc in #( | ||
25758 | no) : | ||
25759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
25760 | $as_echo "unsupported" >&6; } ;; #( | ||
25761 | '') : | ||
25762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
25763 | $as_echo "none needed" >&6; } ;; #( | ||
25764 | *) : | ||
25765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
25766 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
25767 | esac | ||
25768 | |||
25769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
25770 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
25771 | if test "${ac_cv_c_const+set}" = set; then : | ||
25772 | $as_echo_n "(cached) " >&6 | ||
25773 | else | ||
25774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25775 | /* end confdefs.h. */ | ||
25776 | |||
25777 | int | ||
25778 | main () | ||
25779 | { | ||
25780 | /* FIXME: Include the comments suggested by Paul. */ | ||
25781 | #ifndef __cplusplus | ||
25782 | /* Ultrix mips cc rejects this. */ | ||
25783 | typedef int charset[2]; | ||
25784 | const charset cs; | ||
25785 | /* SunOS 4.1.1 cc rejects this. */ | ||
25786 | char const *const *pcpcc; | ||
25787 | char **ppc; | ||
25788 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
25789 | struct point {int x, y;}; | ||
25790 | static struct point const zero = {0,0}; | ||
25791 | /* AIX XL C 1.02.0.0 rejects this. | ||
25792 | It does not let you subtract one const X* pointer from another in | ||
25793 | an arm of an if-expression whose if-part is not a constant | ||
25794 | expression */ | ||
25795 | const char *g = "string"; | ||
25796 | pcpcc = &g + (g ? g-g : 0); | ||
25797 | /* HPUX 7.0 cc rejects these. */ | ||
25798 | ++pcpcc; | ||
25799 | ppc = (char**) pcpcc; | ||
25800 | pcpcc = (char const *const *) ppc; | ||
25801 | { /* SCO 3.2v4 cc rejects this. */ | ||
25802 | char *t; | ||
25803 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
25804 | |||
25805 | *t++ = 0; | ||
25806 | if (s) return 0; | ||
25807 | } | ||
25808 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
25809 | int x[] = {25, 17}; | ||
25810 | const int *foo = &x[0]; | ||
25811 | ++foo; | ||
25812 | } | ||
25813 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
25814 | typedef const int *iptr; | ||
25815 | iptr p = 0; | ||
25816 | ++p; | ||
25817 | } | ||
25818 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
25819 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
25820 | struct s { int j; const int *ap[3]; }; | ||
25821 | struct s *b; b->j = 5; | ||
25822 | } | ||
25823 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
25824 | const int foo = 10; | ||
25825 | if (!foo) return 0; | ||
25826 | } | ||
25827 | return !cs[0] && !zero.x; | ||
25828 | #endif | ||
25829 | |||
25830 | ; | ||
25831 | return 0; | ||
25832 | } | ||
25833 | _ACEOF | ||
25834 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25835 | ac_cv_c_const=yes | ||
25836 | else | ||
25837 | ac_cv_c_const=no | ||
25838 | fi | ||
25839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25840 | fi | ||
25841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
25842 | $as_echo "$ac_cv_c_const" >&6; } | ||
25843 | if test $ac_cv_c_const = no; then | ||
25844 | |||
25845 | $as_echo "#define const /**/" >>confdefs.h | ||
25846 | |||
25847 | fi | ||
25848 | |||
25849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
25850 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
25851 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
25852 | $as_echo_n "(cached) " >&6 | ||
25853 | else | ||
25854 | ac_cv_c_bigendian=unknown | ||
25855 | # See if we're dealing with a universal compiler. | ||
25856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25857 | /* end confdefs.h. */ | ||
25858 | #ifndef __APPLE_CC__ | ||
25859 | not a universal capable compiler | ||
25860 | #endif | ||
25861 | typedef int dummy; | ||
25862 | |||
25863 | _ACEOF | ||
25864 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25865 | |||
25866 | # Check for potential -arch flags. It is not universal unless | ||
25867 | # there are at least two -arch flags with different values. | ||
25868 | ac_arch= | ||
25869 | ac_prev= | ||
25870 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
25871 | if test -n "$ac_prev"; then | ||
25872 | case $ac_word in | ||
25873 | i?86 | x86_64 | ppc | ppc64) | ||
25874 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
25875 | ac_arch=$ac_word | ||
25876 | else | ||
25877 | ac_cv_c_bigendian=universal | ||
25878 | break | ||
25879 | fi | ||
25880 | ;; | ||
25881 | esac | ||
25882 | ac_prev= | ||
25883 | elif test "x$ac_word" = "x-arch"; then | ||
25884 | ac_prev=arch | ||
25885 | fi | ||
25886 | done | ||
25887 | fi | ||
25888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25889 | if test $ac_cv_c_bigendian = unknown; then | ||
25890 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
25891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25892 | /* end confdefs.h. */ | ||
25893 | #include <sys/types.h> | ||
25894 | #include <sys/param.h> | ||
25895 | |||
25896 | int | ||
25897 | main () | ||
25898 | { | ||
25899 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
25900 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
25901 | && LITTLE_ENDIAN) | ||
25902 | bogus endian macros | ||
25903 | #endif | ||
25904 | |||
25905 | ; | ||
25906 | return 0; | ||
25907 | } | ||
25908 | _ACEOF | ||
25909 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25910 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
25911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25912 | /* end confdefs.h. */ | ||
25913 | #include <sys/types.h> | ||
25914 | #include <sys/param.h> | ||
25915 | |||
25916 | int | ||
25917 | main () | ||
25918 | { | ||
25919 | #if BYTE_ORDER != BIG_ENDIAN | ||
25920 | not big endian | ||
25921 | #endif | ||
25922 | |||
25923 | ; | ||
25924 | return 0; | ||
25925 | } | ||
25926 | _ACEOF | ||
25927 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25928 | ac_cv_c_bigendian=yes | ||
25929 | else | ||
25930 | ac_cv_c_bigendian=no | ||
25931 | fi | ||
25932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25933 | fi | ||
25934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25935 | fi | ||
25936 | if test $ac_cv_c_bigendian = unknown; then | ||
25937 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
25938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25939 | /* end confdefs.h. */ | ||
25940 | #include <limits.h> | ||
25941 | |||
25942 | int | ||
25943 | main () | ||
25944 | { | ||
25945 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
25946 | bogus endian macros | ||
25947 | #endif | ||
25948 | |||
25949 | ; | ||
25950 | return 0; | ||
25951 | } | ||
25952 | _ACEOF | ||
25953 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25954 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
25955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25956 | /* end confdefs.h. */ | ||
25957 | #include <limits.h> | ||
25958 | |||
25959 | int | ||
25960 | main () | ||
25961 | { | ||
25962 | #ifndef _BIG_ENDIAN | ||
25963 | not big endian | ||
25964 | #endif | ||
25965 | |||
25966 | ; | ||
25967 | return 0; | ||
25968 | } | ||
25969 | _ACEOF | ||
25970 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25971 | ac_cv_c_bigendian=yes | ||
25972 | else | ||
25973 | ac_cv_c_bigendian=no | ||
25974 | fi | ||
25975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25976 | fi | ||
25977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25978 | fi | ||
25979 | if test $ac_cv_c_bigendian = unknown; then | ||
25980 | # Compile a test program. | ||
25981 | if test "$cross_compiling" = yes; then : | ||
25982 | # Try to guess by grepping values from an object file. | ||
25983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25984 | /* end confdefs.h. */ | ||
25985 | short int ascii_mm[] = | ||
25986 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
25987 | short int ascii_ii[] = | ||
25988 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
25989 | int use_ascii (int i) { | ||
25990 | return ascii_mm[i] + ascii_ii[i]; | ||
25991 | } | ||
25992 | short int ebcdic_ii[] = | ||
25993 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
25994 | short int ebcdic_mm[] = | ||
25995 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
25996 | int use_ebcdic (int i) { | ||
25997 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
25998 | } | ||
25999 | extern int foo; | ||
26000 | |||
26001 | int | ||
26002 | main () | ||
26003 | { | ||
26004 | return use_ascii (foo) == use_ebcdic (foo); | ||
26005 | ; | ||
26006 | return 0; | ||
26007 | } | ||
26008 | _ACEOF | ||
26009 | if ac_fn_c_try_compile "$LINENO"; then : | ||
26010 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
26011 | ac_cv_c_bigendian=yes | ||
26012 | fi | ||
26013 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
26014 | if test "$ac_cv_c_bigendian" = unknown; then | ||
26015 | ac_cv_c_bigendian=no | ||
26016 | else | ||
26017 | # finding both strings is unlikely to happen, but who knows? | ||
26018 | ac_cv_c_bigendian=unknown | ||
26019 | fi | ||
26020 | fi | ||
26021 | fi | ||
26022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26023 | else | ||
26024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26025 | /* end confdefs.h. */ | ||
26026 | $ac_includes_default | ||
26027 | int | ||
26028 | main () | ||
26029 | { | ||
26030 | |||
26031 | /* Are we little or big endian? From Harbison&Steele. */ | ||
26032 | union | ||
26033 | { | ||
26034 | long int l; | ||
26035 | char c[sizeof (long int)]; | ||
26036 | } u; | ||
26037 | u.l = 1; | ||
26038 | return u.c[sizeof (long int) - 1] == 1; | ||
26039 | |||
26040 | ; | ||
26041 | return 0; | ||
26042 | } | ||
26043 | _ACEOF | ||
26044 | if ac_fn_c_try_run "$LINENO"; then : | ||
26045 | ac_cv_c_bigendian=no | ||
26046 | else | ||
26047 | ac_cv_c_bigendian=yes | ||
26048 | fi | ||
26049 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
26050 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
26051 | fi | ||
26052 | |||
26053 | fi | ||
26054 | fi | ||
26055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
26056 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
26057 | case $ac_cv_c_bigendian in #( | ||
26058 | yes) | ||
26059 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
26060 | ;; #( | ||
26061 | no) | ||
26062 | ;; #( | ||
26063 | universal) | ||
26064 | |||
26065 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
26066 | |||
26067 | ;; #( | ||
26068 | *) | ||
26069 | as_fn_error $? "unknown endianness | ||
26070 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
26071 | esac | ||
26072 | |||
26073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
26074 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
26075 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
26076 | $as_echo_n "(cached) " >&6 | ||
26077 | else | ||
26078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26079 | /* end confdefs.h. */ | ||
26080 | #include <stdlib.h> | ||
26081 | #include <stdarg.h> | ||
26082 | #include <string.h> | ||
26083 | #include <float.h> | ||
26084 | |||
26085 | int | ||
26086 | main () | ||
26087 | { | ||
26088 | |||
26089 | ; | ||
26090 | return 0; | ||
26091 | } | ||
26092 | _ACEOF | ||
26093 | if ac_fn_c_try_compile "$LINENO"; then : | ||
26094 | ac_cv_header_stdc=yes | ||
26095 | else | ||
26096 | ac_cv_header_stdc=no | ||
26097 | fi | ||
26098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26099 | |||
26100 | if test $ac_cv_header_stdc = yes; then | ||
26101 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
26102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26103 | /* end confdefs.h. */ | ||
26104 | #include <string.h> | ||
26105 | |||
26106 | _ACEOF | ||
26107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
26108 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
26109 | |||
26110 | else | ||
26111 | ac_cv_header_stdc=no | ||
26112 | fi | ||
26113 | rm -f conftest* | ||
26114 | |||
26115 | fi | ||
26116 | |||
26117 | if test $ac_cv_header_stdc = yes; then | ||
26118 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
26119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26120 | /* end confdefs.h. */ | ||
26121 | #include <stdlib.h> | ||
26122 | |||
26123 | _ACEOF | ||
26124 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
26125 | $EGREP "free" >/dev/null 2>&1; then : | ||
26126 | |||
26127 | else | ||
26128 | ac_cv_header_stdc=no | ||
26129 | fi | ||
26130 | rm -f conftest* | ||
26131 | |||
26132 | fi | ||
26133 | |||
26134 | if test $ac_cv_header_stdc = yes; then | ||
26135 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
26136 | if test "$cross_compiling" = yes; then : | ||
26137 | : | ||
26138 | else | ||
26139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26140 | /* end confdefs.h. */ | ||
26141 | #include <ctype.h> | ||
26142 | #include <stdlib.h> | ||
26143 | #if ((' ' & 0x0FF) == 0x020) | ||
26144 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
26145 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
26146 | #else | ||
26147 | # define ISLOWER(c) \ | ||
26148 | (('a' <= (c) && (c) <= 'i') \ | ||
26149 | || ('j' <= (c) && (c) <= 'r') \ | ||
26150 | || ('s' <= (c) && (c) <= 'z')) | ||
26151 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
26152 | #endif | ||
26153 | |||
26154 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
26155 | int | ||
26156 | main () | ||
26157 | { | ||
26158 | int i; | ||
26159 | for (i = 0; i < 256; i++) | ||
26160 | if (XOR (islower (i), ISLOWER (i)) | ||
26161 | || toupper (i) != TOUPPER (i)) | ||
26162 | return 2; | ||
26163 | return 0; | ||
26164 | } | ||
26165 | _ACEOF | ||
26166 | if ac_fn_c_try_run "$LINENO"; then : | ||
26167 | |||
26168 | else | ||
26169 | ac_cv_header_stdc=no | ||
26170 | fi | ||
26171 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
26172 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
26173 | fi | ||
26174 | |||
26175 | fi | ||
26176 | fi | ||
26177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
26178 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
26179 | if test $ac_cv_header_stdc = yes; then | ||
26180 | |||
26181 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
26182 | |||
26183 | fi | ||
26184 | |||
26185 | |||
26186 | |||
26187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | ||
26188 | $as_echo_n "checking for __attribute__... " >&6; } | ||
26189 | |||
26190 | if test "${ac_cv___attribute__+set}" = set; then : | ||
26191 | $as_echo_n "(cached) " >&6 | ||
26192 | else | ||
26193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26194 | /* end confdefs.h. */ | ||
26195 | |||
26196 | #include <stdlib.h> | ||
26197 | |||
26198 | int func(int x); | ||
26199 | int foo(int x __attribute__ ((unused))) | ||
26200 | { | ||
26201 | exit(1); | ||
26202 | } | ||
26203 | |||
26204 | int | ||
26205 | main () | ||
26206 | { | ||
26207 | |||
26208 | ; | ||
26209 | return 0; | ||
26210 | } | ||
26211 | _ACEOF | ||
26212 | if ac_fn_c_try_compile "$LINENO"; then : | ||
26213 | ac_cv___attribute__="yes" | ||
26214 | else | ||
26215 | ac_cv___attribute__="no" | ||
26216 | |||
26217 | fi | ||
26218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26219 | fi | ||
26220 | |||
26221 | |||
26222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 | ||
26223 | $as_echo "$ac_cv___attribute__" >&6; } | ||
26224 | |||
26225 | if test "x${ac_cv___attribute__}" = "xyes" ; then | ||
26226 | |||
26227 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | ||
26228 | |||
26229 | |||
26230 | $as_echo "#define __UNUSED__ __attribute__((unused))" >>confdefs.h | ||
26231 | |||
26232 | else | ||
26233 | |||
26234 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
26235 | |||
26236 | fi | ||
26237 | |||
26238 | |||
26239 | |||
26240 | WIN32_CPPFLAGS="" | ||
26241 | WIN32_CFLAGS="" | ||
26242 | case "$host_os" in | ||
26243 | mingw32ce*) | ||
26244 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
26245 | ;; | ||
26246 | cegcc*) | ||
26247 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
26248 | WIN32_CFLAGS="-mwin32" | ||
26249 | ;; | ||
26250 | mingw*) | ||
26251 | WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
26252 | ;; | ||
26253 | esac | ||
26254 | |||
26255 | |||
26256 | |||
26257 | |||
26258 | ### Checks for linker characteristics | ||
26259 | |||
26260 | # use --enable-auto-import on Windows | ||
26261 | |||
26262 | lt_enable_auto_import="" | ||
26263 | case "$host_os" in | ||
26264 | mingw* | cegcc*) | ||
26265 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
26266 | ;; | ||
26267 | esac | ||
26268 | |||
26269 | |||
26270 | ### Checks for library functions | ||
26271 | |||
26272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 | ||
26273 | $as_echo_n "checking for strerror in -lcposix... " >&6; } | ||
26274 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then : | ||
26275 | $as_echo_n "(cached) " >&6 | ||
26276 | else | ||
26277 | ac_check_lib_save_LIBS=$LIBS | ||
26278 | LIBS="-lcposix $LIBS" | ||
26279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26280 | /* end confdefs.h. */ | ||
26281 | |||
26282 | /* Override any GCC internal prototype to avoid an error. | ||
26283 | Use char because int might match the return type of a GCC | ||
26284 | builtin and then its argument prototype would still apply. */ | ||
26285 | #ifdef __cplusplus | ||
26286 | extern "C" | ||
26287 | #endif | ||
26288 | char strerror (); | ||
26289 | int | ||
26290 | main () | ||
26291 | { | ||
26292 | return strerror (); | ||
26293 | ; | ||
26294 | return 0; | ||
26295 | } | ||
26296 | _ACEOF | ||
26297 | if ac_fn_c_try_link "$LINENO"; then : | ||
26298 | ac_cv_lib_cposix_strerror=yes | ||
26299 | else | ||
26300 | ac_cv_lib_cposix_strerror=no | ||
26301 | fi | ||
26302 | rm -f core conftest.err conftest.$ac_objext \ | ||
26303 | conftest$ac_exeext conftest.$ac_ext | ||
26304 | LIBS=$ac_check_lib_save_LIBS | ||
26305 | fi | ||
26306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 | ||
26307 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } | ||
26308 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : | ||
26309 | LIBS="$LIBS -lcposix" | ||
26310 | fi | ||
26311 | |||
26312 | |||
26313 | |||
26314 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
26315 | # for constant arguments. Useless! | ||
26316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
26317 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
26318 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
26319 | $as_echo_n "(cached) " >&6 | ||
26320 | else | ||
26321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26322 | /* end confdefs.h. */ | ||
26323 | #include <alloca.h> | ||
26324 | int | ||
26325 | main () | ||
26326 | { | ||
26327 | char *p = (char *) alloca (2 * sizeof (int)); | ||
26328 | if (p) return 0; | ||
26329 | ; | ||
26330 | return 0; | ||
26331 | } | ||
26332 | _ACEOF | ||
26333 | if ac_fn_c_try_link "$LINENO"; then : | ||
26334 | ac_cv_working_alloca_h=yes | ||
26335 | else | ||
26336 | ac_cv_working_alloca_h=no | ||
26337 | fi | ||
26338 | rm -f core conftest.err conftest.$ac_objext \ | ||
26339 | conftest$ac_exeext conftest.$ac_ext | ||
26340 | fi | ||
26341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
26342 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
26343 | if test $ac_cv_working_alloca_h = yes; then | ||
26344 | |||
26345 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
26346 | |||
26347 | fi | ||
26348 | |||
26349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
26350 | $as_echo_n "checking for alloca... " >&6; } | ||
26351 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
26352 | $as_echo_n "(cached) " >&6 | ||
26353 | else | ||
26354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26355 | /* end confdefs.h. */ | ||
26356 | #ifdef __GNUC__ | ||
26357 | # define alloca __builtin_alloca | ||
26358 | #else | ||
26359 | # ifdef _MSC_VER | ||
26360 | # include <malloc.h> | ||
26361 | # define alloca _alloca | ||
26362 | # else | ||
26363 | # ifdef HAVE_ALLOCA_H | ||
26364 | # include <alloca.h> | ||
26365 | # else | ||
26366 | # ifdef _AIX | ||
26367 | #pragma alloca | ||
26368 | # else | ||
26369 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
26370 | char *alloca (); | ||
26371 | # endif | ||
26372 | # endif | ||
26373 | # endif | ||
26374 | # endif | ||
26375 | #endif | ||
26376 | |||
26377 | int | ||
26378 | main () | ||
26379 | { | ||
26380 | char *p = (char *) alloca (1); | ||
26381 | if (p) return 0; | ||
26382 | ; | ||
26383 | return 0; | ||
26384 | } | ||
26385 | _ACEOF | ||
26386 | if ac_fn_c_try_link "$LINENO"; then : | ||
26387 | ac_cv_func_alloca_works=yes | ||
26388 | else | ||
26389 | ac_cv_func_alloca_works=no | ||
26390 | fi | ||
26391 | rm -f core conftest.err conftest.$ac_objext \ | ||
26392 | conftest$ac_exeext conftest.$ac_ext | ||
26393 | fi | ||
26394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
26395 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
26396 | |||
26397 | if test $ac_cv_func_alloca_works = yes; then | ||
26398 | |||
26399 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
26400 | |||
26401 | else | ||
26402 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
26403 | # that cause trouble. Some versions do not even contain alloca or | ||
26404 | # contain a buggy version. If you still want to use their alloca, | ||
26405 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
26406 | |||
26407 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
26408 | |||
26409 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
26410 | |||
26411 | |||
26412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
26413 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
26414 | if test "${ac_cv_os_cray+set}" = set; then : | ||
26415 | $as_echo_n "(cached) " >&6 | ||
26416 | else | ||
26417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26418 | /* end confdefs.h. */ | ||
26419 | #if defined CRAY && ! defined CRAY2 | ||
26420 | webecray | ||
26421 | #else | ||
26422 | wenotbecray | ||
26423 | #endif | ||
26424 | |||
26425 | _ACEOF | ||
26426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
26427 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
26428 | ac_cv_os_cray=yes | ||
26429 | else | ||
26430 | ac_cv_os_cray=no | ||
26431 | fi | ||
26432 | rm -f conftest* | ||
26433 | |||
26434 | fi | ||
26435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
26436 | $as_echo "$ac_cv_os_cray" >&6; } | ||
26437 | if test $ac_cv_os_cray = yes; then | ||
26438 | for ac_func in _getb67 GETB67 getb67; do | ||
26439 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26440 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
26441 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
26442 | |||
26443 | cat >>confdefs.h <<_ACEOF | ||
26444 | #define CRAY_STACKSEG_END $ac_func | ||
26445 | _ACEOF | ||
26446 | |||
26447 | break | ||
26448 | fi | ||
26449 | |||
26450 | done | ||
26451 | fi | ||
26452 | |||
26453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
26454 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
26455 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
26456 | $as_echo_n "(cached) " >&6 | ||
26457 | else | ||
26458 | if test "$cross_compiling" = yes; then : | ||
26459 | ac_cv_c_stack_direction=0 | ||
26460 | else | ||
26461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26462 | /* end confdefs.h. */ | ||
26463 | $ac_includes_default | ||
26464 | int | ||
26465 | find_stack_direction () | ||
26466 | { | ||
26467 | static char *addr = 0; | ||
26468 | auto char dummy; | ||
26469 | if (addr == 0) | ||
26470 | { | ||
26471 | addr = &dummy; | ||
26472 | return find_stack_direction (); | ||
26473 | } | ||
26474 | else | ||
26475 | return (&dummy > addr) ? 1 : -1; | ||
26476 | } | ||
26477 | |||
26478 | int | ||
26479 | main () | ||
26480 | { | ||
26481 | return find_stack_direction () < 0; | ||
26482 | } | ||
26483 | _ACEOF | ||
26484 | if ac_fn_c_try_run "$LINENO"; then : | ||
26485 | ac_cv_c_stack_direction=1 | ||
26486 | else | ||
26487 | ac_cv_c_stack_direction=-1 | ||
26488 | fi | ||
26489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
26490 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
26491 | fi | ||
26492 | |||
26493 | fi | ||
26494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
26495 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
26496 | cat >>confdefs.h <<_ACEOF | ||
26497 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
26498 | _ACEOF | ||
26499 | |||
26500 | |||
26501 | fi | ||
26502 | |||
26503 | for ac_func in gettimeofday strlcpy execvp | ||
26504 | do : | ||
26505 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26506 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
26507 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
26508 | cat >>confdefs.h <<_ACEOF | ||
26509 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
26510 | _ACEOF | ||
26511 | |||
26512 | fi | ||
26513 | done | ||
26514 | |||
26515 | |||
26516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26517 | /* end confdefs.h. */ | ||
26518 | |||
26519 | #include <math.h> | ||
26520 | |||
26521 | int | ||
26522 | main () | ||
26523 | { | ||
26524 | |||
26525 | int i = isfinite(0); | ||
26526 | |||
26527 | ; | ||
26528 | return 0; | ||
26529 | } | ||
26530 | _ACEOF | ||
26531 | if ac_fn_c_try_compile "$LINENO"; then : | ||
26532 | |||
26533 | |||
26534 | $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h | ||
26535 | |||
26536 | have_isfinite="yes" | ||
26537 | |||
26538 | else | ||
26539 | have_isfinite="no" | ||
26540 | fi | ||
26541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26542 | |||
26543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5 | ||
26544 | $as_echo_n "checking for isfinite... " >&6; } | ||
26545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_isfinite}" >&5 | ||
26546 | $as_echo "${have_isfinite}" >&6; } | ||
26547 | |||
26548 | have_atfile_source=auto | ||
26549 | # Check whether --enable-atfile-source was given. | ||
26550 | if test "${enable_atfile_source+set}" = set; then : | ||
26551 | enableval=$enable_atfile_source; | ||
26552 | if test "x${enableval}" = "xyes" ; then | ||
26553 | have_atfile_source="yes" | ||
26554 | else | ||
26555 | have_atfile_source="no" | ||
26556 | fi | ||
26557 | else | ||
26558 | have_atfile_source=auto | ||
26559 | fi | ||
26560 | |||
26561 | |||
26562 | if ! test "x${have_atfile_source}" = "xno" ; then | ||
26563 | for ac_func in mkdirat | ||
26564 | do : | ||
26565 | ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat" | ||
26566 | if test "x$ac_cv_func_mkdirat" = x""yes; then : | ||
26567 | cat >>confdefs.h <<_ACEOF | ||
26568 | #define HAVE_MKDIRAT 1 | ||
26569 | _ACEOF | ||
26570 | |||
26571 | have_atfile_source="yes" | ||
26572 | |||
26573 | $as_echo "#define HAVE_ATFILE_SOURCE 1" >>confdefs.h | ||
26574 | |||
26575 | |||
26576 | else | ||
26577 | |||
26578 | if test "x${have_atfile_source}" = "xyes" ; then | ||
26579 | as_fn_error $? "required atfile-source but no mkdirat()" "$LINENO" 5 | ||
26580 | fi | ||
26581 | have_atfile_source="no" | ||
26582 | |||
26583 | fi | ||
26584 | done | ||
26585 | |||
26586 | fi | ||
26587 | |||
26588 | ### Checks for optionnal feature | ||
26589 | ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo" | ||
26590 | if test "x$ac_cv_func_mallinfo" = x""yes; then : | ||
26591 | |||
26592 | have_mallinfo="yes" | ||
26593 | |||
26594 | $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h | ||
26595 | |||
26596 | |||
26597 | else | ||
26598 | have_mallinfo="no" | ||
26599 | fi | ||
26600 | |||
26601 | |||
26602 | ### Ecore modules | ||
26603 | |||
26604 | ## Core modules | ||
26605 | |||
26606 | # ecore_con | ||
26607 | |||
26608 | |||
26609 | have_ecore_con=no | ||
26610 | ecore_con_cflags= | ||
26611 | ecore_con_libs= | ||
26612 | want_module=${want_ecore_con} | ||
26613 | |||
26614 | # Check whether --enable-ecore-con was given. | ||
26615 | if test "${enable_ecore_con+set}" = set; then : | ||
26616 | enableval=$enable_ecore_con; | ||
26617 | if test "x${enableval}" = "xyes" ; then | ||
26618 | want_module="yes" | ||
26619 | else | ||
26620 | want_module="no" | ||
26621 | fi | ||
26622 | |||
26623 | fi | ||
26624 | |||
26625 | |||
26626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Con module is to be built" >&5 | ||
26627 | $as_echo_n "checking whether Ecore_Con module is to be built... " >&6; } | ||
26628 | |||
26629 | if test "x${want_module}" = "xyes" ; then | ||
26630 | if test "x${have_addrinfo}" = "x" || test "x${have_addrinfo}" = "xyes" ; then | ||
26631 | |||
26632 | $as_echo "#define BUILD_ECORE_CON 1" >>confdefs.h | ||
26633 | |||
26634 | have_ecore_con="yes" | ||
26635 | ecore_con_libs="-lecore_con" | ||
26636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26637 | $as_echo "yes" >&6; } | ||
26638 | else | ||
26639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
26640 | $as_echo "no (dependency failed)" >&6; } | ||
26641 | fi | ||
26642 | else | ||
26643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26644 | $as_echo "no" >&6; } | ||
26645 | fi | ||
26646 | |||
26647 | if test "x$have_ecore_con" = "xyes"; then | ||
26648 | BUILD_ECORE_CON_TRUE= | ||
26649 | BUILD_ECORE_CON_FALSE='#' | ||
26650 | else | ||
26651 | BUILD_ECORE_CON_TRUE='#' | ||
26652 | BUILD_ECORE_CON_FALSE= | ||
26653 | fi | ||
26654 | |||
26655 | |||
26656 | if test "x$have_ecore_con" = "xyes"; then : | ||
26657 | |||
26658 | fi | ||
26659 | |||
26660 | |||
26661 | |||
26662 | |||
26663 | |||
26664 | |||
26665 | |||
26666 | |||
26667 | have_curl="no" | ||
26668 | have_gnutls="no" | ||
26669 | have_openssl="no" | ||
26670 | have_cares="no" | ||
26671 | want_ipv6="yes" | ||
26672 | have_ipv6="no" | ||
26673 | |||
26674 | # Check whether --enable-ipv6 was given. | ||
26675 | if test "${enable_ipv6+set}" = set; then : | ||
26676 | enableval=$enable_ipv6; | ||
26677 | if test "x${enableval}" = "xyes" ; then | ||
26678 | want_ipv6="yes" | ||
26679 | else | ||
26680 | want_ipv6="no" | ||
26681 | fi | ||
26682 | else | ||
26683 | want_ipv6="auto" | ||
26684 | fi | ||
26685 | |||
26686 | |||
26687 | if test "x${have_ecore_con}" = "xyes" ; then | ||
26688 | |||
26689 | # Verify IPV6 availability in headers | ||
26690 | if test "x${want_ipv6}" != "xno" ; then | ||
26691 | ac_fn_c_check_type "$LINENO" "struct ipv6_mreq" "ac_cv_type_struct_ipv6_mreq" " | ||
26692 | #ifdef HAVE_NETINET_IN_H | ||
26693 | # include <netinet/in.h> | ||
26694 | #endif | ||
26695 | #ifdef HAVE_WS2TCPIP_H | ||
26696 | # include <ws2tcpip.h> | ||
26697 | #endif | ||
26698 | |||
26699 | " | ||
26700 | if test "x$ac_cv_type_struct_ipv6_mreq" = x""yes; then : | ||
26701 | |||
26702 | cat >>confdefs.h <<_ACEOF | ||
26703 | #define HAVE_STRUCT_IPV6_MREQ 1 | ||
26704 | _ACEOF | ||
26705 | |||
26706 | have_ipv6="yes" | ||
26707 | else | ||
26708 | have_ipv6="no" | ||
26709 | fi | ||
26710 | |||
26711 | fi | ||
26712 | |||
26713 | if test "x${have_ipv6}" = "xyes" ; then | ||
26714 | |||
26715 | $as_echo "#define HAVE_IPV6 1" >>confdefs.h | ||
26716 | |||
26717 | fi | ||
26718 | |||
26719 | |||
26720 | _ecore_want_curl=${want_curl} | ||
26721 | _ecore_have_curl="no" | ||
26722 | |||
26723 | # Check whether --enable-curl was given. | ||
26724 | if test "${enable_curl+set}" = set; then : | ||
26725 | enableval=$enable_curl; | ||
26726 | if test "x${enableval}" = "xyes" ; then | ||
26727 | _ecore_want_curl="yes" | ||
26728 | else | ||
26729 | _ecore_want_curl="no" | ||
26730 | fi | ||
26731 | |||
26732 | fi | ||
26733 | |||
26734 | |||
26735 | if test "x${_ecore_want_curl}" = "xyes" ; then | ||
26736 | |||
26737 | pkg_failed=no | ||
26738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5 | ||
26739 | $as_echo_n "checking for CURL... " >&6; } | ||
26740 | |||
26741 | if test -n "$CURL_CFLAGS"; then | ||
26742 | pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" | ||
26743 | elif test -n "$PKG_CONFIG"; then | ||
26744 | if test -n "$PKG_CONFIG" && \ | ||
26745 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 | ||
26746 | ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 | ||
26747 | ac_status=$? | ||
26748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26749 | test $ac_status = 0; }; then | ||
26750 | pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null` | ||
26751 | else | ||
26752 | pkg_failed=yes | ||
26753 | fi | ||
26754 | else | ||
26755 | pkg_failed=untried | ||
26756 | fi | ||
26757 | if test -n "$CURL_LIBS"; then | ||
26758 | pkg_cv_CURL_LIBS="$CURL_LIBS" | ||
26759 | elif test -n "$PKG_CONFIG"; then | ||
26760 | if test -n "$PKG_CONFIG" && \ | ||
26761 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 | ||
26762 | ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 | ||
26763 | ac_status=$? | ||
26764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26765 | test $ac_status = 0; }; then | ||
26766 | pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null` | ||
26767 | else | ||
26768 | pkg_failed=yes | ||
26769 | fi | ||
26770 | else | ||
26771 | pkg_failed=untried | ||
26772 | fi | ||
26773 | |||
26774 | |||
26775 | |||
26776 | if test $pkg_failed = yes; then | ||
26777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26778 | $as_echo "no" >&6; } | ||
26779 | |||
26780 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
26781 | _pkg_short_errors_supported=yes | ||
26782 | else | ||
26783 | _pkg_short_errors_supported=no | ||
26784 | fi | ||
26785 | if test $_pkg_short_errors_supported = yes; then | ||
26786 | CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1` | ||
26787 | else | ||
26788 | CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1` | ||
26789 | fi | ||
26790 | # Put the nasty error message in config.log where it belongs | ||
26791 | echo "$CURL_PKG_ERRORS" >&5 | ||
26792 | |||
26793 | _ecore_have_curl="no" | ||
26794 | elif test $pkg_failed = untried; then | ||
26795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26796 | $as_echo "no" >&6; } | ||
26797 | _ecore_have_curl="no" | ||
26798 | else | ||
26799 | CURL_CFLAGS=$pkg_cv_CURL_CFLAGS | ||
26800 | CURL_LIBS=$pkg_cv_CURL_LIBS | ||
26801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26802 | $as_echo "yes" >&6; } | ||
26803 | |||
26804 | |||
26805 | $as_echo "#define HAVE_CURL 1" >>confdefs.h | ||
26806 | |||
26807 | _ecore_have_curl="yes" | ||
26808 | |||
26809 | fi | ||
26810 | fi | ||
26811 | |||
26812 | if test "x$_ecore_have_curl" = "xyes" ; then | ||
26813 | |||
26814 | have_curl="yes" | ||
26815 | requirements_ecore_con="libcurl ${requirements_ecore_con}" | ||
26816 | |||
26817 | else | ||
26818 | have_curl="no" | ||
26819 | fi | ||
26820 | |||
26821 | |||
26822 | |||
26823 | _ecore_want_gnutls=${want_gnutls} | ||
26824 | _ecore_have_gnutls="no" | ||
26825 | |||
26826 | # Check whether --enable-gnutls was given. | ||
26827 | if test "${enable_gnutls+set}" = set; then : | ||
26828 | enableval=$enable_gnutls; | ||
26829 | if test "x${enableval}" = "xyes" ; then | ||
26830 | _ecore_want_gnutls="yes" | ||
26831 | else | ||
26832 | _ecore_want_gnutls="no" | ||
26833 | fi | ||
26834 | |||
26835 | fi | ||
26836 | |||
26837 | |||
26838 | if test "x${_ecore_want_gnutls}" = "xyes" -o "x${_ecore_want_gnutls}" = "xauto" ; then | ||
26839 | |||
26840 | pkg_failed=no | ||
26841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 | ||
26842 | $as_echo_n "checking for TLS... " >&6; } | ||
26843 | |||
26844 | if test -n "$TLS_CFLAGS"; then | ||
26845 | pkg_cv_TLS_CFLAGS="$TLS_CFLAGS" | ||
26846 | elif test -n "$PKG_CONFIG"; then | ||
26847 | if test -n "$PKG_CONFIG" && \ | ||
26848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.2\""; } >&5 | ||
26849 | ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.2") 2>&5 | ||
26850 | ac_status=$? | ||
26851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26852 | test $ac_status = 0; }; then | ||
26853 | pkg_cv_TLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.10.2" 2>/dev/null` | ||
26854 | else | ||
26855 | pkg_failed=yes | ||
26856 | fi | ||
26857 | else | ||
26858 | pkg_failed=untried | ||
26859 | fi | ||
26860 | if test -n "$TLS_LIBS"; then | ||
26861 | pkg_cv_TLS_LIBS="$TLS_LIBS" | ||
26862 | elif test -n "$PKG_CONFIG"; then | ||
26863 | if test -n "$PKG_CONFIG" && \ | ||
26864 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.2\""; } >&5 | ||
26865 | ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.2") 2>&5 | ||
26866 | ac_status=$? | ||
26867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26868 | test $ac_status = 0; }; then | ||
26869 | pkg_cv_TLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.10.2" 2>/dev/null` | ||
26870 | else | ||
26871 | pkg_failed=yes | ||
26872 | fi | ||
26873 | else | ||
26874 | pkg_failed=untried | ||
26875 | fi | ||
26876 | |||
26877 | |||
26878 | |||
26879 | if test $pkg_failed = yes; then | ||
26880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26881 | $as_echo "no" >&6; } | ||
26882 | |||
26883 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
26884 | _pkg_short_errors_supported=yes | ||
26885 | else | ||
26886 | _pkg_short_errors_supported=no | ||
26887 | fi | ||
26888 | if test $_pkg_short_errors_supported = yes; then | ||
26889 | TLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 2.10.2" 2>&1` | ||
26890 | else | ||
26891 | TLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 2.10.2" 2>&1` | ||
26892 | fi | ||
26893 | # Put the nasty error message in config.log where it belongs | ||
26894 | echo "$TLS_PKG_ERRORS" >&5 | ||
26895 | |||
26896 | _ecore_have_gnutls="no" | ||
26897 | elif test $pkg_failed = untried; then | ||
26898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26899 | $as_echo "no" >&6; } | ||
26900 | _ecore_have_gnutls="no" | ||
26901 | else | ||
26902 | TLS_CFLAGS=$pkg_cv_TLS_CFLAGS | ||
26903 | TLS_LIBS=$pkg_cv_TLS_LIBS | ||
26904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26905 | $as_echo "yes" >&6; } | ||
26906 | |||
26907 | |||
26908 | $as_echo "#define USE_GNUTLS 1" >>confdefs.h | ||
26909 | |||
26910 | _ecore_have_gnutls="yes" | ||
26911 | |||
26912 | fi | ||
26913 | # for ecore_con_ssl.c | ||
26914 | |||
26915 | pkg_failed=no | ||
26916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS2" >&5 | ||
26917 | $as_echo_n "checking for TLS2... " >&6; } | ||
26918 | |||
26919 | if test -n "$TLS2_CFLAGS"; then | ||
26920 | pkg_cv_TLS2_CFLAGS="$TLS2_CFLAGS" | ||
26921 | elif test -n "$PKG_CONFIG"; then | ||
26922 | if test -n "$PKG_CONFIG" && \ | ||
26923 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.2\""; } >&5 | ||
26924 | ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.2") 2>&5 | ||
26925 | ac_status=$? | ||
26926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26927 | test $ac_status = 0; }; then | ||
26928 | pkg_cv_TLS2_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.10.2" 2>/dev/null` | ||
26929 | else | ||
26930 | pkg_failed=yes | ||
26931 | fi | ||
26932 | else | ||
26933 | pkg_failed=untried | ||
26934 | fi | ||
26935 | if test -n "$TLS2_LIBS"; then | ||
26936 | pkg_cv_TLS2_LIBS="$TLS2_LIBS" | ||
26937 | elif test -n "$PKG_CONFIG"; then | ||
26938 | if test -n "$PKG_CONFIG" && \ | ||
26939 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.2\""; } >&5 | ||
26940 | ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.2") 2>&5 | ||
26941 | ac_status=$? | ||
26942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26943 | test $ac_status = 0; }; then | ||
26944 | pkg_cv_TLS2_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.10.2" 2>/dev/null` | ||
26945 | else | ||
26946 | pkg_failed=yes | ||
26947 | fi | ||
26948 | else | ||
26949 | pkg_failed=untried | ||
26950 | fi | ||
26951 | |||
26952 | |||
26953 | |||
26954 | if test $pkg_failed = yes; then | ||
26955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26956 | $as_echo "no" >&6; } | ||
26957 | |||
26958 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
26959 | _pkg_short_errors_supported=yes | ||
26960 | else | ||
26961 | _pkg_short_errors_supported=no | ||
26962 | fi | ||
26963 | if test $_pkg_short_errors_supported = yes; then | ||
26964 | TLS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 2.10.2" 2>&1` | ||
26965 | else | ||
26966 | TLS2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 2.10.2" 2>&1` | ||
26967 | fi | ||
26968 | # Put the nasty error message in config.log where it belongs | ||
26969 | echo "$TLS2_PKG_ERRORS" >&5 | ||
26970 | |||
26971 | dummy="no" | ||
26972 | elif test $pkg_failed = untried; then | ||
26973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26974 | $as_echo "no" >&6; } | ||
26975 | dummy="no" | ||
26976 | else | ||
26977 | TLS2_CFLAGS=$pkg_cv_TLS2_CFLAGS | ||
26978 | TLS2_LIBS=$pkg_cv_TLS2_LIBS | ||
26979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26980 | $as_echo "yes" >&6; } | ||
26981 | |||
26982 | $as_echo "#define USE_GNUTLS2 1" >>confdefs.h | ||
26983 | |||
26984 | fi | ||
26985 | if test "x$_ecore_have_gnutls" = "xyes";then | ||
26986 | |||
26987 | |||
26988 | # Check whether --with-libgcrypt-prefix was given. | ||
26989 | if test "${with_libgcrypt_prefix+set}" = set; then : | ||
26990 | withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" | ||
26991 | else | ||
26992 | libgcrypt_config_prefix="" | ||
26993 | fi | ||
26994 | |||
26995 | |||
26996 | # Check whether --with-libgcrypt-exec-prefix was given. | ||
26997 | if test "${with_libgcrypt_exec_prefix+set}" = set; then : | ||
26998 | withval=$with_libgcrypt_exec_prefix; libgcrypt_config_exec_prefix="$withval" | ||
26999 | else | ||
27000 | libgcrypt_config_exec_prefix="" | ||
27001 | fi | ||
27002 | |||
27003 | |||
27004 | if test x$libgcrypt_config_exec_prefix != x ; then | ||
27005 | libgcrypt_config_args="$libgcrypt_config_args --exec-prefix=$libgcrypt_config_exec_prefix" | ||
27006 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
27007 | LIBGCRYPT_CONFIG=$libgcrypt_config_exec_prefix/bin/libgcrypt-config | ||
27008 | fi | ||
27009 | fi | ||
27010 | if test x$libgcrypt_config_prefix != x ; then | ||
27011 | libgcrypt_config_args="$libgcrypt_config_args --prefix=$libgcrypt_config_prefix" | ||
27012 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
27013 | LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config | ||
27014 | fi | ||
27015 | fi | ||
27016 | |||
27017 | # Extract the first word of "libgcrypt-config", so it can be a program name with args. | ||
27018 | set dummy libgcrypt-config; ac_word=$2 | ||
27019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
27020 | $as_echo_n "checking for $ac_word... " >&6; } | ||
27021 | if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then : | ||
27022 | $as_echo_n "(cached) " >&6 | ||
27023 | else | ||
27024 | case $LIBGCRYPT_CONFIG in | ||
27025 | [\\/]* | ?:[\\/]*) | ||
27026 | ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. | ||
27027 | ;; | ||
27028 | *) | ||
27029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
27030 | for as_dir in $PATH | ||
27031 | do | ||
27032 | IFS=$as_save_IFS | ||
27033 | test -z "$as_dir" && as_dir=. | ||
27034 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
27035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
27036 | ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
27037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
27038 | break 2 | ||
27039 | fi | ||
27040 | done | ||
27041 | done | ||
27042 | IFS=$as_save_IFS | ||
27043 | |||
27044 | test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" | ||
27045 | ;; | ||
27046 | esac | ||
27047 | fi | ||
27048 | LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG | ||
27049 | if test -n "$LIBGCRYPT_CONFIG"; then | ||
27050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 | ||
27051 | $as_echo "$LIBGCRYPT_CONFIG" >&6; } | ||
27052 | else | ||
27053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27054 | $as_echo "no" >&6; } | ||
27055 | fi | ||
27056 | |||
27057 | |||
27058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5 | ||
27059 | $as_echo_n "checking for libgcrypt... " >&6; } | ||
27060 | no_libgcrypt="" | ||
27061 | if test "$LIBGCRYPT_CONFIG" = "no" ; then | ||
27062 | no_libgcrypt=yes | ||
27063 | else | ||
27064 | LIBGCRYPT_CFLAGS="`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`" | ||
27065 | LIBGCRYPT_LIBS="`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`" | ||
27066 | |||
27067 | fi | ||
27068 | if test "x$no_libgcrypt" = x ; then | ||
27069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27070 | $as_echo "yes" >&6; } | ||
27071 | _ecore_have_gnutls="yes" | ||
27072 | else | ||
27073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27074 | $as_echo "no" >&6; } | ||
27075 | if test "$LIBGCRYPT_CONFIG" = "no" ; then | ||
27076 | echo "*** The libgcrypt-config script installed by libgcrypt could not be found" | ||
27077 | echo "*** If libgcrypt was installed in PREFIX, make sure PREFIX/bin is in" | ||
27078 | echo "*** your path, or set the LIBGCRYPT_CONFIG environment variable to the" | ||
27079 | echo "*** full path to libgcrypt-config." | ||
27080 | fi | ||
27081 | LIBGCRYPT_CFLAGS="" | ||
27082 | LIBGCRYPT_LIBS="" | ||
27083 | _ecore_have_gnutls="no" | ||
27084 | fi | ||
27085 | |||
27086 | |||
27087 | |||
27088 | |||
27089 | |||
27090 | |||
27091 | if test "x${_ecore_have_gnutls}" = "xyes" ; then | ||
27092 | TLS_CFLAGS+=" ${LIBGCRYPT_CFLAGS}" | ||
27093 | TLS_LIBS+=" ${LIBGCRYPT_LIBS}" | ||
27094 | fi | ||
27095 | fi | ||
27096 | |||
27097 | fi | ||
27098 | |||
27099 | if test "x$_ecore_have_gnutls" = "xyes" ; then | ||
27100 | have_gnutls="yes" | ||
27101 | else | ||
27102 | have_gnutls="no" | ||
27103 | fi | ||
27104 | |||
27105 | |||
27106 | |||
27107 | _ecore_want_openssl=${want_openssl} | ||
27108 | _ecore_have_openssl="no" | ||
27109 | |||
27110 | # Check whether --enable-openssl was given. | ||
27111 | if test "${enable_openssl+set}" = set; then : | ||
27112 | enableval=$enable_openssl; | ||
27113 | if test "x${enableval}" = "xyes" ; then | ||
27114 | _ecore_want_openssl="yes" | ||
27115 | else | ||
27116 | _ecore_want_openssl="no" | ||
27117 | fi | ||
27118 | |||
27119 | fi | ||
27120 | |||
27121 | |||
27122 | if test "x${_ecore_have_gnutls}" = "xyes";then | ||
27123 | _ecore_want_openssl=no | ||
27124 | fi | ||
27125 | |||
27126 | if test "x${_ecore_want_openssl}" = "xyes" -o "x${_ecore_want_openssl}" = "xauto"; then | ||
27127 | |||
27128 | pkg_failed=no | ||
27129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 | ||
27130 | $as_echo_n "checking for SSL... " >&6; } | ||
27131 | |||
27132 | if test -n "$SSL_CFLAGS"; then | ||
27133 | pkg_cv_SSL_CFLAGS="$SSL_CFLAGS" | ||
27134 | elif test -n "$PKG_CONFIG"; then | ||
27135 | if test -n "$PKG_CONFIG" && \ | ||
27136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | ||
27137 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | ||
27138 | ac_status=$? | ||
27139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27140 | test $ac_status = 0; }; then | ||
27141 | pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` | ||
27142 | else | ||
27143 | pkg_failed=yes | ||
27144 | fi | ||
27145 | else | ||
27146 | pkg_failed=untried | ||
27147 | fi | ||
27148 | if test -n "$SSL_LIBS"; then | ||
27149 | pkg_cv_SSL_LIBS="$SSL_LIBS" | ||
27150 | elif test -n "$PKG_CONFIG"; then | ||
27151 | if test -n "$PKG_CONFIG" && \ | ||
27152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | ||
27153 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | ||
27154 | ac_status=$? | ||
27155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27156 | test $ac_status = 0; }; then | ||
27157 | pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` | ||
27158 | else | ||
27159 | pkg_failed=yes | ||
27160 | fi | ||
27161 | else | ||
27162 | pkg_failed=untried | ||
27163 | fi | ||
27164 | |||
27165 | |||
27166 | |||
27167 | if test $pkg_failed = yes; then | ||
27168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27169 | $as_echo "no" >&6; } | ||
27170 | |||
27171 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27172 | _pkg_short_errors_supported=yes | ||
27173 | else | ||
27174 | _pkg_short_errors_supported=no | ||
27175 | fi | ||
27176 | if test $_pkg_short_errors_supported = yes; then | ||
27177 | SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1` | ||
27178 | else | ||
27179 | SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1` | ||
27180 | fi | ||
27181 | # Put the nasty error message in config.log where it belongs | ||
27182 | echo "$SSL_PKG_ERRORS" >&5 | ||
27183 | |||
27184 | _ecore_have_openssl="no" | ||
27185 | elif test $pkg_failed = untried; then | ||
27186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27187 | $as_echo "no" >&6; } | ||
27188 | _ecore_have_openssl="no" | ||
27189 | else | ||
27190 | SSL_CFLAGS=$pkg_cv_SSL_CFLAGS | ||
27191 | SSL_LIBS=$pkg_cv_SSL_LIBS | ||
27192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27193 | $as_echo "yes" >&6; } | ||
27194 | |||
27195 | |||
27196 | $as_echo "#define USE_OPENSSL 1" >>confdefs.h | ||
27197 | |||
27198 | _ecore_have_openssl="yes" | ||
27199 | |||
27200 | fi | ||
27201 | fi | ||
27202 | |||
27203 | if test "x$_ecore_have_openssl" = "xyes" ; then | ||
27204 | have_openssl="yes" | ||
27205 | else | ||
27206 | have_openssl="no" | ||
27207 | fi | ||
27208 | |||
27209 | |||
27210 | if test "x${have_gnutls}" = "xyes" ; then | ||
27211 | requirements_ecore_con="gnutls ${requirements_ecore_con}" | ||
27212 | # no need to add it to req_ecore_ipc, since they | ||
27213 | # depends on ecore_con anyway. | ||
27214 | else | ||
27215 | if test "x${have_openssl}" = "xyes" ; then | ||
27216 | requirements_ecore_con="openssl ${requirements_ecore_con}" | ||
27217 | # no need to add it to req_ecore_ipc, since they | ||
27218 | # depends on ecore_con anyway. | ||
27219 | fi | ||
27220 | fi | ||
27221 | |||
27222 | |||
27223 | _ecore_want_cares=${want_cares} | ||
27224 | _ecore_have_cares="no" | ||
27225 | |||
27226 | # Check whether --enable-cares was given. | ||
27227 | if test "${enable_cares+set}" = set; then : | ||
27228 | enableval=$enable_cares; | ||
27229 | if test "x${enableval}" = "xyes" ; then | ||
27230 | _ecore_want_cares="yes" | ||
27231 | else | ||
27232 | _ecore_want_cares="no" | ||
27233 | fi | ||
27234 | |||
27235 | fi | ||
27236 | |||
27237 | |||
27238 | if test "x${_ecore_want_cares}" = "xyes" -o "x${_ecore_want_cares}" = "xauto" ; then | ||
27239 | |||
27240 | pkg_failed=no | ||
27241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5 | ||
27242 | $as_echo_n "checking for CARES... " >&6; } | ||
27243 | |||
27244 | if test -n "$CARES_CFLAGS"; then | ||
27245 | pkg_cv_CARES_CFLAGS="$CARES_CFLAGS" | ||
27246 | elif test -n "$PKG_CONFIG"; then | ||
27247 | if test -n "$PKG_CONFIG" && \ | ||
27248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.1 libcares != 1.7.5\""; } >&5 | ||
27249 | ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.1 libcares != 1.7.5") 2>&5 | ||
27250 | ac_status=$? | ||
27251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27252 | test $ac_status = 0; }; then | ||
27253 | pkg_cv_CARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.6.1 libcares != 1.7.5" 2>/dev/null` | ||
27254 | else | ||
27255 | pkg_failed=yes | ||
27256 | fi | ||
27257 | else | ||
27258 | pkg_failed=untried | ||
27259 | fi | ||
27260 | if test -n "$CARES_LIBS"; then | ||
27261 | pkg_cv_CARES_LIBS="$CARES_LIBS" | ||
27262 | elif test -n "$PKG_CONFIG"; then | ||
27263 | if test -n "$PKG_CONFIG" && \ | ||
27264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.1 libcares != 1.7.5\""; } >&5 | ||
27265 | ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.1 libcares != 1.7.5") 2>&5 | ||
27266 | ac_status=$? | ||
27267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27268 | test $ac_status = 0; }; then | ||
27269 | pkg_cv_CARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.6.1 libcares != 1.7.5" 2>/dev/null` | ||
27270 | else | ||
27271 | pkg_failed=yes | ||
27272 | fi | ||
27273 | else | ||
27274 | pkg_failed=untried | ||
27275 | fi | ||
27276 | |||
27277 | |||
27278 | |||
27279 | if test $pkg_failed = yes; then | ||
27280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27281 | $as_echo "no" >&6; } | ||
27282 | |||
27283 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27284 | _pkg_short_errors_supported=yes | ||
27285 | else | ||
27286 | _pkg_short_errors_supported=no | ||
27287 | fi | ||
27288 | if test $_pkg_short_errors_supported = yes; then | ||
27289 | CARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcares >= 1.6.1 libcares != 1.7.5" 2>&1` | ||
27290 | else | ||
27291 | CARES_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcares >= 1.6.1 libcares != 1.7.5" 2>&1` | ||
27292 | fi | ||
27293 | # Put the nasty error message in config.log where it belongs | ||
27294 | echo "$CARES_PKG_ERRORS" >&5 | ||
27295 | |||
27296 | _ecore_have_cares="no" | ||
27297 | elif test $pkg_failed = untried; then | ||
27298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27299 | $as_echo "no" >&6; } | ||
27300 | _ecore_have_cares="no" | ||
27301 | else | ||
27302 | CARES_CFLAGS=$pkg_cv_CARES_CFLAGS | ||
27303 | CARES_LIBS=$pkg_cv_CARES_LIBS | ||
27304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27305 | $as_echo "yes" >&6; } | ||
27306 | _ecore_have_cares="yes" | ||
27307 | fi | ||
27308 | fi | ||
27309 | |||
27310 | if test "x${_ecore_have_cares}" = "xyes" ; then | ||
27311 | |||
27312 | $as_echo "#define HAVE_CARES 1" >>confdefs.h | ||
27313 | |||
27314 | fi | ||
27315 | |||
27316 | if test "x$_ecore_have_cares" = "xyes" ; then | ||
27317 | |||
27318 | have_cares="yes" | ||
27319 | requirements_ecore_con="libcares ${requirements_ecore_con}" | ||
27320 | |||
27321 | else | ||
27322 | have_cares="no" | ||
27323 | fi | ||
27324 | |||
27325 | |||
27326 | fi | ||
27327 | |||
27328 | if test "x${have_cares}" = "xyes"; then | ||
27329 | HAVE_CARES_TRUE= | ||
27330 | HAVE_CARES_FALSE='#' | ||
27331 | else | ||
27332 | HAVE_CARES_TRUE='#' | ||
27333 | HAVE_CARES_FALSE= | ||
27334 | fi | ||
27335 | |||
27336 | |||
27337 | # ecore_ipc | ||
27338 | |||
27339 | |||
27340 | have_ecore_ipc=no | ||
27341 | ecore_ipc_cflags= | ||
27342 | ecore_ipc_libs= | ||
27343 | want_module=${want_ecore_ipc} | ||
27344 | |||
27345 | # Check whether --enable-ecore-ipc was given. | ||
27346 | if test "${enable_ecore_ipc+set}" = set; then : | ||
27347 | enableval=$enable_ecore_ipc; | ||
27348 | if test "x${enableval}" = "xyes" ; then | ||
27349 | want_module="yes" | ||
27350 | else | ||
27351 | want_module="no" | ||
27352 | fi | ||
27353 | |||
27354 | fi | ||
27355 | |||
27356 | |||
27357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Ipc module is to be built" >&5 | ||
27358 | $as_echo_n "checking whether Ecore_Ipc module is to be built... " >&6; } | ||
27359 | |||
27360 | if test "x${want_module}" = "xyes" ; then | ||
27361 | if test "x${have_ecore_con}" = "x" || test "x${have_ecore_con}" = "xyes" ; then | ||
27362 | |||
27363 | $as_echo "#define BUILD_ECORE_IPC 1" >>confdefs.h | ||
27364 | |||
27365 | have_ecore_ipc="yes" | ||
27366 | ecore_ipc_libs="-lecore_ipc" | ||
27367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27368 | $as_echo "yes" >&6; } | ||
27369 | else | ||
27370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27371 | $as_echo "no (dependency failed)" >&6; } | ||
27372 | fi | ||
27373 | else | ||
27374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27375 | $as_echo "no" >&6; } | ||
27376 | fi | ||
27377 | |||
27378 | if test "x$have_ecore_ipc" = "xyes"; then | ||
27379 | BUILD_ECORE_IPC_TRUE= | ||
27380 | BUILD_ECORE_IPC_FALSE='#' | ||
27381 | else | ||
27382 | BUILD_ECORE_IPC_TRUE='#' | ||
27383 | BUILD_ECORE_IPC_FALSE= | ||
27384 | fi | ||
27385 | |||
27386 | |||
27387 | if test "x$have_ecore_ipc" = "xyes"; then : | ||
27388 | requirements_ecore_ipc="ecore-con >= 1.1.0 ${requirements_ecore_ipc}" | ||
27389 | fi | ||
27390 | |||
27391 | |||
27392 | |||
27393 | |||
27394 | |||
27395 | |||
27396 | |||
27397 | |||
27398 | # ecore_file | ||
27399 | |||
27400 | |||
27401 | have_ecore_file=no | ||
27402 | ecore_file_cflags= | ||
27403 | ecore_file_libs= | ||
27404 | want_module=${want_ecore_file} | ||
27405 | |||
27406 | # Check whether --enable-ecore-file was given. | ||
27407 | if test "${enable_ecore_file+set}" = set; then : | ||
27408 | enableval=$enable_ecore_file; | ||
27409 | if test "x${enableval}" = "xyes" ; then | ||
27410 | want_module="yes" | ||
27411 | else | ||
27412 | want_module="no" | ||
27413 | fi | ||
27414 | |||
27415 | fi | ||
27416 | |||
27417 | |||
27418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_File module is to be built" >&5 | ||
27419 | $as_echo_n "checking whether Ecore_File module is to be built... " >&6; } | ||
27420 | |||
27421 | if test "x${want_module}" = "xyes" ; then | ||
27422 | if test "x" = "x" || test "x" = "xyes" ; then | ||
27423 | |||
27424 | $as_echo "#define BUILD_ECORE_FILE 1" >>confdefs.h | ||
27425 | |||
27426 | have_ecore_file="yes" | ||
27427 | ecore_file_libs="-lecore_file" | ||
27428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27429 | $as_echo "yes" >&6; } | ||
27430 | else | ||
27431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27432 | $as_echo "no (dependency failed)" >&6; } | ||
27433 | fi | ||
27434 | else | ||
27435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27436 | $as_echo "no" >&6; } | ||
27437 | fi | ||
27438 | |||
27439 | if test "x$have_ecore_file" = "xyes"; then | ||
27440 | BUILD_ECORE_FILE_TRUE= | ||
27441 | BUILD_ECORE_FILE_FALSE='#' | ||
27442 | else | ||
27443 | BUILD_ECORE_FILE_TRUE='#' | ||
27444 | BUILD_ECORE_FILE_FALSE= | ||
27445 | fi | ||
27446 | |||
27447 | |||
27448 | if test "x$have_ecore_file" = "xyes"; then : | ||
27449 | |||
27450 | fi | ||
27451 | |||
27452 | |||
27453 | |||
27454 | |||
27455 | |||
27456 | |||
27457 | |||
27458 | |||
27459 | have_poll="no" | ||
27460 | have_inotify="no" | ||
27461 | have_notify_win32="no" | ||
27462 | if test "x${have_ecore_file}" = "xyes" ; then | ||
27463 | |||
27464 | _ecore_want_poll=${want_poll} | ||
27465 | _ecore_have_poll="no" | ||
27466 | |||
27467 | # Check whether --enable-poll was given. | ||
27468 | if test "${enable_poll+set}" = set; then : | ||
27469 | enableval=$enable_poll; | ||
27470 | if test "x${enableval}" = "xyes" ; then | ||
27471 | _ecore_want_poll="yes" | ||
27472 | else | ||
27473 | _ecore_want_poll="no" | ||
27474 | fi | ||
27475 | |||
27476 | fi | ||
27477 | |||
27478 | |||
27479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether polling is to be used for filemonitoring" >&5 | ||
27480 | $as_echo_n "checking whether polling is to be used for filemonitoring... " >&6; } | ||
27481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_ecore_want_poll}" >&5 | ||
27482 | $as_echo "${_ecore_want_poll}" >&6; } | ||
27483 | |||
27484 | if test "x${_ecore_want_poll}" = "xyes" ; then | ||
27485 | |||
27486 | $as_echo "#define HAVE_POLL 1" >>confdefs.h | ||
27487 | |||
27488 | _ecore_have_poll="yes" | ||
27489 | fi | ||
27490 | |||
27491 | if test "x${_ecore_have_poll}" = "xyes" ; then | ||
27492 | have_poll="yes" | ||
27493 | else | ||
27494 | have_poll="no" | ||
27495 | fi | ||
27496 | |||
27497 | |||
27498 | _ecore_want_inotify=${want_inotify} | ||
27499 | _ecore_have_inotify="no" | ||
27500 | |||
27501 | _ecore_want_inotify="yes" | ||
27502 | # Check whether --enable-inotify was given. | ||
27503 | if test "${enable_inotify+set}" = set; then : | ||
27504 | enableval=$enable_inotify; | ||
27505 | if test "x${enableval}" = "xyes" ; then | ||
27506 | _ecore_want_inotify="yes" | ||
27507 | else | ||
27508 | _ecore_want_inotify="no" | ||
27509 | fi | ||
27510 | |||
27511 | fi | ||
27512 | |||
27513 | |||
27514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inotify is to be used for filemonitoring" >&5 | ||
27515 | $as_echo_n "checking whether inotify is to be used for filemonitoring... " >&6; } | ||
27516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ecore_want_inotify" >&5 | ||
27517 | $as_echo "$_ecore_want_inotify" >&6; } | ||
27518 | |||
27519 | |||
27520 | if test "x${_ecore_want_inotify}" = "xyes" ; then | ||
27521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -lc" >&5 | ||
27522 | $as_echo_n "checking for inotify_init in -lc... " >&6; } | ||
27523 | if test "${ac_cv_lib_c_inotify_init+set}" = set; then : | ||
27524 | $as_echo_n "(cached) " >&6 | ||
27525 | else | ||
27526 | ac_check_lib_save_LIBS=$LIBS | ||
27527 | LIBS="-lc $LIBS" | ||
27528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27529 | /* end confdefs.h. */ | ||
27530 | |||
27531 | /* Override any GCC internal prototype to avoid an error. | ||
27532 | Use char because int might match the return type of a GCC | ||
27533 | builtin and then its argument prototype would still apply. */ | ||
27534 | #ifdef __cplusplus | ||
27535 | extern "C" | ||
27536 | #endif | ||
27537 | char inotify_init (); | ||
27538 | int | ||
27539 | main () | ||
27540 | { | ||
27541 | return inotify_init (); | ||
27542 | ; | ||
27543 | return 0; | ||
27544 | } | ||
27545 | _ACEOF | ||
27546 | if ac_fn_c_try_link "$LINENO"; then : | ||
27547 | ac_cv_lib_c_inotify_init=yes | ||
27548 | else | ||
27549 | ac_cv_lib_c_inotify_init=no | ||
27550 | fi | ||
27551 | rm -f core conftest.err conftest.$ac_objext \ | ||
27552 | conftest$ac_exeext conftest.$ac_ext | ||
27553 | LIBS=$ac_check_lib_save_LIBS | ||
27554 | fi | ||
27555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inotify_init" >&5 | ||
27556 | $as_echo "$ac_cv_lib_c_inotify_init" >&6; } | ||
27557 | if test "x$ac_cv_lib_c_inotify_init" = x""yes; then : | ||
27558 | |||
27559 | |||
27560 | $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h | ||
27561 | |||
27562 | |||
27563 | $as_echo "#define HAVE_SYS_INOTIFY 1" >>confdefs.h | ||
27564 | |||
27565 | _ecore_have_inotify="yes" | ||
27566 | |||
27567 | else | ||
27568 | |||
27569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27570 | /* end confdefs.h. */ | ||
27571 | |||
27572 | #include <asm/unistd.h> | ||
27573 | #include <linux/inotify.h> | ||
27574 | |||
27575 | int | ||
27576 | main () | ||
27577 | { | ||
27578 | int a = __NR_inotify_init; int b = IN_MOVE_SELF; | ||
27579 | ; | ||
27580 | return 0; | ||
27581 | } | ||
27582 | _ACEOF | ||
27583 | if ac_fn_c_try_compile "$LINENO"; then : | ||
27584 | |||
27585 | |||
27586 | $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h | ||
27587 | |||
27588 | _ecore_have_inotify="yes" | ||
27589 | |||
27590 | else | ||
27591 | _ecore_have_inotify="no" | ||
27592 | fi | ||
27593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27594 | |||
27595 | fi | ||
27596 | |||
27597 | fi | ||
27598 | |||
27599 | if test "x$_ecore_have_inotify" = "xyes" ; then | ||
27600 | have_inotify="yes" | ||
27601 | else | ||
27602 | have_inotify="no" | ||
27603 | fi | ||
27604 | |||
27605 | |||
27606 | _ecore_want_notify_win32=${want_notify_win32} | ||
27607 | _ecore_have_notify_win32="no" | ||
27608 | |||
27609 | # Check whether --enable-notify-win32 was given. | ||
27610 | if test "${enable_notify_win32+set}" = set; then : | ||
27611 | enableval=$enable_notify_win32; | ||
27612 | if test "x${enableval}" = "xyes" ; then | ||
27613 | _ecore_want_notify_win32="yes" | ||
27614 | else | ||
27615 | _ecore_want_notify_win32="no" | ||
27616 | fi | ||
27617 | |||
27618 | fi | ||
27619 | |||
27620 | |||
27621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows notification is to be used for filemonitoring" >&5 | ||
27622 | $as_echo_n "checking whether Windows notification is to be used for filemonitoring... " >&6; } | ||
27623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_ecore_want_notify_win32}" >&5 | ||
27624 | $as_echo "${_ecore_want_notify_win32}" >&6; } | ||
27625 | |||
27626 | if test "x${_ecore_want_notify_win32}" = "xyes" ; then | ||
27627 | |||
27628 | $as_echo "#define HAVE_NOTIFY_WIN32 1" >>confdefs.h | ||
27629 | |||
27630 | _ecore_have_notify_win32="yes" | ||
27631 | fi | ||
27632 | |||
27633 | if test "x${_ecore_have_notify_win32}" = "xyes" ; then | ||
27634 | have_notify_win32="yes" | ||
27635 | else | ||
27636 | have_notify_win32="no" | ||
27637 | fi | ||
27638 | |||
27639 | |||
27640 | if test "x${have_ecore_con}" = "xyes" ; then | ||
27641 | requirements_ecore_file="ecore-con >= 1.1.0 ${requirements_ecore_file}" | ||
27642 | else | ||
27643 | |||
27644 | _ecore_want_curl=${want_curl} | ||
27645 | _ecore_have_curl="no" | ||
27646 | |||
27647 | # Check whether --enable-curl was given. | ||
27648 | if test "${enable_curl+set}" = set; then : | ||
27649 | enableval=$enable_curl; | ||
27650 | if test "x${enableval}" = "xyes" ; then | ||
27651 | _ecore_want_curl="yes" | ||
27652 | else | ||
27653 | _ecore_want_curl="no" | ||
27654 | fi | ||
27655 | |||
27656 | fi | ||
27657 | |||
27658 | |||
27659 | if test "x${_ecore_want_curl}" = "xyes" ; then | ||
27660 | |||
27661 | pkg_failed=no | ||
27662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5 | ||
27663 | $as_echo_n "checking for CURL... " >&6; } | ||
27664 | |||
27665 | if test -n "$CURL_CFLAGS"; then | ||
27666 | pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" | ||
27667 | elif test -n "$PKG_CONFIG"; then | ||
27668 | if test -n "$PKG_CONFIG" && \ | ||
27669 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 | ||
27670 | ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 | ||
27671 | ac_status=$? | ||
27672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27673 | test $ac_status = 0; }; then | ||
27674 | pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null` | ||
27675 | else | ||
27676 | pkg_failed=yes | ||
27677 | fi | ||
27678 | else | ||
27679 | pkg_failed=untried | ||
27680 | fi | ||
27681 | if test -n "$CURL_LIBS"; then | ||
27682 | pkg_cv_CURL_LIBS="$CURL_LIBS" | ||
27683 | elif test -n "$PKG_CONFIG"; then | ||
27684 | if test -n "$PKG_CONFIG" && \ | ||
27685 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 | ||
27686 | ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 | ||
27687 | ac_status=$? | ||
27688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27689 | test $ac_status = 0; }; then | ||
27690 | pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null` | ||
27691 | else | ||
27692 | pkg_failed=yes | ||
27693 | fi | ||
27694 | else | ||
27695 | pkg_failed=untried | ||
27696 | fi | ||
27697 | |||
27698 | |||
27699 | |||
27700 | if test $pkg_failed = yes; then | ||
27701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27702 | $as_echo "no" >&6; } | ||
27703 | |||
27704 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27705 | _pkg_short_errors_supported=yes | ||
27706 | else | ||
27707 | _pkg_short_errors_supported=no | ||
27708 | fi | ||
27709 | if test $_pkg_short_errors_supported = yes; then | ||
27710 | CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1` | ||
27711 | else | ||
27712 | CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1` | ||
27713 | fi | ||
27714 | # Put the nasty error message in config.log where it belongs | ||
27715 | echo "$CURL_PKG_ERRORS" >&5 | ||
27716 | |||
27717 | _ecore_have_curl="no" | ||
27718 | elif test $pkg_failed = untried; then | ||
27719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27720 | $as_echo "no" >&6; } | ||
27721 | _ecore_have_curl="no" | ||
27722 | else | ||
27723 | CURL_CFLAGS=$pkg_cv_CURL_CFLAGS | ||
27724 | CURL_LIBS=$pkg_cv_CURL_LIBS | ||
27725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27726 | $as_echo "yes" >&6; } | ||
27727 | |||
27728 | |||
27729 | $as_echo "#define HAVE_CURL 1" >>confdefs.h | ||
27730 | |||
27731 | _ecore_have_curl="yes" | ||
27732 | |||
27733 | fi | ||
27734 | fi | ||
27735 | |||
27736 | if test "x$_ecore_have_curl" = "xyes" ; then | ||
27737 | |||
27738 | have_curl="yes" | ||
27739 | requirements_ecore_file="libcurl ${requirements_ecore_file}" | ||
27740 | |||
27741 | else | ||
27742 | have_curl="no" | ||
27743 | fi | ||
27744 | |||
27745 | fi | ||
27746 | |||
27747 | fi | ||
27748 | |||
27749 | # ecore_config | ||
27750 | #ecore_config_deps="no" | ||
27751 | #if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then | ||
27752 | # ecore_config_deps="yes" | ||
27753 | #fi | ||
27754 | |||
27755 | #ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}], | ||
27756 | # [requirements_ecore_config="ecore-ipc >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 ${requirements_ecore_config}"]) | ||
27757 | |||
27758 | if false; then | ||
27759 | BUILD_ECORE_CONFIG_TRUE= | ||
27760 | BUILD_ECORE_CONFIG_FALSE='#' | ||
27761 | else | ||
27762 | BUILD_ECORE_CONFIG_TRUE='#' | ||
27763 | BUILD_ECORE_CONFIG_FALSE= | ||
27764 | fi | ||
27765 | |||
27766 | |||
27767 | # ecore_imf | ||
27768 | |||
27769 | |||
27770 | |||
27771 | have_ecore_imf=no | ||
27772 | ecore_imf_cflags= | ||
27773 | ecore_imf_libs= | ||
27774 | want_module=${want_ecore_imf} | ||
27775 | |||
27776 | # Check whether --enable-ecore-imf was given. | ||
27777 | if test "${enable_ecore_imf+set}" = set; then : | ||
27778 | enableval=$enable_ecore_imf; | ||
27779 | if test "x${enableval}" = "xyes" ; then | ||
27780 | want_module="yes" | ||
27781 | else | ||
27782 | want_module="no" | ||
27783 | fi | ||
27784 | |||
27785 | fi | ||
27786 | |||
27787 | |||
27788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Imf module is to be built" >&5 | ||
27789 | $as_echo_n "checking whether Ecore_Imf module is to be built... " >&6; } | ||
27790 | |||
27791 | if test "x${want_module}" = "xyes" ; then | ||
27792 | if test "x" = "x" || test "x" = "xyes" ; then | ||
27793 | |||
27794 | $as_echo "#define BUILD_ECORE_IMF 1" >>confdefs.h | ||
27795 | |||
27796 | have_ecore_imf="yes" | ||
27797 | ecore_imf_libs="-lecore_imf" | ||
27798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27799 | $as_echo "yes" >&6; } | ||
27800 | else | ||
27801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27802 | $as_echo "no (dependency failed)" >&6; } | ||
27803 | fi | ||
27804 | else | ||
27805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27806 | $as_echo "no" >&6; } | ||
27807 | fi | ||
27808 | |||
27809 | if test "x$have_ecore_imf" = "xyes"; then | ||
27810 | BUILD_ECORE_IMF_TRUE= | ||
27811 | BUILD_ECORE_IMF_FALSE='#' | ||
27812 | else | ||
27813 | BUILD_ECORE_IMF_TRUE='#' | ||
27814 | BUILD_ECORE_IMF_FALSE= | ||
27815 | fi | ||
27816 | |||
27817 | |||
27818 | if test "x$have_ecore_imf" = "xyes"; then : | ||
27819 | |||
27820 | fi | ||
27821 | |||
27822 | |||
27823 | |||
27824 | |||
27825 | |||
27826 | |||
27827 | |||
27828 | |||
27829 | # ecore_imf_evas | ||
27830 | |||
27831 | ecore_imf_evas_deps="no" | ||
27832 | if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then | ||
27833 | ecore_imf_evas_deps="yes" | ||
27834 | fi | ||
27835 | |||
27836 | |||
27837 | |||
27838 | have_ecore_imf_evas=no | ||
27839 | ecore_imf_evas_cflags= | ||
27840 | ecore_imf_evas_libs= | ||
27841 | want_module=${want_ecore_imf} | ||
27842 | |||
27843 | # Check whether --enable-ecore-imf-evas was given. | ||
27844 | if test "${enable_ecore_imf_evas+set}" = set; then : | ||
27845 | enableval=$enable_ecore_imf_evas; | ||
27846 | if test "x${enableval}" = "xyes" ; then | ||
27847 | want_module="yes" | ||
27848 | else | ||
27849 | want_module="no" | ||
27850 | fi | ||
27851 | |||
27852 | fi | ||
27853 | |||
27854 | |||
27855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Imf_Evas module is to be built" >&5 | ||
27856 | $as_echo_n "checking whether Ecore_Imf_Evas module is to be built... " >&6; } | ||
27857 | |||
27858 | if test "x${want_module}" = "xyes" ; then | ||
27859 | if test "x${ecore_imf_evas_deps}" = "x" || test "x${ecore_imf_evas_deps}" = "xyes" ; then | ||
27860 | |||
27861 | $as_echo "#define BUILD_ECORE_IMF_EVAS 1" >>confdefs.h | ||
27862 | |||
27863 | have_ecore_imf_evas="yes" | ||
27864 | ecore_imf_evas_libs="-lecore_imf_evas" | ||
27865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27866 | $as_echo "yes" >&6; } | ||
27867 | else | ||
27868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27869 | $as_echo "no (dependency failed)" >&6; } | ||
27870 | fi | ||
27871 | else | ||
27872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27873 | $as_echo "no" >&6; } | ||
27874 | fi | ||
27875 | |||
27876 | if test "x$have_ecore_imf_evas" = "xyes"; then | ||
27877 | BUILD_ECORE_IMF_EVAS_TRUE= | ||
27878 | BUILD_ECORE_IMF_EVAS_FALSE='#' | ||
27879 | else | ||
27880 | BUILD_ECORE_IMF_EVAS_TRUE='#' | ||
27881 | BUILD_ECORE_IMF_EVAS_FALSE= | ||
27882 | fi | ||
27883 | |||
27884 | |||
27885 | if test "x$have_ecore_imf_evas" = "xyes"; then : | ||
27886 | requirements_ecore_imf_evas="ecore-imf >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_imf_evas}" | ||
27887 | fi | ||
27888 | |||
27889 | |||
27890 | |||
27891 | |||
27892 | |||
27893 | |||
27894 | |||
27895 | |||
27896 | # ecore_input{_evas} | ||
27897 | |||
27898 | |||
27899 | have_ecore_input=no | ||
27900 | ecore_input_cflags= | ||
27901 | ecore_input_libs= | ||
27902 | want_module=${want_ecore_input} | ||
27903 | |||
27904 | # Check whether --enable-ecore-input was given. | ||
27905 | if test "${enable_ecore_input+set}" = set; then : | ||
27906 | enableval=$enable_ecore_input; | ||
27907 | if test "x${enableval}" = "xyes" ; then | ||
27908 | want_module="yes" | ||
27909 | else | ||
27910 | want_module="no" | ||
27911 | fi | ||
27912 | |||
27913 | fi | ||
27914 | |||
27915 | |||
27916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Input module is to be built" >&5 | ||
27917 | $as_echo_n "checking whether Ecore_Input module is to be built... " >&6; } | ||
27918 | |||
27919 | if test "x${want_module}" = "xyes" ; then | ||
27920 | if test "x" = "x" || test "x" = "xyes" ; then | ||
27921 | |||
27922 | $as_echo "#define BUILD_ECORE_INPUT 1" >>confdefs.h | ||
27923 | |||
27924 | have_ecore_input="yes" | ||
27925 | ecore_input_libs="-lecore_input" | ||
27926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27927 | $as_echo "yes" >&6; } | ||
27928 | else | ||
27929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27930 | $as_echo "no (dependency failed)" >&6; } | ||
27931 | fi | ||
27932 | else | ||
27933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27934 | $as_echo "no" >&6; } | ||
27935 | fi | ||
27936 | |||
27937 | if test "x$have_ecore_input" = "xyes"; then | ||
27938 | BUILD_ECORE_INPUT_TRUE= | ||
27939 | BUILD_ECORE_INPUT_FALSE='#' | ||
27940 | else | ||
27941 | BUILD_ECORE_INPUT_TRUE='#' | ||
27942 | BUILD_ECORE_INPUT_FALSE= | ||
27943 | fi | ||
27944 | |||
27945 | |||
27946 | if test "x$have_ecore_input" = "xyes"; then : | ||
27947 | |||
27948 | fi | ||
27949 | |||
27950 | |||
27951 | |||
27952 | |||
27953 | |||
27954 | |||
27955 | |||
27956 | |||
27957 | |||
27958 | have_ecore_input_evas=no | ||
27959 | ecore_input_evas_cflags= | ||
27960 | ecore_input_evas_libs= | ||
27961 | want_module=${want_ecore_input} | ||
27962 | |||
27963 | # Check whether --enable-ecore-input-evas was given. | ||
27964 | if test "${enable_ecore_input_evas+set}" = set; then : | ||
27965 | enableval=$enable_ecore_input_evas; | ||
27966 | if test "x${enableval}" = "xyes" ; then | ||
27967 | want_module="yes" | ||
27968 | else | ||
27969 | want_module="no" | ||
27970 | fi | ||
27971 | |||
27972 | fi | ||
27973 | |||
27974 | |||
27975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Input_Evas module is to be built" >&5 | ||
27976 | $as_echo_n "checking whether Ecore_Input_Evas module is to be built... " >&6; } | ||
27977 | |||
27978 | if test "x${want_module}" = "xyes" ; then | ||
27979 | if test "x${have_evas}" = "x" || test "x${have_evas}" = "xyes" ; then | ||
27980 | |||
27981 | $as_echo "#define BUILD_ECORE_INPUT_EVAS 1" >>confdefs.h | ||
27982 | |||
27983 | have_ecore_input_evas="yes" | ||
27984 | ecore_input_evas_libs="-lecore_input_evas" | ||
27985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27986 | $as_echo "yes" >&6; } | ||
27987 | else | ||
27988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27989 | $as_echo "no (dependency failed)" >&6; } | ||
27990 | fi | ||
27991 | else | ||
27992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27993 | $as_echo "no" >&6; } | ||
27994 | fi | ||
27995 | |||
27996 | if test "x$have_ecore_input_evas" = "xyes"; then | ||
27997 | BUILD_ECORE_INPUT_EVAS_TRUE= | ||
27998 | BUILD_ECORE_INPUT_EVAS_FALSE='#' | ||
27999 | else | ||
28000 | BUILD_ECORE_INPUT_EVAS_TRUE='#' | ||
28001 | BUILD_ECORE_INPUT_EVAS_FALSE= | ||
28002 | fi | ||
28003 | |||
28004 | |||
28005 | if test "x$have_ecore_input_evas" = "xyes"; then : | ||
28006 | requirements_ecore_input_evas="ecore-input >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_input}" | ||
28007 | fi | ||
28008 | |||
28009 | |||
28010 | |||
28011 | |||
28012 | |||
28013 | |||
28014 | |||
28015 | |||
28016 | # ecore_imf_xim | ||
28017 | if false; then | ||
28018 | BUILD_ECORE_IMF_XIM_TRUE= | ||
28019 | BUILD_ECORE_IMF_XIM_FALSE='#' | ||
28020 | else | ||
28021 | BUILD_ECORE_IMF_XIM_TRUE='#' | ||
28022 | BUILD_ECORE_IMF_XIM_FALSE= | ||
28023 | fi | ||
28024 | |||
28025 | ecore_imf_xim_deps="no" | ||
28026 | echo "have_ecore_x_xlib: ${have_ecore_x_xlib}" | ||
28027 | if test "x${have_ecore_imf}" = "xyes" \ | ||
28028 | -a "x${have_ecore_x_xlib}" = "xyes" \ | ||
28029 | -a "x${have_ecore_input}" = "xyes" ; then | ||
28030 | ecore_imf_xim_deps="yes" | ||
28031 | |||
28032 | $as_echo "#define BUILD_ECORE_IMF_XIM 1" >>confdefs.h | ||
28033 | |||
28034 | fi | ||
28035 | |||
28036 | |||
28037 | |||
28038 | have_ecore_imf_xim=no | ||
28039 | ecore_imf_xim_cflags= | ||
28040 | ecore_imf_xim_libs= | ||
28041 | want_module=${want_ecore_imf} | ||
28042 | |||
28043 | # Check whether --enable-ecore-imf-xim was given. | ||
28044 | if test "${enable_ecore_imf_xim+set}" = set; then : | ||
28045 | enableval=$enable_ecore_imf_xim; | ||
28046 | if test "x${enableval}" = "xyes" ; then | ||
28047 | want_module="yes" | ||
28048 | else | ||
28049 | want_module="no" | ||
28050 | fi | ||
28051 | |||
28052 | fi | ||
28053 | |||
28054 | |||
28055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Imf_XIM module is to be built" >&5 | ||
28056 | $as_echo_n "checking whether Ecore_Imf_XIM module is to be built... " >&6; } | ||
28057 | |||
28058 | if test "x${want_module}" = "xyes" ; then | ||
28059 | if test "x${ecore_imf_xim_deps}" = "x" || test "x${ecore_imf_xim_deps}" = "xyes" ; then | ||
28060 | |||
28061 | $as_echo "#define BUILD_ECORE_IMF_XIM 1" >>confdefs.h | ||
28062 | |||
28063 | have_ecore_imf_xim="yes" | ||
28064 | ecore_imf_xim_libs="-lecore_imf_xim" | ||
28065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28066 | $as_echo "yes" >&6; } | ||
28067 | else | ||
28068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28069 | $as_echo "no (dependency failed)" >&6; } | ||
28070 | fi | ||
28071 | else | ||
28072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28073 | $as_echo "no" >&6; } | ||
28074 | fi | ||
28075 | |||
28076 | if test "x$have_ecore_imf_xim" = "xyes"; then | ||
28077 | BUILD_ECORE_IMF_XIM_TRUE= | ||
28078 | BUILD_ECORE_IMF_XIM_FALSE='#' | ||
28079 | else | ||
28080 | BUILD_ECORE_IMF_XIM_TRUE='#' | ||
28081 | BUILD_ECORE_IMF_XIM_FALSE= | ||
28082 | fi | ||
28083 | |||
28084 | |||
28085 | if test "x$have_ecore_imf_xim" = "xyes"; then : | ||
28086 | requirements_ecore_imf_xim="ecore-imf >= 1.1.0 ecore-x >= 1.1.0 ecore-input >= 1.1.0 ${requirements_ecore_imf_xim}" | ||
28087 | fi | ||
28088 | |||
28089 | |||
28090 | |||
28091 | |||
28092 | |||
28093 | |||
28094 | |||
28095 | |||
28096 | ## Graphic systems | ||
28097 | |||
28098 | # ecore_x{cb} | ||
28099 | |||
28100 | ecore_x_deps="no" | ||
28101 | if test "x${have_x}" = "xyes" -a \ | ||
28102 | "x${have_ecore_input}" = "xyes" ; then | ||
28103 | ecore_x_deps="yes" | ||
28104 | fi | ||
28105 | |||
28106 | |||
28107 | |||
28108 | have_ecore_x=no | ||
28109 | ecore_x_cflags= | ||
28110 | ecore_x_libs= | ||
28111 | want_module=${want_ecore_x} | ||
28112 | |||
28113 | # Check whether --enable-ecore-x was given. | ||
28114 | if test "${enable_ecore_x+set}" = set; then : | ||
28115 | enableval=$enable_ecore_x; | ||
28116 | if test "x${enableval}" = "xyes" ; then | ||
28117 | want_module="yes" | ||
28118 | else | ||
28119 | want_module="no" | ||
28120 | fi | ||
28121 | |||
28122 | fi | ||
28123 | |||
28124 | |||
28125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_X module is to be built" >&5 | ||
28126 | $as_echo_n "checking whether Ecore_X module is to be built... " >&6; } | ||
28127 | |||
28128 | if test "x${want_module}" = "xyes" ; then | ||
28129 | if test "x${ecore_x_deps}" = "x" || test "x${ecore_x_deps}" = "xyes" ; then | ||
28130 | |||
28131 | $as_echo "#define BUILD_ECORE_X 1" >>confdefs.h | ||
28132 | |||
28133 | have_ecore_x="yes" | ||
28134 | ecore_x_libs="-lecore_x" | ||
28135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28136 | $as_echo "yes" >&6; } | ||
28137 | else | ||
28138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28139 | $as_echo "no (dependency failed)" >&6; } | ||
28140 | fi | ||
28141 | else | ||
28142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28143 | $as_echo "no" >&6; } | ||
28144 | fi | ||
28145 | |||
28146 | if test "x$have_ecore_x" = "xyes"; then | ||
28147 | BUILD_ECORE_X_TRUE= | ||
28148 | BUILD_ECORE_X_FALSE='#' | ||
28149 | else | ||
28150 | BUILD_ECORE_X_TRUE='#' | ||
28151 | BUILD_ECORE_X_FALSE= | ||
28152 | fi | ||
28153 | |||
28154 | |||
28155 | if test "x$have_ecore_x" = "xyes"; then : | ||
28156 | |||
28157 | ecore_x_libs="$ecore_x_libs $x_libs" | ||
28158 | requirements_ecore_x="ecore-input >= 1.1.0 ${requirements_ecore_x}" | ||
28159 | |||
28160 | fi | ||
28161 | |||
28162 | |||
28163 | |||
28164 | |||
28165 | |||
28166 | |||
28167 | |||
28168 | |||
28169 | # ecore_win32 | ||
28170 | |||
28171 | |||
28172 | |||
28173 | have_ecore_win32=no | ||
28174 | ecore_win32_cflags= | ||
28175 | ecore_win32_libs= | ||
28176 | want_module=${want_ecore_win32} | ||
28177 | |||
28178 | # Check whether --enable-ecore-win32 was given. | ||
28179 | if test "${enable_ecore_win32+set}" = set; then : | ||
28180 | enableval=$enable_ecore_win32; | ||
28181 | if test "x${enableval}" = "xyes" ; then | ||
28182 | want_module="yes" | ||
28183 | else | ||
28184 | want_module="no" | ||
28185 | fi | ||
28186 | |||
28187 | fi | ||
28188 | |||
28189 | |||
28190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Win32 module is to be built" >&5 | ||
28191 | $as_echo_n "checking whether Ecore_Win32 module is to be built... " >&6; } | ||
28192 | |||
28193 | if test "x${want_module}" = "xyes" ; then | ||
28194 | if test "x${have_ecore_input}" = "x" || test "x${have_ecore_input}" = "xyes" ; then | ||
28195 | |||
28196 | $as_echo "#define BUILD_ECORE_WIN32 1" >>confdefs.h | ||
28197 | |||
28198 | have_ecore_win32="yes" | ||
28199 | ecore_win32_libs="-lecore_win32" | ||
28200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28201 | $as_echo "yes" >&6; } | ||
28202 | else | ||
28203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28204 | $as_echo "no (dependency failed)" >&6; } | ||
28205 | fi | ||
28206 | else | ||
28207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28208 | $as_echo "no" >&6; } | ||
28209 | fi | ||
28210 | |||
28211 | if test "x$have_ecore_win32" = "xyes"; then | ||
28212 | BUILD_ECORE_WIN32_TRUE= | ||
28213 | BUILD_ECORE_WIN32_FALSE='#' | ||
28214 | else | ||
28215 | BUILD_ECORE_WIN32_TRUE='#' | ||
28216 | BUILD_ECORE_WIN32_FALSE= | ||
28217 | fi | ||
28218 | |||
28219 | |||
28220 | if test "x$have_ecore_win32" = "xyes"; then : | ||
28221 | |||
28222 | ecore_win32_libs="-lole32 -lgdi32" | ||
28223 | requirements_ecore_win32="ecore-input >= 1.1.0 ${requirements_ecore_win32}" | ||
28224 | |||
28225 | fi | ||
28226 | |||
28227 | |||
28228 | |||
28229 | |||
28230 | |||
28231 | |||
28232 | |||
28233 | |||
28234 | |||
28235 | # ecore_cocoa | ||
28236 | |||
28237 | ecore_cocoa_deps="no" | ||
28238 | if test "x${have_ecore_input}" = "xyes" -a "x${have_cocoa}" = "xyes" ; then | ||
28239 | ecore_cocoa_deps="yes" | ||
28240 | fi | ||
28241 | |||
28242 | |||
28243 | |||
28244 | have_ecore_cocoa=no | ||
28245 | ecore_cocoa_cflags= | ||
28246 | ecore_cocoa_libs= | ||
28247 | want_module=${want_ecore_cocoa} | ||
28248 | |||
28249 | # Check whether --enable-ecore-cocoa was given. | ||
28250 | if test "${enable_ecore_cocoa+set}" = set; then : | ||
28251 | enableval=$enable_ecore_cocoa; | ||
28252 | if test "x${enableval}" = "xyes" ; then | ||
28253 | want_module="yes" | ||
28254 | else | ||
28255 | want_module="no" | ||
28256 | fi | ||
28257 | |||
28258 | fi | ||
28259 | |||
28260 | |||
28261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Cocoa module is to be built" >&5 | ||
28262 | $as_echo_n "checking whether Ecore_Cocoa module is to be built... " >&6; } | ||
28263 | |||
28264 | if test "x${want_module}" = "xyes" ; then | ||
28265 | if test "x${ecore_cocoa_deps}" = "x" || test "x${ecore_cocoa_deps}" = "xyes" ; then | ||
28266 | |||
28267 | $as_echo "#define BUILD_ECORE_COCOA 1" >>confdefs.h | ||
28268 | |||
28269 | have_ecore_cocoa="yes" | ||
28270 | ecore_cocoa_libs="-lecore_cocoa" | ||
28271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28272 | $as_echo "yes" >&6; } | ||
28273 | else | ||
28274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28275 | $as_echo "no (dependency failed)" >&6; } | ||
28276 | fi | ||
28277 | else | ||
28278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28279 | $as_echo "no" >&6; } | ||
28280 | fi | ||
28281 | |||
28282 | if test "x$have_ecore_cocoa" = "xyes"; then | ||
28283 | BUILD_ECORE_COCOA_TRUE= | ||
28284 | BUILD_ECORE_COCOA_FALSE='#' | ||
28285 | else | ||
28286 | BUILD_ECORE_COCOA_TRUE='#' | ||
28287 | BUILD_ECORE_COCOA_FALSE= | ||
28288 | fi | ||
28289 | |||
28290 | |||
28291 | if test "x$have_ecore_cocoa" = "xyes"; then : | ||
28292 | requirements_ecore_cocoa="ecore-input >= 1.1.0 ${requirements_ecore_cocoa}" | ||
28293 | fi | ||
28294 | |||
28295 | |||
28296 | |||
28297 | |||
28298 | |||
28299 | |||
28300 | |||
28301 | |||
28302 | # ecore_sdl | ||
28303 | |||
28304 | ecore_sdl_deps="no" | ||
28305 | if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then | ||
28306 | ecore_sdl_deps="yes" | ||
28307 | fi | ||
28308 | |||
28309 | |||
28310 | |||
28311 | have_ecore_sdl=no | ||
28312 | ecore_sdl_cflags= | ||
28313 | ecore_sdl_libs= | ||
28314 | want_module=${want_ecore_sdl} | ||
28315 | |||
28316 | # Check whether --enable-ecore-sdl was given. | ||
28317 | if test "${enable_ecore_sdl+set}" = set; then : | ||
28318 | enableval=$enable_ecore_sdl; | ||
28319 | if test "x${enableval}" = "xyes" ; then | ||
28320 | want_module="yes" | ||
28321 | else | ||
28322 | want_module="no" | ||
28323 | fi | ||
28324 | |||
28325 | fi | ||
28326 | |||
28327 | |||
28328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Sdl module is to be built" >&5 | ||
28329 | $as_echo_n "checking whether Ecore_Sdl module is to be built... " >&6; } | ||
28330 | |||
28331 | if test "x${want_module}" = "xyes" ; then | ||
28332 | if test "x${ecore_sdl_deps}" = "x" || test "x${ecore_sdl_deps}" = "xyes" ; then | ||
28333 | |||
28334 | $as_echo "#define BUILD_ECORE_SDL 1" >>confdefs.h | ||
28335 | |||
28336 | have_ecore_sdl="yes" | ||
28337 | ecore_sdl_libs="-lecore_sdl" | ||
28338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28339 | $as_echo "yes" >&6; } | ||
28340 | else | ||
28341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28342 | $as_echo "no (dependency failed)" >&6; } | ||
28343 | fi | ||
28344 | else | ||
28345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28346 | $as_echo "no" >&6; } | ||
28347 | fi | ||
28348 | |||
28349 | if test "x$have_ecore_sdl" = "xyes"; then | ||
28350 | BUILD_ECORE_SDL_TRUE= | ||
28351 | BUILD_ECORE_SDL_FALSE='#' | ||
28352 | else | ||
28353 | BUILD_ECORE_SDL_TRUE='#' | ||
28354 | BUILD_ECORE_SDL_FALSE= | ||
28355 | fi | ||
28356 | |||
28357 | |||
28358 | if test "x$have_ecore_sdl" = "xyes"; then : | ||
28359 | requirements_ecore_sdl="ecore-input >= 1.1.0 ${requirements_ecore_sdl}" | ||
28360 | fi | ||
28361 | |||
28362 | |||
28363 | |||
28364 | |||
28365 | |||
28366 | |||
28367 | |||
28368 | |||
28369 | |||
28370 | |||
28371 | have_ecore_psl1ght=no | ||
28372 | ecore_psl1ght_cflags= | ||
28373 | ecore_psl1ght_libs= | ||
28374 | want_module=${want_ecore_psl1ght} | ||
28375 | |||
28376 | # Check whether --enable-ecore-psl1ght was given. | ||
28377 | if test "${enable_ecore_psl1ght+set}" = set; then : | ||
28378 | enableval=$enable_ecore_psl1ght; | ||
28379 | if test "x${enableval}" = "xyes" ; then | ||
28380 | want_module="yes" | ||
28381 | else | ||
28382 | want_module="no" | ||
28383 | fi | ||
28384 | |||
28385 | fi | ||
28386 | |||
28387 | |||
28388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_psl1ght module is to be built" >&5 | ||
28389 | $as_echo_n "checking whether Ecore_psl1ght module is to be built... " >&6; } | ||
28390 | |||
28391 | if test "x${want_module}" = "xyes" ; then | ||
28392 | if test "x${ecore_psl1ght_deps}" = "x" || test "x${ecore_psl1ght_deps}" = "xyes" ; then | ||
28393 | |||
28394 | $as_echo "#define BUILD_ECORE_PSL1GHT 1" >>confdefs.h | ||
28395 | |||
28396 | have_ecore_psl1ght="yes" | ||
28397 | ecore_psl1ght_libs="-lecore_psl1ght" | ||
28398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28399 | $as_echo "yes" >&6; } | ||
28400 | else | ||
28401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28402 | $as_echo "no (dependency failed)" >&6; } | ||
28403 | fi | ||
28404 | else | ||
28405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28406 | $as_echo "no" >&6; } | ||
28407 | fi | ||
28408 | |||
28409 | if test "x$have_ecore_psl1ght" = "xyes"; then | ||
28410 | BUILD_ECORE_PSL1GHT_TRUE= | ||
28411 | BUILD_ECORE_PSL1GHT_FALSE='#' | ||
28412 | else | ||
28413 | BUILD_ECORE_PSL1GHT_TRUE='#' | ||
28414 | BUILD_ECORE_PSL1GHT_FALSE= | ||
28415 | fi | ||
28416 | |||
28417 | |||
28418 | if test "x$have_ecore_psl1ght" = "xyes"; then : | ||
28419 | requirements_ecore_psl1ght="ecore-input >= 1.1.0 ${requirements_ecore_psl1ght}" | ||
28420 | fi | ||
28421 | |||
28422 | |||
28423 | |||
28424 | |||
28425 | |||
28426 | |||
28427 | |||
28428 | |||
28429 | # ecore_fb | ||
28430 | |||
28431 | |||
28432 | have_ecore_fb=no | ||
28433 | ecore_fb_cflags= | ||
28434 | ecore_fb_libs= | ||
28435 | want_module=${want_ecore_fb} | ||
28436 | |||
28437 | # Check whether --enable-ecore-fb was given. | ||
28438 | if test "${enable_ecore_fb+set}" = set; then : | ||
28439 | enableval=$enable_ecore_fb; | ||
28440 | if test "x${enableval}" = "xyes" ; then | ||
28441 | want_module="yes" | ||
28442 | else | ||
28443 | want_module="no" | ||
28444 | fi | ||
28445 | |||
28446 | fi | ||
28447 | |||
28448 | |||
28449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_FB module is to be built" >&5 | ||
28450 | $as_echo_n "checking whether Ecore_FB module is to be built... " >&6; } | ||
28451 | |||
28452 | if test "x${want_module}" = "xyes" ; then | ||
28453 | if test "x$have_fb" = "x" || test "x$have_fb" = "xyes" ; then | ||
28454 | |||
28455 | $as_echo "#define BUILD_ECORE_FB 1" >>confdefs.h | ||
28456 | |||
28457 | have_ecore_fb="yes" | ||
28458 | ecore_fb_libs="-lecore_fb" | ||
28459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28460 | $as_echo "yes" >&6; } | ||
28461 | else | ||
28462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28463 | $as_echo "no (dependency failed)" >&6; } | ||
28464 | fi | ||
28465 | else | ||
28466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28467 | $as_echo "no" >&6; } | ||
28468 | fi | ||
28469 | |||
28470 | if test "x$have_ecore_fb" = "xyes"; then | ||
28471 | BUILD_ECORE_FB_TRUE= | ||
28472 | BUILD_ECORE_FB_FALSE='#' | ||
28473 | else | ||
28474 | BUILD_ECORE_FB_TRUE='#' | ||
28475 | BUILD_ECORE_FB_FALSE= | ||
28476 | fi | ||
28477 | |||
28478 | |||
28479 | if test "x$have_ecore_fb" = "xyes"; then : | ||
28480 | |||
28481 | fi | ||
28482 | |||
28483 | |||
28484 | |||
28485 | |||
28486 | |||
28487 | |||
28488 | |||
28489 | |||
28490 | if test "x${have_ecore_fb}" = "xyes" ; then | ||
28491 | |||
28492 | _tslib_requirement="" | ||
28493 | _ecore_want_tslib=${want_tslib} | ||
28494 | _ecore_have_tslib="no" | ||
28495 | TSLIB_LIBS="" | ||
28496 | TSLIB_CFLAGS="" | ||
28497 | |||
28498 | # Check whether --enable-tslib was given. | ||
28499 | if test "${enable_tslib+set}" = set; then : | ||
28500 | enableval=$enable_tslib; | ||
28501 | if test "x${enableval}" = "xyes" ; then | ||
28502 | _ecore_want_tslib="yes" | ||
28503 | else | ||
28504 | _ecore_want_tslib="no" | ||
28505 | fi | ||
28506 | |||
28507 | fi | ||
28508 | |||
28509 | |||
28510 | if test "x${_ecore_want_tslib}" = "xyes" -o "x${_ecore_want_tslib}" = "xauto" ; then | ||
28511 | |||
28512 | pkg_failed=no | ||
28513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5 | ||
28514 | $as_echo_n "checking for TSLIB... " >&6; } | ||
28515 | |||
28516 | if test -n "$TSLIB_CFLAGS"; then | ||
28517 | pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS" | ||
28518 | elif test -n "$PKG_CONFIG"; then | ||
28519 | if test -n "$PKG_CONFIG" && \ | ||
28520 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-1.0\""; } >&5 | ||
28521 | ($PKG_CONFIG --exists --print-errors "tslib-1.0") 2>&5 | ||
28522 | ac_status=$? | ||
28523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28524 | test $ac_status = 0; }; then | ||
28525 | pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-1.0" 2>/dev/null` | ||
28526 | else | ||
28527 | pkg_failed=yes | ||
28528 | fi | ||
28529 | else | ||
28530 | pkg_failed=untried | ||
28531 | fi | ||
28532 | if test -n "$TSLIB_LIBS"; then | ||
28533 | pkg_cv_TSLIB_LIBS="$TSLIB_LIBS" | ||
28534 | elif test -n "$PKG_CONFIG"; then | ||
28535 | if test -n "$PKG_CONFIG" && \ | ||
28536 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-1.0\""; } >&5 | ||
28537 | ($PKG_CONFIG --exists --print-errors "tslib-1.0") 2>&5 | ||
28538 | ac_status=$? | ||
28539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28540 | test $ac_status = 0; }; then | ||
28541 | pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-1.0" 2>/dev/null` | ||
28542 | else | ||
28543 | pkg_failed=yes | ||
28544 | fi | ||
28545 | else | ||
28546 | pkg_failed=untried | ||
28547 | fi | ||
28548 | |||
28549 | |||
28550 | |||
28551 | if test $pkg_failed = yes; then | ||
28552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28553 | $as_echo "no" >&6; } | ||
28554 | |||
28555 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28556 | _pkg_short_errors_supported=yes | ||
28557 | else | ||
28558 | _pkg_short_errors_supported=no | ||
28559 | fi | ||
28560 | if test $_pkg_short_errors_supported = yes; then | ||
28561 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib-1.0" 2>&1` | ||
28562 | else | ||
28563 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib-1.0" 2>&1` | ||
28564 | fi | ||
28565 | # Put the nasty error message in config.log where it belongs | ||
28566 | echo "$TSLIB_PKG_ERRORS" >&5 | ||
28567 | |||
28568 | |||
28569 | |||
28570 | pkg_failed=no | ||
28571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5 | ||
28572 | $as_echo_n "checking for TSLIB... " >&6; } | ||
28573 | |||
28574 | if test -n "$TSLIB_CFLAGS"; then | ||
28575 | pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS" | ||
28576 | elif test -n "$PKG_CONFIG"; then | ||
28577 | if test -n "$PKG_CONFIG" && \ | ||
28578 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib\""; } >&5 | ||
28579 | ($PKG_CONFIG --exists --print-errors "tslib") 2>&5 | ||
28580 | ac_status=$? | ||
28581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28582 | test $ac_status = 0; }; then | ||
28583 | pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib" 2>/dev/null` | ||
28584 | else | ||
28585 | pkg_failed=yes | ||
28586 | fi | ||
28587 | else | ||
28588 | pkg_failed=untried | ||
28589 | fi | ||
28590 | if test -n "$TSLIB_LIBS"; then | ||
28591 | pkg_cv_TSLIB_LIBS="$TSLIB_LIBS" | ||
28592 | elif test -n "$PKG_CONFIG"; then | ||
28593 | if test -n "$PKG_CONFIG" && \ | ||
28594 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib\""; } >&5 | ||
28595 | ($PKG_CONFIG --exists --print-errors "tslib") 2>&5 | ||
28596 | ac_status=$? | ||
28597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28598 | test $ac_status = 0; }; then | ||
28599 | pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib" 2>/dev/null` | ||
28600 | else | ||
28601 | pkg_failed=yes | ||
28602 | fi | ||
28603 | else | ||
28604 | pkg_failed=untried | ||
28605 | fi | ||
28606 | |||
28607 | |||
28608 | |||
28609 | if test $pkg_failed = yes; then | ||
28610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28611 | $as_echo "no" >&6; } | ||
28612 | |||
28613 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28614 | _pkg_short_errors_supported=yes | ||
28615 | else | ||
28616 | _pkg_short_errors_supported=no | ||
28617 | fi | ||
28618 | if test $_pkg_short_errors_supported = yes; then | ||
28619 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib" 2>&1` | ||
28620 | else | ||
28621 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib" 2>&1` | ||
28622 | fi | ||
28623 | # Put the nasty error message in config.log where it belongs | ||
28624 | echo "$TSLIB_PKG_ERRORS" >&5 | ||
28625 | |||
28626 | |||
28627 | ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default" | ||
28628 | if test "x$ac_cv_header_tslib_h" = x""yes; then : | ||
28629 | |||
28630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | ||
28631 | $as_echo_n "checking for ts_open in -lts... " >&6; } | ||
28632 | if test "${ac_cv_lib_ts_ts_open+set}" = set; then : | ||
28633 | $as_echo_n "(cached) " >&6 | ||
28634 | else | ||
28635 | ac_check_lib_save_LIBS=$LIBS | ||
28636 | LIBS="-lts $LIBS" | ||
28637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28638 | /* end confdefs.h. */ | ||
28639 | |||
28640 | /* Override any GCC internal prototype to avoid an error. | ||
28641 | Use char because int might match the return type of a GCC | ||
28642 | builtin and then its argument prototype would still apply. */ | ||
28643 | #ifdef __cplusplus | ||
28644 | extern "C" | ||
28645 | #endif | ||
28646 | char ts_open (); | ||
28647 | int | ||
28648 | main () | ||
28649 | { | ||
28650 | return ts_open (); | ||
28651 | ; | ||
28652 | return 0; | ||
28653 | } | ||
28654 | _ACEOF | ||
28655 | if ac_fn_c_try_link "$LINENO"; then : | ||
28656 | ac_cv_lib_ts_ts_open=yes | ||
28657 | else | ||
28658 | ac_cv_lib_ts_ts_open=no | ||
28659 | fi | ||
28660 | rm -f core conftest.err conftest.$ac_objext \ | ||
28661 | conftest$ac_exeext conftest.$ac_ext | ||
28662 | LIBS=$ac_check_lib_save_LIBS | ||
28663 | fi | ||
28664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | ||
28665 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | ||
28666 | if test "x$ac_cv_lib_ts_ts_open" = x""yes; then : | ||
28667 | |||
28668 | TSLIB_LIBS="-lts" | ||
28669 | TSLIB_CFLAGS="" | ||
28670 | |||
28671 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
28672 | |||
28673 | _ecore_have_tslib="yes" | ||
28674 | |||
28675 | else | ||
28676 | |||
28677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -ltslib" >&5 | ||
28678 | $as_echo_n "checking for ts_open in -ltslib... " >&6; } | ||
28679 | if test "${ac_cv_lib_tslib_ts_open+set}" = set; then : | ||
28680 | $as_echo_n "(cached) " >&6 | ||
28681 | else | ||
28682 | ac_check_lib_save_LIBS=$LIBS | ||
28683 | LIBS="-ltslib $LIBS" | ||
28684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28685 | /* end confdefs.h. */ | ||
28686 | |||
28687 | /* Override any GCC internal prototype to avoid an error. | ||
28688 | Use char because int might match the return type of a GCC | ||
28689 | builtin and then its argument prototype would still apply. */ | ||
28690 | #ifdef __cplusplus | ||
28691 | extern "C" | ||
28692 | #endif | ||
28693 | char ts_open (); | ||
28694 | int | ||
28695 | main () | ||
28696 | { | ||
28697 | return ts_open (); | ||
28698 | ; | ||
28699 | return 0; | ||
28700 | } | ||
28701 | _ACEOF | ||
28702 | if ac_fn_c_try_link "$LINENO"; then : | ||
28703 | ac_cv_lib_tslib_ts_open=yes | ||
28704 | else | ||
28705 | ac_cv_lib_tslib_ts_open=no | ||
28706 | fi | ||
28707 | rm -f core conftest.err conftest.$ac_objext \ | ||
28708 | conftest$ac_exeext conftest.$ac_ext | ||
28709 | LIBS=$ac_check_lib_save_LIBS | ||
28710 | fi | ||
28711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tslib_ts_open" >&5 | ||
28712 | $as_echo "$ac_cv_lib_tslib_ts_open" >&6; } | ||
28713 | if test "x$ac_cv_lib_tslib_ts_open" = x""yes; then : | ||
28714 | |||
28715 | TSLIB_LIBS="-ltslib" | ||
28716 | TSLIB_CFLAGS="" | ||
28717 | |||
28718 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
28719 | |||
28720 | _ecore_have_tslib="yes" | ||
28721 | |||
28722 | else | ||
28723 | |||
28724 | _ecore_have_tslib="no" | ||
28725 | |||
28726 | fi | ||
28727 | |||
28728 | |||
28729 | fi | ||
28730 | |||
28731 | |||
28732 | fi | ||
28733 | |||
28734 | |||
28735 | |||
28736 | elif test $pkg_failed = untried; then | ||
28737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28738 | $as_echo "no" >&6; } | ||
28739 | |||
28740 | ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default" | ||
28741 | if test "x$ac_cv_header_tslib_h" = x""yes; then : | ||
28742 | |||
28743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | ||
28744 | $as_echo_n "checking for ts_open in -lts... " >&6; } | ||
28745 | if test "${ac_cv_lib_ts_ts_open+set}" = set; then : | ||
28746 | $as_echo_n "(cached) " >&6 | ||
28747 | else | ||
28748 | ac_check_lib_save_LIBS=$LIBS | ||
28749 | LIBS="-lts $LIBS" | ||
28750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28751 | /* end confdefs.h. */ | ||
28752 | |||
28753 | /* Override any GCC internal prototype to avoid an error. | ||
28754 | Use char because int might match the return type of a GCC | ||
28755 | builtin and then its argument prototype would still apply. */ | ||
28756 | #ifdef __cplusplus | ||
28757 | extern "C" | ||
28758 | #endif | ||
28759 | char ts_open (); | ||
28760 | int | ||
28761 | main () | ||
28762 | { | ||
28763 | return ts_open (); | ||
28764 | ; | ||
28765 | return 0; | ||
28766 | } | ||
28767 | _ACEOF | ||
28768 | if ac_fn_c_try_link "$LINENO"; then : | ||
28769 | ac_cv_lib_ts_ts_open=yes | ||
28770 | else | ||
28771 | ac_cv_lib_ts_ts_open=no | ||
28772 | fi | ||
28773 | rm -f core conftest.err conftest.$ac_objext \ | ||
28774 | conftest$ac_exeext conftest.$ac_ext | ||
28775 | LIBS=$ac_check_lib_save_LIBS | ||
28776 | fi | ||
28777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | ||
28778 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | ||
28779 | if test "x$ac_cv_lib_ts_ts_open" = x""yes; then : | ||
28780 | |||
28781 | TSLIB_LIBS="-lts" | ||
28782 | TSLIB_CFLAGS="" | ||
28783 | |||
28784 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
28785 | |||
28786 | _ecore_have_tslib="yes" | ||
28787 | |||
28788 | else | ||
28789 | |||
28790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -ltslib" >&5 | ||
28791 | $as_echo_n "checking for ts_open in -ltslib... " >&6; } | ||
28792 | if test "${ac_cv_lib_tslib_ts_open+set}" = set; then : | ||
28793 | $as_echo_n "(cached) " >&6 | ||
28794 | else | ||
28795 | ac_check_lib_save_LIBS=$LIBS | ||
28796 | LIBS="-ltslib $LIBS" | ||
28797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28798 | /* end confdefs.h. */ | ||
28799 | |||
28800 | /* Override any GCC internal prototype to avoid an error. | ||
28801 | Use char because int might match the return type of a GCC | ||
28802 | builtin and then its argument prototype would still apply. */ | ||
28803 | #ifdef __cplusplus | ||
28804 | extern "C" | ||
28805 | #endif | ||
28806 | char ts_open (); | ||
28807 | int | ||
28808 | main () | ||
28809 | { | ||
28810 | return ts_open (); | ||
28811 | ; | ||
28812 | return 0; | ||
28813 | } | ||
28814 | _ACEOF | ||
28815 | if ac_fn_c_try_link "$LINENO"; then : | ||
28816 | ac_cv_lib_tslib_ts_open=yes | ||
28817 | else | ||
28818 | ac_cv_lib_tslib_ts_open=no | ||
28819 | fi | ||
28820 | rm -f core conftest.err conftest.$ac_objext \ | ||
28821 | conftest$ac_exeext conftest.$ac_ext | ||
28822 | LIBS=$ac_check_lib_save_LIBS | ||
28823 | fi | ||
28824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tslib_ts_open" >&5 | ||
28825 | $as_echo "$ac_cv_lib_tslib_ts_open" >&6; } | ||
28826 | if test "x$ac_cv_lib_tslib_ts_open" = x""yes; then : | ||
28827 | |||
28828 | TSLIB_LIBS="-ltslib" | ||
28829 | TSLIB_CFLAGS="" | ||
28830 | |||
28831 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
28832 | |||
28833 | _ecore_have_tslib="yes" | ||
28834 | |||
28835 | else | ||
28836 | |||
28837 | _ecore_have_tslib="no" | ||
28838 | |||
28839 | fi | ||
28840 | |||
28841 | |||
28842 | fi | ||
28843 | |||
28844 | |||
28845 | fi | ||
28846 | |||
28847 | |||
28848 | |||
28849 | else | ||
28850 | TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS | ||
28851 | TSLIB_LIBS=$pkg_cv_TSLIB_LIBS | ||
28852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28853 | $as_echo "yes" >&6; } | ||
28854 | |||
28855 | |||
28856 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
28857 | |||
28858 | _ecore_have_tslib="yes" | ||
28859 | _tslib_requirement="tslib" | ||
28860 | |||
28861 | fi | ||
28862 | |||
28863 | elif test $pkg_failed = untried; then | ||
28864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28865 | $as_echo "no" >&6; } | ||
28866 | |||
28867 | |||
28868 | pkg_failed=no | ||
28869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5 | ||
28870 | $as_echo_n "checking for TSLIB... " >&6; } | ||
28871 | |||
28872 | if test -n "$TSLIB_CFLAGS"; then | ||
28873 | pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS" | ||
28874 | elif test -n "$PKG_CONFIG"; then | ||
28875 | if test -n "$PKG_CONFIG" && \ | ||
28876 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib\""; } >&5 | ||
28877 | ($PKG_CONFIG --exists --print-errors "tslib") 2>&5 | ||
28878 | ac_status=$? | ||
28879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28880 | test $ac_status = 0; }; then | ||
28881 | pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib" 2>/dev/null` | ||
28882 | else | ||
28883 | pkg_failed=yes | ||
28884 | fi | ||
28885 | else | ||
28886 | pkg_failed=untried | ||
28887 | fi | ||
28888 | if test -n "$TSLIB_LIBS"; then | ||
28889 | pkg_cv_TSLIB_LIBS="$TSLIB_LIBS" | ||
28890 | elif test -n "$PKG_CONFIG"; then | ||
28891 | if test -n "$PKG_CONFIG" && \ | ||
28892 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib\""; } >&5 | ||
28893 | ($PKG_CONFIG --exists --print-errors "tslib") 2>&5 | ||
28894 | ac_status=$? | ||
28895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28896 | test $ac_status = 0; }; then | ||
28897 | pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib" 2>/dev/null` | ||
28898 | else | ||
28899 | pkg_failed=yes | ||
28900 | fi | ||
28901 | else | ||
28902 | pkg_failed=untried | ||
28903 | fi | ||
28904 | |||
28905 | |||
28906 | |||
28907 | if test $pkg_failed = yes; then | ||
28908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28909 | $as_echo "no" >&6; } | ||
28910 | |||
28911 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28912 | _pkg_short_errors_supported=yes | ||
28913 | else | ||
28914 | _pkg_short_errors_supported=no | ||
28915 | fi | ||
28916 | if test $_pkg_short_errors_supported = yes; then | ||
28917 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib" 2>&1` | ||
28918 | else | ||
28919 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib" 2>&1` | ||
28920 | fi | ||
28921 | # Put the nasty error message in config.log where it belongs | ||
28922 | echo "$TSLIB_PKG_ERRORS" >&5 | ||
28923 | |||
28924 | |||
28925 | ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default" | ||
28926 | if test "x$ac_cv_header_tslib_h" = x""yes; then : | ||
28927 | |||
28928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | ||
28929 | $as_echo_n "checking for ts_open in -lts... " >&6; } | ||
28930 | if test "${ac_cv_lib_ts_ts_open+set}" = set; then : | ||
28931 | $as_echo_n "(cached) " >&6 | ||
28932 | else | ||
28933 | ac_check_lib_save_LIBS=$LIBS | ||
28934 | LIBS="-lts $LIBS" | ||
28935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28936 | /* end confdefs.h. */ | ||
28937 | |||
28938 | /* Override any GCC internal prototype to avoid an error. | ||
28939 | Use char because int might match the return type of a GCC | ||
28940 | builtin and then its argument prototype would still apply. */ | ||
28941 | #ifdef __cplusplus | ||
28942 | extern "C" | ||
28943 | #endif | ||
28944 | char ts_open (); | ||
28945 | int | ||
28946 | main () | ||
28947 | { | ||
28948 | return ts_open (); | ||
28949 | ; | ||
28950 | return 0; | ||
28951 | } | ||
28952 | _ACEOF | ||
28953 | if ac_fn_c_try_link "$LINENO"; then : | ||
28954 | ac_cv_lib_ts_ts_open=yes | ||
28955 | else | ||
28956 | ac_cv_lib_ts_ts_open=no | ||
28957 | fi | ||
28958 | rm -f core conftest.err conftest.$ac_objext \ | ||
28959 | conftest$ac_exeext conftest.$ac_ext | ||
28960 | LIBS=$ac_check_lib_save_LIBS | ||
28961 | fi | ||
28962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | ||
28963 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | ||
28964 | if test "x$ac_cv_lib_ts_ts_open" = x""yes; then : | ||
28965 | |||
28966 | TSLIB_LIBS="-lts" | ||
28967 | TSLIB_CFLAGS="" | ||
28968 | |||
28969 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
28970 | |||
28971 | _ecore_have_tslib="yes" | ||
28972 | |||
28973 | else | ||
28974 | |||
28975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -ltslib" >&5 | ||
28976 | $as_echo_n "checking for ts_open in -ltslib... " >&6; } | ||
28977 | if test "${ac_cv_lib_tslib_ts_open+set}" = set; then : | ||
28978 | $as_echo_n "(cached) " >&6 | ||
28979 | else | ||
28980 | ac_check_lib_save_LIBS=$LIBS | ||
28981 | LIBS="-ltslib $LIBS" | ||
28982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28983 | /* end confdefs.h. */ | ||
28984 | |||
28985 | /* Override any GCC internal prototype to avoid an error. | ||
28986 | Use char because int might match the return type of a GCC | ||
28987 | builtin and then its argument prototype would still apply. */ | ||
28988 | #ifdef __cplusplus | ||
28989 | extern "C" | ||
28990 | #endif | ||
28991 | char ts_open (); | ||
28992 | int | ||
28993 | main () | ||
28994 | { | ||
28995 | return ts_open (); | ||
28996 | ; | ||
28997 | return 0; | ||
28998 | } | ||
28999 | _ACEOF | ||
29000 | if ac_fn_c_try_link "$LINENO"; then : | ||
29001 | ac_cv_lib_tslib_ts_open=yes | ||
29002 | else | ||
29003 | ac_cv_lib_tslib_ts_open=no | ||
29004 | fi | ||
29005 | rm -f core conftest.err conftest.$ac_objext \ | ||
29006 | conftest$ac_exeext conftest.$ac_ext | ||
29007 | LIBS=$ac_check_lib_save_LIBS | ||
29008 | fi | ||
29009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tslib_ts_open" >&5 | ||
29010 | $as_echo "$ac_cv_lib_tslib_ts_open" >&6; } | ||
29011 | if test "x$ac_cv_lib_tslib_ts_open" = x""yes; then : | ||
29012 | |||
29013 | TSLIB_LIBS="-ltslib" | ||
29014 | TSLIB_CFLAGS="" | ||
29015 | |||
29016 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29017 | |||
29018 | _ecore_have_tslib="yes" | ||
29019 | |||
29020 | else | ||
29021 | |||
29022 | _ecore_have_tslib="no" | ||
29023 | |||
29024 | fi | ||
29025 | |||
29026 | |||
29027 | fi | ||
29028 | |||
29029 | |||
29030 | fi | ||
29031 | |||
29032 | |||
29033 | |||
29034 | elif test $pkg_failed = untried; then | ||
29035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29036 | $as_echo "no" >&6; } | ||
29037 | |||
29038 | ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default" | ||
29039 | if test "x$ac_cv_header_tslib_h" = x""yes; then : | ||
29040 | |||
29041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | ||
29042 | $as_echo_n "checking for ts_open in -lts... " >&6; } | ||
29043 | if test "${ac_cv_lib_ts_ts_open+set}" = set; then : | ||
29044 | $as_echo_n "(cached) " >&6 | ||
29045 | else | ||
29046 | ac_check_lib_save_LIBS=$LIBS | ||
29047 | LIBS="-lts $LIBS" | ||
29048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29049 | /* end confdefs.h. */ | ||
29050 | |||
29051 | /* Override any GCC internal prototype to avoid an error. | ||
29052 | Use char because int might match the return type of a GCC | ||
29053 | builtin and then its argument prototype would still apply. */ | ||
29054 | #ifdef __cplusplus | ||
29055 | extern "C" | ||
29056 | #endif | ||
29057 | char ts_open (); | ||
29058 | int | ||
29059 | main () | ||
29060 | { | ||
29061 | return ts_open (); | ||
29062 | ; | ||
29063 | return 0; | ||
29064 | } | ||
29065 | _ACEOF | ||
29066 | if ac_fn_c_try_link "$LINENO"; then : | ||
29067 | ac_cv_lib_ts_ts_open=yes | ||
29068 | else | ||
29069 | ac_cv_lib_ts_ts_open=no | ||
29070 | fi | ||
29071 | rm -f core conftest.err conftest.$ac_objext \ | ||
29072 | conftest$ac_exeext conftest.$ac_ext | ||
29073 | LIBS=$ac_check_lib_save_LIBS | ||
29074 | fi | ||
29075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | ||
29076 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | ||
29077 | if test "x$ac_cv_lib_ts_ts_open" = x""yes; then : | ||
29078 | |||
29079 | TSLIB_LIBS="-lts" | ||
29080 | TSLIB_CFLAGS="" | ||
29081 | |||
29082 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29083 | |||
29084 | _ecore_have_tslib="yes" | ||
29085 | |||
29086 | else | ||
29087 | |||
29088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -ltslib" >&5 | ||
29089 | $as_echo_n "checking for ts_open in -ltslib... " >&6; } | ||
29090 | if test "${ac_cv_lib_tslib_ts_open+set}" = set; then : | ||
29091 | $as_echo_n "(cached) " >&6 | ||
29092 | else | ||
29093 | ac_check_lib_save_LIBS=$LIBS | ||
29094 | LIBS="-ltslib $LIBS" | ||
29095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29096 | /* end confdefs.h. */ | ||
29097 | |||
29098 | /* Override any GCC internal prototype to avoid an error. | ||
29099 | Use char because int might match the return type of a GCC | ||
29100 | builtin and then its argument prototype would still apply. */ | ||
29101 | #ifdef __cplusplus | ||
29102 | extern "C" | ||
29103 | #endif | ||
29104 | char ts_open (); | ||
29105 | int | ||
29106 | main () | ||
29107 | { | ||
29108 | return ts_open (); | ||
29109 | ; | ||
29110 | return 0; | ||
29111 | } | ||
29112 | _ACEOF | ||
29113 | if ac_fn_c_try_link "$LINENO"; then : | ||
29114 | ac_cv_lib_tslib_ts_open=yes | ||
29115 | else | ||
29116 | ac_cv_lib_tslib_ts_open=no | ||
29117 | fi | ||
29118 | rm -f core conftest.err conftest.$ac_objext \ | ||
29119 | conftest$ac_exeext conftest.$ac_ext | ||
29120 | LIBS=$ac_check_lib_save_LIBS | ||
29121 | fi | ||
29122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tslib_ts_open" >&5 | ||
29123 | $as_echo "$ac_cv_lib_tslib_ts_open" >&6; } | ||
29124 | if test "x$ac_cv_lib_tslib_ts_open" = x""yes; then : | ||
29125 | |||
29126 | TSLIB_LIBS="-ltslib" | ||
29127 | TSLIB_CFLAGS="" | ||
29128 | |||
29129 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29130 | |||
29131 | _ecore_have_tslib="yes" | ||
29132 | |||
29133 | else | ||
29134 | |||
29135 | _ecore_have_tslib="no" | ||
29136 | |||
29137 | fi | ||
29138 | |||
29139 | |||
29140 | fi | ||
29141 | |||
29142 | |||
29143 | fi | ||
29144 | |||
29145 | |||
29146 | |||
29147 | else | ||
29148 | TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS | ||
29149 | TSLIB_LIBS=$pkg_cv_TSLIB_LIBS | ||
29150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29151 | $as_echo "yes" >&6; } | ||
29152 | |||
29153 | |||
29154 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29155 | |||
29156 | _ecore_have_tslib="yes" | ||
29157 | _tslib_requirement="tslib" | ||
29158 | |||
29159 | fi | ||
29160 | |||
29161 | else | ||
29162 | TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS | ||
29163 | TSLIB_LIBS=$pkg_cv_TSLIB_LIBS | ||
29164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29165 | $as_echo "yes" >&6; } | ||
29166 | |||
29167 | |||
29168 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29169 | |||
29170 | _ecore_have_tslib="yes" | ||
29171 | _tslib_requirement="tslib-1.0" | ||
29172 | |||
29173 | fi | ||
29174 | fi | ||
29175 | |||
29176 | |||
29177 | |||
29178 | |||
29179 | if test "x$_ecore_have_tslib" = "xyes" ; then | ||
29180 | |||
29181 | have_tslib="yes" | ||
29182 | requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}" | ||
29183 | |||
29184 | else | ||
29185 | have_tslib="no" | ||
29186 | fi | ||
29187 | |||
29188 | fi | ||
29189 | |||
29190 | # ecore_directfb | ||
29191 | |||
29192 | |||
29193 | |||
29194 | have_ecore_directfb=no | ||
29195 | ecore_directfb_cflags= | ||
29196 | ecore_directfb_libs= | ||
29197 | want_module=${want_ecore_directfb} | ||
29198 | |||
29199 | # Check whether --enable-ecore-directfb was given. | ||
29200 | if test "${enable_ecore_directfb+set}" = set; then : | ||
29201 | enableval=$enable_ecore_directfb; | ||
29202 | if test "x${enableval}" = "xyes" ; then | ||
29203 | want_module="yes" | ||
29204 | else | ||
29205 | want_module="no" | ||
29206 | fi | ||
29207 | |||
29208 | fi | ||
29209 | |||
29210 | |||
29211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_DirectFB module is to be built" >&5 | ||
29212 | $as_echo_n "checking whether Ecore_DirectFB module is to be built... " >&6; } | ||
29213 | |||
29214 | if test "x${want_module}" = "xyes" ; then | ||
29215 | if test "x${have_directfb}" = "x" || test "x${have_directfb}" = "xyes" ; then | ||
29216 | |||
29217 | $as_echo "#define BUILD_ECORE_DIRECTFB 1" >>confdefs.h | ||
29218 | |||
29219 | have_ecore_directfb="yes" | ||
29220 | ecore_directfb_libs="-lecore_directfb" | ||
29221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29222 | $as_echo "yes" >&6; } | ||
29223 | else | ||
29224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
29225 | $as_echo "no (dependency failed)" >&6; } | ||
29226 | fi | ||
29227 | else | ||
29228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29229 | $as_echo "no" >&6; } | ||
29230 | fi | ||
29231 | |||
29232 | if test "x$have_ecore_directfb" = "xyes"; then | ||
29233 | BUILD_ECORE_DIRECTFB_TRUE= | ||
29234 | BUILD_ECORE_DIRECTFB_FALSE='#' | ||
29235 | else | ||
29236 | BUILD_ECORE_DIRECTFB_TRUE='#' | ||
29237 | BUILD_ECORE_DIRECTFB_FALSE= | ||
29238 | fi | ||
29239 | |||
29240 | |||
29241 | if test "x$have_ecore_directfb" = "xyes"; then : | ||
29242 | requirements_ecore_directfb="directfb ${requirements_ecore_directfb}" | ||
29243 | fi | ||
29244 | |||
29245 | |||
29246 | |||
29247 | |||
29248 | |||
29249 | |||
29250 | |||
29251 | |||
29252 | # ecore_wince | ||
29253 | |||
29254 | |||
29255 | |||
29256 | have_ecore_wince=no | ||
29257 | ecore_wince_cflags= | ||
29258 | ecore_wince_libs= | ||
29259 | want_module=${want_ecore_wince} | ||
29260 | |||
29261 | # Check whether --enable-ecore-wince was given. | ||
29262 | if test "${enable_ecore_wince+set}" = set; then : | ||
29263 | enableval=$enable_ecore_wince; | ||
29264 | if test "x${enableval}" = "xyes" ; then | ||
29265 | want_module="yes" | ||
29266 | else | ||
29267 | want_module="no" | ||
29268 | fi | ||
29269 | |||
29270 | fi | ||
29271 | |||
29272 | |||
29273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_WinCE module is to be built" >&5 | ||
29274 | $as_echo_n "checking whether Ecore_WinCE module is to be built... " >&6; } | ||
29275 | |||
29276 | if test "x${want_module}" = "xyes" ; then | ||
29277 | if test "x${have_ecore_input}" = "x" || test "x${have_ecore_input}" = "xyes" ; then | ||
29278 | |||
29279 | $as_echo "#define BUILD_ECORE_WINCE 1" >>confdefs.h | ||
29280 | |||
29281 | have_ecore_wince="yes" | ||
29282 | ecore_wince_libs="-lecore_wince" | ||
29283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29284 | $as_echo "yes" >&6; } | ||
29285 | else | ||
29286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
29287 | $as_echo "no (dependency failed)" >&6; } | ||
29288 | fi | ||
29289 | else | ||
29290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29291 | $as_echo "no" >&6; } | ||
29292 | fi | ||
29293 | |||
29294 | if test "x$have_ecore_wince" = "xyes"; then | ||
29295 | BUILD_ECORE_WINCE_TRUE= | ||
29296 | BUILD_ECORE_WINCE_FALSE='#' | ||
29297 | else | ||
29298 | BUILD_ECORE_WINCE_TRUE='#' | ||
29299 | BUILD_ECORE_WINCE_FALSE= | ||
29300 | fi | ||
29301 | |||
29302 | |||
29303 | if test "x$have_ecore_wince" = "xyes"; then : | ||
29304 | requirements_ecore_win32="ecore-input >= 1.1.0 ${requirements_ecore_win32}" | ||
29305 | fi | ||
29306 | |||
29307 | |||
29308 | |||
29309 | |||
29310 | |||
29311 | |||
29312 | |||
29313 | |||
29314 | ## Ecore Evas | ||
29315 | |||
29316 | # ecore_evas | ||
29317 | |||
29318 | ecore_evas_deps="no" | ||
29319 | if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then | ||
29320 | ecore_evas_deps="yes" | ||
29321 | fi | ||
29322 | |||
29323 | |||
29324 | |||
29325 | have_ecore_evas=no | ||
29326 | ecore_evas_cflags= | ||
29327 | ecore_evas_libs= | ||
29328 | want_module=${want_ecore_evas} | ||
29329 | |||
29330 | # Check whether --enable-ecore-evas was given. | ||
29331 | if test "${enable_ecore_evas+set}" = set; then : | ||
29332 | enableval=$enable_ecore_evas; | ||
29333 | if test "x${enableval}" = "xyes" ; then | ||
29334 | want_module="yes" | ||
29335 | else | ||
29336 | want_module="no" | ||
29337 | fi | ||
29338 | |||
29339 | fi | ||
29340 | |||
29341 | |||
29342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Evas module is to be built" >&5 | ||
29343 | $as_echo_n "checking whether Ecore_Evas module is to be built... " >&6; } | ||
29344 | |||
29345 | if test "x${want_module}" = "xyes" ; then | ||
29346 | if test "x${ecore_evas_deps}" = "x" || test "x${ecore_evas_deps}" = "xyes" ; then | ||
29347 | |||
29348 | $as_echo "#define BUILD_ECORE_EVAS 1" >>confdefs.h | ||
29349 | |||
29350 | have_ecore_evas="yes" | ||
29351 | ecore_evas_libs="-lecore_evas" | ||
29352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29353 | $as_echo "yes" >&6; } | ||
29354 | else | ||
29355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
29356 | $as_echo "no (dependency failed)" >&6; } | ||
29357 | fi | ||
29358 | else | ||
29359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29360 | $as_echo "no" >&6; } | ||
29361 | fi | ||
29362 | |||
29363 | if test "x$have_ecore_evas" = "xyes"; then | ||
29364 | BUILD_ECORE_EVAS_TRUE= | ||
29365 | BUILD_ECORE_EVAS_FALSE='#' | ||
29366 | else | ||
29367 | BUILD_ECORE_EVAS_TRUE='#' | ||
29368 | BUILD_ECORE_EVAS_FALSE= | ||
29369 | fi | ||
29370 | |||
29371 | |||
29372 | if test "x$have_ecore_evas" = "xyes"; then : | ||
29373 | requirements_ecore_evas="ecore-input >= 1.1.0 ecore-input-evas >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_evas}" | ||
29374 | fi | ||
29375 | |||
29376 | |||
29377 | |||
29378 | |||
29379 | |||
29380 | |||
29381 | |||
29382 | |||
29383 | # ecore_evas_buffer | ||
29384 | |||
29385 | |||
29386 | |||
29387 | have_ecore_evas_software_buffer="no" | ||
29388 | want_module="${want_ecore_evas_software_buffer}" | ||
29389 | |||
29390 | # Check whether --enable-ecore-evas-software-buffer was given. | ||
29391 | if test "${enable_ecore_evas_software_buffer+set}" = set; then : | ||
29392 | enableval=$enable_ecore_evas_software_buffer; | ||
29393 | if test "x${enableval}" = "xyes" ; then | ||
29394 | want_module="yes" | ||
29395 | else | ||
29396 | want_module="no" | ||
29397 | fi | ||
29398 | |||
29399 | fi | ||
29400 | |||
29401 | |||
29402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software Buffer support is to be built" >&5 | ||
29403 | $as_echo_n "checking whether ecore_evas Software Buffer support is to be built... " >&6; } | ||
29404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29405 | $as_echo "${want_module}" >&6; } | ||
29406 | |||
29407 | if test "xyes" = "xyes" -a \ | ||
29408 | "x$have_ecore_evas" = "xyes" -a \ | ||
29409 | "x$want_module" = "xyes" ; then | ||
29410 | if test -n "$PKG_CONFIG" && \ | ||
29411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-buffer\""; } >&5 | ||
29412 | ($PKG_CONFIG --exists --print-errors "evas-software-buffer") 2>&5 | ||
29413 | ac_status=$? | ||
29414 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29415 | test $ac_status = 0; }; then | ||
29416 | |||
29417 | |||
29418 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_BUFFER 1" >>confdefs.h | ||
29419 | |||
29420 | have_ecore_evas_software_buffer="yes" | ||
29421 | |||
29422 | fi | ||
29423 | fi | ||
29424 | |||
29425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software Buffer support is built" >&5 | ||
29426 | $as_echo_n "checking whether ecore_evas Software Buffer support is built... " >&6; } | ||
29427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_buffer" >&5 | ||
29428 | $as_echo "$have_ecore_evas_software_buffer" >&6; } | ||
29429 | |||
29430 | if test "x$have_ecore_evas_software_buffer" = "xyes"; then : | ||
29431 | |||
29432 | fi | ||
29433 | |||
29434 | |||
29435 | |||
29436 | |||
29437 | |||
29438 | # ecore_evas_x11 | ||
29439 | |||
29440 | # ecore_evas_software_x11 | ||
29441 | |||
29442 | |||
29443 | |||
29444 | have_ecore_evas_software_x11="no" | ||
29445 | want_module="${want_ecore_evas_software_x11}" | ||
29446 | |||
29447 | # Check whether --enable-ecore-evas-software-x11 was given. | ||
29448 | if test "${enable_ecore_evas_software_x11+set}" = set; then : | ||
29449 | enableval=$enable_ecore_evas_software_x11; | ||
29450 | if test "x${enableval}" = "xyes" ; then | ||
29451 | want_module="yes" | ||
29452 | else | ||
29453 | want_module="no" | ||
29454 | fi | ||
29455 | |||
29456 | fi | ||
29457 | |||
29458 | |||
29459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software X11 support is to be built" >&5 | ||
29460 | $as_echo_n "checking whether ecore_evas Software X11 support is to be built... " >&6; } | ||
29461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29462 | $as_echo "${want_module}" >&6; } | ||
29463 | |||
29464 | if test "x${have_ecore_x}" = "xyes" -a \ | ||
29465 | "x$have_ecore_evas" = "xyes" -a \ | ||
29466 | "x$want_module" = "xyes" ; then | ||
29467 | if test -n "$PKG_CONFIG" && \ | ||
29468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-x11\""; } >&5 | ||
29469 | ($PKG_CONFIG --exists --print-errors "evas-software-x11") 2>&5 | ||
29470 | ac_status=$? | ||
29471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29472 | test $ac_status = 0; }; then | ||
29473 | |||
29474 | |||
29475 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_X11 1" >>confdefs.h | ||
29476 | |||
29477 | have_ecore_evas_software_x11="yes" | ||
29478 | |||
29479 | fi | ||
29480 | fi | ||
29481 | |||
29482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software X11 support is built" >&5 | ||
29483 | $as_echo_n "checking whether ecore_evas Software X11 support is built... " >&6; } | ||
29484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_x11" >&5 | ||
29485 | $as_echo "$have_ecore_evas_software_x11" >&6; } | ||
29486 | |||
29487 | if test "x$have_ecore_evas_software_x11" = "xyes"; then : | ||
29488 | |||
29489 | fi | ||
29490 | |||
29491 | |||
29492 | |||
29493 | |||
29494 | |||
29495 | have_ecore_evas_software_xlib="no" | ||
29496 | have_ecore_evas_software_xcb="no" | ||
29497 | if test "x$have_ecore_evas_software_x11" = "xyes" ; then | ||
29498 | have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11` | ||
29499 | if test "x${have_ecore_evas_software_xlib}" = "xstatic"; then | ||
29500 | have_ecore_evas_software_xlib="yes" | ||
29501 | fi | ||
29502 | if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then | ||
29503 | |||
29504 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_XLIB 1" >>confdefs.h | ||
29505 | |||
29506 | fi | ||
29507 | have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11` | ||
29508 | if test "x$have_ecore_evas_software_xcb" = "xstatic"; then | ||
29509 | have_ecore_evas_software_xcb="yes" | ||
29510 | fi | ||
29511 | if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then | ||
29512 | |||
29513 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_XCB 1" >>confdefs.h | ||
29514 | |||
29515 | fi | ||
29516 | fi | ||
29517 | |||
29518 | # ecore_evas_opengl_x11 | ||
29519 | |||
29520 | |||
29521 | |||
29522 | have_ecore_evas_opengl_x11="no" | ||
29523 | want_module="${want_ecore_evas_opengl_x11}" | ||
29524 | |||
29525 | # Check whether --enable-ecore-evas-opengl-x11 was given. | ||
29526 | if test "${enable_ecore_evas_opengl_x11+set}" = set; then : | ||
29527 | enableval=$enable_ecore_evas_opengl_x11; | ||
29528 | if test "x${enableval}" = "xyes" ; then | ||
29529 | want_module="yes" | ||
29530 | else | ||
29531 | want_module="no" | ||
29532 | fi | ||
29533 | |||
29534 | fi | ||
29535 | |||
29536 | |||
29537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL Xlib support is to be built" >&5 | ||
29538 | $as_echo_n "checking whether ecore_evas OpenGL Xlib support is to be built... " >&6; } | ||
29539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29540 | $as_echo "${want_module}" >&6; } | ||
29541 | |||
29542 | if test "x${have_ecore_x}" = "xyes" -a \ | ||
29543 | "x$have_ecore_evas" = "xyes" -a \ | ||
29544 | "x$want_module" = "xyes" ; then | ||
29545 | if test -n "$PKG_CONFIG" && \ | ||
29546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-opengl-x11\""; } >&5 | ||
29547 | ($PKG_CONFIG --exists --print-errors "evas-opengl-x11") 2>&5 | ||
29548 | ac_status=$? | ||
29549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29550 | test $ac_status = 0; }; then | ||
29551 | |||
29552 | |||
29553 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_X11 1" >>confdefs.h | ||
29554 | |||
29555 | have_ecore_evas_opengl_x11="yes" | ||
29556 | |||
29557 | fi | ||
29558 | fi | ||
29559 | |||
29560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL Xlib support is built" >&5 | ||
29561 | $as_echo_n "checking whether ecore_evas OpenGL Xlib support is built... " >&6; } | ||
29562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_opengl_x11" >&5 | ||
29563 | $as_echo "$have_ecore_evas_opengl_x11" >&6; } | ||
29564 | |||
29565 | if test "x$have_ecore_evas_opengl_x11" = "xyes"; then : | ||
29566 | |||
29567 | fi | ||
29568 | |||
29569 | |||
29570 | |||
29571 | |||
29572 | |||
29573 | have_ecore_evas_opengl_xlib="no" | ||
29574 | have_ecore_evas_opengl_xcb="no" | ||
29575 | if test "x${have_ecore_evas_opengl_x11}" = "xyes" -o "x${have_ecore_evas_opengl_x11}" = "xstatic" ; then | ||
29576 | have_ecore_evas_opengl_xlib=`${PKG_CONFIG} --variable=Xlib evas-opengl-x11` | ||
29577 | if test "x${have_ecore_evas_opengl_xlib}" = "xyes" ; then | ||
29578 | |||
29579 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_XLIB 1" >>confdefs.h | ||
29580 | |||
29581 | fi | ||
29582 | |||
29583 | # opengl does not work with xcb (yet) | ||
29584 | have_ecore_evas_opengl_xcb=`${PKG_CONFIG} --variable=XCB evas-opengl-x11` | ||
29585 | if test "x${have_ecore_evas_opengl_xcb}" = "xstatic"; then | ||
29586 | have_ecore_evas_opengl_xcb="yes" | ||
29587 | fi | ||
29588 | if test "x${have_ecore_evas_opengl_xcb}" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then | ||
29589 | |||
29590 | pkg_failed=no | ||
29591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_X11" >&5 | ||
29592 | $as_echo_n "checking for XCB_X11... " >&6; } | ||
29593 | |||
29594 | if test -n "$XCB_X11_CFLAGS"; then | ||
29595 | pkg_cv_XCB_X11_CFLAGS="$XCB_X11_CFLAGS" | ||
29596 | elif test -n "$PKG_CONFIG"; then | ||
29597 | if test -n "$PKG_CONFIG" && \ | ||
29598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb\""; } >&5 | ||
29599 | ($PKG_CONFIG --exists --print-errors "x11-xcb") 2>&5 | ||
29600 | ac_status=$? | ||
29601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29602 | test $ac_status = 0; }; then | ||
29603 | pkg_cv_XCB_X11_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb" 2>/dev/null` | ||
29604 | else | ||
29605 | pkg_failed=yes | ||
29606 | fi | ||
29607 | else | ||
29608 | pkg_failed=untried | ||
29609 | fi | ||
29610 | if test -n "$XCB_X11_LIBS"; then | ||
29611 | pkg_cv_XCB_X11_LIBS="$XCB_X11_LIBS" | ||
29612 | elif test -n "$PKG_CONFIG"; then | ||
29613 | if test -n "$PKG_CONFIG" && \ | ||
29614 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb\""; } >&5 | ||
29615 | ($PKG_CONFIG --exists --print-errors "x11-xcb") 2>&5 | ||
29616 | ac_status=$? | ||
29617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29618 | test $ac_status = 0; }; then | ||
29619 | pkg_cv_XCB_X11_LIBS=`$PKG_CONFIG --libs "x11-xcb" 2>/dev/null` | ||
29620 | else | ||
29621 | pkg_failed=yes | ||
29622 | fi | ||
29623 | else | ||
29624 | pkg_failed=untried | ||
29625 | fi | ||
29626 | |||
29627 | |||
29628 | |||
29629 | if test $pkg_failed = yes; then | ||
29630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29631 | $as_echo "no" >&6; } | ||
29632 | |||
29633 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
29634 | _pkg_short_errors_supported=yes | ||
29635 | else | ||
29636 | _pkg_short_errors_supported=no | ||
29637 | fi | ||
29638 | if test $_pkg_short_errors_supported = yes; then | ||
29639 | XCB_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11-xcb" 2>&1` | ||
29640 | else | ||
29641 | XCB_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb" 2>&1` | ||
29642 | fi | ||
29643 | # Put the nasty error message in config.log where it belongs | ||
29644 | echo "$XCB_X11_PKG_ERRORS" >&5 | ||
29645 | |||
29646 | have_ecore_x_opengl_xcb="no" | ||
29647 | elif test $pkg_failed = untried; then | ||
29648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29649 | $as_echo "no" >&6; } | ||
29650 | have_ecore_x_opengl_xcb="no" | ||
29651 | else | ||
29652 | XCB_X11_CFLAGS=$pkg_cv_XCB_X11_CFLAGS | ||
29653 | XCB_X11_LIBS=$pkg_cv_XCB_X11_LIBS | ||
29654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29655 | $as_echo "yes" >&6; } | ||
29656 | have_ecore_x_opengl_xcb="yes" | ||
29657 | requirements_ecore_x="x11-xcb ${requirements_ecore_x}" | ||
29658 | |||
29659 | $as_echo "#define BUILD_ECORE_X_OPENGL_XCB 1" >>confdefs.h | ||
29660 | |||
29661 | |||
29662 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_XCB 1" >>confdefs.h | ||
29663 | |||
29664 | |||
29665 | fi | ||
29666 | else | ||
29667 | have_ecore_x_opengl_xcb="no" | ||
29668 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"XCB-based OpenGL explicitly disabled\"" >&5 | ||
29669 | $as_echo "$as_me: \"XCB-based OpenGL explicitly disabled\"" >&6;} | ||
29670 | fi | ||
29671 | fi | ||
29672 | |||
29673 | # ecore_evas_software_x11 16 bits | ||
29674 | |||
29675 | |||
29676 | |||
29677 | have_ecore_evas_software_16_x11="no" | ||
29678 | want_module="${want_ecore_evas_software_16_x11}" | ||
29679 | |||
29680 | # Check whether --enable-ecore-evas-software-16-x11 was given. | ||
29681 | if test "${enable_ecore_evas_software_16_x11+set}" = set; then : | ||
29682 | enableval=$enable_ecore_evas_software_16_x11; | ||
29683 | if test "x${enableval}" = "xyes" ; then | ||
29684 | want_module="yes" | ||
29685 | else | ||
29686 | want_module="no" | ||
29687 | fi | ||
29688 | |||
29689 | fi | ||
29690 | |||
29691 | |||
29692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software Xlib 16 bits support is to be built" >&5 | ||
29693 | $as_echo_n "checking whether ecore_evas Software Xlib 16 bits support is to be built... " >&6; } | ||
29694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29695 | $as_echo "${want_module}" >&6; } | ||
29696 | |||
29697 | if test "x${have_ecore_x_xlib}" = "xyes" -a \ | ||
29698 | "x$have_ecore_evas" = "xyes" -a \ | ||
29699 | "x$want_module" = "xyes" ; then | ||
29700 | if test -n "$PKG_CONFIG" && \ | ||
29701 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-16-x11\""; } >&5 | ||
29702 | ($PKG_CONFIG --exists --print-errors "evas-software-16-x11") 2>&5 | ||
29703 | ac_status=$? | ||
29704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29705 | test $ac_status = 0; }; then | ||
29706 | |||
29707 | |||
29708 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_16_X11 1" >>confdefs.h | ||
29709 | |||
29710 | have_ecore_evas_software_16_x11="yes" | ||
29711 | |||
29712 | fi | ||
29713 | fi | ||
29714 | |||
29715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software Xlib 16 bits support is built" >&5 | ||
29716 | $as_echo_n "checking whether ecore_evas Software Xlib 16 bits support is built... " >&6; } | ||
29717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_16_x11" >&5 | ||
29718 | $as_echo "$have_ecore_evas_software_16_x11" >&6; } | ||
29719 | |||
29720 | if test "x$have_ecore_evas_software_16_x11" = "xyes"; then : | ||
29721 | |||
29722 | fi | ||
29723 | |||
29724 | |||
29725 | |||
29726 | |||
29727 | |||
29728 | |||
29729 | |||
29730 | have_ecore_evas_software_8_x11="no" | ||
29731 | want_module="$want_ecore_evas_software_8_x11" | ||
29732 | |||
29733 | # Check whether --enable-ecore-evas-software-8-x11 was given. | ||
29734 | if test "${enable_ecore_evas_software_8_x11+set}" = set; then : | ||
29735 | enableval=$enable_ecore_evas_software_8_x11; | ||
29736 | if test "x${enableval}" = "xyes" ; then | ||
29737 | want_module="yes" | ||
29738 | else | ||
29739 | want_module="no" | ||
29740 | fi | ||
29741 | |||
29742 | fi | ||
29743 | |||
29744 | |||
29745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software 8bit X11 support is to be built" >&5 | ||
29746 | $as_echo_n "checking whether ecore_evas Software 8bit X11 support is to be built... " >&6; } | ||
29747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29748 | $as_echo "${want_module}" >&6; } | ||
29749 | |||
29750 | if test "x$have_ecore_x_xcb" = "xyes" -a \ | ||
29751 | "x$have_ecore_evas" = "xyes" -a \ | ||
29752 | "x$want_module" = "xyes" ; then | ||
29753 | if test -n "$PKG_CONFIG" && \ | ||
29754 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-8-x11\""; } >&5 | ||
29755 | ($PKG_CONFIG --exists --print-errors "evas-software-8-x11") 2>&5 | ||
29756 | ac_status=$? | ||
29757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29758 | test $ac_status = 0; }; then | ||
29759 | |||
29760 | |||
29761 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_8_X11 1" >>confdefs.h | ||
29762 | |||
29763 | have_ecore_evas_software_8_x11="yes" | ||
29764 | |||
29765 | fi | ||
29766 | fi | ||
29767 | |||
29768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software 8bit X11 support is built" >&5 | ||
29769 | $as_echo_n "checking whether ecore_evas Software 8bit X11 support is built... " >&6; } | ||
29770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_8_x11" >&5 | ||
29771 | $as_echo "$have_ecore_evas_software_8_x11" >&6; } | ||
29772 | |||
29773 | if test "x$have_ecore_evas_software_8_x11" = "xyes"; then : | ||
29774 | |||
29775 | fi | ||
29776 | |||
29777 | |||
29778 | |||
29779 | |||
29780 | |||
29781 | |||
29782 | if test "x$have_ecore_evas_software_x11" = "xyes" -o \ | ||
29783 | "x$have_ecore_evas_opengl_x11" = "xyes" -o \ | ||
29784 | "x$have_ecore_evas_software_8_x11" = "xyes" -o \ | ||
29785 | "x$have_ecore_evas_software_16_x11" = "xyes" -o \ | ||
29786 | "x$have_ecore_evas_software_xcb" = "xyes"; then | ||
29787 | |||
29788 | $as_echo "#define BUILD_ECORE_EVAS_X11 1" >>confdefs.h | ||
29789 | |||
29790 | requirements_ecore_evas="ecore-x >= 1.1.0 ${requirements_ecore_evas}" | ||
29791 | fi | ||
29792 | |||
29793 | # ecore_evas_win32 | ||
29794 | |||
29795 | |||
29796 | |||
29797 | have_ecore_evas_software_gdi="no" | ||
29798 | want_module="${want_ecore_evas_software_gdi}" | ||
29799 | |||
29800 | # Check whether --enable-ecore-evas-software-gdi was given. | ||
29801 | if test "${enable_ecore_evas_software_gdi+set}" = set; then : | ||
29802 | enableval=$enable_ecore_evas_software_gdi; | ||
29803 | if test "x${enableval}" = "xyes" ; then | ||
29804 | want_module="yes" | ||
29805 | else | ||
29806 | want_module="no" | ||
29807 | fi | ||
29808 | |||
29809 | fi | ||
29810 | |||
29811 | |||
29812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software GDI support is to be built" >&5 | ||
29813 | $as_echo_n "checking whether ecore_evas Software GDI support is to be built... " >&6; } | ||
29814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29815 | $as_echo "${want_module}" >&6; } | ||
29816 | |||
29817 | if test "x${have_ecore_win32}" = "xyes" -a \ | ||
29818 | "x$have_ecore_evas" = "xyes" -a \ | ||
29819 | "x$want_module" = "xyes" ; then | ||
29820 | if test -n "$PKG_CONFIG" && \ | ||
29821 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-gdi\""; } >&5 | ||
29822 | ($PKG_CONFIG --exists --print-errors "evas-software-gdi") 2>&5 | ||
29823 | ac_status=$? | ||
29824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29825 | test $ac_status = 0; }; then | ||
29826 | |||
29827 | |||
29828 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_GDI 1" >>confdefs.h | ||
29829 | |||
29830 | have_ecore_evas_software_gdi="yes" | ||
29831 | |||
29832 | fi | ||
29833 | fi | ||
29834 | |||
29835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software GDI support is built" >&5 | ||
29836 | $as_echo_n "checking whether ecore_evas Software GDI support is built... " >&6; } | ||
29837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_gdi" >&5 | ||
29838 | $as_echo "$have_ecore_evas_software_gdi" >&6; } | ||
29839 | |||
29840 | if test "x$have_ecore_evas_software_gdi" = "xyes"; then : | ||
29841 | |||
29842 | fi | ||
29843 | |||
29844 | |||
29845 | |||
29846 | |||
29847 | |||
29848 | |||
29849 | |||
29850 | have_ecore_evas_software_ddraw="no" | ||
29851 | want_module="${want_ecore_evas_software_ddraw}" | ||
29852 | |||
29853 | # Check whether --enable-ecore-evas-software-ddraw was given. | ||
29854 | if test "${enable_ecore_evas_software_ddraw+set}" = set; then : | ||
29855 | enableval=$enable_ecore_evas_software_ddraw; | ||
29856 | if test "x${enableval}" = "xyes" ; then | ||
29857 | want_module="yes" | ||
29858 | else | ||
29859 | want_module="no" | ||
29860 | fi | ||
29861 | |||
29862 | fi | ||
29863 | |||
29864 | |||
29865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software DirectDraw support is to be built" >&5 | ||
29866 | $as_echo_n "checking whether ecore_evas Software DirectDraw support is to be built... " >&6; } | ||
29867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29868 | $as_echo "${want_module}" >&6; } | ||
29869 | |||
29870 | if test "x${have_ecore_win32}" = "xyes" -a \ | ||
29871 | "x$have_ecore_evas" = "xyes" -a \ | ||
29872 | "x$want_module" = "xyes" ; then | ||
29873 | if test -n "$PKG_CONFIG" && \ | ||
29874 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-ddraw\""; } >&5 | ||
29875 | ($PKG_CONFIG --exists --print-errors "evas-software-ddraw") 2>&5 | ||
29876 | ac_status=$? | ||
29877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29878 | test $ac_status = 0; }; then | ||
29879 | |||
29880 | |||
29881 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_DDRAW 1" >>confdefs.h | ||
29882 | |||
29883 | have_ecore_evas_software_ddraw="yes" | ||
29884 | |||
29885 | fi | ||
29886 | fi | ||
29887 | |||
29888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software DirectDraw support is built" >&5 | ||
29889 | $as_echo_n "checking whether ecore_evas Software DirectDraw support is built... " >&6; } | ||
29890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_ddraw" >&5 | ||
29891 | $as_echo "$have_ecore_evas_software_ddraw" >&6; } | ||
29892 | |||
29893 | if test "x$have_ecore_evas_software_ddraw" = "xyes"; then : | ||
29894 | |||
29895 | fi | ||
29896 | |||
29897 | |||
29898 | |||
29899 | |||
29900 | |||
29901 | |||
29902 | |||
29903 | have_ecore_evas_direct3d="no" | ||
29904 | want_module="${want_ecore_evas_direct3d}" | ||
29905 | |||
29906 | # Check whether --enable-ecore-evas-direct3d was given. | ||
29907 | if test "${enable_ecore_evas_direct3d+set}" = set; then : | ||
29908 | enableval=$enable_ecore_evas_direct3d; | ||
29909 | if test "x${enableval}" = "xyes" ; then | ||
29910 | want_module="yes" | ||
29911 | else | ||
29912 | want_module="no" | ||
29913 | fi | ||
29914 | |||
29915 | fi | ||
29916 | |||
29917 | |||
29918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Direct3d support is to be built" >&5 | ||
29919 | $as_echo_n "checking whether ecore_evas Direct3d support is to be built... " >&6; } | ||
29920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29921 | $as_echo "${want_module}" >&6; } | ||
29922 | |||
29923 | if test "x${have_ecore_win32}" = "xyes" -a \ | ||
29924 | "x$have_ecore_evas" = "xyes" -a \ | ||
29925 | "x$want_module" = "xyes" ; then | ||
29926 | if test -n "$PKG_CONFIG" && \ | ||
29927 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-direct3d\""; } >&5 | ||
29928 | ($PKG_CONFIG --exists --print-errors "evas-direct3d") 2>&5 | ||
29929 | ac_status=$? | ||
29930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29931 | test $ac_status = 0; }; then | ||
29932 | |||
29933 | |||
29934 | $as_echo "#define BUILD_ECORE_EVAS_DIRECT3D 1" >>confdefs.h | ||
29935 | |||
29936 | have_ecore_evas_direct3d="yes" | ||
29937 | |||
29938 | fi | ||
29939 | fi | ||
29940 | |||
29941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Direct3d support is built" >&5 | ||
29942 | $as_echo_n "checking whether ecore_evas Direct3d support is built... " >&6; } | ||
29943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_direct3d" >&5 | ||
29944 | $as_echo "$have_ecore_evas_direct3d" >&6; } | ||
29945 | |||
29946 | if test "x$have_ecore_evas_direct3d" = "xyes"; then : | ||
29947 | |||
29948 | fi | ||
29949 | |||
29950 | |||
29951 | |||
29952 | |||
29953 | |||
29954 | |||
29955 | |||
29956 | have_ecore_evas_opengl_glew="no" | ||
29957 | want_module="${want_ecore_evas_opengl_glew}" | ||
29958 | |||
29959 | # Check whether --enable-ecore-evas-opengl-glew was given. | ||
29960 | if test "${enable_ecore_evas_opengl_glew+set}" = set; then : | ||
29961 | enableval=$enable_ecore_evas_opengl_glew; | ||
29962 | if test "x${enableval}" = "xyes" ; then | ||
29963 | want_module="yes" | ||
29964 | else | ||
29965 | want_module="no" | ||
29966 | fi | ||
29967 | |||
29968 | fi | ||
29969 | |||
29970 | |||
29971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Glew OpenGL support is to be built" >&5 | ||
29972 | $as_echo_n "checking whether ecore_evas Glew OpenGL support is to be built... " >&6; } | ||
29973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29974 | $as_echo "${want_module}" >&6; } | ||
29975 | |||
29976 | if test "x${have_ecore_win32}" = "xyes" -a \ | ||
29977 | "x$have_ecore_evas" = "xyes" -a \ | ||
29978 | "x$want_module" = "xyes" ; then | ||
29979 | if test -n "$PKG_CONFIG" && \ | ||
29980 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-opengl-glew\""; } >&5 | ||
29981 | ($PKG_CONFIG --exists --print-errors "evas-opengl-glew") 2>&5 | ||
29982 | ac_status=$? | ||
29983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29984 | test $ac_status = 0; }; then | ||
29985 | |||
29986 | |||
29987 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_GLEW 1" >>confdefs.h | ||
29988 | |||
29989 | have_ecore_evas_opengl_glew="yes" | ||
29990 | |||
29991 | fi | ||
29992 | fi | ||
29993 | |||
29994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Glew OpenGL support is built" >&5 | ||
29995 | $as_echo_n "checking whether ecore_evas Glew OpenGL support is built... " >&6; } | ||
29996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_opengl_glew" >&5 | ||
29997 | $as_echo "$have_ecore_evas_opengl_glew" >&6; } | ||
29998 | |||
29999 | if test "x$have_ecore_evas_opengl_glew" = "xyes"; then : | ||
30000 | |||
30001 | fi | ||
30002 | |||
30003 | |||
30004 | |||
30005 | |||
30006 | |||
30007 | |||
30008 | |||
30009 | have_ecore_evas_software_16_ddraw="no" | ||
30010 | want_module="${want_ecore_evas_software_16_ddraw}" | ||
30011 | |||
30012 | # Check whether --enable-ecore-evas-software-16-ddraw was given. | ||
30013 | if test "${enable_ecore_evas_software_16_ddraw+set}" = set; then : | ||
30014 | enableval=$enable_ecore_evas_software_16_ddraw; | ||
30015 | if test "x${enableval}" = "xyes" ; then | ||
30016 | want_module="yes" | ||
30017 | else | ||
30018 | want_module="no" | ||
30019 | fi | ||
30020 | |||
30021 | fi | ||
30022 | |||
30023 | |||
30024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas 16 bpp Software DirectDraw support is to be built" >&5 | ||
30025 | $as_echo_n "checking whether ecore_evas 16 bpp Software DirectDraw support is to be built... " >&6; } | ||
30026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30027 | $as_echo "${want_module}" >&6; } | ||
30028 | |||
30029 | if test "x${have_ecore_win32}" = "xyes" -a \ | ||
30030 | "x$have_ecore_evas" = "xyes" -a \ | ||
30031 | "x$want_module" = "xyes" ; then | ||
30032 | if test -n "$PKG_CONFIG" && \ | ||
30033 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-16-ddraw\""; } >&5 | ||
30034 | ($PKG_CONFIG --exists --print-errors "evas-software-16-ddraw") 2>&5 | ||
30035 | ac_status=$? | ||
30036 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30037 | test $ac_status = 0; }; then | ||
30038 | |||
30039 | |||
30040 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_16_DDRAW 1" >>confdefs.h | ||
30041 | |||
30042 | have_ecore_evas_software_16_ddraw="yes" | ||
30043 | |||
30044 | fi | ||
30045 | fi | ||
30046 | |||
30047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas 16 bpp Software DirectDraw support is built" >&5 | ||
30048 | $as_echo_n "checking whether ecore_evas 16 bpp Software DirectDraw support is built... " >&6; } | ||
30049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_16_ddraw" >&5 | ||
30050 | $as_echo "$have_ecore_evas_software_16_ddraw" >&6; } | ||
30051 | |||
30052 | if test "x$have_ecore_evas_software_16_ddraw" = "xyes"; then : | ||
30053 | |||
30054 | fi | ||
30055 | |||
30056 | |||
30057 | |||
30058 | |||
30059 | |||
30060 | if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \ | ||
30061 | "x${have_ecore_evas_software_ddraw}" = "xyes" -o \ | ||
30062 | "x${have_ecore_evas_direct3d}" = "xyes" -o \ | ||
30063 | "x${have_ecore_evas_opengl_glew}" = "xyes" -o \ | ||
30064 | "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then | ||
30065 | |||
30066 | $as_echo "#define BUILD_ECORE_EVAS_WIN32 1" >>confdefs.h | ||
30067 | |||
30068 | requirements_ecore_evas="ecore-win32 >= 1.1.0 ${requirements_ecore_evas}" | ||
30069 | fi | ||
30070 | |||
30071 | # ecore_evas_software_sdl | ||
30072 | |||
30073 | |||
30074 | |||
30075 | have_ecore_evas_software_sdl="no" | ||
30076 | want_module="${want_ecore_evas_software_sdl}" | ||
30077 | |||
30078 | # Check whether --enable-ecore-evas-software-sdl was given. | ||
30079 | if test "${enable_ecore_evas_software_sdl+set}" = set; then : | ||
30080 | enableval=$enable_ecore_evas_software_sdl; | ||
30081 | if test "x${enableval}" = "xyes" ; then | ||
30082 | want_module="yes" | ||
30083 | else | ||
30084 | want_module="no" | ||
30085 | fi | ||
30086 | |||
30087 | fi | ||
30088 | |||
30089 | |||
30090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software SDL support is to be built" >&5 | ||
30091 | $as_echo_n "checking whether ecore_evas Software SDL support is to be built... " >&6; } | ||
30092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30093 | $as_echo "${want_module}" >&6; } | ||
30094 | |||
30095 | if test "x${have_ecore_sdl}" = "xyes" -a \ | ||
30096 | "x$have_ecore_evas" = "xyes" -a \ | ||
30097 | "x$want_module" = "xyes" ; then | ||
30098 | if test -n "$PKG_CONFIG" && \ | ||
30099 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-sdl\""; } >&5 | ||
30100 | ($PKG_CONFIG --exists --print-errors "evas-software-sdl") 2>&5 | ||
30101 | ac_status=$? | ||
30102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30103 | test $ac_status = 0; }; then | ||
30104 | |||
30105 | |||
30106 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_SDL 1" >>confdefs.h | ||
30107 | |||
30108 | have_ecore_evas_software_sdl="yes" | ||
30109 | |||
30110 | fi | ||
30111 | fi | ||
30112 | |||
30113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software SDL support is built" >&5 | ||
30114 | $as_echo_n "checking whether ecore_evas Software SDL support is built... " >&6; } | ||
30115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_sdl" >&5 | ||
30116 | $as_echo "$have_ecore_evas_software_sdl" >&6; } | ||
30117 | |||
30118 | if test "x$have_ecore_evas_software_sdl" = "xyes"; then : | ||
30119 | requirements_ecore_evas="ecore-sdl >= 1.1.0 ${requirements_ecore_evas}" | ||
30120 | fi | ||
30121 | |||
30122 | |||
30123 | |||
30124 | |||
30125 | |||
30126 | # ecore_evas_gl_sdl | ||
30127 | |||
30128 | |||
30129 | |||
30130 | have_ecore_evas_opengl_sdl="no" | ||
30131 | want_module="${want_ecore_evas_gl_sdl}" | ||
30132 | |||
30133 | # Check whether --enable-ecore-evas-opengl-sdl was given. | ||
30134 | if test "${enable_ecore_evas_opengl_sdl+set}" = set; then : | ||
30135 | enableval=$enable_ecore_evas_opengl_sdl; | ||
30136 | if test "x${enableval}" = "xyes" ; then | ||
30137 | want_module="yes" | ||
30138 | else | ||
30139 | want_module="no" | ||
30140 | fi | ||
30141 | |||
30142 | fi | ||
30143 | |||
30144 | |||
30145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL SDL support is to be built" >&5 | ||
30146 | $as_echo_n "checking whether ecore_evas OpenGL SDL support is to be built... " >&6; } | ||
30147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30148 | $as_echo "${want_module}" >&6; } | ||
30149 | |||
30150 | if test "x${have_ecore_sdl}" = "xyes" -a \ | ||
30151 | "x$have_ecore_evas" = "xyes" -a \ | ||
30152 | "x$want_module" = "xyes" ; then | ||
30153 | if test -n "$PKG_CONFIG" && \ | ||
30154 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-opengl-sdl\""; } >&5 | ||
30155 | ($PKG_CONFIG --exists --print-errors "evas-opengl-sdl") 2>&5 | ||
30156 | ac_status=$? | ||
30157 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30158 | test $ac_status = 0; }; then | ||
30159 | |||
30160 | |||
30161 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_SDL 1" >>confdefs.h | ||
30162 | |||
30163 | have_ecore_evas_opengl_sdl="yes" | ||
30164 | |||
30165 | fi | ||
30166 | fi | ||
30167 | |||
30168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL SDL support is built" >&5 | ||
30169 | $as_echo_n "checking whether ecore_evas OpenGL SDL support is built... " >&6; } | ||
30170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_opengl_sdl" >&5 | ||
30171 | $as_echo "$have_ecore_evas_opengl_sdl" >&6; } | ||
30172 | |||
30173 | if test "x$have_ecore_evas_opengl_sdl" = "xyes"; then : | ||
30174 | requirements_ecore_evas="ecore-sdl >= 1.1.0 ${requirements_ecore_evas}" | ||
30175 | fi | ||
30176 | |||
30177 | |||
30178 | |||
30179 | |||
30180 | |||
30181 | # ecore_evas_cocoa | ||
30182 | |||
30183 | |||
30184 | |||
30185 | have_ecore_evas_opengl_cocoa="no" | ||
30186 | want_module="${want_ecore_evas_gl_cocoa}" | ||
30187 | |||
30188 | # Check whether --enable-ecore-evas-opengl-cocoa was given. | ||
30189 | if test "${enable_ecore_evas_opengl_cocoa+set}" = set; then : | ||
30190 | enableval=$enable_ecore_evas_opengl_cocoa; | ||
30191 | if test "x${enableval}" = "xyes" ; then | ||
30192 | want_module="yes" | ||
30193 | else | ||
30194 | want_module="no" | ||
30195 | fi | ||
30196 | |||
30197 | fi | ||
30198 | |||
30199 | |||
30200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL Cocoa support is to be built" >&5 | ||
30201 | $as_echo_n "checking whether ecore_evas OpenGL Cocoa support is to be built... " >&6; } | ||
30202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30203 | $as_echo "${want_module}" >&6; } | ||
30204 | |||
30205 | if test "x${have_ecore_cocoa}" = "xyes" -a \ | ||
30206 | "x$have_ecore_evas" = "xyes" -a \ | ||
30207 | "x$want_module" = "xyes" ; then | ||
30208 | if test -n "$PKG_CONFIG" && \ | ||
30209 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-opengl-cocoa\""; } >&5 | ||
30210 | ($PKG_CONFIG --exists --print-errors "evas-opengl-cocoa") 2>&5 | ||
30211 | ac_status=$? | ||
30212 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30213 | test $ac_status = 0; }; then | ||
30214 | |||
30215 | |||
30216 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_COCOA 1" >>confdefs.h | ||
30217 | |||
30218 | have_ecore_evas_opengl_cocoa="yes" | ||
30219 | |||
30220 | fi | ||
30221 | fi | ||
30222 | |||
30223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL Cocoa support is built" >&5 | ||
30224 | $as_echo_n "checking whether ecore_evas OpenGL Cocoa support is built... " >&6; } | ||
30225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_opengl_cocoa" >&5 | ||
30226 | $as_echo "$have_ecore_evas_opengl_cocoa" >&6; } | ||
30227 | |||
30228 | if test "x$have_ecore_evas_opengl_cocoa" = "xyes"; then : | ||
30229 | requirements_ecore_evas="ecore-cocoa >= 1.1.0 ${requirements_ecore_evas}" | ||
30230 | fi | ||
30231 | |||
30232 | |||
30233 | |||
30234 | |||
30235 | |||
30236 | # ecore_evas_directfb | ||
30237 | |||
30238 | |||
30239 | |||
30240 | have_ecore_evas_directfb="no" | ||
30241 | want_module="${want_ecore_evas_directfb}" | ||
30242 | |||
30243 | # Check whether --enable-ecore-evas-directfb was given. | ||
30244 | if test "${enable_ecore_evas_directfb+set}" = set; then : | ||
30245 | enableval=$enable_ecore_evas_directfb; | ||
30246 | if test "x${enableval}" = "xyes" ; then | ||
30247 | want_module="yes" | ||
30248 | else | ||
30249 | want_module="no" | ||
30250 | fi | ||
30251 | |||
30252 | fi | ||
30253 | |||
30254 | |||
30255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas DirectFB support is to be built" >&5 | ||
30256 | $as_echo_n "checking whether ecore_evas DirectFB support is to be built... " >&6; } | ||
30257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30258 | $as_echo "${want_module}" >&6; } | ||
30259 | |||
30260 | if test "x${have_ecore_directfb}" = "xyes" -a \ | ||
30261 | "x$have_ecore_evas" = "xyes" -a \ | ||
30262 | "x$want_module" = "xyes" ; then | ||
30263 | if test -n "$PKG_CONFIG" && \ | ||
30264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-directfb\""; } >&5 | ||
30265 | ($PKG_CONFIG --exists --print-errors "evas-directfb") 2>&5 | ||
30266 | ac_status=$? | ||
30267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30268 | test $ac_status = 0; }; then | ||
30269 | |||
30270 | |||
30271 | $as_echo "#define BUILD_ECORE_EVAS_DIRECTFB 1" >>confdefs.h | ||
30272 | |||
30273 | have_ecore_evas_directfb="yes" | ||
30274 | |||
30275 | fi | ||
30276 | fi | ||
30277 | |||
30278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas DirectFB support is built" >&5 | ||
30279 | $as_echo_n "checking whether ecore_evas DirectFB support is built... " >&6; } | ||
30280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_directfb" >&5 | ||
30281 | $as_echo "$have_ecore_evas_directfb" >&6; } | ||
30282 | |||
30283 | if test "x$have_ecore_evas_directfb" = "xyes"; then : | ||
30284 | requirements_ecore_evas="ecore-directfb >= 1.1.0 ${requirements_ecore_evas}" | ||
30285 | fi | ||
30286 | |||
30287 | |||
30288 | |||
30289 | |||
30290 | |||
30291 | # ecore_evas_fb | ||
30292 | |||
30293 | |||
30294 | |||
30295 | have_ecore_evas_fb="no" | ||
30296 | want_module="${want_ecore_evas_fb}" | ||
30297 | |||
30298 | # Check whether --enable-ecore-evas-fb was given. | ||
30299 | if test "${enable_ecore_evas_fb+set}" = set; then : | ||
30300 | enableval=$enable_ecore_evas_fb; | ||
30301 | if test "x${enableval}" = "xyes" ; then | ||
30302 | want_module="yes" | ||
30303 | else | ||
30304 | want_module="no" | ||
30305 | fi | ||
30306 | |||
30307 | fi | ||
30308 | |||
30309 | |||
30310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Linux Framebuffer support is to be built" >&5 | ||
30311 | $as_echo_n "checking whether ecore_evas Linux Framebuffer support is to be built... " >&6; } | ||
30312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30313 | $as_echo "${want_module}" >&6; } | ||
30314 | |||
30315 | if test "x${have_ecore_fb}" = "xyes" -a \ | ||
30316 | "x$have_ecore_evas" = "xyes" -a \ | ||
30317 | "x$want_module" = "xyes" ; then | ||
30318 | if test -n "$PKG_CONFIG" && \ | ||
30319 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-fb\""; } >&5 | ||
30320 | ($PKG_CONFIG --exists --print-errors "evas-fb") 2>&5 | ||
30321 | ac_status=$? | ||
30322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30323 | test $ac_status = 0; }; then | ||
30324 | |||
30325 | |||
30326 | $as_echo "#define BUILD_ECORE_EVAS_FB 1" >>confdefs.h | ||
30327 | |||
30328 | have_ecore_evas_fb="yes" | ||
30329 | |||
30330 | fi | ||
30331 | fi | ||
30332 | |||
30333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Linux Framebuffer support is built" >&5 | ||
30334 | $as_echo_n "checking whether ecore_evas Linux Framebuffer support is built... " >&6; } | ||
30335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_fb" >&5 | ||
30336 | $as_echo "$have_ecore_evas_fb" >&6; } | ||
30337 | |||
30338 | if test "x$have_ecore_evas_fb" = "xyes"; then : | ||
30339 | requirements_ecore_evas="ecore-fb >= 1.1.0 ${requirements_ecore_evas}" | ||
30340 | fi | ||
30341 | |||
30342 | |||
30343 | |||
30344 | |||
30345 | |||
30346 | # ecore_evas_wince | ||
30347 | |||
30348 | |||
30349 | |||
30350 | have_ecore_evas_software_16_wince="no" | ||
30351 | want_module="${want_ecore_evas_software_16_wince}" | ||
30352 | |||
30353 | # Check whether --enable-ecore-evas-software-16-wince was given. | ||
30354 | if test "${enable_ecore_evas_software_16_wince+set}" = set; then : | ||
30355 | enableval=$enable_ecore_evas_software_16_wince; | ||
30356 | if test "x${enableval}" = "xyes" ; then | ||
30357 | want_module="yes" | ||
30358 | else | ||
30359 | want_module="no" | ||
30360 | fi | ||
30361 | |||
30362 | fi | ||
30363 | |||
30364 | |||
30365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas 16 bpp Software Windows CE support is to be built" >&5 | ||
30366 | $as_echo_n "checking whether ecore_evas 16 bpp Software Windows CE support is to be built... " >&6; } | ||
30367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30368 | $as_echo "${want_module}" >&6; } | ||
30369 | |||
30370 | if test "x${have_ecore_wince}" = "xyes" -a \ | ||
30371 | "x$have_ecore_evas" = "xyes" -a \ | ||
30372 | "x$want_module" = "xyes" ; then | ||
30373 | if test -n "$PKG_CONFIG" && \ | ||
30374 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-16-wince\""; } >&5 | ||
30375 | ($PKG_CONFIG --exists --print-errors "evas-software-16-wince") 2>&5 | ||
30376 | ac_status=$? | ||
30377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30378 | test $ac_status = 0; }; then | ||
30379 | |||
30380 | |||
30381 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_16_WINCE 1" >>confdefs.h | ||
30382 | |||
30383 | have_ecore_evas_software_16_wince="yes" | ||
30384 | |||
30385 | fi | ||
30386 | fi | ||
30387 | |||
30388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas 16 bpp Software Windows CE support is built" >&5 | ||
30389 | $as_echo_n "checking whether ecore_evas 16 bpp Software Windows CE support is built... " >&6; } | ||
30390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_16_wince" >&5 | ||
30391 | $as_echo "$have_ecore_evas_software_16_wince" >&6; } | ||
30392 | |||
30393 | if test "x$have_ecore_evas_software_16_wince" = "xyes"; then : | ||
30394 | requirements_ecore_evas="ecore-wince >= 1.1.0 ${requirements_ecore_evas}" | ||
30395 | fi | ||
30396 | |||
30397 | |||
30398 | |||
30399 | |||
30400 | |||
30401 | # ecore_evas_ews | ||
30402 | |||
30403 | |||
30404 | |||
30405 | have_ecore_evas_ews="no" | ||
30406 | want_module="${want_ecore_evas_ews}" | ||
30407 | |||
30408 | # Check whether --enable-ecore-evas-ews was given. | ||
30409 | if test "${enable_ecore_evas_ews+set}" = set; then : | ||
30410 | enableval=$enable_ecore_evas_ews; | ||
30411 | if test "x${enableval}" = "xyes" ; then | ||
30412 | want_module="yes" | ||
30413 | else | ||
30414 | want_module="no" | ||
30415 | fi | ||
30416 | |||
30417 | fi | ||
30418 | |||
30419 | |||
30420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Ecore Evas Single Process Windowing System support is to be built" >&5 | ||
30421 | $as_echo_n "checking whether ecore_evas Ecore Evas Single Process Windowing System support is to be built... " >&6; } | ||
30422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30423 | $as_echo "${want_module}" >&6; } | ||
30424 | |||
30425 | if test "xyes" = "xyes" -a \ | ||
30426 | "x$have_ecore_evas" = "xyes" -a \ | ||
30427 | "x$want_module" = "xyes" ; then | ||
30428 | if test -n "$PKG_CONFIG" && \ | ||
30429 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-buffer\""; } >&5 | ||
30430 | ($PKG_CONFIG --exists --print-errors "evas-software-buffer") 2>&5 | ||
30431 | ac_status=$? | ||
30432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30433 | test $ac_status = 0; }; then | ||
30434 | |||
30435 | |||
30436 | $as_echo "#define BUILD_ECORE_EVAS_EWS 1" >>confdefs.h | ||
30437 | |||
30438 | have_ecore_evas_ews="yes" | ||
30439 | |||
30440 | fi | ||
30441 | fi | ||
30442 | |||
30443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Ecore Evas Single Process Windowing System support is built" >&5 | ||
30444 | $as_echo_n "checking whether ecore_evas Ecore Evas Single Process Windowing System support is built... " >&6; } | ||
30445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_ews" >&5 | ||
30446 | $as_echo "$have_ecore_evas_ews" >&6; } | ||
30447 | |||
30448 | if test "x$have_ecore_evas_ews" = "xyes"; then : | ||
30449 | |||
30450 | fi | ||
30451 | |||
30452 | |||
30453 | |||
30454 | |||
30455 | |||
30456 | # ecore_evas_psl1ght | ||
30457 | |||
30458 | |||
30459 | |||
30460 | have_ecore_evas_psl1ght="no" | ||
30461 | want_module="${want_ecore_evas_psl1ght}" | ||
30462 | |||
30463 | # Check whether --enable-ecore-evas-psl1ght was given. | ||
30464 | if test "${enable_ecore_evas_psl1ght+set}" = set; then : | ||
30465 | enableval=$enable_ecore_evas_psl1ght; | ||
30466 | if test "x${enableval}" = "xyes" ; then | ||
30467 | want_module="yes" | ||
30468 | else | ||
30469 | want_module="no" | ||
30470 | fi | ||
30471 | |||
30472 | fi | ||
30473 | |||
30474 | |||
30475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas PSL1GHT support is to be built" >&5 | ||
30476 | $as_echo_n "checking whether ecore_evas PSL1GHT support is to be built... " >&6; } | ||
30477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30478 | $as_echo "${want_module}" >&6; } | ||
30479 | |||
30480 | if test "x${have_ecore_psl1ght}" = "xyes" -a \ | ||
30481 | "x$have_ecore_evas" = "xyes" -a \ | ||
30482 | "x$want_module" = "xyes" ; then | ||
30483 | if test -n "$PKG_CONFIG" && \ | ||
30484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-psl1ght\""; } >&5 | ||
30485 | ($PKG_CONFIG --exists --print-errors "evas-psl1ght") 2>&5 | ||
30486 | ac_status=$? | ||
30487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30488 | test $ac_status = 0; }; then | ||
30489 | |||
30490 | |||
30491 | $as_echo "#define BUILD_ECORE_EVAS_PSL1GHT 1" >>confdefs.h | ||
30492 | |||
30493 | have_ecore_evas_psl1ght="yes" | ||
30494 | |||
30495 | fi | ||
30496 | fi | ||
30497 | |||
30498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas PSL1GHT support is built" >&5 | ||
30499 | $as_echo_n "checking whether ecore_evas PSL1GHT support is built... " >&6; } | ||
30500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_psl1ght" >&5 | ||
30501 | $as_echo "$have_ecore_evas_psl1ght" >&6; } | ||
30502 | |||
30503 | if test "x$have_ecore_evas_psl1ght" = "xyes"; then : | ||
30504 | requirements_ecore_evas="ecore-psl1ght >= 1.1.0 ${requirements_ecore_evas}" | ||
30505 | fi | ||
30506 | |||
30507 | |||
30508 | |||
30509 | |||
30510 | |||
30511 | ### install and build examples | ||
30512 | |||
30513 | |||
30514 | |||
30515 | |||
30516 | # Check whether --enable-build-examples was given. | ||
30517 | if test "${enable_build_examples+set}" = set; then : | ||
30518 | enableval=$enable_build_examples; | ||
30519 | if test "x${enableval}" = "xyes" ; then | ||
30520 | _efl_enable_build_examples="yes" | ||
30521 | else | ||
30522 | _efl_enable_build_examples="no" | ||
30523 | fi | ||
30524 | |||
30525 | else | ||
30526 | _efl_enable_build_examples="no" | ||
30527 | fi | ||
30528 | |||
30529 | |||
30530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples are built" >&5 | ||
30531 | $as_echo_n "checking whether examples are built... " >&6; } | ||
30532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_build_examples}" >&5 | ||
30533 | $as_echo "${_efl_enable_build_examples}" >&6; } | ||
30534 | |||
30535 | if test "x${_efl_enable_build_examples}" = "xyes"; then | ||
30536 | EFL_BUILD_EXAMPLES_TRUE= | ||
30537 | EFL_BUILD_EXAMPLES_FALSE='#' | ||
30538 | else | ||
30539 | EFL_BUILD_EXAMPLES_TRUE='#' | ||
30540 | EFL_BUILD_EXAMPLES_FALSE= | ||
30541 | fi | ||
30542 | |||
30543 | |||
30544 | if test "x$_efl_enable_build_examples" = "xyes"; then : | ||
30545 | enable_build_examples="yes" | ||
30546 | else | ||
30547 | enable_build_examples="no" | ||
30548 | fi | ||
30549 | |||
30550 | |||
30551 | |||
30552 | |||
30553 | # Check whether --enable-install-examples was given. | ||
30554 | if test "${enable_install_examples+set}" = set; then : | ||
30555 | enableval=$enable_install_examples; | ||
30556 | if test "x${enableval}" = "xyes" ; then | ||
30557 | _efl_enable_install_examples="yes" | ||
30558 | else | ||
30559 | _efl_enable_install_examples="no" | ||
30560 | fi | ||
30561 | |||
30562 | else | ||
30563 | _efl_enable_install_examples="no" | ||
30564 | fi | ||
30565 | |||
30566 | |||
30567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples are installed" >&5 | ||
30568 | $as_echo_n "checking whether examples are installed... " >&6; } | ||
30569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_install_examples}" >&5 | ||
30570 | $as_echo "${_efl_enable_install_examples}" >&6; } | ||
30571 | |||
30572 | if test "x${_efl_enable_install_examples}" = "xyes"; then | ||
30573 | EFL_INSTALL_EXAMPLES_TRUE= | ||
30574 | EFL_INSTALL_EXAMPLES_FALSE='#' | ||
30575 | else | ||
30576 | EFL_INSTALL_EXAMPLES_TRUE='#' | ||
30577 | EFL_INSTALL_EXAMPLES_FALSE= | ||
30578 | fi | ||
30579 | |||
30580 | |||
30581 | if test "x$_efl_enable_install_examples" = "xyes"; then : | ||
30582 | enable_install_examples="yes" | ||
30583 | else | ||
30584 | enable_install_examples="no" | ||
30585 | fi | ||
30586 | |||
30587 | |||
30588 | ### requirements | ||
30589 | |||
30590 | |||
30591 | |||
30592 | #AC_SUBST(requirements_ecore_config) | ||
30593 | |||
30594 | |||
30595 | |||
30596 | |||
30597 | |||
30598 | |||
30599 | |||
30600 | |||
30601 | |||
30602 | |||
30603 | |||
30604 | |||
30605 | |||
30606 | |||
30607 | |||
30608 | |||
30609 | |||
30610 | ac_config_files="$ac_config_files Makefile ecore-con.pc ecore-config.pc ecore-directfb.pc ecore-evas.pc ecore-fb.pc ecore-file.pc ecore-imf.pc ecore-imf-evas.pc ecore-ipc.pc ecore-x.pc ecore-input.pc ecore-input-evas.pc ecore-win32.pc ecore-sdl.pc ecore-cocoa.pc ecore-psl1ght.pc ecore-wince.pc ecore.pc doc/ecore.dox doc/Makefile doc/Doxyfile src/Makefile src/util/Makefile src/bin/Makefile src/lib/Makefile src/lib/ecore/Makefile src/lib/ecore_con/Makefile src/lib/ecore_config/Makefile src/lib/ecore_directfb/Makefile src/lib/ecore_evas/Makefile src/lib/ecore_fb/Makefile src/lib/ecore_file/Makefile src/lib/ecore_cocoa/Makefile src/lib/ecore_sdl/Makefile src/lib/ecore_psl1ght/Makefile src/lib/ecore_imf/Makefile src/lib/ecore_imf_evas/Makefile src/lib/ecore_input/Makefile src/lib/ecore_input_evas/Makefile src/lib/ecore_ipc/Makefile src/lib/ecore_win32/Makefile src/lib/ecore_wince/Makefile src/lib/ecore_x/Makefile src/lib/ecore_x/xlib/Makefile src/lib/ecore_x/xcb/Makefile src/examples/Makefile src/tests/Makefile src/modules/Makefile src/modules/immodules/Makefile src/modules/immodules/xim/Makefile ecore.spec $po_makefile_in" | ||
30611 | |||
30612 | |||
30613 | cat >confcache <<\_ACEOF | ||
30614 | # This file is a shell script that caches the results of configure | ||
30615 | # tests run on this system so they can be shared between configure | ||
30616 | # scripts and configure runs, see configure's option --config-cache. | ||
30617 | # It is not useful on other systems. If it contains results you don't | ||
30618 | # want to keep, you may remove or edit it. | ||
30619 | # | ||
30620 | # config.status only pays attention to the cache file if you give it | ||
30621 | # the --recheck option to rerun configure. | ||
30622 | # | ||
30623 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
30624 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
30625 | # following values. | ||
30626 | |||
30627 | _ACEOF | ||
30628 | |||
30629 | # The following way of writing the cache mishandles newlines in values, | ||
30630 | # but we know of no workaround that is simple, portable, and efficient. | ||
30631 | # So, we kill variables containing newlines. | ||
30632 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
30633 | # and sets the high bit in the cache file unless we assign to the vars. | ||
30634 | ( | ||
30635 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
30636 | eval ac_val=\$$ac_var | ||
30637 | case $ac_val in #( | ||
30638 | *${as_nl}*) | ||
30639 | case $ac_var in #( | ||
30640 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
30641 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
30642 | esac | ||
30643 | case $ac_var in #( | ||
30644 | _ | IFS | as_nl) ;; #( | ||
30645 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
30646 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
30647 | esac ;; | ||
30648 | esac | ||
30649 | done | ||
30650 | |||
30651 | (set) 2>&1 | | ||
30652 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
30653 | *${as_nl}ac_space=\ *) | ||
30654 | # `set' does not quote correctly, so add quotes: double-quote | ||
30655 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
30656 | sed -n \ | ||
30657 | "s/'/'\\\\''/g; | ||
30658 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
30659 | ;; #( | ||
30660 | *) | ||
30661 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
30662 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
30663 | ;; | ||
30664 | esac | | ||
30665 | sort | ||
30666 | ) | | ||
30667 | sed ' | ||
30668 | /^ac_cv_env_/b end | ||
30669 | t clear | ||
30670 | :clear | ||
30671 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
30672 | t end | ||
30673 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
30674 | :end' >>confcache | ||
30675 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
30676 | if test -w "$cache_file"; then | ||
30677 | test "x$cache_file" != "x/dev/null" && | ||
30678 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
30679 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
30680 | cat confcache >$cache_file | ||
30681 | else | ||
30682 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
30683 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
30684 | fi | ||
30685 | fi | ||
30686 | rm -f confcache | ||
30687 | |||
30688 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
30689 | # Let make expand exec_prefix. | ||
30690 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
30691 | |||
30692 | DEFS=-DHAVE_CONFIG_H | ||
30693 | |||
30694 | ac_libobjs= | ||
30695 | ac_ltlibobjs= | ||
30696 | U= | ||
30697 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
30698 | # 1. Remove the extension, and $U if already installed. | ||
30699 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
30700 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
30701 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
30702 | # will be set to the directory where LIBOBJS objects are built. | ||
30703 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
30704 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
30705 | done | ||
30706 | LIBOBJS=$ac_libobjs | ||
30707 | |||
30708 | LTLIBOBJS=$ac_ltlibobjs | ||
30709 | |||
30710 | |||
30711 | if test -n "$EXEEXT"; then | ||
30712 | am__EXEEXT_TRUE= | ||
30713 | am__EXEEXT_FALSE='#' | ||
30714 | else | ||
30715 | am__EXEEXT_TRUE='#' | ||
30716 | am__EXEEXT_FALSE= | ||
30717 | fi | ||
30718 | |||
30719 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
30720 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
30721 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30722 | fi | ||
30723 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
30724 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
30725 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30726 | fi | ||
30727 | if test -z "${HAVE_PO_TRUE}" && test -z "${HAVE_PO_FALSE}"; then | ||
30728 | as_fn_error $? "conditional \"HAVE_PO\" was never defined. | ||
30729 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30730 | fi | ||
30731 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
30732 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
30733 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30734 | fi | ||
30735 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
30736 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
30737 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30738 | fi | ||
30739 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
30740 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
30741 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30742 | fi | ||
30743 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
30744 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
30745 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30746 | fi | ||
30747 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
30748 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
30749 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30750 | fi | ||
30751 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
30752 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
30753 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30754 | fi | ||
30755 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
30756 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
30757 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30758 | fi | ||
30759 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
30760 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
30761 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30762 | fi | ||
30763 | if test -z "${ECORE_HAVE_WINCE_TRUE}" && test -z "${ECORE_HAVE_WINCE_FALSE}"; then | ||
30764 | as_fn_error $? "conditional \"ECORE_HAVE_WINCE\" was never defined. | ||
30765 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30766 | fi | ||
30767 | if test -z "${ECORE_HAVE_WIN32_TRUE}" && test -z "${ECORE_HAVE_WIN32_FALSE}"; then | ||
30768 | as_fn_error $? "conditional \"ECORE_HAVE_WIN32\" was never defined. | ||
30769 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30770 | fi | ||
30771 | if test -z "${ECORE_HAVE_PS3_TRUE}" && test -z "${ECORE_HAVE_PS3_FALSE}"; then | ||
30772 | as_fn_error $? "conditional \"ECORE_HAVE_PS3\" was never defined. | ||
30773 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30774 | fi | ||
30775 | if test -z "${BUILD_ECORE_X_XLIB_TRUE}" && test -z "${BUILD_ECORE_X_XLIB_FALSE}"; then | ||
30776 | as_fn_error $? "conditional \"BUILD_ECORE_X_XLIB\" was never defined. | ||
30777 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30778 | fi | ||
30779 | if test -z "${BUILD_ECORE_X_XCB_TRUE}" && test -z "${BUILD_ECORE_X_XCB_FALSE}"; then | ||
30780 | as_fn_error $? "conditional \"BUILD_ECORE_X_XCB\" was never defined. | ||
30781 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30782 | fi | ||
30783 | |||
30784 | if test -z "${BUILD_ECORE_CON_TRUE}" && test -z "${BUILD_ECORE_CON_FALSE}"; then | ||
30785 | as_fn_error $? "conditional \"BUILD_ECORE_CON\" was never defined. | ||
30786 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30787 | fi | ||
30788 | if test -z "${HAVE_CARES_TRUE}" && test -z "${HAVE_CARES_FALSE}"; then | ||
30789 | as_fn_error $? "conditional \"HAVE_CARES\" was never defined. | ||
30790 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30791 | fi | ||
30792 | if test -z "${BUILD_ECORE_IPC_TRUE}" && test -z "${BUILD_ECORE_IPC_FALSE}"; then | ||
30793 | as_fn_error $? "conditional \"BUILD_ECORE_IPC\" was never defined. | ||
30794 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30795 | fi | ||
30796 | if test -z "${BUILD_ECORE_FILE_TRUE}" && test -z "${BUILD_ECORE_FILE_FALSE}"; then | ||
30797 | as_fn_error $? "conditional \"BUILD_ECORE_FILE\" was never defined. | ||
30798 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30799 | fi | ||
30800 | if test -z "${BUILD_ECORE_CONFIG_TRUE}" && test -z "${BUILD_ECORE_CONFIG_FALSE}"; then | ||
30801 | as_fn_error $? "conditional \"BUILD_ECORE_CONFIG\" was never defined. | ||
30802 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30803 | fi | ||
30804 | if test -z "${BUILD_ECORE_IMF_TRUE}" && test -z "${BUILD_ECORE_IMF_FALSE}"; then | ||
30805 | as_fn_error $? "conditional \"BUILD_ECORE_IMF\" was never defined. | ||
30806 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30807 | fi | ||
30808 | if test -z "${BUILD_ECORE_IMF_EVAS_TRUE}" && test -z "${BUILD_ECORE_IMF_EVAS_FALSE}"; then | ||
30809 | as_fn_error $? "conditional \"BUILD_ECORE_IMF_EVAS\" was never defined. | ||
30810 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30811 | fi | ||
30812 | if test -z "${BUILD_ECORE_INPUT_TRUE}" && test -z "${BUILD_ECORE_INPUT_FALSE}"; then | ||
30813 | as_fn_error $? "conditional \"BUILD_ECORE_INPUT\" was never defined. | ||
30814 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30815 | fi | ||
30816 | if test -z "${BUILD_ECORE_INPUT_EVAS_TRUE}" && test -z "${BUILD_ECORE_INPUT_EVAS_FALSE}"; then | ||
30817 | as_fn_error $? "conditional \"BUILD_ECORE_INPUT_EVAS\" was never defined. | ||
30818 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30819 | fi | ||
30820 | if test -z "${BUILD_ECORE_IMF_XIM_TRUE}" && test -z "${BUILD_ECORE_IMF_XIM_FALSE}"; then | ||
30821 | as_fn_error $? "conditional \"BUILD_ECORE_IMF_XIM\" was never defined. | ||
30822 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30823 | fi | ||
30824 | if test -z "${BUILD_ECORE_IMF_XIM_TRUE}" && test -z "${BUILD_ECORE_IMF_XIM_FALSE}"; then | ||
30825 | as_fn_error $? "conditional \"BUILD_ECORE_IMF_XIM\" was never defined. | ||
30826 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30827 | fi | ||
30828 | if test -z "${BUILD_ECORE_X_TRUE}" && test -z "${BUILD_ECORE_X_FALSE}"; then | ||
30829 | as_fn_error $? "conditional \"BUILD_ECORE_X\" was never defined. | ||
30830 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30831 | fi | ||
30832 | if test -z "${BUILD_ECORE_WIN32_TRUE}" && test -z "${BUILD_ECORE_WIN32_FALSE}"; then | ||
30833 | as_fn_error $? "conditional \"BUILD_ECORE_WIN32\" was never defined. | ||
30834 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30835 | fi | ||
30836 | if test -z "${BUILD_ECORE_COCOA_TRUE}" && test -z "${BUILD_ECORE_COCOA_FALSE}"; then | ||
30837 | as_fn_error $? "conditional \"BUILD_ECORE_COCOA\" was never defined. | ||
30838 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30839 | fi | ||
30840 | if test -z "${BUILD_ECORE_SDL_TRUE}" && test -z "${BUILD_ECORE_SDL_FALSE}"; then | ||
30841 | as_fn_error $? "conditional \"BUILD_ECORE_SDL\" was never defined. | ||
30842 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30843 | fi | ||
30844 | if test -z "${BUILD_ECORE_PSL1GHT_TRUE}" && test -z "${BUILD_ECORE_PSL1GHT_FALSE}"; then | ||
30845 | as_fn_error $? "conditional \"BUILD_ECORE_PSL1GHT\" was never defined. | ||
30846 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30847 | fi | ||
30848 | if test -z "${BUILD_ECORE_FB_TRUE}" && test -z "${BUILD_ECORE_FB_FALSE}"; then | ||
30849 | as_fn_error $? "conditional \"BUILD_ECORE_FB\" was never defined. | ||
30850 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30851 | fi | ||
30852 | if test -z "${BUILD_ECORE_DIRECTFB_TRUE}" && test -z "${BUILD_ECORE_DIRECTFB_FALSE}"; then | ||
30853 | as_fn_error $? "conditional \"BUILD_ECORE_DIRECTFB\" was never defined. | ||
30854 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30855 | fi | ||
30856 | if test -z "${BUILD_ECORE_WINCE_TRUE}" && test -z "${BUILD_ECORE_WINCE_FALSE}"; then | ||
30857 | as_fn_error $? "conditional \"BUILD_ECORE_WINCE\" was never defined. | ||
30858 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30859 | fi | ||
30860 | if test -z "${BUILD_ECORE_EVAS_TRUE}" && test -z "${BUILD_ECORE_EVAS_FALSE}"; then | ||
30861 | as_fn_error $? "conditional \"BUILD_ECORE_EVAS\" was never defined. | ||
30862 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30863 | fi | ||
30864 | if test -z "${EFL_BUILD_EXAMPLES_TRUE}" && test -z "${EFL_BUILD_EXAMPLES_FALSE}"; then | ||
30865 | as_fn_error $? "conditional \"EFL_BUILD_EXAMPLES\" was never defined. | ||
30866 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30867 | fi | ||
30868 | if test -z "${EFL_INSTALL_EXAMPLES_TRUE}" && test -z "${EFL_INSTALL_EXAMPLES_FALSE}"; then | ||
30869 | as_fn_error $? "conditional \"EFL_INSTALL_EXAMPLES\" was never defined. | ||
30870 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
30871 | fi | ||
30872 | |||
30873 | : ${CONFIG_STATUS=./config.status} | ||
30874 | ac_write_fail=0 | ||
30875 | ac_clean_files_save=$ac_clean_files | ||
30876 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
30877 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
30878 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
30879 | as_write_fail=0 | ||
30880 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
30881 | #! $SHELL | ||
30882 | # Generated by $as_me. | ||
30883 | # Run this file to recreate the current configuration. | ||
30884 | # Compiler output produced by configure, useful for debugging | ||
30885 | # configure, is in config.log if it exists. | ||
30886 | |||
30887 | debug=false | ||
30888 | ac_cs_recheck=false | ||
30889 | ac_cs_silent=false | ||
30890 | |||
30891 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
30892 | export SHELL | ||
30893 | _ASEOF | ||
30894 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
30895 | ## -------------------- ## | ||
30896 | ## M4sh Initialization. ## | ||
30897 | ## -------------------- ## | ||
30898 | |||
30899 | # Be more Bourne compatible | ||
30900 | DUALCASE=1; export DUALCASE # for MKS sh | ||
30901 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
30902 | emulate sh | ||
30903 | NULLCMD=: | ||
30904 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
30905 | # is contrary to our usage. Disable this feature. | ||
30906 | alias -g '${1+"$@"}'='"$@"' | ||
30907 | setopt NO_GLOB_SUBST | ||
30908 | else | ||
30909 | case `(set -o) 2>/dev/null` in #( | ||
30910 | *posix*) : | ||
30911 | set -o posix ;; #( | ||
30912 | *) : | ||
30913 | ;; | ||
30914 | esac | ||
30915 | fi | ||
30916 | |||
30917 | |||
30918 | as_nl=' | ||
30919 | ' | ||
30920 | export as_nl | ||
30921 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
30922 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
30923 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
30924 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
30925 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
30926 | # but without wasting forks for bash or zsh. | ||
30927 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
30928 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
30929 | as_echo='print -r --' | ||
30930 | as_echo_n='print -rn --' | ||
30931 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
30932 | as_echo='printf %s\n' | ||
30933 | as_echo_n='printf %s' | ||
30934 | else | ||
30935 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
30936 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
30937 | as_echo_n='/usr/ucb/echo -n' | ||
30938 | else | ||
30939 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
30940 | as_echo_n_body='eval | ||
30941 | arg=$1; | ||
30942 | case $arg in #( | ||
30943 | *"$as_nl"*) | ||
30944 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
30945 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
30946 | esac; | ||
30947 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
30948 | ' | ||
30949 | export as_echo_n_body | ||
30950 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
30951 | fi | ||
30952 | export as_echo_body | ||
30953 | as_echo='sh -c $as_echo_body as_echo' | ||
30954 | fi | ||
30955 | |||
30956 | # The user is always right. | ||
30957 | if test "${PATH_SEPARATOR+set}" != set; then | ||
30958 | PATH_SEPARATOR=: | ||
30959 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
30960 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
30961 | PATH_SEPARATOR=';' | ||
30962 | } | ||
30963 | fi | ||
30964 | |||
30965 | |||
30966 | # IFS | ||
30967 | # We need space, tab and new line, in precisely that order. Quoting is | ||
30968 | # there to prevent editors from complaining about space-tab. | ||
30969 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
30970 | # splitting by setting IFS to empty value.) | ||
30971 | IFS=" "" $as_nl" | ||
30972 | |||
30973 | # Find who we are. Look in the path if we contain no directory separator. | ||
30974 | case $0 in #(( | ||
30975 | *[\\/]* ) as_myself=$0 ;; | ||
30976 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
30977 | for as_dir in $PATH | ||
30978 | do | ||
30979 | IFS=$as_save_IFS | ||
30980 | test -z "$as_dir" && as_dir=. | ||
30981 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
30982 | done | ||
30983 | IFS=$as_save_IFS | ||
30984 | |||
30985 | ;; | ||
30986 | esac | ||
30987 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
30988 | # in which case we are not to be found in the path. | ||
30989 | if test "x$as_myself" = x; then | ||
30990 | as_myself=$0 | ||
30991 | fi | ||
30992 | if test ! -f "$as_myself"; then | ||
30993 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
30994 | exit 1 | ||
30995 | fi | ||
30996 | |||
30997 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
30998 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
30999 | # suppresses any "Segmentation fault" message there. '((' could | ||
31000 | # trigger a bug in pdksh 5.2.14. | ||
31001 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
31002 | do eval test x\${$as_var+set} = xset \ | ||
31003 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
31004 | done | ||
31005 | PS1='$ ' | ||
31006 | PS2='> ' | ||
31007 | PS4='+ ' | ||
31008 | |||
31009 | # NLS nuisances. | ||
31010 | LC_ALL=C | ||
31011 | export LC_ALL | ||
31012 | LANGUAGE=C | ||
31013 | export LANGUAGE | ||
31014 | |||
31015 | # CDPATH. | ||
31016 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
31017 | |||
31018 | |||
31019 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
31020 | # ---------------------------------------- | ||
31021 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
31022 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
31023 | # script with STATUS, using 1 if that was 0. | ||
31024 | as_fn_error () | ||
31025 | { | ||
31026 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
31027 | if test "$4"; then | ||
31028 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
31029 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
31030 | fi | ||
31031 | $as_echo "$as_me: error: $2" >&2 | ||
31032 | as_fn_exit $as_status | ||
31033 | } # as_fn_error | ||
31034 | |||
31035 | |||
31036 | # as_fn_set_status STATUS | ||
31037 | # ----------------------- | ||
31038 | # Set $? to STATUS, without forking. | ||
31039 | as_fn_set_status () | ||
31040 | { | ||
31041 | return $1 | ||
31042 | } # as_fn_set_status | ||
31043 | |||
31044 | # as_fn_exit STATUS | ||
31045 | # ----------------- | ||
31046 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
31047 | as_fn_exit () | ||
31048 | { | ||
31049 | set +e | ||
31050 | as_fn_set_status $1 | ||
31051 | exit $1 | ||
31052 | } # as_fn_exit | ||
31053 | |||
31054 | # as_fn_unset VAR | ||
31055 | # --------------- | ||
31056 | # Portably unset VAR. | ||
31057 | as_fn_unset () | ||
31058 | { | ||
31059 | { eval $1=; unset $1;} | ||
31060 | } | ||
31061 | as_unset=as_fn_unset | ||
31062 | # as_fn_append VAR VALUE | ||
31063 | # ---------------------- | ||
31064 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
31065 | # advantage of any shell optimizations that allow amortized linear growth over | ||
31066 | # repeated appends, instead of the typical quadratic growth present in naive | ||
31067 | # implementations. | ||
31068 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
31069 | eval 'as_fn_append () | ||
31070 | { | ||
31071 | eval $1+=\$2 | ||
31072 | }' | ||
31073 | else | ||
31074 | as_fn_append () | ||
31075 | { | ||
31076 | eval $1=\$$1\$2 | ||
31077 | } | ||
31078 | fi # as_fn_append | ||
31079 | |||
31080 | # as_fn_arith ARG... | ||
31081 | # ------------------ | ||
31082 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
31083 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
31084 | # must be portable across $(()) and expr. | ||
31085 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
31086 | eval 'as_fn_arith () | ||
31087 | { | ||
31088 | as_val=$(( $* )) | ||
31089 | }' | ||
31090 | else | ||
31091 | as_fn_arith () | ||
31092 | { | ||
31093 | as_val=`expr "$@" || test $? -eq 1` | ||
31094 | } | ||
31095 | fi # as_fn_arith | ||
31096 | |||
31097 | |||
31098 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
31099 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
31100 | as_expr=expr | ||
31101 | else | ||
31102 | as_expr=false | ||
31103 | fi | ||
31104 | |||
31105 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
31106 | as_basename=basename | ||
31107 | else | ||
31108 | as_basename=false | ||
31109 | fi | ||
31110 | |||
31111 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
31112 | as_dirname=dirname | ||
31113 | else | ||
31114 | as_dirname=false | ||
31115 | fi | ||
31116 | |||
31117 | as_me=`$as_basename -- "$0" || | ||
31118 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
31119 | X"$0" : 'X\(//\)$' \| \ | ||
31120 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
31121 | $as_echo X/"$0" | | ||
31122 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
31123 | s//\1/ | ||
31124 | q | ||
31125 | } | ||
31126 | /^X\/\(\/\/\)$/{ | ||
31127 | s//\1/ | ||
31128 | q | ||
31129 | } | ||
31130 | /^X\/\(\/\).*/{ | ||
31131 | s//\1/ | ||
31132 | q | ||
31133 | } | ||
31134 | s/.*/./; q'` | ||
31135 | |||
31136 | # Avoid depending upon Character Ranges. | ||
31137 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
31138 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
31139 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
31140 | as_cr_digits='0123456789' | ||
31141 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
31142 | |||
31143 | ECHO_C= ECHO_N= ECHO_T= | ||
31144 | case `echo -n x` in #((((( | ||
31145 | -n*) | ||
31146 | case `echo 'xy\c'` in | ||
31147 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
31148 | xy) ECHO_C='\c';; | ||
31149 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
31150 | ECHO_T=' ';; | ||
31151 | esac;; | ||
31152 | *) | ||
31153 | ECHO_N='-n';; | ||
31154 | esac | ||
31155 | |||
31156 | rm -f conf$$ conf$$.exe conf$$.file | ||
31157 | if test -d conf$$.dir; then | ||
31158 | rm -f conf$$.dir/conf$$.file | ||
31159 | else | ||
31160 | rm -f conf$$.dir | ||
31161 | mkdir conf$$.dir 2>/dev/null | ||
31162 | fi | ||
31163 | if (echo >conf$$.file) 2>/dev/null; then | ||
31164 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
31165 | as_ln_s='ln -s' | ||
31166 | # ... but there are two gotchas: | ||
31167 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
31168 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
31169 | # In both cases, we have to default to `cp -p'. | ||
31170 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
31171 | as_ln_s='cp -p' | ||
31172 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
31173 | as_ln_s=ln | ||
31174 | else | ||
31175 | as_ln_s='cp -p' | ||
31176 | fi | ||
31177 | else | ||
31178 | as_ln_s='cp -p' | ||
31179 | fi | ||
31180 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
31181 | rmdir conf$$.dir 2>/dev/null | ||
31182 | |||
31183 | |||
31184 | # as_fn_mkdir_p | ||
31185 | # ------------- | ||
31186 | # Create "$as_dir" as a directory, including parents if necessary. | ||
31187 | as_fn_mkdir_p () | ||
31188 | { | ||
31189 | |||
31190 | case $as_dir in #( | ||
31191 | -*) as_dir=./$as_dir;; | ||
31192 | esac | ||
31193 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
31194 | as_dirs= | ||
31195 | while :; do | ||
31196 | case $as_dir in #( | ||
31197 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
31198 | *) as_qdir=$as_dir;; | ||
31199 | esac | ||
31200 | as_dirs="'$as_qdir' $as_dirs" | ||
31201 | as_dir=`$as_dirname -- "$as_dir" || | ||
31202 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
31203 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
31204 | X"$as_dir" : 'X\(//\)$' \| \ | ||
31205 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
31206 | $as_echo X"$as_dir" | | ||
31207 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
31208 | s//\1/ | ||
31209 | q | ||
31210 | } | ||
31211 | /^X\(\/\/\)[^/].*/{ | ||
31212 | s//\1/ | ||
31213 | q | ||
31214 | } | ||
31215 | /^X\(\/\/\)$/{ | ||
31216 | s//\1/ | ||
31217 | q | ||
31218 | } | ||
31219 | /^X\(\/\).*/{ | ||
31220 | s//\1/ | ||
31221 | q | ||
31222 | } | ||
31223 | s/.*/./; q'` | ||
31224 | test -d "$as_dir" && break | ||
31225 | done | ||
31226 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
31227 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
31228 | |||
31229 | |||
31230 | } # as_fn_mkdir_p | ||
31231 | if mkdir -p . 2>/dev/null; then | ||
31232 | as_mkdir_p='mkdir -p "$as_dir"' | ||
31233 | else | ||
31234 | test -d ./-p && rmdir ./-p | ||
31235 | as_mkdir_p=false | ||
31236 | fi | ||
31237 | |||
31238 | if test -x / >/dev/null 2>&1; then | ||
31239 | as_test_x='test -x' | ||
31240 | else | ||
31241 | if ls -dL / >/dev/null 2>&1; then | ||
31242 | as_ls_L_option=L | ||
31243 | else | ||
31244 | as_ls_L_option= | ||
31245 | fi | ||
31246 | as_test_x=' | ||
31247 | eval sh -c '\'' | ||
31248 | if test -d "$1"; then | ||
31249 | test -d "$1/."; | ||
31250 | else | ||
31251 | case $1 in #( | ||
31252 | -*)set "./$1";; | ||
31253 | esac; | ||
31254 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
31255 | ???[sx]*):;;*)false;;esac;fi | ||
31256 | '\'' sh | ||
31257 | ' | ||
31258 | fi | ||
31259 | as_executable_p=$as_test_x | ||
31260 | |||
31261 | # Sed expression to map a string onto a valid CPP name. | ||
31262 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
31263 | |||
31264 | # Sed expression to map a string onto a valid variable name. | ||
31265 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
31266 | |||
31267 | |||
31268 | exec 6>&1 | ||
31269 | ## ----------------------------------- ## | ||
31270 | ## Main body of $CONFIG_STATUS script. ## | ||
31271 | ## ----------------------------------- ## | ||
31272 | _ASEOF | ||
31273 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
31274 | |||
31275 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31276 | # Save the log message, to keep $0 and so on meaningful, and to | ||
31277 | # report actual input values of CONFIG_FILES etc. instead of their | ||
31278 | # values after options handling. | ||
31279 | ac_log=" | ||
31280 | This file was extended by ecore $as_me 1.1.0, which was | ||
31281 | generated by GNU Autoconf 2.67. Invocation command line was | ||
31282 | |||
31283 | CONFIG_FILES = $CONFIG_FILES | ||
31284 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
31285 | CONFIG_LINKS = $CONFIG_LINKS | ||
31286 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
31287 | $ $0 $@ | ||
31288 | |||
31289 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
31290 | " | ||
31291 | |||
31292 | _ACEOF | ||
31293 | |||
31294 | case $ac_config_files in *" | ||
31295 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
31296 | esac | ||
31297 | |||
31298 | case $ac_config_headers in *" | ||
31299 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
31300 | esac | ||
31301 | |||
31302 | |||
31303 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31304 | # Files that config.status was made for. | ||
31305 | config_files="$ac_config_files" | ||
31306 | config_headers="$ac_config_headers" | ||
31307 | config_commands="$ac_config_commands" | ||
31308 | |||
31309 | _ACEOF | ||
31310 | |||
31311 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31312 | ac_cs_usage="\ | ||
31313 | \`$as_me' instantiates files and other configuration actions | ||
31314 | from templates according to the current configuration. Unless the files | ||
31315 | and actions are specified as TAGs, all are instantiated by default. | ||
31316 | |||
31317 | Usage: $0 [OPTION]... [TAG]... | ||
31318 | |||
31319 | -h, --help print this help, then exit | ||
31320 | -V, --version print version number and configuration settings, then exit | ||
31321 | --config print configuration, then exit | ||
31322 | -q, --quiet, --silent | ||
31323 | do not print progress messages | ||
31324 | -d, --debug don't remove temporary files | ||
31325 | --recheck update $as_me by reconfiguring in the same conditions | ||
31326 | --file=FILE[:TEMPLATE] | ||
31327 | instantiate the configuration file FILE | ||
31328 | --header=FILE[:TEMPLATE] | ||
31329 | instantiate the configuration header FILE | ||
31330 | |||
31331 | Configuration files: | ||
31332 | $config_files | ||
31333 | |||
31334 | Configuration headers: | ||
31335 | $config_headers | ||
31336 | |||
31337 | Configuration commands: | ||
31338 | $config_commands | ||
31339 | |||
31340 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
31341 | |||
31342 | _ACEOF | ||
31343 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31344 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
31345 | ac_cs_version="\\ | ||
31346 | ecore config.status 1.1.0 | ||
31347 | configured by $0, generated by GNU Autoconf 2.67, | ||
31348 | with options \\"\$ac_cs_config\\" | ||
31349 | |||
31350 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
31351 | This config.status script is free software; the Free Software Foundation | ||
31352 | gives unlimited permission to copy, distribute and modify it." | ||
31353 | |||
31354 | ac_pwd='$ac_pwd' | ||
31355 | srcdir='$srcdir' | ||
31356 | INSTALL='$INSTALL' | ||
31357 | MKDIR_P='$MKDIR_P' | ||
31358 | AWK='$AWK' | ||
31359 | test -n "\$AWK" || AWK=awk | ||
31360 | _ACEOF | ||
31361 | |||
31362 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31363 | # The default lists apply if the user does not specify any file. | ||
31364 | ac_need_defaults=: | ||
31365 | while test $# != 0 | ||
31366 | do | ||
31367 | case $1 in | ||
31368 | --*=?*) | ||
31369 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
31370 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
31371 | ac_shift=: | ||
31372 | ;; | ||
31373 | --*=) | ||
31374 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
31375 | ac_optarg= | ||
31376 | ac_shift=: | ||
31377 | ;; | ||
31378 | *) | ||
31379 | ac_option=$1 | ||
31380 | ac_optarg=$2 | ||
31381 | ac_shift=shift | ||
31382 | ;; | ||
31383 | esac | ||
31384 | |||
31385 | case $ac_option in | ||
31386 | # Handling of the options. | ||
31387 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
31388 | ac_cs_recheck=: ;; | ||
31389 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
31390 | $as_echo "$ac_cs_version"; exit ;; | ||
31391 | --config | --confi | --conf | --con | --co | --c ) | ||
31392 | $as_echo "$ac_cs_config"; exit ;; | ||
31393 | --debug | --debu | --deb | --de | --d | -d ) | ||
31394 | debug=: ;; | ||
31395 | --file | --fil | --fi | --f ) | ||
31396 | $ac_shift | ||
31397 | case $ac_optarg in | ||
31398 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
31399 | '') as_fn_error $? "missing file argument" ;; | ||
31400 | esac | ||
31401 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
31402 | ac_need_defaults=false;; | ||
31403 | --header | --heade | --head | --hea ) | ||
31404 | $ac_shift | ||
31405 | case $ac_optarg in | ||
31406 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
31407 | esac | ||
31408 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
31409 | ac_need_defaults=false;; | ||
31410 | --he | --h) | ||
31411 | # Conflict between --help and --header | ||
31412 | as_fn_error $? "ambiguous option: \`$1' | ||
31413 | Try \`$0 --help' for more information.";; | ||
31414 | --help | --hel | -h ) | ||
31415 | $as_echo "$ac_cs_usage"; exit ;; | ||
31416 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
31417 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
31418 | ac_cs_silent=: ;; | ||
31419 | |||
31420 | # This is an error. | ||
31421 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
31422 | Try \`$0 --help' for more information." ;; | ||
31423 | |||
31424 | *) as_fn_append ac_config_targets " $1" | ||
31425 | ac_need_defaults=false ;; | ||
31426 | |||
31427 | esac | ||
31428 | shift | ||
31429 | done | ||
31430 | |||
31431 | ac_configure_extra_args= | ||
31432 | |||
31433 | if $ac_cs_silent; then | ||
31434 | exec 6>/dev/null | ||
31435 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
31436 | fi | ||
31437 | |||
31438 | _ACEOF | ||
31439 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31440 | if \$ac_cs_recheck; then | ||
31441 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
31442 | shift | ||
31443 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
31444 | CONFIG_SHELL='$SHELL' | ||
31445 | export CONFIG_SHELL | ||
31446 | exec "\$@" | ||
31447 | fi | ||
31448 | |||
31449 | _ACEOF | ||
31450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31451 | exec 5>>config.log | ||
31452 | { | ||
31453 | echo | ||
31454 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
31455 | ## Running $as_me. ## | ||
31456 | _ASBOX | ||
31457 | $as_echo "$ac_log" | ||
31458 | } >&5 | ||
31459 | |||
31460 | _ACEOF | ||
31461 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31462 | # | ||
31463 | # INIT-COMMANDS | ||
31464 | # | ||
31465 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
31466 | |||
31467 | |||
31468 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
31469 | # if CDPATH is set. | ||
31470 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
31471 | |||
31472 | sed_quote_subst='$sed_quote_subst' | ||
31473 | double_quote_subst='$double_quote_subst' | ||
31474 | delay_variable_subst='$delay_variable_subst' | ||
31475 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
31476 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
31477 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
31478 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
31479 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
31480 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
31481 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
31482 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
31483 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
31484 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
31485 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
31486 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
31487 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
31488 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
31489 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
31490 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
31491 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
31492 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
31493 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
31494 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
31495 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
31496 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
31497 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
31498 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
31499 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
31500 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
31501 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
31502 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
31503 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
31504 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
31505 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31506 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
31507 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
31508 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
31509 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
31510 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
31511 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
31512 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31513 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31514 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31515 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
31516 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
31517 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
31518 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
31519 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
31520 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
31521 | 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"`' | ||
31522 | 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"`' | ||
31523 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
31524 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
31525 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
31526 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
31527 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
31528 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
31529 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
31530 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
31531 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
31532 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
31533 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
31534 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
31535 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
31536 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
31537 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
31538 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
31539 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31540 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31541 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
31542 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
31543 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31544 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31545 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
31546 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31547 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31548 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31549 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31550 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31551 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31552 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
31553 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
31554 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
31555 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31556 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
31557 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
31558 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
31559 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
31560 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
31561 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
31562 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
31563 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
31564 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
31565 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
31566 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
31567 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31568 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
31569 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
31570 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31571 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31572 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
31573 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
31574 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
31575 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
31576 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
31577 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
31578 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
31579 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31580 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31581 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31582 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31583 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31584 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
31585 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
31586 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
31587 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31588 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
31589 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
31590 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
31591 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
31592 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
31593 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
31594 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
31595 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | ||
31596 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
31597 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
31598 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
31599 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
31600 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
31601 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31602 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31603 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31604 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31605 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31606 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31607 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31608 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31609 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31610 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31611 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31612 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31613 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31614 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31615 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31616 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31617 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31618 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31619 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31620 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31621 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31622 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31623 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31624 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31625 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31626 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31627 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31628 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31629 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31630 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31631 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31632 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31633 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31634 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31635 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31636 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31637 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31638 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31639 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31640 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31641 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31642 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31643 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31644 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31645 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31646 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31647 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
31648 | |||
31649 | LTCC='$LTCC' | ||
31650 | LTCFLAGS='$LTCFLAGS' | ||
31651 | compiler='$compiler_DEFAULT' | ||
31652 | |||
31653 | # Quote evaled strings. | ||
31654 | for var in SED \ | ||
31655 | GREP \ | ||
31656 | EGREP \ | ||
31657 | FGREP \ | ||
31658 | LD \ | ||
31659 | NM \ | ||
31660 | LN_S \ | ||
31661 | lt_SP2NL \ | ||
31662 | lt_NL2SP \ | ||
31663 | reload_flag \ | ||
31664 | deplibs_check_method \ | ||
31665 | file_magic_cmd \ | ||
31666 | AR \ | ||
31667 | AR_FLAGS \ | ||
31668 | STRIP \ | ||
31669 | RANLIB \ | ||
31670 | CC \ | ||
31671 | CFLAGS \ | ||
31672 | compiler \ | ||
31673 | lt_cv_sys_global_symbol_pipe \ | ||
31674 | lt_cv_sys_global_symbol_to_cdecl \ | ||
31675 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
31676 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
31677 | SHELL \ | ||
31678 | ECHO \ | ||
31679 | lt_prog_compiler_no_builtin_flag \ | ||
31680 | lt_prog_compiler_wl \ | ||
31681 | lt_prog_compiler_pic \ | ||
31682 | lt_prog_compiler_static \ | ||
31683 | lt_cv_prog_compiler_c_o \ | ||
31684 | need_locks \ | ||
31685 | DSYMUTIL \ | ||
31686 | NMEDIT \ | ||
31687 | LIPO \ | ||
31688 | OTOOL \ | ||
31689 | OTOOL64 \ | ||
31690 | shrext_cmds \ | ||
31691 | export_dynamic_flag_spec \ | ||
31692 | whole_archive_flag_spec \ | ||
31693 | compiler_needs_object \ | ||
31694 | with_gnu_ld \ | ||
31695 | allow_undefined_flag \ | ||
31696 | no_undefined_flag \ | ||
31697 | hardcode_libdir_flag_spec \ | ||
31698 | hardcode_libdir_flag_spec_ld \ | ||
31699 | hardcode_libdir_separator \ | ||
31700 | fix_srcfile_path \ | ||
31701 | exclude_expsyms \ | ||
31702 | include_expsyms \ | ||
31703 | file_list_spec \ | ||
31704 | variables_saved_for_relink \ | ||
31705 | libname_spec \ | ||
31706 | library_names_spec \ | ||
31707 | soname_spec \ | ||
31708 | finish_eval \ | ||
31709 | old_striplib \ | ||
31710 | striplib \ | ||
31711 | compiler_lib_search_dirs \ | ||
31712 | predep_objects \ | ||
31713 | postdep_objects \ | ||
31714 | predeps \ | ||
31715 | postdeps \ | ||
31716 | compiler_lib_search_path \ | ||
31717 | LD_CXX \ | ||
31718 | compiler_CXX \ | ||
31719 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
31720 | lt_prog_compiler_wl_CXX \ | ||
31721 | lt_prog_compiler_pic_CXX \ | ||
31722 | lt_prog_compiler_static_CXX \ | ||
31723 | lt_cv_prog_compiler_c_o_CXX \ | ||
31724 | export_dynamic_flag_spec_CXX \ | ||
31725 | whole_archive_flag_spec_CXX \ | ||
31726 | compiler_needs_object_CXX \ | ||
31727 | with_gnu_ld_CXX \ | ||
31728 | allow_undefined_flag_CXX \ | ||
31729 | no_undefined_flag_CXX \ | ||
31730 | hardcode_libdir_flag_spec_CXX \ | ||
31731 | hardcode_libdir_flag_spec_ld_CXX \ | ||
31732 | hardcode_libdir_separator_CXX \ | ||
31733 | fix_srcfile_path_CXX \ | ||
31734 | exclude_expsyms_CXX \ | ||
31735 | include_expsyms_CXX \ | ||
31736 | file_list_spec_CXX \ | ||
31737 | compiler_lib_search_dirs_CXX \ | ||
31738 | predep_objects_CXX \ | ||
31739 | postdep_objects_CXX \ | ||
31740 | predeps_CXX \ | ||
31741 | postdeps_CXX \ | ||
31742 | compiler_lib_search_path_CXX; do | ||
31743 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
31744 | *[\\\\\\\`\\"\\\$]*) | ||
31745 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
31746 | ;; | ||
31747 | *) | ||
31748 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
31749 | ;; | ||
31750 | esac | ||
31751 | done | ||
31752 | |||
31753 | # Double-quote double-evaled strings. | ||
31754 | for var in reload_cmds \ | ||
31755 | old_postinstall_cmds \ | ||
31756 | old_postuninstall_cmds \ | ||
31757 | old_archive_cmds \ | ||
31758 | extract_expsyms_cmds \ | ||
31759 | old_archive_from_new_cmds \ | ||
31760 | old_archive_from_expsyms_cmds \ | ||
31761 | archive_cmds \ | ||
31762 | archive_expsym_cmds \ | ||
31763 | module_cmds \ | ||
31764 | module_expsym_cmds \ | ||
31765 | export_symbols_cmds \ | ||
31766 | prelink_cmds \ | ||
31767 | postinstall_cmds \ | ||
31768 | postuninstall_cmds \ | ||
31769 | finish_cmds \ | ||
31770 | sys_lib_search_path_spec \ | ||
31771 | sys_lib_dlsearch_path_spec \ | ||
31772 | old_archive_cmds_CXX \ | ||
31773 | old_archive_from_new_cmds_CXX \ | ||
31774 | old_archive_from_expsyms_cmds_CXX \ | ||
31775 | archive_cmds_CXX \ | ||
31776 | archive_expsym_cmds_CXX \ | ||
31777 | module_cmds_CXX \ | ||
31778 | module_expsym_cmds_CXX \ | ||
31779 | export_symbols_cmds_CXX \ | ||
31780 | prelink_cmds_CXX; do | ||
31781 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
31782 | *[\\\\\\\`\\"\\\$]*) | ||
31783 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
31784 | ;; | ||
31785 | *) | ||
31786 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
31787 | ;; | ||
31788 | esac | ||
31789 | done | ||
31790 | |||
31791 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
31792 | case \$lt_ECHO in | ||
31793 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
31794 | ;; | ||
31795 | esac | ||
31796 | |||
31797 | ac_aux_dir='$ac_aux_dir' | ||
31798 | xsi_shell='$xsi_shell' | ||
31799 | lt_shell_append='$lt_shell_append' | ||
31800 | |||
31801 | # See if we are running on zsh, and set the options which allow our | ||
31802 | # commands through without removal of \ escapes INIT. | ||
31803 | if test -n "\${ZSH_VERSION+set}" ; then | ||
31804 | setopt NO_GLOB_SUBST | ||
31805 | fi | ||
31806 | |||
31807 | |||
31808 | PACKAGE='$PACKAGE' | ||
31809 | VERSION='$VERSION' | ||
31810 | TIMESTAMP='$TIMESTAMP' | ||
31811 | RM='$RM' | ||
31812 | ofile='$ofile' | ||
31813 | |||
31814 | |||
31815 | |||
31816 | |||
31817 | |||
31818 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | ||
31819 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | ||
31820 | # from automake < 1.5. | ||
31821 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | ||
31822 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | ||
31823 | LINGUAS="${LINGUAS-%UNSET%}" | ||
31824 | |||
31825 | |||
31826 | _ACEOF | ||
31827 | |||
31828 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31829 | |||
31830 | # Handling of arguments. | ||
31831 | for ac_config_target in $ac_config_targets | ||
31832 | do | ||
31833 | case $ac_config_target in | ||
31834 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
31835 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
31836 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
31837 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; | ||
31838 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
31839 | "ecore-con.pc") CONFIG_FILES="$CONFIG_FILES ecore-con.pc" ;; | ||
31840 | "ecore-config.pc") CONFIG_FILES="$CONFIG_FILES ecore-config.pc" ;; | ||
31841 | "ecore-directfb.pc") CONFIG_FILES="$CONFIG_FILES ecore-directfb.pc" ;; | ||
31842 | "ecore-evas.pc") CONFIG_FILES="$CONFIG_FILES ecore-evas.pc" ;; | ||
31843 | "ecore-fb.pc") CONFIG_FILES="$CONFIG_FILES ecore-fb.pc" ;; | ||
31844 | "ecore-file.pc") CONFIG_FILES="$CONFIG_FILES ecore-file.pc" ;; | ||
31845 | "ecore-imf.pc") CONFIG_FILES="$CONFIG_FILES ecore-imf.pc" ;; | ||
31846 | "ecore-imf-evas.pc") CONFIG_FILES="$CONFIG_FILES ecore-imf-evas.pc" ;; | ||
31847 | "ecore-ipc.pc") CONFIG_FILES="$CONFIG_FILES ecore-ipc.pc" ;; | ||
31848 | "ecore-x.pc") CONFIG_FILES="$CONFIG_FILES ecore-x.pc" ;; | ||
31849 | "ecore-input.pc") CONFIG_FILES="$CONFIG_FILES ecore-input.pc" ;; | ||
31850 | "ecore-input-evas.pc") CONFIG_FILES="$CONFIG_FILES ecore-input-evas.pc" ;; | ||
31851 | "ecore-win32.pc") CONFIG_FILES="$CONFIG_FILES ecore-win32.pc" ;; | ||
31852 | "ecore-sdl.pc") CONFIG_FILES="$CONFIG_FILES ecore-sdl.pc" ;; | ||
31853 | "ecore-cocoa.pc") CONFIG_FILES="$CONFIG_FILES ecore-cocoa.pc" ;; | ||
31854 | "ecore-psl1ght.pc") CONFIG_FILES="$CONFIG_FILES ecore-psl1ght.pc" ;; | ||
31855 | "ecore-wince.pc") CONFIG_FILES="$CONFIG_FILES ecore-wince.pc" ;; | ||
31856 | "ecore.pc") CONFIG_FILES="$CONFIG_FILES ecore.pc" ;; | ||
31857 | "doc/ecore.dox") CONFIG_FILES="$CONFIG_FILES doc/ecore.dox" ;; | ||
31858 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
31859 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
31860 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
31861 | "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; | ||
31862 | "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; | ||
31863 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
31864 | "src/lib/ecore/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore/Makefile" ;; | ||
31865 | "src/lib/ecore_con/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_con/Makefile" ;; | ||
31866 | "src/lib/ecore_config/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_config/Makefile" ;; | ||
31867 | "src/lib/ecore_directfb/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_directfb/Makefile" ;; | ||
31868 | "src/lib/ecore_evas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_evas/Makefile" ;; | ||
31869 | "src/lib/ecore_fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_fb/Makefile" ;; | ||
31870 | "src/lib/ecore_file/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_file/Makefile" ;; | ||
31871 | "src/lib/ecore_cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_cocoa/Makefile" ;; | ||
31872 | "src/lib/ecore_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_sdl/Makefile" ;; | ||
31873 | "src/lib/ecore_psl1ght/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_psl1ght/Makefile" ;; | ||
31874 | "src/lib/ecore_imf/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_imf/Makefile" ;; | ||
31875 | "src/lib/ecore_imf_evas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_imf_evas/Makefile" ;; | ||
31876 | "src/lib/ecore_input/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_input/Makefile" ;; | ||
31877 | "src/lib/ecore_input_evas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_input_evas/Makefile" ;; | ||
31878 | "src/lib/ecore_ipc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_ipc/Makefile" ;; | ||
31879 | "src/lib/ecore_win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_win32/Makefile" ;; | ||
31880 | "src/lib/ecore_wince/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_wince/Makefile" ;; | ||
31881 | "src/lib/ecore_x/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_x/Makefile" ;; | ||
31882 | "src/lib/ecore_x/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_x/xlib/Makefile" ;; | ||
31883 | "src/lib/ecore_x/xcb/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_x/xcb/Makefile" ;; | ||
31884 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
31885 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
31886 | "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; | ||
31887 | "src/modules/immodules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/immodules/Makefile" ;; | ||
31888 | "src/modules/immodules/xim/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/immodules/xim/Makefile" ;; | ||
31889 | "ecore.spec") CONFIG_FILES="$CONFIG_FILES ecore.spec" ;; | ||
31890 | "$po_makefile_in") CONFIG_FILES="$CONFIG_FILES $po_makefile_in" ;; | ||
31891 | |||
31892 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
31893 | esac | ||
31894 | done | ||
31895 | |||
31896 | |||
31897 | # If the user did not use the arguments to specify the items to instantiate, | ||
31898 | # then the envvar interface is used. Set only those that are not. | ||
31899 | # We use the long form for the default assignment because of an extremely | ||
31900 | # bizarre bug on SunOS 4.1.3. | ||
31901 | if $ac_need_defaults; then | ||
31902 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
31903 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
31904 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
31905 | fi | ||
31906 | |||
31907 | # Have a temporary directory for convenience. Make it in the build tree | ||
31908 | # simply because there is no reason against having it here, and in addition, | ||
31909 | # creating and moving files from /tmp can sometimes cause problems. | ||
31910 | # Hook for its removal unless debugging. | ||
31911 | # Note that there is a small window in which the directory will not be cleaned: | ||
31912 | # after its creation but before its name has been assigned to `$tmp'. | ||
31913 | $debug || | ||
31914 | { | ||
31915 | tmp= | ||
31916 | trap 'exit_status=$? | ||
31917 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
31918 | ' 0 | ||
31919 | trap 'as_fn_exit 1' 1 2 13 15 | ||
31920 | } | ||
31921 | # Create a (secure) tmp directory for tmp files. | ||
31922 | |||
31923 | { | ||
31924 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
31925 | test -n "$tmp" && test -d "$tmp" | ||
31926 | } || | ||
31927 | { | ||
31928 | tmp=./conf$$-$RANDOM | ||
31929 | (umask 077 && mkdir "$tmp") | ||
31930 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
31931 | |||
31932 | # Set up the scripts for CONFIG_FILES section. | ||
31933 | # No need to generate them if there are no CONFIG_FILES. | ||
31934 | # This happens for instance with `./config.status config.h'. | ||
31935 | if test -n "$CONFIG_FILES"; then | ||
31936 | |||
31937 | |||
31938 | ac_cr=`echo X | tr X '\015'` | ||
31939 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
31940 | # But we know of no other shell where ac_cr would be empty at this | ||
31941 | # point, so we can use a bashism as a fallback. | ||
31942 | if test "x$ac_cr" = x; then | ||
31943 | eval ac_cr=\$\'\\r\' | ||
31944 | fi | ||
31945 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
31946 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
31947 | ac_cs_awk_cr='\\r' | ||
31948 | else | ||
31949 | ac_cs_awk_cr=$ac_cr | ||
31950 | fi | ||
31951 | |||
31952 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
31953 | _ACEOF | ||
31954 | |||
31955 | |||
31956 | { | ||
31957 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
31958 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
31959 | echo "_ACEOF" | ||
31960 | } >conf$$subs.sh || | ||
31961 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
31962 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
31963 | ac_delim='%!_!# ' | ||
31964 | for ac_last_try in false false false false false :; do | ||
31965 | . ./conf$$subs.sh || | ||
31966 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
31967 | |||
31968 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
31969 | if test $ac_delim_n = $ac_delim_num; then | ||
31970 | break | ||
31971 | elif $ac_last_try; then | ||
31972 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
31973 | else | ||
31974 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
31975 | fi | ||
31976 | done | ||
31977 | rm -f conf$$subs.sh | ||
31978 | |||
31979 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31980 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
31981 | _ACEOF | ||
31982 | sed -n ' | ||
31983 | h | ||
31984 | s/^/S["/; s/!.*/"]=/ | ||
31985 | p | ||
31986 | g | ||
31987 | s/^[^!]*!// | ||
31988 | :repl | ||
31989 | t repl | ||
31990 | s/'"$ac_delim"'$// | ||
31991 | t delim | ||
31992 | :nl | ||
31993 | h | ||
31994 | s/\(.\{148\}\)..*/\1/ | ||
31995 | t more1 | ||
31996 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
31997 | p | ||
31998 | n | ||
31999 | b repl | ||
32000 | :more1 | ||
32001 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
32002 | p | ||
32003 | g | ||
32004 | s/.\{148\}// | ||
32005 | t nl | ||
32006 | :delim | ||
32007 | h | ||
32008 | s/\(.\{148\}\)..*/\1/ | ||
32009 | t more2 | ||
32010 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
32011 | p | ||
32012 | b | ||
32013 | :more2 | ||
32014 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
32015 | p | ||
32016 | g | ||
32017 | s/.\{148\}// | ||
32018 | t delim | ||
32019 | ' <conf$$subs.awk | sed ' | ||
32020 | /^[^""]/{ | ||
32021 | N | ||
32022 | s/\n// | ||
32023 | } | ||
32024 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
32025 | rm -f conf$$subs.awk | ||
32026 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32027 | _ACAWK | ||
32028 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
32029 | for (key in S) S_is_set[key] = 1 | ||
32030 | FS = "" | ||
32031 | |||
32032 | } | ||
32033 | { | ||
32034 | line = $ 0 | ||
32035 | nfields = split(line, field, "@") | ||
32036 | substed = 0 | ||
32037 | len = length(field[1]) | ||
32038 | for (i = 2; i < nfields; i++) { | ||
32039 | key = field[i] | ||
32040 | keylen = length(key) | ||
32041 | if (S_is_set[key]) { | ||
32042 | value = S[key] | ||
32043 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
32044 | len += length(value) + length(field[++i]) | ||
32045 | substed = 1 | ||
32046 | } else | ||
32047 | len += 1 + keylen | ||
32048 | } | ||
32049 | |||
32050 | print line | ||
32051 | } | ||
32052 | |||
32053 | _ACAWK | ||
32054 | _ACEOF | ||
32055 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32056 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
32057 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
32058 | else | ||
32059 | cat | ||
32060 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
32061 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
32062 | _ACEOF | ||
32063 | |||
32064 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
32065 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
32066 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
32067 | # (actually we leave an empty line to preserve line numbers). | ||
32068 | if test "x$srcdir" = x.; then | ||
32069 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
32070 | h | ||
32071 | s/// | ||
32072 | s/^/:/ | ||
32073 | s/[ ]*$/:/ | ||
32074 | s/:\$(srcdir):/:/g | ||
32075 | s/:\${srcdir}:/:/g | ||
32076 | s/:@srcdir@:/:/g | ||
32077 | s/^:*// | ||
32078 | s/:*$// | ||
32079 | x | ||
32080 | s/\(=[ ]*\).*/\1/ | ||
32081 | G | ||
32082 | s/\n// | ||
32083 | s/^[^=]*=[ ]*$// | ||
32084 | }' | ||
32085 | fi | ||
32086 | |||
32087 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32088 | fi # test -n "$CONFIG_FILES" | ||
32089 | |||
32090 | # Set up the scripts for CONFIG_HEADERS section. | ||
32091 | # No need to generate them if there are no CONFIG_HEADERS. | ||
32092 | # This happens for instance with `./config.status Makefile'. | ||
32093 | if test -n "$CONFIG_HEADERS"; then | ||
32094 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
32095 | BEGIN { | ||
32096 | _ACEOF | ||
32097 | |||
32098 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
32099 | # here-document in config.status, that substitutes the proper values into | ||
32100 | # config.h.in to produce config.h. | ||
32101 | |||
32102 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
32103 | # handling of long lines. | ||
32104 | ac_delim='%!_!# ' | ||
32105 | for ac_last_try in false false :; do | ||
32106 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
32107 | if test -z "$ac_t"; then | ||
32108 | break | ||
32109 | elif $ac_last_try; then | ||
32110 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
32111 | else | ||
32112 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
32113 | fi | ||
32114 | done | ||
32115 | |||
32116 | # For the awk script, D is an array of macro values keyed by name, | ||
32117 | # likewise P contains macro parameters if any. Preserve backslash | ||
32118 | # newline sequences. | ||
32119 | |||
32120 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
32121 | sed -n ' | ||
32122 | s/.\{148\}/&'"$ac_delim"'/g | ||
32123 | t rset | ||
32124 | :rset | ||
32125 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
32126 | t def | ||
32127 | d | ||
32128 | :def | ||
32129 | s/\\$// | ||
32130 | t bsnl | ||
32131 | s/["\\]/\\&/g | ||
32132 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
32133 | D["\1"]=" \3"/p | ||
32134 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
32135 | d | ||
32136 | :bsnl | ||
32137 | s/["\\]/\\&/g | ||
32138 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
32139 | D["\1"]=" \3\\\\\\n"\\/p | ||
32140 | t cont | ||
32141 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
32142 | t cont | ||
32143 | d | ||
32144 | :cont | ||
32145 | n | ||
32146 | s/.\{148\}/&'"$ac_delim"'/g | ||
32147 | t clear | ||
32148 | :clear | ||
32149 | s/\\$// | ||
32150 | t bsnlc | ||
32151 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
32152 | d | ||
32153 | :bsnlc | ||
32154 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
32155 | b cont | ||
32156 | ' <confdefs.h | sed ' | ||
32157 | s/'"$ac_delim"'/"\\\ | ||
32158 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
32159 | |||
32160 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32161 | for (key in D) D_is_set[key] = 1 | ||
32162 | FS = "" | ||
32163 | } | ||
32164 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
32165 | line = \$ 0 | ||
32166 | split(line, arg, " ") | ||
32167 | if (arg[1] == "#") { | ||
32168 | defundef = arg[2] | ||
32169 | mac1 = arg[3] | ||
32170 | } else { | ||
32171 | defundef = substr(arg[1], 2) | ||
32172 | mac1 = arg[2] | ||
32173 | } | ||
32174 | split(mac1, mac2, "(") #) | ||
32175 | macro = mac2[1] | ||
32176 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
32177 | if (D_is_set[macro]) { | ||
32178 | # Preserve the white space surrounding the "#". | ||
32179 | print prefix "define", macro P[macro] D[macro] | ||
32180 | next | ||
32181 | } else { | ||
32182 | # Replace #undef with comments. This is necessary, for example, | ||
32183 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
32184 | # on some systems where configure will not decide to define it. | ||
32185 | if (defundef == "undef") { | ||
32186 | print "/*", prefix defundef, macro, "*/" | ||
32187 | next | ||
32188 | } | ||
32189 | } | ||
32190 | } | ||
32191 | { print } | ||
32192 | _ACAWK | ||
32193 | _ACEOF | ||
32194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32195 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
32196 | fi # test -n "$CONFIG_HEADERS" | ||
32197 | |||
32198 | |||
32199 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
32200 | shift | ||
32201 | for ac_tag | ||
32202 | do | ||
32203 | case $ac_tag in | ||
32204 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
32205 | esac | ||
32206 | case $ac_mode$ac_tag in | ||
32207 | :[FHL]*:*);; | ||
32208 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
32209 | :[FH]-) ac_tag=-:-;; | ||
32210 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
32211 | esac | ||
32212 | ac_save_IFS=$IFS | ||
32213 | IFS=: | ||
32214 | set x $ac_tag | ||
32215 | IFS=$ac_save_IFS | ||
32216 | shift | ||
32217 | ac_file=$1 | ||
32218 | shift | ||
32219 | |||
32220 | case $ac_mode in | ||
32221 | :L) ac_source=$1;; | ||
32222 | :[FH]) | ||
32223 | ac_file_inputs= | ||
32224 | for ac_f | ||
32225 | do | ||
32226 | case $ac_f in | ||
32227 | -) ac_f="$tmp/stdin";; | ||
32228 | *) # Look for the file first in the build tree, then in the source tree | ||
32229 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
32230 | # because $ac_f cannot contain `:'. | ||
32231 | test -f "$ac_f" || | ||
32232 | case $ac_f in | ||
32233 | [\\/$]*) false;; | ||
32234 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
32235 | esac || | ||
32236 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
32237 | esac | ||
32238 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
32239 | as_fn_append ac_file_inputs " '$ac_f'" | ||
32240 | done | ||
32241 | |||
32242 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
32243 | # use $as_me), people would be surprised to read: | ||
32244 | # /* config.h. Generated by config.status. */ | ||
32245 | configure_input='Generated from '` | ||
32246 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
32247 | `' by configure.' | ||
32248 | if test x"$ac_file" != x-; then | ||
32249 | configure_input="$ac_file. $configure_input" | ||
32250 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
32251 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
32252 | fi | ||
32253 | # Neutralize special characters interpreted by sed in replacement strings. | ||
32254 | case $configure_input in #( | ||
32255 | *\&* | *\|* | *\\* ) | ||
32256 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
32257 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
32258 | *) ac_sed_conf_input=$configure_input;; | ||
32259 | esac | ||
32260 | |||
32261 | case $ac_tag in | ||
32262 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
32263 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
32264 | esac | ||
32265 | ;; | ||
32266 | esac | ||
32267 | |||
32268 | ac_dir=`$as_dirname -- "$ac_file" || | ||
32269 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
32270 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
32271 | X"$ac_file" : 'X\(//\)$' \| \ | ||
32272 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
32273 | $as_echo X"$ac_file" | | ||
32274 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
32275 | s//\1/ | ||
32276 | q | ||
32277 | } | ||
32278 | /^X\(\/\/\)[^/].*/{ | ||
32279 | s//\1/ | ||
32280 | q | ||
32281 | } | ||
32282 | /^X\(\/\/\)$/{ | ||
32283 | s//\1/ | ||
32284 | q | ||
32285 | } | ||
32286 | /^X\(\/\).*/{ | ||
32287 | s//\1/ | ||
32288 | q | ||
32289 | } | ||
32290 | s/.*/./; q'` | ||
32291 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
32292 | ac_builddir=. | ||
32293 | |||
32294 | case "$ac_dir" in | ||
32295 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
32296 | *) | ||
32297 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
32298 | # A ".." for each directory in $ac_dir_suffix. | ||
32299 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
32300 | case $ac_top_builddir_sub in | ||
32301 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
32302 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
32303 | esac ;; | ||
32304 | esac | ||
32305 | ac_abs_top_builddir=$ac_pwd | ||
32306 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
32307 | # for backward compatibility: | ||
32308 | ac_top_builddir=$ac_top_build_prefix | ||
32309 | |||
32310 | case $srcdir in | ||
32311 | .) # We are building in place. | ||
32312 | ac_srcdir=. | ||
32313 | ac_top_srcdir=$ac_top_builddir_sub | ||
32314 | ac_abs_top_srcdir=$ac_pwd ;; | ||
32315 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
32316 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
32317 | ac_top_srcdir=$srcdir | ||
32318 | ac_abs_top_srcdir=$srcdir ;; | ||
32319 | *) # Relative name. | ||
32320 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
32321 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
32322 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
32323 | esac | ||
32324 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
32325 | |||
32326 | |||
32327 | case $ac_mode in | ||
32328 | :F) | ||
32329 | # | ||
32330 | # CONFIG_FILE | ||
32331 | # | ||
32332 | |||
32333 | case $INSTALL in | ||
32334 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
32335 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
32336 | esac | ||
32337 | ac_MKDIR_P=$MKDIR_P | ||
32338 | case $MKDIR_P in | ||
32339 | [\\/$]* | ?:[\\/]* ) ;; | ||
32340 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
32341 | esac | ||
32342 | _ACEOF | ||
32343 | |||
32344 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32345 | # If the template does not know about datarootdir, expand it. | ||
32346 | # FIXME: This hack should be removed a few years after 2.60. | ||
32347 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
32348 | ac_sed_dataroot=' | ||
32349 | /datarootdir/ { | ||
32350 | p | ||
32351 | q | ||
32352 | } | ||
32353 | /@datadir@/p | ||
32354 | /@docdir@/p | ||
32355 | /@infodir@/p | ||
32356 | /@localedir@/p | ||
32357 | /@mandir@/p' | ||
32358 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
32359 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
32360 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
32361 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
32362 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
32363 | _ACEOF | ||
32364 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32365 | ac_datarootdir_hack=' | ||
32366 | s&@datadir@&$datadir&g | ||
32367 | s&@docdir@&$docdir&g | ||
32368 | s&@infodir@&$infodir&g | ||
32369 | s&@localedir@&$localedir&g | ||
32370 | s&@mandir@&$mandir&g | ||
32371 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
32372 | esac | ||
32373 | _ACEOF | ||
32374 | |||
32375 | # Neutralize VPATH when `$srcdir' = `.'. | ||
32376 | # Shell code in configure.ac might set extrasub. | ||
32377 | # FIXME: do we really want to maintain this feature? | ||
32378 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32379 | ac_sed_extra="$ac_vpsub | ||
32380 | $extrasub | ||
32381 | _ACEOF | ||
32382 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32383 | :t | ||
32384 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
32385 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
32386 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
32387 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
32388 | s&@srcdir@&$ac_srcdir&;t t | ||
32389 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
32390 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
32391 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
32392 | s&@builddir@&$ac_builddir&;t t | ||
32393 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
32394 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
32395 | s&@INSTALL@&$ac_INSTALL&;t t | ||
32396 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
32397 | $ac_datarootdir_hack | ||
32398 | " | ||
32399 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
32400 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
32401 | |||
32402 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
32403 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
32404 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
32405 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
32406 | which seems to be undefined. Please make sure it is defined" >&5 | ||
32407 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
32408 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
32409 | |||
32410 | rm -f "$tmp/stdin" | ||
32411 | case $ac_file in | ||
32412 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
32413 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
32414 | esac \ | ||
32415 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
32416 | ;; | ||
32417 | :H) | ||
32418 | # | ||
32419 | # CONFIG_HEADER | ||
32420 | # | ||
32421 | if test x"$ac_file" != x-; then | ||
32422 | { | ||
32423 | $as_echo "/* $configure_input */" \ | ||
32424 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
32425 | } >"$tmp/config.h" \ | ||
32426 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
32427 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
32428 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
32429 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
32430 | else | ||
32431 | rm -f "$ac_file" | ||
32432 | mv "$tmp/config.h" "$ac_file" \ | ||
32433 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
32434 | fi | ||
32435 | else | ||
32436 | $as_echo "/* $configure_input */" \ | ||
32437 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
32438 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
32439 | fi | ||
32440 | # Compute "$ac_file"'s index in $config_headers. | ||
32441 | _am_arg="$ac_file" | ||
32442 | _am_stamp_count=1 | ||
32443 | for _am_header in $config_headers :; do | ||
32444 | case $_am_header in | ||
32445 | $_am_arg | $_am_arg:* ) | ||
32446 | break ;; | ||
32447 | * ) | ||
32448 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
32449 | esac | ||
32450 | done | ||
32451 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
32452 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
32453 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
32454 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
32455 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
32456 | $as_echo X"$_am_arg" | | ||
32457 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
32458 | s//\1/ | ||
32459 | q | ||
32460 | } | ||
32461 | /^X\(\/\/\)[^/].*/{ | ||
32462 | s//\1/ | ||
32463 | q | ||
32464 | } | ||
32465 | /^X\(\/\/\)$/{ | ||
32466 | s//\1/ | ||
32467 | q | ||
32468 | } | ||
32469 | /^X\(\/\).*/{ | ||
32470 | s//\1/ | ||
32471 | q | ||
32472 | } | ||
32473 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
32474 | ;; | ||
32475 | |||
32476 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
32477 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
32478 | ;; | ||
32479 | esac | ||
32480 | |||
32481 | |||
32482 | case $ac_file$ac_mode in | ||
32483 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
32484 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
32485 | # are listed without --file. Let's play safe and only enable the eval | ||
32486 | # if we detect the quoting. | ||
32487 | case $CONFIG_FILES in | ||
32488 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
32489 | *) set x $CONFIG_FILES ;; | ||
32490 | esac | ||
32491 | shift | ||
32492 | for mf | ||
32493 | do | ||
32494 | # Strip MF so we end up with the name of the file. | ||
32495 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
32496 | # Check whether this is an Automake generated Makefile or not. | ||
32497 | # We used to match only the files named `Makefile.in', but | ||
32498 | # some people rename them; so instead we look at the file content. | ||
32499 | # Grep'ing the first line is not enough: some people post-process | ||
32500 | # each Makefile.in and add a new line on top of each file to say so. | ||
32501 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
32502 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
32503 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
32504 | dirpart=`$as_dirname -- "$mf" || | ||
32505 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
32506 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
32507 | X"$mf" : 'X\(//\)$' \| \ | ||
32508 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
32509 | $as_echo X"$mf" | | ||
32510 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
32511 | s//\1/ | ||
32512 | q | ||
32513 | } | ||
32514 | /^X\(\/\/\)[^/].*/{ | ||
32515 | s//\1/ | ||
32516 | q | ||
32517 | } | ||
32518 | /^X\(\/\/\)$/{ | ||
32519 | s//\1/ | ||
32520 | q | ||
32521 | } | ||
32522 | /^X\(\/\).*/{ | ||
32523 | s//\1/ | ||
32524 | q | ||
32525 | } | ||
32526 | s/.*/./; q'` | ||
32527 | else | ||
32528 | continue | ||
32529 | fi | ||
32530 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
32531 | # from the Makefile without running `make'. | ||
32532 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
32533 | test -z "$DEPDIR" && continue | ||
32534 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
32535 | test -z "am__include" && continue | ||
32536 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
32537 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
32538 | U=`sed -n 's/^U = //p' < "$mf"` | ||
32539 | # Find all dependency output files, they are included files with | ||
32540 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
32541 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
32542 | # expansion. | ||
32543 | for file in `sed -n " | ||
32544 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
32545 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
32546 | # Make sure the directory exists. | ||
32547 | test -f "$dirpart/$file" && continue | ||
32548 | fdir=`$as_dirname -- "$file" || | ||
32549 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
32550 | X"$file" : 'X\(//\)[^/]' \| \ | ||
32551 | X"$file" : 'X\(//\)$' \| \ | ||
32552 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
32553 | $as_echo X"$file" | | ||
32554 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
32555 | s//\1/ | ||
32556 | q | ||
32557 | } | ||
32558 | /^X\(\/\/\)[^/].*/{ | ||
32559 | s//\1/ | ||
32560 | q | ||
32561 | } | ||
32562 | /^X\(\/\/\)$/{ | ||
32563 | s//\1/ | ||
32564 | q | ||
32565 | } | ||
32566 | /^X\(\/\).*/{ | ||
32567 | s//\1/ | ||
32568 | q | ||
32569 | } | ||
32570 | s/.*/./; q'` | ||
32571 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
32572 | # echo "creating $dirpart/$file" | ||
32573 | echo '# dummy' > "$dirpart/$file" | ||
32574 | done | ||
32575 | done | ||
32576 | } | ||
32577 | ;; | ||
32578 | "libtool":C) | ||
32579 | |||
32580 | # See if we are running on zsh, and set the options which allow our | ||
32581 | # commands through without removal of \ escapes. | ||
32582 | if test -n "${ZSH_VERSION+set}" ; then | ||
32583 | setopt NO_GLOB_SUBST | ||
32584 | fi | ||
32585 | |||
32586 | cfgfile="${ofile}T" | ||
32587 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
32588 | $RM "$cfgfile" | ||
32589 | |||
32590 | cat <<_LT_EOF >> "$cfgfile" | ||
32591 | #! $SHELL | ||
32592 | |||
32593 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
32594 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
32595 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
32596 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
32597 | # | ||
32598 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
32599 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
32600 | # Written by Gordon Matzigkeit, 1996 | ||
32601 | # | ||
32602 | # This file is part of GNU Libtool. | ||
32603 | # | ||
32604 | # GNU Libtool is free software; you can redistribute it and/or | ||
32605 | # modify it under the terms of the GNU General Public License as | ||
32606 | # published by the Free Software Foundation; either version 2 of | ||
32607 | # the License, or (at your option) any later version. | ||
32608 | # | ||
32609 | # As a special exception to the GNU General Public License, | ||
32610 | # if you distribute this file as part of a program or library that | ||
32611 | # is built using GNU Libtool, you may include this file under the | ||
32612 | # same distribution terms that you use for the rest of that program. | ||
32613 | # | ||
32614 | # GNU Libtool is distributed in the hope that it will be useful, | ||
32615 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
32616 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
32617 | # GNU General Public License for more details. | ||
32618 | # | ||
32619 | # You should have received a copy of the GNU General Public License | ||
32620 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
32621 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
32622 | # obtained by writing to the Free Software Foundation, Inc., | ||
32623 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
32624 | |||
32625 | |||
32626 | # The names of the tagged configurations supported by this script. | ||
32627 | available_tags="CXX " | ||
32628 | |||
32629 | # ### BEGIN LIBTOOL CONFIG | ||
32630 | |||
32631 | # Assembler program. | ||
32632 | AS=$AS | ||
32633 | |||
32634 | # DLL creation program. | ||
32635 | DLLTOOL=$DLLTOOL | ||
32636 | |||
32637 | # Object dumper program. | ||
32638 | OBJDUMP=$OBJDUMP | ||
32639 | |||
32640 | # Which release of libtool.m4 was used? | ||
32641 | macro_version=$macro_version | ||
32642 | macro_revision=$macro_revision | ||
32643 | |||
32644 | # Whether or not to build shared libraries. | ||
32645 | build_libtool_libs=$enable_shared | ||
32646 | |||
32647 | # Whether or not to build static libraries. | ||
32648 | build_old_libs=$enable_static | ||
32649 | |||
32650 | # What type of objects to build. | ||
32651 | pic_mode=$pic_mode | ||
32652 | |||
32653 | # Whether or not to optimize for fast installation. | ||
32654 | fast_install=$enable_fast_install | ||
32655 | |||
32656 | # The host system. | ||
32657 | host_alias=$host_alias | ||
32658 | host=$host | ||
32659 | host_os=$host_os | ||
32660 | |||
32661 | # The build system. | ||
32662 | build_alias=$build_alias | ||
32663 | build=$build | ||
32664 | build_os=$build_os | ||
32665 | |||
32666 | # A sed program that does not truncate output. | ||
32667 | SED=$lt_SED | ||
32668 | |||
32669 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
32670 | Xsed="\$SED -e 1s/^X//" | ||
32671 | |||
32672 | # A grep program that handles long lines. | ||
32673 | GREP=$lt_GREP | ||
32674 | |||
32675 | # An ERE matcher. | ||
32676 | EGREP=$lt_EGREP | ||
32677 | |||
32678 | # A literal string matcher. | ||
32679 | FGREP=$lt_FGREP | ||
32680 | |||
32681 | # A BSD- or MS-compatible name lister. | ||
32682 | NM=$lt_NM | ||
32683 | |||
32684 | # Whether we need soft or hard links. | ||
32685 | LN_S=$lt_LN_S | ||
32686 | |||
32687 | # What is the maximum length of a command? | ||
32688 | max_cmd_len=$max_cmd_len | ||
32689 | |||
32690 | # Object file suffix (normally "o"). | ||
32691 | objext=$ac_objext | ||
32692 | |||
32693 | # Executable file suffix (normally ""). | ||
32694 | exeext=$exeext | ||
32695 | |||
32696 | # whether the shell understands "unset". | ||
32697 | lt_unset=$lt_unset | ||
32698 | |||
32699 | # turn spaces into newlines. | ||
32700 | SP2NL=$lt_lt_SP2NL | ||
32701 | |||
32702 | # turn newlines into spaces. | ||
32703 | NL2SP=$lt_lt_NL2SP | ||
32704 | |||
32705 | # How to create reloadable object files. | ||
32706 | reload_flag=$lt_reload_flag | ||
32707 | reload_cmds=$lt_reload_cmds | ||
32708 | |||
32709 | # Method to check whether dependent libraries are shared objects. | ||
32710 | deplibs_check_method=$lt_deplibs_check_method | ||
32711 | |||
32712 | # Command to use when deplibs_check_method == "file_magic". | ||
32713 | file_magic_cmd=$lt_file_magic_cmd | ||
32714 | |||
32715 | # The archiver. | ||
32716 | AR=$lt_AR | ||
32717 | AR_FLAGS=$lt_AR_FLAGS | ||
32718 | |||
32719 | # A symbol stripping program. | ||
32720 | STRIP=$lt_STRIP | ||
32721 | |||
32722 | # Commands used to install an old-style archive. | ||
32723 | RANLIB=$lt_RANLIB | ||
32724 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
32725 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
32726 | |||
32727 | # A C compiler. | ||
32728 | LTCC=$lt_CC | ||
32729 | |||
32730 | # LTCC compiler flags. | ||
32731 | LTCFLAGS=$lt_CFLAGS | ||
32732 | |||
32733 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
32734 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
32735 | |||
32736 | # Transform the output of nm in a proper C declaration. | ||
32737 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
32738 | |||
32739 | # Transform the output of nm in a C name address pair. | ||
32740 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
32741 | |||
32742 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
32743 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
32744 | |||
32745 | # The name of the directory that contains temporary libtool files. | ||
32746 | objdir=$objdir | ||
32747 | |||
32748 | # Shell to use when invoking shell scripts. | ||
32749 | SHELL=$lt_SHELL | ||
32750 | |||
32751 | # An echo program that does not interpret backslashes. | ||
32752 | ECHO=$lt_ECHO | ||
32753 | |||
32754 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
32755 | MAGIC_CMD=$MAGIC_CMD | ||
32756 | |||
32757 | # Must we lock files when doing compilation? | ||
32758 | need_locks=$lt_need_locks | ||
32759 | |||
32760 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
32761 | DSYMUTIL=$lt_DSYMUTIL | ||
32762 | |||
32763 | # Tool to change global to local symbols on Mac OS X. | ||
32764 | NMEDIT=$lt_NMEDIT | ||
32765 | |||
32766 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
32767 | LIPO=$lt_LIPO | ||
32768 | |||
32769 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
32770 | OTOOL=$lt_OTOOL | ||
32771 | |||
32772 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
32773 | OTOOL64=$lt_OTOOL64 | ||
32774 | |||
32775 | # Old archive suffix (normally "a"). | ||
32776 | libext=$libext | ||
32777 | |||
32778 | # Shared library suffix (normally ".so"). | ||
32779 | shrext_cmds=$lt_shrext_cmds | ||
32780 | |||
32781 | # The commands to extract the exported symbol list from a shared archive. | ||
32782 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
32783 | |||
32784 | # Variables whose values should be saved in libtool wrapper scripts and | ||
32785 | # restored at link time. | ||
32786 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
32787 | |||
32788 | # Do we need the "lib" prefix for modules? | ||
32789 | need_lib_prefix=$need_lib_prefix | ||
32790 | |||
32791 | # Do we need a version for libraries? | ||
32792 | need_version=$need_version | ||
32793 | |||
32794 | # Library versioning type. | ||
32795 | version_type=$version_type | ||
32796 | |||
32797 | # Shared library runtime path variable. | ||
32798 | runpath_var=$runpath_var | ||
32799 | |||
32800 | # Shared library path variable. | ||
32801 | shlibpath_var=$shlibpath_var | ||
32802 | |||
32803 | # Is shlibpath searched before the hard-coded library search path? | ||
32804 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
32805 | |||
32806 | # Format of library name prefix. | ||
32807 | libname_spec=$lt_libname_spec | ||
32808 | |||
32809 | # List of archive names. First name is the real one, the rest are links. | ||
32810 | # The last name is the one that the linker finds with -lNAME | ||
32811 | library_names_spec=$lt_library_names_spec | ||
32812 | |||
32813 | # The coded name of the library, if different from the real name. | ||
32814 | soname_spec=$lt_soname_spec | ||
32815 | |||
32816 | # Command to use after installation of a shared archive. | ||
32817 | postinstall_cmds=$lt_postinstall_cmds | ||
32818 | |||
32819 | # Command to use after uninstallation of a shared archive. | ||
32820 | postuninstall_cmds=$lt_postuninstall_cmds | ||
32821 | |||
32822 | # Commands used to finish a libtool library installation in a directory. | ||
32823 | finish_cmds=$lt_finish_cmds | ||
32824 | |||
32825 | # As "finish_cmds", except a single script fragment to be evaled but | ||
32826 | # not shown. | ||
32827 | finish_eval=$lt_finish_eval | ||
32828 | |||
32829 | # Whether we should hardcode library paths into libraries. | ||
32830 | hardcode_into_libs=$hardcode_into_libs | ||
32831 | |||
32832 | # Compile-time system search path for libraries. | ||
32833 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
32834 | |||
32835 | # Run-time system search path for libraries. | ||
32836 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
32837 | |||
32838 | # Whether dlopen is supported. | ||
32839 | dlopen_support=$enable_dlopen | ||
32840 | |||
32841 | # Whether dlopen of programs is supported. | ||
32842 | dlopen_self=$enable_dlopen_self | ||
32843 | |||
32844 | # Whether dlopen of statically linked programs is supported. | ||
32845 | dlopen_self_static=$enable_dlopen_self_static | ||
32846 | |||
32847 | # Commands to strip libraries. | ||
32848 | old_striplib=$lt_old_striplib | ||
32849 | striplib=$lt_striplib | ||
32850 | |||
32851 | |||
32852 | # The linker used to build libraries. | ||
32853 | LD=$lt_LD | ||
32854 | |||
32855 | # Commands used to build an old-style archive. | ||
32856 | old_archive_cmds=$lt_old_archive_cmds | ||
32857 | |||
32858 | # A language specific compiler. | ||
32859 | CC=$lt_compiler | ||
32860 | |||
32861 | # Is the compiler the GNU compiler? | ||
32862 | with_gcc=$GCC | ||
32863 | |||
32864 | # Compiler flag to turn off builtin functions. | ||
32865 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
32866 | |||
32867 | # How to pass a linker flag through the compiler. | ||
32868 | wl=$lt_lt_prog_compiler_wl | ||
32869 | |||
32870 | # Additional compiler flags for building library objects. | ||
32871 | pic_flag=$lt_lt_prog_compiler_pic | ||
32872 | |||
32873 | # Compiler flag to prevent dynamic linking. | ||
32874 | link_static_flag=$lt_lt_prog_compiler_static | ||
32875 | |||
32876 | # Does compiler simultaneously support -c and -o options? | ||
32877 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
32878 | |||
32879 | # Whether or not to add -lc for building shared libraries. | ||
32880 | build_libtool_need_lc=$archive_cmds_need_lc | ||
32881 | |||
32882 | # Whether or not to disallow shared libs when runtime libs are static. | ||
32883 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
32884 | |||
32885 | # Compiler flag to allow reflexive dlopens. | ||
32886 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
32887 | |||
32888 | # Compiler flag to generate shared objects directly from archives. | ||
32889 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
32890 | |||
32891 | # Whether the compiler copes with passing no objects directly. | ||
32892 | compiler_needs_object=$lt_compiler_needs_object | ||
32893 | |||
32894 | # Create an old-style archive from a shared archive. | ||
32895 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
32896 | |||
32897 | # Create a temporary old-style archive to link instead of a shared archive. | ||
32898 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
32899 | |||
32900 | # Commands used to build a shared archive. | ||
32901 | archive_cmds=$lt_archive_cmds | ||
32902 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
32903 | |||
32904 | # Commands used to build a loadable module if different from building | ||
32905 | # a shared archive. | ||
32906 | module_cmds=$lt_module_cmds | ||
32907 | module_expsym_cmds=$lt_module_expsym_cmds | ||
32908 | |||
32909 | # Whether we are building with GNU ld or not. | ||
32910 | with_gnu_ld=$lt_with_gnu_ld | ||
32911 | |||
32912 | # Flag that allows shared libraries with undefined symbols to be built. | ||
32913 | allow_undefined_flag=$lt_allow_undefined_flag | ||
32914 | |||
32915 | # Flag that enforces no undefined symbols. | ||
32916 | no_undefined_flag=$lt_no_undefined_flag | ||
32917 | |||
32918 | # Flag to hardcode \$libdir into a binary during linking. | ||
32919 | # This must work even if \$libdir does not exist | ||
32920 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
32921 | |||
32922 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
32923 | # during linking. This must work even if \$libdir does not exist. | ||
32924 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
32925 | |||
32926 | # Whether we need a single "-rpath" flag with a separated argument. | ||
32927 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
32928 | |||
32929 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
32930 | # DIR into the resulting binary. | ||
32931 | hardcode_direct=$hardcode_direct | ||
32932 | |||
32933 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
32934 | # DIR into the resulting binary and the resulting library dependency is | ||
32935 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
32936 | # library is relocated. | ||
32937 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
32938 | |||
32939 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
32940 | # into the resulting binary. | ||
32941 | hardcode_minus_L=$hardcode_minus_L | ||
32942 | |||
32943 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
32944 | # into the resulting binary. | ||
32945 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
32946 | |||
32947 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
32948 | # into the library and all subsequent libraries and executables linked | ||
32949 | # against it. | ||
32950 | hardcode_automatic=$hardcode_automatic | ||
32951 | |||
32952 | # Set to yes if linker adds runtime paths of dependent libraries | ||
32953 | # to runtime path list. | ||
32954 | inherit_rpath=$inherit_rpath | ||
32955 | |||
32956 | # Whether libtool must link a program against all its dependency libraries. | ||
32957 | link_all_deplibs=$link_all_deplibs | ||
32958 | |||
32959 | # Fix the shell variable \$srcfile for the compiler. | ||
32960 | fix_srcfile_path=$lt_fix_srcfile_path | ||
32961 | |||
32962 | # Set to "yes" if exported symbols are required. | ||
32963 | always_export_symbols=$always_export_symbols | ||
32964 | |||
32965 | # The commands to list exported symbols. | ||
32966 | export_symbols_cmds=$lt_export_symbols_cmds | ||
32967 | |||
32968 | # Symbols that should not be listed in the preloaded symbols. | ||
32969 | exclude_expsyms=$lt_exclude_expsyms | ||
32970 | |||
32971 | # Symbols that must always be exported. | ||
32972 | include_expsyms=$lt_include_expsyms | ||
32973 | |||
32974 | # Commands necessary for linking programs (against libraries) with templates. | ||
32975 | prelink_cmds=$lt_prelink_cmds | ||
32976 | |||
32977 | # Specify filename containing input files. | ||
32978 | file_list_spec=$lt_file_list_spec | ||
32979 | |||
32980 | # How to hardcode a shared library path into an executable. | ||
32981 | hardcode_action=$hardcode_action | ||
32982 | |||
32983 | # The directories searched by this compiler when creating a shared library. | ||
32984 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | ||
32985 | |||
32986 | # Dependencies to place before and after the objects being linked to | ||
32987 | # create a shared library. | ||
32988 | predep_objects=$lt_predep_objects | ||
32989 | postdep_objects=$lt_postdep_objects | ||
32990 | predeps=$lt_predeps | ||
32991 | postdeps=$lt_postdeps | ||
32992 | |||
32993 | # The library search path used internally by the compiler when linking | ||
32994 | # a shared library. | ||
32995 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
32996 | |||
32997 | # ### END LIBTOOL CONFIG | ||
32998 | |||
32999 | _LT_EOF | ||
33000 | |||
33001 | case $host_os in | ||
33002 | aix3*) | ||
33003 | cat <<\_LT_EOF >> "$cfgfile" | ||
33004 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
33005 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
33006 | # vanish in a puff of smoke. | ||
33007 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
33008 | COLLECT_NAMES= | ||
33009 | export COLLECT_NAMES | ||
33010 | fi | ||
33011 | _LT_EOF | ||
33012 | ;; | ||
33013 | esac | ||
33014 | |||
33015 | |||
33016 | ltmain="$ac_aux_dir/ltmain.sh" | ||
33017 | |||
33018 | |||
33019 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
33020 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
33021 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
33022 | # is reportedly fixed, but why not run on old versions too? | ||
33023 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
33024 | || (rm -f "$cfgfile"; exit 1) | ||
33025 | |||
33026 | case $xsi_shell in | ||
33027 | yes) | ||
33028 | cat << \_LT_EOF >> "$cfgfile" | ||
33029 | |||
33030 | # func_dirname file append nondir_replacement | ||
33031 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
33032 | # otherwise set result to NONDIR_REPLACEMENT. | ||
33033 | func_dirname () | ||
33034 | { | ||
33035 | case ${1} in | ||
33036 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
33037 | * ) func_dirname_result="${3}" ;; | ||
33038 | esac | ||
33039 | } | ||
33040 | |||
33041 | # func_basename file | ||
33042 | func_basename () | ||
33043 | { | ||
33044 | func_basename_result="${1##*/}" | ||
33045 | } | ||
33046 | |||
33047 | # func_dirname_and_basename file append nondir_replacement | ||
33048 | # perform func_basename and func_dirname in a single function | ||
33049 | # call: | ||
33050 | # dirname: Compute the dirname of FILE. If nonempty, | ||
33051 | # add APPEND to the result, otherwise set result | ||
33052 | # to NONDIR_REPLACEMENT. | ||
33053 | # value returned in "$func_dirname_result" | ||
33054 | # basename: Compute filename of FILE. | ||
33055 | # value retuned in "$func_basename_result" | ||
33056 | # Implementation must be kept synchronized with func_dirname | ||
33057 | # and func_basename. For efficiency, we do not delegate to | ||
33058 | # those functions but instead duplicate the functionality here. | ||
33059 | func_dirname_and_basename () | ||
33060 | { | ||
33061 | case ${1} in | ||
33062 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
33063 | * ) func_dirname_result="${3}" ;; | ||
33064 | esac | ||
33065 | func_basename_result="${1##*/}" | ||
33066 | } | ||
33067 | |||
33068 | # func_stripname prefix suffix name | ||
33069 | # strip PREFIX and SUFFIX off of NAME. | ||
33070 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
33071 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
33072 | # dot (in which case that matches only a dot). | ||
33073 | func_stripname () | ||
33074 | { | ||
33075 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
33076 | # positional parameters, so assign one to ordinary parameter first. | ||
33077 | func_stripname_result=${3} | ||
33078 | func_stripname_result=${func_stripname_result#"${1}"} | ||
33079 | func_stripname_result=${func_stripname_result%"${2}"} | ||
33080 | } | ||
33081 | |||
33082 | # func_opt_split | ||
33083 | func_opt_split () | ||
33084 | { | ||
33085 | func_opt_split_opt=${1%%=*} | ||
33086 | func_opt_split_arg=${1#*=} | ||
33087 | } | ||
33088 | |||
33089 | # func_lo2o object | ||
33090 | func_lo2o () | ||
33091 | { | ||
33092 | case ${1} in | ||
33093 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
33094 | *) func_lo2o_result=${1} ;; | ||
33095 | esac | ||
33096 | } | ||
33097 | |||
33098 | # func_xform libobj-or-source | ||
33099 | func_xform () | ||
33100 | { | ||
33101 | func_xform_result=${1%.*}.lo | ||
33102 | } | ||
33103 | |||
33104 | # func_arith arithmetic-term... | ||
33105 | func_arith () | ||
33106 | { | ||
33107 | func_arith_result=$(( $* )) | ||
33108 | } | ||
33109 | |||
33110 | # func_len string | ||
33111 | # STRING may not start with a hyphen. | ||
33112 | func_len () | ||
33113 | { | ||
33114 | func_len_result=${#1} | ||
33115 | } | ||
33116 | |||
33117 | _LT_EOF | ||
33118 | ;; | ||
33119 | *) # Bourne compatible functions. | ||
33120 | cat << \_LT_EOF >> "$cfgfile" | ||
33121 | |||
33122 | # func_dirname file append nondir_replacement | ||
33123 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
33124 | # otherwise set result to NONDIR_REPLACEMENT. | ||
33125 | func_dirname () | ||
33126 | { | ||
33127 | # Extract subdirectory from the argument. | ||
33128 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
33129 | if test "X$func_dirname_result" = "X${1}"; then | ||
33130 | func_dirname_result="${3}" | ||
33131 | else | ||
33132 | func_dirname_result="$func_dirname_result${2}" | ||
33133 | fi | ||
33134 | } | ||
33135 | |||
33136 | # func_basename file | ||
33137 | func_basename () | ||
33138 | { | ||
33139 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
33140 | } | ||
33141 | |||
33142 | |||
33143 | # func_stripname prefix suffix name | ||
33144 | # strip PREFIX and SUFFIX off of NAME. | ||
33145 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
33146 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
33147 | # dot (in which case that matches only a dot). | ||
33148 | # func_strip_suffix prefix name | ||
33149 | func_stripname () | ||
33150 | { | ||
33151 | case ${2} in | ||
33152 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
33153 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
33154 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
33155 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
33156 | esac | ||
33157 | } | ||
33158 | |||
33159 | # sed scripts: | ||
33160 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
33161 | my_sed_long_arg='1s/^-[^=]*=//' | ||
33162 | |||
33163 | # func_opt_split | ||
33164 | func_opt_split () | ||
33165 | { | ||
33166 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
33167 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
33168 | } | ||
33169 | |||
33170 | # func_lo2o object | ||
33171 | func_lo2o () | ||
33172 | { | ||
33173 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
33174 | } | ||
33175 | |||
33176 | # func_xform libobj-or-source | ||
33177 | func_xform () | ||
33178 | { | ||
33179 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
33180 | } | ||
33181 | |||
33182 | # func_arith arithmetic-term... | ||
33183 | func_arith () | ||
33184 | { | ||
33185 | func_arith_result=`expr "$@"` | ||
33186 | } | ||
33187 | |||
33188 | # func_len string | ||
33189 | # STRING may not start with a hyphen. | ||
33190 | func_len () | ||
33191 | { | ||
33192 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
33193 | } | ||
33194 | |||
33195 | _LT_EOF | ||
33196 | esac | ||
33197 | |||
33198 | case $lt_shell_append in | ||
33199 | yes) | ||
33200 | cat << \_LT_EOF >> "$cfgfile" | ||
33201 | |||
33202 | # func_append var value | ||
33203 | # Append VALUE to the end of shell variable VAR. | ||
33204 | func_append () | ||
33205 | { | ||
33206 | eval "$1+=\$2" | ||
33207 | } | ||
33208 | _LT_EOF | ||
33209 | ;; | ||
33210 | *) | ||
33211 | cat << \_LT_EOF >> "$cfgfile" | ||
33212 | |||
33213 | # func_append var value | ||
33214 | # Append VALUE to the end of shell variable VAR. | ||
33215 | func_append () | ||
33216 | { | ||
33217 | eval "$1=\$$1\$2" | ||
33218 | } | ||
33219 | |||
33220 | _LT_EOF | ||
33221 | ;; | ||
33222 | esac | ||
33223 | |||
33224 | |||
33225 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
33226 | || (rm -f "$cfgfile"; exit 1) | ||
33227 | |||
33228 | mv -f "$cfgfile" "$ofile" || | ||
33229 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
33230 | chmod +x "$ofile" | ||
33231 | |||
33232 | |||
33233 | cat <<_LT_EOF >> "$ofile" | ||
33234 | |||
33235 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | ||
33236 | |||
33237 | # The linker used to build libraries. | ||
33238 | LD=$lt_LD_CXX | ||
33239 | |||
33240 | # Commands used to build an old-style archive. | ||
33241 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
33242 | |||
33243 | # A language specific compiler. | ||
33244 | CC=$lt_compiler_CXX | ||
33245 | |||
33246 | # Is the compiler the GNU compiler? | ||
33247 | with_gcc=$GCC_CXX | ||
33248 | |||
33249 | # Compiler flag to turn off builtin functions. | ||
33250 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
33251 | |||
33252 | # How to pass a linker flag through the compiler. | ||
33253 | wl=$lt_lt_prog_compiler_wl_CXX | ||
33254 | |||
33255 | # Additional compiler flags for building library objects. | ||
33256 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
33257 | |||
33258 | # Compiler flag to prevent dynamic linking. | ||
33259 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
33260 | |||
33261 | # Does compiler simultaneously support -c and -o options? | ||
33262 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
33263 | |||
33264 | # Whether or not to add -lc for building shared libraries. | ||
33265 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
33266 | |||
33267 | # Whether or not to disallow shared libs when runtime libs are static. | ||
33268 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
33269 | |||
33270 | # Compiler flag to allow reflexive dlopens. | ||
33271 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
33272 | |||
33273 | # Compiler flag to generate shared objects directly from archives. | ||
33274 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
33275 | |||
33276 | # Whether the compiler copes with passing no objects directly. | ||
33277 | compiler_needs_object=$lt_compiler_needs_object_CXX | ||
33278 | |||
33279 | # Create an old-style archive from a shared archive. | ||
33280 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
33281 | |||
33282 | # Create a temporary old-style archive to link instead of a shared archive. | ||
33283 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
33284 | |||
33285 | # Commands used to build a shared archive. | ||
33286 | archive_cmds=$lt_archive_cmds_CXX | ||
33287 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
33288 | |||
33289 | # Commands used to build a loadable module if different from building | ||
33290 | # a shared archive. | ||
33291 | module_cmds=$lt_module_cmds_CXX | ||
33292 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
33293 | |||
33294 | # Whether we are building with GNU ld or not. | ||
33295 | with_gnu_ld=$lt_with_gnu_ld_CXX | ||
33296 | |||
33297 | # Flag that allows shared libraries with undefined symbols to be built. | ||
33298 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
33299 | |||
33300 | # Flag that enforces no undefined symbols. | ||
33301 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
33302 | |||
33303 | # Flag to hardcode \$libdir into a binary during linking. | ||
33304 | # This must work even if \$libdir does not exist | ||
33305 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
33306 | |||
33307 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
33308 | # during linking. This must work even if \$libdir does not exist. | ||
33309 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
33310 | |||
33311 | # Whether we need a single "-rpath" flag with a separated argument. | ||
33312 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
33313 | |||
33314 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
33315 | # DIR into the resulting binary. | ||
33316 | hardcode_direct=$hardcode_direct_CXX | ||
33317 | |||
33318 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
33319 | # DIR into the resulting binary and the resulting library dependency is | ||
33320 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
33321 | # library is relocated. | ||
33322 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | ||
33323 | |||
33324 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
33325 | # into the resulting binary. | ||
33326 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
33327 | |||
33328 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
33329 | # into the resulting binary. | ||
33330 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
33331 | |||
33332 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
33333 | # into the library and all subsequent libraries and executables linked | ||
33334 | # against it. | ||
33335 | hardcode_automatic=$hardcode_automatic_CXX | ||
33336 | |||
33337 | # Set to yes if linker adds runtime paths of dependent libraries | ||
33338 | # to runtime path list. | ||
33339 | inherit_rpath=$inherit_rpath_CXX | ||
33340 | |||
33341 | # Whether libtool must link a program against all its dependency libraries. | ||
33342 | link_all_deplibs=$link_all_deplibs_CXX | ||
33343 | |||
33344 | # Fix the shell variable \$srcfile for the compiler. | ||
33345 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | ||
33346 | |||
33347 | # Set to "yes" if exported symbols are required. | ||
33348 | always_export_symbols=$always_export_symbols_CXX | ||
33349 | |||
33350 | # The commands to list exported symbols. | ||
33351 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
33352 | |||
33353 | # Symbols that should not be listed in the preloaded symbols. | ||
33354 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
33355 | |||
33356 | # Symbols that must always be exported. | ||
33357 | include_expsyms=$lt_include_expsyms_CXX | ||
33358 | |||
33359 | # Commands necessary for linking programs (against libraries) with templates. | ||
33360 | prelink_cmds=$lt_prelink_cmds_CXX | ||
33361 | |||
33362 | # Specify filename containing input files. | ||
33363 | file_list_spec=$lt_file_list_spec_CXX | ||
33364 | |||
33365 | # How to hardcode a shared library path into an executable. | ||
33366 | hardcode_action=$hardcode_action_CXX | ||
33367 | |||
33368 | # The directories searched by this compiler when creating a shared library. | ||
33369 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | ||
33370 | |||
33371 | # Dependencies to place before and after the objects being linked to | ||
33372 | # create a shared library. | ||
33373 | predep_objects=$lt_predep_objects_CXX | ||
33374 | postdep_objects=$lt_postdep_objects_CXX | ||
33375 | predeps=$lt_predeps_CXX | ||
33376 | postdeps=$lt_postdeps_CXX | ||
33377 | |||
33378 | # The library search path used internally by the compiler when linking | ||
33379 | # a shared library. | ||
33380 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
33381 | |||
33382 | # ### END LIBTOOL TAG CONFIG: CXX | ||
33383 | _LT_EOF | ||
33384 | |||
33385 | ;; | ||
33386 | "po-directories":C) | ||
33387 | for ac_file in $CONFIG_FILES; do | ||
33388 | # Support "outfile[:infile[:infile...]]" | ||
33389 | case "$ac_file" in | ||
33390 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
33391 | esac | ||
33392 | # PO directories have a Makefile.in generated from Makefile.in.in. | ||
33393 | case "$ac_file" in */Makefile.in) | ||
33394 | # Adjust a relative srcdir. | ||
33395 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | ||
33396 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | ||
33397 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | ||
33398 | # In autoconf-2.13 it is called $ac_given_srcdir. | ||
33399 | # In autoconf-2.50 it is called $srcdir. | ||
33400 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | ||
33401 | case "$ac_given_srcdir" in | ||
33402 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | ||
33403 | /*) top_srcdir="$ac_given_srcdir" ;; | ||
33404 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
33405 | esac | ||
33406 | # Treat a directory as a PO directory if and only if it has a | ||
33407 | # POTFILES.in file. This allows packages to have multiple PO | ||
33408 | # directories under different names or in different locations. | ||
33409 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | ||
33410 | rm -f "$ac_dir/POTFILES" | ||
33411 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | ||
33412 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | ||
33413 | POMAKEFILEDEPS="POTFILES.in" | ||
33414 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | ||
33415 | # on $ac_dir but don't depend on user-specified configuration | ||
33416 | # parameters. | ||
33417 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | ||
33418 | # The LINGUAS file contains the set of available languages. | ||
33419 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | ||
33420 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | ||
33421 | fi | ||
33422 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | ||
33423 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | ||
33424 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | ||
33425 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | ||
33426 | else | ||
33427 | # The set of available languages was given in configure.in. | ||
33428 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | ||
33429 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | ||
33430 | fi | ||
33431 | # Compute POFILES | ||
33432 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | ||
33433 | # Compute UPDATEPOFILES | ||
33434 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | ||
33435 | # Compute DUMMYPOFILES | ||
33436 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | ||
33437 | # Compute GMOFILES | ||
33438 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | ||
33439 | case "$ac_given_srcdir" in | ||
33440 | .) srcdirpre= ;; | ||
33441 | *) srcdirpre='$(srcdir)/' ;; | ||
33442 | esac | ||
33443 | POFILES= | ||
33444 | UPDATEPOFILES= | ||
33445 | DUMMYPOFILES= | ||
33446 | GMOFILES= | ||
33447 | for lang in $ALL_LINGUAS; do | ||
33448 | POFILES="$POFILES $srcdirpre$lang.po" | ||
33449 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | ||
33450 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | ||
33451 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | ||
33452 | done | ||
33453 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | ||
33454 | # environment variable. | ||
33455 | INST_LINGUAS= | ||
33456 | if test -n "$ALL_LINGUAS"; then | ||
33457 | for presentlang in $ALL_LINGUAS; do | ||
33458 | useit=no | ||
33459 | if test "%UNSET%" != "$LINGUAS"; then | ||
33460 | desiredlanguages="$LINGUAS" | ||
33461 | else | ||
33462 | desiredlanguages="$ALL_LINGUAS" | ||
33463 | fi | ||
33464 | for desiredlang in $desiredlanguages; do | ||
33465 | # Use the presentlang catalog if desiredlang is | ||
33466 | # a. equal to presentlang, or | ||
33467 | # b. a variant of presentlang (because in this case, | ||
33468 | # presentlang can be used as a fallback for messages | ||
33469 | # which are not translated in the desiredlang catalog). | ||
33470 | case "$desiredlang" in | ||
33471 | "$presentlang"*) useit=yes;; | ||
33472 | esac | ||
33473 | done | ||
33474 | if test $useit = yes; then | ||
33475 | INST_LINGUAS="$INST_LINGUAS $presentlang" | ||
33476 | fi | ||
33477 | done | ||
33478 | fi | ||
33479 | CATALOGS= | ||
33480 | if test -n "$INST_LINGUAS"; then | ||
33481 | for lang in $INST_LINGUAS; do | ||
33482 | CATALOGS="$CATALOGS $lang.gmo" | ||
33483 | done | ||
33484 | fi | ||
33485 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | ||
33486 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | ||
33487 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | ||
33488 | if test -f "$f"; then | ||
33489 | case "$f" in | ||
33490 | *.orig | *.bak | *~) ;; | ||
33491 | *) cat "$f" >> "$ac_dir/Makefile" ;; | ||
33492 | esac | ||
33493 | fi | ||
33494 | done | ||
33495 | fi | ||
33496 | ;; | ||
33497 | esac | ||
33498 | done ;; | ||
33499 | |||
33500 | esac | ||
33501 | done # for ac_tag | ||
33502 | |||
33503 | |||
33504 | as_fn_exit 0 | ||
33505 | _ACEOF | ||
33506 | ac_clean_files=$ac_clean_files_save | ||
33507 | |||
33508 | test $ac_write_fail = 0 || | ||
33509 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
33510 | |||
33511 | |||
33512 | # configure is writing to config.log, and then calls config.status. | ||
33513 | # config.status does its own redirection, appending to config.log. | ||
33514 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
33515 | # by configure, so config.status won't be able to write to it; its | ||
33516 | # output is simply discarded. So we exec the FD to /dev/null, | ||
33517 | # effectively closing config.log, so it can be properly (re)opened and | ||
33518 | # appended to by config.status. When coming back to configure, we | ||
33519 | # need to make the FD available again. | ||
33520 | if test "$no_create" != yes; then | ||
33521 | ac_cs_success=: | ||
33522 | ac_config_status_args= | ||
33523 | test "$silent" = yes && | ||
33524 | ac_config_status_args="$ac_config_status_args --quiet" | ||
33525 | exec 5>/dev/null | ||
33526 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
33527 | exec 5>>config.log | ||
33528 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
33529 | # would make configure fail if this is the last instruction. | ||
33530 | $ac_cs_success || as_fn_exit 1 | ||
33531 | fi | ||
33532 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
33533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
33534 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
33535 | fi | ||
33536 | |||
33537 | |||
33538 | echo | ||
33539 | echo "$PACKAGE $VERSION" | ||
33540 | echo | ||
33541 | echo "Optional Modules:" | ||
33542 | echo | ||
33543 | echo " Core:" | ||
33544 | echo | ||
33545 | echo " Ecore........................: always" | ||
33546 | echo " Thread support.............: $have_threads" | ||
33547 | echo " Thread safety..............: $want_thread_safety" | ||
33548 | echo " GLib support...............: $have_glib" | ||
33549 | echo " Always integrate GLib......: $want_glib_integration_always" | ||
33550 | echo " Use g_main_loop............: $want_g_main_loop" | ||
33551 | echo " Gathering memory statistic.: $have_mallinfo" | ||
33552 | echo " Gathering timer allocation.: $want_ecore_timer_dump" | ||
33553 | echo " Ecore_Con....................: $have_ecore_con" | ||
33554 | if test "x$have_ecore_con" = "xyes" ; then | ||
33555 | echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C" | ||
33556 | if test "x$have_gnutls" = "xyes" ; then | ||
33557 | echo " (disabled)" | ||
33558 | else | ||
33559 | echo | ||
33560 | fi | ||
33561 | echo " IPv6.......................: $have_ipv6" | ||
33562 | echo " GnuTLS.....................: $have_gnutls" | ||
33563 | echo " CURL.......................: $have_curl" | ||
33564 | echo " Local Sockets..............: $want_ecore_con_local_sockets" | ||
33565 | if test "x$want_ecore_con_local_sockets" = "xyes" ; then | ||
33566 | echo " Abstract Sockets.........: $want_ecore_con_abstract_sockets" | ||
33567 | fi | ||
33568 | echo " c-ares.....................: $have_cares" | ||
33569 | fi | ||
33570 | echo " Ecore_Ipc....................: $have_ecore_ipc" | ||
33571 | if test "x$have_ecore_ipc" = "xyes" ; then | ||
33572 | echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C" | ||
33573 | if test "x$have_gnutls" = "xyes" ; then | ||
33574 | echo " (disabled)" | ||
33575 | else | ||
33576 | echo | ||
33577 | fi | ||
33578 | echo " GnuTLS.....................: $have_gnutls" | ||
33579 | fi | ||
33580 | echo " Ecore_File...................: $have_ecore_file" | ||
33581 | if test "x$have_ecore_file" = "xyes" ; then | ||
33582 | echo " Inotify....................: $have_inotify" | ||
33583 | echo " Windows notification.......: $have_notify_win32" | ||
33584 | echo " Poll.......................: $have_poll" | ||
33585 | echo " CURL.......................: $have_curl" | ||
33586 | fi | ||
33587 | #echo " Ecore_Config.................: $have_ecore_config (deprecated)" | ||
33588 | echo " Ecore_IMF....................: $have_ecore_imf" | ||
33589 | echo " XIM........................: $have_ecore_imf_xim" | ||
33590 | echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas" | ||
33591 | echo " Ecore_Input..................: $have_ecore_input" | ||
33592 | echo " Ecore_Input_Evas.............: $have_ecore_input_evas" | ||
33593 | |||
33594 | echo | ||
33595 | echo " Graphic systems:" | ||
33596 | echo | ||
33597 | |||
33598 | if test "x$have_ecore_x" = "xyes" ; then | ||
33599 | if test "x$have_ecore_x_xcb" = "xyes" ; then | ||
33600 | echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb" | ||
33601 | echo " Xprint.....................: $have_ecore_x_xcb_xprint" | ||
33602 | echo " Xinerama...................: $have_ecore_x_xcb_xinerama" | ||
33603 | echo " Xrandr.....................: $have_ecore_x_xcb_randr" | ||
33604 | echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver" | ||
33605 | echo " Xshape.....................: $have_ecore_x_xcb_shape" | ||
33606 | echo " Xgesture...................: $have_ecore_x_xcb_gesture" | ||
33607 | echo " Xsync......................: $have_ecore_x_xcb_sync" | ||
33608 | echo " Xrender....................: $have_ecore_x_xcb_render" | ||
33609 | echo " Xcomposite.................: $have_ecore_x_xcb_composite" | ||
33610 | echo " Xfixes.....................: $have_ecore_x_xcb_xfixes" | ||
33611 | echo " Xdamage....................: $have_ecore_x_xcb_damage" | ||
33612 | echo " Xdpms......................: $have_ecore_x_xcb_dpms" | ||
33613 | echo " Xtest......................: $have_ecore_x_xcb_xtest" | ||
33614 | else | ||
33615 | echo " Ecore_X (Xlib backend).......: $have_ecore_x" | ||
33616 | echo " Xcursor....................: $use_Xcursor" | ||
33617 | echo " Xkb........................: $use_xkb" | ||
33618 | echo " Xprint.....................: $use_xprint" | ||
33619 | echo " Xinerama...................: $use_xinerama" | ||
33620 | echo " Xrandr.....................: $use_xrandr" | ||
33621 | echo " Xgesture...................: $use_xgesture" | ||
33622 | echo " Xscreensaver...............: $use_xss" | ||
33623 | echo " Xrender....................: $use_xrender" | ||
33624 | echo " Xcomposite.................: $use_xcomposite" | ||
33625 | echo " Xfixes.....................: $use_xfixes" | ||
33626 | echo " Xdamage....................: $use_xdamage" | ||
33627 | echo " Xdpms......................: $use_xdpms" | ||
33628 | echo " Xtest......................: $use_xtest" | ||
33629 | echo " XIM........................: $want_xim" | ||
33630 | echo " Xi2........................: $use_xi2" | ||
33631 | fi | ||
33632 | else | ||
33633 | echo " Ecore_X......................: $have_ecore_x" | ||
33634 | fi | ||
33635 | echo " Ecore_Win32..................: $have_ecore_win32" | ||
33636 | echo " Ecore_Cocoa..................: $have_ecore_cocoa" | ||
33637 | echo " Ecore_SDL....................: $have_ecore_sdl" | ||
33638 | echo " Ecore_FB.....................: $have_ecore_fb" | ||
33639 | if test "x${have_ecore_fb}" = "xyes" ; then | ||
33640 | echo " Touchscreen................: $have_tslib" | ||
33641 | fi | ||
33642 | echo " Ecore_DirectFB...............: $have_ecore_directfb" | ||
33643 | echo " Ecore_WinCE..................: $have_ecore_wince" | ||
33644 | echo " Ecore_PSL1GHT................: $have_ecore_psl1ght" | ||
33645 | |||
33646 | echo | ||
33647 | echo " Ecore Evas:" | ||
33648 | echo | ||
33649 | |||
33650 | echo " Ecore_Evas...................: $have_ecore_evas" | ||
33651 | if test "x${have_ecore_evas}" = "xyes" ; then | ||
33652 | echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer" | ||
33653 | if test "x${have_ecore_evas_software_x11}" = "xyes" ; then | ||
33654 | echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})" | ||
33655 | else | ||
33656 | echo " Software X11...............: $have_ecore_evas_software_x11" | ||
33657 | fi | ||
33658 | if test "x${have_ecore_evas_opengl_x11}" = "xyes" ; then | ||
33659 | echo " OpenGL X11.................: $have_ecore_evas_opengl_x11 (Xlib=${have_ecore_evas_opengl_xlib}) (XCB=${have_ecore_evas_opengl_xcb})" | ||
33660 | else | ||
33661 | echo " OpenGL X11.................: $have_ecore_evas_opengl_x11" | ||
33662 | fi | ||
33663 | echo " Software GDI...............: $have_ecore_evas_software_gdi" | ||
33664 | echo " Software DirectDraw........: $have_ecore_evas_software_ddraw" | ||
33665 | echo " Direct3D...................: $have_ecore_evas_direct3d" | ||
33666 | echo " OpenGL Glew................: $have_ecore_evas_opengl_glew" | ||
33667 | echo " Software SDL...............: $have_ecore_evas_software_sdl" | ||
33668 | echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl" | ||
33669 | echo " OpenGL Cocoa...............: $have_ecore_evas_opengl_cocoa" | ||
33670 | echo " DirectFB...................: $have_ecore_evas_directfb" | ||
33671 | echo " PSL1GHT....................: $have_ecore_evas_psl1ght" | ||
33672 | echo " Software Framebuffer.......: $have_ecore_evas_fb" | ||
33673 | echo " Software 8bit grayscale XCB: $have_ecore_evas_software_8_x11" | ||
33674 | echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11" | ||
33675 | echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw" | ||
33676 | echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince" | ||
33677 | echo " Sing.Proc. Windowing System: $have_ecore_evas_ews" | ||
33678 | fi | ||
33679 | echo | ||
33680 | echo " Tests................: ${enable_tests}" | ||
33681 | echo " Maximum log level....: ${with_max_log_level}" | ||
33682 | echo "Documentation..........: ${build_doc}" | ||
33683 | echo | ||
33684 | echo "Compilation............: make (or gmake)" | ||
33685 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
33686 | echo " CFLAGS...............: $CFLAGS" | ||
33687 | echo " CXXFLAGS.............: $CXXFLAGS" | ||
33688 | echo " LDFLAGS..............: $LDFLAGS" | ||
33689 | echo | ||
33690 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
33691 | echo " prefix...............: $prefix" | ||
33692 | echo | ||
diff --git a/libraries/ecore/configure.ac b/libraries/ecore/configure.ac new file mode 100644 index 0000000..78806c1 --- /dev/null +++ b/libraries/ecore/configure.ac | |||
@@ -0,0 +1,2058 @@ | |||
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 | AC_INIT([ecore], [v_ver], [enlightenment-devel@lists.sourceforge.net]) | ||
22 | AC_PREREQ([2.52]) | ||
23 | AC_CONFIG_SRCDIR([configure.ac]) | ||
24 | AC_CONFIG_MACRO_DIR([m4]) | ||
25 | |||
26 | AC_CONFIG_HEADERS([config.h]) | ||
27 | AH_TOP([ | ||
28 | #ifndef EFL_CONFIG_H__ | ||
29 | #define EFL_CONFIG_H__ | ||
30 | ]) | ||
31 | AH_BOTTOM([ | ||
32 | #endif /* EFL_CONFIG_H__ */ | ||
33 | ]) | ||
34 | |||
35 | AM_INIT_AUTOMAKE([1.6 dist-bzip2]) | ||
36 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
37 | |||
38 | AC_GNU_SOURCE | ||
39 | |||
40 | AC_LIBTOOL_WIN32_DLL | ||
41 | define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl | ||
42 | AC_PROG_LIBTOOL | ||
43 | |||
44 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
45 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
46 | m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) | ||
47 | m4_ifdef([v_rel], , [m4_define([v_rel], [])]) | ||
48 | AC_DEFINE_UNQUOTED(VERS_MAJ, [v_maj], [Major version]) | ||
49 | AC_DEFINE_UNQUOTED(VERS_MIN, [v_min], [Minor version]) | ||
50 | AC_DEFINE_UNQUOTED(VERS_MIC, [v_mic], [Micro version]) | ||
51 | AC_DEFINE_UNQUOTED(VERS_REV, [v_rev], [Revison]) | ||
52 | version_info="lt_cur:lt_rev:lt_age" | ||
53 | release_info="v_rel" | ||
54 | AC_SUBST(version_info) | ||
55 | AC_SUBST(release_info) | ||
56 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
57 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
58 | VMAJ=v_maj | ||
59 | AC_SUBST(VMAJ) | ||
60 | |||
61 | m4_ifdef([AM_GNU_GETTEXT_VERSION], [ | ||
62 | AM_GNU_GETTEXT_VERSION([0.17]) | ||
63 | ]) | ||
64 | |||
65 | m4_ifdef([AM_GNU_GETTEXT], [ | ||
66 | AM_GNU_GETTEXT([external]) | ||
67 | po_makefile_in=po/Makefile.in | ||
68 | have_po="yes" | ||
69 | ],[ | ||
70 | have_po="no" | ||
71 | ]) | ||
72 | AC_SUBST(LTLIBINTL) | ||
73 | |||
74 | if test "x${POSUB}" = "x" ; then | ||
75 | have_po="no" | ||
76 | fi | ||
77 | |||
78 | AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"]) | ||
79 | |||
80 | with_max_log_level="<unset>" | ||
81 | AC_ARG_WITH(internal-maximum-log-level, | ||
82 | [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER], | ||
83 | [limit ecore internal log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])], | ||
84 | [ | ||
85 | if test "x${withval}" != "xno"; then | ||
86 | if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then | ||
87 | AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}]) | ||
88 | AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.]) | ||
89 | with_max_log_level="${withval}" | ||
90 | else | ||
91 | AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.]) | ||
92 | fi | ||
93 | fi | ||
94 | ], [:]) | ||
95 | |||
96 | |||
97 | ### Default options with respect to host | ||
98 | |||
99 | AC_CANONICAL_BUILD | ||
100 | AC_CANONICAL_HOST | ||
101 | |||
102 | # dependencies and options | ||
103 | want_curl="no" | ||
104 | want_local_sockets="yes" | ||
105 | want_abstract_sockets="no" | ||
106 | want_gnutls="no" | ||
107 | want_openssl="no" | ||
108 | want_cares="no" | ||
109 | want_cipher="no" | ||
110 | want_signature="no" | ||
111 | want_poll="yes" | ||
112 | want_inotify="no" | ||
113 | want_notify_win32="no" | ||
114 | want_tslib="no" | ||
115 | want_glib="no" | ||
116 | |||
117 | # core modules | ||
118 | want_ecore_con="yes" | ||
119 | want_ecore_ipc="yes" | ||
120 | want_ecore_file="yes" | ||
121 | #want_ecore_config="no" | ||
122 | want_ecore_imf="no" | ||
123 | want_ecore_input="yes" | ||
124 | |||
125 | # graphic system modules | ||
126 | want_evas_simple_x11="no" | ||
127 | want_ecore_x_xcb="no" | ||
128 | want_ecore_x="no" | ||
129 | want_ecore_win32="no" | ||
130 | want_ecore_cocoa="no" | ||
131 | want_ecore_sdl="no" | ||
132 | want_ecore_psl1ght="no" | ||
133 | want_ecore_fb="no" | ||
134 | want_ecore_directfb="no" | ||
135 | want_ecore_wince="no" | ||
136 | |||
137 | # ecore_x options (both xlib and xcb) | ||
138 | want_ecore_x_composite="yes" | ||
139 | want_ecore_x_damage="yes" | ||
140 | want_ecore_x_dpms="yes" | ||
141 | want_ecore_x_randr="yes" | ||
142 | want_ecore_x_render="yes" | ||
143 | want_ecore_x_screensaver="yes" | ||
144 | want_ecore_x_shape="yes" | ||
145 | want_ecore_x_gesture="no" | ||
146 | want_ecore_x_sync="yes" | ||
147 | want_ecore_x_xfixes="yes" | ||
148 | want_ecore_x_xinerama="yes" | ||
149 | want_ecore_x_xprint="yes" | ||
150 | want_ecore_x_xtest="yes" | ||
151 | want_ecore_x_cursor="yes" | ||
152 | want_ecore_x_input="yes" | ||
153 | want_ecore_x_dri="yes" | ||
154 | |||
155 | # ecore_evas modules | ||
156 | want_ecore_evas="yes" | ||
157 | want_ecore_evas_software_buffer="yes" | ||
158 | want_ecore_evas_software_x11="no" | ||
159 | want_ecore_evas_opengl_x11="no" | ||
160 | want_ecore_evas_software_16_x11="no" | ||
161 | want_ecore_evas_software_8_x11="no" | ||
162 | want_ecore_evas_software_xcb="no" | ||
163 | want_ecore_evas_software_gdi="no" | ||
164 | want_ecore_evas_software_ddraw="no" | ||
165 | want_ecore_evas_direct3d="no" | ||
166 | want_ecore_evas_opengl_glew="no" | ||
167 | want_ecore_evas_software_16_ddraw="no" | ||
168 | want_ecore_evas_software_sdl="no" | ||
169 | want_ecore_evas_gl_sdl="no" | ||
170 | want_ecore_evas_gl_cocoa="no" | ||
171 | want_ecore_evas_psl1ght="no" | ||
172 | want_ecore_evas_directfb="no" | ||
173 | want_ecore_evas_fb="no" | ||
174 | want_ecore_evas_software_16_wince="no" | ||
175 | want_ecore_evas_ews="yes" | ||
176 | |||
177 | # ecore_imf modules | ||
178 | want_ecore_imf_xim="no" | ||
179 | |||
180 | case "$host_os" in | ||
181 | mingw32ce* | cegcc*) | ||
182 | want_ecore_con="no" | ||
183 | want_ecore_ipc="no" | ||
184 | want_ecore_wince="yes" | ||
185 | want_ecore_evas_software_16_wince="yes" | ||
186 | ;; | ||
187 | mingw*) | ||
188 | want_notify_win32="yes" | ||
189 | want_curl="yes" | ||
190 | want_glib="auto" | ||
191 | want_gnutls="auto" | ||
192 | want_openssl="auto" | ||
193 | want_ecore_imf="yes" | ||
194 | want_ecore_win32="yes" | ||
195 | want_ecore_evas_software_gdi="yes" | ||
196 | want_ecore_evas_software_ddraw="yes" | ||
197 | want_ecore_evas_direct3d="yes" | ||
198 | want_ecore_evas_opengl_glew="yes" | ||
199 | want_ecore_evas_software_16_ddraw="auto" | ||
200 | want_ecore_evas_software_sdl="yes" | ||
201 | want_ecore_evas_gl_sdl="yes" | ||
202 | ;; | ||
203 | darwin*) | ||
204 | want_curl="yes" | ||
205 | want_glib="auto" | ||
206 | want_gnutls="auto" | ||
207 | want_openssl="auto" | ||
208 | want_ecore_imf="yes" | ||
209 | want_ecore_cocoa="yes" | ||
210 | want_ecore_evas_software_sdl="yes" | ||
211 | want_ecore_evas_gl_sdl="yes" | ||
212 | want_ecore_evas_gl_cocoa="yes" | ||
213 | ;; | ||
214 | *) | ||
215 | want_curl="yes" | ||
216 | want_glib="auto" | ||
217 | want_abstract_sockets="yes" | ||
218 | want_gnutls="auto" | ||
219 | want_openssl="auto" | ||
220 | want_cipher="yes" | ||
221 | want_signature="yes" | ||
222 | want_inotify="yes" | ||
223 | want_tslib="yes" | ||
224 | want_ecore_fb="yes" | ||
225 | want_ecore_imf="yes" | ||
226 | want_ecore_x="yes" | ||
227 | want_ecore_evas_software_x11="yes" | ||
228 | want_ecore_evas_opengl_x11="yes" | ||
229 | want_ecore_evas_software_16_x11="yes" | ||
230 | want_ecore_evas_software_8_x11="yes" | ||
231 | want_ecore_evas_software_xcb="no" | ||
232 | want_ecore_evas_software_sdl="yes" | ||
233 | want_ecore_evas_gl_sdl="yes" | ||
234 | want_ecore_evas_gl_cocoa="no" | ||
235 | want_ecore_evas_directfb="yes" | ||
236 | want_ecore_evas_fb="yes" | ||
237 | want_ecore_imf_xim="yes" | ||
238 | ;; | ||
239 | esac | ||
240 | |||
241 | case "$host_vendor" in | ||
242 | ps3*) | ||
243 | want_local_sockets="no" | ||
244 | ;; | ||
245 | esac | ||
246 | requirements_ecore="" | ||
247 | requirements_ecore_con="" | ||
248 | #requirements_ecore_config="" | ||
249 | requirements_ecore_directfb="" | ||
250 | requirements_ecore_evas="" | ||
251 | requirements_ecore_fb="" | ||
252 | requirements_ecore_file="" | ||
253 | requirements_ecore_imf="" | ||
254 | requirements_ecore_imf_evas="" | ||
255 | requirements_ecore_input="" | ||
256 | requirements_ecore_input_evas="" | ||
257 | requirements_ecore_ipc="" | ||
258 | requirements_ecore_cocoa="" | ||
259 | requirements_ecore_sdl="" | ||
260 | requirements_ecore_psl1ght="" | ||
261 | requirements_ecore_x="" | ||
262 | requirements_ecore_win32="" | ||
263 | requirements_ecore_wince="" | ||
264 | requirements_ecore_imf_xim="" | ||
265 | |||
266 | AC_CHECK_DECL([MAXHOSTNAMELEN],[FOUND_MAXHOSTNAMELEN=yes]) | ||
267 | |||
268 | if test x$FOUND_MAXHOSTNAMELEN != xyes ; then | ||
269 | AC_MSG_CHECKING([for header that defines MAXHOSTNAMELEN]) | ||
270 | |||
271 | FOUND_MAXHOSTNAMELEN='not found' | ||
272 | |||
273 | AC_COMPILE_IFELSE( | ||
274 | AC_LANG_PROGRAM([#include <sys/param.h>], | ||
275 | [int h = MAXHOSTNAMELEN;]), | ||
276 | [FOUND_MAXHOSTNAMELEN='sys/param.h' | ||
277 | AC_DEFINE(NEED_SYS_PARAM_H,1, | ||
278 | [Define to 1 if you need <sys/param.h> to define MAXHOSTNAMELEN])]) | ||
279 | |||
280 | AC_COMPILE_IFELSE( | ||
281 | AC_LANG_PROGRAM([#include <netdb.h>], | ||
282 | [int h = MAXHOSTNAMELEN;]), | ||
283 | [FOUND_MAXHOSTNAMELEN='netdb.h' | ||
284 | AC_DEFINE(NEED_NETDB_H,1, | ||
285 | [Define to 1 if you need <netdb.h> to define MAXHOSTNAMELEN])]) | ||
286 | |||
287 | AC_MSG_RESULT([$FOUND_MAXHOSTNAMELEN]) | ||
288 | fi | ||
289 | |||
290 | ### Additional options to configure | ||
291 | |||
292 | want_glib_integration_always=no | ||
293 | AC_ARG_ENABLE(glib-integration-always, | ||
294 | AC_HELP_STRING([--enable-glib-integration-always], [enable glib integration when ecore_init() is called always]), | ||
295 | [want_glib_integration_always=$enableval]) | ||
296 | |||
297 | if test "x${want_glib_integration_always}" = "xyes" ; then | ||
298 | AC_DEFINE([GLIB_INTEGRATION_ALWAYS], [1], [Always integrate glib if support compiled]) | ||
299 | want_glib=yes | ||
300 | fi | ||
301 | |||
302 | want_g_main_loop=no | ||
303 | AC_ARG_ENABLE(g-main-loop, | ||
304 | AC_HELP_STRING([--enable-g-main-loop], [ecore_main_loop based on g_main_loop]), | ||
305 | [want_g_main_loop=$enableval]) | ||
306 | |||
307 | if test "x${want_g_main_loop}" = "xyes" ; then | ||
308 | AC_DEFINE([USE_G_MAIN_LOOP], [1], [Use g_main_loop in ecore]) | ||
309 | want_glib=yes | ||
310 | fi | ||
311 | |||
312 | if test "x${want_glib_integration_always}" = "xyes" -a "x${want_g_main_loop}" = "xyes"; then | ||
313 | AC_MSG_ERROR([--enable-glib-integration-always and --enable-glib-main-loop are mutually exclusive]) | ||
314 | fi | ||
315 | |||
316 | # local sockets (ecore_con.c) | ||
317 | AC_ARG_ENABLE([local-sockets], | ||
318 | [AC_HELP_STRING([--disable-local-sockets], [disable local sockets.])], | ||
319 | [ | ||
320 | if test "x${enableval}" = "xyes" ; then | ||
321 | want_ecore_con_local_sockets="yes" | ||
322 | else | ||
323 | want_ecore_con_local_sockets="no" | ||
324 | fi | ||
325 | ], | ||
326 | [want_ecore_con_local_sockets=${want_local_sockets}]) | ||
327 | |||
328 | if test "x${want_ecore_con_local_sockets}" = "xyes" ; then | ||
329 | AC_DEFINE([HAVE_LOCAL_SOCKETS], [1], [Have local sockets support]) | ||
330 | fi | ||
331 | |||
332 | # abstract sockets (ecore_con.c) | ||
333 | AC_ARG_ENABLE([abstract-sockets], | ||
334 | [AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])], | ||
335 | [ | ||
336 | if test "x${enableval}" = "xyes" ; then | ||
337 | want_ecore_con_abstract_sockets="yes" | ||
338 | else | ||
339 | want_ecore_con_abstract_sockets="no" | ||
340 | fi | ||
341 | ], | ||
342 | [want_ecore_con_abstract_sockets=${want_abstract_sockets}]) | ||
343 | |||
344 | if test "x${want_ecore_con_abstract_sockets}" = "xyes" ; then | ||
345 | AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace]) | ||
346 | fi | ||
347 | |||
348 | # Simple X11 build/link | ||
349 | |||
350 | AC_ARG_ENABLE(simple-x11, | ||
351 | AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]), | ||
352 | [want_evas_simple_x11=$enableval]) | ||
353 | |||
354 | # XIM | ||
355 | AC_ARG_ENABLE([xim], | ||
356 | [AC_HELP_STRING([--disable-xim], [disable X Input Method.])], | ||
357 | [ | ||
358 | if test "x${enableval}" = "xyes" ; then | ||
359 | want_xim="yes" | ||
360 | else | ||
361 | want_xim="no" | ||
362 | fi | ||
363 | ], | ||
364 | [want_xim="yes"]) | ||
365 | |||
366 | if test "x${want_xim}" = "xyes" ; then | ||
367 | AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method]) | ||
368 | fi | ||
369 | |||
370 | # Unit tests | ||
371 | |||
372 | EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"]) | ||
373 | |||
374 | ### Checks for programs | ||
375 | |||
376 | m4_ifdef([AC_PROG_OBJC], | ||
377 | [ | ||
378 | AC_PROG_OBJC | ||
379 | _AM_DEPENDENCIES(OBJC) | ||
380 | ], | ||
381 | [ | ||
382 | AC_CHECK_TOOL([OBJC], [gcc]) | ||
383 | AC_SUBST([OBJC]) | ||
384 | AC_SUBST([OBJCFLAGS]) | ||
385 | ]) | ||
386 | m4_ifndef([am__fastdepOBJC], [ | ||
387 | AM_CONDITIONAL([am__fastdepOBJC], [false]) | ||
388 | ]) | ||
389 | |||
390 | AC_PROG_CXX | ||
391 | AC_PROG_CC | ||
392 | |||
393 | have_gnu_objc=${ac_cv_objc_compiler_gnu} | ||
394 | |||
395 | # doxygen program for documentation building | ||
396 | |||
397 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) | ||
398 | |||
399 | m4_ifdef([v_mic], | ||
400 | [ | ||
401 | EFL_COMPILER_FLAG([-Wall]) | ||
402 | EFL_COMPILER_FLAG([-W]) | ||
403 | ]) | ||
404 | |||
405 | # The first call to PKG_CHECK_MODULES is done conditionally, | ||
406 | # so we should include this here: | ||
407 | PKG_PROG_PKG_CONFIG | ||
408 | |||
409 | # Check whether pkg-config supports Requires.private | ||
410 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
411 | pkgconfig_requires_private="Requires.private" | ||
412 | else | ||
413 | pkgconfig_requires_private="Requires" | ||
414 | fi | ||
415 | AC_SUBST(pkgconfig_requires_private) | ||
416 | |||
417 | ### Checks for some build time option | ||
418 | have_backtrace="no" | ||
419 | AC_CHECK_FUNCS([backtrace], [have_backtrace="yes"], []) | ||
420 | |||
421 | want_ecore_timer_dump="yes" | ||
422 | |||
423 | AC_ARG_ENABLE([ecore-timer-dump], | ||
424 | [AC_HELP_STRING([--disable-ecore-timer-dump], [disable tracking of timer allocation. @<:@default=enable@:>@])], | ||
425 | [want_ecore_timer_dump=$enableval], []) | ||
426 | |||
427 | if test "x$want_ecore_timer_dump" = "xyes" -a "x$have_backtrace" = "xyes"; then | ||
428 | AC_DEFINE(WANT_ECORE_TIMER_DUMP, [1], [Want Ecore_Timer dump infrastructure]) | ||
429 | fi | ||
430 | |||
431 | ### Checks for libraries | ||
432 | |||
433 | # Evil library for compilation on Windows | ||
434 | |||
435 | case "$host_os" in | ||
436 | mingw*) | ||
437 | PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0]) | ||
438 | AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed]) | ||
439 | requirements_ecore="evil ${requirements_ecore}" | ||
440 | requirements_ecore_evas="evil ${requirements_ecore_evas}" | ||
441 | requirements_ecore_file="evil ${requirements_ecore_file}" | ||
442 | requirements_ecore_imf="evil ${requirements_ecore_imf}" | ||
443 | requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}" | ||
444 | EFL_ECORE_BUILD="-DEFL_ECORE_BUILD" | ||
445 | EFL_ECORE_CON_BUILD="-DEFL_ECORE_CON_BUILD" | ||
446 | EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD" | ||
447 | EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD" | ||
448 | EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD" | ||
449 | EFL_ECORE_IMF_EVAS_BUILD="-DEFL_ECORE_IMF_EVAS_BUILD" | ||
450 | EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD" | ||
451 | EFL_ECORE_INPUT_EVAS_BUILD="-DEFL_ECORE_INPUT_EVAS_BUILD" | ||
452 | EFL_ECORE_IPC_BUILD="-DEFL_ECORE_IPC_BUILD" | ||
453 | ;; | ||
454 | esac | ||
455 | |||
456 | have_win32="" | ||
457 | have_wince="" | ||
458 | case "$host_os" in | ||
459 | mingw32ce* | cegcc*) | ||
460 | EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD" | ||
461 | requirements_ecore_wince="evil ${requirements_ecore_wince}" | ||
462 | have_wince="yes" | ||
463 | ;; | ||
464 | mingw*) | ||
465 | EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD" | ||
466 | EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD" | ||
467 | requirements_ecore_win32="evil ${requirements_ecore_win32}" | ||
468 | requirements_ecore_sdl="evil ${requirements_ecore_sdl}" | ||
469 | have_win32="yes" | ||
470 | ;; | ||
471 | esac | ||
472 | |||
473 | have_ps3="" | ||
474 | case "$host_vendor" in | ||
475 | ps3*) | ||
476 | have_ps3="yes" | ||
477 | PKG_CHECK_MODULES([ESCAPE], [escape]) | ||
478 | CFLAGS="$CFLAGS $ESCAPE_CFLAGS" | ||
479 | AC_DEFINE(HAVE_ESCAPE, 1, [Set to 1 if Escape library is installed]) | ||
480 | EFL_ECORE_PSL1GHT_BUILD="-DEFL_ECORE_PSL1GHT_BUILD" | ||
481 | requirements_ecore="escape ${requirements_ecore}" | ||
482 | requirements_ecore_evas="escape ${requirements_ecore_evas}" | ||
483 | requirements_ecore_file="escape ${requirements_ecore_file}" | ||
484 | requirements_ecore_imf="escape ${requirements_ecore_imf}" | ||
485 | requirements_ecore_imf_evas="escape ${requirements_ecore_imf_evas}" | ||
486 | requirements_ecore_sdl="escape ${requirements_ecore_sdl}" | ||
487 | want_ecore_psl1ght="yes" | ||
488 | want_ecore_evas_psl1ght="yes" | ||
489 | ;; | ||
490 | esac | ||
491 | |||
492 | AC_SUBST(EFL_ECORE_BUILD) | ||
493 | AC_SUBST(EFL_ECORE_CON_BUILD) | ||
494 | AC_SUBST(EFL_ECORE_EVAS_BUILD) | ||
495 | AC_SUBST(EFL_ECORE_FILE_BUILD) | ||
496 | AC_SUBST(EFL_ECORE_IMF_BUILD) | ||
497 | AC_SUBST(EFL_ECORE_IMF_EVAS_BUILD) | ||
498 | AC_SUBST(EFL_ECORE_INPUT_BUILD) | ||
499 | AC_SUBST(EFL_ECORE_INPUT_EVAS_BUILD) | ||
500 | AC_SUBST(EFL_ECORE_IPC_BUILD) | ||
501 | AC_SUBST(EFL_ECORE_WINCE_BUILD) | ||
502 | AC_SUBST(EFL_ECORE_WIN32_BUILD) | ||
503 | AC_SUBST(EFL_ECORE_SDL_BUILD) | ||
504 | AC_SUBST(EFL_ECORE_PSL1GHT_BUILD) | ||
505 | |||
506 | AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes") | ||
507 | AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes") | ||
508 | AM_CONDITIONAL(ECORE_HAVE_PS3, test "x${have_ps3}" = "xyes") | ||
509 | |||
510 | WIN32_LIBS="" | ||
511 | case "$host_os" in | ||
512 | mingw32ce* | cegcc*) | ||
513 | WIN32_LIBS="-lws2" | ||
514 | dlopen_libs="-ldl" | ||
515 | ;; | ||
516 | mingw*) | ||
517 | WIN32_LIBS="-lws2_32" | ||
518 | dlopen_libs="-ldl" | ||
519 | ;; | ||
520 | *) | ||
521 | AC_CHECK_LIB([c], [dlopen], | ||
522 | [], | ||
523 | [AC_CHECK_LIB([dl], [dlopen], | ||
524 | [dlopen_libs=-ldl]) | ||
525 | ]) | ||
526 | AC_CHECK_LIB([c], [clock_gettime], | ||
527 | [AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])], | ||
528 | [AC_CHECK_LIB([rt], [clock_gettime], | ||
529 | [ | ||
530 | rt_libs=-lrt | ||
531 | AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()]) | ||
532 | ]) | ||
533 | ]) | ||
534 | ;; | ||
535 | esac | ||
536 | AC_SUBST(WIN32_LIBS) | ||
537 | AC_SUBST(dlopen_libs) | ||
538 | AC_SUBST(rt_libs) | ||
539 | |||
540 | # Eina library | ||
541 | |||
542 | PKG_CHECK_MODULES(EINA, [eina >= 1.1.0]) | ||
543 | #FIXME check all the requirements when the eina move will be finished | ||
544 | requirements_ecore="eina >= 1.1.0 ${requirements_ecore}" | ||
545 | requirements_ecore_con="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_con}" | ||
546 | #requirements_ecore_config="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_config}" | ||
547 | requirements_ecore_directfb="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_directfb}" | ||
548 | requirements_ecore_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_evas}" | ||
549 | requirements_ecore_fb="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_fb}" | ||
550 | requirements_ecore_file="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_file}" | ||
551 | requirements_ecore_imf="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_imf}" | ||
552 | requirements_ecore_imf_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_imf_evas}" | ||
553 | requirements_ecore_input="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_input}" | ||
554 | requirements_ecore_input_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_input_evas}" | ||
555 | requirements_ecore_ipc="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_ipc}" | ||
556 | requirements_ecore_cocoa="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_cocoa}" | ||
557 | requirements_ecore_sdl="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_sdl}" | ||
558 | requirements_ecore_psl1ght="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_sdl}" | ||
559 | requirements_ecore_win32="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_win32}" | ||
560 | requirements_ecore_wince="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_wince}" | ||
561 | requirements_ecore_x="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_x}" | ||
562 | |||
563 | |||
564 | # glib support (main loop integration) | ||
565 | AC_ARG_ENABLE([glib], | ||
566 | [AC_HELP_STRING([--disable-glib], [disable glib support. @<:@default=detect@:>@])], | ||
567 | [want_glib=$enableval], []) | ||
568 | |||
569 | if test "x$want_glib" != "xno"; then | ||
570 | PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"]) | ||
571 | else | ||
572 | have_glib="no" | ||
573 | fi | ||
574 | if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then | ||
575 | AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.]) | ||
576 | elif test "x$have_glib" = "xyes"; then | ||
577 | AC_DEFINE(HAVE_GLIB, [1], [Have GLib]) | ||
578 | requirements_ecore="glib-2.0 ${requirements_ecore}" | ||
579 | fi | ||
580 | |||
581 | |||
582 | # SDL library (ecore_sdl) | ||
583 | |||
584 | have_sdl="no" | ||
585 | PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"]) | ||
586 | if test "x${have_sdl}" != "xyes" ; then | ||
587 | SDL_CONFIG="sdl-config" | ||
588 | AC_ARG_WITH([sdl-config], | ||
589 | [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])], | ||
590 | [ | ||
591 | SDL_CONFIG=$withval | ||
592 | AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config]) | ||
593 | ]) | ||
594 | |||
595 | AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH]) | ||
596 | |||
597 | if test -n "$SDL_CONFIG" ; then | ||
598 | SDL_CFLAGS=`$SDL_CONFIG --cflags` | ||
599 | SDL_LIBS=`$SDL_CONFIG --libs` | ||
600 | AC_SUBST(SDL_CFLAGS) | ||
601 | AC_SUBST(SDL_LIBS) | ||
602 | have_sdl="yes" | ||
603 | fi | ||
604 | fi | ||
605 | |||
606 | if test "x${have_sdl}" = "xyes" ; then | ||
607 | PKG_CHECK_EXISTS([sdl >= 1.3.0], | ||
608 | [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])]) | ||
609 | fi | ||
610 | |||
611 | |||
612 | # DirectFB library (ecore_directfb) | ||
613 | |||
614 | PKG_CHECK_MODULES([DIRECTFB], | ||
615 | [directfb >= 0.9.16], | ||
616 | [have_directfb="yes"], | ||
617 | [have_directfb="no"]) | ||
618 | |||
619 | |||
620 | # Eet library (ecore_config) | ||
621 | |||
622 | #PKG_CHECK_MODULES([EET], | ||
623 | # [eet >= 1.4.0], | ||
624 | # [have_eet="yes"], | ||
625 | # [have_eet="no"]) | ||
626 | |||
627 | |||
628 | # Xlib and XCB (ecore_x) | ||
629 | |||
630 | have_x="no" | ||
631 | have_ecore_x="no" | ||
632 | have_ecore_x_xlib="no" | ||
633 | have_ecore_x_xcb="no" | ||
634 | |||
635 | x_dir=""; | ||
636 | x_includes=""; | ||
637 | x_cflags=""; | ||
638 | x_libs=""; | ||
639 | |||
640 | ecore_x_libs_private="" | ||
641 | |||
642 | AC_ARG_ENABLE(ecore-x-composite, | ||
643 | [AC_HELP_STRING([--disable-ecore-x-composite], | ||
644 | [disable the ecore_x support for Xcomposite extension. | ||
645 | @<:@default=detect@:>@])], | ||
646 | [want_ecore_x_composite=$enableval]) | ||
647 | |||
648 | AC_ARG_ENABLE(ecore-x-damage, | ||
649 | [AC_HELP_STRING([--disable-ecore-x-damage], | ||
650 | [disable the ecore_x support for Xdamage extension. | ||
651 | @<:@default=detect@:>@])], | ||
652 | [want_ecore_x_damage=$enableval]) | ||
653 | |||
654 | AC_ARG_ENABLE(ecore-x-dpms, | ||
655 | [AC_HELP_STRING([--disable-ecore-x-dpms], | ||
656 | [disable the ecore_x support for Xdpms extension. | ||
657 | @<:@default=detect@:>@])], | ||
658 | [want_ecore_x_dpms=$enableval]) | ||
659 | |||
660 | AC_ARG_ENABLE(ecore-x-randr, | ||
661 | [AC_HELP_STRING([--disable-ecore-x-randr], | ||
662 | [disable the ecore_x support for Xrandr extension. | ||
663 | @<:@default=detect@:>@])], | ||
664 | [want_ecore_x_randr=$enableval]) | ||
665 | |||
666 | AC_ARG_ENABLE(ecore-x-render, | ||
667 | [AC_HELP_STRING([--disable-ecore-x-render], | ||
668 | [disable the ecore_x support for Xrender extension. | ||
669 | @<:@default=detect@:>@])], | ||
670 | [want_ecore_x_render=$enableval]) | ||
671 | |||
672 | AC_ARG_ENABLE(ecore-x-screensaver, | ||
673 | [AC_HELP_STRING([--disable-ecore-x-screensaver], | ||
674 | [disable the ecore_x support for Xscreensaver extension. | ||
675 | @<:@default=detect@:>@])], | ||
676 | [want_ecore_x_screensaver=$enableval]) | ||
677 | |||
678 | AC_ARG_ENABLE(ecore-x-shape, | ||
679 | [AC_HELP_STRING([--disable-ecore-x-shape], | ||
680 | [disable the ecore_x support for Xshape extension. | ||
681 | @<:@default=detect@:>@])], | ||
682 | [want_ecore_x_shape=$enableval]) | ||
683 | |||
684 | AC_ARG_ENABLE(ecore-x-gesture, | ||
685 | [AC_HELP_STRING([--enable-ecore-x-gesture], | ||
686 | [enable the ecore_x support for Xgesture extension. | ||
687 | @<:@default=detect@:>@])], | ||
688 | [want_ecore_x_gesture=$enableval]) | ||
689 | |||
690 | AC_ARG_ENABLE(ecore-x-sync, | ||
691 | [AC_HELP_STRING([--disable-ecore-x-sync], | ||
692 | [disable the ecore_x support for Xsync extension. | ||
693 | @<:@default=detect@:>@])], | ||
694 | [want_ecore_x_sync=$enableval]) | ||
695 | |||
696 | AC_ARG_ENABLE(ecore-x-xfixes, | ||
697 | [AC_HELP_STRING([--disable-ecore-x-xfixes], | ||
698 | [disable the ecore_x support for Xfixes extension. | ||
699 | @<:@default=detect@:>@])], | ||
700 | [want_ecore_x_xfixes=$enableval]) | ||
701 | |||
702 | AC_ARG_ENABLE(ecore-x-xinerama, | ||
703 | [AC_HELP_STRING([--disable-ecore-x-xinerama], | ||
704 | [disable the ecore_x support for Xinerama extension. | ||
705 | @<:@default=detect@:>@])], | ||
706 | [want_ecore_x_xinerama=$enableval]) | ||
707 | |||
708 | AC_ARG_ENABLE(ecore-x-xprint, | ||
709 | [AC_HELP_STRING([--disable-ecore-x-xprint], | ||
710 | [disable the ecore_x support for Xprint extension. | ||
711 | @<:@default=detect@:>@])], | ||
712 | [want_ecore_x_xprint=$enableval]) | ||
713 | |||
714 | AC_ARG_ENABLE(ecore-x-xtest, | ||
715 | [AC_HELP_STRING([--disable-ecore-x-xtest], | ||
716 | [disable the ecore_x support for Xtest extension. | ||
717 | @<:@default=detect@:>@])], | ||
718 | [want_ecore_x_xtest=$enableval]) | ||
719 | |||
720 | AC_ARG_ENABLE(ecore-x-cursor, | ||
721 | [AC_HELP_STRING([--disable-ecore-x-cursor], | ||
722 | [disable the ecore_x support for Xcursor extension. | ||
723 | @<:@default=detect@:>@])], | ||
724 | [want_ecore_x_cursor=$enableval]) | ||
725 | |||
726 | AC_ARG_ENABLE(ecore-x-input, | ||
727 | [AC_HELP_STRING([--disable-ecore-x-input], | ||
728 | [disable the ecore_x support for Xinput/Xinput2 extension. | ||
729 | @<:@default=detect@:>@])], | ||
730 | [want_ecore_x_input=$enableval]) | ||
731 | |||
732 | AC_ARG_ENABLE(ecore-x-dri, | ||
733 | [AC_HELP_STRING([--disable-ecore-x-dri], | ||
734 | [disable the ecore_x support for DRI extension. | ||
735 | @<:@default=detect@:>@])], | ||
736 | [want_ecore_x_dri=$enableval]) | ||
737 | |||
738 | AC_ARG_ENABLE(ecore-x-xcb, | ||
739 | [AC_HELP_STRING([--enable-ecore-x-xcb], | ||
740 | [enable the ecore_x module with XCB backend. @<:@default=disabled@:>@])], | ||
741 | [want_ecore_x_xcb=$enableval]) | ||
742 | |||
743 | AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built) | ||
744 | AC_MSG_RESULT($want_ecore_x_xcb) | ||
745 | |||
746 | if test "x$want_ecore_x_xcb" = "xyes" ; then | ||
747 | |||
748 | AC_MSG_CHECKING([keysym definitions]) | ||
749 | KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 | ||
750 | FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" | ||
751 | for i in $FILES; do | ||
752 | if test -f "$KEYSYMDEFDIR/$i"; then | ||
753 | KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" | ||
754 | elif test "x$i" = "xkeysymdef.h"; then | ||
755 | AC_MSG_ERROR([Cannot find keysymdef.h]) | ||
756 | fi | ||
757 | done | ||
758 | AC_MSG_RESULT([$KEYSYMDEFS]) | ||
759 | AC_SUBST(KEYSYMDEFS) | ||
760 | |||
761 | have_iconv="no" | ||
762 | AC_ARG_WITH([iconv-link], | ||
763 | AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]), | ||
764 | [ | ||
765 | LIBS="$withval $LIBS" | ||
766 | have_iconv="yes" | ||
767 | ]) | ||
768 | |||
769 | AC_MSG_CHECKING(for explicit iconv link options) | ||
770 | if test "x${iconv_libs}" = "x" ; then | ||
771 | AC_MSG_RESULT([no explicit iconv link option]) | ||
772 | else | ||
773 | AC_MSG_RESULT([$iconv_libs]) | ||
774 | fi | ||
775 | |||
776 | if test "x${have_iconv}" = "xno" ; then | ||
777 | AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"]) | ||
778 | |||
779 | if test "x${have_iconv}" = "xyes" ; then | ||
780 | AC_MSG_CHECKING([whether iconv() is in libc]) | ||
781 | |||
782 | AC_LINK_IFELSE( | ||
783 | [AC_LANG_PROGRAM( | ||
784 | [[ | ||
785 | #include <stdlib.h> | ||
786 | #include <iconv.h> | ||
787 | ]], | ||
788 | [[ | ||
789 | iconv_t ic; | ||
790 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
791 | ]])], | ||
792 | [have_iconv="yes"], | ||
793 | [have_iconv="no"]) | ||
794 | |||
795 | AC_MSG_RESULT([${have_iconv}]) | ||
796 | fi | ||
797 | |||
798 | if test "x${have_iconv}" = "xno" ; then | ||
799 | AC_MSG_CHECKING([whether iconv() is in libiconv.a]) | ||
800 | |||
801 | LIBS_save="${LIBS}" | ||
802 | LIBS="-liconv $LIBS" | ||
803 | AC_LINK_IFELSE( | ||
804 | [AC_LANG_PROGRAM( | ||
805 | [[ | ||
806 | #include <stdlib.h> | ||
807 | #include <iconv.h> | ||
808 | ]], | ||
809 | [[ | ||
810 | iconv_t ic; | ||
811 | size_t count; | ||
812 | count = iconv(ic, NULL, NULL, NULL, NULL); | ||
813 | ]])], | ||
814 | [have_iconv="yes"], | ||
815 | [ | ||
816 | have_iconv="no" | ||
817 | LIBS=${LIBS_save} | ||
818 | ]) | ||
819 | |||
820 | AC_MSG_RESULT([${have_iconv}]) | ||
821 | fi | ||
822 | |||
823 | if test "x${have_iconv}" = "xno" ; then | ||
824 | AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a]) | ||
825 | |||
826 | LIBS_save="${LIBS}" | ||
827 | LIBS="-liconv_plug $LIBS" | ||
828 | AC_LINK_IFELSE( | ||
829 | [AC_LANG_PROGRAM( | ||
830 | [[ | ||
831 | #include <stdlib.h> | ||
832 | #include <iconv.h> | ||
833 | ]], | ||
834 | [[ | ||
835 | iconv_t ic; | ||
836 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
837 | ]])], | ||
838 | [have_iconv="yes"], | ||
839 | [ | ||
840 | have_iconv="no" | ||
841 | LIBS=${LIBS_save} | ||
842 | ]) | ||
843 | |||
844 | AC_MSG_RESULT([${have_iconv}]) | ||
845 | fi | ||
846 | |||
847 | if test "x${have_iconv}" = "xyes" ; then | ||
848 | AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed]) | ||
849 | fi | ||
850 | fi | ||
851 | |||
852 | PKG_CHECK_MODULES(ECORE_XCB, x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8, | ||
853 | [ have_ecore_x_xcb="yes" | ||
854 | requirements_ecore_x="x11-xcb xcb xcb-shm xcb-event xcb-icccm xcb-util xcb-image xcb-keysyms ${requirements_ecore_x}" | ||
855 | ], | ||
856 | [ | ||
857 | PKG_CHECK_MODULES(ECORE_XCB, x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms, | ||
858 | [ have_ecore_x_xcb="yes" | ||
859 | AC_DEFINE(OLD_XCB_VERSION, 1, [xcb version]) | ||
860 | requirements_ecore_x="x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" ], | ||
861 | [ have_ecore_x_xcb="no" ]) | ||
862 | ], | ||
863 | [have_ecore_x_xcb="no" ]) | ||
864 | |||
865 | if test "x$have_ecore_x_xcb" = "xyes" ; then | ||
866 | |||
867 | PKG_CHECK_MODULES([PIXMAN], | ||
868 | [pixman-1], | ||
869 | [ | ||
870 | have_pixman="yes" | ||
871 | AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering]) | ||
872 | requirements_ecore_x="pixman-1 ${requirements_ecore_x}" | ||
873 | ], | ||
874 | [ | ||
875 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
876 | AC_MSG_ERROR([Pixman not found (strict dependencies checking)]) | ||
877 | fi | ||
878 | ]) | ||
879 | |||
880 | if test "x$want_ecore_x_composite" != "xno"; then | ||
881 | PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite, | ||
882 | [ have_ecore_x_xcb_composite="yes" | ||
883 | requirements_ecore_x="xcb-composite ${requirements_ecore_x}" | ||
884 | AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ], | ||
885 | [ have_ecore_x_xcb_composite="no" ]) | ||
886 | else | ||
887 | have_ecore_x_xcb_composite="no" | ||
888 | AC_MSG_NOTICE("composite extension explicitly disabled") | ||
889 | fi | ||
890 | |||
891 | if test "x$want_ecore_x_damage" != "xno"; then | ||
892 | PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage, | ||
893 | [ have_ecore_x_xcb_damage="yes" | ||
894 | requirements_ecore_x="xcb-damage ${requirements_ecore_x}" | ||
895 | AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ], | ||
896 | [ have_ecore_x_xcb_damage="no" ]) | ||
897 | else | ||
898 | have_ecore_x_xcb_damage="no" | ||
899 | AC_MSG_NOTICE("damage extension explicitly disabled") | ||
900 | fi | ||
901 | |||
902 | if test "x$want_ecore_x_dpms" != "xno"; then | ||
903 | PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms, | ||
904 | [ have_ecore_x_xcb_dpms="yes" | ||
905 | requirements_ecore_x="xcb-dpms ${requirements_ecore_x}" | ||
906 | AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ], | ||
907 | [ have_ecore_x_xcb_dpms="no" ]) | ||
908 | else | ||
909 | have_ecore_x_xcb_dpms="no" | ||
910 | AC_MSG_NOTICE("dpms extension explicitly disabled") | ||
911 | fi | ||
912 | |||
913 | if test "x$want_ecore_x_randr" != "xno"; then | ||
914 | PKG_CHECK_MODULES(XCB_RANDR, xcb-randr, | ||
915 | [ have_ecore_x_xcb_randr="yes" | ||
916 | requirements_ecore_x="xcb-randr ${requirements_ecore_x}" | ||
917 | AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ], | ||
918 | [ have_ecore_x_xcb_randr="no" ]) | ||
919 | else | ||
920 | have_ecore_x_xcb_randr="no" | ||
921 | AC_MSG_NOTICE("randr extension explicitly disabled") | ||
922 | fi | ||
923 | |||
924 | if test "x$want_ecore_x_render" != "xno"; then | ||
925 | PKG_CHECK_MODULES(XCB_RENDER, xcb-render xcb-renderutil, | ||
926 | [ have_ecore_x_xcb_render="yes" | ||
927 | requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}" | ||
928 | AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ], | ||
929 | [ have_ecore_x_xcb_render="no" ]) | ||
930 | else | ||
931 | have_ecore_x_xcb_render="no" | ||
932 | AC_MSG_NOTICE("render extension explicitly disabled") | ||
933 | fi | ||
934 | |||
935 | if test "x$want_ecore_x_screensaver" != "xno"; then | ||
936 | PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver, | ||
937 | [ have_ecore_x_xcb_screensaver="yes" | ||
938 | requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}" | ||
939 | AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ], | ||
940 | [ have_ecore_x_xcb_screensaver="no" ]) | ||
941 | else | ||
942 | have_ecore_x_xcb_screensaver="no" | ||
943 | AC_MSG_NOTICE("screensaver extension explicitly disabled") | ||
944 | fi | ||
945 | |||
946 | if test "x$want_ecore_x_shape" != "xno"; then | ||
947 | PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape, | ||
948 | [ have_ecore_x_xcb_shape="yes" | ||
949 | requirements_ecore_x="xcb-shape ${requirements_ecore_x}" | ||
950 | AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ], | ||
951 | [ have_ecore_x_xcb_shape="no" ]) | ||
952 | else | ||
953 | have_ecore_x_xcb_shape="no" | ||
954 | AC_MSG_NOTICE("shape extension explicitly disabled") | ||
955 | fi | ||
956 | |||
957 | if test "x$want_ecore_x_gesture" != "xno"; then | ||
958 | PKG_CHECK_MODULES(XCB_XGESTURE, xcb-gesture, | ||
959 | [ have_ecore_x_xcb_gesture="yes" | ||
960 | requirements_ecore_x="xcb-gesture ${requirements_ecore_x}" | ||
961 | AC_DEFINE(ECORE_XCB_XGESTURE, 1, [Build support for XCB gesture]) ], | ||
962 | [ have_ecore_x_xcb_gesture="no" ]) | ||
963 | else | ||
964 | have_ecore_x_xcb_gesture="no" | ||
965 | AC_MSG_NOTICE("gesture extension explicitly disabled") | ||
966 | fi | ||
967 | |||
968 | if test "x$want_ecore_x_sync" != "xno"; then | ||
969 | PKG_CHECK_MODULES(XCB_SYNC, xcb-sync, | ||
970 | [ have_ecore_x_xcb_sync="yes" | ||
971 | requirements_ecore_x="xcb-sync ${requirements_ecore_x}" | ||
972 | AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ], | ||
973 | [ have_ecore_x_xcb_sync="no" ]) | ||
974 | else | ||
975 | have_ecore_x_xcb_sync="no" | ||
976 | AC_MSG_NOTICE("sync extension explicitly disabled") | ||
977 | fi | ||
978 | |||
979 | if test "x$want_ecore_x_xfixes" != "xno"; then | ||
980 | PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes, | ||
981 | [ have_ecore_x_xcb_xfixes="yes" | ||
982 | requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}" | ||
983 | AC_DEFINE(ECORE_XCB_XFIXES, 1, [Build support for XCB xfixes]) ], | ||
984 | [ have_ecore_x_xcb_xfixes="no" ]) | ||
985 | else | ||
986 | have_ecore_x_xcb_xfixes="no" | ||
987 | AC_MSG_NOTICE("xfixes extension explicitly disabled") | ||
988 | fi | ||
989 | |||
990 | if test "x$want_ecore_x_xinerama" != "xno"; then | ||
991 | PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama, | ||
992 | [ have_ecore_x_xcb_xinerama="yes" | ||
993 | requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}" | ||
994 | AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ], | ||
995 | [ have_ecore_x_xcb_xinerama="no" ]) | ||
996 | else | ||
997 | have_ecore_x_xcb_xinerama="no" | ||
998 | AC_MSG_NOTICE("xinerama extension explicitly disabled") | ||
999 | fi | ||
1000 | |||
1001 | if test "x$want_ecore_x_xprint" != "xno"; then | ||
1002 | PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint, | ||
1003 | [ have_ecore_x_xcb_xprint="yes" | ||
1004 | requirements_ecore_x="xcb-xprint ${requirements_ecore_x}" | ||
1005 | AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ], | ||
1006 | [ have_ecore_x_xcb_xprint="no" ]) | ||
1007 | else | ||
1008 | have_ecore_x_xcb_xprint="no" | ||
1009 | AC_MSG_NOTICE("xprint extension explicitly disabled") | ||
1010 | fi | ||
1011 | |||
1012 | if test "x$want_ecore_x_xtest" != "xno"; then | ||
1013 | PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest, | ||
1014 | [ have_ecore_x_xcb_xtest="yes" | ||
1015 | requirements_ecore_x="xcb-xtest ${requirements_ecore_x}" | ||
1016 | AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ], | ||
1017 | [ have_ecore_x_xcb_xtest="no" ]) | ||
1018 | else | ||
1019 | have_ecore_x_xcb_xtest="no" | ||
1020 | AC_MSG_NOTICE("xtest extension explicitly disabled") | ||
1021 | fi | ||
1022 | |||
1023 | # input extension disabled currently in xcb as xcb-input has some issues | ||
1024 | want_ecore_x_input="no" | ||
1025 | if test "x$want_ecore_x_input" != "xno"; then | ||
1026 | PKG_CHECK_MODULES(XCB_XINPUT, xcb-xinput, | ||
1027 | [ have_ecore_x_xcb_xinput="yes" | ||
1028 | requirements_ecore_x="xcb-xinput ${requirements_ecore_x}" | ||
1029 | AC_DEFINE(ECORE_XCB_XINPUT, 1, [Build support for XCB xinput]) ], | ||
1030 | [ have_ecore_x_xcb_xinput="no" ]) | ||
1031 | else | ||
1032 | have_ecore_x_xcb_xinput="no" | ||
1033 | AC_MSG_NOTICE("xinput extension explicitly disabled") | ||
1034 | fi | ||
1035 | |||
1036 | if test "x$want_ecore_x_cursor" != "xno"; then | ||
1037 | PKG_CHECK_MODULES(XCB_CURSOR, xcb-render xcb-renderutil, | ||
1038 | [ have_ecore_x_xcb_cursor="yes" | ||
1039 | requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}" | ||
1040 | AC_DEFINE(ECORE_XCB_CURSOR, 1, [Build support for XCB cursor]) ], | ||
1041 | [ have_ecore_x_xcb_cursor="no" ]) | ||
1042 | else | ||
1043 | have_ecore_x_xcb_cursor="no" | ||
1044 | AC_MSG_NOTICE("cursor extension explicitly disabled") | ||
1045 | fi | ||
1046 | |||
1047 | # if test "x$want_ecore_x_dri" != "xno"; then | ||
1048 | # PKG_CHECK_MODULES(XCB_DRI, xcb-dri2, | ||
1049 | # [ have_ecore_x_xcb_dri="yes" | ||
1050 | # requirements_ecore_x="xcb-dri2 ${requirements_ecore_x}" | ||
1051 | # AC_DEFINE(ECORE_XCB_DRI, 1, [Build support for XCB dri/dri2]) ], | ||
1052 | # [ have_ecore_x_xcb_dri="no" ]) | ||
1053 | # else | ||
1054 | # have_ecore_x_xcb_dri="no" | ||
1055 | # AC_MSG_NOTICE("dri extension explicitly disabled") | ||
1056 | # fi | ||
1057 | |||
1058 | AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.]) | ||
1059 | |||
1060 | x_cflags=$ECORE_XCB_CFLAGS | ||
1061 | x_libs=$ECORE_XCB_LIBS | ||
1062 | have_x="yes" | ||
1063 | |||
1064 | have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB" | ||
1065 | AC_SUBST(have_ecore_x_xcb_define) | ||
1066 | fi | ||
1067 | fi | ||
1068 | |||
1069 | if ! test "x$have_ecore_x_xcb" = "xyes" ; then | ||
1070 | AC_PATH_XTRA | ||
1071 | AC_CHECK_HEADER(X11/X.h, | ||
1072 | [ | ||
1073 | if test "x$want_evas_simple_x11" = "xyes"; then | ||
1074 | x_libs="${x_libs} -lX11 -lXext" | ||
1075 | else | ||
1076 | x_dir=${x_dir:-/usr/X11R6} | ||
1077 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
1078 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" | ||
1079 | fi | ||
1080 | have_ecore_x_xlib="yes" | ||
1081 | ] | ||
1082 | ) | ||
1083 | |||
1084 | if test "x$have_ecore_x_xlib" = "xyes"; then | ||
1085 | Xcursor_libs="" | ||
1086 | Xcursor_cflags="" | ||
1087 | use_Xcursor="no" | ||
1088 | PCFLAGS=$CFLAGS | ||
1089 | CFLAGS="$x_cflags $x_includes" | ||
1090 | |||
1091 | if test "x$want_ecore_x_cursor" = "xyes"; then | ||
1092 | AC_CHECK_HEADER(X11/Xcursor/Xcursor.h, | ||
1093 | [ | ||
1094 | AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor, | ||
1095 | [ | ||
1096 | AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor]) | ||
1097 | Xcursor_cflags="" | ||
1098 | Xcursor_libs="-lXcursor" | ||
1099 | use_Xcursor="yes" | ||
1100 | ], [ | ||
1101 | Xcursor_cflags="" | ||
1102 | Xcursor_libs="" | ||
1103 | use_Xcursor="no" | ||
1104 | ], [ | ||
1105 | $x_libs -lXrender | ||
1106 | ] | ||
1107 | ) | ||
1108 | ], [ | ||
1109 | Xcursor_cflags="" | ||
1110 | Xcursor_libs="" | ||
1111 | use_Xcursor="no" | ||
1112 | ], [ | ||
1113 | #include <X11/Xlib.h> | ||
1114 | ] | ||
1115 | ) | ||
1116 | CFLAGS=$PCFLAGS | ||
1117 | else | ||
1118 | Xcursor_cflags="" | ||
1119 | Xcursor_libs="" | ||
1120 | use_Xcursor="no" | ||
1121 | AC_MSG_NOTICE("Xcursor explicitly disabled") | ||
1122 | fi | ||
1123 | |||
1124 | AC_SUBST(Xcursor_cflags) | ||
1125 | AC_SUBST(Xcursor_libs) | ||
1126 | |||
1127 | ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat], [$want_ecore_x_xkb]) | ||
1128 | ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension], [$want_ecore_x_composite]) | ||
1129 | ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract], [$want_ecore_x_damage]) | ||
1130 | ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension], [$want_ecore_x_dpms]) | ||
1131 | if test "x$use_xdpms" = "xno" ; then | ||
1132 | ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension], [$want_ecore_x_dpms]) | ||
1133 | fi | ||
1134 | ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion], [$want_ecore_x_xfixes]) | ||
1135 | ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens], [$want_ecore_x_xinerama]) | ||
1136 | ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens], [$want_ecore_x_xprint]) | ||
1137 | ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent], [$want_ecore_x_randr]) | ||
1138 | ECORE_CHECK_X_EXTENSION([Xgesture], [gesture.h], [Xgesture], [XGestureQueryExtension], [$want_ecore_x_gesture]) | ||
1139 | ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat], [$want_ecore_x_render]) | ||
1140 | ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent], [$want_ecore_x_xtest]) | ||
1141 | ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput], [$want_ecore_x_screensaver]) | ||
1142 | ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice], [$want_ecore_x_input]) | ||
1143 | |||
1144 | ecore_x_libs_private="${Xcursor_libs} ${XKB_LIBS} ${XCOMPOSITE_LIBS} ${XGESTURE_LIBS} ${XDAMAGE_LIBS} ${XDPMS_LIBS} ${XFIXES_LIBS} ${XINERAMA_LIBS} ${XPRINT_LIBS} ${XRANDR_LIBS} ${XRENDER_LIBS} ${XTEST_LIBS} ${XSS_LIBS} ${XI2_LIBS}" | ||
1145 | |||
1146 | AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.]) | ||
1147 | have_x="yes" | ||
1148 | |||
1149 | have_ecore_x_xlib="yes" | ||
1150 | fi | ||
1151 | fi | ||
1152 | |||
1153 | AC_SUBST(x_cflags) | ||
1154 | AC_SUBST(x_includes) | ||
1155 | AC_SUBST(x_libs) | ||
1156 | AC_SUBST(ecore_x_libs_private) | ||
1157 | |||
1158 | AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes) | ||
1159 | AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes) | ||
1160 | |||
1161 | |||
1162 | # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas) | ||
1163 | |||
1164 | PKG_CHECK_MODULES([EVAS], [evas >= 1.1.0], | ||
1165 | [have_evas="yes"], | ||
1166 | [have_evas="no"]) | ||
1167 | |||
1168 | |||
1169 | ### Checks for header files | ||
1170 | |||
1171 | AC_CHECK_HEADERS([sys/select.h sys/prctl.h]) | ||
1172 | |||
1173 | EFL_CHECK_PATH_MAX | ||
1174 | |||
1175 | AC_HEADER_SYS_WAIT | ||
1176 | AC_SYS_LARGEFILE | ||
1177 | |||
1178 | have_addrinfo="no" | ||
1179 | case "$host_os" in | ||
1180 | mingw* | cegcc*) | ||
1181 | AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.]) | ||
1182 | AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.]) | ||
1183 | AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.]) | ||
1184 | have_addrinfo="yes" | ||
1185 | ;; | ||
1186 | *) | ||
1187 | AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h]) | ||
1188 | ;; | ||
1189 | esac | ||
1190 | |||
1191 | # ecore_con | ||
1192 | |||
1193 | AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h sys/socket.h sys/un.h ws2tcpip.h netdb.h]) | ||
1194 | |||
1195 | if test "x${ac_cv_header_netdb_h}" = "xyes" ; then | ||
1196 | have_addrinfo="yes" | ||
1197 | fi | ||
1198 | |||
1199 | # Framebuffer (ecore_fb) | ||
1200 | have_fb="no" | ||
1201 | AC_CHECK_HEADER([linux/fb.h], | ||
1202 | [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])]) | ||
1203 | |||
1204 | # Cocoa header files (ecore_cocoa) | ||
1205 | |||
1206 | if test "x${want_ecore_cocoa}" = "xyes" ; then | ||
1207 | cocoa_ldflags="" | ||
1208 | have_cocoa="no" | ||
1209 | m4_ifdef([AC_PROG_OBJC], | ||
1210 | [ | ||
1211 | if test "x${have_gnu_objc}" = "xyes" ; then | ||
1212 | AC_LANG_PUSH([Objective C]) | ||
1213 | LIBS_save="$LIBS" | ||
1214 | LIBS="$LIBS -framework Cocoa" | ||
1215 | AC_LINK_IFELSE( | ||
1216 | [AC_LANG_PROGRAM( | ||
1217 | [[ | ||
1218 | #include <Cocoa/Cocoa.h> | ||
1219 | ]], | ||
1220 | [[ | ||
1221 | NSWindow *window; | ||
1222 | window = [[NSWindow alloc] | ||
1223 | initWithContentRect:NSMakeRect(0, 0, 1, 1) | ||
1224 | styleMask:(NSTitledWindowMask) | ||
1225 | backing:NSBackingStoreBuffered | ||
1226 | defer:NO | ||
1227 | screen:nil | ||
1228 | ]; | ||
1229 | ]])], | ||
1230 | [ | ||
1231 | have_cocoa="yes" | ||
1232 | cocoa_ldflags="-framework Cocoa" | ||
1233 | ], | ||
1234 | [have_cocoa="no"]) | ||
1235 | LIBS="$LIBS_save" | ||
1236 | AC_MSG_CHECKING([whether Cocoa framework is supported]) | ||
1237 | AC_MSG_RESULT([${have_cocoa}]) | ||
1238 | AC_LANG_POP([Objective C]) | ||
1239 | fi | ||
1240 | ]) | ||
1241 | fi | ||
1242 | AC_SUBST(cocoa_ldflags) | ||
1243 | |||
1244 | want_epoll=yes | ||
1245 | AC_ARG_ENABLE(epoll, | ||
1246 | AC_HELP_STRING([--enable-epoll], [enable or disable epoll support]), | ||
1247 | [want_epoll=$enableval]) | ||
1248 | |||
1249 | if test "x${want_epoll}" = "xyes" ; then | ||
1250 | # check for epoll support | ||
1251 | AC_CHECK_HEADERS([sys/epoll.h]) | ||
1252 | fi | ||
1253 | |||
1254 | # timerfd_create | ||
1255 | AC_CHECK_HEADERS([sys/timerfd.h]) | ||
1256 | AC_CHECK_FUNCS(timerfd_create) | ||
1257 | |||
1258 | # thread support | ||
1259 | |||
1260 | EFL_CHECK_THREADS( | ||
1261 | [ | ||
1262 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
1263 | have_threads="POSIX" | ||
1264 | else | ||
1265 | if test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
1266 | have_threads="Win32" | ||
1267 | else | ||
1268 | have_threads="no" | ||
1269 | fi | ||
1270 | fi | ||
1271 | ], | ||
1272 | [have_threads="no"]) | ||
1273 | |||
1274 | ### enable thread safety if we have threads, unless specifically asked not to | ||
1275 | if test "x${have_threads}" = "xno" | ||
1276 | then | ||
1277 | want_thread_safety="no" | ||
1278 | else | ||
1279 | want_thread_safety="no" # to be changed to yes when ready | ||
1280 | AC_ARG_ENABLE(thread-safety, | ||
1281 | AC_HELP_STRING([--enable-thread-safety], [enable or disable thread safety]), | ||
1282 | [want_thread_safety=$enableval]) | ||
1283 | fi | ||
1284 | |||
1285 | if test "x${want_thread_safety}" = "xyes" | ||
1286 | then | ||
1287 | AC_DEFINE([HAVE_THREAD_SAFETY], [1], [Define to enable thread safety]) | ||
1288 | fi | ||
1289 | |||
1290 | ### Checks for types | ||
1291 | AC_CHECK_SIZEOF(int, 4) | ||
1292 | AC_CHECK_SIZEOF(long, 4) | ||
1293 | |||
1294 | |||
1295 | ### Checks for structures | ||
1296 | |||
1297 | |||
1298 | ### Checks for compiler characteristics | ||
1299 | AC_PROG_CC_STDC | ||
1300 | AC_C_CONST | ||
1301 | AC_C_BIGENDIAN | ||
1302 | AC_HEADER_STDC | ||
1303 | AC_C___ATTRIBUTE__ | ||
1304 | |||
1305 | WIN32_CPPFLAGS="" | ||
1306 | WIN32_CFLAGS="" | ||
1307 | case "$host_os" in | ||
1308 | mingw32ce*) | ||
1309 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
1310 | ;; | ||
1311 | cegcc*) | ||
1312 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
1313 | WIN32_CFLAGS="-mwin32" | ||
1314 | ;; | ||
1315 | mingw*) | ||
1316 | WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
1317 | ;; | ||
1318 | esac | ||
1319 | AC_SUBST(WIN32_CPPFLAGS) | ||
1320 | AC_SUBST(WIN32_CFLAGS) | ||
1321 | |||
1322 | |||
1323 | ### Checks for linker characteristics | ||
1324 | |||
1325 | # use --enable-auto-import on Windows | ||
1326 | |||
1327 | lt_enable_auto_import="" | ||
1328 | case "$host_os" in | ||
1329 | mingw* | cegcc*) | ||
1330 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
1331 | ;; | ||
1332 | esac | ||
1333 | AC_SUBST(lt_enable_auto_import) | ||
1334 | |||
1335 | ### Checks for library functions | ||
1336 | AC_ISC_POSIX | ||
1337 | AC_FUNC_ALLOCA | ||
1338 | AC_CHECK_FUNCS([gettimeofday strlcpy execvp]) | ||
1339 | |||
1340 | AC_COMPILE_IFELSE( | ||
1341 | [AC_LANG_PROGRAM( | ||
1342 | [[ | ||
1343 | #include <math.h> | ||
1344 | ]], | ||
1345 | [[ | ||
1346 | int i = isfinite(0); | ||
1347 | ]])], | ||
1348 | [ | ||
1349 | AC_DEFINE(HAVE_ISFINITE, 1, [Define to 1 if you have `isfinite', as a function or macro.]) | ||
1350 | have_isfinite="yes" | ||
1351 | ], | ||
1352 | [have_isfinite="no"]) | ||
1353 | |||
1354 | AC_MSG_CHECKING([for isfinite]) | ||
1355 | AC_MSG_RESULT([${have_isfinite}]) | ||
1356 | |||
1357 | have_atfile_source=auto | ||
1358 | AC_ARG_ENABLE([atfile-source], | ||
1359 | [AC_HELP_STRING([--disable-atfile-source], | ||
1360 | [disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@])], | ||
1361 | [ | ||
1362 | if test "x${enableval}" = "xyes" ; then | ||
1363 | have_atfile_source="yes" | ||
1364 | else | ||
1365 | have_atfile_source="no" | ||
1366 | fi], | ||
1367 | [have_atfile_source=auto]) | ||
1368 | |||
1369 | if ! test "x${have_atfile_source}" = "xno" ; then | ||
1370 | AC_CHECK_FUNCS(mkdirat, | ||
1371 | [ | ||
1372 | have_atfile_source="yes" | ||
1373 | AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists]) | ||
1374 | ], | ||
1375 | [ | ||
1376 | if test "x${have_atfile_source}" = "xyes" ; then | ||
1377 | AC_MSG_ERROR([required atfile-source but no mkdirat()]) | ||
1378 | fi | ||
1379 | have_atfile_source="no" | ||
1380 | ]) | ||
1381 | fi | ||
1382 | |||
1383 | ### Checks for optionnal feature | ||
1384 | AC_CHECK_FUNC([mallinfo], | ||
1385 | [ | ||
1386 | have_mallinfo="yes" | ||
1387 | AC_DEFINE(HAVE_MALLINFO, 1, [Gather memory statistic]) | ||
1388 | ], | ||
1389 | [have_mallinfo="no"]) | ||
1390 | |||
1391 | ### Ecore modules | ||
1392 | |||
1393 | ## Core modules | ||
1394 | |||
1395 | # ecore_con | ||
1396 | ECORE_CHECK_MODULE([con], [${want_ecore_con}], [Con], [${have_addrinfo}]) | ||
1397 | |||
1398 | have_curl="no" | ||
1399 | have_gnutls="no" | ||
1400 | have_openssl="no" | ||
1401 | have_cares="no" | ||
1402 | want_ipv6="yes" | ||
1403 | have_ipv6="no" | ||
1404 | |||
1405 | AC_ARG_ENABLE([ipv6], | ||
1406 | [AC_HELP_STRING([--disable-ipv6], | ||
1407 | [disable ipv6 functionality @<:@default=detect@:>@])], | ||
1408 | [ | ||
1409 | if test "x${enableval}" = "xyes" ; then | ||
1410 | want_ipv6="yes" | ||
1411 | else | ||
1412 | want_ipv6="no" | ||
1413 | fi], | ||
1414 | [want_ipv6="auto"]) | ||
1415 | |||
1416 | if test "x${have_ecore_con}" = "xyes" ; then | ||
1417 | |||
1418 | # Verify IPV6 availability in headers | ||
1419 | if test "x${want_ipv6}" != "xno" ; then | ||
1420 | AC_CHECK_TYPES([struct ipv6_mreq], | ||
1421 | [have_ipv6="yes"], | ||
1422 | [have_ipv6="no"], | ||
1423 | [[ | ||
1424 | #ifdef HAVE_NETINET_IN_H | ||
1425 | # include <netinet/in.h> | ||
1426 | #endif | ||
1427 | #ifdef HAVE_WS2TCPIP_H | ||
1428 | # include <ws2tcpip.h> | ||
1429 | #endif | ||
1430 | ]]) | ||
1431 | fi | ||
1432 | |||
1433 | if test "x${have_ipv6}" = "xyes" ; then | ||
1434 | AC_DEFINE(HAVE_IPV6, 1, [Define if IPV6 is supported]) | ||
1435 | fi | ||
1436 | |||
1437 | ECORE_CHECK_CURL([${want_curl}], | ||
1438 | [ | ||
1439 | have_curl="yes" | ||
1440 | requirements_ecore_con="libcurl ${requirements_ecore_con}" | ||
1441 | ], | ||
1442 | [have_curl="no"]) | ||
1443 | |||
1444 | ECORE_CHECK_GNUTLS([${want_gnutls}], | ||
1445 | [have_gnutls="yes"], | ||
1446 | [have_gnutls="no"]) | ||
1447 | |||
1448 | ECORE_CHECK_OPENSSL([${want_openssl}], | ||
1449 | [have_openssl="yes"], | ||
1450 | [have_openssl="no"]) | ||
1451 | |||
1452 | if test "x${have_gnutls}" = "xyes" ; then | ||
1453 | requirements_ecore_con="gnutls ${requirements_ecore_con}" | ||
1454 | # no need to add it to req_ecore_ipc, since they | ||
1455 | # depends on ecore_con anyway. | ||
1456 | else | ||
1457 | if test "x${have_openssl}" = "xyes" ; then | ||
1458 | requirements_ecore_con="openssl ${requirements_ecore_con}" | ||
1459 | # no need to add it to req_ecore_ipc, since they | ||
1460 | # depends on ecore_con anyway. | ||
1461 | fi | ||
1462 | fi | ||
1463 | |||
1464 | ECORE_CHECK_CARES([${want_cares}], | ||
1465 | [ | ||
1466 | have_cares="yes" | ||
1467 | requirements_ecore_con="libcares ${requirements_ecore_con}" | ||
1468 | ], | ||
1469 | [have_cares="no"]) | ||
1470 | |||
1471 | fi | ||
1472 | |||
1473 | AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"]) | ||
1474 | |||
1475 | # ecore_ipc | ||
1476 | ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}], | ||
1477 | [requirements_ecore_ipc="ecore-con >= 1.1.0 ${requirements_ecore_ipc}"]) | ||
1478 | |||
1479 | # ecore_file | ||
1480 | ECORE_CHECK_MODULE([file], [${want_ecore_file}], [File]) | ||
1481 | |||
1482 | have_poll="no" | ||
1483 | have_inotify="no" | ||
1484 | have_notify_win32="no" | ||
1485 | if test "x${have_ecore_file}" = "xyes" ; then | ||
1486 | ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"]) | ||
1487 | ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"]) | ||
1488 | ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"]) | ||
1489 | |||
1490 | if test "x${have_ecore_con}" = "xyes" ; then | ||
1491 | requirements_ecore_file="ecore-con >= 1.1.0 ${requirements_ecore_file}" | ||
1492 | else | ||
1493 | ECORE_CHECK_CURL([${want_curl}], | ||
1494 | [ | ||
1495 | have_curl="yes" | ||
1496 | requirements_ecore_file="libcurl ${requirements_ecore_file}" | ||
1497 | ], | ||
1498 | [have_curl="no"]) | ||
1499 | fi | ||
1500 | |||
1501 | fi | ||
1502 | |||
1503 | # ecore_config | ||
1504 | #ecore_config_deps="no" | ||
1505 | #if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then | ||
1506 | # ecore_config_deps="yes" | ||
1507 | #fi | ||
1508 | |||
1509 | #ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}], | ||
1510 | # [requirements_ecore_config="ecore-ipc >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 ${requirements_ecore_config}"]) | ||
1511 | |||
1512 | AM_CONDITIONAL(BUILD_ECORE_CONFIG, false) | ||
1513 | |||
1514 | # ecore_imf | ||
1515 | |||
1516 | ECORE_CHECK_MODULE([imf], [${want_ecore_imf}], [Imf]) | ||
1517 | |||
1518 | # ecore_imf_evas | ||
1519 | |||
1520 | ecore_imf_evas_deps="no" | ||
1521 | if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then | ||
1522 | ecore_imf_evas_deps="yes" | ||
1523 | fi | ||
1524 | |||
1525 | ECORE_CHECK_MODULE([imf-evas], [${want_ecore_imf}], [Imf_Evas], [${ecore_imf_evas_deps}], | ||
1526 | [requirements_ecore_imf_evas="ecore-imf >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_imf_evas}"]) | ||
1527 | |||
1528 | # ecore_input{_evas} | ||
1529 | ECORE_CHECK_MODULE([input], [${want_ecore_input}], [Input]) | ||
1530 | ECORE_CHECK_MODULE([input-evas], [${want_ecore_input}], [Input_Evas], [${have_evas}], | ||
1531 | [requirements_ecore_input_evas="ecore-input >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_input}"]) | ||
1532 | |||
1533 | # ecore_imf_xim | ||
1534 | AM_CONDITIONAL(BUILD_ECORE_IMF_XIM, false) | ||
1535 | ecore_imf_xim_deps="no" | ||
1536 | echo "have_ecore_x_xlib: ${have_ecore_x_xlib}" | ||
1537 | if test "x${have_ecore_imf}" = "xyes" \ | ||
1538 | -a "x${have_ecore_x_xlib}" = "xyes" \ | ||
1539 | -a "x${have_ecore_input}" = "xyes" ; then | ||
1540 | ecore_imf_xim_deps="yes" | ||
1541 | AC_DEFINE(BUILD_ECORE_IMF_XIM, 1, [Ecore Imf XIM Support]) | ||
1542 | fi | ||
1543 | |||
1544 | ECORE_CHECK_MODULE([imf-xim], [${want_ecore_imf}], [Imf_XIM], [${ecore_imf_xim_deps}], | ||
1545 | [requirements_ecore_imf_xim="ecore-imf >= 1.1.0 ecore-x >= 1.1.0 ecore-input >= 1.1.0 ${requirements_ecore_imf_xim}"]) | ||
1546 | |||
1547 | ## Graphic systems | ||
1548 | |||
1549 | # ecore_x{cb} | ||
1550 | |||
1551 | ecore_x_deps="no" | ||
1552 | if test "x${have_x}" = "xyes" -a \ | ||
1553 | "x${have_ecore_input}" = "xyes" ; then | ||
1554 | ecore_x_deps="yes" | ||
1555 | fi | ||
1556 | |||
1557 | ECORE_CHECK_MODULE([x], [${want_ecore_x}], [X], [${ecore_x_deps}], | ||
1558 | [ | ||
1559 | ecore_x_libs="$ecore_x_libs $x_libs" | ||
1560 | requirements_ecore_x="ecore-input >= 1.1.0 ${requirements_ecore_x}" | ||
1561 | ]) | ||
1562 | |||
1563 | # ecore_win32 | ||
1564 | |||
1565 | ECORE_CHECK_MODULE([win32], [${want_ecore_win32}], [Win32], [${have_ecore_input}], | ||
1566 | [ | ||
1567 | ecore_win32_libs="-lole32 -lgdi32" | ||
1568 | requirements_ecore_win32="ecore-input >= 1.1.0 ${requirements_ecore_win32}" | ||
1569 | ]) | ||
1570 | AC_SUBST(ecore_win32_libs) | ||
1571 | |||
1572 | # ecore_cocoa | ||
1573 | |||
1574 | ecore_cocoa_deps="no" | ||
1575 | if test "x${have_ecore_input}" = "xyes" -a "x${have_cocoa}" = "xyes" ; then | ||
1576 | ecore_cocoa_deps="yes" | ||
1577 | fi | ||
1578 | |||
1579 | ECORE_CHECK_MODULE([cocoa], [${want_ecore_cocoa}], [Cocoa], [${ecore_cocoa_deps}], | ||
1580 | [requirements_ecore_cocoa="ecore-input >= 1.1.0 ${requirements_ecore_cocoa}"]) | ||
1581 | |||
1582 | # ecore_sdl | ||
1583 | |||
1584 | ecore_sdl_deps="no" | ||
1585 | if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then | ||
1586 | ecore_sdl_deps="yes" | ||
1587 | fi | ||
1588 | |||
1589 | ECORE_CHECK_MODULE([sdl], [${want_ecore_sdl}], [Sdl], [${ecore_sdl_deps}], | ||
1590 | [requirements_ecore_sdl="ecore-input >= 1.1.0 ${requirements_ecore_sdl}"]) | ||
1591 | |||
1592 | ECORE_CHECK_MODULE([psl1ght], [${want_ecore_psl1ght}], [psl1ght], [${ecore_psl1ght_deps}], | ||
1593 | [requirements_ecore_psl1ght="ecore-input >= 1.1.0 ${requirements_ecore_psl1ght}"]) | ||
1594 | |||
1595 | # ecore_fb | ||
1596 | ECORE_CHECK_MODULE([fb], [${want_ecore_fb}], [FB], [$have_fb]) | ||
1597 | |||
1598 | if test "x${have_ecore_fb}" = "xyes" ; then | ||
1599 | ECORE_CHECK_TSLIB([${want_tslib}], | ||
1600 | [ | ||
1601 | have_tslib="yes" | ||
1602 | requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}" | ||
1603 | ], | ||
1604 | [have_tslib="no"]) | ||
1605 | fi | ||
1606 | |||
1607 | # ecore_directfb | ||
1608 | |||
1609 | ECORE_CHECK_MODULE([directfb], [${want_ecore_directfb}], [DirectFB], [${have_directfb}], | ||
1610 | [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"]) | ||
1611 | |||
1612 | # ecore_wince | ||
1613 | |||
1614 | ECORE_CHECK_MODULE([wince], [${want_ecore_wince}], [WinCE], [${have_ecore_input}], | ||
1615 | [requirements_ecore_win32="ecore-input >= 1.1.0 ${requirements_ecore_win32}"]) | ||
1616 | |||
1617 | ## Ecore Evas | ||
1618 | |||
1619 | # ecore_evas | ||
1620 | |||
1621 | ecore_evas_deps="no" | ||
1622 | if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then | ||
1623 | ecore_evas_deps="yes" | ||
1624 | fi | ||
1625 | |||
1626 | ECORE_CHECK_MODULE([evas], [${want_ecore_evas}], [Evas], [${ecore_evas_deps}], | ||
1627 | [requirements_ecore_evas="ecore-input >= 1.1.0 ecore-input-evas >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1628 | |||
1629 | # ecore_evas_buffer | ||
1630 | |||
1631 | ECORE_EVAS_CHECK_MODULE([software-buffer], | ||
1632 | [${want_ecore_evas_software_buffer}], | ||
1633 | [Software Buffer], | ||
1634 | [yes]) | ||
1635 | |||
1636 | # ecore_evas_x11 | ||
1637 | |||
1638 | # ecore_evas_software_x11 | ||
1639 | |||
1640 | ECORE_EVAS_CHECK_MODULE([software-x11], | ||
1641 | [${want_ecore_evas_software_x11}], | ||
1642 | [Software X11], | ||
1643 | [${have_ecore_x}]) | ||
1644 | |||
1645 | have_ecore_evas_software_xlib="no" | ||
1646 | have_ecore_evas_software_xcb="no" | ||
1647 | if test "x$have_ecore_evas_software_x11" = "xyes" ; then | ||
1648 | have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11` | ||
1649 | if test "x${have_ecore_evas_software_xlib}" = "xstatic"; then | ||
1650 | have_ecore_evas_software_xlib="yes" | ||
1651 | fi | ||
1652 | if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then | ||
1653 | AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support]) | ||
1654 | fi | ||
1655 | have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11` | ||
1656 | if test "x$have_ecore_evas_software_xcb" = "xstatic"; then | ||
1657 | have_ecore_evas_software_xcb="yes" | ||
1658 | fi | ||
1659 | if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then | ||
1660 | AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support]) | ||
1661 | fi | ||
1662 | fi | ||
1663 | |||
1664 | # ecore_evas_opengl_x11 | ||
1665 | |||
1666 | ECORE_EVAS_CHECK_MODULE([opengl-x11], | ||
1667 | [${want_ecore_evas_opengl_x11}], | ||
1668 | [OpenGL Xlib], | ||
1669 | [${have_ecore_x}]) | ||
1670 | |||
1671 | have_ecore_evas_opengl_xlib="no" | ||
1672 | have_ecore_evas_opengl_xcb="no" | ||
1673 | if test "x${have_ecore_evas_opengl_x11}" = "xyes" -o "x${have_ecore_evas_opengl_x11}" = "xstatic" ; then | ||
1674 | have_ecore_evas_opengl_xlib=`${PKG_CONFIG} --variable=Xlib evas-opengl-x11` | ||
1675 | if test "x${have_ecore_evas_opengl_xlib}" = "xyes" ; then | ||
1676 | AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XLIB, 1, [OpenGL Xlib rendering backend]) | ||
1677 | fi | ||
1678 | |||
1679 | # opengl does not work with xcb (yet) | ||
1680 | have_ecore_evas_opengl_xcb=`${PKG_CONFIG} --variable=XCB evas-opengl-x11` | ||
1681 | if test "x${have_ecore_evas_opengl_xcb}" = "xstatic"; then | ||
1682 | have_ecore_evas_opengl_xcb="yes" | ||
1683 | fi | ||
1684 | if test "x${have_ecore_evas_opengl_xcb}" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then | ||
1685 | PKG_CHECK_MODULES(XCB_X11, x11-xcb, | ||
1686 | [ have_ecore_x_opengl_xcb="yes" | ||
1687 | requirements_ecore_x="x11-xcb ${requirements_ecore_x}" | ||
1688 | AC_DEFINE(BUILD_ECORE_X_OPENGL_XCB, 1, [Build support for XCB-based OpenGL]) | ||
1689 | AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XCB, 1, [OpenGL XCB rendering backend]) | ||
1690 | ], | ||
1691 | [ have_ecore_x_opengl_xcb="no" ]) | ||
1692 | else | ||
1693 | have_ecore_x_opengl_xcb="no" | ||
1694 | AC_MSG_NOTICE("XCB-based OpenGL explicitly disabled") | ||
1695 | fi | ||
1696 | fi | ||
1697 | |||
1698 | # ecore_evas_software_x11 16 bits | ||
1699 | |||
1700 | ECORE_EVAS_CHECK_MODULE([software-16-x11], | ||
1701 | [${want_ecore_evas_software_16_x11}], | ||
1702 | [Software Xlib 16 bits], | ||
1703 | [${have_ecore_x_xlib}]) | ||
1704 | |||
1705 | ECORE_EVAS_CHECK_MODULE([software-8-x11], | ||
1706 | [$want_ecore_evas_software_8_x11], | ||
1707 | [Software 8bit X11], | ||
1708 | $have_ecore_x_xcb) | ||
1709 | |||
1710 | |||
1711 | if test "x$have_ecore_evas_software_x11" = "xyes" -o \ | ||
1712 | "x$have_ecore_evas_opengl_x11" = "xyes" -o \ | ||
1713 | "x$have_ecore_evas_software_8_x11" = "xyes" -o \ | ||
1714 | "x$have_ecore_evas_software_16_x11" = "xyes" -o \ | ||
1715 | "x$have_ecore_evas_software_xcb" = "xyes"; then | ||
1716 | AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas]) | ||
1717 | requirements_ecore_evas="ecore-x >= 1.1.0 ${requirements_ecore_evas}" | ||
1718 | fi | ||
1719 | |||
1720 | # ecore_evas_win32 | ||
1721 | |||
1722 | ECORE_EVAS_CHECK_MODULE([software-gdi], | ||
1723 | [${want_ecore_evas_software_gdi}], | ||
1724 | [Software GDI], | ||
1725 | [${have_ecore_win32}]) | ||
1726 | |||
1727 | ECORE_EVAS_CHECK_MODULE([software-ddraw], | ||
1728 | [${want_ecore_evas_software_ddraw}], | ||
1729 | [Software DirectDraw], | ||
1730 | [${have_ecore_win32}]) | ||
1731 | |||
1732 | ECORE_EVAS_CHECK_MODULE([direct3d], | ||
1733 | [${want_ecore_evas_direct3d}], | ||
1734 | [Direct3d], | ||
1735 | [${have_ecore_win32}]) | ||
1736 | |||
1737 | ECORE_EVAS_CHECK_MODULE([opengl-glew], | ||
1738 | [${want_ecore_evas_opengl_glew}], | ||
1739 | [Glew OpenGL], | ||
1740 | [${have_ecore_win32}]) | ||
1741 | |||
1742 | ECORE_EVAS_CHECK_MODULE([software-16-ddraw], | ||
1743 | [${want_ecore_evas_software_16_ddraw}], | ||
1744 | [16 bpp Software DirectDraw], | ||
1745 | [${have_ecore_win32}]) | ||
1746 | |||
1747 | if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \ | ||
1748 | "x${have_ecore_evas_software_ddraw}" = "xyes" -o \ | ||
1749 | "x${have_ecore_evas_direct3d}" = "xyes" -o \ | ||
1750 | "x${have_ecore_evas_opengl_glew}" = "xyes" -o \ | ||
1751 | "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then | ||
1752 | AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas]) | ||
1753 | requirements_ecore_evas="ecore-win32 >= 1.1.0 ${requirements_ecore_evas}" | ||
1754 | fi | ||
1755 | |||
1756 | # ecore_evas_software_sdl | ||
1757 | |||
1758 | ECORE_EVAS_CHECK_MODULE([software-sdl], | ||
1759 | [${want_ecore_evas_software_sdl}], | ||
1760 | [Software SDL], | ||
1761 | [${have_ecore_sdl}], | ||
1762 | [requirements_ecore_evas="ecore-sdl >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1763 | |||
1764 | # ecore_evas_gl_sdl | ||
1765 | |||
1766 | ECORE_EVAS_CHECK_MODULE([opengl-sdl], | ||
1767 | [${want_ecore_evas_gl_sdl}], | ||
1768 | [OpenGL SDL], | ||
1769 | [${have_ecore_sdl}], | ||
1770 | [requirements_ecore_evas="ecore-sdl >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1771 | |||
1772 | # ecore_evas_cocoa | ||
1773 | |||
1774 | ECORE_EVAS_CHECK_MODULE([opengl-cocoa], | ||
1775 | [${want_ecore_evas_gl_cocoa}], | ||
1776 | [OpenGL Cocoa], | ||
1777 | [${have_ecore_cocoa}], | ||
1778 | [requirements_ecore_evas="ecore-cocoa >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1779 | |||
1780 | # ecore_evas_directfb | ||
1781 | |||
1782 | ECORE_EVAS_CHECK_MODULE([directfb], | ||
1783 | [${want_ecore_evas_directfb}], | ||
1784 | [DirectFB], | ||
1785 | [${have_ecore_directfb}], | ||
1786 | [requirements_ecore_evas="ecore-directfb >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1787 | |||
1788 | # ecore_evas_fb | ||
1789 | |||
1790 | ECORE_EVAS_CHECK_MODULE([fb], | ||
1791 | [${want_ecore_evas_fb}], | ||
1792 | [Linux Framebuffer], | ||
1793 | [${have_ecore_fb}], | ||
1794 | [requirements_ecore_evas="ecore-fb >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1795 | |||
1796 | # ecore_evas_wince | ||
1797 | |||
1798 | ECORE_EVAS_CHECK_MODULE([software-16-wince], | ||
1799 | [${want_ecore_evas_software_16_wince}], | ||
1800 | [16 bpp Software Windows CE], | ||
1801 | [${have_ecore_wince}], | ||
1802 | [requirements_ecore_evas="ecore-wince >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1803 | |||
1804 | # ecore_evas_ews | ||
1805 | |||
1806 | ECORE_EVAS_CHECK_MODULE_FULL([ews], [software-buffer], | ||
1807 | [${want_ecore_evas_ews}], | ||
1808 | [Ecore Evas Single Process Windowing System], | ||
1809 | [yes], []) | ||
1810 | |||
1811 | # ecore_evas_psl1ght | ||
1812 | |||
1813 | ECORE_EVAS_CHECK_MODULE([psl1ght], | ||
1814 | [${want_ecore_evas_psl1ght}], | ||
1815 | [PSL1GHT], | ||
1816 | [${have_ecore_psl1ght}], | ||
1817 | [requirements_ecore_evas="ecore-psl1ght >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1818 | |||
1819 | ### install and build examples | ||
1820 | |||
1821 | EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"]) | ||
1822 | EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"]) | ||
1823 | |||
1824 | ### requirements | ||
1825 | |||
1826 | AC_SUBST(requirements_ecore) | ||
1827 | AC_SUBST(requirements_ecore_con) | ||
1828 | #AC_SUBST(requirements_ecore_config) | ||
1829 | AC_SUBST(requirements_ecore_directfb) | ||
1830 | AC_SUBST(requirements_ecore_evas) | ||
1831 | AC_SUBST(requirements_ecore_fb) | ||
1832 | AC_SUBST(requirements_ecore_file) | ||
1833 | AC_SUBST(requirements_ecore_imf) | ||
1834 | AC_SUBST(requirements_ecore_imf_evas) | ||
1835 | AC_SUBST(requirements_ecore_input) | ||
1836 | AC_SUBST(requirements_ecore_input_evas) | ||
1837 | AC_SUBST(requirements_ecore_ipc) | ||
1838 | AC_SUBST(requirements_ecore_cocoa) | ||
1839 | AC_SUBST(requirements_ecore_sdl) | ||
1840 | AC_SUBST(requirements_ecore_psl1ght) | ||
1841 | AC_SUBST(requirements_ecore_x) | ||
1842 | AC_SUBST(requirements_ecore_win32) | ||
1843 | AC_SUBST(requirements_ecore_wince) | ||
1844 | AC_SUBST(requirements_ecore_imf_xim) | ||
1845 | |||
1846 | AC_CONFIG_FILES([ | ||
1847 | Makefile | ||
1848 | ecore-con.pc | ||
1849 | ecore-config.pc | ||
1850 | ecore-directfb.pc | ||
1851 | ecore-evas.pc | ||
1852 | ecore-fb.pc | ||
1853 | ecore-file.pc | ||
1854 | ecore-imf.pc | ||
1855 | ecore-imf-evas.pc | ||
1856 | ecore-ipc.pc | ||
1857 | ecore-x.pc | ||
1858 | ecore-input.pc | ||
1859 | ecore-input-evas.pc | ||
1860 | ecore-win32.pc | ||
1861 | ecore-sdl.pc | ||
1862 | ecore-cocoa.pc | ||
1863 | ecore-psl1ght.pc | ||
1864 | ecore-wince.pc | ||
1865 | ecore.pc | ||
1866 | doc/ecore.dox | ||
1867 | doc/Makefile | ||
1868 | doc/Doxyfile | ||
1869 | src/Makefile | ||
1870 | src/util/Makefile | ||
1871 | src/bin/Makefile | ||
1872 | src/lib/Makefile | ||
1873 | src/lib/ecore/Makefile | ||
1874 | src/lib/ecore_con/Makefile | ||
1875 | src/lib/ecore_config/Makefile | ||
1876 | src/lib/ecore_directfb/Makefile | ||
1877 | src/lib/ecore_evas/Makefile | ||
1878 | src/lib/ecore_fb/Makefile | ||
1879 | src/lib/ecore_file/Makefile | ||
1880 | src/lib/ecore_cocoa/Makefile | ||
1881 | src/lib/ecore_sdl/Makefile | ||
1882 | src/lib/ecore_psl1ght/Makefile | ||
1883 | src/lib/ecore_imf/Makefile | ||
1884 | src/lib/ecore_imf_evas/Makefile | ||
1885 | src/lib/ecore_input/Makefile | ||
1886 | src/lib/ecore_input_evas/Makefile | ||
1887 | src/lib/ecore_ipc/Makefile | ||
1888 | src/lib/ecore_win32/Makefile | ||
1889 | src/lib/ecore_wince/Makefile | ||
1890 | src/lib/ecore_x/Makefile | ||
1891 | src/lib/ecore_x/xlib/Makefile | ||
1892 | src/lib/ecore_x/xcb/Makefile | ||
1893 | src/examples/Makefile | ||
1894 | src/tests/Makefile | ||
1895 | src/modules/Makefile | ||
1896 | src/modules/immodules/Makefile | ||
1897 | src/modules/immodules/xim/Makefile | ||
1898 | ecore.spec | ||
1899 | $po_makefile_in | ||
1900 | ]) | ||
1901 | |||
1902 | AC_OUTPUT | ||
1903 | |||
1904 | echo | ||
1905 | echo "$PACKAGE $VERSION" | ||
1906 | echo | ||
1907 | echo "Optional Modules:" | ||
1908 | echo | ||
1909 | echo " Core:" | ||
1910 | echo | ||
1911 | echo " Ecore........................: always" | ||
1912 | echo " Thread support.............: $have_threads" | ||
1913 | echo " Thread safety..............: $want_thread_safety" | ||
1914 | echo " GLib support...............: $have_glib" | ||
1915 | echo " Always integrate GLib......: $want_glib_integration_always" | ||
1916 | echo " Use g_main_loop............: $want_g_main_loop" | ||
1917 | echo " Gathering memory statistic.: $have_mallinfo" | ||
1918 | echo " Gathering timer allocation.: $want_ecore_timer_dump" | ||
1919 | echo " Ecore_Con....................: $have_ecore_con" | ||
1920 | if test "x$have_ecore_con" = "xyes" ; then | ||
1921 | echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C" | ||
1922 | if test "x$have_gnutls" = "xyes" ; then | ||
1923 | echo " (disabled)" | ||
1924 | else | ||
1925 | echo | ||
1926 | fi | ||
1927 | echo " IPv6.......................: $have_ipv6" | ||
1928 | echo " GnuTLS.....................: $have_gnutls" | ||
1929 | echo " CURL.......................: $have_curl" | ||
1930 | echo " Local Sockets..............: $want_ecore_con_local_sockets" | ||
1931 | if test "x$want_ecore_con_local_sockets" = "xyes" ; then | ||
1932 | echo " Abstract Sockets.........: $want_ecore_con_abstract_sockets" | ||
1933 | fi | ||
1934 | echo " c-ares.....................: $have_cares" | ||
1935 | fi | ||
1936 | echo " Ecore_Ipc....................: $have_ecore_ipc" | ||
1937 | if test "x$have_ecore_ipc" = "xyes" ; then | ||
1938 | echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C" | ||
1939 | if test "x$have_gnutls" = "xyes" ; then | ||
1940 | echo " (disabled)" | ||
1941 | else | ||
1942 | echo | ||
1943 | fi | ||
1944 | echo " GnuTLS.....................: $have_gnutls" | ||
1945 | fi | ||
1946 | echo " Ecore_File...................: $have_ecore_file" | ||
1947 | if test "x$have_ecore_file" = "xyes" ; then | ||
1948 | echo " Inotify....................: $have_inotify" | ||
1949 | echo " Windows notification.......: $have_notify_win32" | ||
1950 | echo " Poll.......................: $have_poll" | ||
1951 | echo " CURL.......................: $have_curl" | ||
1952 | fi | ||
1953 | #echo " Ecore_Config.................: $have_ecore_config (deprecated)" | ||
1954 | echo " Ecore_IMF....................: $have_ecore_imf" | ||
1955 | echo " XIM........................: $have_ecore_imf_xim" | ||
1956 | echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas" | ||
1957 | echo " Ecore_Input..................: $have_ecore_input" | ||
1958 | echo " Ecore_Input_Evas.............: $have_ecore_input_evas" | ||
1959 | |||
1960 | echo | ||
1961 | echo " Graphic systems:" | ||
1962 | echo | ||
1963 | |||
1964 | if test "x$have_ecore_x" = "xyes" ; then | ||
1965 | if test "x$have_ecore_x_xcb" = "xyes" ; then | ||
1966 | echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb" | ||
1967 | echo " Xprint.....................: $have_ecore_x_xcb_xprint" | ||
1968 | echo " Xinerama...................: $have_ecore_x_xcb_xinerama" | ||
1969 | echo " Xrandr.....................: $have_ecore_x_xcb_randr" | ||
1970 | echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver" | ||
1971 | echo " Xshape.....................: $have_ecore_x_xcb_shape" | ||
1972 | echo " Xgesture...................: $have_ecore_x_xcb_gesture" | ||
1973 | echo " Xsync......................: $have_ecore_x_xcb_sync" | ||
1974 | echo " Xrender....................: $have_ecore_x_xcb_render" | ||
1975 | echo " Xcomposite.................: $have_ecore_x_xcb_composite" | ||
1976 | echo " Xfixes.....................: $have_ecore_x_xcb_xfixes" | ||
1977 | echo " Xdamage....................: $have_ecore_x_xcb_damage" | ||
1978 | echo " Xdpms......................: $have_ecore_x_xcb_dpms" | ||
1979 | echo " Xtest......................: $have_ecore_x_xcb_xtest" | ||
1980 | else | ||
1981 | echo " Ecore_X (Xlib backend).......: $have_ecore_x" | ||
1982 | echo " Xcursor....................: $use_Xcursor" | ||
1983 | echo " Xkb........................: $use_xkb" | ||
1984 | echo " Xprint.....................: $use_xprint" | ||
1985 | echo " Xinerama...................: $use_xinerama" | ||
1986 | echo " Xrandr.....................: $use_xrandr" | ||
1987 | echo " Xgesture...................: $use_xgesture" | ||
1988 | echo " Xscreensaver...............: $use_xss" | ||
1989 | echo " Xrender....................: $use_xrender" | ||
1990 | echo " Xcomposite.................: $use_xcomposite" | ||
1991 | echo " Xfixes.....................: $use_xfixes" | ||
1992 | echo " Xdamage....................: $use_xdamage" | ||
1993 | echo " Xdpms......................: $use_xdpms" | ||
1994 | echo " Xtest......................: $use_xtest" | ||
1995 | echo " XIM........................: $want_xim" | ||
1996 | echo " Xi2........................: $use_xi2" | ||
1997 | fi | ||
1998 | else | ||
1999 | echo " Ecore_X......................: $have_ecore_x" | ||
2000 | fi | ||
2001 | echo " Ecore_Win32..................: $have_ecore_win32" | ||
2002 | echo " Ecore_Cocoa..................: $have_ecore_cocoa" | ||
2003 | echo " Ecore_SDL....................: $have_ecore_sdl" | ||
2004 | echo " Ecore_FB.....................: $have_ecore_fb" | ||
2005 | if test "x${have_ecore_fb}" = "xyes" ; then | ||
2006 | echo " Touchscreen................: $have_tslib" | ||
2007 | fi | ||
2008 | echo " Ecore_DirectFB...............: $have_ecore_directfb" | ||
2009 | echo " Ecore_WinCE..................: $have_ecore_wince" | ||
2010 | echo " Ecore_PSL1GHT................: $have_ecore_psl1ght" | ||
2011 | |||
2012 | echo | ||
2013 | echo " Ecore Evas:" | ||
2014 | echo | ||
2015 | |||
2016 | echo " Ecore_Evas...................: $have_ecore_evas" | ||
2017 | if test "x${have_ecore_evas}" = "xyes" ; then | ||
2018 | echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer" | ||
2019 | if test "x${have_ecore_evas_software_x11}" = "xyes" ; then | ||
2020 | echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})" | ||
2021 | else | ||
2022 | echo " Software X11...............: $have_ecore_evas_software_x11" | ||
2023 | fi | ||
2024 | if test "x${have_ecore_evas_opengl_x11}" = "xyes" ; then | ||
2025 | echo " OpenGL X11.................: $have_ecore_evas_opengl_x11 (Xlib=${have_ecore_evas_opengl_xlib}) (XCB=${have_ecore_evas_opengl_xcb})" | ||
2026 | else | ||
2027 | echo " OpenGL X11.................: $have_ecore_evas_opengl_x11" | ||
2028 | fi | ||
2029 | echo " Software GDI...............: $have_ecore_evas_software_gdi" | ||
2030 | echo " Software DirectDraw........: $have_ecore_evas_software_ddraw" | ||
2031 | echo " Direct3D...................: $have_ecore_evas_direct3d" | ||
2032 | echo " OpenGL Glew................: $have_ecore_evas_opengl_glew" | ||
2033 | echo " Software SDL...............: $have_ecore_evas_software_sdl" | ||
2034 | echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl" | ||
2035 | echo " OpenGL Cocoa...............: $have_ecore_evas_opengl_cocoa" | ||
2036 | echo " DirectFB...................: $have_ecore_evas_directfb" | ||
2037 | echo " PSL1GHT....................: $have_ecore_evas_psl1ght" | ||
2038 | echo " Software Framebuffer.......: $have_ecore_evas_fb" | ||
2039 | echo " Software 8bit grayscale XCB: $have_ecore_evas_software_8_x11" | ||
2040 | echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11" | ||
2041 | echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw" | ||
2042 | echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince" | ||
2043 | echo " Sing.Proc. Windowing System: $have_ecore_evas_ews" | ||
2044 | fi | ||
2045 | echo | ||
2046 | echo " Tests................: ${enable_tests}" | ||
2047 | echo " Maximum log level....: ${with_max_log_level}" | ||
2048 | echo "Documentation..........: ${build_doc}" | ||
2049 | echo | ||
2050 | echo "Compilation............: make (or gmake)" | ||
2051 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
2052 | echo " CFLAGS...............: $CFLAGS" | ||
2053 | echo " CXXFLAGS.............: $CXXFLAGS" | ||
2054 | echo " LDFLAGS..............: $LDFLAGS" | ||
2055 | echo | ||
2056 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
2057 | echo " prefix...............: $prefix" | ||
2058 | echo | ||