diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/ecore/configure | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/ecore/configure')
-rwxr-xr-x | libraries/ecore/configure | 34352 |
1 files changed, 0 insertions, 34352 deletions
diff --git a/libraries/ecore/configure b/libraries/ecore/configure deleted file mode 100755 index 1b2ed41..0000000 --- a/libraries/ecore/configure +++ /dev/null | |||
@@ -1,34352 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for ecore 1.2.0-alpha. | ||
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.2.0-alpha' | ||
705 | PACKAGE_STRING='ecore 1.2.0-alpha' | ||
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_wayland | ||
752 | requirements_ecore_imf_scim | ||
753 | requirements_ecore_imf_xim | ||
754 | requirements_ecore_wince | ||
755 | requirements_ecore_win32 | ||
756 | requirements_ecore_x | ||
757 | requirements_ecore_psl1ght | ||
758 | requirements_ecore_sdl | ||
759 | requirements_ecore_cocoa | ||
760 | requirements_ecore_ipc | ||
761 | requirements_ecore_input_evas | ||
762 | requirements_ecore_input | ||
763 | requirements_ecore_imf_evas | ||
764 | requirements_ecore_imf | ||
765 | requirements_ecore_file | ||
766 | requirements_ecore_fb | ||
767 | requirements_ecore_evas | ||
768 | requirements_ecore_directfb | ||
769 | requirements_ecore_con | ||
770 | requirements_ecore | ||
771 | EFL_INSTALL_EXAMPLES_FALSE | ||
772 | EFL_INSTALL_EXAMPLES_TRUE | ||
773 | EFL_BUILD_EXAMPLES_FALSE | ||
774 | EFL_BUILD_EXAMPLES_TRUE | ||
775 | EFL_ENABLE_TESTS_FALSE | ||
776 | EFL_ENABLE_TESTS_TRUE | ||
777 | CHECK_LIBS | ||
778 | CHECK_CFLAGS | ||
779 | WAYLAND_EGL_LIBS | ||
780 | WAYLAND_EGL_CFLAGS | ||
781 | ecore_wayland_libs | ||
782 | ecore_wayland_cflags | ||
783 | BUILD_ECORE_WAYLAND_FALSE | ||
784 | BUILD_ECORE_WAYLAND_TRUE | ||
785 | WAYLAND_LIBS | ||
786 | WAYLAND_CFLAGS | ||
787 | XCB_X11_LIBS | ||
788 | XCB_X11_CFLAGS | ||
789 | ecore_evas_libs | ||
790 | ecore_evas_cflags | ||
791 | BUILD_ECORE_EVAS_FALSE | ||
792 | BUILD_ECORE_EVAS_TRUE | ||
793 | ecore_wince_libs | ||
794 | ecore_wince_cflags | ||
795 | BUILD_ECORE_WINCE_FALSE | ||
796 | BUILD_ECORE_WINCE_TRUE | ||
797 | ecore_directfb_libs | ||
798 | ecore_directfb_cflags | ||
799 | BUILD_ECORE_DIRECTFB_FALSE | ||
800 | BUILD_ECORE_DIRECTFB_TRUE | ||
801 | TSLIB_LIBS | ||
802 | TSLIB_CFLAGS | ||
803 | ecore_fb_libs | ||
804 | ecore_fb_cflags | ||
805 | BUILD_ECORE_FB_FALSE | ||
806 | BUILD_ECORE_FB_TRUE | ||
807 | ecore_psl1ght_libs | ||
808 | ecore_psl1ght_cflags | ||
809 | BUILD_ECORE_PSL1GHT_FALSE | ||
810 | BUILD_ECORE_PSL1GHT_TRUE | ||
811 | ecore_sdl_libs | ||
812 | ecore_sdl_cflags | ||
813 | BUILD_ECORE_SDL_FALSE | ||
814 | BUILD_ECORE_SDL_TRUE | ||
815 | ecore_cocoa_libs | ||
816 | ecore_cocoa_cflags | ||
817 | BUILD_ECORE_COCOA_FALSE | ||
818 | BUILD_ECORE_COCOA_TRUE | ||
819 | ecore_win32_libs | ||
820 | ecore_win32_cflags | ||
821 | BUILD_ECORE_WIN32_FALSE | ||
822 | BUILD_ECORE_WIN32_TRUE | ||
823 | ecore_x_libs | ||
824 | ecore_x_cflags | ||
825 | BUILD_ECORE_X_FALSE | ||
826 | BUILD_ECORE_X_TRUE | ||
827 | ecore_imf_scim_libs | ||
828 | ecore_imf_scim_cflags | ||
829 | BUILD_ECORE_IMF_SCIM_FALSE | ||
830 | BUILD_ECORE_IMF_SCIM_TRUE | ||
831 | SCIM_LIBS | ||
832 | SCIM_CFLAGS | ||
833 | ecore_imf_xim_libs | ||
834 | ecore_imf_xim_cflags | ||
835 | BUILD_ECORE_IMF_XIM_FALSE | ||
836 | BUILD_ECORE_IMF_XIM_TRUE | ||
837 | ecore_input_evas_libs | ||
838 | ecore_input_evas_cflags | ||
839 | BUILD_ECORE_INPUT_EVAS_FALSE | ||
840 | BUILD_ECORE_INPUT_EVAS_TRUE | ||
841 | ecore_input_libs | ||
842 | ecore_input_cflags | ||
843 | BUILD_ECORE_INPUT_FALSE | ||
844 | BUILD_ECORE_INPUT_TRUE | ||
845 | ecore_imf_evas_libs | ||
846 | ecore_imf_evas_cflags | ||
847 | BUILD_ECORE_IMF_EVAS_FALSE | ||
848 | BUILD_ECORE_IMF_EVAS_TRUE | ||
849 | ecore_imf_libs | ||
850 | ecore_imf_cflags | ||
851 | BUILD_ECORE_IMF_FALSE | ||
852 | BUILD_ECORE_IMF_TRUE | ||
853 | BUILD_ECORE_CONFIG_FALSE | ||
854 | BUILD_ECORE_CONFIG_TRUE | ||
855 | ecore_file_libs | ||
856 | ecore_file_cflags | ||
857 | BUILD_ECORE_FILE_FALSE | ||
858 | BUILD_ECORE_FILE_TRUE | ||
859 | ecore_ipc_libs | ||
860 | ecore_ipc_cflags | ||
861 | BUILD_ECORE_IPC_FALSE | ||
862 | BUILD_ECORE_IPC_TRUE | ||
863 | HAVE_CARES_FALSE | ||
864 | HAVE_CARES_TRUE | ||
865 | CARES_LIBS | ||
866 | CARES_CFLAGS | ||
867 | SSL_LIBS | ||
868 | SSL_CFLAGS | ||
869 | LIBGCRYPT_LIBS | ||
870 | LIBGCRYPT_CFLAGS | ||
871 | LIBGCRYPT_CONFIG | ||
872 | TLS2_LIBS | ||
873 | TLS2_CFLAGS | ||
874 | TLS_LIBS | ||
875 | TLS_CFLAGS | ||
876 | CURL_LIBS | ||
877 | CURL_CFLAGS | ||
878 | ecore_con_libs | ||
879 | ecore_con_cflags | ||
880 | BUILD_ECORE_CON_FALSE | ||
881 | BUILD_ECORE_CON_TRUE | ||
882 | SHM_OPEN_LIBS | ||
883 | ALLOCA | ||
884 | lt_enable_auto_import | ||
885 | WIN32_CFLAGS | ||
886 | WIN32_CPPFLAGS | ||
887 | EFL_PTHREAD_LIBS | ||
888 | EFL_PTHREAD_CFLAGS | ||
889 | cocoa_ldflags | ||
890 | EVAS_LIBS | ||
891 | EVAS_CFLAGS | ||
892 | BUILD_ECORE_X_XCB_FALSE | ||
893 | BUILD_ECORE_X_XCB_TRUE | ||
894 | BUILD_ECORE_X_XLIB_FALSE | ||
895 | BUILD_ECORE_X_XLIB_TRUE | ||
896 | ecore_x_libs_private | ||
897 | x_libs | ||
898 | x_includes | ||
899 | x_cflags | ||
900 | XI2_LIBS | ||
901 | XI2_CFLAGS | ||
902 | XSS_LIBS | ||
903 | XSS_CFLAGS | ||
904 | XTEST_LIBS | ||
905 | XTEST_CFLAGS | ||
906 | XRENDER_LIBS | ||
907 | XRENDER_CFLAGS | ||
908 | XGESTURE_LIBS | ||
909 | XGESTURE_CFLAGS | ||
910 | XRANDR_LIBS | ||
911 | XRANDR_CFLAGS | ||
912 | XPRINT_LIBS | ||
913 | XPRINT_CFLAGS | ||
914 | XINERAMA_LIBS | ||
915 | XINERAMA_CFLAGS | ||
916 | XFIXES_LIBS | ||
917 | XFIXES_CFLAGS | ||
918 | XDPMS_LIBS | ||
919 | XDPMS_CFLAGS | ||
920 | XDAMAGE_LIBS | ||
921 | XDAMAGE_CFLAGS | ||
922 | XCOMPOSITE_LIBS | ||
923 | XCOMPOSITE_CFLAGS | ||
924 | XKB_LIBS | ||
925 | XKB_CFLAGS | ||
926 | Xcursor_libs | ||
927 | Xcursor_cflags | ||
928 | X_EXTRA_LIBS | ||
929 | X_LIBS | ||
930 | X_PRE_LIBS | ||
931 | X_CFLAGS | ||
932 | XMKMF | ||
933 | have_ecore_x_xcb_define | ||
934 | XCB_CURSOR_LIBS | ||
935 | XCB_CURSOR_CFLAGS | ||
936 | XCB_XINPUT_LIBS | ||
937 | XCB_XINPUT_CFLAGS | ||
938 | XCB_XTEST_LIBS | ||
939 | XCB_XTEST_CFLAGS | ||
940 | XCB_XPRINT_LIBS | ||
941 | XCB_XPRINT_CFLAGS | ||
942 | XCB_XINERAMA_LIBS | ||
943 | XCB_XINERAMA_CFLAGS | ||
944 | XCB_XFIXES_LIBS | ||
945 | XCB_XFIXES_CFLAGS | ||
946 | XCB_SYNC_LIBS | ||
947 | XCB_SYNC_CFLAGS | ||
948 | XCB_XGESTURE_LIBS | ||
949 | XCB_XGESTURE_CFLAGS | ||
950 | XCB_SHAPE_LIBS | ||
951 | XCB_SHAPE_CFLAGS | ||
952 | XCB_SCREENSAVER_LIBS | ||
953 | XCB_SCREENSAVER_CFLAGS | ||
954 | XCB_RENDER_LIBS | ||
955 | XCB_RENDER_CFLAGS | ||
956 | XCB_RANDR_LIBS | ||
957 | XCB_RANDR_CFLAGS | ||
958 | XCB_DPMS_LIBS | ||
959 | XCB_DPMS_CFLAGS | ||
960 | XCB_DAMAGE_LIBS | ||
961 | XCB_DAMAGE_CFLAGS | ||
962 | XCB_COMPOSITE_LIBS | ||
963 | XCB_COMPOSITE_CFLAGS | ||
964 | PIXMAN_LIBS | ||
965 | PIXMAN_CFLAGS | ||
966 | ECORE_XCB_LIBS | ||
967 | ECORE_XCB_CFLAGS | ||
968 | KEYSYMDEFS | ||
969 | DIRECTFB_LIBS | ||
970 | DIRECTFB_CFLAGS | ||
971 | SDL_CONFIG | ||
972 | SDL_LIBS | ||
973 | SDL_CFLAGS | ||
974 | GLIB_LIBS | ||
975 | GLIB_CFLAGS | ||
976 | EINA_LIBS | ||
977 | EINA_CFLAGS | ||
978 | rt_libs | ||
979 | dlopen_libs | ||
980 | WIN32_LIBS | ||
981 | ECORE_HAVE_PS3_FALSE | ||
982 | ECORE_HAVE_PS3_TRUE | ||
983 | ECORE_HAVE_WIN32_FALSE | ||
984 | ECORE_HAVE_WIN32_TRUE | ||
985 | ECORE_HAVE_WINCE_FALSE | ||
986 | ECORE_HAVE_WINCE_TRUE | ||
987 | EFL_ECORE_PSL1GHT_BUILD | ||
988 | EFL_ECORE_SDL_BUILD | ||
989 | EFL_ECORE_WIN32_BUILD | ||
990 | EFL_ECORE_WINCE_BUILD | ||
991 | EFL_ECORE_IPC_BUILD | ||
992 | EFL_ECORE_INPUT_EVAS_BUILD | ||
993 | EFL_ECORE_INPUT_BUILD | ||
994 | EFL_ECORE_IMF_EVAS_BUILD | ||
995 | EFL_ECORE_IMF_BUILD | ||
996 | EFL_ECORE_FILE_BUILD | ||
997 | EFL_ECORE_EVAS_BUILD | ||
998 | EFL_ECORE_CON_BUILD | ||
999 | EFL_ECORE_BUILD | ||
1000 | ECORE_HAVE_EXOTIC_FALSE | ||
1001 | ECORE_HAVE_EXOTIC_TRUE | ||
1002 | EXOTIC_LIBS | ||
1003 | EXOTIC_CFLAGS | ||
1004 | ESCAPE_LIBS | ||
1005 | ESCAPE_CFLAGS | ||
1006 | EVIL_LIBS | ||
1007 | EVIL_CFLAGS | ||
1008 | pkgconfig_requires_private | ||
1009 | PKG_CONFIG_LIBDIR | ||
1010 | PKG_CONFIG_PATH | ||
1011 | PKG_CONFIG | ||
1012 | EFL_BUILD_DOC_FALSE | ||
1013 | EFL_BUILD_DOC_TRUE | ||
1014 | efl_doxygen | ||
1015 | efl_have_doxygen | ||
1016 | CXXCPP | ||
1017 | am__fastdepCXX_FALSE | ||
1018 | am__fastdepCXX_TRUE | ||
1019 | CXXDEPMODE | ||
1020 | ac_ct_CXX | ||
1021 | CXXFLAGS | ||
1022 | CXX | ||
1023 | am__fastdepOBJC_FALSE | ||
1024 | am__fastdepOBJC_TRUE | ||
1025 | OBJCDEPMODE | ||
1026 | ac_ct_OBJC | ||
1027 | OBJCFLAGS | ||
1028 | OBJC | ||
1029 | HAVE_PO_FALSE | ||
1030 | HAVE_PO_TRUE | ||
1031 | POSUB | ||
1032 | LTLIBINTL | ||
1033 | LIBINTL | ||
1034 | INTLLIBS | ||
1035 | LTLIBICONV | ||
1036 | LIBICONV | ||
1037 | INTL_MACOSX_LIBS | ||
1038 | XGETTEXT_EXTRA_OPTIONS | ||
1039 | MSGMERGE | ||
1040 | XGETTEXT_015 | ||
1041 | XGETTEXT | ||
1042 | GMSGFMT_015 | ||
1043 | MSGFMT_015 | ||
1044 | GMSGFMT | ||
1045 | MSGFMT | ||
1046 | GETTEXT_MACRO_VERSION | ||
1047 | USE_NLS | ||
1048 | VMAJ | ||
1049 | release_info | ||
1050 | version_info | ||
1051 | OTOOL64 | ||
1052 | OTOOL | ||
1053 | LIPO | ||
1054 | NMEDIT | ||
1055 | DSYMUTIL | ||
1056 | lt_ECHO | ||
1057 | RANLIB | ||
1058 | AR | ||
1059 | LN_S | ||
1060 | NM | ||
1061 | ac_ct_DUMPBIN | ||
1062 | DUMPBIN | ||
1063 | LD | ||
1064 | FGREP | ||
1065 | SED | ||
1066 | LIBTOOL | ||
1067 | OBJDUMP | ||
1068 | DLLTOOL | ||
1069 | AS | ||
1070 | host_os | ||
1071 | host_vendor | ||
1072 | host_cpu | ||
1073 | host | ||
1074 | build_os | ||
1075 | build_vendor | ||
1076 | build_cpu | ||
1077 | build | ||
1078 | EGREP | ||
1079 | GREP | ||
1080 | CPP | ||
1081 | am__fastdepCC_FALSE | ||
1082 | am__fastdepCC_TRUE | ||
1083 | CCDEPMODE | ||
1084 | AMDEPBACKSLASH | ||
1085 | AMDEP_FALSE | ||
1086 | AMDEP_TRUE | ||
1087 | am__quote | ||
1088 | am__include | ||
1089 | DEPDIR | ||
1090 | OBJEXT | ||
1091 | EXEEXT | ||
1092 | ac_ct_CC | ||
1093 | CPPFLAGS | ||
1094 | LDFLAGS | ||
1095 | CFLAGS | ||
1096 | CC | ||
1097 | AM_BACKSLASH | ||
1098 | AM_DEFAULT_VERBOSITY | ||
1099 | am__untar | ||
1100 | am__tar | ||
1101 | AMTAR | ||
1102 | am__leading_dot | ||
1103 | SET_MAKE | ||
1104 | AWK | ||
1105 | mkdir_p | ||
1106 | MKDIR_P | ||
1107 | INSTALL_STRIP_PROGRAM | ||
1108 | STRIP | ||
1109 | install_sh | ||
1110 | MAKEINFO | ||
1111 | AUTOHEADER | ||
1112 | AUTOMAKE | ||
1113 | AUTOCONF | ||
1114 | ACLOCAL | ||
1115 | VERSION | ||
1116 | PACKAGE | ||
1117 | CYGPATH_W | ||
1118 | am__isrc | ||
1119 | INSTALL_DATA | ||
1120 | INSTALL_SCRIPT | ||
1121 | INSTALL_PROGRAM | ||
1122 | target_alias | ||
1123 | host_alias | ||
1124 | build_alias | ||
1125 | LIBS | ||
1126 | ECHO_T | ||
1127 | ECHO_N | ||
1128 | ECHO_C | ||
1129 | DEFS | ||
1130 | mandir | ||
1131 | localedir | ||
1132 | libdir | ||
1133 | psdir | ||
1134 | pdfdir | ||
1135 | dvidir | ||
1136 | htmldir | ||
1137 | infodir | ||
1138 | docdir | ||
1139 | oldincludedir | ||
1140 | includedir | ||
1141 | localstatedir | ||
1142 | sharedstatedir | ||
1143 | sysconfdir | ||
1144 | datadir | ||
1145 | datarootdir | ||
1146 | libexecdir | ||
1147 | sbindir | ||
1148 | bindir | ||
1149 | program_transform_name | ||
1150 | prefix | ||
1151 | exec_prefix | ||
1152 | PACKAGE_URL | ||
1153 | PACKAGE_BUGREPORT | ||
1154 | PACKAGE_STRING | ||
1155 | PACKAGE_VERSION | ||
1156 | PACKAGE_TARNAME | ||
1157 | PACKAGE_NAME | ||
1158 | PATH_SEPARATOR | ||
1159 | SHELL' | ||
1160 | ac_subst_files='' | ||
1161 | ac_user_opts=' | ||
1162 | enable_option_checking | ||
1163 | enable_silent_rules | ||
1164 | enable_dependency_tracking | ||
1165 | enable_shared | ||
1166 | enable_static | ||
1167 | with_pic | ||
1168 | enable_fast_install | ||
1169 | with_gnu_ld | ||
1170 | enable_libtool_lock | ||
1171 | enable_nls | ||
1172 | enable_rpath | ||
1173 | with_libiconv_prefix | ||
1174 | with_libintl_prefix | ||
1175 | with_internal_maximum_log_level | ||
1176 | enable_glib_integration_always | ||
1177 | enable_g_main_loop | ||
1178 | enable_local_sockets | ||
1179 | enable_abstract_sockets | ||
1180 | enable_simple_x11 | ||
1181 | enable_xim | ||
1182 | enable_doc | ||
1183 | with_doxygen | ||
1184 | enable_ecore_timer_dump | ||
1185 | enable_glib | ||
1186 | with_sdl_config | ||
1187 | enable_ecore_x_composite | ||
1188 | enable_ecore_x_damage | ||
1189 | enable_ecore_x_dpms | ||
1190 | enable_ecore_x_randr | ||
1191 | enable_ecore_x_render | ||
1192 | enable_ecore_x_screensaver | ||
1193 | enable_ecore_x_shape | ||
1194 | enable_ecore_x_gesture | ||
1195 | enable_ecore_x_sync | ||
1196 | enable_ecore_x_xfixes | ||
1197 | enable_ecore_x_xinerama | ||
1198 | enable_ecore_x_xprint | ||
1199 | enable_ecore_x_xtest | ||
1200 | enable_ecore_x_cursor | ||
1201 | enable_ecore_x_input | ||
1202 | enable_ecore_x_dri | ||
1203 | enable_ecore_x_xcb | ||
1204 | with_iconv_link | ||
1205 | with_x | ||
1206 | enable_largefile | ||
1207 | enable_epoll | ||
1208 | enable_posix_threads | ||
1209 | enable_win32_threads | ||
1210 | enable_debug_threads | ||
1211 | enable_thread_safety | ||
1212 | enable_atfile_source | ||
1213 | enable_ecore_con | ||
1214 | enable_ipv6 | ||
1215 | enable_curl | ||
1216 | enable_gnutls | ||
1217 | with_libgcrypt_prefix | ||
1218 | with_libgcrypt_exec_prefix | ||
1219 | enable_openssl | ||
1220 | enable_cares | ||
1221 | enable_ecore_ipc | ||
1222 | enable_ecore_file | ||
1223 | enable_poll | ||
1224 | enable_inotify | ||
1225 | enable_notify_win32 | ||
1226 | enable_ecore_imf | ||
1227 | enable_ecore_imf_evas | ||
1228 | enable_ecore_input | ||
1229 | enable_ecore_input_evas | ||
1230 | enable_ecore_imf_xim | ||
1231 | enable_ecore_imf_scim | ||
1232 | enable_ecore_x | ||
1233 | enable_ecore_win32 | ||
1234 | enable_ecore_cocoa | ||
1235 | enable_ecore_sdl | ||
1236 | enable_ecore_psl1ght | ||
1237 | enable_ecore_fb | ||
1238 | enable_tslib | ||
1239 | enable_ecore_directfb | ||
1240 | enable_ecore_wince | ||
1241 | enable_ecore_evas | ||
1242 | enable_ecore_evas_software_buffer | ||
1243 | enable_ecore_evas_software_x11 | ||
1244 | enable_ecore_evas_opengl_x11 | ||
1245 | enable_ecore_evas_software_16_x11 | ||
1246 | enable_ecore_evas_software_8_x11 | ||
1247 | enable_ecore_evas_software_gdi | ||
1248 | enable_ecore_evas_software_ddraw | ||
1249 | enable_ecore_evas_direct3d | ||
1250 | enable_ecore_evas_opengl_glew | ||
1251 | enable_ecore_evas_software_16_ddraw | ||
1252 | enable_ecore_evas_opengl_sdl | ||
1253 | enable_ecore_evas_opengl_cocoa | ||
1254 | enable_ecore_evas_directfb | ||
1255 | enable_ecore_evas_fb | ||
1256 | enable_ecore_evas_software_16_wince | ||
1257 | enable_ecore_evas_ews | ||
1258 | enable_ecore_evas_psl1ght | ||
1259 | enable_ecore_wayland | ||
1260 | enable_ecore_evas_wayland_shm | ||
1261 | enable_ecore_evas_wayland_egl | ||
1262 | enable_tests | ||
1263 | enable_build_examples | ||
1264 | enable_install_examples | ||
1265 | ' | ||
1266 | ac_precious_vars='build_alias | ||
1267 | host_alias | ||
1268 | target_alias | ||
1269 | CC | ||
1270 | CFLAGS | ||
1271 | LDFLAGS | ||
1272 | LIBS | ||
1273 | CPPFLAGS | ||
1274 | CPP | ||
1275 | OBJC | ||
1276 | OBJCFLAGS | ||
1277 | CXX | ||
1278 | CXXFLAGS | ||
1279 | CCC | ||
1280 | CXXCPP | ||
1281 | PKG_CONFIG | ||
1282 | PKG_CONFIG_PATH | ||
1283 | PKG_CONFIG_LIBDIR | ||
1284 | EVIL_CFLAGS | ||
1285 | EVIL_LIBS | ||
1286 | ESCAPE_CFLAGS | ||
1287 | ESCAPE_LIBS | ||
1288 | EXOTIC_CFLAGS | ||
1289 | EXOTIC_LIBS | ||
1290 | EINA_CFLAGS | ||
1291 | EINA_LIBS | ||
1292 | GLIB_CFLAGS | ||
1293 | GLIB_LIBS | ||
1294 | SDL_CFLAGS | ||
1295 | SDL_LIBS | ||
1296 | DIRECTFB_CFLAGS | ||
1297 | DIRECTFB_LIBS | ||
1298 | ECORE_XCB_CFLAGS | ||
1299 | ECORE_XCB_LIBS | ||
1300 | PIXMAN_CFLAGS | ||
1301 | PIXMAN_LIBS | ||
1302 | XCB_COMPOSITE_CFLAGS | ||
1303 | XCB_COMPOSITE_LIBS | ||
1304 | XCB_DAMAGE_CFLAGS | ||
1305 | XCB_DAMAGE_LIBS | ||
1306 | XCB_DPMS_CFLAGS | ||
1307 | XCB_DPMS_LIBS | ||
1308 | XCB_RANDR_CFLAGS | ||
1309 | XCB_RANDR_LIBS | ||
1310 | XCB_RENDER_CFLAGS | ||
1311 | XCB_RENDER_LIBS | ||
1312 | XCB_SCREENSAVER_CFLAGS | ||
1313 | XCB_SCREENSAVER_LIBS | ||
1314 | XCB_SHAPE_CFLAGS | ||
1315 | XCB_SHAPE_LIBS | ||
1316 | XCB_XGESTURE_CFLAGS | ||
1317 | XCB_XGESTURE_LIBS | ||
1318 | XCB_SYNC_CFLAGS | ||
1319 | XCB_SYNC_LIBS | ||
1320 | XCB_XFIXES_CFLAGS | ||
1321 | XCB_XFIXES_LIBS | ||
1322 | XCB_XINERAMA_CFLAGS | ||
1323 | XCB_XINERAMA_LIBS | ||
1324 | XCB_XPRINT_CFLAGS | ||
1325 | XCB_XPRINT_LIBS | ||
1326 | XCB_XTEST_CFLAGS | ||
1327 | XCB_XTEST_LIBS | ||
1328 | XCB_XINPUT_CFLAGS | ||
1329 | XCB_XINPUT_LIBS | ||
1330 | XCB_CURSOR_CFLAGS | ||
1331 | XCB_CURSOR_LIBS | ||
1332 | XMKMF | ||
1333 | EVAS_CFLAGS | ||
1334 | EVAS_LIBS | ||
1335 | CURL_CFLAGS | ||
1336 | CURL_LIBS | ||
1337 | TLS_CFLAGS | ||
1338 | TLS_LIBS | ||
1339 | TLS2_CFLAGS | ||
1340 | TLS2_LIBS | ||
1341 | SSL_CFLAGS | ||
1342 | SSL_LIBS | ||
1343 | CARES_CFLAGS | ||
1344 | CARES_LIBS | ||
1345 | SCIM_CFLAGS | ||
1346 | SCIM_LIBS | ||
1347 | TSLIB_CFLAGS | ||
1348 | TSLIB_LIBS | ||
1349 | XCB_X11_CFLAGS | ||
1350 | XCB_X11_LIBS | ||
1351 | WAYLAND_CFLAGS | ||
1352 | WAYLAND_LIBS | ||
1353 | WAYLAND_EGL_CFLAGS | ||
1354 | WAYLAND_EGL_LIBS | ||
1355 | CHECK_CFLAGS | ||
1356 | CHECK_LIBS' | ||
1357 | |||
1358 | |||
1359 | # Initialize some variables set by options. | ||
1360 | ac_init_help= | ||
1361 | ac_init_version=false | ||
1362 | ac_unrecognized_opts= | ||
1363 | ac_unrecognized_sep= | ||
1364 | # The variables have the same names as the options, with | ||
1365 | # dashes changed to underlines. | ||
1366 | cache_file=/dev/null | ||
1367 | exec_prefix=NONE | ||
1368 | no_create= | ||
1369 | no_recursion= | ||
1370 | prefix=NONE | ||
1371 | program_prefix=NONE | ||
1372 | program_suffix=NONE | ||
1373 | program_transform_name=s,x,x, | ||
1374 | silent= | ||
1375 | site= | ||
1376 | srcdir= | ||
1377 | verbose= | ||
1378 | x_includes=NONE | ||
1379 | x_libraries=NONE | ||
1380 | |||
1381 | # Installation directory options. | ||
1382 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
1383 | # and all the variables that are supposed to be based on exec_prefix | ||
1384 | # by default will actually change. | ||
1385 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
1386 | # (The list follows the same order as the GNU Coding Standards.) | ||
1387 | bindir='${exec_prefix}/bin' | ||
1388 | sbindir='${exec_prefix}/sbin' | ||
1389 | libexecdir='${exec_prefix}/libexec' | ||
1390 | datarootdir='${prefix}/share' | ||
1391 | datadir='${datarootdir}' | ||
1392 | sysconfdir='${prefix}/etc' | ||
1393 | sharedstatedir='${prefix}/com' | ||
1394 | localstatedir='${prefix}/var' | ||
1395 | includedir='${prefix}/include' | ||
1396 | oldincludedir='/usr/include' | ||
1397 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1398 | infodir='${datarootdir}/info' | ||
1399 | htmldir='${docdir}' | ||
1400 | dvidir='${docdir}' | ||
1401 | pdfdir='${docdir}' | ||
1402 | psdir='${docdir}' | ||
1403 | libdir='${exec_prefix}/lib' | ||
1404 | localedir='${datarootdir}/locale' | ||
1405 | mandir='${datarootdir}/man' | ||
1406 | |||
1407 | ac_prev= | ||
1408 | ac_dashdash= | ||
1409 | for ac_option | ||
1410 | do | ||
1411 | # If the previous option needs an argument, assign it. | ||
1412 | if test -n "$ac_prev"; then | ||
1413 | eval $ac_prev=\$ac_option | ||
1414 | ac_prev= | ||
1415 | continue | ||
1416 | fi | ||
1417 | |||
1418 | case $ac_option in | ||
1419 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1420 | *=) ac_optarg= ;; | ||
1421 | *) ac_optarg=yes ;; | ||
1422 | esac | ||
1423 | |||
1424 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1425 | |||
1426 | case $ac_dashdash$ac_option in | ||
1427 | --) | ||
1428 | ac_dashdash=yes ;; | ||
1429 | |||
1430 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1431 | ac_prev=bindir ;; | ||
1432 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1433 | bindir=$ac_optarg ;; | ||
1434 | |||
1435 | -build | --build | --buil | --bui | --bu) | ||
1436 | ac_prev=build_alias ;; | ||
1437 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1438 | build_alias=$ac_optarg ;; | ||
1439 | |||
1440 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1441 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1442 | ac_prev=cache_file ;; | ||
1443 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1444 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1445 | cache_file=$ac_optarg ;; | ||
1446 | |||
1447 | --config-cache | -C) | ||
1448 | cache_file=config.cache ;; | ||
1449 | |||
1450 | -datadir | --datadir | --datadi | --datad) | ||
1451 | ac_prev=datadir ;; | ||
1452 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1453 | datadir=$ac_optarg ;; | ||
1454 | |||
1455 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1456 | | --dataroo | --dataro | --datar) | ||
1457 | ac_prev=datarootdir ;; | ||
1458 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1459 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1460 | datarootdir=$ac_optarg ;; | ||
1461 | |||
1462 | -disable-* | --disable-*) | ||
1463 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1464 | # Reject names that are not valid shell variable names. | ||
1465 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1466 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1467 | ac_useropt_orig=$ac_useropt | ||
1468 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1469 | case $ac_user_opts in | ||
1470 | *" | ||
1471 | "enable_$ac_useropt" | ||
1472 | "*) ;; | ||
1473 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1474 | ac_unrecognized_sep=', ';; | ||
1475 | esac | ||
1476 | eval enable_$ac_useropt=no ;; | ||
1477 | |||
1478 | -docdir | --docdir | --docdi | --doc | --do) | ||
1479 | ac_prev=docdir ;; | ||
1480 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1481 | docdir=$ac_optarg ;; | ||
1482 | |||
1483 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1484 | ac_prev=dvidir ;; | ||
1485 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1486 | dvidir=$ac_optarg ;; | ||
1487 | |||
1488 | -enable-* | --enable-*) | ||
1489 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1490 | # Reject names that are not valid shell variable names. | ||
1491 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1492 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1493 | ac_useropt_orig=$ac_useropt | ||
1494 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1495 | case $ac_user_opts in | ||
1496 | *" | ||
1497 | "enable_$ac_useropt" | ||
1498 | "*) ;; | ||
1499 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1500 | ac_unrecognized_sep=', ';; | ||
1501 | esac | ||
1502 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1503 | |||
1504 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1505 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1506 | | --exec | --exe | --ex) | ||
1507 | ac_prev=exec_prefix ;; | ||
1508 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1509 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1510 | | --exec=* | --exe=* | --ex=*) | ||
1511 | exec_prefix=$ac_optarg ;; | ||
1512 | |||
1513 | -gas | --gas | --ga | --g) | ||
1514 | # Obsolete; use --with-gas. | ||
1515 | with_gas=yes ;; | ||
1516 | |||
1517 | -help | --help | --hel | --he | -h) | ||
1518 | ac_init_help=long ;; | ||
1519 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1520 | ac_init_help=recursive ;; | ||
1521 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1522 | ac_init_help=short ;; | ||
1523 | |||
1524 | -host | --host | --hos | --ho) | ||
1525 | ac_prev=host_alias ;; | ||
1526 | -host=* | --host=* | --hos=* | --ho=*) | ||
1527 | host_alias=$ac_optarg ;; | ||
1528 | |||
1529 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1530 | ac_prev=htmldir ;; | ||
1531 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1532 | | --ht=*) | ||
1533 | htmldir=$ac_optarg ;; | ||
1534 | |||
1535 | -includedir | --includedir | --includedi | --included | --include \ | ||
1536 | | --includ | --inclu | --incl | --inc) | ||
1537 | ac_prev=includedir ;; | ||
1538 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1539 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1540 | includedir=$ac_optarg ;; | ||
1541 | |||
1542 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1543 | ac_prev=infodir ;; | ||
1544 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1545 | infodir=$ac_optarg ;; | ||
1546 | |||
1547 | -libdir | --libdir | --libdi | --libd) | ||
1548 | ac_prev=libdir ;; | ||
1549 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1550 | libdir=$ac_optarg ;; | ||
1551 | |||
1552 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1553 | | --libexe | --libex | --libe) | ||
1554 | ac_prev=libexecdir ;; | ||
1555 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1556 | | --libexe=* | --libex=* | --libe=*) | ||
1557 | libexecdir=$ac_optarg ;; | ||
1558 | |||
1559 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1560 | ac_prev=localedir ;; | ||
1561 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1562 | localedir=$ac_optarg ;; | ||
1563 | |||
1564 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1565 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1566 | ac_prev=localstatedir ;; | ||
1567 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1568 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1569 | localstatedir=$ac_optarg ;; | ||
1570 | |||
1571 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1572 | ac_prev=mandir ;; | ||
1573 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1574 | mandir=$ac_optarg ;; | ||
1575 | |||
1576 | -nfp | --nfp | --nf) | ||
1577 | # Obsolete; use --without-fp. | ||
1578 | with_fp=no ;; | ||
1579 | |||
1580 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1581 | | --no-cr | --no-c | -n) | ||
1582 | no_create=yes ;; | ||
1583 | |||
1584 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1585 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1586 | no_recursion=yes ;; | ||
1587 | |||
1588 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1589 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1590 | | --oldin | --oldi | --old | --ol | --o) | ||
1591 | ac_prev=oldincludedir ;; | ||
1592 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1593 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1594 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1595 | oldincludedir=$ac_optarg ;; | ||
1596 | |||
1597 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1598 | ac_prev=prefix ;; | ||
1599 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1600 | prefix=$ac_optarg ;; | ||
1601 | |||
1602 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1603 | | --program-pre | --program-pr | --program-p) | ||
1604 | ac_prev=program_prefix ;; | ||
1605 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1606 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1607 | program_prefix=$ac_optarg ;; | ||
1608 | |||
1609 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1610 | | --program-suf | --program-su | --program-s) | ||
1611 | ac_prev=program_suffix ;; | ||
1612 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1613 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1614 | program_suffix=$ac_optarg ;; | ||
1615 | |||
1616 | -program-transform-name | --program-transform-name \ | ||
1617 | | --program-transform-nam | --program-transform-na \ | ||
1618 | | --program-transform-n | --program-transform- \ | ||
1619 | | --program-transform | --program-transfor \ | ||
1620 | | --program-transfo | --program-transf \ | ||
1621 | | --program-trans | --program-tran \ | ||
1622 | | --progr-tra | --program-tr | --program-t) | ||
1623 | ac_prev=program_transform_name ;; | ||
1624 | -program-transform-name=* | --program-transform-name=* \ | ||
1625 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1626 | | --program-transform-n=* | --program-transform-=* \ | ||
1627 | | --program-transform=* | --program-transfor=* \ | ||
1628 | | --program-transfo=* | --program-transf=* \ | ||
1629 | | --program-trans=* | --program-tran=* \ | ||
1630 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1631 | program_transform_name=$ac_optarg ;; | ||
1632 | |||
1633 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1634 | ac_prev=pdfdir ;; | ||
1635 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1636 | pdfdir=$ac_optarg ;; | ||
1637 | |||
1638 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1639 | ac_prev=psdir ;; | ||
1640 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1641 | psdir=$ac_optarg ;; | ||
1642 | |||
1643 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1644 | | -silent | --silent | --silen | --sile | --sil) | ||
1645 | silent=yes ;; | ||
1646 | |||
1647 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1648 | ac_prev=sbindir ;; | ||
1649 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1650 | | --sbi=* | --sb=*) | ||
1651 | sbindir=$ac_optarg ;; | ||
1652 | |||
1653 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1654 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1655 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1656 | | --sha | --sh) | ||
1657 | ac_prev=sharedstatedir ;; | ||
1658 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1659 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1660 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1661 | | --sha=* | --sh=*) | ||
1662 | sharedstatedir=$ac_optarg ;; | ||
1663 | |||
1664 | -site | --site | --sit) | ||
1665 | ac_prev=site ;; | ||
1666 | -site=* | --site=* | --sit=*) | ||
1667 | site=$ac_optarg ;; | ||
1668 | |||
1669 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1670 | ac_prev=srcdir ;; | ||
1671 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1672 | srcdir=$ac_optarg ;; | ||
1673 | |||
1674 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1675 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1676 | ac_prev=sysconfdir ;; | ||
1677 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1678 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1679 | sysconfdir=$ac_optarg ;; | ||
1680 | |||
1681 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1682 | ac_prev=target_alias ;; | ||
1683 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1684 | target_alias=$ac_optarg ;; | ||
1685 | |||
1686 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1687 | verbose=yes ;; | ||
1688 | |||
1689 | -version | --version | --versio | --versi | --vers | -V) | ||
1690 | ac_init_version=: ;; | ||
1691 | |||
1692 | -with-* | --with-*) | ||
1693 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1694 | # Reject names that are not valid shell variable names. | ||
1695 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1696 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1697 | ac_useropt_orig=$ac_useropt | ||
1698 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1699 | case $ac_user_opts in | ||
1700 | *" | ||
1701 | "with_$ac_useropt" | ||
1702 | "*) ;; | ||
1703 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1704 | ac_unrecognized_sep=', ';; | ||
1705 | esac | ||
1706 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1707 | |||
1708 | -without-* | --without-*) | ||
1709 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1710 | # Reject names that are not valid shell variable names. | ||
1711 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1712 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1713 | ac_useropt_orig=$ac_useropt | ||
1714 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1715 | case $ac_user_opts in | ||
1716 | *" | ||
1717 | "with_$ac_useropt" | ||
1718 | "*) ;; | ||
1719 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1720 | ac_unrecognized_sep=', ';; | ||
1721 | esac | ||
1722 | eval with_$ac_useropt=no ;; | ||
1723 | |||
1724 | --x) | ||
1725 | # Obsolete; use --with-x. | ||
1726 | with_x=yes ;; | ||
1727 | |||
1728 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1729 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1730 | ac_prev=x_includes ;; | ||
1731 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1732 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1733 | x_includes=$ac_optarg ;; | ||
1734 | |||
1735 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1736 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1737 | ac_prev=x_libraries ;; | ||
1738 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1739 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1740 | x_libraries=$ac_optarg ;; | ||
1741 | |||
1742 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1743 | Try \`$0 --help' for more information" | ||
1744 | ;; | ||
1745 | |||
1746 | *=*) | ||
1747 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1748 | # Reject names that are not valid shell variable names. | ||
1749 | case $ac_envvar in #( | ||
1750 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1751 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1752 | esac | ||
1753 | eval $ac_envvar=\$ac_optarg | ||
1754 | export $ac_envvar ;; | ||
1755 | |||
1756 | *) | ||
1757 | # FIXME: should be removed in autoconf 3.0. | ||
1758 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1759 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1760 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1761 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1762 | ;; | ||
1763 | |||
1764 | esac | ||
1765 | done | ||
1766 | |||
1767 | if test -n "$ac_prev"; then | ||
1768 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1769 | as_fn_error $? "missing argument to $ac_option" | ||
1770 | fi | ||
1771 | |||
1772 | if test -n "$ac_unrecognized_opts"; then | ||
1773 | case $enable_option_checking in | ||
1774 | no) ;; | ||
1775 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1776 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1777 | esac | ||
1778 | fi | ||
1779 | |||
1780 | # Check all directory arguments for consistency. | ||
1781 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1782 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1783 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1784 | libdir localedir mandir | ||
1785 | do | ||
1786 | eval ac_val=\$$ac_var | ||
1787 | # Remove trailing slashes. | ||
1788 | case $ac_val in | ||
1789 | */ ) | ||
1790 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1791 | eval $ac_var=\$ac_val;; | ||
1792 | esac | ||
1793 | # Be sure to have absolute directory names. | ||
1794 | case $ac_val in | ||
1795 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1796 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1797 | esac | ||
1798 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1799 | done | ||
1800 | |||
1801 | # There might be people who depend on the old broken behavior: `$host' | ||
1802 | # used to hold the argument of --host etc. | ||
1803 | # FIXME: To remove some day. | ||
1804 | build=$build_alias | ||
1805 | host=$host_alias | ||
1806 | target=$target_alias | ||
1807 | |||
1808 | # FIXME: To remove some day. | ||
1809 | if test "x$host_alias" != x; then | ||
1810 | if test "x$build_alias" = x; then | ||
1811 | cross_compiling=maybe | ||
1812 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1813 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1814 | elif test "x$build_alias" != "x$host_alias"; then | ||
1815 | cross_compiling=yes | ||
1816 | fi | ||
1817 | fi | ||
1818 | |||
1819 | ac_tool_prefix= | ||
1820 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1821 | |||
1822 | test "$silent" = yes && exec 6>/dev/null | ||
1823 | |||
1824 | |||
1825 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1826 | ac_ls_di=`ls -di .` && | ||
1827 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1828 | as_fn_error $? "working directory cannot be determined" | ||
1829 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1830 | as_fn_error $? "pwd does not report name of working directory" | ||
1831 | |||
1832 | |||
1833 | # Find the source files, if location was not specified. | ||
1834 | if test -z "$srcdir"; then | ||
1835 | ac_srcdir_defaulted=yes | ||
1836 | # Try the directory containing this script, then the parent directory. | ||
1837 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1838 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1839 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1840 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1841 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1842 | $as_echo X"$as_myself" | | ||
1843 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1844 | s//\1/ | ||
1845 | q | ||
1846 | } | ||
1847 | /^X\(\/\/\)[^/].*/{ | ||
1848 | s//\1/ | ||
1849 | q | ||
1850 | } | ||
1851 | /^X\(\/\/\)$/{ | ||
1852 | s//\1/ | ||
1853 | q | ||
1854 | } | ||
1855 | /^X\(\/\).*/{ | ||
1856 | s//\1/ | ||
1857 | q | ||
1858 | } | ||
1859 | s/.*/./; q'` | ||
1860 | srcdir=$ac_confdir | ||
1861 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1862 | srcdir=.. | ||
1863 | fi | ||
1864 | else | ||
1865 | ac_srcdir_defaulted=no | ||
1866 | fi | ||
1867 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1868 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1869 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1870 | fi | ||
1871 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1872 | ac_abs_confdir=`( | ||
1873 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1874 | pwd)` | ||
1875 | # When building in place, set srcdir=. | ||
1876 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1877 | srcdir=. | ||
1878 | fi | ||
1879 | # Remove unnecessary trailing slashes from srcdir. | ||
1880 | # Double slashes in file names in object file debugging info | ||
1881 | # mess up M-x gdb in Emacs. | ||
1882 | case $srcdir in | ||
1883 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1884 | esac | ||
1885 | for ac_var in $ac_precious_vars; do | ||
1886 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1887 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1888 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1889 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1890 | done | ||
1891 | |||
1892 | # | ||
1893 | # Report the --help message. | ||
1894 | # | ||
1895 | if test "$ac_init_help" = "long"; then | ||
1896 | # Omit some internal or obsolete options to make the list less imposing. | ||
1897 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1898 | cat <<_ACEOF | ||
1899 | \`configure' configures ecore 1.2.0-alpha to adapt to many kinds of systems. | ||
1900 | |||
1901 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1902 | |||
1903 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1904 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1905 | |||
1906 | Defaults for the options are specified in brackets. | ||
1907 | |||
1908 | Configuration: | ||
1909 | -h, --help display this help and exit | ||
1910 | --help=short display options specific to this package | ||
1911 | --help=recursive display the short help of all the included packages | ||
1912 | -V, --version display version information and exit | ||
1913 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1914 | --cache-file=FILE cache test results in FILE [disabled] | ||
1915 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1916 | -n, --no-create do not create output files | ||
1917 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1918 | |||
1919 | Installation directories: | ||
1920 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1921 | [$ac_default_prefix] | ||
1922 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1923 | [PREFIX] | ||
1924 | |||
1925 | By default, \`make install' will install all the files in | ||
1926 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1927 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1928 | for instance \`--prefix=\$HOME'. | ||
1929 | |||
1930 | For better control, use the options below. | ||
1931 | |||
1932 | Fine tuning of the installation directories: | ||
1933 | --bindir=DIR user executables [EPREFIX/bin] | ||
1934 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1935 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1936 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1937 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1938 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1939 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1940 | --includedir=DIR C header files [PREFIX/include] | ||
1941 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1942 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1943 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1944 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1945 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1946 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1947 | --docdir=DIR documentation root [DATAROOTDIR/doc/ecore] | ||
1948 | --htmldir=DIR html documentation [DOCDIR] | ||
1949 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1950 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1951 | --psdir=DIR ps documentation [DOCDIR] | ||
1952 | _ACEOF | ||
1953 | |||
1954 | cat <<\_ACEOF | ||
1955 | |||
1956 | Program names: | ||
1957 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1958 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1959 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1960 | |||
1961 | X features: | ||
1962 | --x-includes=DIR X include files are in DIR | ||
1963 | --x-libraries=DIR X library files are in DIR | ||
1964 | |||
1965 | System types: | ||
1966 | --build=BUILD configure for building on BUILD [guessed] | ||
1967 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1968 | _ACEOF | ||
1969 | fi | ||
1970 | |||
1971 | if test -n "$ac_init_help"; then | ||
1972 | case $ac_init_help in | ||
1973 | short | recursive ) echo "Configuration of ecore 1.2.0-alpha:";; | ||
1974 | esac | ||
1975 | cat <<\_ACEOF | ||
1976 | |||
1977 | Optional Features: | ||
1978 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1979 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1980 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1981 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
1982 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
1983 | --disable-dependency-tracking speeds up one-time build | ||
1984 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1985 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1986 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1987 | --enable-fast-install[=PKGS] | ||
1988 | optimize for fast installation [default=yes] | ||
1989 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1990 | --disable-nls do not use Native Language Support | ||
1991 | --disable-rpath do not hardcode runtime library paths | ||
1992 | --enable-glib-integration-always | ||
1993 | enable glib integration when ecore_init() is called | ||
1994 | always | ||
1995 | --enable-g-main-loop ecore_main_loop based on g_main_loop | ||
1996 | --disable-local-sockets disable local sockets. | ||
1997 | --disable-abstract-sockets | ||
1998 | disable abstract sockets. | ||
1999 | --enable-simple-x11 enable simple x11 linking | ||
2000 | --disable-xim disable X Input Method. | ||
2001 | --disable-doc Disable documentation build [default=enabled] | ||
2002 | --disable-ecore-timer-dump | ||
2003 | disable tracking of timer allocation. | ||
2004 | [default=enable] | ||
2005 | --disable-glib disable glib support. [default=detect] | ||
2006 | --disable-ecore-x-composite | ||
2007 | disable the ecore_x support for Xcomposite | ||
2008 | extension. [default=detect] | ||
2009 | --disable-ecore-x-damage | ||
2010 | disable the ecore_x support for Xdamage extension. | ||
2011 | [default=detect] | ||
2012 | --disable-ecore-x-dpms disable the ecore_x support for Xdpms extension. | ||
2013 | [default=detect] | ||
2014 | --disable-ecore-x-randr disable the ecore_x support for Xrandr extension. | ||
2015 | [default=detect] | ||
2016 | --disable-ecore-x-render | ||
2017 | disable the ecore_x support for Xrender extension. | ||
2018 | [default=detect] | ||
2019 | --disable-ecore-x-screensaver | ||
2020 | disable the ecore_x support for Xscreensaver | ||
2021 | extension. [default=detect] | ||
2022 | --disable-ecore-x-shape disable the ecore_x support for Xshape extension. | ||
2023 | [default=detect] | ||
2024 | --enable-ecore-x-gesture | ||
2025 | enable the ecore_x support for Xgesture extension. | ||
2026 | [default=detect] | ||
2027 | --disable-ecore-x-sync disable the ecore_x support for Xsync extension. | ||
2028 | [default=detect] | ||
2029 | --disable-ecore-x-xfixes | ||
2030 | disable the ecore_x support for Xfixes extension. | ||
2031 | [default=detect] | ||
2032 | --disable-ecore-x-xinerama | ||
2033 | disable the ecore_x support for Xinerama extension. | ||
2034 | [default=detect] | ||
2035 | --disable-ecore-x-xprint | ||
2036 | disable the ecore_x support for Xprint extension. | ||
2037 | [default=detect] | ||
2038 | --disable-ecore-x-xtest disable the ecore_x support for Xtest extension. | ||
2039 | [default=detect] | ||
2040 | --disable-ecore-x-cursor | ||
2041 | disable the ecore_x support for Xcursor extension. | ||
2042 | [default=detect] | ||
2043 | --disable-ecore-x-input disable the ecore_x support for Xinput/Xinput2 | ||
2044 | extension. [default=detect] | ||
2045 | --disable-ecore-x-dri disable the ecore_x support for DRI extension. | ||
2046 | [default=detect] | ||
2047 | --enable-ecore-x-xcb enable the ecore_x module with XCB backend. | ||
2048 | [default=disabled] | ||
2049 | --disable-largefile omit support for large files | ||
2050 | --enable-epoll enable or disable epoll support | ||
2051 | --disable-posix-threads enable POSIX threads code [default=auto] | ||
2052 | --disable-win32-threads enable Win32 threads code [default=no] | ||
2053 | --enable-debug-threads disable assert when you forgot to call | ||
2054 | eina_threads_init | ||
2055 | --enable-thread-safety enable or disable thread safety | ||
2056 | --disable-atfile-source disable use of atfile source functions as openat and | ||
2057 | mkdirat [default=detect] | ||
2058 | --enable-ecore-con enable the ecore_con module | ||
2059 | --disable-ipv6 disable ipv6 functionality [default=detect] | ||
2060 | --disable-curl disable curl support | ||
2061 | --disable-gnutls disable gnutls support | ||
2062 | --disable-openssl disable openssl support | ||
2063 | --disable-cares disable cares support | ||
2064 | --enable-ecore-ipc enable the ecore_ipc module | ||
2065 | --enable-ecore-file enable the ecore_file module | ||
2066 | --disable-poll disable poll in the ecore_file module | ||
2067 | --disable-inotify disable inotify in the ecore_file module | ||
2068 | --disable-notify-win32 disable Windows notification in the ecore_file | ||
2069 | module | ||
2070 | --enable-ecore-imf enable the ecore_imf module | ||
2071 | --enable-ecore-imf-evas enable the ecore_imf_evas module | ||
2072 | --enable-ecore-input enable the ecore_input module | ||
2073 | --enable-ecore-input-evas | ||
2074 | enable the ecore_input_evas module | ||
2075 | --enable-ecore-imf-xim enable the ecore_imf_xim module | ||
2076 | --enable-ecore-imf-scim enable the ecore_imf_scim module | ||
2077 | --enable-ecore-x enable the ecore_x module | ||
2078 | --enable-ecore-win32 enable the ecore_win32 module | ||
2079 | --enable-ecore-cocoa enable the ecore_cocoa module | ||
2080 | --enable-ecore-sdl enable the ecore_sdl module | ||
2081 | --enable-ecore-psl1ght enable the ecore_psl1ght module | ||
2082 | --enable-ecore-fb enable the ecore_fb module | ||
2083 | --disable-tslib disable the tslib support in ecore (currently | ||
2084 | ecore-fb). [default=detect] | ||
2085 | --enable-ecore-directfb enable the ecore_directfb module | ||
2086 | --enable-ecore-wince enable the ecore_wince module | ||
2087 | --enable-ecore-evas enable the ecore_evas module | ||
2088 | --enable-ecore-evas-software-buffer | ||
2089 | enable Software Buffer support in the ecore_evas | ||
2090 | module. | ||
2091 | --enable-ecore-evas-software-x11 | ||
2092 | enable Software X11 support in the ecore_evas | ||
2093 | module. | ||
2094 | --enable-ecore-evas-opengl-x11 | ||
2095 | enable OpenGL Xlib support in the ecore_evas module. | ||
2096 | --enable-ecore-evas-software-16-x11 | ||
2097 | enable Software Xlib 16 bits support in the | ||
2098 | ecore_evas module. | ||
2099 | --enable-ecore-evas-software-8-x11 | ||
2100 | enable Software 8bit X11 support in the ecore_evas | ||
2101 | module. | ||
2102 | --enable-ecore-evas-software-gdi | ||
2103 | enable Software GDI support in the ecore_evas | ||
2104 | module. | ||
2105 | --enable-ecore-evas-software-ddraw | ||
2106 | enable Software DirectDraw support in the ecore_evas | ||
2107 | module. | ||
2108 | --enable-ecore-evas-direct3d | ||
2109 | enable Direct3d support in the ecore_evas module. | ||
2110 | --enable-ecore-evas-opengl-glew | ||
2111 | enable Glew OpenGL support in the ecore_evas module. | ||
2112 | --enable-ecore-evas-software-16-ddraw | ||
2113 | enable 16 bpp Software DirectDraw support in the | ||
2114 | ecore_evas module. | ||
2115 | --enable-ecore-evas-opengl-sdl | ||
2116 | enable OpenGL SDL support in the ecore_evas module. | ||
2117 | --enable-ecore-evas-opengl-cocoa | ||
2118 | enable OpenGL Cocoa support in the ecore_evas | ||
2119 | module. | ||
2120 | --enable-ecore-evas-directfb | ||
2121 | enable DirectFB support in the ecore_evas module. | ||
2122 | --enable-ecore-evas-fb enable Linux Framebuffer support in the ecore_evas | ||
2123 | module. | ||
2124 | --enable-ecore-evas-software-16-wince | ||
2125 | enable 16 bpp Software Windows CE support in the | ||
2126 | ecore_evas module. | ||
2127 | --enable-ecore-evas-ews enable Ecore Evas Single Process Windowing System | ||
2128 | support in the ecore_evas module. | ||
2129 | --enable-ecore-evas-psl1ght | ||
2130 | enable PSL1GHT support in the ecore_evas module. | ||
2131 | --enable-ecore-wayland enable the ecore_wayland module | ||
2132 | --enable-ecore-evas-wayland-shm | ||
2133 | enable Wayland Shm support in the ecore_evas module. | ||
2134 | --enable-ecore-evas-wayland-egl | ||
2135 | enable Wayland Egl support in the ecore_evas module. | ||
2136 | --enable-tests enable tests [default=disabled] | ||
2137 | --enable-build-examples enable building examples [default=disabled] | ||
2138 | --enable-install-examples | ||
2139 | enable installing example source files | ||
2140 | [default=disabled] | ||
2141 | |||
2142 | Optional Packages: | ||
2143 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
2144 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
2145 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
2146 | both] | ||
2147 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
2148 | --with-gnu-ld assume the C compiler uses GNU ld default=no | ||
2149 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | ||
2150 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | ||
2151 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | ||
2152 | --without-libintl-prefix don't search for libintl in includedir and libdir | ||
2153 | --with-internal-maximum-log-level=NUMBER | ||
2154 | limit ecore internal log level to the given number, | ||
2155 | any call to EINA_LOG() with values greater than this | ||
2156 | will be compiled out, ignoring runtime settings, but | ||
2157 | saving function calls. | ||
2158 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
2159 | --with-sdl-config=PATH use sdl-config specified | ||
2160 | --with-iconv-link=ICONV_LINK | ||
2161 | explicitly specify an iconv link option | ||
2162 | --with-x use the X Window System | ||
2163 | --with-libgcrypt-prefix=PFX Prefix where libgcrypt is installed (optional) | ||
2164 | --with-libgcrypt-exec-prefix=PFX Exec prefix where libgcrypt is installed (optional) | ||
2165 | |||
2166 | Some influential environment variables: | ||
2167 | CC C compiler command | ||
2168 | CFLAGS C compiler flags | ||
2169 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
2170 | nonstandard directory <lib dir> | ||
2171 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
2172 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
2173 | you have headers in a nonstandard directory <include dir> | ||
2174 | CPP C preprocessor | ||
2175 | OBJC Objective C compiler command | ||
2176 | OBJCFLAGS Objective C compiler flags | ||
2177 | CXX C++ compiler command | ||
2178 | CXXFLAGS C++ compiler flags | ||
2179 | CXXCPP C++ preprocessor | ||
2180 | PKG_CONFIG path to pkg-config utility | ||
2181 | PKG_CONFIG_PATH | ||
2182 | directories to add to pkg-config's search path | ||
2183 | PKG_CONFIG_LIBDIR | ||
2184 | path overriding pkg-config's built-in search path | ||
2185 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
2186 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
2187 | ESCAPE_CFLAGS | ||
2188 | C compiler flags for ESCAPE, overriding pkg-config | ||
2189 | ESCAPE_LIBS linker flags for ESCAPE, overriding pkg-config | ||
2190 | EXOTIC_CFLAGS | ||
2191 | C compiler flags for EXOTIC, overriding pkg-config | ||
2192 | EXOTIC_LIBS linker flags for EXOTIC, overriding pkg-config | ||
2193 | EINA_CFLAGS C compiler flags for EINA, overriding pkg-config | ||
2194 | EINA_LIBS linker flags for EINA, overriding pkg-config | ||
2195 | GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config | ||
2196 | GLIB_LIBS linker flags for GLIB, overriding pkg-config | ||
2197 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | ||
2198 | SDL_LIBS linker flags for SDL, overriding pkg-config | ||
2199 | DIRECTFB_CFLAGS | ||
2200 | C compiler flags for DIRECTFB, overriding pkg-config | ||
2201 | DIRECTFB_LIBS | ||
2202 | linker flags for DIRECTFB, overriding pkg-config | ||
2203 | ECORE_XCB_CFLAGS | ||
2204 | C compiler flags for ECORE_XCB, overriding pkg-config | ||
2205 | ECORE_XCB_LIBS | ||
2206 | linker flags for ECORE_XCB, overriding pkg-config | ||
2207 | PIXMAN_CFLAGS | ||
2208 | C compiler flags for PIXMAN, overriding pkg-config | ||
2209 | PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config | ||
2210 | XCB_COMPOSITE_CFLAGS | ||
2211 | C compiler flags for XCB_COMPOSITE, overriding pkg-config | ||
2212 | XCB_COMPOSITE_LIBS | ||
2213 | linker flags for XCB_COMPOSITE, overriding pkg-config | ||
2214 | XCB_DAMAGE_CFLAGS | ||
2215 | C compiler flags for XCB_DAMAGE, overriding pkg-config | ||
2216 | XCB_DAMAGE_LIBS | ||
2217 | linker flags for XCB_DAMAGE, overriding pkg-config | ||
2218 | XCB_DPMS_CFLAGS | ||
2219 | C compiler flags for XCB_DPMS, overriding pkg-config | ||
2220 | XCB_DPMS_LIBS | ||
2221 | linker flags for XCB_DPMS, overriding pkg-config | ||
2222 | XCB_RANDR_CFLAGS | ||
2223 | C compiler flags for XCB_RANDR, overriding pkg-config | ||
2224 | XCB_RANDR_LIBS | ||
2225 | linker flags for XCB_RANDR, overriding pkg-config | ||
2226 | XCB_RENDER_CFLAGS | ||
2227 | C compiler flags for XCB_RENDER, overriding pkg-config | ||
2228 | XCB_RENDER_LIBS | ||
2229 | linker flags for XCB_RENDER, overriding pkg-config | ||
2230 | XCB_SCREENSAVER_CFLAGS | ||
2231 | C compiler flags for XCB_SCREENSAVER, overriding pkg-config | ||
2232 | XCB_SCREENSAVER_LIBS | ||
2233 | linker flags for XCB_SCREENSAVER, overriding pkg-config | ||
2234 | XCB_SHAPE_CFLAGS | ||
2235 | C compiler flags for XCB_SHAPE, overriding pkg-config | ||
2236 | XCB_SHAPE_LIBS | ||
2237 | linker flags for XCB_SHAPE, overriding pkg-config | ||
2238 | XCB_XGESTURE_CFLAGS | ||
2239 | C compiler flags for XCB_XGESTURE, overriding pkg-config | ||
2240 | XCB_XGESTURE_LIBS | ||
2241 | linker flags for XCB_XGESTURE, overriding pkg-config | ||
2242 | XCB_SYNC_CFLAGS | ||
2243 | C compiler flags for XCB_SYNC, overriding pkg-config | ||
2244 | XCB_SYNC_LIBS | ||
2245 | linker flags for XCB_SYNC, overriding pkg-config | ||
2246 | XCB_XFIXES_CFLAGS | ||
2247 | C compiler flags for XCB_XFIXES, overriding pkg-config | ||
2248 | XCB_XFIXES_LIBS | ||
2249 | linker flags for XCB_XFIXES, overriding pkg-config | ||
2250 | XCB_XINERAMA_CFLAGS | ||
2251 | C compiler flags for XCB_XINERAMA, overriding pkg-config | ||
2252 | XCB_XINERAMA_LIBS | ||
2253 | linker flags for XCB_XINERAMA, overriding pkg-config | ||
2254 | XCB_XPRINT_CFLAGS | ||
2255 | C compiler flags for XCB_XPRINT, overriding pkg-config | ||
2256 | XCB_XPRINT_LIBS | ||
2257 | linker flags for XCB_XPRINT, overriding pkg-config | ||
2258 | XCB_XTEST_CFLAGS | ||
2259 | C compiler flags for XCB_XTEST, overriding pkg-config | ||
2260 | XCB_XTEST_LIBS | ||
2261 | linker flags for XCB_XTEST, overriding pkg-config | ||
2262 | XCB_XINPUT_CFLAGS | ||
2263 | C compiler flags for XCB_XINPUT, overriding pkg-config | ||
2264 | XCB_XINPUT_LIBS | ||
2265 | linker flags for XCB_XINPUT, overriding pkg-config | ||
2266 | XCB_CURSOR_CFLAGS | ||
2267 | C compiler flags for XCB_CURSOR, overriding pkg-config | ||
2268 | XCB_CURSOR_LIBS | ||
2269 | linker flags for XCB_CURSOR, overriding pkg-config | ||
2270 | XMKMF Path to xmkmf, Makefile generator for X Window System | ||
2271 | EVAS_CFLAGS C compiler flags for EVAS, overriding pkg-config | ||
2272 | EVAS_LIBS linker flags for EVAS, overriding pkg-config | ||
2273 | CURL_CFLAGS C compiler flags for CURL, overriding pkg-config | ||
2274 | CURL_LIBS linker flags for CURL, overriding pkg-config | ||
2275 | TLS_CFLAGS C compiler flags for TLS, overriding pkg-config | ||
2276 | TLS_LIBS linker flags for TLS, overriding pkg-config | ||
2277 | TLS2_CFLAGS C compiler flags for TLS2, overriding pkg-config | ||
2278 | TLS2_LIBS linker flags for TLS2, overriding pkg-config | ||
2279 | SSL_CFLAGS C compiler flags for SSL, overriding pkg-config | ||
2280 | SSL_LIBS linker flags for SSL, overriding pkg-config | ||
2281 | CARES_CFLAGS | ||
2282 | C compiler flags for CARES, overriding pkg-config | ||
2283 | CARES_LIBS linker flags for CARES, overriding pkg-config | ||
2284 | SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config | ||
2285 | SCIM_LIBS linker flags for SCIM, overriding pkg-config | ||
2286 | TSLIB_CFLAGS | ||
2287 | C compiler flags for TSLIB, overriding pkg-config | ||
2288 | TSLIB_LIBS linker flags for TSLIB, overriding pkg-config | ||
2289 | XCB_X11_CFLAGS | ||
2290 | C compiler flags for XCB_X11, overriding pkg-config | ||
2291 | XCB_X11_LIBS | ||
2292 | linker flags for XCB_X11, overriding pkg-config | ||
2293 | WAYLAND_CFLAGS | ||
2294 | C compiler flags for WAYLAND, overriding pkg-config | ||
2295 | WAYLAND_LIBS | ||
2296 | linker flags for WAYLAND, overriding pkg-config | ||
2297 | WAYLAND_EGL_CFLAGS | ||
2298 | C compiler flags for WAYLAND_EGL, overriding pkg-config | ||
2299 | WAYLAND_EGL_LIBS | ||
2300 | linker flags for WAYLAND_EGL, overriding pkg-config | ||
2301 | CHECK_CFLAGS | ||
2302 | C compiler flags for CHECK, overriding pkg-config | ||
2303 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
2304 | |||
2305 | Use these variables to override the choices made by `configure' or to help | ||
2306 | it to find libraries and programs with nonstandard names/locations. | ||
2307 | |||
2308 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
2309 | _ACEOF | ||
2310 | ac_status=$? | ||
2311 | fi | ||
2312 | |||
2313 | if test "$ac_init_help" = "recursive"; then | ||
2314 | # If there are subdirs, report their specific --help. | ||
2315 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
2316 | test -d "$ac_dir" || | ||
2317 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
2318 | continue | ||
2319 | ac_builddir=. | ||
2320 | |||
2321 | case "$ac_dir" in | ||
2322 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2323 | *) | ||
2324 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
2325 | # A ".." for each directory in $ac_dir_suffix. | ||
2326 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
2327 | case $ac_top_builddir_sub in | ||
2328 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2329 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
2330 | esac ;; | ||
2331 | esac | ||
2332 | ac_abs_top_builddir=$ac_pwd | ||
2333 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
2334 | # for backward compatibility: | ||
2335 | ac_top_builddir=$ac_top_build_prefix | ||
2336 | |||
2337 | case $srcdir in | ||
2338 | .) # We are building in place. | ||
2339 | ac_srcdir=. | ||
2340 | ac_top_srcdir=$ac_top_builddir_sub | ||
2341 | ac_abs_top_srcdir=$ac_pwd ;; | ||
2342 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
2343 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
2344 | ac_top_srcdir=$srcdir | ||
2345 | ac_abs_top_srcdir=$srcdir ;; | ||
2346 | *) # Relative name. | ||
2347 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
2348 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
2349 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
2350 | esac | ||
2351 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
2352 | |||
2353 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
2354 | # Check for guested configure. | ||
2355 | if test -f "$ac_srcdir/configure.gnu"; then | ||
2356 | echo && | ||
2357 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
2358 | elif test -f "$ac_srcdir/configure"; then | ||
2359 | echo && | ||
2360 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
2361 | else | ||
2362 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
2363 | fi || ac_status=$? | ||
2364 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
2365 | done | ||
2366 | fi | ||
2367 | |||
2368 | test -n "$ac_init_help" && exit $ac_status | ||
2369 | if $ac_init_version; then | ||
2370 | cat <<\_ACEOF | ||
2371 | ecore configure 1.2.0-alpha | ||
2372 | generated by GNU Autoconf 2.67 | ||
2373 | |||
2374 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
2375 | This configure script is free software; the Free Software Foundation | ||
2376 | gives unlimited permission to copy, distribute and modify it. | ||
2377 | _ACEOF | ||
2378 | exit | ||
2379 | fi | ||
2380 | |||
2381 | ## ------------------------ ## | ||
2382 | ## Autoconf initialization. ## | ||
2383 | ## ------------------------ ## | ||
2384 | |||
2385 | # ac_fn_c_try_compile LINENO | ||
2386 | # -------------------------- | ||
2387 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2388 | ac_fn_c_try_compile () | ||
2389 | { | ||
2390 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2391 | rm -f conftest.$ac_objext | ||
2392 | if { { ac_try="$ac_compile" | ||
2393 | case "(($ac_try" in | ||
2394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2395 | *) ac_try_echo=$ac_try;; | ||
2396 | esac | ||
2397 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2398 | $as_echo "$ac_try_echo"; } >&5 | ||
2399 | (eval "$ac_compile") 2>conftest.err | ||
2400 | ac_status=$? | ||
2401 | if test -s conftest.err; then | ||
2402 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2403 | cat conftest.er1 >&5 | ||
2404 | mv -f conftest.er1 conftest.err | ||
2405 | fi | ||
2406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2407 | test $ac_status = 0; } && { | ||
2408 | test -z "$ac_c_werror_flag" || | ||
2409 | test ! -s conftest.err | ||
2410 | } && test -s conftest.$ac_objext; then : | ||
2411 | ac_retval=0 | ||
2412 | else | ||
2413 | $as_echo "$as_me: failed program was:" >&5 | ||
2414 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2415 | |||
2416 | ac_retval=1 | ||
2417 | fi | ||
2418 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2419 | as_fn_set_status $ac_retval | ||
2420 | |||
2421 | } # ac_fn_c_try_compile | ||
2422 | |||
2423 | # ac_fn_c_try_cpp LINENO | ||
2424 | # ---------------------- | ||
2425 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2426 | ac_fn_c_try_cpp () | ||
2427 | { | ||
2428 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2429 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2430 | case "(($ac_try" in | ||
2431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2432 | *) ac_try_echo=$ac_try;; | ||
2433 | esac | ||
2434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2435 | $as_echo "$ac_try_echo"; } >&5 | ||
2436 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2437 | ac_status=$? | ||
2438 | if test -s conftest.err; then | ||
2439 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2440 | cat conftest.er1 >&5 | ||
2441 | mv -f conftest.er1 conftest.err | ||
2442 | fi | ||
2443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2444 | test $ac_status = 0; } > conftest.i && { | ||
2445 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2446 | test ! -s conftest.err | ||
2447 | }; then : | ||
2448 | ac_retval=0 | ||
2449 | else | ||
2450 | $as_echo "$as_me: failed program was:" >&5 | ||
2451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2452 | |||
2453 | ac_retval=1 | ||
2454 | fi | ||
2455 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2456 | as_fn_set_status $ac_retval | ||
2457 | |||
2458 | } # ac_fn_c_try_cpp | ||
2459 | |||
2460 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
2461 | # ------------------------------------------------------- | ||
2462 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
2463 | # the include files in INCLUDES and setting the cache variable VAR | ||
2464 | # accordingly. | ||
2465 | ac_fn_c_check_header_mongrel () | ||
2466 | { | ||
2467 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2468 | if eval "test \"\${$3+set}\"" = set; then : | ||
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2470 | $as_echo_n "checking for $2... " >&6; } | ||
2471 | if eval "test \"\${$3+set}\"" = set; then : | ||
2472 | $as_echo_n "(cached) " >&6 | ||
2473 | fi | ||
2474 | eval ac_res=\$$3 | ||
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2476 | $as_echo "$ac_res" >&6; } | ||
2477 | else | ||
2478 | # Is the header compilable? | ||
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
2480 | $as_echo_n "checking $2 usability... " >&6; } | ||
2481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2482 | /* end confdefs.h. */ | ||
2483 | $4 | ||
2484 | #include <$2> | ||
2485 | _ACEOF | ||
2486 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2487 | ac_header_compiler=yes | ||
2488 | else | ||
2489 | ac_header_compiler=no | ||
2490 | fi | ||
2491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2493 | $as_echo "$ac_header_compiler" >&6; } | ||
2494 | |||
2495 | # Is the header present? | ||
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2497 | $as_echo_n "checking $2 presence... " >&6; } | ||
2498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2499 | /* end confdefs.h. */ | ||
2500 | #include <$2> | ||
2501 | _ACEOF | ||
2502 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2503 | ac_header_preproc=yes | ||
2504 | else | ||
2505 | ac_header_preproc=no | ||
2506 | fi | ||
2507 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2509 | $as_echo "$ac_header_preproc" >&6; } | ||
2510 | |||
2511 | # So? What about this header? | ||
2512 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2513 | yes:no: ) | ||
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2515 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2517 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2518 | ;; | ||
2519 | no:yes:* ) | ||
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2521 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2523 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2525 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2527 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2529 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2530 | ( $as_echo "## -------------------------------------------------------- ## | ||
2531 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2532 | ## -------------------------------------------------------- ##" | ||
2533 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2534 | ;; | ||
2535 | esac | ||
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2537 | $as_echo_n "checking for $2... " >&6; } | ||
2538 | if eval "test \"\${$3+set}\"" = set; then : | ||
2539 | $as_echo_n "(cached) " >&6 | ||
2540 | else | ||
2541 | eval "$3=\$ac_header_compiler" | ||
2542 | fi | ||
2543 | eval ac_res=\$$3 | ||
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2545 | $as_echo "$ac_res" >&6; } | ||
2546 | fi | ||
2547 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2548 | |||
2549 | } # ac_fn_c_check_header_mongrel | ||
2550 | |||
2551 | # ac_fn_c_try_run LINENO | ||
2552 | # ---------------------- | ||
2553 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
2554 | # that executables *can* be run. | ||
2555 | ac_fn_c_try_run () | ||
2556 | { | ||
2557 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2558 | if { { ac_try="$ac_link" | ||
2559 | case "(($ac_try" in | ||
2560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2561 | *) ac_try_echo=$ac_try;; | ||
2562 | esac | ||
2563 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2564 | $as_echo "$ac_try_echo"; } >&5 | ||
2565 | (eval "$ac_link") 2>&5 | ||
2566 | ac_status=$? | ||
2567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2568 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
2569 | { { case "(($ac_try" in | ||
2570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2571 | *) ac_try_echo=$ac_try;; | ||
2572 | esac | ||
2573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2574 | $as_echo "$ac_try_echo"; } >&5 | ||
2575 | (eval "$ac_try") 2>&5 | ||
2576 | ac_status=$? | ||
2577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2578 | test $ac_status = 0; }; }; then : | ||
2579 | ac_retval=0 | ||
2580 | else | ||
2581 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
2582 | $as_echo "$as_me: failed program was:" >&5 | ||
2583 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2584 | |||
2585 | ac_retval=$ac_status | ||
2586 | fi | ||
2587 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2588 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2589 | as_fn_set_status $ac_retval | ||
2590 | |||
2591 | } # ac_fn_c_try_run | ||
2592 | |||
2593 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
2594 | # ------------------------------------------------------- | ||
2595 | # Tests whether HEADER exists and can be compiled using the include files in | ||
2596 | # INCLUDES, setting the cache variable VAR accordingly. | ||
2597 | ac_fn_c_check_header_compile () | ||
2598 | { | ||
2599 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2601 | $as_echo_n "checking for $2... " >&6; } | ||
2602 | if eval "test \"\${$3+set}\"" = set; then : | ||
2603 | $as_echo_n "(cached) " >&6 | ||
2604 | else | ||
2605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2606 | /* end confdefs.h. */ | ||
2607 | $4 | ||
2608 | #include <$2> | ||
2609 | _ACEOF | ||
2610 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2611 | eval "$3=yes" | ||
2612 | else | ||
2613 | eval "$3=no" | ||
2614 | fi | ||
2615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2616 | fi | ||
2617 | eval ac_res=\$$3 | ||
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2619 | $as_echo "$ac_res" >&6; } | ||
2620 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2621 | |||
2622 | } # ac_fn_c_check_header_compile | ||
2623 | |||
2624 | # ac_fn_c_try_link LINENO | ||
2625 | # ----------------------- | ||
2626 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2627 | ac_fn_c_try_link () | ||
2628 | { | ||
2629 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2630 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2631 | if { { ac_try="$ac_link" | ||
2632 | case "(($ac_try" in | ||
2633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2634 | *) ac_try_echo=$ac_try;; | ||
2635 | esac | ||
2636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2637 | $as_echo "$ac_try_echo"; } >&5 | ||
2638 | (eval "$ac_link") 2>conftest.err | ||
2639 | ac_status=$? | ||
2640 | if test -s conftest.err; then | ||
2641 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2642 | cat conftest.er1 >&5 | ||
2643 | mv -f conftest.er1 conftest.err | ||
2644 | fi | ||
2645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2646 | test $ac_status = 0; } && { | ||
2647 | test -z "$ac_c_werror_flag" || | ||
2648 | test ! -s conftest.err | ||
2649 | } && test -s conftest$ac_exeext && { | ||
2650 | test "$cross_compiling" = yes || | ||
2651 | $as_test_x conftest$ac_exeext | ||
2652 | }; then : | ||
2653 | ac_retval=0 | ||
2654 | else | ||
2655 | $as_echo "$as_me: failed program was:" >&5 | ||
2656 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2657 | |||
2658 | ac_retval=1 | ||
2659 | fi | ||
2660 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2661 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2662 | # interfere with the next link command; also delete a directory that is | ||
2663 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2664 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2665 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2666 | as_fn_set_status $ac_retval | ||
2667 | |||
2668 | } # ac_fn_c_try_link | ||
2669 | |||
2670 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2671 | # ---------------------------------- | ||
2672 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2673 | ac_fn_c_check_func () | ||
2674 | { | ||
2675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2677 | $as_echo_n "checking for $2... " >&6; } | ||
2678 | if eval "test \"\${$3+set}\"" = set; then : | ||
2679 | $as_echo_n "(cached) " >&6 | ||
2680 | else | ||
2681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2682 | /* end confdefs.h. */ | ||
2683 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2684 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2685 | #define $2 innocuous_$2 | ||
2686 | |||
2687 | /* System header to define __stub macros and hopefully few prototypes, | ||
2688 | which can conflict with char $2 (); below. | ||
2689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2690 | <limits.h> exists even on freestanding compilers. */ | ||
2691 | |||
2692 | #ifdef __STDC__ | ||
2693 | # include <limits.h> | ||
2694 | #else | ||
2695 | # include <assert.h> | ||
2696 | #endif | ||
2697 | |||
2698 | #undef $2 | ||
2699 | |||
2700 | /* Override any GCC internal prototype to avoid an error. | ||
2701 | Use char because int might match the return type of a GCC | ||
2702 | builtin and then its argument prototype would still apply. */ | ||
2703 | #ifdef __cplusplus | ||
2704 | extern "C" | ||
2705 | #endif | ||
2706 | char $2 (); | ||
2707 | /* The GNU C library defines this for functions which it implements | ||
2708 | to always fail with ENOSYS. Some functions are actually named | ||
2709 | something starting with __ and the normal name is an alias. */ | ||
2710 | #if defined __stub_$2 || defined __stub___$2 | ||
2711 | choke me | ||
2712 | #endif | ||
2713 | |||
2714 | int | ||
2715 | main () | ||
2716 | { | ||
2717 | return $2 (); | ||
2718 | ; | ||
2719 | return 0; | ||
2720 | } | ||
2721 | _ACEOF | ||
2722 | if ac_fn_c_try_link "$LINENO"; then : | ||
2723 | eval "$3=yes" | ||
2724 | else | ||
2725 | eval "$3=no" | ||
2726 | fi | ||
2727 | rm -f core conftest.err conftest.$ac_objext \ | ||
2728 | conftest$ac_exeext conftest.$ac_ext | ||
2729 | fi | ||
2730 | eval ac_res=\$$3 | ||
2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2732 | $as_echo "$ac_res" >&6; } | ||
2733 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2734 | |||
2735 | } # ac_fn_c_check_func | ||
2736 | |||
2737 | # ac_fn_objc_try_compile LINENO | ||
2738 | # ----------------------------- | ||
2739 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2740 | ac_fn_objc_try_compile () | ||
2741 | { | ||
2742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2743 | rm -f conftest.$ac_objext | ||
2744 | if { { ac_try="$ac_compile" | ||
2745 | case "(($ac_try" in | ||
2746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2747 | *) ac_try_echo=$ac_try;; | ||
2748 | esac | ||
2749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2750 | $as_echo "$ac_try_echo"; } >&5 | ||
2751 | (eval "$ac_compile") 2>conftest.err | ||
2752 | ac_status=$? | ||
2753 | if test -s conftest.err; then | ||
2754 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2755 | cat conftest.er1 >&5 | ||
2756 | mv -f conftest.er1 conftest.err | ||
2757 | fi | ||
2758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2759 | test $ac_status = 0; } && { | ||
2760 | test -z "$ac_objc_werror_flag" || | ||
2761 | test ! -s conftest.err | ||
2762 | } && test -s conftest.$ac_objext; then : | ||
2763 | ac_retval=0 | ||
2764 | else | ||
2765 | $as_echo "$as_me: failed program was:" >&5 | ||
2766 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2767 | |||
2768 | ac_retval=1 | ||
2769 | fi | ||
2770 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2771 | as_fn_set_status $ac_retval | ||
2772 | |||
2773 | } # ac_fn_objc_try_compile | ||
2774 | |||
2775 | # ac_fn_cxx_try_compile LINENO | ||
2776 | # ---------------------------- | ||
2777 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2778 | ac_fn_cxx_try_compile () | ||
2779 | { | ||
2780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2781 | rm -f conftest.$ac_objext | ||
2782 | if { { ac_try="$ac_compile" | ||
2783 | case "(($ac_try" in | ||
2784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2785 | *) ac_try_echo=$ac_try;; | ||
2786 | esac | ||
2787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2788 | $as_echo "$ac_try_echo"; } >&5 | ||
2789 | (eval "$ac_compile") 2>conftest.err | ||
2790 | ac_status=$? | ||
2791 | if test -s conftest.err; then | ||
2792 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2793 | cat conftest.er1 >&5 | ||
2794 | mv -f conftest.er1 conftest.err | ||
2795 | fi | ||
2796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2797 | test $ac_status = 0; } && { | ||
2798 | test -z "$ac_cxx_werror_flag" || | ||
2799 | test ! -s conftest.err | ||
2800 | } && test -s conftest.$ac_objext; then : | ||
2801 | ac_retval=0 | ||
2802 | else | ||
2803 | $as_echo "$as_me: failed program was:" >&5 | ||
2804 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2805 | |||
2806 | ac_retval=1 | ||
2807 | fi | ||
2808 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2809 | as_fn_set_status $ac_retval | ||
2810 | |||
2811 | } # ac_fn_cxx_try_compile | ||
2812 | |||
2813 | # ac_fn_cxx_try_cpp LINENO | ||
2814 | # ------------------------ | ||
2815 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2816 | ac_fn_cxx_try_cpp () | ||
2817 | { | ||
2818 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2819 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2820 | case "(($ac_try" in | ||
2821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2822 | *) ac_try_echo=$ac_try;; | ||
2823 | esac | ||
2824 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2825 | $as_echo "$ac_try_echo"; } >&5 | ||
2826 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2827 | ac_status=$? | ||
2828 | if test -s conftest.err; then | ||
2829 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2830 | cat conftest.er1 >&5 | ||
2831 | mv -f conftest.er1 conftest.err | ||
2832 | fi | ||
2833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2834 | test $ac_status = 0; } > conftest.i && { | ||
2835 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
2836 | test ! -s conftest.err | ||
2837 | }; then : | ||
2838 | ac_retval=0 | ||
2839 | else | ||
2840 | $as_echo "$as_me: failed program was:" >&5 | ||
2841 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2842 | |||
2843 | ac_retval=1 | ||
2844 | fi | ||
2845 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2846 | as_fn_set_status $ac_retval | ||
2847 | |||
2848 | } # ac_fn_cxx_try_cpp | ||
2849 | |||
2850 | # ac_fn_cxx_try_link LINENO | ||
2851 | # ------------------------- | ||
2852 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2853 | ac_fn_cxx_try_link () | ||
2854 | { | ||
2855 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2856 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2857 | if { { ac_try="$ac_link" | ||
2858 | case "(($ac_try" in | ||
2859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2860 | *) ac_try_echo=$ac_try;; | ||
2861 | esac | ||
2862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2863 | $as_echo "$ac_try_echo"; } >&5 | ||
2864 | (eval "$ac_link") 2>conftest.err | ||
2865 | ac_status=$? | ||
2866 | if test -s conftest.err; then | ||
2867 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2868 | cat conftest.er1 >&5 | ||
2869 | mv -f conftest.er1 conftest.err | ||
2870 | fi | ||
2871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2872 | test $ac_status = 0; } && { | ||
2873 | test -z "$ac_cxx_werror_flag" || | ||
2874 | test ! -s conftest.err | ||
2875 | } && test -s conftest$ac_exeext && { | ||
2876 | test "$cross_compiling" = yes || | ||
2877 | $as_test_x conftest$ac_exeext | ||
2878 | }; then : | ||
2879 | ac_retval=0 | ||
2880 | else | ||
2881 | $as_echo "$as_me: failed program was:" >&5 | ||
2882 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2883 | |||
2884 | ac_retval=1 | ||
2885 | fi | ||
2886 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2887 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2888 | # interfere with the next link command; also delete a directory that is | ||
2889 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2890 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2891 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2892 | as_fn_set_status $ac_retval | ||
2893 | |||
2894 | } # ac_fn_cxx_try_link | ||
2895 | |||
2896 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
2897 | # --------------------------------------------- | ||
2898 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
2899 | # accordingly. | ||
2900 | ac_fn_c_check_decl () | ||
2901 | { | ||
2902 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2903 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
2904 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
2906 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
2907 | if eval "test \"\${$3+set}\"" = set; then : | ||
2908 | $as_echo_n "(cached) " >&6 | ||
2909 | else | ||
2910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2911 | /* end confdefs.h. */ | ||
2912 | $4 | ||
2913 | int | ||
2914 | main () | ||
2915 | { | ||
2916 | #ifndef $as_decl_name | ||
2917 | #ifdef __cplusplus | ||
2918 | (void) $as_decl_use; | ||
2919 | #else | ||
2920 | (void) $as_decl_name; | ||
2921 | #endif | ||
2922 | #endif | ||
2923 | |||
2924 | ; | ||
2925 | return 0; | ||
2926 | } | ||
2927 | _ACEOF | ||
2928 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2929 | eval "$3=yes" | ||
2930 | else | ||
2931 | eval "$3=no" | ||
2932 | fi | ||
2933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2934 | fi | ||
2935 | eval ac_res=\$$3 | ||
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2937 | $as_echo "$ac_res" >&6; } | ||
2938 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2939 | |||
2940 | } # ac_fn_c_check_decl | ||
2941 | |||
2942 | # ac_fn_objc_try_link LINENO | ||
2943 | # -------------------------- | ||
2944 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2945 | ac_fn_objc_try_link () | ||
2946 | { | ||
2947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2948 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2949 | if { { ac_try="$ac_link" | ||
2950 | case "(($ac_try" in | ||
2951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2952 | *) ac_try_echo=$ac_try;; | ||
2953 | esac | ||
2954 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2955 | $as_echo "$ac_try_echo"; } >&5 | ||
2956 | (eval "$ac_link") 2>conftest.err | ||
2957 | ac_status=$? | ||
2958 | if test -s conftest.err; then | ||
2959 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2960 | cat conftest.er1 >&5 | ||
2961 | mv -f conftest.er1 conftest.err | ||
2962 | fi | ||
2963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2964 | test $ac_status = 0; } && { | ||
2965 | test -z "$ac_objc_werror_flag" || | ||
2966 | test ! -s conftest.err | ||
2967 | } && test -s conftest$ac_exeext && { | ||
2968 | test "$cross_compiling" = yes || | ||
2969 | $as_test_x conftest$ac_exeext | ||
2970 | }; then : | ||
2971 | ac_retval=0 | ||
2972 | else | ||
2973 | $as_echo "$as_me: failed program was:" >&5 | ||
2974 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2975 | |||
2976 | ac_retval=1 | ||
2977 | fi | ||
2978 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2979 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2980 | # interfere with the next link command; also delete a directory that is | ||
2981 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2982 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2983 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2984 | as_fn_set_status $ac_retval | ||
2985 | |||
2986 | } # ac_fn_objc_try_link | ||
2987 | |||
2988 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2989 | # -------------------------------------------- | ||
2990 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2991 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2992 | # computed | ||
2993 | ac_fn_c_compute_int () | ||
2994 | { | ||
2995 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2996 | if test "$cross_compiling" = yes; then | ||
2997 | # Depending upon the size, compute the lo and hi bounds. | ||
2998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2999 | /* end confdefs.h. */ | ||
3000 | $4 | ||
3001 | int | ||
3002 | main () | ||
3003 | { | ||
3004 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
3005 | test_array [0] = 0 | ||
3006 | |||
3007 | ; | ||
3008 | return 0; | ||
3009 | } | ||
3010 | _ACEOF | ||
3011 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3012 | ac_lo=0 ac_mid=0 | ||
3013 | while :; do | ||
3014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3015 | /* end confdefs.h. */ | ||
3016 | $4 | ||
3017 | int | ||
3018 | main () | ||
3019 | { | ||
3020 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
3021 | test_array [0] = 0 | ||
3022 | |||
3023 | ; | ||
3024 | return 0; | ||
3025 | } | ||
3026 | _ACEOF | ||
3027 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3028 | ac_hi=$ac_mid; break | ||
3029 | else | ||
3030 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
3031 | if test $ac_lo -le $ac_mid; then | ||
3032 | ac_lo= ac_hi= | ||
3033 | break | ||
3034 | fi | ||
3035 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
3036 | fi | ||
3037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3038 | done | ||
3039 | else | ||
3040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3041 | /* end confdefs.h. */ | ||
3042 | $4 | ||
3043 | int | ||
3044 | main () | ||
3045 | { | ||
3046 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
3047 | test_array [0] = 0 | ||
3048 | |||
3049 | ; | ||
3050 | return 0; | ||
3051 | } | ||
3052 | _ACEOF | ||
3053 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3054 | ac_hi=-1 ac_mid=-1 | ||
3055 | while :; do | ||
3056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3057 | /* end confdefs.h. */ | ||
3058 | $4 | ||
3059 | int | ||
3060 | main () | ||
3061 | { | ||
3062 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
3063 | test_array [0] = 0 | ||
3064 | |||
3065 | ; | ||
3066 | return 0; | ||
3067 | } | ||
3068 | _ACEOF | ||
3069 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3070 | ac_lo=$ac_mid; break | ||
3071 | else | ||
3072 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
3073 | if test $ac_mid -le $ac_hi; then | ||
3074 | ac_lo= ac_hi= | ||
3075 | break | ||
3076 | fi | ||
3077 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
3078 | fi | ||
3079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3080 | done | ||
3081 | else | ||
3082 | ac_lo= ac_hi= | ||
3083 | fi | ||
3084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3085 | fi | ||
3086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3087 | # Binary search between lo and hi bounds. | ||
3088 | while test "x$ac_lo" != "x$ac_hi"; do | ||
3089 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
3090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3091 | /* end confdefs.h. */ | ||
3092 | $4 | ||
3093 | int | ||
3094 | main () | ||
3095 | { | ||
3096 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
3097 | test_array [0] = 0 | ||
3098 | |||
3099 | ; | ||
3100 | return 0; | ||
3101 | } | ||
3102 | _ACEOF | ||
3103 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3104 | ac_hi=$ac_mid | ||
3105 | else | ||
3106 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
3107 | fi | ||
3108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3109 | done | ||
3110 | case $ac_lo in #(( | ||
3111 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
3112 | '') ac_retval=1 ;; | ||
3113 | esac | ||
3114 | else | ||
3115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3116 | /* end confdefs.h. */ | ||
3117 | $4 | ||
3118 | static long int longval () { return $2; } | ||
3119 | static unsigned long int ulongval () { return $2; } | ||
3120 | #include <stdio.h> | ||
3121 | #include <stdlib.h> | ||
3122 | int | ||
3123 | main () | ||
3124 | { | ||
3125 | |||
3126 | FILE *f = fopen ("conftest.val", "w"); | ||
3127 | if (! f) | ||
3128 | return 1; | ||
3129 | if (($2) < 0) | ||
3130 | { | ||
3131 | long int i = longval (); | ||
3132 | if (i != ($2)) | ||
3133 | return 1; | ||
3134 | fprintf (f, "%ld", i); | ||
3135 | } | ||
3136 | else | ||
3137 | { | ||
3138 | unsigned long int i = ulongval (); | ||
3139 | if (i != ($2)) | ||
3140 | return 1; | ||
3141 | fprintf (f, "%lu", i); | ||
3142 | } | ||
3143 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
3144 | on some platforms. */ | ||
3145 | return ferror (f) || fclose (f) != 0; | ||
3146 | |||
3147 | ; | ||
3148 | return 0; | ||
3149 | } | ||
3150 | _ACEOF | ||
3151 | if ac_fn_c_try_run "$LINENO"; then : | ||
3152 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
3153 | else | ||
3154 | ac_retval=1 | ||
3155 | fi | ||
3156 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3157 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3158 | rm -f conftest.val | ||
3159 | |||
3160 | fi | ||
3161 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3162 | as_fn_set_status $ac_retval | ||
3163 | |||
3164 | } # ac_fn_c_compute_int | ||
3165 | |||
3166 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
3167 | # ------------------------------------------- | ||
3168 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
3169 | # variable VAR accordingly. | ||
3170 | ac_fn_c_check_type () | ||
3171 | { | ||
3172 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
3174 | $as_echo_n "checking for $2... " >&6; } | ||
3175 | if eval "test \"\${$3+set}\"" = set; then : | ||
3176 | $as_echo_n "(cached) " >&6 | ||
3177 | else | ||
3178 | eval "$3=no" | ||
3179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3180 | /* end confdefs.h. */ | ||
3181 | $4 | ||
3182 | int | ||
3183 | main () | ||
3184 | { | ||
3185 | if (sizeof ($2)) | ||
3186 | return 0; | ||
3187 | ; | ||
3188 | return 0; | ||
3189 | } | ||
3190 | _ACEOF | ||
3191 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3193 | /* end confdefs.h. */ | ||
3194 | $4 | ||
3195 | int | ||
3196 | main () | ||
3197 | { | ||
3198 | if (sizeof (($2))) | ||
3199 | return 0; | ||
3200 | ; | ||
3201 | return 0; | ||
3202 | } | ||
3203 | _ACEOF | ||
3204 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3205 | |||
3206 | else | ||
3207 | eval "$3=yes" | ||
3208 | fi | ||
3209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3210 | fi | ||
3211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3212 | fi | ||
3213 | eval ac_res=\$$3 | ||
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
3215 | $as_echo "$ac_res" >&6; } | ||
3216 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3217 | |||
3218 | } # ac_fn_c_check_type | ||
3219 | cat >config.log <<_ACEOF | ||
3220 | This file contains any messages produced by compilers while | ||
3221 | running configure, to aid debugging if configure makes a mistake. | ||
3222 | |||
3223 | It was created by ecore $as_me 1.2.0-alpha, which was | ||
3224 | generated by GNU Autoconf 2.67. Invocation command line was | ||
3225 | |||
3226 | $ $0 $@ | ||
3227 | |||
3228 | _ACEOF | ||
3229 | exec 5>>config.log | ||
3230 | { | ||
3231 | cat <<_ASUNAME | ||
3232 | ## --------- ## | ||
3233 | ## Platform. ## | ||
3234 | ## --------- ## | ||
3235 | |||
3236 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
3237 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
3238 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
3239 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
3240 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
3241 | |||
3242 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
3243 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
3244 | |||
3245 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
3246 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
3247 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
3248 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
3249 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
3250 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
3251 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
3252 | |||
3253 | _ASUNAME | ||
3254 | |||
3255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3256 | for as_dir in $PATH | ||
3257 | do | ||
3258 | IFS=$as_save_IFS | ||
3259 | test -z "$as_dir" && as_dir=. | ||
3260 | $as_echo "PATH: $as_dir" | ||
3261 | done | ||
3262 | IFS=$as_save_IFS | ||
3263 | |||
3264 | } >&5 | ||
3265 | |||
3266 | cat >&5 <<_ACEOF | ||
3267 | |||
3268 | |||
3269 | ## ----------- ## | ||
3270 | ## Core tests. ## | ||
3271 | ## ----------- ## | ||
3272 | |||
3273 | _ACEOF | ||
3274 | |||
3275 | |||
3276 | # Keep a trace of the command line. | ||
3277 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
3278 | # Strip out --silent because we don't want to record it for future runs. | ||
3279 | # Also quote any args containing shell meta-characters. | ||
3280 | # Make two passes to allow for proper duplicate-argument suppression. | ||
3281 | ac_configure_args= | ||
3282 | ac_configure_args0= | ||
3283 | ac_configure_args1= | ||
3284 | ac_must_keep_next=false | ||
3285 | for ac_pass in 1 2 | ||
3286 | do | ||
3287 | for ac_arg | ||
3288 | do | ||
3289 | case $ac_arg in | ||
3290 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
3291 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
3292 | | -silent | --silent | --silen | --sile | --sil) | ||
3293 | continue ;; | ||
3294 | *\'*) | ||
3295 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3296 | esac | ||
3297 | case $ac_pass in | ||
3298 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
3299 | 2) | ||
3300 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
3301 | if test $ac_must_keep_next = true; then | ||
3302 | ac_must_keep_next=false # Got value, back to normal. | ||
3303 | else | ||
3304 | case $ac_arg in | ||
3305 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
3306 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
3307 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
3308 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
3309 | case "$ac_configure_args0 " in | ||
3310 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
3311 | esac | ||
3312 | ;; | ||
3313 | -* ) ac_must_keep_next=true ;; | ||
3314 | esac | ||
3315 | fi | ||
3316 | as_fn_append ac_configure_args " '$ac_arg'" | ||
3317 | ;; | ||
3318 | esac | ||
3319 | done | ||
3320 | done | ||
3321 | { ac_configure_args0=; unset ac_configure_args0;} | ||
3322 | { ac_configure_args1=; unset ac_configure_args1;} | ||
3323 | |||
3324 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
3325 | # config.log. We remove comments because anyway the quotes in there | ||
3326 | # would cause problems or look ugly. | ||
3327 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
3328 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
3329 | trap 'exit_status=$? | ||
3330 | # Save into config.log some information that might help in debugging. | ||
3331 | { | ||
3332 | echo | ||
3333 | |||
3334 | $as_echo "## ---------------- ## | ||
3335 | ## Cache variables. ## | ||
3336 | ## ---------------- ##" | ||
3337 | echo | ||
3338 | # The following way of writing the cache mishandles newlines in values, | ||
3339 | ( | ||
3340 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
3341 | eval ac_val=\$$ac_var | ||
3342 | case $ac_val in #( | ||
3343 | *${as_nl}*) | ||
3344 | case $ac_var in #( | ||
3345 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
3346 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
3347 | esac | ||
3348 | case $ac_var in #( | ||
3349 | _ | IFS | as_nl) ;; #( | ||
3350 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
3351 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
3352 | esac ;; | ||
3353 | esac | ||
3354 | done | ||
3355 | (set) 2>&1 | | ||
3356 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
3357 | *${as_nl}ac_space=\ *) | ||
3358 | sed -n \ | ||
3359 | "s/'\''/'\''\\\\'\'''\''/g; | ||
3360 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
3361 | ;; #( | ||
3362 | *) | ||
3363 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
3364 | ;; | ||
3365 | esac | | ||
3366 | sort | ||
3367 | ) | ||
3368 | echo | ||
3369 | |||
3370 | $as_echo "## ----------------- ## | ||
3371 | ## Output variables. ## | ||
3372 | ## ----------------- ##" | ||
3373 | echo | ||
3374 | for ac_var in $ac_subst_vars | ||
3375 | do | ||
3376 | eval ac_val=\$$ac_var | ||
3377 | case $ac_val in | ||
3378 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3379 | esac | ||
3380 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3381 | done | sort | ||
3382 | echo | ||
3383 | |||
3384 | if test -n "$ac_subst_files"; then | ||
3385 | $as_echo "## ------------------- ## | ||
3386 | ## File substitutions. ## | ||
3387 | ## ------------------- ##" | ||
3388 | echo | ||
3389 | for ac_var in $ac_subst_files | ||
3390 | do | ||
3391 | eval ac_val=\$$ac_var | ||
3392 | case $ac_val in | ||
3393 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3394 | esac | ||
3395 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3396 | done | sort | ||
3397 | echo | ||
3398 | fi | ||
3399 | |||
3400 | if test -s confdefs.h; then | ||
3401 | $as_echo "## ----------- ## | ||
3402 | ## confdefs.h. ## | ||
3403 | ## ----------- ##" | ||
3404 | echo | ||
3405 | cat confdefs.h | ||
3406 | echo | ||
3407 | fi | ||
3408 | test "$ac_signal" != 0 && | ||
3409 | $as_echo "$as_me: caught signal $ac_signal" | ||
3410 | $as_echo "$as_me: exit $exit_status" | ||
3411 | } >&5 | ||
3412 | rm -f core *.core core.conftest.* && | ||
3413 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
3414 | exit $exit_status | ||
3415 | ' 0 | ||
3416 | for ac_signal in 1 2 13 15; do | ||
3417 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
3418 | done | ||
3419 | ac_signal=0 | ||
3420 | |||
3421 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
3422 | rm -f -r conftest* confdefs.h | ||
3423 | |||
3424 | $as_echo "/* confdefs.h */" > confdefs.h | ||
3425 | |||
3426 | # Predefined preprocessor variables. | ||
3427 | |||
3428 | cat >>confdefs.h <<_ACEOF | ||
3429 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
3430 | _ACEOF | ||
3431 | |||
3432 | cat >>confdefs.h <<_ACEOF | ||
3433 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
3434 | _ACEOF | ||
3435 | |||
3436 | cat >>confdefs.h <<_ACEOF | ||
3437 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
3438 | _ACEOF | ||
3439 | |||
3440 | cat >>confdefs.h <<_ACEOF | ||
3441 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
3442 | _ACEOF | ||
3443 | |||
3444 | cat >>confdefs.h <<_ACEOF | ||
3445 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
3446 | _ACEOF | ||
3447 | |||
3448 | cat >>confdefs.h <<_ACEOF | ||
3449 | #define PACKAGE_URL "$PACKAGE_URL" | ||
3450 | _ACEOF | ||
3451 | |||
3452 | |||
3453 | # Let the site file select an alternate cache file if it wants to. | ||
3454 | # Prefer an explicitly selected file to automatically selected ones. | ||
3455 | ac_site_file1=NONE | ||
3456 | ac_site_file2=NONE | ||
3457 | if test -n "$CONFIG_SITE"; then | ||
3458 | # We do not want a PATH search for config.site. | ||
3459 | case $CONFIG_SITE in #(( | ||
3460 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
3461 | */*) ac_site_file1=$CONFIG_SITE;; | ||
3462 | *) ac_site_file1=./$CONFIG_SITE;; | ||
3463 | esac | ||
3464 | elif test "x$prefix" != xNONE; then | ||
3465 | ac_site_file1=$prefix/share/config.site | ||
3466 | ac_site_file2=$prefix/etc/config.site | ||
3467 | else | ||
3468 | ac_site_file1=$ac_default_prefix/share/config.site | ||
3469 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
3470 | fi | ||
3471 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
3472 | do | ||
3473 | test "x$ac_site_file" = xNONE && continue | ||
3474 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
3476 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
3477 | sed 's/^/| /' "$ac_site_file" >&5 | ||
3478 | . "$ac_site_file" \ | ||
3479 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3481 | as_fn_error $? "failed to load site script $ac_site_file | ||
3482 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3483 | fi | ||
3484 | done | ||
3485 | |||
3486 | if test -r "$cache_file"; then | ||
3487 | # Some versions of bash will fail to source /dev/null (special files | ||
3488 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
3489 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
3491 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
3492 | case $cache_file in | ||
3493 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
3494 | *) . "./$cache_file";; | ||
3495 | esac | ||
3496 | fi | ||
3497 | else | ||
3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
3499 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
3500 | >$cache_file | ||
3501 | fi | ||
3502 | |||
3503 | gt_needs="$gt_needs " | ||
3504 | # Check that the precious variables saved in the cache have kept the same | ||
3505 | # value. | ||
3506 | ac_cache_corrupted=false | ||
3507 | for ac_var in $ac_precious_vars; do | ||
3508 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
3509 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
3510 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
3511 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
3512 | case $ac_old_set,$ac_new_set in | ||
3513 | set,) | ||
3514 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
3515 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
3516 | ac_cache_corrupted=: ;; | ||
3517 | ,set) | ||
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
3519 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
3520 | ac_cache_corrupted=: ;; | ||
3521 | ,);; | ||
3522 | *) | ||
3523 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
3524 | # differences in whitespace do not lead to failure. | ||
3525 | ac_old_val_w=`echo x $ac_old_val` | ||
3526 | ac_new_val_w=`echo x $ac_new_val` | ||
3527 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
3529 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
3530 | ac_cache_corrupted=: | ||
3531 | else | ||
3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
3533 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
3534 | eval $ac_var=\$ac_old_val | ||
3535 | fi | ||
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
3537 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
3539 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
3540 | fi;; | ||
3541 | esac | ||
3542 | # Pass precious variables to config.status. | ||
3543 | if test "$ac_new_set" = set; then | ||
3544 | case $ac_new_val in | ||
3545 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3546 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
3547 | esac | ||
3548 | case " $ac_configure_args " in | ||
3549 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
3550 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
3551 | esac | ||
3552 | fi | ||
3553 | done | ||
3554 | if $ac_cache_corrupted; then | ||
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
3558 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
3559 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
3560 | fi | ||
3561 | ## -------------------- ## | ||
3562 | ## Main body of script. ## | ||
3563 | ## -------------------- ## | ||
3564 | |||
3565 | ac_ext=c | ||
3566 | ac_cpp='$CPP $CPPFLAGS' | ||
3567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3570 | |||
3571 | |||
3572 | |||
3573 | |||
3574 | |||
3575 | |||
3576 | ac_config_headers="$ac_config_headers config.h" | ||
3577 | |||
3578 | |||
3579 | |||
3580 | |||
3581 | am__api_version='1.11' | ||
3582 | |||
3583 | ac_aux_dir= | ||
3584 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3585 | if test -f "$ac_dir/install-sh"; then | ||
3586 | ac_aux_dir=$ac_dir | ||
3587 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3588 | break | ||
3589 | elif test -f "$ac_dir/install.sh"; then | ||
3590 | ac_aux_dir=$ac_dir | ||
3591 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3592 | break | ||
3593 | elif test -f "$ac_dir/shtool"; then | ||
3594 | ac_aux_dir=$ac_dir | ||
3595 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3596 | break | ||
3597 | fi | ||
3598 | done | ||
3599 | if test -z "$ac_aux_dir"; then | ||
3600 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3601 | fi | ||
3602 | |||
3603 | # These three variables are undocumented and unsupported, | ||
3604 | # and are intended to be withdrawn in a future Autoconf release. | ||
3605 | # They can cause serious problems if a builder's source tree is in a directory | ||
3606 | # whose full name contains unusual characters. | ||
3607 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3608 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3609 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3610 | |||
3611 | |||
3612 | # Find a good install program. We prefer a C program (faster), | ||
3613 | # so one script is as good as another. But avoid the broken or | ||
3614 | # incompatible versions: | ||
3615 | # SysV /etc/install, /usr/sbin/install | ||
3616 | # SunOS /usr/etc/install | ||
3617 | # IRIX /sbin/install | ||
3618 | # AIX /bin/install | ||
3619 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
3620 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
3621 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
3622 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
3623 | # OS/2's system install, which has a completely different semantic | ||
3624 | # ./install, which can be erroneously created by make from ./install.sh. | ||
3625 | # Reject install programs that cannot install multiple files. | ||
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
3627 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
3628 | if test -z "$INSTALL"; then | ||
3629 | if test "${ac_cv_path_install+set}" = set; then : | ||
3630 | $as_echo_n "(cached) " >&6 | ||
3631 | else | ||
3632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3633 | for as_dir in $PATH | ||
3634 | do | ||
3635 | IFS=$as_save_IFS | ||
3636 | test -z "$as_dir" && as_dir=. | ||
3637 | # Account for people who put trailing slashes in PATH elements. | ||
3638 | case $as_dir/ in #(( | ||
3639 | ./ | .// | /[cC]/* | \ | ||
3640 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
3641 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
3642 | /usr/ucb/* ) ;; | ||
3643 | *) | ||
3644 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
3645 | # Don't use installbsd from OSF since it installs stuff as root | ||
3646 | # by default. | ||
3647 | for ac_prog in ginstall scoinst install; do | ||
3648 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3649 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
3650 | if test $ac_prog = install && | ||
3651 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3652 | # AIX install. It has an incompatible calling convention. | ||
3653 | : | ||
3654 | elif test $ac_prog = install && | ||
3655 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3656 | # program-specific install script used by HP pwplus--don't use. | ||
3657 | : | ||
3658 | else | ||
3659 | rm -rf conftest.one conftest.two conftest.dir | ||
3660 | echo one > conftest.one | ||
3661 | echo two > conftest.two | ||
3662 | mkdir conftest.dir | ||
3663 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
3664 | test -s conftest.one && test -s conftest.two && | ||
3665 | test -s conftest.dir/conftest.one && | ||
3666 | test -s conftest.dir/conftest.two | ||
3667 | then | ||
3668 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3669 | break 3 | ||
3670 | fi | ||
3671 | fi | ||
3672 | fi | ||
3673 | done | ||
3674 | done | ||
3675 | ;; | ||
3676 | esac | ||
3677 | |||
3678 | done | ||
3679 | IFS=$as_save_IFS | ||
3680 | |||
3681 | rm -rf conftest.one conftest.two conftest.dir | ||
3682 | |||
3683 | fi | ||
3684 | if test "${ac_cv_path_install+set}" = set; then | ||
3685 | INSTALL=$ac_cv_path_install | ||
3686 | else | ||
3687 | # As a last resort, use the slow shell script. Don't cache a | ||
3688 | # value for INSTALL within a source directory, because that will | ||
3689 | # break other packages using the cache if that directory is | ||
3690 | # removed, or if the value is a relative name. | ||
3691 | INSTALL=$ac_install_sh | ||
3692 | fi | ||
3693 | fi | ||
3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
3695 | $as_echo "$INSTALL" >&6; } | ||
3696 | |||
3697 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3698 | # It thinks the first close brace ends the variable substitution. | ||
3699 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3700 | |||
3701 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3702 | |||
3703 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3704 | |||
3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
3706 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
3707 | # Just in case | ||
3708 | sleep 1 | ||
3709 | echo timestamp > conftest.file | ||
3710 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
3711 | # name. Accept space and tab only in the latter. | ||
3712 | am_lf=' | ||
3713 | ' | ||
3714 | case `pwd` in | ||
3715 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
3716 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
3717 | esac | ||
3718 | case $srcdir in | ||
3719 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
3720 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
3721 | esac | ||
3722 | |||
3723 | # Do `set' in a subshell so we don't clobber the current shell's | ||
3724 | # arguments. Must try -L first in case configure is actually a | ||
3725 | # symlink; some systems play weird games with the mod time of symlinks | ||
3726 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
3727 | # directory). | ||
3728 | if ( | ||
3729 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
3730 | if test "$*" = "X"; then | ||
3731 | # -L didn't work. | ||
3732 | set X `ls -t "$srcdir/configure" conftest.file` | ||
3733 | fi | ||
3734 | rm -f conftest.file | ||
3735 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
3736 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
3737 | |||
3738 | # If neither matched, then we have a broken ls. This can happen | ||
3739 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
3740 | # broken ls alias from the environment. This has actually | ||
3741 | # happened. Such a system could not be considered "sane". | ||
3742 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
3743 | alias in your environment" "$LINENO" 5 | ||
3744 | fi | ||
3745 | |||
3746 | test "$2" = conftest.file | ||
3747 | ) | ||
3748 | then | ||
3749 | # Ok. | ||
3750 | : | ||
3751 | else | ||
3752 | as_fn_error $? "newly created file is older than distributed files! | ||
3753 | Check your system clock" "$LINENO" 5 | ||
3754 | fi | ||
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3756 | $as_echo "yes" >&6; } | ||
3757 | test "$program_prefix" != NONE && | ||
3758 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
3759 | # Use a double $ so make ignores it. | ||
3760 | test "$program_suffix" != NONE && | ||
3761 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
3762 | # Double any \ or $. | ||
3763 | # By default was `s,x,x', remove it if useless. | ||
3764 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
3765 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
3766 | |||
3767 | # expand $ac_aux_dir to an absolute path | ||
3768 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
3769 | |||
3770 | if test x"${MISSING+set}" != xset; then | ||
3771 | case $am_aux_dir in | ||
3772 | *\ * | *\ *) | ||
3773 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
3774 | *) | ||
3775 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
3776 | esac | ||
3777 | fi | ||
3778 | # Use eval to expand $SHELL | ||
3779 | if eval "$MISSING --run true"; then | ||
3780 | am_missing_run="$MISSING --run " | ||
3781 | else | ||
3782 | am_missing_run= | ||
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
3784 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
3785 | fi | ||
3786 | |||
3787 | if test x"${install_sh}" != xset; then | ||
3788 | case $am_aux_dir in | ||
3789 | *\ * | *\ *) | ||
3790 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
3791 | *) | ||
3792 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
3793 | esac | ||
3794 | fi | ||
3795 | |||
3796 | # Installed binaries are usually stripped using `strip' when the user | ||
3797 | # run `make install-strip'. However `strip' might not be the right | ||
3798 | # tool to use in cross-compilation environments, therefore Automake | ||
3799 | # will honor the `STRIP' environment variable to overrule this program. | ||
3800 | if test "$cross_compiling" != no; then | ||
3801 | if test -n "$ac_tool_prefix"; then | ||
3802 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
3803 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3805 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3806 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
3807 | $as_echo_n "(cached) " >&6 | ||
3808 | else | ||
3809 | if test -n "$STRIP"; then | ||
3810 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
3811 | else | ||
3812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3813 | for as_dir in $PATH | ||
3814 | do | ||
3815 | IFS=$as_save_IFS | ||
3816 | test -z "$as_dir" && as_dir=. | ||
3817 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3819 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
3820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3821 | break 2 | ||
3822 | fi | ||
3823 | done | ||
3824 | done | ||
3825 | IFS=$as_save_IFS | ||
3826 | |||
3827 | fi | ||
3828 | fi | ||
3829 | STRIP=$ac_cv_prog_STRIP | ||
3830 | if test -n "$STRIP"; then | ||
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
3832 | $as_echo "$STRIP" >&6; } | ||
3833 | else | ||
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3835 | $as_echo "no" >&6; } | ||
3836 | fi | ||
3837 | |||
3838 | |||
3839 | fi | ||
3840 | if test -z "$ac_cv_prog_STRIP"; then | ||
3841 | ac_ct_STRIP=$STRIP | ||
3842 | # Extract the first word of "strip", so it can be a program name with args. | ||
3843 | set dummy strip; ac_word=$2 | ||
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3845 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3846 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
3847 | $as_echo_n "(cached) " >&6 | ||
3848 | else | ||
3849 | if test -n "$ac_ct_STRIP"; then | ||
3850 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
3851 | else | ||
3852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3853 | for as_dir in $PATH | ||
3854 | do | ||
3855 | IFS=$as_save_IFS | ||
3856 | test -z "$as_dir" && as_dir=. | ||
3857 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3859 | ac_cv_prog_ac_ct_STRIP="strip" | ||
3860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3861 | break 2 | ||
3862 | fi | ||
3863 | done | ||
3864 | done | ||
3865 | IFS=$as_save_IFS | ||
3866 | |||
3867 | fi | ||
3868 | fi | ||
3869 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
3870 | if test -n "$ac_ct_STRIP"; then | ||
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
3872 | $as_echo "$ac_ct_STRIP" >&6; } | ||
3873 | else | ||
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3875 | $as_echo "no" >&6; } | ||
3876 | fi | ||
3877 | |||
3878 | if test "x$ac_ct_STRIP" = x; then | ||
3879 | STRIP=":" | ||
3880 | else | ||
3881 | case $cross_compiling:$ac_tool_warned in | ||
3882 | yes:) | ||
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3885 | ac_tool_warned=yes ;; | ||
3886 | esac | ||
3887 | STRIP=$ac_ct_STRIP | ||
3888 | fi | ||
3889 | else | ||
3890 | STRIP="$ac_cv_prog_STRIP" | ||
3891 | fi | ||
3892 | |||
3893 | fi | ||
3894 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
3895 | |||
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
3897 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
3898 | if test -z "$MKDIR_P"; then | ||
3899 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
3900 | $as_echo_n "(cached) " >&6 | ||
3901 | else | ||
3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3903 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
3904 | do | ||
3905 | IFS=$as_save_IFS | ||
3906 | test -z "$as_dir" && as_dir=. | ||
3907 | for ac_prog in mkdir gmkdir; do | ||
3908 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3909 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
3910 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
3911 | 'mkdir (GNU coreutils) '* | \ | ||
3912 | 'mkdir (coreutils) '* | \ | ||
3913 | 'mkdir (fileutils) '4.1*) | ||
3914 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
3915 | break 3;; | ||
3916 | esac | ||
3917 | done | ||
3918 | done | ||
3919 | done | ||
3920 | IFS=$as_save_IFS | ||
3921 | |||
3922 | fi | ||
3923 | |||
3924 | test -d ./--version && rmdir ./--version | ||
3925 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
3926 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
3927 | else | ||
3928 | # As a last resort, use the slow shell script. Don't cache a | ||
3929 | # value for MKDIR_P within a source directory, because that will | ||
3930 | # break other packages using the cache if that directory is | ||
3931 | # removed, or if the value is a relative name. | ||
3932 | MKDIR_P="$ac_install_sh -d" | ||
3933 | fi | ||
3934 | fi | ||
3935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
3936 | $as_echo "$MKDIR_P" >&6; } | ||
3937 | |||
3938 | mkdir_p="$MKDIR_P" | ||
3939 | case $mkdir_p in | ||
3940 | [\\/$]* | ?:[\\/]*) ;; | ||
3941 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
3942 | esac | ||
3943 | |||
3944 | for ac_prog in gawk mawk nawk awk | ||
3945 | do | ||
3946 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3947 | set dummy $ac_prog; ac_word=$2 | ||
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3949 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3950 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
3951 | $as_echo_n "(cached) " >&6 | ||
3952 | else | ||
3953 | if test -n "$AWK"; then | ||
3954 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3955 | else | ||
3956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3957 | for as_dir in $PATH | ||
3958 | do | ||
3959 | IFS=$as_save_IFS | ||
3960 | test -z "$as_dir" && as_dir=. | ||
3961 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3963 | ac_cv_prog_AWK="$ac_prog" | ||
3964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3965 | break 2 | ||
3966 | fi | ||
3967 | done | ||
3968 | done | ||
3969 | IFS=$as_save_IFS | ||
3970 | |||
3971 | fi | ||
3972 | fi | ||
3973 | AWK=$ac_cv_prog_AWK | ||
3974 | if test -n "$AWK"; then | ||
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
3976 | $as_echo "$AWK" >&6; } | ||
3977 | else | ||
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3979 | $as_echo "no" >&6; } | ||
3980 | fi | ||
3981 | |||
3982 | |||
3983 | test -n "$AWK" && break | ||
3984 | done | ||
3985 | |||
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
3987 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
3988 | set x ${MAKE-make} | ||
3989 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
3990 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
3991 | $as_echo_n "(cached) " >&6 | ||
3992 | else | ||
3993 | cat >conftest.make <<\_ACEOF | ||
3994 | SHELL = /bin/sh | ||
3995 | all: | ||
3996 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
3997 | _ACEOF | ||
3998 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
3999 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
4000 | *@@@%%%=?*=@@@%%%*) | ||
4001 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
4002 | *) | ||
4003 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
4004 | esac | ||
4005 | rm -f conftest.make | ||
4006 | fi | ||
4007 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4009 | $as_echo "yes" >&6; } | ||
4010 | SET_MAKE= | ||
4011 | else | ||
4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4013 | $as_echo "no" >&6; } | ||
4014 | SET_MAKE="MAKE=${MAKE-make}" | ||
4015 | fi | ||
4016 | |||
4017 | rm -rf .tst 2>/dev/null | ||
4018 | mkdir .tst 2>/dev/null | ||
4019 | if test -d .tst; then | ||
4020 | am__leading_dot=. | ||
4021 | else | ||
4022 | am__leading_dot=_ | ||
4023 | fi | ||
4024 | rmdir .tst 2>/dev/null | ||
4025 | |||
4026 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
4027 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
4028 | # is not polluted with repeated "-I." | ||
4029 | am__isrc=' -I$(srcdir)' | ||
4030 | # test to see if srcdir already configured | ||
4031 | if test -f $srcdir/config.status; then | ||
4032 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
4033 | fi | ||
4034 | fi | ||
4035 | |||
4036 | # test whether we have cygpath | ||
4037 | if test -z "$CYGPATH_W"; then | ||
4038 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
4039 | CYGPATH_W='cygpath -w' | ||
4040 | else | ||
4041 | CYGPATH_W=echo | ||
4042 | fi | ||
4043 | fi | ||
4044 | |||
4045 | |||
4046 | # Define the identity of the package. | ||
4047 | PACKAGE='ecore' | ||
4048 | VERSION='1.2.0-alpha' | ||
4049 | |||
4050 | |||
4051 | cat >>confdefs.h <<_ACEOF | ||
4052 | #define PACKAGE "$PACKAGE" | ||
4053 | _ACEOF | ||
4054 | |||
4055 | |||
4056 | cat >>confdefs.h <<_ACEOF | ||
4057 | #define VERSION "$VERSION" | ||
4058 | _ACEOF | ||
4059 | |||
4060 | # Some tools Automake needs. | ||
4061 | |||
4062 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
4063 | |||
4064 | |||
4065 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
4066 | |||
4067 | |||
4068 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
4069 | |||
4070 | |||
4071 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
4072 | |||
4073 | |||
4074 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
4075 | |||
4076 | # We need awk for the "check" target. The system "awk" is bad on | ||
4077 | # some platforms. | ||
4078 | # Always define AMTAR for backward compatibility. | ||
4079 | |||
4080 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
4081 | |||
4082 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
4083 | |||
4084 | |||
4085 | |||
4086 | |||
4087 | |||
4088 | # Check whether --enable-silent-rules was given. | ||
4089 | if test "${enable_silent_rules+set}" = set; then : | ||
4090 | enableval=$enable_silent_rules; | ||
4091 | fi | ||
4092 | |||
4093 | case $enable_silent_rules in | ||
4094 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
4095 | no) AM_DEFAULT_VERBOSITY=1;; | ||
4096 | *) AM_DEFAULT_VERBOSITY=0;; | ||
4097 | esac | ||
4098 | AM_BACKSLASH='\' | ||
4099 | |||
4100 | |||
4101 | DEPDIR="${am__leading_dot}deps" | ||
4102 | |||
4103 | ac_config_commands="$ac_config_commands depfiles" | ||
4104 | |||
4105 | |||
4106 | am_make=${MAKE-make} | ||
4107 | cat > confinc << 'END' | ||
4108 | am__doit: | ||
4109 | @echo this is the am__doit target | ||
4110 | .PHONY: am__doit | ||
4111 | END | ||
4112 | # If we don't find an include directive, just comment out the code. | ||
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
4114 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
4115 | am__include="#" | ||
4116 | am__quote= | ||
4117 | _am_result=none | ||
4118 | # First try GNU make style include. | ||
4119 | echo "include confinc" > confmf | ||
4120 | # Ignore all kinds of additional output from `make'. | ||
4121 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4122 | *the\ am__doit\ target*) | ||
4123 | am__include=include | ||
4124 | am__quote= | ||
4125 | _am_result=GNU | ||
4126 | ;; | ||
4127 | esac | ||
4128 | # Now try BSD make style include. | ||
4129 | if test "$am__include" = "#"; then | ||
4130 | echo '.include "confinc"' > confmf | ||
4131 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4132 | *the\ am__doit\ target*) | ||
4133 | am__include=.include | ||
4134 | am__quote="\"" | ||
4135 | _am_result=BSD | ||
4136 | ;; | ||
4137 | esac | ||
4138 | fi | ||
4139 | |||
4140 | |||
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
4142 | $as_echo "$_am_result" >&6; } | ||
4143 | rm -f confinc confmf | ||
4144 | |||
4145 | # Check whether --enable-dependency-tracking was given. | ||
4146 | if test "${enable_dependency_tracking+set}" = set; then : | ||
4147 | enableval=$enable_dependency_tracking; | ||
4148 | fi | ||
4149 | |||
4150 | if test "x$enable_dependency_tracking" != xno; then | ||
4151 | am_depcomp="$ac_aux_dir/depcomp" | ||
4152 | AMDEPBACKSLASH='\' | ||
4153 | fi | ||
4154 | if test "x$enable_dependency_tracking" != xno; then | ||
4155 | AMDEP_TRUE= | ||
4156 | AMDEP_FALSE='#' | ||
4157 | else | ||
4158 | AMDEP_TRUE='#' | ||
4159 | AMDEP_FALSE= | ||
4160 | fi | ||
4161 | |||
4162 | |||
4163 | ac_ext=c | ||
4164 | ac_cpp='$CPP $CPPFLAGS' | ||
4165 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4166 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4168 | if test -n "$ac_tool_prefix"; then | ||
4169 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
4170 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4172 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4173 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4174 | $as_echo_n "(cached) " >&6 | ||
4175 | else | ||
4176 | if test -n "$CC"; then | ||
4177 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4178 | else | ||
4179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4180 | for as_dir in $PATH | ||
4181 | do | ||
4182 | IFS=$as_save_IFS | ||
4183 | test -z "$as_dir" && as_dir=. | ||
4184 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4186 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
4187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4188 | break 2 | ||
4189 | fi | ||
4190 | done | ||
4191 | done | ||
4192 | IFS=$as_save_IFS | ||
4193 | |||
4194 | fi | ||
4195 | fi | ||
4196 | CC=$ac_cv_prog_CC | ||
4197 | if test -n "$CC"; then | ||
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4199 | $as_echo "$CC" >&6; } | ||
4200 | else | ||
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4202 | $as_echo "no" >&6; } | ||
4203 | fi | ||
4204 | |||
4205 | |||
4206 | fi | ||
4207 | if test -z "$ac_cv_prog_CC"; then | ||
4208 | ac_ct_CC=$CC | ||
4209 | # Extract the first word of "gcc", so it can be a program name with args. | ||
4210 | set dummy gcc; ac_word=$2 | ||
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4212 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4213 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4214 | $as_echo_n "(cached) " >&6 | ||
4215 | else | ||
4216 | if test -n "$ac_ct_CC"; then | ||
4217 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4218 | else | ||
4219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4220 | for as_dir in $PATH | ||
4221 | do | ||
4222 | IFS=$as_save_IFS | ||
4223 | test -z "$as_dir" && as_dir=. | ||
4224 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4226 | ac_cv_prog_ac_ct_CC="gcc" | ||
4227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4228 | break 2 | ||
4229 | fi | ||
4230 | done | ||
4231 | done | ||
4232 | IFS=$as_save_IFS | ||
4233 | |||
4234 | fi | ||
4235 | fi | ||
4236 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4237 | if test -n "$ac_ct_CC"; then | ||
4238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4239 | $as_echo "$ac_ct_CC" >&6; } | ||
4240 | else | ||
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4242 | $as_echo "no" >&6; } | ||
4243 | fi | ||
4244 | |||
4245 | if test "x$ac_ct_CC" = x; then | ||
4246 | CC="" | ||
4247 | else | ||
4248 | case $cross_compiling:$ac_tool_warned in | ||
4249 | yes:) | ||
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4251 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4252 | ac_tool_warned=yes ;; | ||
4253 | esac | ||
4254 | CC=$ac_ct_CC | ||
4255 | fi | ||
4256 | else | ||
4257 | CC="$ac_cv_prog_CC" | ||
4258 | fi | ||
4259 | |||
4260 | if test -z "$CC"; then | ||
4261 | if test -n "$ac_tool_prefix"; then | ||
4262 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
4263 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4265 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4266 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4267 | $as_echo_n "(cached) " >&6 | ||
4268 | else | ||
4269 | if test -n "$CC"; then | ||
4270 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4271 | else | ||
4272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4273 | for as_dir in $PATH | ||
4274 | do | ||
4275 | IFS=$as_save_IFS | ||
4276 | test -z "$as_dir" && as_dir=. | ||
4277 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4279 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
4280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4281 | break 2 | ||
4282 | fi | ||
4283 | done | ||
4284 | done | ||
4285 | IFS=$as_save_IFS | ||
4286 | |||
4287 | fi | ||
4288 | fi | ||
4289 | CC=$ac_cv_prog_CC | ||
4290 | if test -n "$CC"; then | ||
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4292 | $as_echo "$CC" >&6; } | ||
4293 | else | ||
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4295 | $as_echo "no" >&6; } | ||
4296 | fi | ||
4297 | |||
4298 | |||
4299 | fi | ||
4300 | fi | ||
4301 | if test -z "$CC"; then | ||
4302 | # Extract the first word of "cc", so it can be a program name with args. | ||
4303 | set dummy cc; ac_word=$2 | ||
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4305 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4306 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4307 | $as_echo_n "(cached) " >&6 | ||
4308 | else | ||
4309 | if test -n "$CC"; then | ||
4310 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4311 | else | ||
4312 | ac_prog_rejected=no | ||
4313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4314 | for as_dir in $PATH | ||
4315 | do | ||
4316 | IFS=$as_save_IFS | ||
4317 | test -z "$as_dir" && as_dir=. | ||
4318 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4320 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
4321 | ac_prog_rejected=yes | ||
4322 | continue | ||
4323 | fi | ||
4324 | ac_cv_prog_CC="cc" | ||
4325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4326 | break 2 | ||
4327 | fi | ||
4328 | done | ||
4329 | done | ||
4330 | IFS=$as_save_IFS | ||
4331 | |||
4332 | if test $ac_prog_rejected = yes; then | ||
4333 | # We found a bogon in the path, so make sure we never use it. | ||
4334 | set dummy $ac_cv_prog_CC | ||
4335 | shift | ||
4336 | if test $# != 0; then | ||
4337 | # We chose a different compiler from the bogus one. | ||
4338 | # However, it has the same basename, so the bogon will be chosen | ||
4339 | # first if we set CC to just the basename; use the full file name. | ||
4340 | shift | ||
4341 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
4342 | fi | ||
4343 | fi | ||
4344 | fi | ||
4345 | fi | ||
4346 | CC=$ac_cv_prog_CC | ||
4347 | if test -n "$CC"; then | ||
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4349 | $as_echo "$CC" >&6; } | ||
4350 | else | ||
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4352 | $as_echo "no" >&6; } | ||
4353 | fi | ||
4354 | |||
4355 | |||
4356 | fi | ||
4357 | if test -z "$CC"; then | ||
4358 | if test -n "$ac_tool_prefix"; then | ||
4359 | for ac_prog in cl.exe | ||
4360 | do | ||
4361 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4362 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4364 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4365 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4366 | $as_echo_n "(cached) " >&6 | ||
4367 | else | ||
4368 | if test -n "$CC"; then | ||
4369 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4370 | else | ||
4371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4372 | for as_dir in $PATH | ||
4373 | do | ||
4374 | IFS=$as_save_IFS | ||
4375 | test -z "$as_dir" && as_dir=. | ||
4376 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4378 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
4379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4380 | break 2 | ||
4381 | fi | ||
4382 | done | ||
4383 | done | ||
4384 | IFS=$as_save_IFS | ||
4385 | |||
4386 | fi | ||
4387 | fi | ||
4388 | CC=$ac_cv_prog_CC | ||
4389 | if test -n "$CC"; then | ||
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4391 | $as_echo "$CC" >&6; } | ||
4392 | else | ||
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4394 | $as_echo "no" >&6; } | ||
4395 | fi | ||
4396 | |||
4397 | |||
4398 | test -n "$CC" && break | ||
4399 | done | ||
4400 | fi | ||
4401 | if test -z "$CC"; then | ||
4402 | ac_ct_CC=$CC | ||
4403 | for ac_prog in cl.exe | ||
4404 | do | ||
4405 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4406 | set dummy $ac_prog; ac_word=$2 | ||
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4408 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4409 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4410 | $as_echo_n "(cached) " >&6 | ||
4411 | else | ||
4412 | if test -n "$ac_ct_CC"; then | ||
4413 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4414 | else | ||
4415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4416 | for as_dir in $PATH | ||
4417 | do | ||
4418 | IFS=$as_save_IFS | ||
4419 | test -z "$as_dir" && as_dir=. | ||
4420 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4422 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
4423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4424 | break 2 | ||
4425 | fi | ||
4426 | done | ||
4427 | done | ||
4428 | IFS=$as_save_IFS | ||
4429 | |||
4430 | fi | ||
4431 | fi | ||
4432 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4433 | if test -n "$ac_ct_CC"; then | ||
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4435 | $as_echo "$ac_ct_CC" >&6; } | ||
4436 | else | ||
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4438 | $as_echo "no" >&6; } | ||
4439 | fi | ||
4440 | |||
4441 | |||
4442 | test -n "$ac_ct_CC" && break | ||
4443 | done | ||
4444 | |||
4445 | if test "x$ac_ct_CC" = x; then | ||
4446 | CC="" | ||
4447 | else | ||
4448 | case $cross_compiling:$ac_tool_warned in | ||
4449 | yes:) | ||
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4451 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4452 | ac_tool_warned=yes ;; | ||
4453 | esac | ||
4454 | CC=$ac_ct_CC | ||
4455 | fi | ||
4456 | fi | ||
4457 | |||
4458 | fi | ||
4459 | |||
4460 | |||
4461 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4463 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
4464 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4465 | |||
4466 | # Provide some information about the compiler. | ||
4467 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
4468 | set X $ac_compile | ||
4469 | ac_compiler=$2 | ||
4470 | for ac_option in --version -v -V -qversion; do | ||
4471 | { { ac_try="$ac_compiler $ac_option >&5" | ||
4472 | case "(($ac_try" in | ||
4473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4474 | *) ac_try_echo=$ac_try;; | ||
4475 | esac | ||
4476 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4477 | $as_echo "$ac_try_echo"; } >&5 | ||
4478 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
4479 | ac_status=$? | ||
4480 | if test -s conftest.err; then | ||
4481 | sed '10a\ | ||
4482 | ... rest of stderr output deleted ... | ||
4483 | 10q' conftest.err >conftest.er1 | ||
4484 | cat conftest.er1 >&5 | ||
4485 | fi | ||
4486 | rm -f conftest.er1 conftest.err | ||
4487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4488 | test $ac_status = 0; } | ||
4489 | done | ||
4490 | |||
4491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4492 | /* end confdefs.h. */ | ||
4493 | |||
4494 | int | ||
4495 | main () | ||
4496 | { | ||
4497 | |||
4498 | ; | ||
4499 | return 0; | ||
4500 | } | ||
4501 | _ACEOF | ||
4502 | ac_clean_files_save=$ac_clean_files | ||
4503 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
4504 | # Try to create an executable without -o first, disregard a.out. | ||
4505 | # It will help us diagnose broken compilers, and finding out an intuition | ||
4506 | # of exeext. | ||
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
4508 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
4509 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
4510 | |||
4511 | # The possible output files: | ||
4512 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
4513 | |||
4514 | ac_rmfiles= | ||
4515 | for ac_file in $ac_files | ||
4516 | do | ||
4517 | case $ac_file in | ||
4518 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4519 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
4520 | esac | ||
4521 | done | ||
4522 | rm -f $ac_rmfiles | ||
4523 | |||
4524 | if { { ac_try="$ac_link_default" | ||
4525 | case "(($ac_try" in | ||
4526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4527 | *) ac_try_echo=$ac_try;; | ||
4528 | esac | ||
4529 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4530 | $as_echo "$ac_try_echo"; } >&5 | ||
4531 | (eval "$ac_link_default") 2>&5 | ||
4532 | ac_status=$? | ||
4533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4534 | test $ac_status = 0; }; then : | ||
4535 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
4536 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
4537 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
4538 | # so that the user can short-circuit this test for compilers unknown to | ||
4539 | # Autoconf. | ||
4540 | for ac_file in $ac_files '' | ||
4541 | do | ||
4542 | test -f "$ac_file" || continue | ||
4543 | case $ac_file in | ||
4544 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
4545 | ;; | ||
4546 | [ab].out ) | ||
4547 | # We found the default executable, but exeext='' is most | ||
4548 | # certainly right. | ||
4549 | break;; | ||
4550 | *.* ) | ||
4551 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
4552 | then :; else | ||
4553 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4554 | fi | ||
4555 | # We set ac_cv_exeext here because the later test for it is not | ||
4556 | # safe: cross compilers may not add the suffix if given an `-o' | ||
4557 | # argument, so we may need to know it at that point already. | ||
4558 | # Even if this section looks crufty: it has the advantage of | ||
4559 | # actually working. | ||
4560 | break;; | ||
4561 | * ) | ||
4562 | break;; | ||
4563 | esac | ||
4564 | done | ||
4565 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
4566 | |||
4567 | else | ||
4568 | ac_file='' | ||
4569 | fi | ||
4570 | if test -z "$ac_file"; then : | ||
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4572 | $as_echo "no" >&6; } | ||
4573 | $as_echo "$as_me: failed program was:" >&5 | ||
4574 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4575 | |||
4576 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4577 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4578 | as_fn_error 77 "C compiler cannot create executables | ||
4579 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4580 | else | ||
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4582 | $as_echo "yes" >&6; } | ||
4583 | fi | ||
4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
4585 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
4587 | $as_echo "$ac_file" >&6; } | ||
4588 | ac_exeext=$ac_cv_exeext | ||
4589 | |||
4590 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
4591 | ac_clean_files=$ac_clean_files_save | ||
4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
4593 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
4594 | if { { ac_try="$ac_link" | ||
4595 | case "(($ac_try" in | ||
4596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4597 | *) ac_try_echo=$ac_try;; | ||
4598 | esac | ||
4599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4600 | $as_echo "$ac_try_echo"; } >&5 | ||
4601 | (eval "$ac_link") 2>&5 | ||
4602 | ac_status=$? | ||
4603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4604 | test $ac_status = 0; }; then : | ||
4605 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
4606 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
4607 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
4608 | # `rm'. | ||
4609 | for ac_file in conftest.exe conftest conftest.*; do | ||
4610 | test -f "$ac_file" || continue | ||
4611 | case $ac_file in | ||
4612 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4613 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4614 | break;; | ||
4615 | * ) break;; | ||
4616 | esac | ||
4617 | done | ||
4618 | else | ||
4619 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4620 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4621 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
4622 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4623 | fi | ||
4624 | rm -f conftest conftest$ac_cv_exeext | ||
4625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
4626 | $as_echo "$ac_cv_exeext" >&6; } | ||
4627 | |||
4628 | rm -f conftest.$ac_ext | ||
4629 | EXEEXT=$ac_cv_exeext | ||
4630 | ac_exeext=$EXEEXT | ||
4631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4632 | /* end confdefs.h. */ | ||
4633 | #include <stdio.h> | ||
4634 | int | ||
4635 | main () | ||
4636 | { | ||
4637 | FILE *f = fopen ("conftest.out", "w"); | ||
4638 | return ferror (f) || fclose (f) != 0; | ||
4639 | |||
4640 | ; | ||
4641 | return 0; | ||
4642 | } | ||
4643 | _ACEOF | ||
4644 | ac_clean_files="$ac_clean_files conftest.out" | ||
4645 | # Check that the compiler produces executables we can run. If not, either | ||
4646 | # the compiler is broken, or we cross compile. | ||
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
4648 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
4649 | if test "$cross_compiling" != yes; then | ||
4650 | { { ac_try="$ac_link" | ||
4651 | case "(($ac_try" in | ||
4652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4653 | *) ac_try_echo=$ac_try;; | ||
4654 | esac | ||
4655 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4656 | $as_echo "$ac_try_echo"; } >&5 | ||
4657 | (eval "$ac_link") 2>&5 | ||
4658 | ac_status=$? | ||
4659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4660 | test $ac_status = 0; } | ||
4661 | if { ac_try='./conftest$ac_cv_exeext' | ||
4662 | { { case "(($ac_try" in | ||
4663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4664 | *) ac_try_echo=$ac_try;; | ||
4665 | esac | ||
4666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4667 | $as_echo "$ac_try_echo"; } >&5 | ||
4668 | (eval "$ac_try") 2>&5 | ||
4669 | ac_status=$? | ||
4670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4671 | test $ac_status = 0; }; }; then | ||
4672 | cross_compiling=no | ||
4673 | else | ||
4674 | if test "$cross_compiling" = maybe; then | ||
4675 | cross_compiling=yes | ||
4676 | else | ||
4677 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4679 | as_fn_error $? "cannot run C compiled programs. | ||
4680 | If you meant to cross compile, use \`--host'. | ||
4681 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4682 | fi | ||
4683 | fi | ||
4684 | fi | ||
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
4686 | $as_echo "$cross_compiling" >&6; } | ||
4687 | |||
4688 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
4689 | ac_clean_files=$ac_clean_files_save | ||
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
4691 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
4692 | if test "${ac_cv_objext+set}" = set; then : | ||
4693 | $as_echo_n "(cached) " >&6 | ||
4694 | else | ||
4695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4696 | /* end confdefs.h. */ | ||
4697 | |||
4698 | int | ||
4699 | main () | ||
4700 | { | ||
4701 | |||
4702 | ; | ||
4703 | return 0; | ||
4704 | } | ||
4705 | _ACEOF | ||
4706 | rm -f conftest.o conftest.obj | ||
4707 | if { { ac_try="$ac_compile" | ||
4708 | case "(($ac_try" in | ||
4709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4710 | *) ac_try_echo=$ac_try;; | ||
4711 | esac | ||
4712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4713 | $as_echo "$ac_try_echo"; } >&5 | ||
4714 | (eval "$ac_compile") 2>&5 | ||
4715 | ac_status=$? | ||
4716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4717 | test $ac_status = 0; }; then : | ||
4718 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
4719 | test -f "$ac_file" || continue; | ||
4720 | case $ac_file in | ||
4721 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
4722 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
4723 | break;; | ||
4724 | esac | ||
4725 | done | ||
4726 | else | ||
4727 | $as_echo "$as_me: failed program was:" >&5 | ||
4728 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4729 | |||
4730 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4731 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4732 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4733 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4734 | fi | ||
4735 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4736 | fi | ||
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4738 | $as_echo "$ac_cv_objext" >&6; } | ||
4739 | OBJEXT=$ac_cv_objext | ||
4740 | ac_objext=$OBJEXT | ||
4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4742 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4743 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4744 | $as_echo_n "(cached) " >&6 | ||
4745 | else | ||
4746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4747 | /* end confdefs.h. */ | ||
4748 | |||
4749 | int | ||
4750 | main () | ||
4751 | { | ||
4752 | #ifndef __GNUC__ | ||
4753 | choke me | ||
4754 | #endif | ||
4755 | |||
4756 | ; | ||
4757 | return 0; | ||
4758 | } | ||
4759 | _ACEOF | ||
4760 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4761 | ac_compiler_gnu=yes | ||
4762 | else | ||
4763 | ac_compiler_gnu=no | ||
4764 | fi | ||
4765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4766 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4767 | |||
4768 | fi | ||
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4770 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4771 | if test $ac_compiler_gnu = yes; then | ||
4772 | GCC=yes | ||
4773 | else | ||
4774 | GCC= | ||
4775 | fi | ||
4776 | ac_test_CFLAGS=${CFLAGS+set} | ||
4777 | ac_save_CFLAGS=$CFLAGS | ||
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4779 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4780 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4781 | $as_echo_n "(cached) " >&6 | ||
4782 | else | ||
4783 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4784 | ac_c_werror_flag=yes | ||
4785 | ac_cv_prog_cc_g=no | ||
4786 | CFLAGS="-g" | ||
4787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4788 | /* end confdefs.h. */ | ||
4789 | |||
4790 | int | ||
4791 | main () | ||
4792 | { | ||
4793 | |||
4794 | ; | ||
4795 | return 0; | ||
4796 | } | ||
4797 | _ACEOF | ||
4798 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4799 | ac_cv_prog_cc_g=yes | ||
4800 | else | ||
4801 | CFLAGS="" | ||
4802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4803 | /* end confdefs.h. */ | ||
4804 | |||
4805 | int | ||
4806 | main () | ||
4807 | { | ||
4808 | |||
4809 | ; | ||
4810 | return 0; | ||
4811 | } | ||
4812 | _ACEOF | ||
4813 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4814 | |||
4815 | else | ||
4816 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4817 | CFLAGS="-g" | ||
4818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4819 | /* end confdefs.h. */ | ||
4820 | |||
4821 | int | ||
4822 | main () | ||
4823 | { | ||
4824 | |||
4825 | ; | ||
4826 | return 0; | ||
4827 | } | ||
4828 | _ACEOF | ||
4829 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4830 | ac_cv_prog_cc_g=yes | ||
4831 | fi | ||
4832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4833 | fi | ||
4834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4835 | fi | ||
4836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4837 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4838 | fi | ||
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4840 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4841 | if test "$ac_test_CFLAGS" = set; then | ||
4842 | CFLAGS=$ac_save_CFLAGS | ||
4843 | elif test $ac_cv_prog_cc_g = yes; then | ||
4844 | if test "$GCC" = yes; then | ||
4845 | CFLAGS="-g -O2" | ||
4846 | else | ||
4847 | CFLAGS="-g" | ||
4848 | fi | ||
4849 | else | ||
4850 | if test "$GCC" = yes; then | ||
4851 | CFLAGS="-O2" | ||
4852 | else | ||
4853 | CFLAGS= | ||
4854 | fi | ||
4855 | fi | ||
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4857 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4858 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4859 | $as_echo_n "(cached) " >&6 | ||
4860 | else | ||
4861 | ac_cv_prog_cc_c89=no | ||
4862 | ac_save_CC=$CC | ||
4863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4864 | /* end confdefs.h. */ | ||
4865 | #include <stdarg.h> | ||
4866 | #include <stdio.h> | ||
4867 | #include <sys/types.h> | ||
4868 | #include <sys/stat.h> | ||
4869 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4870 | struct buf { int x; }; | ||
4871 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4872 | static char *e (p, i) | ||
4873 | char **p; | ||
4874 | int i; | ||
4875 | { | ||
4876 | return p[i]; | ||
4877 | } | ||
4878 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4879 | { | ||
4880 | char *s; | ||
4881 | va_list v; | ||
4882 | va_start (v,p); | ||
4883 | s = g (p, va_arg (v,int)); | ||
4884 | va_end (v); | ||
4885 | return s; | ||
4886 | } | ||
4887 | |||
4888 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4889 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4890 | These don't provoke an error unfortunately, instead are silently treated | ||
4891 | as 'x'. The following induces an error, until -std is added to get | ||
4892 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4893 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4894 | that's true only with -std. */ | ||
4895 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4896 | |||
4897 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4898 | inside strings and character constants. */ | ||
4899 | #define FOO(x) 'x' | ||
4900 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4901 | |||
4902 | int test (int i, double x); | ||
4903 | struct s1 {int (*f) (int a);}; | ||
4904 | struct s2 {int (*f) (double a);}; | ||
4905 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4906 | int argc; | ||
4907 | char **argv; | ||
4908 | int | ||
4909 | main () | ||
4910 | { | ||
4911 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4912 | ; | ||
4913 | return 0; | ||
4914 | } | ||
4915 | _ACEOF | ||
4916 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4917 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4918 | do | ||
4919 | CC="$ac_save_CC $ac_arg" | ||
4920 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4921 | ac_cv_prog_cc_c89=$ac_arg | ||
4922 | fi | ||
4923 | rm -f core conftest.err conftest.$ac_objext | ||
4924 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4925 | done | ||
4926 | rm -f conftest.$ac_ext | ||
4927 | CC=$ac_save_CC | ||
4928 | |||
4929 | fi | ||
4930 | # AC_CACHE_VAL | ||
4931 | case "x$ac_cv_prog_cc_c89" in | ||
4932 | x) | ||
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4934 | $as_echo "none needed" >&6; } ;; | ||
4935 | xno) | ||
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4937 | $as_echo "unsupported" >&6; } ;; | ||
4938 | *) | ||
4939 | CC="$CC $ac_cv_prog_cc_c89" | ||
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4941 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4942 | esac | ||
4943 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4944 | |||
4945 | fi | ||
4946 | |||
4947 | ac_ext=c | ||
4948 | ac_cpp='$CPP $CPPFLAGS' | ||
4949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4952 | |||
4953 | depcc="$CC" am_compiler_list= | ||
4954 | |||
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4956 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4957 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4958 | $as_echo_n "(cached) " >&6 | ||
4959 | else | ||
4960 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4961 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4962 | # making bogus files that we don't know about and never remove. For | ||
4963 | # instance it was reported that on HP-UX the gcc test will end up | ||
4964 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4965 | # in D'. | ||
4966 | mkdir conftest.dir | ||
4967 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4968 | # using a relative directory. | ||
4969 | cp "$am_depcomp" conftest.dir | ||
4970 | cd conftest.dir | ||
4971 | # We will build objects and dependencies in a subdirectory because | ||
4972 | # it helps to detect inapplicable dependency modes. For instance | ||
4973 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4974 | # side effect of compilation, but ICC will put the dependencies in | ||
4975 | # the current directory while Tru64 will put them in the object | ||
4976 | # directory. | ||
4977 | mkdir sub | ||
4978 | |||
4979 | am_cv_CC_dependencies_compiler_type=none | ||
4980 | if test "$am_compiler_list" = ""; then | ||
4981 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4982 | fi | ||
4983 | am__universal=false | ||
4984 | case " $depcc " in #( | ||
4985 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4986 | esac | ||
4987 | |||
4988 | for depmode in $am_compiler_list; do | ||
4989 | # Setup a source with many dependencies, because some compilers | ||
4990 | # like to wrap large dependency lists on column 80 (with \), and | ||
4991 | # we should not choose a depcomp mode which is confused by this. | ||
4992 | # | ||
4993 | # We need to recreate these files for each test, as the compiler may | ||
4994 | # overwrite some of them when testing with obscure command lines. | ||
4995 | # This happens at least with the AIX C compiler. | ||
4996 | : > sub/conftest.c | ||
4997 | for i in 1 2 3 4 5 6; do | ||
4998 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4999 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
5000 | # Solaris 8's {/usr,}/bin/sh. | ||
5001 | touch sub/conftst$i.h | ||
5002 | done | ||
5003 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
5004 | |||
5005 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
5006 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
5007 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
5008 | # versions had trouble with output in subdirs | ||
5009 | am__obj=sub/conftest.${OBJEXT-o} | ||
5010 | am__minus_obj="-o $am__obj" | ||
5011 | case $depmode in | ||
5012 | gcc) | ||
5013 | # This depmode causes a compiler race in universal mode. | ||
5014 | test "$am__universal" = false || continue | ||
5015 | ;; | ||
5016 | nosideeffect) | ||
5017 | # after this tag, mechanisms are not by side-effect, so they'll | ||
5018 | # only be used when explicitly requested | ||
5019 | if test "x$enable_dependency_tracking" = xyes; then | ||
5020 | continue | ||
5021 | else | ||
5022 | break | ||
5023 | fi | ||
5024 | ;; | ||
5025 | msvisualcpp | msvcmsys) | ||
5026 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
5027 | # not run yet. These depmodes are late enough in the game, and | ||
5028 | # so weak that their functioning should not be impacted. | ||
5029 | am__obj=conftest.${OBJEXT-o} | ||
5030 | am__minus_obj= | ||
5031 | ;; | ||
5032 | none) break ;; | ||
5033 | esac | ||
5034 | if depmode=$depmode \ | ||
5035 | source=sub/conftest.c object=$am__obj \ | ||
5036 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
5037 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
5038 | >/dev/null 2>conftest.err && | ||
5039 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
5040 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
5041 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
5042 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
5043 | # icc doesn't choke on unknown options, it will just issue warnings | ||
5044 | # or remarks (even with -Werror). So we grep stderr for any message | ||
5045 | # that says an option was ignored or not supported. | ||
5046 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
5047 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
5048 | # The diagnosis changed in icc 8.0: | ||
5049 | # icc: Command line remark: option '-MP' not supported | ||
5050 | if (grep 'ignoring option' conftest.err || | ||
5051 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
5052 | am_cv_CC_dependencies_compiler_type=$depmode | ||
5053 | break | ||
5054 | fi | ||
5055 | fi | ||
5056 | done | ||
5057 | |||
5058 | cd .. | ||
5059 | rm -rf conftest.dir | ||
5060 | else | ||
5061 | am_cv_CC_dependencies_compiler_type=none | ||
5062 | fi | ||
5063 | |||
5064 | fi | ||
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
5066 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
5067 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
5068 | |||
5069 | if | ||
5070 | test "x$enable_dependency_tracking" != xno \ | ||
5071 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
5072 | am__fastdepCC_TRUE= | ||
5073 | am__fastdepCC_FALSE='#' | ||
5074 | else | ||
5075 | am__fastdepCC_TRUE='#' | ||
5076 | am__fastdepCC_FALSE= | ||
5077 | fi | ||
5078 | |||
5079 | |||
5080 | |||
5081 | ac_ext=c | ||
5082 | ac_cpp='$CPP $CPPFLAGS' | ||
5083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
5087 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
5088 | # On Suns, sometimes $CPP names a directory. | ||
5089 | if test -n "$CPP" && test -d "$CPP"; then | ||
5090 | CPP= | ||
5091 | fi | ||
5092 | if test -z "$CPP"; then | ||
5093 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
5094 | $as_echo_n "(cached) " >&6 | ||
5095 | else | ||
5096 | # Double quotes because CPP needs to be expanded | ||
5097 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
5098 | do | ||
5099 | ac_preproc_ok=false | ||
5100 | for ac_c_preproc_warn_flag in '' yes | ||
5101 | do | ||
5102 | # Use a header file that comes with gcc, so configuring glibc | ||
5103 | # with a fresh cross-compiler works. | ||
5104 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5105 | # <limits.h> exists even on freestanding compilers. | ||
5106 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5107 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5109 | /* end confdefs.h. */ | ||
5110 | #ifdef __STDC__ | ||
5111 | # include <limits.h> | ||
5112 | #else | ||
5113 | # include <assert.h> | ||
5114 | #endif | ||
5115 | Syntax error | ||
5116 | _ACEOF | ||
5117 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5118 | |||
5119 | else | ||
5120 | # Broken: fails on valid input. | ||
5121 | continue | ||
5122 | fi | ||
5123 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5124 | |||
5125 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5126 | # can be detected and how. | ||
5127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5128 | /* end confdefs.h. */ | ||
5129 | #include <ac_nonexistent.h> | ||
5130 | _ACEOF | ||
5131 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5132 | # Broken: success on invalid input. | ||
5133 | continue | ||
5134 | else | ||
5135 | # Passes both tests. | ||
5136 | ac_preproc_ok=: | ||
5137 | break | ||
5138 | fi | ||
5139 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5140 | |||
5141 | done | ||
5142 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5143 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
5144 | if $ac_preproc_ok; then : | ||
5145 | break | ||
5146 | fi | ||
5147 | |||
5148 | done | ||
5149 | ac_cv_prog_CPP=$CPP | ||
5150 | |||
5151 | fi | ||
5152 | CPP=$ac_cv_prog_CPP | ||
5153 | else | ||
5154 | ac_cv_prog_CPP=$CPP | ||
5155 | fi | ||
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
5157 | $as_echo "$CPP" >&6; } | ||
5158 | ac_preproc_ok=false | ||
5159 | for ac_c_preproc_warn_flag in '' yes | ||
5160 | do | ||
5161 | # Use a header file that comes with gcc, so configuring glibc | ||
5162 | # with a fresh cross-compiler works. | ||
5163 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5164 | # <limits.h> exists even on freestanding compilers. | ||
5165 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5166 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5168 | /* end confdefs.h. */ | ||
5169 | #ifdef __STDC__ | ||
5170 | # include <limits.h> | ||
5171 | #else | ||
5172 | # include <assert.h> | ||
5173 | #endif | ||
5174 | Syntax error | ||
5175 | _ACEOF | ||
5176 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5177 | |||
5178 | else | ||
5179 | # Broken: fails on valid input. | ||
5180 | continue | ||
5181 | fi | ||
5182 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5183 | |||
5184 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5185 | # can be detected and how. | ||
5186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5187 | /* end confdefs.h. */ | ||
5188 | #include <ac_nonexistent.h> | ||
5189 | _ACEOF | ||
5190 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5191 | # Broken: success on invalid input. | ||
5192 | continue | ||
5193 | else | ||
5194 | # Passes both tests. | ||
5195 | ac_preproc_ok=: | ||
5196 | break | ||
5197 | fi | ||
5198 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5199 | |||
5200 | done | ||
5201 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5202 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
5203 | if $ac_preproc_ok; then : | ||
5204 | |||
5205 | else | ||
5206 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
5207 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
5208 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
5209 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
5210 | fi | ||
5211 | |||
5212 | ac_ext=c | ||
5213 | ac_cpp='$CPP $CPPFLAGS' | ||
5214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5217 | |||
5218 | |||
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
5220 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
5221 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
5222 | $as_echo_n "(cached) " >&6 | ||
5223 | else | ||
5224 | if test -z "$GREP"; then | ||
5225 | ac_path_GREP_found=false | ||
5226 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5228 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5229 | do | ||
5230 | IFS=$as_save_IFS | ||
5231 | test -z "$as_dir" && as_dir=. | ||
5232 | for ac_prog in grep ggrep; do | ||
5233 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5234 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5235 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
5236 | # Check for GNU ac_path_GREP and select it if it is found. | ||
5237 | # Check for GNU $ac_path_GREP | ||
5238 | case `"$ac_path_GREP" --version 2>&1` in | ||
5239 | *GNU*) | ||
5240 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
5241 | *) | ||
5242 | ac_count=0 | ||
5243 | $as_echo_n 0123456789 >"conftest.in" | ||
5244 | while : | ||
5245 | do | ||
5246 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5247 | mv "conftest.tmp" "conftest.in" | ||
5248 | cp "conftest.in" "conftest.nl" | ||
5249 | $as_echo 'GREP' >> "conftest.nl" | ||
5250 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5251 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5252 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5253 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
5254 | # Best one so far, save it but keep looking for a better one | ||
5255 | ac_cv_path_GREP="$ac_path_GREP" | ||
5256 | ac_path_GREP_max=$ac_count | ||
5257 | fi | ||
5258 | # 10*(2^10) chars as input seems more than enough | ||
5259 | test $ac_count -gt 10 && break | ||
5260 | done | ||
5261 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5262 | esac | ||
5263 | |||
5264 | $ac_path_GREP_found && break 3 | ||
5265 | done | ||
5266 | done | ||
5267 | done | ||
5268 | IFS=$as_save_IFS | ||
5269 | if test -z "$ac_cv_path_GREP"; then | ||
5270 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5271 | fi | ||
5272 | else | ||
5273 | ac_cv_path_GREP=$GREP | ||
5274 | fi | ||
5275 | |||
5276 | fi | ||
5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
5278 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
5279 | GREP="$ac_cv_path_GREP" | ||
5280 | |||
5281 | |||
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
5283 | $as_echo_n "checking for egrep... " >&6; } | ||
5284 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
5285 | $as_echo_n "(cached) " >&6 | ||
5286 | else | ||
5287 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
5288 | then ac_cv_path_EGREP="$GREP -E" | ||
5289 | else | ||
5290 | if test -z "$EGREP"; then | ||
5291 | ac_path_EGREP_found=false | ||
5292 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5294 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5295 | do | ||
5296 | IFS=$as_save_IFS | ||
5297 | test -z "$as_dir" && as_dir=. | ||
5298 | for ac_prog in egrep; do | ||
5299 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5300 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5301 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
5302 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
5303 | # Check for GNU $ac_path_EGREP | ||
5304 | case `"$ac_path_EGREP" --version 2>&1` in | ||
5305 | *GNU*) | ||
5306 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
5307 | *) | ||
5308 | ac_count=0 | ||
5309 | $as_echo_n 0123456789 >"conftest.in" | ||
5310 | while : | ||
5311 | do | ||
5312 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5313 | mv "conftest.tmp" "conftest.in" | ||
5314 | cp "conftest.in" "conftest.nl" | ||
5315 | $as_echo 'EGREP' >> "conftest.nl" | ||
5316 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5317 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5318 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5319 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
5320 | # Best one so far, save it but keep looking for a better one | ||
5321 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
5322 | ac_path_EGREP_max=$ac_count | ||
5323 | fi | ||
5324 | # 10*(2^10) chars as input seems more than enough | ||
5325 | test $ac_count -gt 10 && break | ||
5326 | done | ||
5327 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5328 | esac | ||
5329 | |||
5330 | $ac_path_EGREP_found && break 3 | ||
5331 | done | ||
5332 | done | ||
5333 | done | ||
5334 | IFS=$as_save_IFS | ||
5335 | if test -z "$ac_cv_path_EGREP"; then | ||
5336 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5337 | fi | ||
5338 | else | ||
5339 | ac_cv_path_EGREP=$EGREP | ||
5340 | fi | ||
5341 | |||
5342 | fi | ||
5343 | fi | ||
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
5345 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
5346 | EGREP="$ac_cv_path_EGREP" | ||
5347 | |||
5348 | |||
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
5350 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
5351 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
5352 | $as_echo_n "(cached) " >&6 | ||
5353 | else | ||
5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5355 | /* end confdefs.h. */ | ||
5356 | #include <stdlib.h> | ||
5357 | #include <stdarg.h> | ||
5358 | #include <string.h> | ||
5359 | #include <float.h> | ||
5360 | |||
5361 | int | ||
5362 | main () | ||
5363 | { | ||
5364 | |||
5365 | ; | ||
5366 | return 0; | ||
5367 | } | ||
5368 | _ACEOF | ||
5369 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5370 | ac_cv_header_stdc=yes | ||
5371 | else | ||
5372 | ac_cv_header_stdc=no | ||
5373 | fi | ||
5374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5375 | |||
5376 | if test $ac_cv_header_stdc = yes; then | ||
5377 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
5378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5379 | /* end confdefs.h. */ | ||
5380 | #include <string.h> | ||
5381 | |||
5382 | _ACEOF | ||
5383 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5384 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
5385 | |||
5386 | else | ||
5387 | ac_cv_header_stdc=no | ||
5388 | fi | ||
5389 | rm -f conftest* | ||
5390 | |||
5391 | fi | ||
5392 | |||
5393 | if test $ac_cv_header_stdc = yes; then | ||
5394 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
5395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5396 | /* end confdefs.h. */ | ||
5397 | #include <stdlib.h> | ||
5398 | |||
5399 | _ACEOF | ||
5400 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5401 | $EGREP "free" >/dev/null 2>&1; then : | ||
5402 | |||
5403 | else | ||
5404 | ac_cv_header_stdc=no | ||
5405 | fi | ||
5406 | rm -f conftest* | ||
5407 | |||
5408 | fi | ||
5409 | |||
5410 | if test $ac_cv_header_stdc = yes; then | ||
5411 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
5412 | if test "$cross_compiling" = yes; then : | ||
5413 | : | ||
5414 | else | ||
5415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5416 | /* end confdefs.h. */ | ||
5417 | #include <ctype.h> | ||
5418 | #include <stdlib.h> | ||
5419 | #if ((' ' & 0x0FF) == 0x020) | ||
5420 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
5421 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
5422 | #else | ||
5423 | # define ISLOWER(c) \ | ||
5424 | (('a' <= (c) && (c) <= 'i') \ | ||
5425 | || ('j' <= (c) && (c) <= 'r') \ | ||
5426 | || ('s' <= (c) && (c) <= 'z')) | ||
5427 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
5428 | #endif | ||
5429 | |||
5430 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
5431 | int | ||
5432 | main () | ||
5433 | { | ||
5434 | int i; | ||
5435 | for (i = 0; i < 256; i++) | ||
5436 | if (XOR (islower (i), ISLOWER (i)) | ||
5437 | || toupper (i) != TOUPPER (i)) | ||
5438 | return 2; | ||
5439 | return 0; | ||
5440 | } | ||
5441 | _ACEOF | ||
5442 | if ac_fn_c_try_run "$LINENO"; then : | ||
5443 | |||
5444 | else | ||
5445 | ac_cv_header_stdc=no | ||
5446 | fi | ||
5447 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
5448 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
5449 | fi | ||
5450 | |||
5451 | fi | ||
5452 | fi | ||
5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
5454 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
5455 | if test $ac_cv_header_stdc = yes; then | ||
5456 | |||
5457 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
5458 | |||
5459 | fi | ||
5460 | |||
5461 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
5462 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
5463 | inttypes.h stdint.h unistd.h | ||
5464 | do : | ||
5465 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5466 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
5467 | " | ||
5468 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
5469 | cat >>confdefs.h <<_ACEOF | ||
5470 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5471 | _ACEOF | ||
5472 | |||
5473 | fi | ||
5474 | |||
5475 | done | ||
5476 | |||
5477 | |||
5478 | |||
5479 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||
5480 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | ||
5481 | MINIX=yes | ||
5482 | else | ||
5483 | MINIX= | ||
5484 | fi | ||
5485 | |||
5486 | |||
5487 | if test "$MINIX" = yes; then | ||
5488 | |||
5489 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||
5490 | |||
5491 | |||
5492 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||
5493 | |||
5494 | |||
5495 | $as_echo "#define _MINIX 1" >>confdefs.h | ||
5496 | |||
5497 | fi | ||
5498 | |||
5499 | |||
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||
5501 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||
5502 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | ||
5503 | $as_echo_n "(cached) " >&6 | ||
5504 | else | ||
5505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5506 | /* end confdefs.h. */ | ||
5507 | |||
5508 | # define __EXTENSIONS__ 1 | ||
5509 | $ac_includes_default | ||
5510 | int | ||
5511 | main () | ||
5512 | { | ||
5513 | |||
5514 | ; | ||
5515 | return 0; | ||
5516 | } | ||
5517 | _ACEOF | ||
5518 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5519 | ac_cv_safe_to_define___extensions__=yes | ||
5520 | else | ||
5521 | ac_cv_safe_to_define___extensions__=no | ||
5522 | fi | ||
5523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5524 | fi | ||
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||
5526 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||
5527 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
5528 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||
5529 | |||
5530 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||
5531 | |||
5532 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||
5533 | |||
5534 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||
5535 | |||
5536 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||
5537 | |||
5538 | |||
5539 | |||
5540 | |||
5541 | # Make sure we can run config.sub. | ||
5542 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
5543 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
5544 | |||
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
5546 | $as_echo_n "checking build system type... " >&6; } | ||
5547 | if test "${ac_cv_build+set}" = set; then : | ||
5548 | $as_echo_n "(cached) " >&6 | ||
5549 | else | ||
5550 | ac_build_alias=$build_alias | ||
5551 | test "x$ac_build_alias" = x && | ||
5552 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
5553 | test "x$ac_build_alias" = x && | ||
5554 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
5555 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
5556 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
5557 | |||
5558 | fi | ||
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
5560 | $as_echo "$ac_cv_build" >&6; } | ||
5561 | case $ac_cv_build in | ||
5562 | *-*-*) ;; | ||
5563 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
5564 | esac | ||
5565 | build=$ac_cv_build | ||
5566 | ac_save_IFS=$IFS; IFS='-' | ||
5567 | set x $ac_cv_build | ||
5568 | shift | ||
5569 | build_cpu=$1 | ||
5570 | build_vendor=$2 | ||
5571 | shift; shift | ||
5572 | # Remember, the first character of IFS is used to create $*, | ||
5573 | # except with old shells: | ||
5574 | build_os=$* | ||
5575 | IFS=$ac_save_IFS | ||
5576 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
5577 | |||
5578 | |||
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
5580 | $as_echo_n "checking host system type... " >&6; } | ||
5581 | if test "${ac_cv_host+set}" = set; then : | ||
5582 | $as_echo_n "(cached) " >&6 | ||
5583 | else | ||
5584 | if test "x$host_alias" = x; then | ||
5585 | ac_cv_host=$ac_cv_build | ||
5586 | else | ||
5587 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
5588 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
5589 | fi | ||
5590 | |||
5591 | fi | ||
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
5593 | $as_echo "$ac_cv_host" >&6; } | ||
5594 | case $ac_cv_host in | ||
5595 | *-*-*) ;; | ||
5596 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
5597 | esac | ||
5598 | host=$ac_cv_host | ||
5599 | ac_save_IFS=$IFS; IFS='-' | ||
5600 | set x $ac_cv_host | ||
5601 | shift | ||
5602 | host_cpu=$1 | ||
5603 | host_vendor=$2 | ||
5604 | shift; shift | ||
5605 | # Remember, the first character of IFS is used to create $*, | ||
5606 | # except with old shells: | ||
5607 | host_os=$* | ||
5608 | IFS=$ac_save_IFS | ||
5609 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
5610 | |||
5611 | |||
5612 | enable_win32_dll=yes | ||
5613 | |||
5614 | case $host in | ||
5615 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
5616 | if test -n "$ac_tool_prefix"; then | ||
5617 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
5618 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5620 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5621 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
5622 | $as_echo_n "(cached) " >&6 | ||
5623 | else | ||
5624 | if test -n "$AS"; then | ||
5625 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
5626 | else | ||
5627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5628 | for as_dir in $PATH | ||
5629 | do | ||
5630 | IFS=$as_save_IFS | ||
5631 | test -z "$as_dir" && as_dir=. | ||
5632 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5634 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
5635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5636 | break 2 | ||
5637 | fi | ||
5638 | done | ||
5639 | done | ||
5640 | IFS=$as_save_IFS | ||
5641 | |||
5642 | fi | ||
5643 | fi | ||
5644 | AS=$ac_cv_prog_AS | ||
5645 | if test -n "$AS"; then | ||
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
5647 | $as_echo "$AS" >&6; } | ||
5648 | else | ||
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5650 | $as_echo "no" >&6; } | ||
5651 | fi | ||
5652 | |||
5653 | |||
5654 | fi | ||
5655 | if test -z "$ac_cv_prog_AS"; then | ||
5656 | ac_ct_AS=$AS | ||
5657 | # Extract the first word of "as", so it can be a program name with args. | ||
5658 | set dummy as; ac_word=$2 | ||
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5660 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5661 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
5662 | $as_echo_n "(cached) " >&6 | ||
5663 | else | ||
5664 | if test -n "$ac_ct_AS"; then | ||
5665 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
5666 | else | ||
5667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5668 | for as_dir in $PATH | ||
5669 | do | ||
5670 | IFS=$as_save_IFS | ||
5671 | test -z "$as_dir" && as_dir=. | ||
5672 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5674 | ac_cv_prog_ac_ct_AS="as" | ||
5675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5676 | break 2 | ||
5677 | fi | ||
5678 | done | ||
5679 | done | ||
5680 | IFS=$as_save_IFS | ||
5681 | |||
5682 | fi | ||
5683 | fi | ||
5684 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
5685 | if test -n "$ac_ct_AS"; then | ||
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
5687 | $as_echo "$ac_ct_AS" >&6; } | ||
5688 | else | ||
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5690 | $as_echo "no" >&6; } | ||
5691 | fi | ||
5692 | |||
5693 | if test "x$ac_ct_AS" = x; then | ||
5694 | AS="false" | ||
5695 | else | ||
5696 | case $cross_compiling:$ac_tool_warned in | ||
5697 | yes:) | ||
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5699 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5700 | ac_tool_warned=yes ;; | ||
5701 | esac | ||
5702 | AS=$ac_ct_AS | ||
5703 | fi | ||
5704 | else | ||
5705 | AS="$ac_cv_prog_AS" | ||
5706 | fi | ||
5707 | |||
5708 | if test -n "$ac_tool_prefix"; then | ||
5709 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
5710 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5712 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5713 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
5714 | $as_echo_n "(cached) " >&6 | ||
5715 | else | ||
5716 | if test -n "$DLLTOOL"; then | ||
5717 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
5718 | else | ||
5719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5720 | for as_dir in $PATH | ||
5721 | do | ||
5722 | IFS=$as_save_IFS | ||
5723 | test -z "$as_dir" && as_dir=. | ||
5724 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5726 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
5727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5728 | break 2 | ||
5729 | fi | ||
5730 | done | ||
5731 | done | ||
5732 | IFS=$as_save_IFS | ||
5733 | |||
5734 | fi | ||
5735 | fi | ||
5736 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
5737 | if test -n "$DLLTOOL"; then | ||
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
5739 | $as_echo "$DLLTOOL" >&6; } | ||
5740 | else | ||
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5742 | $as_echo "no" >&6; } | ||
5743 | fi | ||
5744 | |||
5745 | |||
5746 | fi | ||
5747 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
5748 | ac_ct_DLLTOOL=$DLLTOOL | ||
5749 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
5750 | set dummy dlltool; ac_word=$2 | ||
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5752 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5753 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
5754 | $as_echo_n "(cached) " >&6 | ||
5755 | else | ||
5756 | if test -n "$ac_ct_DLLTOOL"; then | ||
5757 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
5758 | else | ||
5759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5760 | for as_dir in $PATH | ||
5761 | do | ||
5762 | IFS=$as_save_IFS | ||
5763 | test -z "$as_dir" && as_dir=. | ||
5764 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5766 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
5767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5768 | break 2 | ||
5769 | fi | ||
5770 | done | ||
5771 | done | ||
5772 | IFS=$as_save_IFS | ||
5773 | |||
5774 | fi | ||
5775 | fi | ||
5776 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
5777 | if test -n "$ac_ct_DLLTOOL"; then | ||
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
5779 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
5780 | else | ||
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5782 | $as_echo "no" >&6; } | ||
5783 | fi | ||
5784 | |||
5785 | if test "x$ac_ct_DLLTOOL" = x; then | ||
5786 | DLLTOOL="false" | ||
5787 | else | ||
5788 | case $cross_compiling:$ac_tool_warned in | ||
5789 | yes:) | ||
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5791 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5792 | ac_tool_warned=yes ;; | ||
5793 | esac | ||
5794 | DLLTOOL=$ac_ct_DLLTOOL | ||
5795 | fi | ||
5796 | else | ||
5797 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
5798 | fi | ||
5799 | |||
5800 | if test -n "$ac_tool_prefix"; then | ||
5801 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5802 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5804 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5805 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5806 | $as_echo_n "(cached) " >&6 | ||
5807 | else | ||
5808 | if test -n "$OBJDUMP"; then | ||
5809 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5810 | else | ||
5811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5812 | for as_dir in $PATH | ||
5813 | do | ||
5814 | IFS=$as_save_IFS | ||
5815 | test -z "$as_dir" && as_dir=. | ||
5816 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5818 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5820 | break 2 | ||
5821 | fi | ||
5822 | done | ||
5823 | done | ||
5824 | IFS=$as_save_IFS | ||
5825 | |||
5826 | fi | ||
5827 | fi | ||
5828 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5829 | if test -n "$OBJDUMP"; then | ||
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5831 | $as_echo "$OBJDUMP" >&6; } | ||
5832 | else | ||
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5834 | $as_echo "no" >&6; } | ||
5835 | fi | ||
5836 | |||
5837 | |||
5838 | fi | ||
5839 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5840 | ac_ct_OBJDUMP=$OBJDUMP | ||
5841 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5842 | set dummy objdump; ac_word=$2 | ||
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5844 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5845 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
5846 | $as_echo_n "(cached) " >&6 | ||
5847 | else | ||
5848 | if test -n "$ac_ct_OBJDUMP"; then | ||
5849 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5850 | else | ||
5851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5852 | for as_dir in $PATH | ||
5853 | do | ||
5854 | IFS=$as_save_IFS | ||
5855 | test -z "$as_dir" && as_dir=. | ||
5856 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5858 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5860 | break 2 | ||
5861 | fi | ||
5862 | done | ||
5863 | done | ||
5864 | IFS=$as_save_IFS | ||
5865 | |||
5866 | fi | ||
5867 | fi | ||
5868 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5869 | if test -n "$ac_ct_OBJDUMP"; then | ||
5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5871 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5872 | else | ||
5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5874 | $as_echo "no" >&6; } | ||
5875 | fi | ||
5876 | |||
5877 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5878 | OBJDUMP="false" | ||
5879 | else | ||
5880 | case $cross_compiling:$ac_tool_warned in | ||
5881 | yes:) | ||
5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5883 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5884 | ac_tool_warned=yes ;; | ||
5885 | esac | ||
5886 | OBJDUMP=$ac_ct_OBJDUMP | ||
5887 | fi | ||
5888 | else | ||
5889 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5890 | fi | ||
5891 | |||
5892 | ;; | ||
5893 | esac | ||
5894 | |||
5895 | test -z "$AS" && AS=as | ||
5896 | |||
5897 | |||
5898 | |||
5899 | |||
5900 | |||
5901 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
5902 | |||
5903 | |||
5904 | |||
5905 | |||
5906 | |||
5907 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5908 | |||
5909 | |||
5910 | |||
5911 | |||
5912 | |||
5913 | |||
5914 | |||
5915 | case `pwd` in | ||
5916 | *\ * | *\ *) | ||
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
5918 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
5919 | esac | ||
5920 | |||
5921 | |||
5922 | |||
5923 | macro_version='2.2.6b' | ||
5924 | macro_revision='1.3017' | ||
5925 | |||
5926 | |||
5927 | |||
5928 | |||
5929 | |||
5930 | |||
5931 | |||
5932 | |||
5933 | |||
5934 | |||
5935 | |||
5936 | |||
5937 | |||
5938 | ltmain="$ac_aux_dir/ltmain.sh" | ||
5939 | |||
5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
5941 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
5942 | if test "${ac_cv_path_SED+set}" = set; then : | ||
5943 | $as_echo_n "(cached) " >&6 | ||
5944 | else | ||
5945 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
5946 | for ac_i in 1 2 3 4 5 6 7; do | ||
5947 | ac_script="$ac_script$as_nl$ac_script" | ||
5948 | done | ||
5949 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
5950 | { ac_script=; unset ac_script;} | ||
5951 | if test -z "$SED"; then | ||
5952 | ac_path_SED_found=false | ||
5953 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5955 | for as_dir in $PATH | ||
5956 | do | ||
5957 | IFS=$as_save_IFS | ||
5958 | test -z "$as_dir" && as_dir=. | ||
5959 | for ac_prog in sed gsed; do | ||
5960 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5961 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
5962 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
5963 | # Check for GNU ac_path_SED and select it if it is found. | ||
5964 | # Check for GNU $ac_path_SED | ||
5965 | case `"$ac_path_SED" --version 2>&1` in | ||
5966 | *GNU*) | ||
5967 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
5968 | *) | ||
5969 | ac_count=0 | ||
5970 | $as_echo_n 0123456789 >"conftest.in" | ||
5971 | while : | ||
5972 | do | ||
5973 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5974 | mv "conftest.tmp" "conftest.in" | ||
5975 | cp "conftest.in" "conftest.nl" | ||
5976 | $as_echo '' >> "conftest.nl" | ||
5977 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5978 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5979 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5980 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
5981 | # Best one so far, save it but keep looking for a better one | ||
5982 | ac_cv_path_SED="$ac_path_SED" | ||
5983 | ac_path_SED_max=$ac_count | ||
5984 | fi | ||
5985 | # 10*(2^10) chars as input seems more than enough | ||
5986 | test $ac_count -gt 10 && break | ||
5987 | done | ||
5988 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5989 | esac | ||
5990 | |||
5991 | $ac_path_SED_found && break 3 | ||
5992 | done | ||
5993 | done | ||
5994 | done | ||
5995 | IFS=$as_save_IFS | ||
5996 | if test -z "$ac_cv_path_SED"; then | ||
5997 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
5998 | fi | ||
5999 | else | ||
6000 | ac_cv_path_SED=$SED | ||
6001 | fi | ||
6002 | |||
6003 | fi | ||
6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
6005 | $as_echo "$ac_cv_path_SED" >&6; } | ||
6006 | SED="$ac_cv_path_SED" | ||
6007 | rm -f conftest.sed | ||
6008 | |||
6009 | test -z "$SED" && SED=sed | ||
6010 | Xsed="$SED -e 1s/^X//" | ||
6011 | |||
6012 | |||
6013 | |||
6014 | |||
6015 | |||
6016 | |||
6017 | |||
6018 | |||
6019 | |||
6020 | |||
6021 | |||
6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
6023 | $as_echo_n "checking for fgrep... " >&6; } | ||
6024 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
6025 | $as_echo_n "(cached) " >&6 | ||
6026 | else | ||
6027 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
6028 | then ac_cv_path_FGREP="$GREP -F" | ||
6029 | else | ||
6030 | if test -z "$FGREP"; then | ||
6031 | ac_path_FGREP_found=false | ||
6032 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
6033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6034 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
6035 | do | ||
6036 | IFS=$as_save_IFS | ||
6037 | test -z "$as_dir" && as_dir=. | ||
6038 | for ac_prog in fgrep; do | ||
6039 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6040 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
6041 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
6042 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
6043 | # Check for GNU $ac_path_FGREP | ||
6044 | case `"$ac_path_FGREP" --version 2>&1` in | ||
6045 | *GNU*) | ||
6046 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
6047 | *) | ||
6048 | ac_count=0 | ||
6049 | $as_echo_n 0123456789 >"conftest.in" | ||
6050 | while : | ||
6051 | do | ||
6052 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
6053 | mv "conftest.tmp" "conftest.in" | ||
6054 | cp "conftest.in" "conftest.nl" | ||
6055 | $as_echo 'FGREP' >> "conftest.nl" | ||
6056 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
6057 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
6058 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
6059 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
6060 | # Best one so far, save it but keep looking for a better one | ||
6061 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
6062 | ac_path_FGREP_max=$ac_count | ||
6063 | fi | ||
6064 | # 10*(2^10) chars as input seems more than enough | ||
6065 | test $ac_count -gt 10 && break | ||
6066 | done | ||
6067 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
6068 | esac | ||
6069 | |||
6070 | $ac_path_FGREP_found && break 3 | ||
6071 | done | ||
6072 | done | ||
6073 | done | ||
6074 | IFS=$as_save_IFS | ||
6075 | if test -z "$ac_cv_path_FGREP"; then | ||
6076 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
6077 | fi | ||
6078 | else | ||
6079 | ac_cv_path_FGREP=$FGREP | ||
6080 | fi | ||
6081 | |||
6082 | fi | ||
6083 | fi | ||
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
6085 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
6086 | FGREP="$ac_cv_path_FGREP" | ||
6087 | |||
6088 | |||
6089 | test -z "$GREP" && GREP=grep | ||
6090 | |||
6091 | |||
6092 | |||
6093 | |||
6094 | |||
6095 | |||
6096 | |||
6097 | |||
6098 | |||
6099 | |||
6100 | |||
6101 | |||
6102 | |||
6103 | |||
6104 | |||
6105 | |||
6106 | |||
6107 | |||
6108 | |||
6109 | # Check whether --with-gnu-ld was given. | ||
6110 | if test "${with_gnu_ld+set}" = set; then : | ||
6111 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
6112 | else | ||
6113 | with_gnu_ld=no | ||
6114 | fi | ||
6115 | |||
6116 | ac_prog=ld | ||
6117 | if test "$GCC" = yes; then | ||
6118 | # Check if gcc -print-prog-name=ld gives a path. | ||
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
6120 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
6121 | case $host in | ||
6122 | *-*-mingw*) | ||
6123 | # gcc leaves a trailing carriage return which upsets mingw | ||
6124 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
6125 | *) | ||
6126 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
6127 | esac | ||
6128 | case $ac_prog in | ||
6129 | # Accept absolute paths. | ||
6130 | [\\/]* | ?:[\\/]*) | ||
6131 | re_direlt='/[^/][^/]*/\.\./' | ||
6132 | # Canonicalize the pathname of ld | ||
6133 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
6134 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
6135 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
6136 | done | ||
6137 | test -z "$LD" && LD="$ac_prog" | ||
6138 | ;; | ||
6139 | "") | ||
6140 | # If it fails, then pretend we aren't using GCC. | ||
6141 | ac_prog=ld | ||
6142 | ;; | ||
6143 | *) | ||
6144 | # If it is relative, then search for the first ld in PATH. | ||
6145 | with_gnu_ld=unknown | ||
6146 | ;; | ||
6147 | esac | ||
6148 | elif test "$with_gnu_ld" = yes; then | ||
6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
6150 | $as_echo_n "checking for GNU ld... " >&6; } | ||
6151 | else | ||
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
6153 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
6154 | fi | ||
6155 | if test "${lt_cv_path_LD+set}" = set; then : | ||
6156 | $as_echo_n "(cached) " >&6 | ||
6157 | else | ||
6158 | if test -z "$LD"; then | ||
6159 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6160 | for ac_dir in $PATH; do | ||
6161 | IFS="$lt_save_ifs" | ||
6162 | test -z "$ac_dir" && ac_dir=. | ||
6163 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
6164 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
6165 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
6166 | # but apparently some variants of GNU ld only accept -v. | ||
6167 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
6168 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
6169 | *GNU* | *'with BFD'*) | ||
6170 | test "$with_gnu_ld" != no && break | ||
6171 | ;; | ||
6172 | *) | ||
6173 | test "$with_gnu_ld" != yes && break | ||
6174 | ;; | ||
6175 | esac | ||
6176 | fi | ||
6177 | done | ||
6178 | IFS="$lt_save_ifs" | ||
6179 | else | ||
6180 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
6181 | fi | ||
6182 | fi | ||
6183 | |||
6184 | LD="$lt_cv_path_LD" | ||
6185 | if test -n "$LD"; then | ||
6186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
6187 | $as_echo "$LD" >&6; } | ||
6188 | else | ||
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6190 | $as_echo "no" >&6; } | ||
6191 | fi | ||
6192 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
6193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
6194 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
6195 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
6196 | $as_echo_n "(cached) " >&6 | ||
6197 | else | ||
6198 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
6199 | case `$LD -v 2>&1 </dev/null` in | ||
6200 | *GNU* | *'with BFD'*) | ||
6201 | lt_cv_prog_gnu_ld=yes | ||
6202 | ;; | ||
6203 | *) | ||
6204 | lt_cv_prog_gnu_ld=no | ||
6205 | ;; | ||
6206 | esac | ||
6207 | fi | ||
6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
6209 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
6210 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
6211 | |||
6212 | |||
6213 | |||
6214 | |||
6215 | |||
6216 | |||
6217 | |||
6218 | |||
6219 | |||
6220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
6221 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
6222 | if test "${lt_cv_path_NM+set}" = set; then : | ||
6223 | $as_echo_n "(cached) " >&6 | ||
6224 | else | ||
6225 | if test -n "$NM"; then | ||
6226 | # Let the user override the test. | ||
6227 | lt_cv_path_NM="$NM" | ||
6228 | else | ||
6229 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
6230 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
6231 | lt_nm_to_check="$lt_nm_to_check nm" | ||
6232 | fi | ||
6233 | for lt_tmp_nm in $lt_nm_to_check; do | ||
6234 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6235 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
6236 | IFS="$lt_save_ifs" | ||
6237 | test -z "$ac_dir" && ac_dir=. | ||
6238 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
6239 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
6240 | # Check to see if the nm accepts a BSD-compat flag. | ||
6241 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
6242 | # nm: unknown option "B" ignored | ||
6243 | # Tru64's nm complains that /dev/null is an invalid object file | ||
6244 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
6245 | */dev/null* | *'Invalid file or object type'*) | ||
6246 | lt_cv_path_NM="$tmp_nm -B" | ||
6247 | break | ||
6248 | ;; | ||
6249 | *) | ||
6250 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
6251 | */dev/null*) | ||
6252 | lt_cv_path_NM="$tmp_nm -p" | ||
6253 | break | ||
6254 | ;; | ||
6255 | *) | ||
6256 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
6257 | continue # so that we can try to find one that supports BSD flags | ||
6258 | ;; | ||
6259 | esac | ||
6260 | ;; | ||
6261 | esac | ||
6262 | fi | ||
6263 | done | ||
6264 | IFS="$lt_save_ifs" | ||
6265 | done | ||
6266 | : ${lt_cv_path_NM=no} | ||
6267 | fi | ||
6268 | fi | ||
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
6270 | $as_echo "$lt_cv_path_NM" >&6; } | ||
6271 | if test "$lt_cv_path_NM" != "no"; then | ||
6272 | NM="$lt_cv_path_NM" | ||
6273 | else | ||
6274 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
6275 | if test -n "$ac_tool_prefix"; then | ||
6276 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
6277 | do | ||
6278 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
6279 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6281 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6282 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
6283 | $as_echo_n "(cached) " >&6 | ||
6284 | else | ||
6285 | if test -n "$DUMPBIN"; then | ||
6286 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
6287 | else | ||
6288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6289 | for as_dir in $PATH | ||
6290 | do | ||
6291 | IFS=$as_save_IFS | ||
6292 | test -z "$as_dir" && as_dir=. | ||
6293 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6294 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6295 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
6296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6297 | break 2 | ||
6298 | fi | ||
6299 | done | ||
6300 | done | ||
6301 | IFS=$as_save_IFS | ||
6302 | |||
6303 | fi | ||
6304 | fi | ||
6305 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
6306 | if test -n "$DUMPBIN"; then | ||
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
6308 | $as_echo "$DUMPBIN" >&6; } | ||
6309 | else | ||
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6311 | $as_echo "no" >&6; } | ||
6312 | fi | ||
6313 | |||
6314 | |||
6315 | test -n "$DUMPBIN" && break | ||
6316 | done | ||
6317 | fi | ||
6318 | if test -z "$DUMPBIN"; then | ||
6319 | ac_ct_DUMPBIN=$DUMPBIN | ||
6320 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
6321 | do | ||
6322 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
6323 | set dummy $ac_prog; ac_word=$2 | ||
6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6325 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6326 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
6327 | $as_echo_n "(cached) " >&6 | ||
6328 | else | ||
6329 | if test -n "$ac_ct_DUMPBIN"; then | ||
6330 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
6331 | else | ||
6332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6333 | for as_dir in $PATH | ||
6334 | do | ||
6335 | IFS=$as_save_IFS | ||
6336 | test -z "$as_dir" && as_dir=. | ||
6337 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6339 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
6340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6341 | break 2 | ||
6342 | fi | ||
6343 | done | ||
6344 | done | ||
6345 | IFS=$as_save_IFS | ||
6346 | |||
6347 | fi | ||
6348 | fi | ||
6349 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
6350 | if test -n "$ac_ct_DUMPBIN"; then | ||
6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
6352 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
6353 | else | ||
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6355 | $as_echo "no" >&6; } | ||
6356 | fi | ||
6357 | |||
6358 | |||
6359 | test -n "$ac_ct_DUMPBIN" && break | ||
6360 | done | ||
6361 | |||
6362 | if test "x$ac_ct_DUMPBIN" = x; then | ||
6363 | DUMPBIN=":" | ||
6364 | else | ||
6365 | case $cross_compiling:$ac_tool_warned in | ||
6366 | yes:) | ||
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6368 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6369 | ac_tool_warned=yes ;; | ||
6370 | esac | ||
6371 | DUMPBIN=$ac_ct_DUMPBIN | ||
6372 | fi | ||
6373 | fi | ||
6374 | |||
6375 | |||
6376 | if test "$DUMPBIN" != ":"; then | ||
6377 | NM="$DUMPBIN" | ||
6378 | fi | ||
6379 | fi | ||
6380 | test -z "$NM" && NM=nm | ||
6381 | |||
6382 | |||
6383 | |||
6384 | |||
6385 | |||
6386 | |||
6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
6388 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
6389 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
6390 | $as_echo_n "(cached) " >&6 | ||
6391 | else | ||
6392 | lt_cv_nm_interface="BSD nm" | ||
6393 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
6394 | (eval echo "\"\$as_me:6394: $ac_compile\"" >&5) | ||
6395 | (eval "$ac_compile" 2>conftest.err) | ||
6396 | cat conftest.err >&5 | ||
6397 | (eval echo "\"\$as_me:6397: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
6398 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
6399 | cat conftest.err >&5 | ||
6400 | (eval echo "\"\$as_me:6400: output\"" >&5) | ||
6401 | cat conftest.out >&5 | ||
6402 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
6403 | lt_cv_nm_interface="MS dumpbin" | ||
6404 | fi | ||
6405 | rm -f conftest* | ||
6406 | fi | ||
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
6408 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
6409 | |||
6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
6411 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
6412 | LN_S=$as_ln_s | ||
6413 | if test "$LN_S" = "ln -s"; then | ||
6414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6415 | $as_echo "yes" >&6; } | ||
6416 | else | ||
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
6418 | $as_echo "no, using $LN_S" >&6; } | ||
6419 | fi | ||
6420 | |||
6421 | # find the maximum length of command line arguments | ||
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
6423 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
6424 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
6425 | $as_echo_n "(cached) " >&6 | ||
6426 | else | ||
6427 | i=0 | ||
6428 | teststring="ABCD" | ||
6429 | |||
6430 | case $build_os in | ||
6431 | msdosdjgpp*) | ||
6432 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
6433 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
6434 | # during glob expansion). Even if it were fixed, the result of this | ||
6435 | # check would be larger than it should be. | ||
6436 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
6437 | ;; | ||
6438 | |||
6439 | gnu*) | ||
6440 | # Under GNU Hurd, this test is not required because there is | ||
6441 | # no limit to the length of command line arguments. | ||
6442 | # Libtool will interpret -1 as no limit whatsoever | ||
6443 | lt_cv_sys_max_cmd_len=-1; | ||
6444 | ;; | ||
6445 | |||
6446 | cygwin* | mingw* | cegcc*) | ||
6447 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
6448 | # about 5 minutes as the teststring grows exponentially. | ||
6449 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
6450 | # you end up with a "frozen" computer, even though with patience | ||
6451 | # the test eventually succeeds (with a max line length of 256k). | ||
6452 | # Instead, let's just punt: use the minimum linelength reported by | ||
6453 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
6454 | lt_cv_sys_max_cmd_len=8192; | ||
6455 | ;; | ||
6456 | |||
6457 | amigaos*) | ||
6458 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
6459 | # So we just punt and use a minimum line length of 8192. | ||
6460 | lt_cv_sys_max_cmd_len=8192; | ||
6461 | ;; | ||
6462 | |||
6463 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
6464 | # This has been around since 386BSD, at least. Likely further. | ||
6465 | if test -x /sbin/sysctl; then | ||
6466 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
6467 | elif test -x /usr/sbin/sysctl; then | ||
6468 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
6469 | else | ||
6470 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
6471 | fi | ||
6472 | # And add a safety zone | ||
6473 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6474 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6475 | ;; | ||
6476 | |||
6477 | interix*) | ||
6478 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
6479 | lt_cv_sys_max_cmd_len=196608 | ||
6480 | ;; | ||
6481 | |||
6482 | osf*) | ||
6483 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
6484 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
6485 | # nice to cause kernel panics so lets avoid the loop below. | ||
6486 | # First set a reasonable default. | ||
6487 | lt_cv_sys_max_cmd_len=16384 | ||
6488 | # | ||
6489 | if test -x /sbin/sysconfig; then | ||
6490 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
6491 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
6492 | esac | ||
6493 | fi | ||
6494 | ;; | ||
6495 | sco3.2v5*) | ||
6496 | lt_cv_sys_max_cmd_len=102400 | ||
6497 | ;; | ||
6498 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
6499 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
6500 | if test -n "$kargmax"; then | ||
6501 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
6502 | else | ||
6503 | lt_cv_sys_max_cmd_len=32768 | ||
6504 | fi | ||
6505 | ;; | ||
6506 | *) | ||
6507 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
6508 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
6509 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6510 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6511 | else | ||
6512 | # Make teststring a little bigger before we do anything with it. | ||
6513 | # a 1K string should be a reasonable start. | ||
6514 | for i in 1 2 3 4 5 6 7 8 ; do | ||
6515 | teststring=$teststring$teststring | ||
6516 | done | ||
6517 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
6518 | # If test is not a shell built-in, we'll probably end up computing a | ||
6519 | # maximum length that is only half of the actual maximum length, but | ||
6520 | # we can't tell. | ||
6521 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
6522 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
6523 | test $i != 17 # 1/2 MB should be enough | ||
6524 | do | ||
6525 | i=`expr $i + 1` | ||
6526 | teststring=$teststring$teststring | ||
6527 | done | ||
6528 | # Only check the string length outside the loop. | ||
6529 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
6530 | teststring= | ||
6531 | # Add a significant safety factor because C++ compilers can tack on | ||
6532 | # massive amounts of additional arguments before passing them to the | ||
6533 | # linker. It appears as though 1/2 is a usable value. | ||
6534 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
6535 | fi | ||
6536 | ;; | ||
6537 | esac | ||
6538 | |||
6539 | fi | ||
6540 | |||
6541 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
6543 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
6544 | else | ||
6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
6546 | $as_echo "none" >&6; } | ||
6547 | fi | ||
6548 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
6549 | |||
6550 | |||
6551 | |||
6552 | |||
6553 | |||
6554 | |||
6555 | : ${CP="cp -f"} | ||
6556 | : ${MV="mv -f"} | ||
6557 | : ${RM="rm -f"} | ||
6558 | |||
6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
6560 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
6561 | # Try some XSI features | ||
6562 | xsi_shell=no | ||
6563 | ( _lt_dummy="a/b/c" | ||
6564 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
6565 | = c,a/b,, \ | ||
6566 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
6567 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
6568 | && xsi_shell=yes | ||
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
6570 | $as_echo "$xsi_shell" >&6; } | ||
6571 | |||
6572 | |||
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
6574 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
6575 | lt_shell_append=no | ||
6576 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
6577 | >/dev/null 2>&1 \ | ||
6578 | && lt_shell_append=yes | ||
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
6580 | $as_echo "$lt_shell_append" >&6; } | ||
6581 | |||
6582 | |||
6583 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
6584 | lt_unset=unset | ||
6585 | else | ||
6586 | lt_unset=false | ||
6587 | fi | ||
6588 | |||
6589 | |||
6590 | |||
6591 | |||
6592 | |||
6593 | # test EBCDIC or ASCII | ||
6594 | case `echo X|tr X '\101'` in | ||
6595 | A) # ASCII based system | ||
6596 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
6597 | lt_SP2NL='tr \040 \012' | ||
6598 | lt_NL2SP='tr \015\012 \040\040' | ||
6599 | ;; | ||
6600 | *) # EBCDIC based system | ||
6601 | lt_SP2NL='tr \100 \n' | ||
6602 | lt_NL2SP='tr \r\n \100\100' | ||
6603 | ;; | ||
6604 | esac | ||
6605 | |||
6606 | |||
6607 | |||
6608 | |||
6609 | |||
6610 | |||
6611 | |||
6612 | |||
6613 | |||
6614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
6615 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
6616 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
6617 | $as_echo_n "(cached) " >&6 | ||
6618 | else | ||
6619 | lt_cv_ld_reload_flag='-r' | ||
6620 | fi | ||
6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
6622 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
6623 | reload_flag=$lt_cv_ld_reload_flag | ||
6624 | case $reload_flag in | ||
6625 | "" | " "*) ;; | ||
6626 | *) reload_flag=" $reload_flag" ;; | ||
6627 | esac | ||
6628 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6629 | case $host_os in | ||
6630 | darwin*) | ||
6631 | if test "$GCC" = yes; then | ||
6632 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
6633 | else | ||
6634 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6635 | fi | ||
6636 | ;; | ||
6637 | esac | ||
6638 | |||
6639 | |||
6640 | |||
6641 | |||
6642 | |||
6643 | |||
6644 | |||
6645 | |||
6646 | |||
6647 | if test -n "$ac_tool_prefix"; then | ||
6648 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
6649 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6651 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6652 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
6653 | $as_echo_n "(cached) " >&6 | ||
6654 | else | ||
6655 | if test -n "$OBJDUMP"; then | ||
6656 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
6657 | else | ||
6658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6659 | for as_dir in $PATH | ||
6660 | do | ||
6661 | IFS=$as_save_IFS | ||
6662 | test -z "$as_dir" && as_dir=. | ||
6663 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6665 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
6666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6667 | break 2 | ||
6668 | fi | ||
6669 | done | ||
6670 | done | ||
6671 | IFS=$as_save_IFS | ||
6672 | |||
6673 | fi | ||
6674 | fi | ||
6675 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
6676 | if test -n "$OBJDUMP"; then | ||
6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
6678 | $as_echo "$OBJDUMP" >&6; } | ||
6679 | else | ||
6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6681 | $as_echo "no" >&6; } | ||
6682 | fi | ||
6683 | |||
6684 | |||
6685 | fi | ||
6686 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
6687 | ac_ct_OBJDUMP=$OBJDUMP | ||
6688 | # Extract the first word of "objdump", so it can be a program name with args. | ||
6689 | set dummy objdump; ac_word=$2 | ||
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6691 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6692 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
6693 | $as_echo_n "(cached) " >&6 | ||
6694 | else | ||
6695 | if test -n "$ac_ct_OBJDUMP"; then | ||
6696 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
6697 | else | ||
6698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6699 | for as_dir in $PATH | ||
6700 | do | ||
6701 | IFS=$as_save_IFS | ||
6702 | test -z "$as_dir" && as_dir=. | ||
6703 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6705 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
6706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6707 | break 2 | ||
6708 | fi | ||
6709 | done | ||
6710 | done | ||
6711 | IFS=$as_save_IFS | ||
6712 | |||
6713 | fi | ||
6714 | fi | ||
6715 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
6716 | if test -n "$ac_ct_OBJDUMP"; then | ||
6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
6718 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
6719 | else | ||
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6721 | $as_echo "no" >&6; } | ||
6722 | fi | ||
6723 | |||
6724 | if test "x$ac_ct_OBJDUMP" = x; then | ||
6725 | OBJDUMP="false" | ||
6726 | else | ||
6727 | case $cross_compiling:$ac_tool_warned in | ||
6728 | yes:) | ||
6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6730 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6731 | ac_tool_warned=yes ;; | ||
6732 | esac | ||
6733 | OBJDUMP=$ac_ct_OBJDUMP | ||
6734 | fi | ||
6735 | else | ||
6736 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
6737 | fi | ||
6738 | |||
6739 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
6740 | |||
6741 | |||
6742 | |||
6743 | |||
6744 | |||
6745 | |||
6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
6747 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
6748 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
6749 | $as_echo_n "(cached) " >&6 | ||
6750 | else | ||
6751 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
6752 | lt_cv_file_magic_test_file= | ||
6753 | lt_cv_deplibs_check_method='unknown' | ||
6754 | # Need to set the preceding variable on all platforms that support | ||
6755 | # interlibrary dependencies. | ||
6756 | # 'none' -- dependencies not supported. | ||
6757 | # `unknown' -- same as none, but documents that we really don't know. | ||
6758 | # 'pass_all' -- all dependencies passed with no checks. | ||
6759 | # 'test_compile' -- check by making test program. | ||
6760 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
6761 | # which responds to the $file_magic_cmd with a given extended regex. | ||
6762 | # If you have `file' or equivalent on your system and you're not sure | ||
6763 | # whether `pass_all' will *always* work, you probably want this one. | ||
6764 | |||
6765 | case $host_os in | ||
6766 | aix[4-9]*) | ||
6767 | lt_cv_deplibs_check_method=pass_all | ||
6768 | ;; | ||
6769 | |||
6770 | beos*) | ||
6771 | lt_cv_deplibs_check_method=pass_all | ||
6772 | ;; | ||
6773 | |||
6774 | bsdi[45]*) | ||
6775 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
6776 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
6777 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
6778 | ;; | ||
6779 | |||
6780 | cygwin*) | ||
6781 | # func_win32_libid is a shell function defined in ltmain.sh | ||
6782 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6783 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6784 | ;; | ||
6785 | |||
6786 | mingw* | pw32*) | ||
6787 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
6788 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
6789 | # unless we find 'file', for example because we are cross-compiling. | ||
6790 | if ( file / ) >/dev/null 2>&1; then | ||
6791 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6792 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6793 | else | ||
6794 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
6795 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6796 | fi | ||
6797 | ;; | ||
6798 | |||
6799 | cegcc) | ||
6800 | # use the weaker test based on 'objdump'. See mingw*. | ||
6801 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
6802 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6803 | ;; | ||
6804 | |||
6805 | darwin* | rhapsody*) | ||
6806 | lt_cv_deplibs_check_method=pass_all | ||
6807 | ;; | ||
6808 | |||
6809 | freebsd* | dragonfly*) | ||
6810 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6811 | case $host_cpu in | ||
6812 | i*86 ) | ||
6813 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
6814 | # Let's accept both of them until this is cleared up. | ||
6815 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
6816 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6817 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
6818 | ;; | ||
6819 | esac | ||
6820 | else | ||
6821 | lt_cv_deplibs_check_method=pass_all | ||
6822 | fi | ||
6823 | ;; | ||
6824 | |||
6825 | gnu*) | ||
6826 | lt_cv_deplibs_check_method=pass_all | ||
6827 | ;; | ||
6828 | |||
6829 | hpux10.20* | hpux11*) | ||
6830 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6831 | case $host_cpu in | ||
6832 | ia64*) | ||
6833 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
6834 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
6835 | ;; | ||
6836 | hppa*64*) | ||
6837 | 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]' | ||
6838 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
6839 | ;; | ||
6840 | *) | ||
6841 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
6842 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
6843 | ;; | ||
6844 | esac | ||
6845 | ;; | ||
6846 | |||
6847 | interix[3-9]*) | ||
6848 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
6849 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
6850 | ;; | ||
6851 | |||
6852 | irix5* | irix6* | nonstopux*) | ||
6853 | case $LD in | ||
6854 | *-32|*"-32 ") libmagic=32-bit;; | ||
6855 | *-n32|*"-n32 ") libmagic=N32;; | ||
6856 | *-64|*"-64 ") libmagic=64-bit;; | ||
6857 | *) libmagic=never-match;; | ||
6858 | esac | ||
6859 | lt_cv_deplibs_check_method=pass_all | ||
6860 | ;; | ||
6861 | |||
6862 | # This must be Linux ELF. | ||
6863 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
6864 | lt_cv_deplibs_check_method=pass_all | ||
6865 | ;; | ||
6866 | |||
6867 | netbsd* | netbsdelf*-gnu) | ||
6868 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6869 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6870 | else | ||
6871 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
6872 | fi | ||
6873 | ;; | ||
6874 | |||
6875 | newos6*) | ||
6876 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
6877 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6878 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
6879 | ;; | ||
6880 | |||
6881 | *nto* | *qnx*) | ||
6882 | lt_cv_deplibs_check_method=pass_all | ||
6883 | ;; | ||
6884 | |||
6885 | openbsd*) | ||
6886 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
6887 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
6888 | else | ||
6889 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6890 | fi | ||
6891 | ;; | ||
6892 | |||
6893 | osf3* | osf4* | osf5*) | ||
6894 | lt_cv_deplibs_check_method=pass_all | ||
6895 | ;; | ||
6896 | |||
6897 | rdos*) | ||
6898 | lt_cv_deplibs_check_method=pass_all | ||
6899 | ;; | ||
6900 | |||
6901 | solaris*) | ||
6902 | lt_cv_deplibs_check_method=pass_all | ||
6903 | ;; | ||
6904 | |||
6905 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
6906 | lt_cv_deplibs_check_method=pass_all | ||
6907 | ;; | ||
6908 | |||
6909 | sysv4 | sysv4.3*) | ||
6910 | case $host_vendor in | ||
6911 | motorola) | ||
6912 | 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]' | ||
6913 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
6914 | ;; | ||
6915 | ncr) | ||
6916 | lt_cv_deplibs_check_method=pass_all | ||
6917 | ;; | ||
6918 | sequent) | ||
6919 | lt_cv_file_magic_cmd='/bin/file' | ||
6920 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
6921 | ;; | ||
6922 | sni) | ||
6923 | lt_cv_file_magic_cmd='/bin/file' | ||
6924 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
6925 | lt_cv_file_magic_test_file=/lib/libc.so | ||
6926 | ;; | ||
6927 | siemens) | ||
6928 | lt_cv_deplibs_check_method=pass_all | ||
6929 | ;; | ||
6930 | pc) | ||
6931 | lt_cv_deplibs_check_method=pass_all | ||
6932 | ;; | ||
6933 | esac | ||
6934 | ;; | ||
6935 | |||
6936 | tpf*) | ||
6937 | lt_cv_deplibs_check_method=pass_all | ||
6938 | ;; | ||
6939 | esac | ||
6940 | |||
6941 | fi | ||
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
6943 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
6944 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
6945 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
6946 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6947 | |||
6948 | |||
6949 | |||
6950 | |||
6951 | |||
6952 | |||
6953 | |||
6954 | |||
6955 | |||
6956 | |||
6957 | |||
6958 | |||
6959 | if test -n "$ac_tool_prefix"; then | ||
6960 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6961 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6963 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6964 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
6965 | $as_echo_n "(cached) " >&6 | ||
6966 | else | ||
6967 | if test -n "$AR"; then | ||
6968 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
6969 | else | ||
6970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6971 | for as_dir in $PATH | ||
6972 | do | ||
6973 | IFS=$as_save_IFS | ||
6974 | test -z "$as_dir" && as_dir=. | ||
6975 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6977 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
6978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6979 | break 2 | ||
6980 | fi | ||
6981 | done | ||
6982 | done | ||
6983 | IFS=$as_save_IFS | ||
6984 | |||
6985 | fi | ||
6986 | fi | ||
6987 | AR=$ac_cv_prog_AR | ||
6988 | if test -n "$AR"; then | ||
6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
6990 | $as_echo "$AR" >&6; } | ||
6991 | else | ||
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6993 | $as_echo "no" >&6; } | ||
6994 | fi | ||
6995 | |||
6996 | |||
6997 | fi | ||
6998 | if test -z "$ac_cv_prog_AR"; then | ||
6999 | ac_ct_AR=$AR | ||
7000 | # Extract the first word of "ar", so it can be a program name with args. | ||
7001 | set dummy ar; ac_word=$2 | ||
7002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7003 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7004 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
7005 | $as_echo_n "(cached) " >&6 | ||
7006 | else | ||
7007 | if test -n "$ac_ct_AR"; then | ||
7008 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
7009 | else | ||
7010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7011 | for as_dir in $PATH | ||
7012 | do | ||
7013 | IFS=$as_save_IFS | ||
7014 | test -z "$as_dir" && as_dir=. | ||
7015 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7017 | ac_cv_prog_ac_ct_AR="ar" | ||
7018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7019 | break 2 | ||
7020 | fi | ||
7021 | done | ||
7022 | done | ||
7023 | IFS=$as_save_IFS | ||
7024 | |||
7025 | fi | ||
7026 | fi | ||
7027 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
7028 | if test -n "$ac_ct_AR"; then | ||
7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
7030 | $as_echo "$ac_ct_AR" >&6; } | ||
7031 | else | ||
7032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7033 | $as_echo "no" >&6; } | ||
7034 | fi | ||
7035 | |||
7036 | if test "x$ac_ct_AR" = x; then | ||
7037 | AR="false" | ||
7038 | else | ||
7039 | case $cross_compiling:$ac_tool_warned in | ||
7040 | yes:) | ||
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7042 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7043 | ac_tool_warned=yes ;; | ||
7044 | esac | ||
7045 | AR=$ac_ct_AR | ||
7046 | fi | ||
7047 | else | ||
7048 | AR="$ac_cv_prog_AR" | ||
7049 | fi | ||
7050 | |||
7051 | test -z "$AR" && AR=ar | ||
7052 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
7053 | |||
7054 | |||
7055 | |||
7056 | |||
7057 | |||
7058 | |||
7059 | |||
7060 | |||
7061 | |||
7062 | |||
7063 | |||
7064 | if test -n "$ac_tool_prefix"; then | ||
7065 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
7066 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7068 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7069 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
7070 | $as_echo_n "(cached) " >&6 | ||
7071 | else | ||
7072 | if test -n "$STRIP"; then | ||
7073 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
7074 | else | ||
7075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7076 | for as_dir in $PATH | ||
7077 | do | ||
7078 | IFS=$as_save_IFS | ||
7079 | test -z "$as_dir" && as_dir=. | ||
7080 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7082 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
7083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7084 | break 2 | ||
7085 | fi | ||
7086 | done | ||
7087 | done | ||
7088 | IFS=$as_save_IFS | ||
7089 | |||
7090 | fi | ||
7091 | fi | ||
7092 | STRIP=$ac_cv_prog_STRIP | ||
7093 | if test -n "$STRIP"; then | ||
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
7095 | $as_echo "$STRIP" >&6; } | ||
7096 | else | ||
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7098 | $as_echo "no" >&6; } | ||
7099 | fi | ||
7100 | |||
7101 | |||
7102 | fi | ||
7103 | if test -z "$ac_cv_prog_STRIP"; then | ||
7104 | ac_ct_STRIP=$STRIP | ||
7105 | # Extract the first word of "strip", so it can be a program name with args. | ||
7106 | set dummy strip; ac_word=$2 | ||
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7108 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7109 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
7110 | $as_echo_n "(cached) " >&6 | ||
7111 | else | ||
7112 | if test -n "$ac_ct_STRIP"; then | ||
7113 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
7114 | else | ||
7115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7116 | for as_dir in $PATH | ||
7117 | do | ||
7118 | IFS=$as_save_IFS | ||
7119 | test -z "$as_dir" && as_dir=. | ||
7120 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7122 | ac_cv_prog_ac_ct_STRIP="strip" | ||
7123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7124 | break 2 | ||
7125 | fi | ||
7126 | done | ||
7127 | done | ||
7128 | IFS=$as_save_IFS | ||
7129 | |||
7130 | fi | ||
7131 | fi | ||
7132 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
7133 | if test -n "$ac_ct_STRIP"; then | ||
7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
7135 | $as_echo "$ac_ct_STRIP" >&6; } | ||
7136 | else | ||
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7138 | $as_echo "no" >&6; } | ||
7139 | fi | ||
7140 | |||
7141 | if test "x$ac_ct_STRIP" = x; then | ||
7142 | STRIP=":" | ||
7143 | else | ||
7144 | case $cross_compiling:$ac_tool_warned in | ||
7145 | yes:) | ||
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7147 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7148 | ac_tool_warned=yes ;; | ||
7149 | esac | ||
7150 | STRIP=$ac_ct_STRIP | ||
7151 | fi | ||
7152 | else | ||
7153 | STRIP="$ac_cv_prog_STRIP" | ||
7154 | fi | ||
7155 | |||
7156 | test -z "$STRIP" && STRIP=: | ||
7157 | |||
7158 | |||
7159 | |||
7160 | |||
7161 | |||
7162 | |||
7163 | if test -n "$ac_tool_prefix"; then | ||
7164 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
7165 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7167 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7168 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
7169 | $as_echo_n "(cached) " >&6 | ||
7170 | else | ||
7171 | if test -n "$RANLIB"; then | ||
7172 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
7173 | else | ||
7174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7175 | for as_dir in $PATH | ||
7176 | do | ||
7177 | IFS=$as_save_IFS | ||
7178 | test -z "$as_dir" && as_dir=. | ||
7179 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7181 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
7182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7183 | break 2 | ||
7184 | fi | ||
7185 | done | ||
7186 | done | ||
7187 | IFS=$as_save_IFS | ||
7188 | |||
7189 | fi | ||
7190 | fi | ||
7191 | RANLIB=$ac_cv_prog_RANLIB | ||
7192 | if test -n "$RANLIB"; then | ||
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
7194 | $as_echo "$RANLIB" >&6; } | ||
7195 | else | ||
7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7197 | $as_echo "no" >&6; } | ||
7198 | fi | ||
7199 | |||
7200 | |||
7201 | fi | ||
7202 | if test -z "$ac_cv_prog_RANLIB"; then | ||
7203 | ac_ct_RANLIB=$RANLIB | ||
7204 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
7205 | set dummy ranlib; ac_word=$2 | ||
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7207 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7208 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
7209 | $as_echo_n "(cached) " >&6 | ||
7210 | else | ||
7211 | if test -n "$ac_ct_RANLIB"; then | ||
7212 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
7213 | else | ||
7214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7215 | for as_dir in $PATH | ||
7216 | do | ||
7217 | IFS=$as_save_IFS | ||
7218 | test -z "$as_dir" && as_dir=. | ||
7219 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7221 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
7222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7223 | break 2 | ||
7224 | fi | ||
7225 | done | ||
7226 | done | ||
7227 | IFS=$as_save_IFS | ||
7228 | |||
7229 | fi | ||
7230 | fi | ||
7231 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
7232 | if test -n "$ac_ct_RANLIB"; then | ||
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
7234 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
7235 | else | ||
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7237 | $as_echo "no" >&6; } | ||
7238 | fi | ||
7239 | |||
7240 | if test "x$ac_ct_RANLIB" = x; then | ||
7241 | RANLIB=":" | ||
7242 | else | ||
7243 | case $cross_compiling:$ac_tool_warned in | ||
7244 | yes:) | ||
7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7246 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7247 | ac_tool_warned=yes ;; | ||
7248 | esac | ||
7249 | RANLIB=$ac_ct_RANLIB | ||
7250 | fi | ||
7251 | else | ||
7252 | RANLIB="$ac_cv_prog_RANLIB" | ||
7253 | fi | ||
7254 | |||
7255 | test -z "$RANLIB" && RANLIB=: | ||
7256 | |||
7257 | |||
7258 | |||
7259 | |||
7260 | |||
7261 | |||
7262 | # Determine commands to create old-style static archives. | ||
7263 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
7264 | old_postinstall_cmds='chmod 644 $oldlib' | ||
7265 | old_postuninstall_cmds= | ||
7266 | |||
7267 | if test -n "$RANLIB"; then | ||
7268 | case $host_os in | ||
7269 | openbsd*) | ||
7270 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
7271 | ;; | ||
7272 | *) | ||
7273 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
7274 | ;; | ||
7275 | esac | ||
7276 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
7277 | fi | ||
7278 | |||
7279 | |||
7280 | |||
7281 | |||
7282 | |||
7283 | |||
7284 | |||
7285 | |||
7286 | |||
7287 | |||
7288 | |||
7289 | |||
7290 | |||
7291 | |||
7292 | |||
7293 | |||
7294 | |||
7295 | |||
7296 | |||
7297 | |||
7298 | |||
7299 | |||
7300 | |||
7301 | |||
7302 | |||
7303 | |||
7304 | |||
7305 | |||
7306 | |||
7307 | |||
7308 | |||
7309 | |||
7310 | |||
7311 | |||
7312 | # If no C compiler was specified, use CC. | ||
7313 | LTCC=${LTCC-"$CC"} | ||
7314 | |||
7315 | # If no C compiler flags were specified, use CFLAGS. | ||
7316 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7317 | |||
7318 | # Allow CC to be a program name with arguments. | ||
7319 | compiler=$CC | ||
7320 | |||
7321 | |||
7322 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
7324 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
7325 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
7326 | $as_echo_n "(cached) " >&6 | ||
7327 | else | ||
7328 | |||
7329 | # These are sane defaults that work on at least a few old systems. | ||
7330 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
7331 | |||
7332 | # Character class describing NM global symbol codes. | ||
7333 | symcode='[BCDEGRST]' | ||
7334 | |||
7335 | # Regexp to match symbols that can be accessed directly from C. | ||
7336 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
7337 | |||
7338 | # Define system-specific variables. | ||
7339 | case $host_os in | ||
7340 | aix*) | ||
7341 | symcode='[BCDT]' | ||
7342 | ;; | ||
7343 | cygwin* | mingw* | pw32* | cegcc*) | ||
7344 | symcode='[ABCDGISTW]' | ||
7345 | ;; | ||
7346 | hpux*) | ||
7347 | if test "$host_cpu" = ia64; then | ||
7348 | symcode='[ABCDEGRST]' | ||
7349 | fi | ||
7350 | ;; | ||
7351 | irix* | nonstopux*) | ||
7352 | symcode='[BCDEGRST]' | ||
7353 | ;; | ||
7354 | osf*) | ||
7355 | symcode='[BCDEGQRST]' | ||
7356 | ;; | ||
7357 | solaris*) | ||
7358 | symcode='[BDRT]' | ||
7359 | ;; | ||
7360 | sco3.2v5*) | ||
7361 | symcode='[DT]' | ||
7362 | ;; | ||
7363 | sysv4.2uw2*) | ||
7364 | symcode='[DT]' | ||
7365 | ;; | ||
7366 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
7367 | symcode='[ABDT]' | ||
7368 | ;; | ||
7369 | sysv4) | ||
7370 | symcode='[DFNSTU]' | ||
7371 | ;; | ||
7372 | esac | ||
7373 | |||
7374 | # If we're using GNU nm, then use its standard symbol codes. | ||
7375 | case `$NM -V 2>&1` in | ||
7376 | *GNU* | *'with BFD'*) | ||
7377 | symcode='[ABCDGIRSTW]' ;; | ||
7378 | esac | ||
7379 | |||
7380 | # Transform an extracted symbol line into a proper C declaration. | ||
7381 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
7382 | # so use this general approach. | ||
7383 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
7384 | |||
7385 | # Transform an extracted symbol line into symbol name and symbol address | ||
7386 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
7387 | 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'" | ||
7388 | |||
7389 | # Handle CRLF in mingw tool chain | ||
7390 | opt_cr= | ||
7391 | case $build_os in | ||
7392 | mingw*) | ||
7393 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
7394 | ;; | ||
7395 | esac | ||
7396 | |||
7397 | # Try without a prefix underscore, then with it. | ||
7398 | for ac_symprfx in "" "_"; do | ||
7399 | |||
7400 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
7401 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
7402 | |||
7403 | # Write the raw and C identifiers. | ||
7404 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
7405 | # Fake it for dumpbin and say T for any non-static function | ||
7406 | # and D for any global variable. | ||
7407 | # Also find C++ and __fastcall symbols from MSVC++, | ||
7408 | # which start with @ or ?. | ||
7409 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
7410 | " {last_section=section; section=\$ 3};"\ | ||
7411 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
7412 | " \$ 0!~/External *\|/{next};"\ | ||
7413 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
7414 | " {if(hide[section]) next};"\ | ||
7415 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
7416 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
7417 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
7418 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
7419 | " ' prfx=^$ac_symprfx" | ||
7420 | else | ||
7421 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
7422 | fi | ||
7423 | |||
7424 | # Check to see that the pipe works correctly. | ||
7425 | pipe_works=no | ||
7426 | |||
7427 | rm -f conftest* | ||
7428 | cat > conftest.$ac_ext <<_LT_EOF | ||
7429 | #ifdef __cplusplus | ||
7430 | extern "C" { | ||
7431 | #endif | ||
7432 | char nm_test_var; | ||
7433 | void nm_test_func(void); | ||
7434 | void nm_test_func(void){} | ||
7435 | #ifdef __cplusplus | ||
7436 | } | ||
7437 | #endif | ||
7438 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
7439 | _LT_EOF | ||
7440 | |||
7441 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7442 | (eval $ac_compile) 2>&5 | ||
7443 | ac_status=$? | ||
7444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7445 | test $ac_status = 0; }; then | ||
7446 | # Now try to grab the symbols. | ||
7447 | nlist=conftest.nm | ||
7448 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
7449 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
7450 | ac_status=$? | ||
7451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7452 | test $ac_status = 0; } && test -s "$nlist"; then | ||
7453 | # Try sorting and uniquifying the output. | ||
7454 | if sort "$nlist" | uniq > "$nlist"T; then | ||
7455 | mv -f "$nlist"T "$nlist" | ||
7456 | else | ||
7457 | rm -f "$nlist"T | ||
7458 | fi | ||
7459 | |||
7460 | # Make sure that we snagged all the symbols we need. | ||
7461 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
7462 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
7463 | cat <<_LT_EOF > conftest.$ac_ext | ||
7464 | #ifdef __cplusplus | ||
7465 | extern "C" { | ||
7466 | #endif | ||
7467 | |||
7468 | _LT_EOF | ||
7469 | # Now generate the symbol file. | ||
7470 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
7471 | |||
7472 | cat <<_LT_EOF >> conftest.$ac_ext | ||
7473 | |||
7474 | /* The mapping between symbol names and symbols. */ | ||
7475 | const struct { | ||
7476 | const char *name; | ||
7477 | void *address; | ||
7478 | } | ||
7479 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
7480 | { | ||
7481 | { "@PROGRAM@", (void *) 0 }, | ||
7482 | _LT_EOF | ||
7483 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
7484 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
7485 | {0, (void *) 0} | ||
7486 | }; | ||
7487 | |||
7488 | /* This works around a problem in FreeBSD linker */ | ||
7489 | #ifdef FREEBSD_WORKAROUND | ||
7490 | static const void *lt_preloaded_setup() { | ||
7491 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
7492 | } | ||
7493 | #endif | ||
7494 | |||
7495 | #ifdef __cplusplus | ||
7496 | } | ||
7497 | #endif | ||
7498 | _LT_EOF | ||
7499 | # Now try linking the two files. | ||
7500 | mv conftest.$ac_objext conftstm.$ac_objext | ||
7501 | lt_save_LIBS="$LIBS" | ||
7502 | lt_save_CFLAGS="$CFLAGS" | ||
7503 | LIBS="conftstm.$ac_objext" | ||
7504 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
7505 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
7506 | (eval $ac_link) 2>&5 | ||
7507 | ac_status=$? | ||
7508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7509 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
7510 | pipe_works=yes | ||
7511 | fi | ||
7512 | LIBS="$lt_save_LIBS" | ||
7513 | CFLAGS="$lt_save_CFLAGS" | ||
7514 | else | ||
7515 | echo "cannot find nm_test_func in $nlist" >&5 | ||
7516 | fi | ||
7517 | else | ||
7518 | echo "cannot find nm_test_var in $nlist" >&5 | ||
7519 | fi | ||
7520 | else | ||
7521 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
7522 | fi | ||
7523 | else | ||
7524 | echo "$progname: failed program was:" >&5 | ||
7525 | cat conftest.$ac_ext >&5 | ||
7526 | fi | ||
7527 | rm -rf conftest* conftst* | ||
7528 | |||
7529 | # Do not use the global_symbol_pipe unless it works. | ||
7530 | if test "$pipe_works" = yes; then | ||
7531 | break | ||
7532 | else | ||
7533 | lt_cv_sys_global_symbol_pipe= | ||
7534 | fi | ||
7535 | done | ||
7536 | |||
7537 | fi | ||
7538 | |||
7539 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
7540 | lt_cv_sys_global_symbol_to_cdecl= | ||
7541 | fi | ||
7542 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
7544 | $as_echo "failed" >&6; } | ||
7545 | else | ||
7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
7547 | $as_echo "ok" >&6; } | ||
7548 | fi | ||
7549 | |||
7550 | |||
7551 | |||
7552 | |||
7553 | |||
7554 | |||
7555 | |||
7556 | |||
7557 | |||
7558 | |||
7559 | |||
7560 | |||
7561 | |||
7562 | |||
7563 | |||
7564 | |||
7565 | |||
7566 | |||
7567 | |||
7568 | |||
7569 | |||
7570 | |||
7571 | # Check whether --enable-libtool-lock was given. | ||
7572 | if test "${enable_libtool_lock+set}" = set; then : | ||
7573 | enableval=$enable_libtool_lock; | ||
7574 | fi | ||
7575 | |||
7576 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
7577 | |||
7578 | # Some flags need to be propagated to the compiler or linker for good | ||
7579 | # libtool support. | ||
7580 | case $host in | ||
7581 | ia64-*-hpux*) | ||
7582 | # Find out which ABI we are using. | ||
7583 | echo 'int i;' > conftest.$ac_ext | ||
7584 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7585 | (eval $ac_compile) 2>&5 | ||
7586 | ac_status=$? | ||
7587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7588 | test $ac_status = 0; }; then | ||
7589 | case `/usr/bin/file conftest.$ac_objext` in | ||
7590 | *ELF-32*) | ||
7591 | HPUX_IA64_MODE="32" | ||
7592 | ;; | ||
7593 | *ELF-64*) | ||
7594 | HPUX_IA64_MODE="64" | ||
7595 | ;; | ||
7596 | esac | ||
7597 | fi | ||
7598 | rm -rf conftest* | ||
7599 | ;; | ||
7600 | *-*-irix6*) | ||
7601 | # Find out which ABI we are using. | ||
7602 | echo '#line 7602 "configure"' > conftest.$ac_ext | ||
7603 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7604 | (eval $ac_compile) 2>&5 | ||
7605 | ac_status=$? | ||
7606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7607 | test $ac_status = 0; }; then | ||
7608 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
7609 | case `/usr/bin/file conftest.$ac_objext` in | ||
7610 | *32-bit*) | ||
7611 | LD="${LD-ld} -melf32bsmip" | ||
7612 | ;; | ||
7613 | *N32*) | ||
7614 | LD="${LD-ld} -melf32bmipn32" | ||
7615 | ;; | ||
7616 | *64-bit*) | ||
7617 | LD="${LD-ld} -melf64bmip" | ||
7618 | ;; | ||
7619 | esac | ||
7620 | else | ||
7621 | case `/usr/bin/file conftest.$ac_objext` in | ||
7622 | *32-bit*) | ||
7623 | LD="${LD-ld} -32" | ||
7624 | ;; | ||
7625 | *N32*) | ||
7626 | LD="${LD-ld} -n32" | ||
7627 | ;; | ||
7628 | *64-bit*) | ||
7629 | LD="${LD-ld} -64" | ||
7630 | ;; | ||
7631 | esac | ||
7632 | fi | ||
7633 | fi | ||
7634 | rm -rf conftest* | ||
7635 | ;; | ||
7636 | |||
7637 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
7638 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
7639 | # Find out which ABI we are using. | ||
7640 | echo 'int i;' > conftest.$ac_ext | ||
7641 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7642 | (eval $ac_compile) 2>&5 | ||
7643 | ac_status=$? | ||
7644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7645 | test $ac_status = 0; }; then | ||
7646 | case `/usr/bin/file conftest.o` in | ||
7647 | *32-bit*) | ||
7648 | case $host in | ||
7649 | x86_64-*kfreebsd*-gnu) | ||
7650 | LD="${LD-ld} -m elf_i386_fbsd" | ||
7651 | ;; | ||
7652 | x86_64-*linux*) | ||
7653 | LD="${LD-ld} -m elf_i386" | ||
7654 | ;; | ||
7655 | ppc64-*linux*|powerpc64-*linux*) | ||
7656 | LD="${LD-ld} -m elf32ppclinux" | ||
7657 | ;; | ||
7658 | s390x-*linux*) | ||
7659 | LD="${LD-ld} -m elf_s390" | ||
7660 | ;; | ||
7661 | sparc64-*linux*) | ||
7662 | LD="${LD-ld} -m elf32_sparc" | ||
7663 | ;; | ||
7664 | esac | ||
7665 | ;; | ||
7666 | *64-bit*) | ||
7667 | case $host in | ||
7668 | x86_64-*kfreebsd*-gnu) | ||
7669 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
7670 | ;; | ||
7671 | x86_64-*linux*) | ||
7672 | LD="${LD-ld} -m elf_x86_64" | ||
7673 | ;; | ||
7674 | ppc*-*linux*|powerpc*-*linux*) | ||
7675 | LD="${LD-ld} -m elf64ppc" | ||
7676 | ;; | ||
7677 | s390*-*linux*|s390*-*tpf*) | ||
7678 | LD="${LD-ld} -m elf64_s390" | ||
7679 | ;; | ||
7680 | sparc*-*linux*) | ||
7681 | LD="${LD-ld} -m elf64_sparc" | ||
7682 | ;; | ||
7683 | esac | ||
7684 | ;; | ||
7685 | esac | ||
7686 | fi | ||
7687 | rm -rf conftest* | ||
7688 | ;; | ||
7689 | |||
7690 | *-*-sco3.2v5*) | ||
7691 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
7692 | SAVE_CFLAGS="$CFLAGS" | ||
7693 | CFLAGS="$CFLAGS -belf" | ||
7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
7695 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
7696 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
7697 | $as_echo_n "(cached) " >&6 | ||
7698 | else | ||
7699 | ac_ext=c | ||
7700 | ac_cpp='$CPP $CPPFLAGS' | ||
7701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7704 | |||
7705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7706 | /* end confdefs.h. */ | ||
7707 | |||
7708 | int | ||
7709 | main () | ||
7710 | { | ||
7711 | |||
7712 | ; | ||
7713 | return 0; | ||
7714 | } | ||
7715 | _ACEOF | ||
7716 | if ac_fn_c_try_link "$LINENO"; then : | ||
7717 | lt_cv_cc_needs_belf=yes | ||
7718 | else | ||
7719 | lt_cv_cc_needs_belf=no | ||
7720 | fi | ||
7721 | rm -f core conftest.err conftest.$ac_objext \ | ||
7722 | conftest$ac_exeext conftest.$ac_ext | ||
7723 | ac_ext=c | ||
7724 | ac_cpp='$CPP $CPPFLAGS' | ||
7725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7728 | |||
7729 | fi | ||
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
7731 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
7732 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
7733 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
7734 | CFLAGS="$SAVE_CFLAGS" | ||
7735 | fi | ||
7736 | ;; | ||
7737 | sparc*-*solaris*) | ||
7738 | # Find out which ABI we are using. | ||
7739 | echo 'int i;' > conftest.$ac_ext | ||
7740 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7741 | (eval $ac_compile) 2>&5 | ||
7742 | ac_status=$? | ||
7743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7744 | test $ac_status = 0; }; then | ||
7745 | case `/usr/bin/file conftest.o` in | ||
7746 | *64-bit*) | ||
7747 | case $lt_cv_prog_gnu_ld in | ||
7748 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
7749 | *) | ||
7750 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
7751 | LD="${LD-ld} -64" | ||
7752 | fi | ||
7753 | ;; | ||
7754 | esac | ||
7755 | ;; | ||
7756 | esac | ||
7757 | fi | ||
7758 | rm -rf conftest* | ||
7759 | ;; | ||
7760 | esac | ||
7761 | |||
7762 | need_locks="$enable_libtool_lock" | ||
7763 | |||
7764 | |||
7765 | case $host_os in | ||
7766 | rhapsody* | darwin*) | ||
7767 | if test -n "$ac_tool_prefix"; then | ||
7768 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
7769 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7771 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7772 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
7773 | $as_echo_n "(cached) " >&6 | ||
7774 | else | ||
7775 | if test -n "$DSYMUTIL"; then | ||
7776 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
7777 | else | ||
7778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7779 | for as_dir in $PATH | ||
7780 | do | ||
7781 | IFS=$as_save_IFS | ||
7782 | test -z "$as_dir" && as_dir=. | ||
7783 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7785 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
7786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7787 | break 2 | ||
7788 | fi | ||
7789 | done | ||
7790 | done | ||
7791 | IFS=$as_save_IFS | ||
7792 | |||
7793 | fi | ||
7794 | fi | ||
7795 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
7796 | if test -n "$DSYMUTIL"; then | ||
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
7798 | $as_echo "$DSYMUTIL" >&6; } | ||
7799 | else | ||
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7801 | $as_echo "no" >&6; } | ||
7802 | fi | ||
7803 | |||
7804 | |||
7805 | fi | ||
7806 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
7807 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
7808 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
7809 | set dummy dsymutil; ac_word=$2 | ||
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7811 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7812 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
7813 | $as_echo_n "(cached) " >&6 | ||
7814 | else | ||
7815 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7816 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
7817 | else | ||
7818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7819 | for as_dir in $PATH | ||
7820 | do | ||
7821 | IFS=$as_save_IFS | ||
7822 | test -z "$as_dir" && as_dir=. | ||
7823 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7825 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
7826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7827 | break 2 | ||
7828 | fi | ||
7829 | done | ||
7830 | done | ||
7831 | IFS=$as_save_IFS | ||
7832 | |||
7833 | fi | ||
7834 | fi | ||
7835 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
7836 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
7838 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
7839 | else | ||
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7841 | $as_echo "no" >&6; } | ||
7842 | fi | ||
7843 | |||
7844 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
7845 | DSYMUTIL=":" | ||
7846 | else | ||
7847 | case $cross_compiling:$ac_tool_warned in | ||
7848 | yes:) | ||
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7850 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7851 | ac_tool_warned=yes ;; | ||
7852 | esac | ||
7853 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
7854 | fi | ||
7855 | else | ||
7856 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
7857 | fi | ||
7858 | |||
7859 | if test -n "$ac_tool_prefix"; then | ||
7860 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
7861 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7863 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7864 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
7865 | $as_echo_n "(cached) " >&6 | ||
7866 | else | ||
7867 | if test -n "$NMEDIT"; then | ||
7868 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
7869 | else | ||
7870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7871 | for as_dir in $PATH | ||
7872 | do | ||
7873 | IFS=$as_save_IFS | ||
7874 | test -z "$as_dir" && as_dir=. | ||
7875 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7877 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
7878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7879 | break 2 | ||
7880 | fi | ||
7881 | done | ||
7882 | done | ||
7883 | IFS=$as_save_IFS | ||
7884 | |||
7885 | fi | ||
7886 | fi | ||
7887 | NMEDIT=$ac_cv_prog_NMEDIT | ||
7888 | if test -n "$NMEDIT"; then | ||
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
7890 | $as_echo "$NMEDIT" >&6; } | ||
7891 | else | ||
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7893 | $as_echo "no" >&6; } | ||
7894 | fi | ||
7895 | |||
7896 | |||
7897 | fi | ||
7898 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
7899 | ac_ct_NMEDIT=$NMEDIT | ||
7900 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
7901 | set dummy nmedit; ac_word=$2 | ||
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7903 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7904 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
7905 | $as_echo_n "(cached) " >&6 | ||
7906 | else | ||
7907 | if test -n "$ac_ct_NMEDIT"; then | ||
7908 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
7909 | else | ||
7910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7911 | for as_dir in $PATH | ||
7912 | do | ||
7913 | IFS=$as_save_IFS | ||
7914 | test -z "$as_dir" && as_dir=. | ||
7915 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7917 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
7918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7919 | break 2 | ||
7920 | fi | ||
7921 | done | ||
7922 | done | ||
7923 | IFS=$as_save_IFS | ||
7924 | |||
7925 | fi | ||
7926 | fi | ||
7927 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
7928 | if test -n "$ac_ct_NMEDIT"; then | ||
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
7930 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
7931 | else | ||
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7933 | $as_echo "no" >&6; } | ||
7934 | fi | ||
7935 | |||
7936 | if test "x$ac_ct_NMEDIT" = x; then | ||
7937 | NMEDIT=":" | ||
7938 | else | ||
7939 | case $cross_compiling:$ac_tool_warned in | ||
7940 | yes:) | ||
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7942 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7943 | ac_tool_warned=yes ;; | ||
7944 | esac | ||
7945 | NMEDIT=$ac_ct_NMEDIT | ||
7946 | fi | ||
7947 | else | ||
7948 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
7949 | fi | ||
7950 | |||
7951 | if test -n "$ac_tool_prefix"; then | ||
7952 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
7953 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7955 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7956 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
7957 | $as_echo_n "(cached) " >&6 | ||
7958 | else | ||
7959 | if test -n "$LIPO"; then | ||
7960 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
7961 | else | ||
7962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7963 | for as_dir in $PATH | ||
7964 | do | ||
7965 | IFS=$as_save_IFS | ||
7966 | test -z "$as_dir" && as_dir=. | ||
7967 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7969 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
7970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7971 | break 2 | ||
7972 | fi | ||
7973 | done | ||
7974 | done | ||
7975 | IFS=$as_save_IFS | ||
7976 | |||
7977 | fi | ||
7978 | fi | ||
7979 | LIPO=$ac_cv_prog_LIPO | ||
7980 | if test -n "$LIPO"; then | ||
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
7982 | $as_echo "$LIPO" >&6; } | ||
7983 | else | ||
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7985 | $as_echo "no" >&6; } | ||
7986 | fi | ||
7987 | |||
7988 | |||
7989 | fi | ||
7990 | if test -z "$ac_cv_prog_LIPO"; then | ||
7991 | ac_ct_LIPO=$LIPO | ||
7992 | # Extract the first word of "lipo", so it can be a program name with args. | ||
7993 | set dummy lipo; ac_word=$2 | ||
7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7995 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7996 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
7997 | $as_echo_n "(cached) " >&6 | ||
7998 | else | ||
7999 | if test -n "$ac_ct_LIPO"; then | ||
8000 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
8001 | else | ||
8002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8003 | for as_dir in $PATH | ||
8004 | do | ||
8005 | IFS=$as_save_IFS | ||
8006 | test -z "$as_dir" && as_dir=. | ||
8007 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8009 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
8010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8011 | break 2 | ||
8012 | fi | ||
8013 | done | ||
8014 | done | ||
8015 | IFS=$as_save_IFS | ||
8016 | |||
8017 | fi | ||
8018 | fi | ||
8019 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
8020 | if test -n "$ac_ct_LIPO"; then | ||
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
8022 | $as_echo "$ac_ct_LIPO" >&6; } | ||
8023 | else | ||
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8025 | $as_echo "no" >&6; } | ||
8026 | fi | ||
8027 | |||
8028 | if test "x$ac_ct_LIPO" = x; then | ||
8029 | LIPO=":" | ||
8030 | else | ||
8031 | case $cross_compiling:$ac_tool_warned in | ||
8032 | yes:) | ||
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8034 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8035 | ac_tool_warned=yes ;; | ||
8036 | esac | ||
8037 | LIPO=$ac_ct_LIPO | ||
8038 | fi | ||
8039 | else | ||
8040 | LIPO="$ac_cv_prog_LIPO" | ||
8041 | fi | ||
8042 | |||
8043 | if test -n "$ac_tool_prefix"; then | ||
8044 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
8045 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8047 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8048 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
8049 | $as_echo_n "(cached) " >&6 | ||
8050 | else | ||
8051 | if test -n "$OTOOL"; then | ||
8052 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
8053 | else | ||
8054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8055 | for as_dir in $PATH | ||
8056 | do | ||
8057 | IFS=$as_save_IFS | ||
8058 | test -z "$as_dir" && as_dir=. | ||
8059 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8061 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
8062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8063 | break 2 | ||
8064 | fi | ||
8065 | done | ||
8066 | done | ||
8067 | IFS=$as_save_IFS | ||
8068 | |||
8069 | fi | ||
8070 | fi | ||
8071 | OTOOL=$ac_cv_prog_OTOOL | ||
8072 | if test -n "$OTOOL"; then | ||
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
8074 | $as_echo "$OTOOL" >&6; } | ||
8075 | else | ||
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8077 | $as_echo "no" >&6; } | ||
8078 | fi | ||
8079 | |||
8080 | |||
8081 | fi | ||
8082 | if test -z "$ac_cv_prog_OTOOL"; then | ||
8083 | ac_ct_OTOOL=$OTOOL | ||
8084 | # Extract the first word of "otool", so it can be a program name with args. | ||
8085 | set dummy otool; ac_word=$2 | ||
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8087 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8088 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
8089 | $as_echo_n "(cached) " >&6 | ||
8090 | else | ||
8091 | if test -n "$ac_ct_OTOOL"; then | ||
8092 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
8093 | else | ||
8094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8095 | for as_dir in $PATH | ||
8096 | do | ||
8097 | IFS=$as_save_IFS | ||
8098 | test -z "$as_dir" && as_dir=. | ||
8099 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8101 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
8102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8103 | break 2 | ||
8104 | fi | ||
8105 | done | ||
8106 | done | ||
8107 | IFS=$as_save_IFS | ||
8108 | |||
8109 | fi | ||
8110 | fi | ||
8111 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
8112 | if test -n "$ac_ct_OTOOL"; then | ||
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
8114 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
8115 | else | ||
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8117 | $as_echo "no" >&6; } | ||
8118 | fi | ||
8119 | |||
8120 | if test "x$ac_ct_OTOOL" = x; then | ||
8121 | OTOOL=":" | ||
8122 | else | ||
8123 | case $cross_compiling:$ac_tool_warned in | ||
8124 | yes:) | ||
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8126 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8127 | ac_tool_warned=yes ;; | ||
8128 | esac | ||
8129 | OTOOL=$ac_ct_OTOOL | ||
8130 | fi | ||
8131 | else | ||
8132 | OTOOL="$ac_cv_prog_OTOOL" | ||
8133 | fi | ||
8134 | |||
8135 | if test -n "$ac_tool_prefix"; then | ||
8136 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
8137 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8139 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8140 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
8141 | $as_echo_n "(cached) " >&6 | ||
8142 | else | ||
8143 | if test -n "$OTOOL64"; then | ||
8144 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
8145 | else | ||
8146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8147 | for as_dir in $PATH | ||
8148 | do | ||
8149 | IFS=$as_save_IFS | ||
8150 | test -z "$as_dir" && as_dir=. | ||
8151 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8153 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
8154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8155 | break 2 | ||
8156 | fi | ||
8157 | done | ||
8158 | done | ||
8159 | IFS=$as_save_IFS | ||
8160 | |||
8161 | fi | ||
8162 | fi | ||
8163 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
8164 | if test -n "$OTOOL64"; then | ||
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
8166 | $as_echo "$OTOOL64" >&6; } | ||
8167 | else | ||
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8169 | $as_echo "no" >&6; } | ||
8170 | fi | ||
8171 | |||
8172 | |||
8173 | fi | ||
8174 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
8175 | ac_ct_OTOOL64=$OTOOL64 | ||
8176 | # Extract the first word of "otool64", so it can be a program name with args. | ||
8177 | set dummy otool64; ac_word=$2 | ||
8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8179 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8180 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
8181 | $as_echo_n "(cached) " >&6 | ||
8182 | else | ||
8183 | if test -n "$ac_ct_OTOOL64"; then | ||
8184 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
8185 | else | ||
8186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8187 | for as_dir in $PATH | ||
8188 | do | ||
8189 | IFS=$as_save_IFS | ||
8190 | test -z "$as_dir" && as_dir=. | ||
8191 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8193 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
8194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8195 | break 2 | ||
8196 | fi | ||
8197 | done | ||
8198 | done | ||
8199 | IFS=$as_save_IFS | ||
8200 | |||
8201 | fi | ||
8202 | fi | ||
8203 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
8204 | if test -n "$ac_ct_OTOOL64"; then | ||
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
8206 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
8207 | else | ||
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8209 | $as_echo "no" >&6; } | ||
8210 | fi | ||
8211 | |||
8212 | if test "x$ac_ct_OTOOL64" = x; then | ||
8213 | OTOOL64=":" | ||
8214 | else | ||
8215 | case $cross_compiling:$ac_tool_warned in | ||
8216 | yes:) | ||
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8218 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8219 | ac_tool_warned=yes ;; | ||
8220 | esac | ||
8221 | OTOOL64=$ac_ct_OTOOL64 | ||
8222 | fi | ||
8223 | else | ||
8224 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
8225 | fi | ||
8226 | |||
8227 | |||
8228 | |||
8229 | |||
8230 | |||
8231 | |||
8232 | |||
8233 | |||
8234 | |||
8235 | |||
8236 | |||
8237 | |||
8238 | |||
8239 | |||
8240 | |||
8241 | |||
8242 | |||
8243 | |||
8244 | |||
8245 | |||
8246 | |||
8247 | |||
8248 | |||
8249 | |||
8250 | |||
8251 | |||
8252 | |||
8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
8254 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
8255 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
8256 | $as_echo_n "(cached) " >&6 | ||
8257 | else | ||
8258 | lt_cv_apple_cc_single_mod=no | ||
8259 | if test -z "${LT_MULTI_MODULE}"; then | ||
8260 | # By default we will add the -single_module flag. You can override | ||
8261 | # by either setting the environment variable LT_MULTI_MODULE | ||
8262 | # non-empty at configure time, or by adding -multi_module to the | ||
8263 | # link flags. | ||
8264 | rm -rf libconftest.dylib* | ||
8265 | echo "int foo(void){return 1;}" > conftest.c | ||
8266 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
8267 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
8268 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
8269 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
8270 | _lt_result=$? | ||
8271 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
8272 | lt_cv_apple_cc_single_mod=yes | ||
8273 | else | ||
8274 | cat conftest.err >&5 | ||
8275 | fi | ||
8276 | rm -rf libconftest.dylib* | ||
8277 | rm -f conftest.* | ||
8278 | fi | ||
8279 | fi | ||
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
8281 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
8283 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
8284 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
8285 | $as_echo_n "(cached) " >&6 | ||
8286 | else | ||
8287 | lt_cv_ld_exported_symbols_list=no | ||
8288 | save_LDFLAGS=$LDFLAGS | ||
8289 | echo "_main" > conftest.sym | ||
8290 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
8291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8292 | /* end confdefs.h. */ | ||
8293 | |||
8294 | int | ||
8295 | main () | ||
8296 | { | ||
8297 | |||
8298 | ; | ||
8299 | return 0; | ||
8300 | } | ||
8301 | _ACEOF | ||
8302 | if ac_fn_c_try_link "$LINENO"; then : | ||
8303 | lt_cv_ld_exported_symbols_list=yes | ||
8304 | else | ||
8305 | lt_cv_ld_exported_symbols_list=no | ||
8306 | fi | ||
8307 | rm -f core conftest.err conftest.$ac_objext \ | ||
8308 | conftest$ac_exeext conftest.$ac_ext | ||
8309 | LDFLAGS="$save_LDFLAGS" | ||
8310 | |||
8311 | fi | ||
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
8313 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
8314 | case $host_os in | ||
8315 | rhapsody* | darwin1.[012]) | ||
8316 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
8317 | darwin1.*) | ||
8318 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
8319 | darwin*) # darwin 5.x on | ||
8320 | # if running on 10.5 or later, the deployment target defaults | ||
8321 | # to the OS version, if on x86, and 10.4, the deployment | ||
8322 | # target defaults to 10.4. Don't you love it? | ||
8323 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
8324 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
8325 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
8326 | 10.[012]*) | ||
8327 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
8328 | 10.*) | ||
8329 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
8330 | esac | ||
8331 | ;; | ||
8332 | esac | ||
8333 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
8334 | _lt_dar_single_mod='$single_module' | ||
8335 | fi | ||
8336 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
8337 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
8338 | else | ||
8339 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
8340 | fi | ||
8341 | if test "$DSYMUTIL" != ":"; then | ||
8342 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
8343 | else | ||
8344 | _lt_dsymutil= | ||
8345 | fi | ||
8346 | ;; | ||
8347 | esac | ||
8348 | |||
8349 | for ac_header in dlfcn.h | ||
8350 | do : | ||
8351 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
8352 | " | ||
8353 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
8354 | cat >>confdefs.h <<_ACEOF | ||
8355 | #define HAVE_DLFCN_H 1 | ||
8356 | _ACEOF | ||
8357 | |||
8358 | fi | ||
8359 | |||
8360 | done | ||
8361 | |||
8362 | |||
8363 | |||
8364 | # Set options | ||
8365 | |||
8366 | |||
8367 | |||
8368 | enable_dlopen=no | ||
8369 | |||
8370 | |||
8371 | |||
8372 | # Check whether --enable-shared was given. | ||
8373 | if test "${enable_shared+set}" = set; then : | ||
8374 | enableval=$enable_shared; p=${PACKAGE-default} | ||
8375 | case $enableval in | ||
8376 | yes) enable_shared=yes ;; | ||
8377 | no) enable_shared=no ;; | ||
8378 | *) | ||
8379 | enable_shared=no | ||
8380 | # Look at the argument we got. We use all the common list separators. | ||
8381 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8382 | for pkg in $enableval; do | ||
8383 | IFS="$lt_save_ifs" | ||
8384 | if test "X$pkg" = "X$p"; then | ||
8385 | enable_shared=yes | ||
8386 | fi | ||
8387 | done | ||
8388 | IFS="$lt_save_ifs" | ||
8389 | ;; | ||
8390 | esac | ||
8391 | else | ||
8392 | enable_shared=yes | ||
8393 | fi | ||
8394 | |||
8395 | |||
8396 | |||
8397 | |||
8398 | |||
8399 | |||
8400 | |||
8401 | |||
8402 | |||
8403 | # Check whether --enable-static was given. | ||
8404 | if test "${enable_static+set}" = set; then : | ||
8405 | enableval=$enable_static; p=${PACKAGE-default} | ||
8406 | case $enableval in | ||
8407 | yes) enable_static=yes ;; | ||
8408 | no) enable_static=no ;; | ||
8409 | *) | ||
8410 | enable_static=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_static=yes | ||
8417 | fi | ||
8418 | done | ||
8419 | IFS="$lt_save_ifs" | ||
8420 | ;; | ||
8421 | esac | ||
8422 | else | ||
8423 | enable_static=yes | ||
8424 | fi | ||
8425 | |||
8426 | |||
8427 | |||
8428 | |||
8429 | |||
8430 | |||
8431 | |||
8432 | |||
8433 | |||
8434 | |||
8435 | # Check whether --with-pic was given. | ||
8436 | if test "${with_pic+set}" = set; then : | ||
8437 | withval=$with_pic; pic_mode="$withval" | ||
8438 | else | ||
8439 | pic_mode=default | ||
8440 | fi | ||
8441 | |||
8442 | |||
8443 | test -z "$pic_mode" && pic_mode=default | ||
8444 | |||
8445 | |||
8446 | |||
8447 | |||
8448 | |||
8449 | |||
8450 | |||
8451 | # Check whether --enable-fast-install was given. | ||
8452 | if test "${enable_fast_install+set}" = set; then : | ||
8453 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
8454 | case $enableval in | ||
8455 | yes) enable_fast_install=yes ;; | ||
8456 | no) enable_fast_install=no ;; | ||
8457 | *) | ||
8458 | enable_fast_install=no | ||
8459 | # Look at the argument we got. We use all the common list separators. | ||
8460 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8461 | for pkg in $enableval; do | ||
8462 | IFS="$lt_save_ifs" | ||
8463 | if test "X$pkg" = "X$p"; then | ||
8464 | enable_fast_install=yes | ||
8465 | fi | ||
8466 | done | ||
8467 | IFS="$lt_save_ifs" | ||
8468 | ;; | ||
8469 | esac | ||
8470 | else | ||
8471 | enable_fast_install=yes | ||
8472 | fi | ||
8473 | |||
8474 | |||
8475 | |||
8476 | |||
8477 | |||
8478 | |||
8479 | |||
8480 | |||
8481 | |||
8482 | |||
8483 | |||
8484 | # This can be used to rebuild libtool when needed | ||
8485 | LIBTOOL_DEPS="$ltmain" | ||
8486 | |||
8487 | # Always use our own libtool. | ||
8488 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
8489 | |||
8490 | |||
8491 | |||
8492 | |||
8493 | |||
8494 | |||
8495 | |||
8496 | |||
8497 | |||
8498 | |||
8499 | |||
8500 | |||
8501 | |||
8502 | |||
8503 | |||
8504 | |||
8505 | |||
8506 | |||
8507 | |||
8508 | |||
8509 | |||
8510 | |||
8511 | |||
8512 | |||
8513 | |||
8514 | test -z "$LN_S" && LN_S="ln -s" | ||
8515 | |||
8516 | |||
8517 | |||
8518 | |||
8519 | |||
8520 | |||
8521 | |||
8522 | |||
8523 | |||
8524 | |||
8525 | |||
8526 | |||
8527 | |||
8528 | |||
8529 | if test -n "${ZSH_VERSION+set}" ; then | ||
8530 | setopt NO_GLOB_SUBST | ||
8531 | fi | ||
8532 | |||
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
8534 | $as_echo_n "checking for objdir... " >&6; } | ||
8535 | if test "${lt_cv_objdir+set}" = set; then : | ||
8536 | $as_echo_n "(cached) " >&6 | ||
8537 | else | ||
8538 | rm -f .libs 2>/dev/null | ||
8539 | mkdir .libs 2>/dev/null | ||
8540 | if test -d .libs; then | ||
8541 | lt_cv_objdir=.libs | ||
8542 | else | ||
8543 | # MS-DOS does not allow filenames that begin with a dot. | ||
8544 | lt_cv_objdir=_libs | ||
8545 | fi | ||
8546 | rmdir .libs 2>/dev/null | ||
8547 | fi | ||
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
8549 | $as_echo "$lt_cv_objdir" >&6; } | ||
8550 | objdir=$lt_cv_objdir | ||
8551 | |||
8552 | |||
8553 | |||
8554 | |||
8555 | |||
8556 | cat >>confdefs.h <<_ACEOF | ||
8557 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
8558 | _ACEOF | ||
8559 | |||
8560 | |||
8561 | |||
8562 | |||
8563 | |||
8564 | |||
8565 | |||
8566 | |||
8567 | |||
8568 | |||
8569 | |||
8570 | |||
8571 | |||
8572 | |||
8573 | |||
8574 | |||
8575 | |||
8576 | case $host_os in | ||
8577 | aix3*) | ||
8578 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
8579 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
8580 | # vanish in a puff of smoke. | ||
8581 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
8582 | COLLECT_NAMES= | ||
8583 | export COLLECT_NAMES | ||
8584 | fi | ||
8585 | ;; | ||
8586 | esac | ||
8587 | |||
8588 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
8589 | # metacharacters that are still active within double-quoted strings. | ||
8590 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
8591 | |||
8592 | # Same as above, but do not quote variable references. | ||
8593 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
8594 | |||
8595 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
8596 | # double_quote_subst'ed string. | ||
8597 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
8598 | |||
8599 | # Sed substitution to delay expansion of an escaped single quote. | ||
8600 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
8601 | |||
8602 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
8603 | no_glob_subst='s/\*/\\\*/g' | ||
8604 | |||
8605 | # Global variables: | ||
8606 | ofile=libtool | ||
8607 | can_build_shared=yes | ||
8608 | |||
8609 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
8610 | # which needs '.lib'). | ||
8611 | libext=a | ||
8612 | |||
8613 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
8614 | |||
8615 | old_CC="$CC" | ||
8616 | old_CFLAGS="$CFLAGS" | ||
8617 | |||
8618 | # Set sane defaults for various variables | ||
8619 | test -z "$CC" && CC=cc | ||
8620 | test -z "$LTCC" && LTCC=$CC | ||
8621 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
8622 | test -z "$LD" && LD=ld | ||
8623 | test -z "$ac_objext" && ac_objext=o | ||
8624 | |||
8625 | for cc_temp in $compiler""; do | ||
8626 | case $cc_temp in | ||
8627 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
8628 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
8629 | \-*) ;; | ||
8630 | *) break;; | ||
8631 | esac | ||
8632 | done | ||
8633 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
8634 | |||
8635 | |||
8636 | # Only perform the check for file, if the check method requires it | ||
8637 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
8638 | case $deplibs_check_method in | ||
8639 | file_magic*) | ||
8640 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
8642 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
8643 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8644 | $as_echo_n "(cached) " >&6 | ||
8645 | else | ||
8646 | case $MAGIC_CMD in | ||
8647 | [\\/*] | ?:[\\/]*) | ||
8648 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8649 | ;; | ||
8650 | *) | ||
8651 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8652 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8653 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8654 | for ac_dir in $ac_dummy; do | ||
8655 | IFS="$lt_save_ifs" | ||
8656 | test -z "$ac_dir" && ac_dir=. | ||
8657 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
8658 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
8659 | if test -n "$file_magic_test_file"; then | ||
8660 | case $deplibs_check_method in | ||
8661 | "file_magic "*) | ||
8662 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8663 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8664 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8665 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8666 | : | ||
8667 | else | ||
8668 | cat <<_LT_EOF 1>&2 | ||
8669 | |||
8670 | *** Warning: the command libtool uses to detect shared libraries, | ||
8671 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8672 | *** The result is that libtool may fail to recognize shared libraries | ||
8673 | *** as such. This will affect the creation of libtool libraries that | ||
8674 | *** depend on shared libraries, but programs linked with such libtool | ||
8675 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8676 | *** may want to report the problem to your system manager and/or to | ||
8677 | *** bug-libtool@gnu.org | ||
8678 | |||
8679 | _LT_EOF | ||
8680 | fi ;; | ||
8681 | esac | ||
8682 | fi | ||
8683 | break | ||
8684 | fi | ||
8685 | done | ||
8686 | IFS="$lt_save_ifs" | ||
8687 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8688 | ;; | ||
8689 | esac | ||
8690 | fi | ||
8691 | |||
8692 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8693 | if test -n "$MAGIC_CMD"; then | ||
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8695 | $as_echo "$MAGIC_CMD" >&6; } | ||
8696 | else | ||
8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8698 | $as_echo "no" >&6; } | ||
8699 | fi | ||
8700 | |||
8701 | |||
8702 | |||
8703 | |||
8704 | |||
8705 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
8706 | if test -n "$ac_tool_prefix"; then | ||
8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
8708 | $as_echo_n "checking for file... " >&6; } | ||
8709 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8710 | $as_echo_n "(cached) " >&6 | ||
8711 | else | ||
8712 | case $MAGIC_CMD in | ||
8713 | [\\/*] | ?:[\\/]*) | ||
8714 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8715 | ;; | ||
8716 | *) | ||
8717 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8718 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8719 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8720 | for ac_dir in $ac_dummy; do | ||
8721 | IFS="$lt_save_ifs" | ||
8722 | test -z "$ac_dir" && ac_dir=. | ||
8723 | if test -f $ac_dir/file; then | ||
8724 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
8725 | if test -n "$file_magic_test_file"; then | ||
8726 | case $deplibs_check_method in | ||
8727 | "file_magic "*) | ||
8728 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8729 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8730 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8731 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8732 | : | ||
8733 | else | ||
8734 | cat <<_LT_EOF 1>&2 | ||
8735 | |||
8736 | *** Warning: the command libtool uses to detect shared libraries, | ||
8737 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8738 | *** The result is that libtool may fail to recognize shared libraries | ||
8739 | *** as such. This will affect the creation of libtool libraries that | ||
8740 | *** depend on shared libraries, but programs linked with such libtool | ||
8741 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8742 | *** may want to report the problem to your system manager and/or to | ||
8743 | *** bug-libtool@gnu.org | ||
8744 | |||
8745 | _LT_EOF | ||
8746 | fi ;; | ||
8747 | esac | ||
8748 | fi | ||
8749 | break | ||
8750 | fi | ||
8751 | done | ||
8752 | IFS="$lt_save_ifs" | ||
8753 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8754 | ;; | ||
8755 | esac | ||
8756 | fi | ||
8757 | |||
8758 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8759 | if test -n "$MAGIC_CMD"; then | ||
8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8761 | $as_echo "$MAGIC_CMD" >&6; } | ||
8762 | else | ||
8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8764 | $as_echo "no" >&6; } | ||
8765 | fi | ||
8766 | |||
8767 | |||
8768 | else | ||
8769 | MAGIC_CMD=: | ||
8770 | fi | ||
8771 | fi | ||
8772 | |||
8773 | fi | ||
8774 | ;; | ||
8775 | esac | ||
8776 | |||
8777 | # Use C for the default configuration in the libtool script | ||
8778 | |||
8779 | lt_save_CC="$CC" | ||
8780 | ac_ext=c | ||
8781 | ac_cpp='$CPP $CPPFLAGS' | ||
8782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
8783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
8784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
8785 | |||
8786 | |||
8787 | # Source file extension for C test sources. | ||
8788 | ac_ext=c | ||
8789 | |||
8790 | # Object file extension for compiled C test sources. | ||
8791 | objext=o | ||
8792 | objext=$objext | ||
8793 | |||
8794 | # Code to be used in simple compile tests | ||
8795 | lt_simple_compile_test_code="int some_variable = 0;" | ||
8796 | |||
8797 | # Code to be used in simple link tests | ||
8798 | lt_simple_link_test_code='int main(){return(0);}' | ||
8799 | |||
8800 | |||
8801 | |||
8802 | |||
8803 | |||
8804 | |||
8805 | |||
8806 | # If no C compiler was specified, use CC. | ||
8807 | LTCC=${LTCC-"$CC"} | ||
8808 | |||
8809 | # If no C compiler flags were specified, use CFLAGS. | ||
8810 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
8811 | |||
8812 | # Allow CC to be a program name with arguments. | ||
8813 | compiler=$CC | ||
8814 | |||
8815 | # Save the default compiler, since it gets overwritten when the other | ||
8816 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
8817 | compiler_DEFAULT=$CC | ||
8818 | |||
8819 | # save warnings/boilerplate of simple test code | ||
8820 | ac_outfile=conftest.$ac_objext | ||
8821 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
8822 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8823 | _lt_compiler_boilerplate=`cat conftest.err` | ||
8824 | $RM conftest* | ||
8825 | |||
8826 | ac_outfile=conftest.$ac_objext | ||
8827 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
8828 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8829 | _lt_linker_boilerplate=`cat conftest.err` | ||
8830 | $RM -r conftest* | ||
8831 | |||
8832 | |||
8833 | ## CAVEAT EMPTOR: | ||
8834 | ## There is no encapsulation within the following macros, do not change | ||
8835 | ## the running order or otherwise move them around unless you know exactly | ||
8836 | ## what you are doing... | ||
8837 | if test -n "$compiler"; then | ||
8838 | |||
8839 | lt_prog_compiler_no_builtin_flag= | ||
8840 | |||
8841 | if test "$GCC" = yes; then | ||
8842 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
8843 | |||
8844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
8845 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
8846 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
8847 | $as_echo_n "(cached) " >&6 | ||
8848 | else | ||
8849 | lt_cv_prog_compiler_rtti_exceptions=no | ||
8850 | ac_outfile=conftest.$ac_objext | ||
8851 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8852 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
8853 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8854 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8855 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8856 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8857 | # The option is referenced via a variable to avoid confusing sed. | ||
8858 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8859 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8860 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8861 | -e 's:$: $lt_compiler_flag:'` | ||
8862 | (eval echo "\"\$as_me:8862: $lt_compile\"" >&5) | ||
8863 | (eval "$lt_compile" 2>conftest.err) | ||
8864 | ac_status=$? | ||
8865 | cat conftest.err >&5 | ||
8866 | echo "$as_me:8866: \$? = $ac_status" >&5 | ||
8867 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8868 | # The compiler can only warn and ignore the option if not recognized | ||
8869 | # So say no if there are warnings other than the usual output. | ||
8870 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8871 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8872 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8873 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
8874 | fi | ||
8875 | fi | ||
8876 | $RM conftest* | ||
8877 | |||
8878 | fi | ||
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
8880 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
8881 | |||
8882 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
8883 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
8884 | else | ||
8885 | : | ||
8886 | fi | ||
8887 | |||
8888 | fi | ||
8889 | |||
8890 | |||
8891 | |||
8892 | |||
8893 | |||
8894 | |||
8895 | lt_prog_compiler_wl= | ||
8896 | lt_prog_compiler_pic= | ||
8897 | lt_prog_compiler_static= | ||
8898 | |||
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
8900 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8901 | |||
8902 | if test "$GCC" = yes; then | ||
8903 | lt_prog_compiler_wl='-Wl,' | ||
8904 | lt_prog_compiler_static='-static' | ||
8905 | |||
8906 | case $host_os in | ||
8907 | aix*) | ||
8908 | # All AIX code is PIC. | ||
8909 | if test "$host_cpu" = ia64; then | ||
8910 | # AIX 5 now supports IA64 processor | ||
8911 | lt_prog_compiler_static='-Bstatic' | ||
8912 | fi | ||
8913 | ;; | ||
8914 | |||
8915 | amigaos*) | ||
8916 | case $host_cpu in | ||
8917 | powerpc) | ||
8918 | # see comment about AmigaOS4 .so support | ||
8919 | lt_prog_compiler_pic='-fPIC' | ||
8920 | ;; | ||
8921 | m68k) | ||
8922 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
8923 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
8924 | # like `-m68040'. | ||
8925 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
8926 | ;; | ||
8927 | esac | ||
8928 | ;; | ||
8929 | |||
8930 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
8931 | # PIC is the default for these OSes. | ||
8932 | ;; | ||
8933 | |||
8934 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
8935 | # This hack is so that the source file can tell whether it is being | ||
8936 | # built for inclusion in a dll (and should export symbols for example). | ||
8937 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
8938 | # (--disable-auto-import) libraries | ||
8939 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8940 | ;; | ||
8941 | |||
8942 | darwin* | rhapsody*) | ||
8943 | # PIC is the default on this platform | ||
8944 | # Common symbols not allowed in MH_DYLIB files | ||
8945 | lt_prog_compiler_pic='-fno-common' | ||
8946 | ;; | ||
8947 | |||
8948 | hpux*) | ||
8949 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
8950 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
8951 | # sets the default TLS model and affects inlining. | ||
8952 | case $host_cpu in | ||
8953 | hppa*64*) | ||
8954 | # +Z the default | ||
8955 | ;; | ||
8956 | *) | ||
8957 | lt_prog_compiler_pic='-fPIC' | ||
8958 | ;; | ||
8959 | esac | ||
8960 | ;; | ||
8961 | |||
8962 | interix[3-9]*) | ||
8963 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
8964 | # Instead, we relocate shared libraries at runtime. | ||
8965 | ;; | ||
8966 | |||
8967 | msdosdjgpp*) | ||
8968 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
8969 | # on systems that don't support them. | ||
8970 | lt_prog_compiler_can_build_shared=no | ||
8971 | enable_shared=no | ||
8972 | ;; | ||
8973 | |||
8974 | *nto* | *qnx*) | ||
8975 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
8976 | # it will coredump. | ||
8977 | lt_prog_compiler_pic='-fPIC -shared' | ||
8978 | ;; | ||
8979 | |||
8980 | sysv4*MP*) | ||
8981 | if test -d /usr/nec; then | ||
8982 | lt_prog_compiler_pic=-Kconform_pic | ||
8983 | fi | ||
8984 | ;; | ||
8985 | |||
8986 | *) | ||
8987 | lt_prog_compiler_pic='-fPIC' | ||
8988 | ;; | ||
8989 | esac | ||
8990 | else | ||
8991 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
8992 | case $host_os in | ||
8993 | aix*) | ||
8994 | lt_prog_compiler_wl='-Wl,' | ||
8995 | if test "$host_cpu" = ia64; then | ||
8996 | # AIX 5 now supports IA64 processor | ||
8997 | lt_prog_compiler_static='-Bstatic' | ||
8998 | else | ||
8999 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
9000 | fi | ||
9001 | ;; | ||
9002 | |||
9003 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
9004 | # This hack is so that the source file can tell whether it is being | ||
9005 | # built for inclusion in a dll (and should export symbols for example). | ||
9006 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
9007 | ;; | ||
9008 | |||
9009 | hpux9* | hpux10* | hpux11*) | ||
9010 | lt_prog_compiler_wl='-Wl,' | ||
9011 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
9012 | # not for PA HP-UX. | ||
9013 | case $host_cpu in | ||
9014 | hppa*64*|ia64*) | ||
9015 | # +Z the default | ||
9016 | ;; | ||
9017 | *) | ||
9018 | lt_prog_compiler_pic='+Z' | ||
9019 | ;; | ||
9020 | esac | ||
9021 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
9022 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
9023 | ;; | ||
9024 | |||
9025 | irix5* | irix6* | nonstopux*) | ||
9026 | lt_prog_compiler_wl='-Wl,' | ||
9027 | # PIC (with -KPIC) is the default. | ||
9028 | lt_prog_compiler_static='-non_shared' | ||
9029 | ;; | ||
9030 | |||
9031 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9032 | case $cc_basename in | ||
9033 | # old Intel for x86_64 which still supported -KPIC. | ||
9034 | ecc*) | ||
9035 | lt_prog_compiler_wl='-Wl,' | ||
9036 | lt_prog_compiler_pic='-KPIC' | ||
9037 | lt_prog_compiler_static='-static' | ||
9038 | ;; | ||
9039 | # icc used to be incompatible with GCC. | ||
9040 | # ICC 10 doesn't accept -KPIC any more. | ||
9041 | icc* | ifort*) | ||
9042 | lt_prog_compiler_wl='-Wl,' | ||
9043 | lt_prog_compiler_pic='-fPIC' | ||
9044 | lt_prog_compiler_static='-static' | ||
9045 | ;; | ||
9046 | # Lahey Fortran 8.1. | ||
9047 | lf95*) | ||
9048 | lt_prog_compiler_wl='-Wl,' | ||
9049 | lt_prog_compiler_pic='--shared' | ||
9050 | lt_prog_compiler_static='--static' | ||
9051 | ;; | ||
9052 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
9053 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
9054 | # which looks to be a dead project) | ||
9055 | lt_prog_compiler_wl='-Wl,' | ||
9056 | lt_prog_compiler_pic='-fpic' | ||
9057 | lt_prog_compiler_static='-Bstatic' | ||
9058 | ;; | ||
9059 | ccc*) | ||
9060 | lt_prog_compiler_wl='-Wl,' | ||
9061 | # All Alpha code is PIC. | ||
9062 | lt_prog_compiler_static='-non_shared' | ||
9063 | ;; | ||
9064 | xl*) | ||
9065 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
9066 | lt_prog_compiler_wl='-Wl,' | ||
9067 | lt_prog_compiler_pic='-qpic' | ||
9068 | lt_prog_compiler_static='-qstaticlink' | ||
9069 | ;; | ||
9070 | *) | ||
9071 | case `$CC -V 2>&1 | sed 5q` in | ||
9072 | *Sun\ C*) | ||
9073 | # Sun C 5.9 | ||
9074 | lt_prog_compiler_pic='-KPIC' | ||
9075 | lt_prog_compiler_static='-Bstatic' | ||
9076 | lt_prog_compiler_wl='-Wl,' | ||
9077 | ;; | ||
9078 | *Sun\ F*) | ||
9079 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
9080 | lt_prog_compiler_pic='-KPIC' | ||
9081 | lt_prog_compiler_static='-Bstatic' | ||
9082 | lt_prog_compiler_wl='' | ||
9083 | ;; | ||
9084 | esac | ||
9085 | ;; | ||
9086 | esac | ||
9087 | ;; | ||
9088 | |||
9089 | newsos6) | ||
9090 | lt_prog_compiler_pic='-KPIC' | ||
9091 | lt_prog_compiler_static='-Bstatic' | ||
9092 | ;; | ||
9093 | |||
9094 | *nto* | *qnx*) | ||
9095 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
9096 | # it will coredump. | ||
9097 | lt_prog_compiler_pic='-fPIC -shared' | ||
9098 | ;; | ||
9099 | |||
9100 | osf3* | osf4* | osf5*) | ||
9101 | lt_prog_compiler_wl='-Wl,' | ||
9102 | # All OSF/1 code is PIC. | ||
9103 | lt_prog_compiler_static='-non_shared' | ||
9104 | ;; | ||
9105 | |||
9106 | rdos*) | ||
9107 | lt_prog_compiler_static='-non_shared' | ||
9108 | ;; | ||
9109 | |||
9110 | solaris*) | ||
9111 | lt_prog_compiler_pic='-KPIC' | ||
9112 | lt_prog_compiler_static='-Bstatic' | ||
9113 | case $cc_basename in | ||
9114 | f77* | f90* | f95*) | ||
9115 | lt_prog_compiler_wl='-Qoption ld ';; | ||
9116 | *) | ||
9117 | lt_prog_compiler_wl='-Wl,';; | ||
9118 | esac | ||
9119 | ;; | ||
9120 | |||
9121 | sunos4*) | ||
9122 | lt_prog_compiler_wl='-Qoption ld ' | ||
9123 | lt_prog_compiler_pic='-PIC' | ||
9124 | lt_prog_compiler_static='-Bstatic' | ||
9125 | ;; | ||
9126 | |||
9127 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
9128 | lt_prog_compiler_wl='-Wl,' | ||
9129 | lt_prog_compiler_pic='-KPIC' | ||
9130 | lt_prog_compiler_static='-Bstatic' | ||
9131 | ;; | ||
9132 | |||
9133 | sysv4*MP*) | ||
9134 | if test -d /usr/nec ;then | ||
9135 | lt_prog_compiler_pic='-Kconform_pic' | ||
9136 | lt_prog_compiler_static='-Bstatic' | ||
9137 | fi | ||
9138 | ;; | ||
9139 | |||
9140 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
9141 | lt_prog_compiler_wl='-Wl,' | ||
9142 | lt_prog_compiler_pic='-KPIC' | ||
9143 | lt_prog_compiler_static='-Bstatic' | ||
9144 | ;; | ||
9145 | |||
9146 | unicos*) | ||
9147 | lt_prog_compiler_wl='-Wl,' | ||
9148 | lt_prog_compiler_can_build_shared=no | ||
9149 | ;; | ||
9150 | |||
9151 | uts4*) | ||
9152 | lt_prog_compiler_pic='-pic' | ||
9153 | lt_prog_compiler_static='-Bstatic' | ||
9154 | ;; | ||
9155 | |||
9156 | *) | ||
9157 | lt_prog_compiler_can_build_shared=no | ||
9158 | ;; | ||
9159 | esac | ||
9160 | fi | ||
9161 | |||
9162 | case $host_os in | ||
9163 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
9164 | *djgpp*) | ||
9165 | lt_prog_compiler_pic= | ||
9166 | ;; | ||
9167 | *) | ||
9168 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
9169 | ;; | ||
9170 | esac | ||
9171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
9172 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
9173 | |||
9174 | |||
9175 | |||
9176 | |||
9177 | |||
9178 | |||
9179 | # | ||
9180 | # Check to make sure the PIC flag actually works. | ||
9181 | # | ||
9182 | if test -n "$lt_prog_compiler_pic"; then | ||
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
9184 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
9185 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
9186 | $as_echo_n "(cached) " >&6 | ||
9187 | else | ||
9188 | lt_cv_prog_compiler_pic_works=no | ||
9189 | ac_outfile=conftest.$ac_objext | ||
9190 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9191 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
9192 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9193 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9194 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9195 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9196 | # The option is referenced via a variable to avoid confusing sed. | ||
9197 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9198 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9199 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9200 | -e 's:$: $lt_compiler_flag:'` | ||
9201 | (eval echo "\"\$as_me:9201: $lt_compile\"" >&5) | ||
9202 | (eval "$lt_compile" 2>conftest.err) | ||
9203 | ac_status=$? | ||
9204 | cat conftest.err >&5 | ||
9205 | echo "$as_me:9205: \$? = $ac_status" >&5 | ||
9206 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
9207 | # The compiler can only warn and ignore the option if not recognized | ||
9208 | # So say no if there are warnings other than the usual output. | ||
9209 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
9210 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
9211 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
9212 | lt_cv_prog_compiler_pic_works=yes | ||
9213 | fi | ||
9214 | fi | ||
9215 | $RM conftest* | ||
9216 | |||
9217 | fi | ||
9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
9219 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
9220 | |||
9221 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
9222 | case $lt_prog_compiler_pic in | ||
9223 | "" | " "*) ;; | ||
9224 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
9225 | esac | ||
9226 | else | ||
9227 | lt_prog_compiler_pic= | ||
9228 | lt_prog_compiler_can_build_shared=no | ||
9229 | fi | ||
9230 | |||
9231 | fi | ||
9232 | |||
9233 | |||
9234 | |||
9235 | |||
9236 | |||
9237 | |||
9238 | # | ||
9239 | # Check to make sure the static flag actually works. | ||
9240 | # | ||
9241 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
9243 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
9244 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
9245 | $as_echo_n "(cached) " >&6 | ||
9246 | else | ||
9247 | lt_cv_prog_compiler_static_works=no | ||
9248 | save_LDFLAGS="$LDFLAGS" | ||
9249 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
9250 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
9251 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
9252 | # The linker can only warn and ignore the option if not recognized | ||
9253 | # So say no if there are warnings | ||
9254 | if test -s conftest.err; then | ||
9255 | # Append any errors to the config.log. | ||
9256 | cat conftest.err 1>&5 | ||
9257 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
9258 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
9259 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
9260 | lt_cv_prog_compiler_static_works=yes | ||
9261 | fi | ||
9262 | else | ||
9263 | lt_cv_prog_compiler_static_works=yes | ||
9264 | fi | ||
9265 | fi | ||
9266 | $RM -r conftest* | ||
9267 | LDFLAGS="$save_LDFLAGS" | ||
9268 | |||
9269 | fi | ||
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
9271 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
9272 | |||
9273 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
9274 | : | ||
9275 | else | ||
9276 | lt_prog_compiler_static= | ||
9277 | fi | ||
9278 | |||
9279 | |||
9280 | |||
9281 | |||
9282 | |||
9283 | |||
9284 | |||
9285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
9286 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
9287 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
9288 | $as_echo_n "(cached) " >&6 | ||
9289 | else | ||
9290 | lt_cv_prog_compiler_c_o=no | ||
9291 | $RM -r conftest 2>/dev/null | ||
9292 | mkdir conftest | ||
9293 | cd conftest | ||
9294 | mkdir out | ||
9295 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9296 | |||
9297 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
9298 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9299 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9300 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9301 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9302 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9303 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9304 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9305 | -e 's:$: $lt_compiler_flag:'` | ||
9306 | (eval echo "\"\$as_me:9306: $lt_compile\"" >&5) | ||
9307 | (eval "$lt_compile" 2>out/conftest.err) | ||
9308 | ac_status=$? | ||
9309 | cat out/conftest.err >&5 | ||
9310 | echo "$as_me:9310: \$? = $ac_status" >&5 | ||
9311 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
9312 | then | ||
9313 | # The compiler can only warn and ignore the option if not recognized | ||
9314 | # So say no if there are warnings | ||
9315 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
9316 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
9317 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
9318 | lt_cv_prog_compiler_c_o=yes | ||
9319 | fi | ||
9320 | fi | ||
9321 | chmod u+w . 2>&5 | ||
9322 | $RM conftest* | ||
9323 | # SGI C++ compiler will create directory out/ii_files/ for | ||
9324 | # template instantiation | ||
9325 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
9326 | $RM out/* && rmdir out | ||
9327 | cd .. | ||
9328 | $RM -r conftest | ||
9329 | $RM conftest* | ||
9330 | |||
9331 | fi | ||
9332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
9333 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
9334 | |||
9335 | |||
9336 | |||
9337 | |||
9338 | |||
9339 | |||
9340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
9341 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
9342 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
9343 | $as_echo_n "(cached) " >&6 | ||
9344 | else | ||
9345 | lt_cv_prog_compiler_c_o=no | ||
9346 | $RM -r conftest 2>/dev/null | ||
9347 | mkdir conftest | ||
9348 | cd conftest | ||
9349 | mkdir out | ||
9350 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9351 | |||
9352 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
9353 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9354 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9355 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9356 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9357 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9358 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9359 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9360 | -e 's:$: $lt_compiler_flag:'` | ||
9361 | (eval echo "\"\$as_me:9361: $lt_compile\"" >&5) | ||
9362 | (eval "$lt_compile" 2>out/conftest.err) | ||
9363 | ac_status=$? | ||
9364 | cat out/conftest.err >&5 | ||
9365 | echo "$as_me:9365: \$? = $ac_status" >&5 | ||
9366 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
9367 | then | ||
9368 | # The compiler can only warn and ignore the option if not recognized | ||
9369 | # So say no if there are warnings | ||
9370 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
9371 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
9372 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
9373 | lt_cv_prog_compiler_c_o=yes | ||
9374 | fi | ||
9375 | fi | ||
9376 | chmod u+w . 2>&5 | ||
9377 | $RM conftest* | ||
9378 | # SGI C++ compiler will create directory out/ii_files/ for | ||
9379 | # template instantiation | ||
9380 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
9381 | $RM out/* && rmdir out | ||
9382 | cd .. | ||
9383 | $RM -r conftest | ||
9384 | $RM conftest* | ||
9385 | |||
9386 | fi | ||
9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
9388 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
9389 | |||
9390 | |||
9391 | |||
9392 | |||
9393 | hard_links="nottested" | ||
9394 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
9395 | # do not overwrite the value of need_locks provided by the user | ||
9396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
9397 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
9398 | hard_links=yes | ||
9399 | $RM conftest* | ||
9400 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
9401 | touch conftest.a | ||
9402 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
9403 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
9405 | $as_echo "$hard_links" >&6; } | ||
9406 | if test "$hard_links" = no; then | ||
9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
9408 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
9409 | need_locks=warn | ||
9410 | fi | ||
9411 | else | ||
9412 | need_locks=no | ||
9413 | fi | ||
9414 | |||
9415 | |||
9416 | |||
9417 | |||
9418 | |||
9419 | |||
9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
9421 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
9422 | |||
9423 | runpath_var= | ||
9424 | allow_undefined_flag= | ||
9425 | always_export_symbols=no | ||
9426 | archive_cmds= | ||
9427 | archive_expsym_cmds= | ||
9428 | compiler_needs_object=no | ||
9429 | enable_shared_with_static_runtimes=no | ||
9430 | export_dynamic_flag_spec= | ||
9431 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
9432 | hardcode_automatic=no | ||
9433 | hardcode_direct=no | ||
9434 | hardcode_direct_absolute=no | ||
9435 | hardcode_libdir_flag_spec= | ||
9436 | hardcode_libdir_flag_spec_ld= | ||
9437 | hardcode_libdir_separator= | ||
9438 | hardcode_minus_L=no | ||
9439 | hardcode_shlibpath_var=unsupported | ||
9440 | inherit_rpath=no | ||
9441 | link_all_deplibs=unknown | ||
9442 | module_cmds= | ||
9443 | module_expsym_cmds= | ||
9444 | old_archive_from_new_cmds= | ||
9445 | old_archive_from_expsyms_cmds= | ||
9446 | thread_safe_flag_spec= | ||
9447 | whole_archive_flag_spec= | ||
9448 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
9449 | # included in the symbol list | ||
9450 | include_expsyms= | ||
9451 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
9452 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
9453 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
9454 | # as well as any symbol that contains `d'. | ||
9455 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
9456 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
9457 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
9458 | # the symbol is explicitly referenced. Since portable code cannot | ||
9459 | # rely on this symbol name, it's probably fine to never include it in | ||
9460 | # preloaded symbol tables. | ||
9461 | # Exclude shared library initialization/finalization symbols. | ||
9462 | extract_expsyms_cmds= | ||
9463 | |||
9464 | case $host_os in | ||
9465 | cygwin* | mingw* | pw32* | cegcc*) | ||
9466 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
9467 | # When not using gcc, we currently assume that we are using | ||
9468 | # Microsoft Visual C++. | ||
9469 | if test "$GCC" != yes; then | ||
9470 | with_gnu_ld=no | ||
9471 | fi | ||
9472 | ;; | ||
9473 | interix*) | ||
9474 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
9475 | with_gnu_ld=yes | ||
9476 | ;; | ||
9477 | openbsd*) | ||
9478 | with_gnu_ld=no | ||
9479 | ;; | ||
9480 | linux* | k*bsd*-gnu) | ||
9481 | link_all_deplibs=no | ||
9482 | ;; | ||
9483 | esac | ||
9484 | |||
9485 | ld_shlibs=yes | ||
9486 | if test "$with_gnu_ld" = yes; then | ||
9487 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
9488 | wlarc='${wl}' | ||
9489 | |||
9490 | # Set some defaults for GNU ld with shared library support. These | ||
9491 | # are reset later if shared libraries are not supported. Putting them | ||
9492 | # here allows them to be overridden if necessary. | ||
9493 | runpath_var=LD_RUN_PATH | ||
9494 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9495 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
9496 | # ancient GNU ld didn't support --whole-archive et. al. | ||
9497 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
9498 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
9499 | else | ||
9500 | whole_archive_flag_spec= | ||
9501 | fi | ||
9502 | supports_anon_versioning=no | ||
9503 | case `$LD -v 2>&1` in | ||
9504 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
9505 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
9506 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
9507 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
9508 | *\ 2.11.*) ;; # other 2.11 versions | ||
9509 | *) supports_anon_versioning=yes ;; | ||
9510 | esac | ||
9511 | |||
9512 | # See if GNU ld supports shared libraries. | ||
9513 | case $host_os in | ||
9514 | aix[3-9]*) | ||
9515 | # On AIX/PPC, the GNU linker is very broken | ||
9516 | if test "$host_cpu" != ia64; then | ||
9517 | ld_shlibs=no | ||
9518 | cat <<_LT_EOF 1>&2 | ||
9519 | |||
9520 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
9521 | *** to be unable to reliably create shared libraries on AIX. | ||
9522 | *** Therefore, libtool is disabling shared libraries support. If you | ||
9523 | *** really care for shared libraries, you may want to modify your PATH | ||
9524 | *** so that a non-GNU linker is found, and then restart. | ||
9525 | |||
9526 | _LT_EOF | ||
9527 | fi | ||
9528 | ;; | ||
9529 | |||
9530 | amigaos*) | ||
9531 | case $host_cpu in | ||
9532 | powerpc) | ||
9533 | # see comment about AmigaOS4 .so support | ||
9534 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9535 | archive_expsym_cmds='' | ||
9536 | ;; | ||
9537 | m68k) | ||
9538 | 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)' | ||
9539 | hardcode_libdir_flag_spec='-L$libdir' | ||
9540 | hardcode_minus_L=yes | ||
9541 | ;; | ||
9542 | esac | ||
9543 | ;; | ||
9544 | |||
9545 | beos*) | ||
9546 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9547 | allow_undefined_flag=unsupported | ||
9548 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
9549 | # support --undefined. This deserves some investigation. FIXME | ||
9550 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9551 | else | ||
9552 | ld_shlibs=no | ||
9553 | fi | ||
9554 | ;; | ||
9555 | |||
9556 | cygwin* | mingw* | pw32* | cegcc*) | ||
9557 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
9558 | # as there is no search path for DLLs. | ||
9559 | hardcode_libdir_flag_spec='-L$libdir' | ||
9560 | allow_undefined_flag=unsupported | ||
9561 | always_export_symbols=no | ||
9562 | enable_shared_with_static_runtimes=yes | ||
9563 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
9564 | |||
9565 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
9566 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9567 | # If the export-symbols file already is a .def file (1st line | ||
9568 | # is EXPORTS), use it as is; otherwise, prepend... | ||
9569 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9570 | cp $export_symbols $output_objdir/$soname.def; | ||
9571 | else | ||
9572 | echo EXPORTS > $output_objdir/$soname.def; | ||
9573 | cat $export_symbols >> $output_objdir/$soname.def; | ||
9574 | fi~ | ||
9575 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9576 | else | ||
9577 | ld_shlibs=no | ||
9578 | fi | ||
9579 | ;; | ||
9580 | |||
9581 | interix[3-9]*) | ||
9582 | hardcode_direct=no | ||
9583 | hardcode_shlibpath_var=no | ||
9584 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9585 | export_dynamic_flag_spec='${wl}-E' | ||
9586 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
9587 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
9588 | # default) and relocated if they conflict, which is a slow very memory | ||
9589 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
9590 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
9591 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
9592 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
9593 | 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' | ||
9594 | ;; | ||
9595 | |||
9596 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9597 | tmp_diet=no | ||
9598 | if test "$host_os" = linux-dietlibc; then | ||
9599 | case $cc_basename in | ||
9600 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
9601 | esac | ||
9602 | fi | ||
9603 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
9604 | && test "$tmp_diet" = no | ||
9605 | then | ||
9606 | tmp_addflag= | ||
9607 | tmp_sharedflag='-shared' | ||
9608 | case $cc_basename,$host_cpu in | ||
9609 | pgcc*) # Portland Group C compiler | ||
9610 | 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' | ||
9611 | tmp_addflag=' $pic_flag' | ||
9612 | ;; | ||
9613 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
9614 | 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' | ||
9615 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
9616 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
9617 | tmp_addflag=' -i_dynamic' ;; | ||
9618 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
9619 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
9620 | ifc* | ifort*) # Intel Fortran compiler | ||
9621 | tmp_addflag=' -nofor_main' ;; | ||
9622 | lf95*) # Lahey Fortran 8.1 | ||
9623 | whole_archive_flag_spec= | ||
9624 | tmp_sharedflag='--shared' ;; | ||
9625 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
9626 | tmp_sharedflag='-qmkshrobj' | ||
9627 | tmp_addflag= ;; | ||
9628 | esac | ||
9629 | case `$CC -V 2>&1 | sed 5q` in | ||
9630 | *Sun\ C*) # Sun C 5.9 | ||
9631 | 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' | ||
9632 | compiler_needs_object=yes | ||
9633 | tmp_sharedflag='-G' ;; | ||
9634 | *Sun\ F*) # Sun Fortran 8.3 | ||
9635 | tmp_sharedflag='-G' ;; | ||
9636 | esac | ||
9637 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9638 | |||
9639 | if test "x$supports_anon_versioning" = xyes; then | ||
9640 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9641 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9642 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9643 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
9644 | fi | ||
9645 | |||
9646 | case $cc_basename in | ||
9647 | xlf*) | ||
9648 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
9649 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
9650 | hardcode_libdir_flag_spec= | ||
9651 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
9652 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
9653 | if test "x$supports_anon_versioning" = xyes; then | ||
9654 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9655 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9656 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9657 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
9658 | fi | ||
9659 | ;; | ||
9660 | esac | ||
9661 | else | ||
9662 | ld_shlibs=no | ||
9663 | fi | ||
9664 | ;; | ||
9665 | |||
9666 | netbsd* | netbsdelf*-gnu) | ||
9667 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9668 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
9669 | wlarc= | ||
9670 | else | ||
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 | fi | ||
9674 | ;; | ||
9675 | |||
9676 | solaris*) | ||
9677 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
9678 | ld_shlibs=no | ||
9679 | cat <<_LT_EOF 1>&2 | ||
9680 | |||
9681 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
9682 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
9683 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9684 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
9685 | *** your PATH or compiler configuration so that the native linker is | ||
9686 | *** used, and then restart. | ||
9687 | |||
9688 | _LT_EOF | ||
9689 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9690 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9691 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9692 | else | ||
9693 | ld_shlibs=no | ||
9694 | fi | ||
9695 | ;; | ||
9696 | |||
9697 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
9698 | case `$LD -v 2>&1` in | ||
9699 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
9700 | ld_shlibs=no | ||
9701 | cat <<_LT_EOF 1>&2 | ||
9702 | |||
9703 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
9704 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
9705 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9706 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
9707 | *** your PATH or compiler configuration so that the native linker is | ||
9708 | *** used, and then restart. | ||
9709 | |||
9710 | _LT_EOF | ||
9711 | ;; | ||
9712 | *) | ||
9713 | # For security reasons, it is highly recommended that you always | ||
9714 | # use absolute paths for naming shared libraries, and exclude the | ||
9715 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
9716 | # requires that you compile everything twice, which is a pain. | ||
9717 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9718 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9719 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9720 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9721 | else | ||
9722 | ld_shlibs=no | ||
9723 | fi | ||
9724 | ;; | ||
9725 | esac | ||
9726 | ;; | ||
9727 | |||
9728 | sunos4*) | ||
9729 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9730 | wlarc= | ||
9731 | hardcode_direct=yes | ||
9732 | hardcode_shlibpath_var=no | ||
9733 | ;; | ||
9734 | |||
9735 | *) | ||
9736 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9737 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9738 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9739 | else | ||
9740 | ld_shlibs=no | ||
9741 | fi | ||
9742 | ;; | ||
9743 | esac | ||
9744 | |||
9745 | if test "$ld_shlibs" = no; then | ||
9746 | runpath_var= | ||
9747 | hardcode_libdir_flag_spec= | ||
9748 | export_dynamic_flag_spec= | ||
9749 | whole_archive_flag_spec= | ||
9750 | fi | ||
9751 | else | ||
9752 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
9753 | case $host_os in | ||
9754 | aix3*) | ||
9755 | allow_undefined_flag=unsupported | ||
9756 | always_export_symbols=yes | ||
9757 | 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' | ||
9758 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
9759 | # are no directories specified by -L. | ||
9760 | hardcode_minus_L=yes | ||
9761 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
9762 | # Neither direct hardcoding nor static linking is supported with a | ||
9763 | # broken collect2. | ||
9764 | hardcode_direct=unsupported | ||
9765 | fi | ||
9766 | ;; | ||
9767 | |||
9768 | aix[4-9]*) | ||
9769 | if test "$host_cpu" = ia64; then | ||
9770 | # On IA64, the linker does run time linking by default, so we don't | ||
9771 | # have to do anything special. | ||
9772 | aix_use_runtimelinking=no | ||
9773 | exp_sym_flag='-Bexport' | ||
9774 | no_entry_flag="" | ||
9775 | else | ||
9776 | # If we're using GNU nm, then we don't want the "-C" option. | ||
9777 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
9778 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
9779 | 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' | ||
9780 | else | ||
9781 | 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' | ||
9782 | fi | ||
9783 | aix_use_runtimelinking=no | ||
9784 | |||
9785 | # Test if we are trying to use run time linking or normal | ||
9786 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
9787 | # need to do runtime linking. | ||
9788 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
9789 | for ld_flag in $LDFLAGS; do | ||
9790 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
9791 | aix_use_runtimelinking=yes | ||
9792 | break | ||
9793 | fi | ||
9794 | done | ||
9795 | ;; | ||
9796 | esac | ||
9797 | |||
9798 | exp_sym_flag='-bexport' | ||
9799 | no_entry_flag='-bnoentry' | ||
9800 | fi | ||
9801 | |||
9802 | # When large executables or shared objects are built, AIX ld can | ||
9803 | # have problems creating the table of contents. If linking a library | ||
9804 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
9805 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
9806 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
9807 | |||
9808 | archive_cmds='' | ||
9809 | hardcode_direct=yes | ||
9810 | hardcode_direct_absolute=yes | ||
9811 | hardcode_libdir_separator=':' | ||
9812 | link_all_deplibs=yes | ||
9813 | file_list_spec='${wl}-f,' | ||
9814 | |||
9815 | if test "$GCC" = yes; then | ||
9816 | case $host_os in aix4.[012]|aix4.[012].*) | ||
9817 | # We only want to do this on AIX 4.2 and lower, the check | ||
9818 | # below for broken collect2 doesn't work under 4.3+ | ||
9819 | collect2name=`${CC} -print-prog-name=collect2` | ||
9820 | if test -f "$collect2name" && | ||
9821 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
9822 | then | ||
9823 | # We have reworked collect2 | ||
9824 | : | ||
9825 | else | ||
9826 | # We have old collect2 | ||
9827 | hardcode_direct=unsupported | ||
9828 | # It fails to find uninstalled libraries when the uninstalled | ||
9829 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
9830 | # to unsupported forces relinking | ||
9831 | hardcode_minus_L=yes | ||
9832 | hardcode_libdir_flag_spec='-L$libdir' | ||
9833 | hardcode_libdir_separator= | ||
9834 | fi | ||
9835 | ;; | ||
9836 | esac | ||
9837 | shared_flag='-shared' | ||
9838 | if test "$aix_use_runtimelinking" = yes; then | ||
9839 | shared_flag="$shared_flag "'${wl}-G' | ||
9840 | fi | ||
9841 | link_all_deplibs=no | ||
9842 | else | ||
9843 | # not using gcc | ||
9844 | if test "$host_cpu" = ia64; then | ||
9845 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
9846 | # chokes on -Wl,-G. The following line is correct: | ||
9847 | shared_flag='-G' | ||
9848 | else | ||
9849 | if test "$aix_use_runtimelinking" = yes; then | ||
9850 | shared_flag='${wl}-G' | ||
9851 | else | ||
9852 | shared_flag='${wl}-bM:SRE' | ||
9853 | fi | ||
9854 | fi | ||
9855 | fi | ||
9856 | |||
9857 | export_dynamic_flag_spec='${wl}-bexpall' | ||
9858 | # It seems that -bexpall does not export symbols beginning with | ||
9859 | # underscore (_), so it is better to generate a list of symbols to export. | ||
9860 | always_export_symbols=yes | ||
9861 | if test "$aix_use_runtimelinking" = yes; then | ||
9862 | # Warning - without using the other runtime loading flags (-brtl), | ||
9863 | # -berok will link without error, but may produce a broken library. | ||
9864 | allow_undefined_flag='-berok' | ||
9865 | # Determine the default libpath from the value encoded in an | ||
9866 | # empty executable. | ||
9867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9868 | /* end confdefs.h. */ | ||
9869 | |||
9870 | int | ||
9871 | main () | ||
9872 | { | ||
9873 | |||
9874 | ; | ||
9875 | return 0; | ||
9876 | } | ||
9877 | _ACEOF | ||
9878 | if ac_fn_c_try_link "$LINENO"; then : | ||
9879 | |||
9880 | lt_aix_libpath_sed=' | ||
9881 | /Import File Strings/,/^$/ { | ||
9882 | /^0/ { | ||
9883 | s/^0 *\(.*\)$/\1/ | ||
9884 | p | ||
9885 | } | ||
9886 | }' | ||
9887 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9888 | # Check for a 64-bit object if we didn't find anything. | ||
9889 | if test -z "$aix_libpath"; then | ||
9890 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9891 | fi | ||
9892 | fi | ||
9893 | rm -f core conftest.err conftest.$ac_objext \ | ||
9894 | conftest$ac_exeext conftest.$ac_ext | ||
9895 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9896 | |||
9897 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9898 | 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" | ||
9899 | else | ||
9900 | if test "$host_cpu" = ia64; then | ||
9901 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
9902 | allow_undefined_flag="-z nodefs" | ||
9903 | 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" | ||
9904 | else | ||
9905 | # Determine the default libpath from the value encoded in an | ||
9906 | # empty executable. | ||
9907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9908 | /* end confdefs.h. */ | ||
9909 | |||
9910 | int | ||
9911 | main () | ||
9912 | { | ||
9913 | |||
9914 | ; | ||
9915 | return 0; | ||
9916 | } | ||
9917 | _ACEOF | ||
9918 | if ac_fn_c_try_link "$LINENO"; then : | ||
9919 | |||
9920 | lt_aix_libpath_sed=' | ||
9921 | /Import File Strings/,/^$/ { | ||
9922 | /^0/ { | ||
9923 | s/^0 *\(.*\)$/\1/ | ||
9924 | p | ||
9925 | } | ||
9926 | }' | ||
9927 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9928 | # Check for a 64-bit object if we didn't find anything. | ||
9929 | if test -z "$aix_libpath"; then | ||
9930 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9931 | fi | ||
9932 | fi | ||
9933 | rm -f core conftest.err conftest.$ac_objext \ | ||
9934 | conftest$ac_exeext conftest.$ac_ext | ||
9935 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9936 | |||
9937 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9938 | # Warning - without using the other run time loading flags, | ||
9939 | # -berok will link without error, but may produce a broken library. | ||
9940 | no_undefined_flag=' ${wl}-bernotok' | ||
9941 | allow_undefined_flag=' ${wl}-berok' | ||
9942 | # Exported symbols can be pulled into shared objects from archives | ||
9943 | whole_archive_flag_spec='$convenience' | ||
9944 | archive_cmds_need_lc=yes | ||
9945 | # This is similar to how AIX traditionally builds its shared libraries. | ||
9946 | 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' | ||
9947 | fi | ||
9948 | fi | ||
9949 | ;; | ||
9950 | |||
9951 | amigaos*) | ||
9952 | case $host_cpu in | ||
9953 | powerpc) | ||
9954 | # see comment about AmigaOS4 .so support | ||
9955 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9956 | archive_expsym_cmds='' | ||
9957 | ;; | ||
9958 | m68k) | ||
9959 | 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)' | ||
9960 | hardcode_libdir_flag_spec='-L$libdir' | ||
9961 | hardcode_minus_L=yes | ||
9962 | ;; | ||
9963 | esac | ||
9964 | ;; | ||
9965 | |||
9966 | bsdi[45]*) | ||
9967 | export_dynamic_flag_spec=-rdynamic | ||
9968 | ;; | ||
9969 | |||
9970 | cygwin* | mingw* | pw32* | cegcc*) | ||
9971 | # When not using gcc, we currently assume that we are using | ||
9972 | # Microsoft Visual C++. | ||
9973 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
9974 | # no search path for DLLs. | ||
9975 | hardcode_libdir_flag_spec=' ' | ||
9976 | allow_undefined_flag=unsupported | ||
9977 | # Tell ltmain to make .lib files, not .a files. | ||
9978 | libext=lib | ||
9979 | # Tell ltmain to make .dll files, not .so files. | ||
9980 | shrext_cmds=".dll" | ||
9981 | # FIXME: Setting linknames here is a bad hack. | ||
9982 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
9983 | # The linker will automatically build a .lib file if we build a DLL. | ||
9984 | old_archive_from_new_cmds='true' | ||
9985 | # FIXME: Should let the user specify the lib program. | ||
9986 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
9987 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
9988 | enable_shared_with_static_runtimes=yes | ||
9989 | ;; | ||
9990 | |||
9991 | darwin* | rhapsody*) | ||
9992 | |||
9993 | |||
9994 | archive_cmds_need_lc=no | ||
9995 | hardcode_direct=no | ||
9996 | hardcode_automatic=yes | ||
9997 | hardcode_shlibpath_var=unsupported | ||
9998 | whole_archive_flag_spec='' | ||
9999 | link_all_deplibs=yes | ||
10000 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
10001 | case $cc_basename in | ||
10002 | ifort*) _lt_dar_can_shared=yes ;; | ||
10003 | *) _lt_dar_can_shared=$GCC ;; | ||
10004 | esac | ||
10005 | if test "$_lt_dar_can_shared" = "yes"; then | ||
10006 | output_verbose_link_cmd=echo | ||
10007 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
10008 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
10009 | 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}" | ||
10010 | 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}" | ||
10011 | |||
10012 | else | ||
10013 | ld_shlibs=no | ||
10014 | fi | ||
10015 | |||
10016 | ;; | ||
10017 | |||
10018 | dgux*) | ||
10019 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10020 | hardcode_libdir_flag_spec='-L$libdir' | ||
10021 | hardcode_shlibpath_var=no | ||
10022 | ;; | ||
10023 | |||
10024 | freebsd1*) | ||
10025 | ld_shlibs=no | ||
10026 | ;; | ||
10027 | |||
10028 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
10029 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
10030 | # does not break anything, and helps significantly (at the cost of a little | ||
10031 | # extra space). | ||
10032 | freebsd2.2*) | ||
10033 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
10034 | hardcode_libdir_flag_spec='-R$libdir' | ||
10035 | hardcode_direct=yes | ||
10036 | hardcode_shlibpath_var=no | ||
10037 | ;; | ||
10038 | |||
10039 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
10040 | freebsd2*) | ||
10041 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
10042 | hardcode_direct=yes | ||
10043 | hardcode_minus_L=yes | ||
10044 | hardcode_shlibpath_var=no | ||
10045 | ;; | ||
10046 | |||
10047 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
10048 | freebsd* | dragonfly*) | ||
10049 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
10050 | hardcode_libdir_flag_spec='-R$libdir' | ||
10051 | hardcode_direct=yes | ||
10052 | hardcode_shlibpath_var=no | ||
10053 | ;; | ||
10054 | |||
10055 | hpux9*) | ||
10056 | if test "$GCC" = yes; then | ||
10057 | 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' | ||
10058 | else | ||
10059 | 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' | ||
10060 | fi | ||
10061 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10062 | hardcode_libdir_separator=: | ||
10063 | hardcode_direct=yes | ||
10064 | |||
10065 | # hardcode_minus_L: Not really in the search PATH, | ||
10066 | # but as the default location of the library. | ||
10067 | hardcode_minus_L=yes | ||
10068 | export_dynamic_flag_spec='${wl}-E' | ||
10069 | ;; | ||
10070 | |||
10071 | hpux10*) | ||
10072 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
10073 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10074 | else | ||
10075 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
10076 | fi | ||
10077 | if test "$with_gnu_ld" = no; then | ||
10078 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10079 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
10080 | hardcode_libdir_separator=: | ||
10081 | hardcode_direct=yes | ||
10082 | hardcode_direct_absolute=yes | ||
10083 | export_dynamic_flag_spec='${wl}-E' | ||
10084 | # hardcode_minus_L: Not really in the search PATH, | ||
10085 | # but as the default location of the library. | ||
10086 | hardcode_minus_L=yes | ||
10087 | fi | ||
10088 | ;; | ||
10089 | |||
10090 | hpux11*) | ||
10091 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
10092 | case $host_cpu in | ||
10093 | hppa*64*) | ||
10094 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10095 | ;; | ||
10096 | ia64*) | ||
10097 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
10098 | ;; | ||
10099 | *) | ||
10100 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10101 | ;; | ||
10102 | esac | ||
10103 | else | ||
10104 | case $host_cpu in | ||
10105 | hppa*64*) | ||
10106 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10107 | ;; | ||
10108 | ia64*) | ||
10109 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
10110 | ;; | ||
10111 | *) | ||
10112 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10113 | ;; | ||
10114 | esac | ||
10115 | fi | ||
10116 | if test "$with_gnu_ld" = no; then | ||
10117 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10118 | hardcode_libdir_separator=: | ||
10119 | |||
10120 | case $host_cpu in | ||
10121 | hppa*64*|ia64*) | ||
10122 | hardcode_direct=no | ||
10123 | hardcode_shlibpath_var=no | ||
10124 | ;; | ||
10125 | *) | ||
10126 | hardcode_direct=yes | ||
10127 | hardcode_direct_absolute=yes | ||
10128 | export_dynamic_flag_spec='${wl}-E' | ||
10129 | |||
10130 | # hardcode_minus_L: Not really in the search PATH, | ||
10131 | # but as the default location of the library. | ||
10132 | hardcode_minus_L=yes | ||
10133 | ;; | ||
10134 | esac | ||
10135 | fi | ||
10136 | ;; | ||
10137 | |||
10138 | irix5* | irix6* | nonstopux*) | ||
10139 | if test "$GCC" = yes; then | ||
10140 | 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' | ||
10141 | # Try to use the -exported_symbol ld option, if it does not | ||
10142 | # work, assume that -exports_file does not work either and | ||
10143 | # implicitly export all symbols. | ||
10144 | save_LDFLAGS="$LDFLAGS" | ||
10145 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
10146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10147 | /* end confdefs.h. */ | ||
10148 | int foo(void) {} | ||
10149 | _ACEOF | ||
10150 | if ac_fn_c_try_link "$LINENO"; then : | ||
10151 | 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' | ||
10152 | |||
10153 | fi | ||
10154 | rm -f core conftest.err conftest.$ac_objext \ | ||
10155 | conftest$ac_exeext conftest.$ac_ext | ||
10156 | LDFLAGS="$save_LDFLAGS" | ||
10157 | else | ||
10158 | 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' | ||
10159 | 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' | ||
10160 | fi | ||
10161 | archive_cmds_need_lc='no' | ||
10162 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10163 | hardcode_libdir_separator=: | ||
10164 | inherit_rpath=yes | ||
10165 | link_all_deplibs=yes | ||
10166 | ;; | ||
10167 | |||
10168 | netbsd* | netbsdelf*-gnu) | ||
10169 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
10170 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
10171 | else | ||
10172 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
10173 | fi | ||
10174 | hardcode_libdir_flag_spec='-R$libdir' | ||
10175 | hardcode_direct=yes | ||
10176 | hardcode_shlibpath_var=no | ||
10177 | ;; | ||
10178 | |||
10179 | newsos6) | ||
10180 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10181 | hardcode_direct=yes | ||
10182 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10183 | hardcode_libdir_separator=: | ||
10184 | hardcode_shlibpath_var=no | ||
10185 | ;; | ||
10186 | |||
10187 | *nto* | *qnx*) | ||
10188 | ;; | ||
10189 | |||
10190 | openbsd*) | ||
10191 | if test -f /usr/libexec/ld.so; then | ||
10192 | hardcode_direct=yes | ||
10193 | hardcode_shlibpath_var=no | ||
10194 | hardcode_direct_absolute=yes | ||
10195 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
10196 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
10197 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
10198 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
10199 | export_dynamic_flag_spec='${wl}-E' | ||
10200 | else | ||
10201 | case $host_os in | ||
10202 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
10203 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
10204 | hardcode_libdir_flag_spec='-R$libdir' | ||
10205 | ;; | ||
10206 | *) | ||
10207 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
10208 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
10209 | ;; | ||
10210 | esac | ||
10211 | fi | ||
10212 | else | ||
10213 | ld_shlibs=no | ||
10214 | fi | ||
10215 | ;; | ||
10216 | |||
10217 | os2*) | ||
10218 | hardcode_libdir_flag_spec='-L$libdir' | ||
10219 | hardcode_minus_L=yes | ||
10220 | allow_undefined_flag=unsupported | ||
10221 | 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' | ||
10222 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
10223 | ;; | ||
10224 | |||
10225 | osf3*) | ||
10226 | if test "$GCC" = yes; then | ||
10227 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
10228 | 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' | ||
10229 | else | ||
10230 | allow_undefined_flag=' -expect_unresolved \*' | ||
10231 | 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' | ||
10232 | fi | ||
10233 | archive_cmds_need_lc='no' | ||
10234 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10235 | hardcode_libdir_separator=: | ||
10236 | ;; | ||
10237 | |||
10238 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
10239 | if test "$GCC" = yes; then | ||
10240 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
10241 | 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' | ||
10242 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10243 | else | ||
10244 | allow_undefined_flag=' -expect_unresolved \*' | ||
10245 | 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' | ||
10246 | 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~ | ||
10247 | $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' | ||
10248 | |||
10249 | # Both c and cxx compiler support -rpath directly | ||
10250 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
10251 | fi | ||
10252 | archive_cmds_need_lc='no' | ||
10253 | hardcode_libdir_separator=: | ||
10254 | ;; | ||
10255 | |||
10256 | solaris*) | ||
10257 | no_undefined_flag=' -z defs' | ||
10258 | if test "$GCC" = yes; then | ||
10259 | wlarc='${wl}' | ||
10260 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10261 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10262 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
10263 | else | ||
10264 | case `$CC -V 2>&1` in | ||
10265 | *"Compilers 5.0"*) | ||
10266 | wlarc='' | ||
10267 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10268 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10269 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
10270 | ;; | ||
10271 | *) | ||
10272 | wlarc='${wl}' | ||
10273 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10274 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10275 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
10276 | ;; | ||
10277 | esac | ||
10278 | fi | ||
10279 | hardcode_libdir_flag_spec='-R$libdir' | ||
10280 | hardcode_shlibpath_var=no | ||
10281 | case $host_os in | ||
10282 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
10283 | *) | ||
10284 | # The compiler driver will combine and reorder linker options, | ||
10285 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
10286 | # but is careful enough not to reorder. | ||
10287 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
10288 | if test "$GCC" = yes; then | ||
10289 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
10290 | else | ||
10291 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
10292 | fi | ||
10293 | ;; | ||
10294 | esac | ||
10295 | link_all_deplibs=yes | ||
10296 | ;; | ||
10297 | |||
10298 | sunos4*) | ||
10299 | if test "x$host_vendor" = xsequent; then | ||
10300 | # Use $CC to link under sequent, because it throws in some extra .o | ||
10301 | # files that make .init and .fini sections work. | ||
10302 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10303 | else | ||
10304 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
10305 | fi | ||
10306 | hardcode_libdir_flag_spec='-L$libdir' | ||
10307 | hardcode_direct=yes | ||
10308 | hardcode_minus_L=yes | ||
10309 | hardcode_shlibpath_var=no | ||
10310 | ;; | ||
10311 | |||
10312 | sysv4) | ||
10313 | case $host_vendor in | ||
10314 | sni) | ||
10315 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10316 | hardcode_direct=yes # is this really true??? | ||
10317 | ;; | ||
10318 | siemens) | ||
10319 | ## LD is ld it makes a PLAMLIB | ||
10320 | ## CC just makes a GrossModule. | ||
10321 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
10322 | reload_cmds='$CC -r -o $output$reload_objs' | ||
10323 | hardcode_direct=no | ||
10324 | ;; | ||
10325 | motorola) | ||
10326 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10327 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
10328 | ;; | ||
10329 | esac | ||
10330 | runpath_var='LD_RUN_PATH' | ||
10331 | hardcode_shlibpath_var=no | ||
10332 | ;; | ||
10333 | |||
10334 | sysv4.3*) | ||
10335 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10336 | hardcode_shlibpath_var=no | ||
10337 | export_dynamic_flag_spec='-Bexport' | ||
10338 | ;; | ||
10339 | |||
10340 | sysv4*MP*) | ||
10341 | if test -d /usr/nec; then | ||
10342 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10343 | hardcode_shlibpath_var=no | ||
10344 | runpath_var=LD_RUN_PATH | ||
10345 | hardcode_runpath_var=yes | ||
10346 | ld_shlibs=yes | ||
10347 | fi | ||
10348 | ;; | ||
10349 | |||
10350 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
10351 | no_undefined_flag='${wl}-z,text' | ||
10352 | archive_cmds_need_lc=no | ||
10353 | hardcode_shlibpath_var=no | ||
10354 | runpath_var='LD_RUN_PATH' | ||
10355 | |||
10356 | if test "$GCC" = yes; then | ||
10357 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10358 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10359 | else | ||
10360 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10361 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10362 | fi | ||
10363 | ;; | ||
10364 | |||
10365 | sysv5* | sco3.2v5* | sco5v6*) | ||
10366 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
10367 | # link with -lc, and that would cause any symbols used from libc to | ||
10368 | # always be unresolved, which means just about no library would | ||
10369 | # ever link correctly. If we're not using GNU ld we use -z text | ||
10370 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
10371 | # as -z defs. | ||
10372 | no_undefined_flag='${wl}-z,text' | ||
10373 | allow_undefined_flag='${wl}-z,nodefs' | ||
10374 | archive_cmds_need_lc=no | ||
10375 | hardcode_shlibpath_var=no | ||
10376 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
10377 | hardcode_libdir_separator=':' | ||
10378 | link_all_deplibs=yes | ||
10379 | export_dynamic_flag_spec='${wl}-Bexport' | ||
10380 | runpath_var='LD_RUN_PATH' | ||
10381 | |||
10382 | if test "$GCC" = yes; then | ||
10383 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10384 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10385 | else | ||
10386 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10387 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10388 | fi | ||
10389 | ;; | ||
10390 | |||
10391 | uts4*) | ||
10392 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10393 | hardcode_libdir_flag_spec='-L$libdir' | ||
10394 | hardcode_shlibpath_var=no | ||
10395 | ;; | ||
10396 | |||
10397 | *) | ||
10398 | ld_shlibs=no | ||
10399 | ;; | ||
10400 | esac | ||
10401 | |||
10402 | if test x$host_vendor = xsni; then | ||
10403 | case $host in | ||
10404 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
10405 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
10406 | ;; | ||
10407 | esac | ||
10408 | fi | ||
10409 | fi | ||
10410 | |||
10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
10412 | $as_echo "$ld_shlibs" >&6; } | ||
10413 | test "$ld_shlibs" = no && can_build_shared=no | ||
10414 | |||
10415 | with_gnu_ld=$with_gnu_ld | ||
10416 | |||
10417 | |||
10418 | |||
10419 | |||
10420 | |||
10421 | |||
10422 | |||
10423 | |||
10424 | |||
10425 | |||
10426 | |||
10427 | |||
10428 | |||
10429 | |||
10430 | |||
10431 | # | ||
10432 | # Do we need to explicitly link libc? | ||
10433 | # | ||
10434 | case "x$archive_cmds_need_lc" in | ||
10435 | x|xyes) | ||
10436 | # Assume -lc should be added | ||
10437 | archive_cmds_need_lc=yes | ||
10438 | |||
10439 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
10440 | case $archive_cmds in | ||
10441 | *'~'*) | ||
10442 | # FIXME: we may have to deal with multi-command sequences. | ||
10443 | ;; | ||
10444 | '$CC '*) | ||
10445 | # Test whether the compiler implicitly links with -lc since on some | ||
10446 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
10447 | # to ld, don't add -lc before -lgcc. | ||
10448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
10449 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
10450 | $RM conftest* | ||
10451 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
10452 | |||
10453 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
10454 | (eval $ac_compile) 2>&5 | ||
10455 | ac_status=$? | ||
10456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10457 | test $ac_status = 0; } 2>conftest.err; then | ||
10458 | soname=conftest | ||
10459 | lib=conftest | ||
10460 | libobjs=conftest.$ac_objext | ||
10461 | deplibs= | ||
10462 | wl=$lt_prog_compiler_wl | ||
10463 | pic_flag=$lt_prog_compiler_pic | ||
10464 | compiler_flags=-v | ||
10465 | linker_flags=-v | ||
10466 | verstring= | ||
10467 | output_objdir=. | ||
10468 | libname=conftest | ||
10469 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
10470 | allow_undefined_flag= | ||
10471 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
10472 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
10473 | ac_status=$? | ||
10474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10475 | test $ac_status = 0; } | ||
10476 | then | ||
10477 | archive_cmds_need_lc=no | ||
10478 | else | ||
10479 | archive_cmds_need_lc=yes | ||
10480 | fi | ||
10481 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
10482 | else | ||
10483 | cat conftest.err 1>&5 | ||
10484 | fi | ||
10485 | $RM conftest* | ||
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
10487 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
10488 | ;; | ||
10489 | esac | ||
10490 | fi | ||
10491 | ;; | ||
10492 | esac | ||
10493 | |||
10494 | |||
10495 | |||
10496 | |||
10497 | |||
10498 | |||
10499 | |||
10500 | |||
10501 | |||
10502 | |||
10503 | |||
10504 | |||
10505 | |||
10506 | |||
10507 | |||
10508 | |||
10509 | |||
10510 | |||
10511 | |||
10512 | |||
10513 | |||
10514 | |||
10515 | |||
10516 | |||
10517 | |||
10518 | |||
10519 | |||
10520 | |||
10521 | |||
10522 | |||
10523 | |||
10524 | |||
10525 | |||
10526 | |||
10527 | |||
10528 | |||
10529 | |||
10530 | |||
10531 | |||
10532 | |||
10533 | |||
10534 | |||
10535 | |||
10536 | |||
10537 | |||
10538 | |||
10539 | |||
10540 | |||
10541 | |||
10542 | |||
10543 | |||
10544 | |||
10545 | |||
10546 | |||
10547 | |||
10548 | |||
10549 | |||
10550 | |||
10551 | |||
10552 | |||
10553 | |||
10554 | |||
10555 | |||
10556 | |||
10557 | |||
10558 | |||
10559 | |||
10560 | |||
10561 | |||
10562 | |||
10563 | |||
10564 | |||
10565 | |||
10566 | |||
10567 | |||
10568 | |||
10569 | |||
10570 | |||
10571 | |||
10572 | |||
10573 | |||
10574 | |||
10575 | |||
10576 | |||
10577 | |||
10578 | |||
10579 | |||
10580 | |||
10581 | |||
10582 | |||
10583 | |||
10584 | |||
10585 | |||
10586 | |||
10587 | |||
10588 | |||
10589 | |||
10590 | |||
10591 | |||
10592 | |||
10593 | |||
10594 | |||
10595 | |||
10596 | |||
10597 | |||
10598 | |||
10599 | |||
10600 | |||
10601 | |||
10602 | |||
10603 | |||
10604 | |||
10605 | |||
10606 | |||
10607 | |||
10608 | |||
10609 | |||
10610 | |||
10611 | |||
10612 | |||
10613 | |||
10614 | |||
10615 | |||
10616 | |||
10617 | |||
10618 | |||
10619 | |||
10620 | |||
10621 | |||
10622 | |||
10623 | |||
10624 | |||
10625 | |||
10626 | |||
10627 | |||
10628 | |||
10629 | |||
10630 | |||
10631 | |||
10632 | |||
10633 | |||
10634 | |||
10635 | |||
10636 | |||
10637 | |||
10638 | |||
10639 | |||
10640 | |||
10641 | |||
10642 | |||
10643 | |||
10644 | |||
10645 | |||
10646 | |||
10647 | |||
10648 | |||
10649 | |||
10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
10651 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
10652 | |||
10653 | if test "$GCC" = yes; then | ||
10654 | case $host_os in | ||
10655 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
10656 | *) lt_awk_arg="/^libraries:/" ;; | ||
10657 | esac | ||
10658 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10659 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
10660 | # if the path contains ";" then we assume it to be the separator | ||
10661 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
10662 | # assumed that no part of a normal pathname contains ";" but that should | ||
10663 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
10664 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
10665 | else | ||
10666 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10667 | fi | ||
10668 | # Ok, now we have the path, separated by spaces, we can step through it | ||
10669 | # and add multilib dir if necessary. | ||
10670 | lt_tmp_lt_search_path_spec= | ||
10671 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
10672 | for lt_sys_path in $lt_search_path_spec; do | ||
10673 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
10674 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
10675 | else | ||
10676 | test -d "$lt_sys_path" && \ | ||
10677 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
10678 | fi | ||
10679 | done | ||
10680 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
10681 | BEGIN {RS=" "; FS="/|\n";} { | ||
10682 | lt_foo=""; | ||
10683 | lt_count=0; | ||
10684 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
10685 | if ($lt_i != "" && $lt_i != ".") { | ||
10686 | if ($lt_i == "..") { | ||
10687 | lt_count++; | ||
10688 | } else { | ||
10689 | if (lt_count == 0) { | ||
10690 | lt_foo="/" $lt_i lt_foo; | ||
10691 | } else { | ||
10692 | lt_count--; | ||
10693 | } | ||
10694 | } | ||
10695 | } | ||
10696 | } | ||
10697 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
10698 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
10699 | }'` | ||
10700 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
10701 | else | ||
10702 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
10703 | fi | ||
10704 | library_names_spec= | ||
10705 | libname_spec='lib$name' | ||
10706 | soname_spec= | ||
10707 | shrext_cmds=".so" | ||
10708 | postinstall_cmds= | ||
10709 | postuninstall_cmds= | ||
10710 | finish_cmds= | ||
10711 | finish_eval= | ||
10712 | shlibpath_var= | ||
10713 | shlibpath_overrides_runpath=unknown | ||
10714 | version_type=none | ||
10715 | dynamic_linker="$host_os ld.so" | ||
10716 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
10717 | need_lib_prefix=unknown | ||
10718 | hardcode_into_libs=no | ||
10719 | |||
10720 | # when you set need_version to no, make sure it does not cause -set_version | ||
10721 | # flags to be left without arguments | ||
10722 | need_version=unknown | ||
10723 | |||
10724 | case $host_os in | ||
10725 | aix3*) | ||
10726 | version_type=linux | ||
10727 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
10728 | shlibpath_var=LIBPATH | ||
10729 | |||
10730 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
10731 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10732 | ;; | ||
10733 | |||
10734 | aix[4-9]*) | ||
10735 | version_type=linux | ||
10736 | need_lib_prefix=no | ||
10737 | need_version=no | ||
10738 | hardcode_into_libs=yes | ||
10739 | if test "$host_cpu" = ia64; then | ||
10740 | # AIX 5 supports IA64 | ||
10741 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
10742 | shlibpath_var=LD_LIBRARY_PATH | ||
10743 | else | ||
10744 | # With GCC up to 2.95.x, collect2 would create an import file | ||
10745 | # for dependence libraries. The import file would start with | ||
10746 | # the line `#! .'. This would cause the generated library to | ||
10747 | # depend on `.', always an invalid library. This was fixed in | ||
10748 | # development snapshots of GCC prior to 3.0. | ||
10749 | case $host_os in | ||
10750 | aix4 | aix4.[01] | aix4.[01].*) | ||
10751 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
10752 | echo ' yes ' | ||
10753 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
10754 | : | ||
10755 | else | ||
10756 | can_build_shared=no | ||
10757 | fi | ||
10758 | ;; | ||
10759 | esac | ||
10760 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
10761 | # soname into executable. Probably we can add versioning support to | ||
10762 | # collect2, so additional links can be useful in future. | ||
10763 | if test "$aix_use_runtimelinking" = yes; then | ||
10764 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
10765 | # instead of lib<name>.a to let people know that these are not | ||
10766 | # typical AIX shared libraries. | ||
10767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10768 | else | ||
10769 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
10770 | # and later when we are not doing run time linking. | ||
10771 | library_names_spec='${libname}${release}.a $libname.a' | ||
10772 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10773 | fi | ||
10774 | shlibpath_var=LIBPATH | ||
10775 | fi | ||
10776 | ;; | ||
10777 | |||
10778 | amigaos*) | ||
10779 | case $host_cpu in | ||
10780 | powerpc) | ||
10781 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
10782 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
10783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10784 | ;; | ||
10785 | m68k) | ||
10786 | library_names_spec='$libname.ixlibrary $libname.a' | ||
10787 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
10788 | 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' | ||
10789 | ;; | ||
10790 | esac | ||
10791 | ;; | ||
10792 | |||
10793 | beos*) | ||
10794 | library_names_spec='${libname}${shared_ext}' | ||
10795 | dynamic_linker="$host_os ld.so" | ||
10796 | shlibpath_var=LIBRARY_PATH | ||
10797 | ;; | ||
10798 | |||
10799 | bsdi[45]*) | ||
10800 | version_type=linux | ||
10801 | need_version=no | ||
10802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10803 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10804 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
10805 | shlibpath_var=LD_LIBRARY_PATH | ||
10806 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
10807 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
10808 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
10809 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
10810 | # libtool to hard-code these into programs | ||
10811 | ;; | ||
10812 | |||
10813 | cygwin* | mingw* | pw32* | cegcc*) | ||
10814 | version_type=windows | ||
10815 | shrext_cmds=".dll" | ||
10816 | need_version=no | ||
10817 | need_lib_prefix=no | ||
10818 | |||
10819 | case $GCC,$host_os in | ||
10820 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
10821 | library_names_spec='$libname.dll.a' | ||
10822 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
10823 | postinstall_cmds='base_file=`basename \${file}`~ | ||
10824 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
10825 | dldir=$destdir/`dirname \$dlpath`~ | ||
10826 | test -d \$dldir || mkdir -p \$dldir~ | ||
10827 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
10828 | chmod a+x \$dldir/$dlname~ | ||
10829 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
10830 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
10831 | fi' | ||
10832 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
10833 | dlpath=$dir/\$dldll~ | ||
10834 | $RM \$dlpath' | ||
10835 | shlibpath_overrides_runpath=yes | ||
10836 | |||
10837 | case $host_os in | ||
10838 | cygwin*) | ||
10839 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
10840 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10841 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
10842 | ;; | ||
10843 | mingw* | cegcc*) | ||
10844 | # MinGW DLLs use traditional 'lib' prefix | ||
10845 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10846 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10847 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
10848 | # It is most probably a Windows format PATH printed by | ||
10849 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
10850 | # path with ; separators, and with drive letters. We can handle the | ||
10851 | # drive letters (cygwin fileutils understands them), so leave them, | ||
10852 | # especially as we might pass files found there to a mingw objdump, | ||
10853 | # which wouldn't understand a cygwinified path. Ahh. | ||
10854 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
10855 | else | ||
10856 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10857 | fi | ||
10858 | ;; | ||
10859 | pw32*) | ||
10860 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
10861 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10862 | ;; | ||
10863 | esac | ||
10864 | ;; | ||
10865 | |||
10866 | *) | ||
10867 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
10868 | ;; | ||
10869 | esac | ||
10870 | dynamic_linker='Win32 ld.exe' | ||
10871 | # FIXME: first we should search . and the directory the executable is in | ||
10872 | shlibpath_var=PATH | ||
10873 | ;; | ||
10874 | |||
10875 | darwin* | rhapsody*) | ||
10876 | dynamic_linker="$host_os dyld" | ||
10877 | version_type=darwin | ||
10878 | need_lib_prefix=no | ||
10879 | need_version=no | ||
10880 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
10881 | soname_spec='${libname}${release}${major}$shared_ext' | ||
10882 | shlibpath_overrides_runpath=yes | ||
10883 | shlibpath_var=DYLD_LIBRARY_PATH | ||
10884 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
10885 | |||
10886 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
10887 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
10888 | ;; | ||
10889 | |||
10890 | dgux*) | ||
10891 | version_type=linux | ||
10892 | need_lib_prefix=no | ||
10893 | need_version=no | ||
10894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
10895 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10896 | shlibpath_var=LD_LIBRARY_PATH | ||
10897 | ;; | ||
10898 | |||
10899 | freebsd1*) | ||
10900 | dynamic_linker=no | ||
10901 | ;; | ||
10902 | |||
10903 | freebsd* | dragonfly*) | ||
10904 | # DragonFly does not have aout. When/if they implement a new | ||
10905 | # versioning mechanism, adjust this. | ||
10906 | if test -x /usr/bin/objformat; then | ||
10907 | objformat=`/usr/bin/objformat` | ||
10908 | else | ||
10909 | case $host_os in | ||
10910 | freebsd[123]*) objformat=aout ;; | ||
10911 | *) objformat=elf ;; | ||
10912 | esac | ||
10913 | fi | ||
10914 | version_type=freebsd-$objformat | ||
10915 | case $version_type in | ||
10916 | freebsd-elf*) | ||
10917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10918 | need_version=no | ||
10919 | need_lib_prefix=no | ||
10920 | ;; | ||
10921 | freebsd-*) | ||
10922 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
10923 | need_version=yes | ||
10924 | ;; | ||
10925 | esac | ||
10926 | shlibpath_var=LD_LIBRARY_PATH | ||
10927 | case $host_os in | ||
10928 | freebsd2*) | ||
10929 | shlibpath_overrides_runpath=yes | ||
10930 | ;; | ||
10931 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
10932 | shlibpath_overrides_runpath=yes | ||
10933 | hardcode_into_libs=yes | ||
10934 | ;; | ||
10935 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
10936 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
10937 | shlibpath_overrides_runpath=no | ||
10938 | hardcode_into_libs=yes | ||
10939 | ;; | ||
10940 | *) # from 4.6 on, and DragonFly | ||
10941 | shlibpath_overrides_runpath=yes | ||
10942 | hardcode_into_libs=yes | ||
10943 | ;; | ||
10944 | esac | ||
10945 | ;; | ||
10946 | |||
10947 | gnu*) | ||
10948 | version_type=linux | ||
10949 | need_lib_prefix=no | ||
10950 | need_version=no | ||
10951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
10952 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10953 | shlibpath_var=LD_LIBRARY_PATH | ||
10954 | hardcode_into_libs=yes | ||
10955 | ;; | ||
10956 | |||
10957 | hpux9* | hpux10* | hpux11*) | ||
10958 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
10959 | # link against other versions. | ||
10960 | version_type=sunos | ||
10961 | need_lib_prefix=no | ||
10962 | need_version=no | ||
10963 | case $host_cpu in | ||
10964 | ia64*) | ||
10965 | shrext_cmds='.so' | ||
10966 | hardcode_into_libs=yes | ||
10967 | dynamic_linker="$host_os dld.so" | ||
10968 | shlibpath_var=LD_LIBRARY_PATH | ||
10969 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10971 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10972 | if test "X$HPUX_IA64_MODE" = X32; then | ||
10973 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
10974 | else | ||
10975 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
10976 | fi | ||
10977 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10978 | ;; | ||
10979 | hppa*64*) | ||
10980 | shrext_cmds='.sl' | ||
10981 | hardcode_into_libs=yes | ||
10982 | dynamic_linker="$host_os dld.sl" | ||
10983 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
10984 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10986 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10987 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
10988 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10989 | ;; | ||
10990 | *) | ||
10991 | shrext_cmds='.sl' | ||
10992 | dynamic_linker="$host_os dld.sl" | ||
10993 | shlibpath_var=SHLIB_PATH | ||
10994 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
10995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10996 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10997 | ;; | ||
10998 | esac | ||
10999 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
11000 | postinstall_cmds='chmod 555 $lib' | ||
11001 | ;; | ||
11002 | |||
11003 | interix[3-9]*) | ||
11004 | version_type=linux | ||
11005 | need_lib_prefix=no | ||
11006 | need_version=no | ||
11007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11008 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11009 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
11010 | shlibpath_var=LD_LIBRARY_PATH | ||
11011 | shlibpath_overrides_runpath=no | ||
11012 | hardcode_into_libs=yes | ||
11013 | ;; | ||
11014 | |||
11015 | irix5* | irix6* | nonstopux*) | ||
11016 | case $host_os in | ||
11017 | nonstopux*) version_type=nonstopux ;; | ||
11018 | *) | ||
11019 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
11020 | version_type=linux | ||
11021 | else | ||
11022 | version_type=irix | ||
11023 | fi ;; | ||
11024 | esac | ||
11025 | need_lib_prefix=no | ||
11026 | need_version=no | ||
11027 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
11029 | case $host_os in | ||
11030 | irix5* | nonstopux*) | ||
11031 | libsuff= shlibsuff= | ||
11032 | ;; | ||
11033 | *) | ||
11034 | case $LD in # libtool.m4 will add one of these switches to LD | ||
11035 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
11036 | libsuff= shlibsuff= libmagic=32-bit;; | ||
11037 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
11038 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
11039 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
11040 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
11041 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
11042 | esac | ||
11043 | ;; | ||
11044 | esac | ||
11045 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
11046 | shlibpath_overrides_runpath=no | ||
11047 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
11048 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
11049 | hardcode_into_libs=yes | ||
11050 | ;; | ||
11051 | |||
11052 | # No shared lib support for Linux oldld, aout, or coff. | ||
11053 | linux*oldld* | linux*aout* | linux*coff*) | ||
11054 | dynamic_linker=no | ||
11055 | ;; | ||
11056 | |||
11057 | # This must be Linux ELF. | ||
11058 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
11059 | version_type=linux | ||
11060 | need_lib_prefix=no | ||
11061 | need_version=no | ||
11062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11063 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11064 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
11065 | shlibpath_var=LD_LIBRARY_PATH | ||
11066 | shlibpath_overrides_runpath=no | ||
11067 | # Some binutils ld are patched to set DT_RUNPATH | ||
11068 | save_LDFLAGS=$LDFLAGS | ||
11069 | save_libdir=$libdir | ||
11070 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
11071 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
11072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11073 | /* end confdefs.h. */ | ||
11074 | |||
11075 | int | ||
11076 | main () | ||
11077 | { | ||
11078 | |||
11079 | ; | ||
11080 | return 0; | ||
11081 | } | ||
11082 | _ACEOF | ||
11083 | if ac_fn_c_try_link "$LINENO"; then : | ||
11084 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
11085 | shlibpath_overrides_runpath=yes | ||
11086 | fi | ||
11087 | fi | ||
11088 | rm -f core conftest.err conftest.$ac_objext \ | ||
11089 | conftest$ac_exeext conftest.$ac_ext | ||
11090 | LDFLAGS=$save_LDFLAGS | ||
11091 | libdir=$save_libdir | ||
11092 | |||
11093 | # This implies no fast_install, which is unacceptable. | ||
11094 | # Some rework will be needed to allow for fast_install | ||
11095 | # before this can be enabled. | ||
11096 | hardcode_into_libs=yes | ||
11097 | |||
11098 | # Append ld.so.conf contents to the search path | ||
11099 | if test -f /etc/ld.so.conf; then | ||
11100 | 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' ' '` | ||
11101 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
11102 | fi | ||
11103 | |||
11104 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
11105 | # powerpc, because MkLinux only supported shared libraries with the | ||
11106 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
11107 | # most powerpc-linux boxes support dynamic linking these days and | ||
11108 | # people can always --disable-shared, the test was removed, and we | ||
11109 | # assume the GNU/Linux dynamic linker is in use. | ||
11110 | dynamic_linker='GNU/Linux ld.so' | ||
11111 | ;; | ||
11112 | |||
11113 | netbsdelf*-gnu) | ||
11114 | version_type=linux | ||
11115 | need_lib_prefix=no | ||
11116 | need_version=no | ||
11117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11118 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11119 | shlibpath_var=LD_LIBRARY_PATH | ||
11120 | shlibpath_overrides_runpath=no | ||
11121 | hardcode_into_libs=yes | ||
11122 | dynamic_linker='NetBSD ld.elf_so' | ||
11123 | ;; | ||
11124 | |||
11125 | netbsd*) | ||
11126 | version_type=sunos | ||
11127 | need_lib_prefix=no | ||
11128 | need_version=no | ||
11129 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
11130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11131 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
11132 | dynamic_linker='NetBSD (a.out) ld.so' | ||
11133 | else | ||
11134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11135 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11136 | dynamic_linker='NetBSD ld.elf_so' | ||
11137 | fi | ||
11138 | shlibpath_var=LD_LIBRARY_PATH | ||
11139 | shlibpath_overrides_runpath=yes | ||
11140 | hardcode_into_libs=yes | ||
11141 | ;; | ||
11142 | |||
11143 | newsos6) | ||
11144 | version_type=linux | ||
11145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11146 | shlibpath_var=LD_LIBRARY_PATH | ||
11147 | shlibpath_overrides_runpath=yes | ||
11148 | ;; | ||
11149 | |||
11150 | *nto* | *qnx*) | ||
11151 | version_type=qnx | ||
11152 | need_lib_prefix=no | ||
11153 | need_version=no | ||
11154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11155 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11156 | shlibpath_var=LD_LIBRARY_PATH | ||
11157 | shlibpath_overrides_runpath=no | ||
11158 | hardcode_into_libs=yes | ||
11159 | dynamic_linker='ldqnx.so' | ||
11160 | ;; | ||
11161 | |||
11162 | openbsd*) | ||
11163 | version_type=sunos | ||
11164 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
11165 | need_lib_prefix=no | ||
11166 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
11167 | case $host_os in | ||
11168 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
11169 | *) need_version=no ;; | ||
11170 | esac | ||
11171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11172 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
11173 | shlibpath_var=LD_LIBRARY_PATH | ||
11174 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
11175 | case $host_os in | ||
11176 | openbsd2.[89] | openbsd2.[89].*) | ||
11177 | shlibpath_overrides_runpath=no | ||
11178 | ;; | ||
11179 | *) | ||
11180 | shlibpath_overrides_runpath=yes | ||
11181 | ;; | ||
11182 | esac | ||
11183 | else | ||
11184 | shlibpath_overrides_runpath=yes | ||
11185 | fi | ||
11186 | ;; | ||
11187 | |||
11188 | os2*) | ||
11189 | libname_spec='$name' | ||
11190 | shrext_cmds=".dll" | ||
11191 | need_lib_prefix=no | ||
11192 | library_names_spec='$libname${shared_ext} $libname.a' | ||
11193 | dynamic_linker='OS/2 ld.exe' | ||
11194 | shlibpath_var=LIBPATH | ||
11195 | ;; | ||
11196 | |||
11197 | osf3* | osf4* | osf5*) | ||
11198 | version_type=osf | ||
11199 | need_lib_prefix=no | ||
11200 | need_version=no | ||
11201 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11203 | shlibpath_var=LD_LIBRARY_PATH | ||
11204 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
11205 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
11206 | ;; | ||
11207 | |||
11208 | rdos*) | ||
11209 | dynamic_linker=no | ||
11210 | ;; | ||
11211 | |||
11212 | solaris*) | ||
11213 | version_type=linux | ||
11214 | need_lib_prefix=no | ||
11215 | need_version=no | ||
11216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11217 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11218 | shlibpath_var=LD_LIBRARY_PATH | ||
11219 | shlibpath_overrides_runpath=yes | ||
11220 | hardcode_into_libs=yes | ||
11221 | # ldd complains unless libraries are executable | ||
11222 | postinstall_cmds='chmod +x $lib' | ||
11223 | ;; | ||
11224 | |||
11225 | sunos4*) | ||
11226 | version_type=sunos | ||
11227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11228 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
11229 | shlibpath_var=LD_LIBRARY_PATH | ||
11230 | shlibpath_overrides_runpath=yes | ||
11231 | if test "$with_gnu_ld" = yes; then | ||
11232 | need_lib_prefix=no | ||
11233 | fi | ||
11234 | need_version=yes | ||
11235 | ;; | ||
11236 | |||
11237 | sysv4 | sysv4.3*) | ||
11238 | version_type=linux | ||
11239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11240 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11241 | shlibpath_var=LD_LIBRARY_PATH | ||
11242 | case $host_vendor in | ||
11243 | sni) | ||
11244 | shlibpath_overrides_runpath=no | ||
11245 | need_lib_prefix=no | ||
11246 | runpath_var=LD_RUN_PATH | ||
11247 | ;; | ||
11248 | siemens) | ||
11249 | need_lib_prefix=no | ||
11250 | ;; | ||
11251 | motorola) | ||
11252 | need_lib_prefix=no | ||
11253 | need_version=no | ||
11254 | shlibpath_overrides_runpath=no | ||
11255 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
11256 | ;; | ||
11257 | esac | ||
11258 | ;; | ||
11259 | |||
11260 | sysv4*MP*) | ||
11261 | if test -d /usr/nec ;then | ||
11262 | version_type=linux | ||
11263 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
11264 | soname_spec='$libname${shared_ext}.$major' | ||
11265 | shlibpath_var=LD_LIBRARY_PATH | ||
11266 | fi | ||
11267 | ;; | ||
11268 | |||
11269 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
11270 | version_type=freebsd-elf | ||
11271 | need_lib_prefix=no | ||
11272 | need_version=no | ||
11273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
11274 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11275 | shlibpath_var=LD_LIBRARY_PATH | ||
11276 | shlibpath_overrides_runpath=yes | ||
11277 | hardcode_into_libs=yes | ||
11278 | if test "$with_gnu_ld" = yes; then | ||
11279 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
11280 | else | ||
11281 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
11282 | case $host_os in | ||
11283 | sco3.2v5*) | ||
11284 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
11285 | ;; | ||
11286 | esac | ||
11287 | fi | ||
11288 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
11289 | ;; | ||
11290 | |||
11291 | tpf*) | ||
11292 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
11293 | version_type=linux | ||
11294 | need_lib_prefix=no | ||
11295 | need_version=no | ||
11296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11297 | shlibpath_var=LD_LIBRARY_PATH | ||
11298 | shlibpath_overrides_runpath=no | ||
11299 | hardcode_into_libs=yes | ||
11300 | ;; | ||
11301 | |||
11302 | uts4*) | ||
11303 | version_type=linux | ||
11304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11305 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11306 | shlibpath_var=LD_LIBRARY_PATH | ||
11307 | ;; | ||
11308 | |||
11309 | *) | ||
11310 | dynamic_linker=no | ||
11311 | ;; | ||
11312 | esac | ||
11313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
11314 | $as_echo "$dynamic_linker" >&6; } | ||
11315 | test "$dynamic_linker" = no && can_build_shared=no | ||
11316 | |||
11317 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
11318 | if test "$GCC" = yes; then | ||
11319 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
11320 | fi | ||
11321 | |||
11322 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
11323 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
11324 | fi | ||
11325 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
11326 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
11327 | fi | ||
11328 | |||
11329 | |||
11330 | |||
11331 | |||
11332 | |||
11333 | |||
11334 | |||
11335 | |||
11336 | |||
11337 | |||
11338 | |||
11339 | |||
11340 | |||
11341 | |||
11342 | |||
11343 | |||
11344 | |||
11345 | |||
11346 | |||
11347 | |||
11348 | |||
11349 | |||
11350 | |||
11351 | |||
11352 | |||
11353 | |||
11354 | |||
11355 | |||
11356 | |||
11357 | |||
11358 | |||
11359 | |||
11360 | |||
11361 | |||
11362 | |||
11363 | |||
11364 | |||
11365 | |||
11366 | |||
11367 | |||
11368 | |||
11369 | |||
11370 | |||
11371 | |||
11372 | |||
11373 | |||
11374 | |||
11375 | |||
11376 | |||
11377 | |||
11378 | |||
11379 | |||
11380 | |||
11381 | |||
11382 | |||
11383 | |||
11384 | |||
11385 | |||
11386 | |||
11387 | |||
11388 | |||
11389 | |||
11390 | |||
11391 | |||
11392 | |||
11393 | |||
11394 | |||
11395 | |||
11396 | |||
11397 | |||
11398 | |||
11399 | |||
11400 | |||
11401 | |||
11402 | |||
11403 | |||
11404 | |||
11405 | |||
11406 | |||
11407 | |||
11408 | |||
11409 | |||
11410 | |||
11411 | |||
11412 | |||
11413 | |||
11414 | |||
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
11416 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
11417 | hardcode_action= | ||
11418 | if test -n "$hardcode_libdir_flag_spec" || | ||
11419 | test -n "$runpath_var" || | ||
11420 | test "X$hardcode_automatic" = "Xyes" ; then | ||
11421 | |||
11422 | # We can hardcode non-existent directories. | ||
11423 | if test "$hardcode_direct" != no && | ||
11424 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
11425 | # have to relink, otherwise we might link with an installed library | ||
11426 | # when we should be linking with a yet-to-be-installed one | ||
11427 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
11428 | test "$hardcode_minus_L" != no; then | ||
11429 | # Linking always hardcodes the temporary library directory. | ||
11430 | hardcode_action=relink | ||
11431 | else | ||
11432 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
11433 | hardcode_action=immediate | ||
11434 | fi | ||
11435 | else | ||
11436 | # We cannot hardcode anything, or else we can only hardcode existing | ||
11437 | # directories. | ||
11438 | hardcode_action=unsupported | ||
11439 | fi | ||
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
11441 | $as_echo "$hardcode_action" >&6; } | ||
11442 | |||
11443 | if test "$hardcode_action" = relink || | ||
11444 | test "$inherit_rpath" = yes; then | ||
11445 | # Fast installation is not supported | ||
11446 | enable_fast_install=no | ||
11447 | elif test "$shlibpath_overrides_runpath" = yes || | ||
11448 | test "$enable_shared" = no; then | ||
11449 | # Fast installation is not necessary | ||
11450 | enable_fast_install=needless | ||
11451 | fi | ||
11452 | |||
11453 | |||
11454 | |||
11455 | |||
11456 | |||
11457 | |||
11458 | if test "x$enable_dlopen" != xyes; then | ||
11459 | enable_dlopen=unknown | ||
11460 | enable_dlopen_self=unknown | ||
11461 | enable_dlopen_self_static=unknown | ||
11462 | else | ||
11463 | lt_cv_dlopen=no | ||
11464 | lt_cv_dlopen_libs= | ||
11465 | |||
11466 | case $host_os in | ||
11467 | beos*) | ||
11468 | lt_cv_dlopen="load_add_on" | ||
11469 | lt_cv_dlopen_libs= | ||
11470 | lt_cv_dlopen_self=yes | ||
11471 | ;; | ||
11472 | |||
11473 | mingw* | pw32* | cegcc*) | ||
11474 | lt_cv_dlopen="LoadLibrary" | ||
11475 | lt_cv_dlopen_libs= | ||
11476 | ;; | ||
11477 | |||
11478 | cygwin*) | ||
11479 | lt_cv_dlopen="dlopen" | ||
11480 | lt_cv_dlopen_libs= | ||
11481 | ;; | ||
11482 | |||
11483 | darwin*) | ||
11484 | # if libdl is installed we need to link against it | ||
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11486 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11487 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11488 | $as_echo_n "(cached) " >&6 | ||
11489 | else | ||
11490 | ac_check_lib_save_LIBS=$LIBS | ||
11491 | LIBS="-ldl $LIBS" | ||
11492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11493 | /* end confdefs.h. */ | ||
11494 | |||
11495 | /* Override any GCC internal prototype to avoid an error. | ||
11496 | Use char because int might match the return type of a GCC | ||
11497 | builtin and then its argument prototype would still apply. */ | ||
11498 | #ifdef __cplusplus | ||
11499 | extern "C" | ||
11500 | #endif | ||
11501 | char dlopen (); | ||
11502 | int | ||
11503 | main () | ||
11504 | { | ||
11505 | return dlopen (); | ||
11506 | ; | ||
11507 | return 0; | ||
11508 | } | ||
11509 | _ACEOF | ||
11510 | if ac_fn_c_try_link "$LINENO"; then : | ||
11511 | ac_cv_lib_dl_dlopen=yes | ||
11512 | else | ||
11513 | ac_cv_lib_dl_dlopen=no | ||
11514 | fi | ||
11515 | rm -f core conftest.err conftest.$ac_objext \ | ||
11516 | conftest$ac_exeext conftest.$ac_ext | ||
11517 | LIBS=$ac_check_lib_save_LIBS | ||
11518 | fi | ||
11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11520 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11521 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11522 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11523 | else | ||
11524 | |||
11525 | lt_cv_dlopen="dyld" | ||
11526 | lt_cv_dlopen_libs= | ||
11527 | lt_cv_dlopen_self=yes | ||
11528 | |||
11529 | fi | ||
11530 | |||
11531 | ;; | ||
11532 | |||
11533 | *) | ||
11534 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
11535 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
11536 | lt_cv_dlopen="shl_load" | ||
11537 | else | ||
11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
11539 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
11540 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
11541 | $as_echo_n "(cached) " >&6 | ||
11542 | else | ||
11543 | ac_check_lib_save_LIBS=$LIBS | ||
11544 | LIBS="-ldld $LIBS" | ||
11545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11546 | /* end confdefs.h. */ | ||
11547 | |||
11548 | /* Override any GCC internal prototype to avoid an error. | ||
11549 | Use char because int might match the return type of a GCC | ||
11550 | builtin and then its argument prototype would still apply. */ | ||
11551 | #ifdef __cplusplus | ||
11552 | extern "C" | ||
11553 | #endif | ||
11554 | char shl_load (); | ||
11555 | int | ||
11556 | main () | ||
11557 | { | ||
11558 | return shl_load (); | ||
11559 | ; | ||
11560 | return 0; | ||
11561 | } | ||
11562 | _ACEOF | ||
11563 | if ac_fn_c_try_link "$LINENO"; then : | ||
11564 | ac_cv_lib_dld_shl_load=yes | ||
11565 | else | ||
11566 | ac_cv_lib_dld_shl_load=no | ||
11567 | fi | ||
11568 | rm -f core conftest.err conftest.$ac_objext \ | ||
11569 | conftest$ac_exeext conftest.$ac_ext | ||
11570 | LIBS=$ac_check_lib_save_LIBS | ||
11571 | fi | ||
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
11573 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
11574 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
11575 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
11576 | else | ||
11577 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
11578 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
11579 | lt_cv_dlopen="dlopen" | ||
11580 | else | ||
11581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11582 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11583 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11584 | $as_echo_n "(cached) " >&6 | ||
11585 | else | ||
11586 | ac_check_lib_save_LIBS=$LIBS | ||
11587 | LIBS="-ldl $LIBS" | ||
11588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11589 | /* end confdefs.h. */ | ||
11590 | |||
11591 | /* Override any GCC internal prototype to avoid an error. | ||
11592 | Use char because int might match the return type of a GCC | ||
11593 | builtin and then its argument prototype would still apply. */ | ||
11594 | #ifdef __cplusplus | ||
11595 | extern "C" | ||
11596 | #endif | ||
11597 | char dlopen (); | ||
11598 | int | ||
11599 | main () | ||
11600 | { | ||
11601 | return dlopen (); | ||
11602 | ; | ||
11603 | return 0; | ||
11604 | } | ||
11605 | _ACEOF | ||
11606 | if ac_fn_c_try_link "$LINENO"; then : | ||
11607 | ac_cv_lib_dl_dlopen=yes | ||
11608 | else | ||
11609 | ac_cv_lib_dl_dlopen=no | ||
11610 | fi | ||
11611 | rm -f core conftest.err conftest.$ac_objext \ | ||
11612 | conftest$ac_exeext conftest.$ac_ext | ||
11613 | LIBS=$ac_check_lib_save_LIBS | ||
11614 | fi | ||
11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11616 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11617 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11618 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11619 | else | ||
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
11621 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
11622 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
11623 | $as_echo_n "(cached) " >&6 | ||
11624 | else | ||
11625 | ac_check_lib_save_LIBS=$LIBS | ||
11626 | LIBS="-lsvld $LIBS" | ||
11627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11628 | /* end confdefs.h. */ | ||
11629 | |||
11630 | /* Override any GCC internal prototype to avoid an error. | ||
11631 | Use char because int might match the return type of a GCC | ||
11632 | builtin and then its argument prototype would still apply. */ | ||
11633 | #ifdef __cplusplus | ||
11634 | extern "C" | ||
11635 | #endif | ||
11636 | char dlopen (); | ||
11637 | int | ||
11638 | main () | ||
11639 | { | ||
11640 | return dlopen (); | ||
11641 | ; | ||
11642 | return 0; | ||
11643 | } | ||
11644 | _ACEOF | ||
11645 | if ac_fn_c_try_link "$LINENO"; then : | ||
11646 | ac_cv_lib_svld_dlopen=yes | ||
11647 | else | ||
11648 | ac_cv_lib_svld_dlopen=no | ||
11649 | fi | ||
11650 | rm -f core conftest.err conftest.$ac_objext \ | ||
11651 | conftest$ac_exeext conftest.$ac_ext | ||
11652 | LIBS=$ac_check_lib_save_LIBS | ||
11653 | fi | ||
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
11655 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
11656 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
11657 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
11658 | else | ||
11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
11660 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
11661 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
11662 | $as_echo_n "(cached) " >&6 | ||
11663 | else | ||
11664 | ac_check_lib_save_LIBS=$LIBS | ||
11665 | LIBS="-ldld $LIBS" | ||
11666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11667 | /* end confdefs.h. */ | ||
11668 | |||
11669 | /* Override any GCC internal prototype to avoid an error. | ||
11670 | Use char because int might match the return type of a GCC | ||
11671 | builtin and then its argument prototype would still apply. */ | ||
11672 | #ifdef __cplusplus | ||
11673 | extern "C" | ||
11674 | #endif | ||
11675 | char dld_link (); | ||
11676 | int | ||
11677 | main () | ||
11678 | { | ||
11679 | return dld_link (); | ||
11680 | ; | ||
11681 | return 0; | ||
11682 | } | ||
11683 | _ACEOF | ||
11684 | if ac_fn_c_try_link "$LINENO"; then : | ||
11685 | ac_cv_lib_dld_dld_link=yes | ||
11686 | else | ||
11687 | ac_cv_lib_dld_dld_link=no | ||
11688 | fi | ||
11689 | rm -f core conftest.err conftest.$ac_objext \ | ||
11690 | conftest$ac_exeext conftest.$ac_ext | ||
11691 | LIBS=$ac_check_lib_save_LIBS | ||
11692 | fi | ||
11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
11694 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
11695 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
11696 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
11697 | fi | ||
11698 | |||
11699 | |||
11700 | fi | ||
11701 | |||
11702 | |||
11703 | fi | ||
11704 | |||
11705 | |||
11706 | fi | ||
11707 | |||
11708 | |||
11709 | fi | ||
11710 | |||
11711 | |||
11712 | fi | ||
11713 | |||
11714 | ;; | ||
11715 | esac | ||
11716 | |||
11717 | if test "x$lt_cv_dlopen" != xno; then | ||
11718 | enable_dlopen=yes | ||
11719 | else | ||
11720 | enable_dlopen=no | ||
11721 | fi | ||
11722 | |||
11723 | case $lt_cv_dlopen in | ||
11724 | dlopen) | ||
11725 | save_CPPFLAGS="$CPPFLAGS" | ||
11726 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
11727 | |||
11728 | save_LDFLAGS="$LDFLAGS" | ||
11729 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
11730 | |||
11731 | save_LIBS="$LIBS" | ||
11732 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
11733 | |||
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
11735 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
11736 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
11737 | $as_echo_n "(cached) " >&6 | ||
11738 | else | ||
11739 | if test "$cross_compiling" = yes; then : | ||
11740 | lt_cv_dlopen_self=cross | ||
11741 | else | ||
11742 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11743 | lt_status=$lt_dlunknown | ||
11744 | cat > conftest.$ac_ext <<_LT_EOF | ||
11745 | #line 11745 "configure" | ||
11746 | #include "confdefs.h" | ||
11747 | |||
11748 | #if HAVE_DLFCN_H | ||
11749 | #include <dlfcn.h> | ||
11750 | #endif | ||
11751 | |||
11752 | #include <stdio.h> | ||
11753 | |||
11754 | #ifdef RTLD_GLOBAL | ||
11755 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11756 | #else | ||
11757 | # ifdef DL_GLOBAL | ||
11758 | # define LT_DLGLOBAL DL_GLOBAL | ||
11759 | # else | ||
11760 | # define LT_DLGLOBAL 0 | ||
11761 | # endif | ||
11762 | #endif | ||
11763 | |||
11764 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11765 | find out it does not work in some platform. */ | ||
11766 | #ifndef LT_DLLAZY_OR_NOW | ||
11767 | # ifdef RTLD_LAZY | ||
11768 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11769 | # else | ||
11770 | # ifdef DL_LAZY | ||
11771 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11772 | # else | ||
11773 | # ifdef RTLD_NOW | ||
11774 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11775 | # else | ||
11776 | # ifdef DL_NOW | ||
11777 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11778 | # else | ||
11779 | # define LT_DLLAZY_OR_NOW 0 | ||
11780 | # endif | ||
11781 | # endif | ||
11782 | # endif | ||
11783 | # endif | ||
11784 | #endif | ||
11785 | |||
11786 | void fnord() { int i=42;} | ||
11787 | int main () | ||
11788 | { | ||
11789 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11790 | int status = $lt_dlunknown; | ||
11791 | |||
11792 | if (self) | ||
11793 | { | ||
11794 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11795 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11796 | /* dlclose (self); */ | ||
11797 | } | ||
11798 | else | ||
11799 | puts (dlerror ()); | ||
11800 | |||
11801 | return status; | ||
11802 | } | ||
11803 | _LT_EOF | ||
11804 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11805 | (eval $ac_link) 2>&5 | ||
11806 | ac_status=$? | ||
11807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11808 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11809 | (./conftest; exit; ) >&5 2>/dev/null | ||
11810 | lt_status=$? | ||
11811 | case x$lt_status in | ||
11812 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
11813 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
11814 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
11815 | esac | ||
11816 | else : | ||
11817 | # compilation failed | ||
11818 | lt_cv_dlopen_self=no | ||
11819 | fi | ||
11820 | fi | ||
11821 | rm -fr conftest* | ||
11822 | |||
11823 | |||
11824 | fi | ||
11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
11826 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
11827 | |||
11828 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
11829 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
11831 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
11832 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
11833 | $as_echo_n "(cached) " >&6 | ||
11834 | else | ||
11835 | if test "$cross_compiling" = yes; then : | ||
11836 | lt_cv_dlopen_self_static=cross | ||
11837 | else | ||
11838 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11839 | lt_status=$lt_dlunknown | ||
11840 | cat > conftest.$ac_ext <<_LT_EOF | ||
11841 | #line 11841 "configure" | ||
11842 | #include "confdefs.h" | ||
11843 | |||
11844 | #if HAVE_DLFCN_H | ||
11845 | #include <dlfcn.h> | ||
11846 | #endif | ||
11847 | |||
11848 | #include <stdio.h> | ||
11849 | |||
11850 | #ifdef RTLD_GLOBAL | ||
11851 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11852 | #else | ||
11853 | # ifdef DL_GLOBAL | ||
11854 | # define LT_DLGLOBAL DL_GLOBAL | ||
11855 | # else | ||
11856 | # define LT_DLGLOBAL 0 | ||
11857 | # endif | ||
11858 | #endif | ||
11859 | |||
11860 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11861 | find out it does not work in some platform. */ | ||
11862 | #ifndef LT_DLLAZY_OR_NOW | ||
11863 | # ifdef RTLD_LAZY | ||
11864 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11865 | # else | ||
11866 | # ifdef DL_LAZY | ||
11867 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11868 | # else | ||
11869 | # ifdef RTLD_NOW | ||
11870 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11871 | # else | ||
11872 | # ifdef DL_NOW | ||
11873 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11874 | # else | ||
11875 | # define LT_DLLAZY_OR_NOW 0 | ||
11876 | # endif | ||
11877 | # endif | ||
11878 | # endif | ||
11879 | # endif | ||
11880 | #endif | ||
11881 | |||
11882 | void fnord() { int i=42;} | ||
11883 | int main () | ||
11884 | { | ||
11885 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11886 | int status = $lt_dlunknown; | ||
11887 | |||
11888 | if (self) | ||
11889 | { | ||
11890 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11891 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11892 | /* dlclose (self); */ | ||
11893 | } | ||
11894 | else | ||
11895 | puts (dlerror ()); | ||
11896 | |||
11897 | return status; | ||
11898 | } | ||
11899 | _LT_EOF | ||
11900 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11901 | (eval $ac_link) 2>&5 | ||
11902 | ac_status=$? | ||
11903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11904 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11905 | (./conftest; exit; ) >&5 2>/dev/null | ||
11906 | lt_status=$? | ||
11907 | case x$lt_status in | ||
11908 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11909 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11910 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
11911 | esac | ||
11912 | else : | ||
11913 | # compilation failed | ||
11914 | lt_cv_dlopen_self_static=no | ||
11915 | fi | ||
11916 | fi | ||
11917 | rm -fr conftest* | ||
11918 | |||
11919 | |||
11920 | fi | ||
11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
11922 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
11923 | fi | ||
11924 | |||
11925 | CPPFLAGS="$save_CPPFLAGS" | ||
11926 | LDFLAGS="$save_LDFLAGS" | ||
11927 | LIBS="$save_LIBS" | ||
11928 | ;; | ||
11929 | esac | ||
11930 | |||
11931 | case $lt_cv_dlopen_self in | ||
11932 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
11933 | *) enable_dlopen_self=unknown ;; | ||
11934 | esac | ||
11935 | |||
11936 | case $lt_cv_dlopen_self_static in | ||
11937 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
11938 | *) enable_dlopen_self_static=unknown ;; | ||
11939 | esac | ||
11940 | fi | ||
11941 | |||
11942 | |||
11943 | |||
11944 | |||
11945 | |||
11946 | |||
11947 | |||
11948 | |||
11949 | |||
11950 | |||
11951 | |||
11952 | |||
11953 | |||
11954 | |||
11955 | |||
11956 | |||
11957 | |||
11958 | striplib= | ||
11959 | old_striplib= | ||
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
11961 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
11962 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
11963 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
11964 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11966 | $as_echo "yes" >&6; } | ||
11967 | else | ||
11968 | # FIXME - insert some real tests, host_os isn't really good enough | ||
11969 | case $host_os in | ||
11970 | darwin*) | ||
11971 | if test -n "$STRIP" ; then | ||
11972 | striplib="$STRIP -x" | ||
11973 | old_striplib="$STRIP -S" | ||
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11975 | $as_echo "yes" >&6; } | ||
11976 | else | ||
11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11978 | $as_echo "no" >&6; } | ||
11979 | fi | ||
11980 | ;; | ||
11981 | *) | ||
11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11983 | $as_echo "no" >&6; } | ||
11984 | ;; | ||
11985 | esac | ||
11986 | fi | ||
11987 | |||
11988 | |||
11989 | |||
11990 | |||
11991 | |||
11992 | |||
11993 | |||
11994 | |||
11995 | |||
11996 | |||
11997 | |||
11998 | |||
11999 | # Report which library types will actually be built | ||
12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
12001 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
12003 | $as_echo "$can_build_shared" >&6; } | ||
12004 | |||
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
12006 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
12007 | test "$can_build_shared" = "no" && enable_shared=no | ||
12008 | |||
12009 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
12010 | # are all built from PIC. | ||
12011 | case $host_os in | ||
12012 | aix3*) | ||
12013 | test "$enable_shared" = yes && enable_static=no | ||
12014 | if test -n "$RANLIB"; then | ||
12015 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
12016 | postinstall_cmds='$RANLIB $lib' | ||
12017 | fi | ||
12018 | ;; | ||
12019 | |||
12020 | aix[4-9]*) | ||
12021 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
12022 | test "$enable_shared" = yes && enable_static=no | ||
12023 | fi | ||
12024 | ;; | ||
12025 | esac | ||
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
12027 | $as_echo "$enable_shared" >&6; } | ||
12028 | |||
12029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
12030 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
12031 | # Make sure either enable_shared or enable_static is yes. | ||
12032 | test "$enable_shared" = yes || enable_static=yes | ||
12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
12034 | $as_echo "$enable_static" >&6; } | ||
12035 | |||
12036 | |||
12037 | |||
12038 | |||
12039 | fi | ||
12040 | ac_ext=c | ||
12041 | ac_cpp='$CPP $CPPFLAGS' | ||
12042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12045 | |||
12046 | CC="$lt_save_CC" | ||
12047 | |||
12048 | |||
12049 | |||
12050 | |||
12051 | |||
12052 | |||
12053 | |||
12054 | |||
12055 | |||
12056 | |||
12057 | |||
12058 | |||
12059 | |||
12060 | ac_config_commands="$ac_config_commands libtool" | ||
12061 | |||
12062 | |||
12063 | |||
12064 | |||
12065 | # Only expand once: | ||
12066 | |||
12067 | |||
12068 | |||
12069 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12070 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12071 | |||
12072 | |||
12073 | |||
12074 | cat >>confdefs.h <<_ACEOF | ||
12075 | #define VERS_MAJ 1 | ||
12076 | _ACEOF | ||
12077 | |||
12078 | |||
12079 | cat >>confdefs.h <<_ACEOF | ||
12080 | #define VERS_MIN 2 | ||
12081 | _ACEOF | ||
12082 | |||
12083 | |||
12084 | cat >>confdefs.h <<_ACEOF | ||
12085 | #define VERS_MIC 0 | ||
12086 | _ACEOF | ||
12087 | |||
12088 | |||
12089 | cat >>confdefs.h <<_ACEOF | ||
12090 | #define VERS_REV 0 | ||
12091 | _ACEOF | ||
12092 | |||
12093 | version_info="3:0:2" | ||
12094 | release_info="" | ||
12095 | |||
12096 | |||
12097 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12098 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12099 | VMAJ=1 | ||
12100 | |||
12101 | |||
12102 | |||
12103 | |||
12104 | |||
12105 | |||
12106 | |||
12107 | |||
12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | ||
12109 | $as_echo_n "checking whether NLS is requested... " >&6; } | ||
12110 | # Check whether --enable-nls was given. | ||
12111 | if test "${enable_nls+set}" = set; then : | ||
12112 | enableval=$enable_nls; USE_NLS=$enableval | ||
12113 | else | ||
12114 | USE_NLS=yes | ||
12115 | fi | ||
12116 | |||
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | ||
12118 | $as_echo "$USE_NLS" >&6; } | ||
12119 | |||
12120 | |||
12121 | |||
12122 | |||
12123 | GETTEXT_MACRO_VERSION=0.17 | ||
12124 | |||
12125 | |||
12126 | |||
12127 | |||
12128 | # Prepare PATH_SEPARATOR. | ||
12129 | # The user is always right. | ||
12130 | if test "${PATH_SEPARATOR+set}" != set; then | ||
12131 | echo "#! /bin/sh" >conf$$.sh | ||
12132 | echo "exit 0" >>conf$$.sh | ||
12133 | chmod +x conf$$.sh | ||
12134 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
12135 | PATH_SEPARATOR=';' | ||
12136 | else | ||
12137 | PATH_SEPARATOR=: | ||
12138 | fi | ||
12139 | rm -f conf$$.sh | ||
12140 | fi | ||
12141 | |||
12142 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
12143 | # as systems may use methods other than mode bits to determine executability. | ||
12144 | cat >conf$$.file <<_ASEOF | ||
12145 | #! /bin/sh | ||
12146 | exit 0 | ||
12147 | _ASEOF | ||
12148 | chmod +x conf$$.file | ||
12149 | if test -x conf$$.file >/dev/null 2>&1; then | ||
12150 | ac_executable_p="test -x" | ||
12151 | else | ||
12152 | ac_executable_p="test -f" | ||
12153 | fi | ||
12154 | rm -f conf$$.file | ||
12155 | |||
12156 | # Extract the first word of "msgfmt", so it can be a program name with args. | ||
12157 | set dummy msgfmt; ac_word=$2 | ||
12158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12159 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12160 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | ||
12161 | $as_echo_n "(cached) " >&6 | ||
12162 | else | ||
12163 | case "$MSGFMT" in | ||
12164 | [\\/]* | ?:[\\/]*) | ||
12165 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | ||
12166 | ;; | ||
12167 | *) | ||
12168 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
12169 | for ac_dir in $PATH; do | ||
12170 | IFS="$ac_save_IFS" | ||
12171 | test -z "$ac_dir" && ac_dir=. | ||
12172 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12173 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
12174 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | ||
12175 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | ||
12176 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
12177 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | ||
12178 | break 2 | ||
12179 | fi | ||
12180 | fi | ||
12181 | done | ||
12182 | done | ||
12183 | IFS="$ac_save_IFS" | ||
12184 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | ||
12185 | ;; | ||
12186 | esac | ||
12187 | fi | ||
12188 | MSGFMT="$ac_cv_path_MSGFMT" | ||
12189 | if test "$MSGFMT" != ":"; then | ||
12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | ||
12191 | $as_echo "$MSGFMT" >&6; } | ||
12192 | else | ||
12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12194 | $as_echo "no" >&6; } | ||
12195 | fi | ||
12196 | |||
12197 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | ||
12198 | set dummy gmsgfmt; ac_word=$2 | ||
12199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12200 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12201 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | ||
12202 | $as_echo_n "(cached) " >&6 | ||
12203 | else | ||
12204 | case $GMSGFMT in | ||
12205 | [\\/]* | ?:[\\/]*) | ||
12206 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | ||
12207 | ;; | ||
12208 | *) | ||
12209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12210 | for as_dir in $PATH | ||
12211 | do | ||
12212 | IFS=$as_save_IFS | ||
12213 | test -z "$as_dir" && as_dir=. | ||
12214 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12216 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | ||
12217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12218 | break 2 | ||
12219 | fi | ||
12220 | done | ||
12221 | done | ||
12222 | IFS=$as_save_IFS | ||
12223 | |||
12224 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | ||
12225 | ;; | ||
12226 | esac | ||
12227 | fi | ||
12228 | GMSGFMT=$ac_cv_path_GMSGFMT | ||
12229 | if test -n "$GMSGFMT"; then | ||
12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | ||
12231 | $as_echo "$GMSGFMT" >&6; } | ||
12232 | else | ||
12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12234 | $as_echo "no" >&6; } | ||
12235 | fi | ||
12236 | |||
12237 | |||
12238 | |||
12239 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
12240 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | ||
12241 | *) MSGFMT_015=$MSGFMT ;; | ||
12242 | esac | ||
12243 | |||
12244 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
12245 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | ||
12246 | *) GMSGFMT_015=$GMSGFMT ;; | ||
12247 | esac | ||
12248 | |||
12249 | |||
12250 | |||
12251 | # Prepare PATH_SEPARATOR. | ||
12252 | # The user is always right. | ||
12253 | if test "${PATH_SEPARATOR+set}" != set; then | ||
12254 | echo "#! /bin/sh" >conf$$.sh | ||
12255 | echo "exit 0" >>conf$$.sh | ||
12256 | chmod +x conf$$.sh | ||
12257 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
12258 | PATH_SEPARATOR=';' | ||
12259 | else | ||
12260 | PATH_SEPARATOR=: | ||
12261 | fi | ||
12262 | rm -f conf$$.sh | ||
12263 | fi | ||
12264 | |||
12265 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
12266 | # as systems may use methods other than mode bits to determine executability. | ||
12267 | cat >conf$$.file <<_ASEOF | ||
12268 | #! /bin/sh | ||
12269 | exit 0 | ||
12270 | _ASEOF | ||
12271 | chmod +x conf$$.file | ||
12272 | if test -x conf$$.file >/dev/null 2>&1; then | ||
12273 | ac_executable_p="test -x" | ||
12274 | else | ||
12275 | ac_executable_p="test -f" | ||
12276 | fi | ||
12277 | rm -f conf$$.file | ||
12278 | |||
12279 | # Extract the first word of "xgettext", so it can be a program name with args. | ||
12280 | set dummy xgettext; ac_word=$2 | ||
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12282 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12283 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | ||
12284 | $as_echo_n "(cached) " >&6 | ||
12285 | else | ||
12286 | case "$XGETTEXT" in | ||
12287 | [\\/]* | ?:[\\/]*) | ||
12288 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | ||
12289 | ;; | ||
12290 | *) | ||
12291 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
12292 | for ac_dir in $PATH; do | ||
12293 | IFS="$ac_save_IFS" | ||
12294 | test -z "$ac_dir" && ac_dir=. | ||
12295 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12296 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
12297 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | ||
12298 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | ||
12299 | (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 | ||
12300 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | ||
12301 | break 2 | ||
12302 | fi | ||
12303 | fi | ||
12304 | done | ||
12305 | done | ||
12306 | IFS="$ac_save_IFS" | ||
12307 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | ||
12308 | ;; | ||
12309 | esac | ||
12310 | fi | ||
12311 | XGETTEXT="$ac_cv_path_XGETTEXT" | ||
12312 | if test "$XGETTEXT" != ":"; then | ||
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | ||
12314 | $as_echo "$XGETTEXT" >&6; } | ||
12315 | else | ||
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12317 | $as_echo "no" >&6; } | ||
12318 | fi | ||
12319 | |||
12320 | rm -f messages.po | ||
12321 | |||
12322 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
12323 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | ||
12324 | *) XGETTEXT_015=$XGETTEXT ;; | ||
12325 | esac | ||
12326 | |||
12327 | |||
12328 | |||
12329 | # Prepare PATH_SEPARATOR. | ||
12330 | # The user is always right. | ||
12331 | if test "${PATH_SEPARATOR+set}" != set; then | ||
12332 | echo "#! /bin/sh" >conf$$.sh | ||
12333 | echo "exit 0" >>conf$$.sh | ||
12334 | chmod +x conf$$.sh | ||
12335 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
12336 | PATH_SEPARATOR=';' | ||
12337 | else | ||
12338 | PATH_SEPARATOR=: | ||
12339 | fi | ||
12340 | rm -f conf$$.sh | ||
12341 | fi | ||
12342 | |||
12343 | # Find out how to test for executable files. Don't use a zero-byte file, | ||
12344 | # as systems may use methods other than mode bits to determine executability. | ||
12345 | cat >conf$$.file <<_ASEOF | ||
12346 | #! /bin/sh | ||
12347 | exit 0 | ||
12348 | _ASEOF | ||
12349 | chmod +x conf$$.file | ||
12350 | if test -x conf$$.file >/dev/null 2>&1; then | ||
12351 | ac_executable_p="test -x" | ||
12352 | else | ||
12353 | ac_executable_p="test -f" | ||
12354 | fi | ||
12355 | rm -f conf$$.file | ||
12356 | |||
12357 | # Extract the first word of "msgmerge", so it can be a program name with args. | ||
12358 | set dummy msgmerge; ac_word=$2 | ||
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12360 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12361 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | ||
12362 | $as_echo_n "(cached) " >&6 | ||
12363 | else | ||
12364 | case "$MSGMERGE" in | ||
12365 | [\\/]* | ?:[\\/]*) | ||
12366 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | ||
12367 | ;; | ||
12368 | *) | ||
12369 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | ||
12370 | for ac_dir in $PATH; do | ||
12371 | IFS="$ac_save_IFS" | ||
12372 | test -z "$ac_dir" && ac_dir=. | ||
12373 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12374 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | ||
12375 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | ||
12376 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | ||
12377 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | ||
12378 | break 2 | ||
12379 | fi | ||
12380 | fi | ||
12381 | done | ||
12382 | done | ||
12383 | IFS="$ac_save_IFS" | ||
12384 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | ||
12385 | ;; | ||
12386 | esac | ||
12387 | fi | ||
12388 | MSGMERGE="$ac_cv_path_MSGMERGE" | ||
12389 | if test "$MSGMERGE" != ":"; then | ||
12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | ||
12391 | $as_echo "$MSGMERGE" >&6; } | ||
12392 | else | ||
12393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12394 | $as_echo "no" >&6; } | ||
12395 | fi | ||
12396 | |||
12397 | |||
12398 | test -n "$localedir" || localedir='${datadir}/locale' | ||
12399 | |||
12400 | |||
12401 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | ||
12402 | |||
12403 | |||
12404 | ac_config_commands="$ac_config_commands po-directories" | ||
12405 | |||
12406 | |||
12407 | |||
12408 | if test "X$prefix" = "XNONE"; then | ||
12409 | acl_final_prefix="$ac_default_prefix" | ||
12410 | else | ||
12411 | acl_final_prefix="$prefix" | ||
12412 | fi | ||
12413 | if test "X$exec_prefix" = "XNONE"; then | ||
12414 | acl_final_exec_prefix='${prefix}' | ||
12415 | else | ||
12416 | acl_final_exec_prefix="$exec_prefix" | ||
12417 | fi | ||
12418 | acl_save_prefix="$prefix" | ||
12419 | prefix="$acl_final_prefix" | ||
12420 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | ||
12421 | prefix="$acl_save_prefix" | ||
12422 | |||
12423 | |||
12424 | # Check whether --with-gnu-ld was given. | ||
12425 | if test "${with_gnu_ld+set}" = set; then : | ||
12426 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
12427 | else | ||
12428 | with_gnu_ld=no | ||
12429 | fi | ||
12430 | |||
12431 | # Prepare PATH_SEPARATOR. | ||
12432 | # The user is always right. | ||
12433 | if test "${PATH_SEPARATOR+set}" != set; then | ||
12434 | echo "#! /bin/sh" >conf$$.sh | ||
12435 | echo "exit 0" >>conf$$.sh | ||
12436 | chmod +x conf$$.sh | ||
12437 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
12438 | PATH_SEPARATOR=';' | ||
12439 | else | ||
12440 | PATH_SEPARATOR=: | ||
12441 | fi | ||
12442 | rm -f conf$$.sh | ||
12443 | fi | ||
12444 | ac_prog=ld | ||
12445 | if test "$GCC" = yes; then | ||
12446 | # Check if gcc -print-prog-name=ld gives a path. | ||
12447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | ||
12448 | $as_echo_n "checking for ld used by GCC... " >&6; } | ||
12449 | case $host in | ||
12450 | *-*-mingw*) | ||
12451 | # gcc leaves a trailing carriage return which upsets mingw | ||
12452 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
12453 | *) | ||
12454 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
12455 | esac | ||
12456 | case $ac_prog in | ||
12457 | # Accept absolute paths. | ||
12458 | [\\/]* | [A-Za-z]:[\\/]*) | ||
12459 | re_direlt='/[^/][^/]*/\.\./' | ||
12460 | # Canonicalize the path of ld | ||
12461 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
12462 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
12463 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | ||
12464 | done | ||
12465 | test -z "$LD" && LD="$ac_prog" | ||
12466 | ;; | ||
12467 | "") | ||
12468 | # If it fails, then pretend we aren't using GCC. | ||
12469 | ac_prog=ld | ||
12470 | ;; | ||
12471 | *) | ||
12472 | # If it is relative, then search for the first ld in PATH. | ||
12473 | with_gnu_ld=unknown | ||
12474 | ;; | ||
12475 | esac | ||
12476 | elif test "$with_gnu_ld" = yes; then | ||
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
12478 | $as_echo_n "checking for GNU ld... " >&6; } | ||
12479 | else | ||
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
12481 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
12482 | fi | ||
12483 | if test "${acl_cv_path_LD+set}" = set; then : | ||
12484 | $as_echo_n "(cached) " >&6 | ||
12485 | else | ||
12486 | if test -z "$LD"; then | ||
12487 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | ||
12488 | for ac_dir in $PATH; do | ||
12489 | test -z "$ac_dir" && ac_dir=. | ||
12490 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
12491 | acl_cv_path_LD="$ac_dir/$ac_prog" | ||
12492 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
12493 | # but apparently some GNU ld's only accept -v. | ||
12494 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
12495 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | ||
12496 | *GNU* | *'with BFD'*) | ||
12497 | test "$with_gnu_ld" != no && break ;; | ||
12498 | *) | ||
12499 | test "$with_gnu_ld" != yes && break ;; | ||
12500 | esac | ||
12501 | fi | ||
12502 | done | ||
12503 | IFS="$ac_save_ifs" | ||
12504 | else | ||
12505 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | ||
12506 | fi | ||
12507 | fi | ||
12508 | |||
12509 | LD="$acl_cv_path_LD" | ||
12510 | if test -n "$LD"; then | ||
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
12512 | $as_echo "$LD" >&6; } | ||
12513 | else | ||
12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12515 | $as_echo "no" >&6; } | ||
12516 | fi | ||
12517 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
12519 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
12520 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | ||
12521 | $as_echo_n "(cached) " >&6 | ||
12522 | else | ||
12523 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
12524 | case `$LD -v 2>&1 </dev/null` in | ||
12525 | *GNU* | *'with BFD'*) | ||
12526 | acl_cv_prog_gnu_ld=yes ;; | ||
12527 | *) | ||
12528 | acl_cv_prog_gnu_ld=no ;; | ||
12529 | esac | ||
12530 | fi | ||
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | ||
12532 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | ||
12533 | with_gnu_ld=$acl_cv_prog_gnu_ld | ||
12534 | |||
12535 | |||
12536 | |||
12537 | |||
12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | ||
12539 | $as_echo_n "checking for shared library run path origin... " >&6; } | ||
12540 | if test "${acl_cv_rpath+set}" = set; then : | ||
12541 | $as_echo_n "(cached) " >&6 | ||
12542 | else | ||
12543 | |||
12544 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | ||
12545 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | ||
12546 | . ./conftest.sh | ||
12547 | rm -f ./conftest.sh | ||
12548 | acl_cv_rpath=done | ||
12549 | |||
12550 | fi | ||
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | ||
12552 | $as_echo "$acl_cv_rpath" >&6; } | ||
12553 | wl="$acl_cv_wl" | ||
12554 | acl_libext="$acl_cv_libext" | ||
12555 | acl_shlibext="$acl_cv_shlibext" | ||
12556 | acl_libname_spec="$acl_cv_libname_spec" | ||
12557 | acl_library_names_spec="$acl_cv_library_names_spec" | ||
12558 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
12559 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
12560 | acl_hardcode_direct="$acl_cv_hardcode_direct" | ||
12561 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
12562 | # Check whether --enable-rpath was given. | ||
12563 | if test "${enable_rpath+set}" = set; then : | ||
12564 | enableval=$enable_rpath; : | ||
12565 | else | ||
12566 | enable_rpath=yes | ||
12567 | fi | ||
12568 | |||
12569 | |||
12570 | |||
12571 | acl_libdirstem=lib | ||
12572 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | ||
12573 | if test -n "$searchpath"; then | ||
12574 | acl_save_IFS="${IFS= }"; IFS=":" | ||
12575 | for searchdir in $searchpath; do | ||
12576 | if test -d "$searchdir"; then | ||
12577 | case "$searchdir" in | ||
12578 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | ||
12579 | *) searchdir=`cd "$searchdir" && pwd` | ||
12580 | case "$searchdir" in | ||
12581 | */lib64 ) acl_libdirstem=lib64 ;; | ||
12582 | esac ;; | ||
12583 | esac | ||
12584 | fi | ||
12585 | done | ||
12586 | IFS="$acl_save_IFS" | ||
12587 | fi | ||
12588 | |||
12589 | |||
12590 | |||
12591 | |||
12592 | |||
12593 | |||
12594 | |||
12595 | |||
12596 | |||
12597 | use_additional=yes | ||
12598 | |||
12599 | acl_save_prefix="$prefix" | ||
12600 | prefix="$acl_final_prefix" | ||
12601 | acl_save_exec_prefix="$exec_prefix" | ||
12602 | exec_prefix="$acl_final_exec_prefix" | ||
12603 | |||
12604 | eval additional_includedir=\"$includedir\" | ||
12605 | eval additional_libdir=\"$libdir\" | ||
12606 | |||
12607 | exec_prefix="$acl_save_exec_prefix" | ||
12608 | prefix="$acl_save_prefix" | ||
12609 | |||
12610 | |||
12611 | # Check whether --with-libiconv-prefix was given. | ||
12612 | if test "${with_libiconv_prefix+set}" = set; then : | ||
12613 | withval=$with_libiconv_prefix; | ||
12614 | if test "X$withval" = "Xno"; then | ||
12615 | use_additional=no | ||
12616 | else | ||
12617 | if test "X$withval" = "X"; then | ||
12618 | |||
12619 | acl_save_prefix="$prefix" | ||
12620 | prefix="$acl_final_prefix" | ||
12621 | acl_save_exec_prefix="$exec_prefix" | ||
12622 | exec_prefix="$acl_final_exec_prefix" | ||
12623 | |||
12624 | eval additional_includedir=\"$includedir\" | ||
12625 | eval additional_libdir=\"$libdir\" | ||
12626 | |||
12627 | exec_prefix="$acl_save_exec_prefix" | ||
12628 | prefix="$acl_save_prefix" | ||
12629 | |||
12630 | else | ||
12631 | additional_includedir="$withval/include" | ||
12632 | additional_libdir="$withval/$acl_libdirstem" | ||
12633 | fi | ||
12634 | fi | ||
12635 | |||
12636 | fi | ||
12637 | |||
12638 | LIBICONV= | ||
12639 | LTLIBICONV= | ||
12640 | INCICONV= | ||
12641 | LIBICONV_PREFIX= | ||
12642 | rpathdirs= | ||
12643 | ltrpathdirs= | ||
12644 | names_already_handled= | ||
12645 | names_next_round='iconv ' | ||
12646 | while test -n "$names_next_round"; do | ||
12647 | names_this_round="$names_next_round" | ||
12648 | names_next_round= | ||
12649 | for name in $names_this_round; do | ||
12650 | already_handled= | ||
12651 | for n in $names_already_handled; do | ||
12652 | if test "$n" = "$name"; then | ||
12653 | already_handled=yes | ||
12654 | break | ||
12655 | fi | ||
12656 | done | ||
12657 | if test -z "$already_handled"; then | ||
12658 | names_already_handled="$names_already_handled $name" | ||
12659 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | ||
12660 | eval value=\"\$HAVE_LIB$uppername\" | ||
12661 | if test -n "$value"; then | ||
12662 | if test "$value" = yes; then | ||
12663 | eval value=\"\$LIB$uppername\" | ||
12664 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | ||
12665 | eval value=\"\$LTLIB$uppername\" | ||
12666 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | ||
12667 | else | ||
12668 | : | ||
12669 | fi | ||
12670 | else | ||
12671 | found_dir= | ||
12672 | found_la= | ||
12673 | found_so= | ||
12674 | found_a= | ||
12675 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | ||
12676 | if test -n "$acl_shlibext"; then | ||
12677 | shrext=".$acl_shlibext" # typically: shrext=.so | ||
12678 | else | ||
12679 | shrext= | ||
12680 | fi | ||
12681 | if test $use_additional = yes; then | ||
12682 | dir="$additional_libdir" | ||
12683 | if test -n "$acl_shlibext"; then | ||
12684 | if test -f "$dir/$libname$shrext"; then | ||
12685 | found_dir="$dir" | ||
12686 | found_so="$dir/$libname$shrext" | ||
12687 | else | ||
12688 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
12689 | ver=`(cd "$dir" && \ | ||
12690 | for f in "$libname$shrext".*; do echo "$f"; done \ | ||
12691 | | sed -e "s,^$libname$shrext\\\\.,," \ | ||
12692 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
12693 | | sed 1q ) 2>/dev/null` | ||
12694 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
12695 | found_dir="$dir" | ||
12696 | found_so="$dir/$libname$shrext.$ver" | ||
12697 | fi | ||
12698 | else | ||
12699 | eval library_names=\"$acl_library_names_spec\" | ||
12700 | for f in $library_names; do | ||
12701 | if test -f "$dir/$f"; then | ||
12702 | found_dir="$dir" | ||
12703 | found_so="$dir/$f" | ||
12704 | break | ||
12705 | fi | ||
12706 | done | ||
12707 | fi | ||
12708 | fi | ||
12709 | fi | ||
12710 | if test "X$found_dir" = "X"; then | ||
12711 | if test -f "$dir/$libname.$acl_libext"; then | ||
12712 | found_dir="$dir" | ||
12713 | found_a="$dir/$libname.$acl_libext" | ||
12714 | fi | ||
12715 | fi | ||
12716 | if test "X$found_dir" != "X"; then | ||
12717 | if test -f "$dir/$libname.la"; then | ||
12718 | found_la="$dir/$libname.la" | ||
12719 | fi | ||
12720 | fi | ||
12721 | fi | ||
12722 | if test "X$found_dir" = "X"; then | ||
12723 | for x in $LDFLAGS $LTLIBICONV; do | ||
12724 | |||
12725 | acl_save_prefix="$prefix" | ||
12726 | prefix="$acl_final_prefix" | ||
12727 | acl_save_exec_prefix="$exec_prefix" | ||
12728 | exec_prefix="$acl_final_exec_prefix" | ||
12729 | eval x=\"$x\" | ||
12730 | exec_prefix="$acl_save_exec_prefix" | ||
12731 | prefix="$acl_save_prefix" | ||
12732 | |||
12733 | case "$x" in | ||
12734 | -L*) | ||
12735 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
12736 | if test -n "$acl_shlibext"; then | ||
12737 | if test -f "$dir/$libname$shrext"; then | ||
12738 | found_dir="$dir" | ||
12739 | found_so="$dir/$libname$shrext" | ||
12740 | else | ||
12741 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
12742 | ver=`(cd "$dir" && \ | ||
12743 | for f in "$libname$shrext".*; do echo "$f"; done \ | ||
12744 | | sed -e "s,^$libname$shrext\\\\.,," \ | ||
12745 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
12746 | | sed 1q ) 2>/dev/null` | ||
12747 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
12748 | found_dir="$dir" | ||
12749 | found_so="$dir/$libname$shrext.$ver" | ||
12750 | fi | ||
12751 | else | ||
12752 | eval library_names=\"$acl_library_names_spec\" | ||
12753 | for f in $library_names; do | ||
12754 | if test -f "$dir/$f"; then | ||
12755 | found_dir="$dir" | ||
12756 | found_so="$dir/$f" | ||
12757 | break | ||
12758 | fi | ||
12759 | done | ||
12760 | fi | ||
12761 | fi | ||
12762 | fi | ||
12763 | if test "X$found_dir" = "X"; then | ||
12764 | if test -f "$dir/$libname.$acl_libext"; then | ||
12765 | found_dir="$dir" | ||
12766 | found_a="$dir/$libname.$acl_libext" | ||
12767 | fi | ||
12768 | fi | ||
12769 | if test "X$found_dir" != "X"; then | ||
12770 | if test -f "$dir/$libname.la"; then | ||
12771 | found_la="$dir/$libname.la" | ||
12772 | fi | ||
12773 | fi | ||
12774 | ;; | ||
12775 | esac | ||
12776 | if test "X$found_dir" != "X"; then | ||
12777 | break | ||
12778 | fi | ||
12779 | done | ||
12780 | fi | ||
12781 | if test "X$found_dir" != "X"; then | ||
12782 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | ||
12783 | if test "X$found_so" != "X"; then | ||
12784 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | ||
12785 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
12786 | else | ||
12787 | haveit= | ||
12788 | for x in $ltrpathdirs; do | ||
12789 | if test "X$x" = "X$found_dir"; then | ||
12790 | haveit=yes | ||
12791 | break | ||
12792 | fi | ||
12793 | done | ||
12794 | if test -z "$haveit"; then | ||
12795 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
12796 | fi | ||
12797 | if test "$acl_hardcode_direct" = yes; then | ||
12798 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
12799 | else | ||
12800 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | ||
12801 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
12802 | haveit= | ||
12803 | for x in $rpathdirs; do | ||
12804 | if test "X$x" = "X$found_dir"; then | ||
12805 | haveit=yes | ||
12806 | break | ||
12807 | fi | ||
12808 | done | ||
12809 | if test -z "$haveit"; then | ||
12810 | rpathdirs="$rpathdirs $found_dir" | ||
12811 | fi | ||
12812 | else | ||
12813 | haveit= | ||
12814 | for x in $LDFLAGS $LIBICONV; do | ||
12815 | |||
12816 | acl_save_prefix="$prefix" | ||
12817 | prefix="$acl_final_prefix" | ||
12818 | acl_save_exec_prefix="$exec_prefix" | ||
12819 | exec_prefix="$acl_final_exec_prefix" | ||
12820 | eval x=\"$x\" | ||
12821 | exec_prefix="$acl_save_exec_prefix" | ||
12822 | prefix="$acl_save_prefix" | ||
12823 | |||
12824 | if test "X$x" = "X-L$found_dir"; then | ||
12825 | haveit=yes | ||
12826 | break | ||
12827 | fi | ||
12828 | done | ||
12829 | if test -z "$haveit"; then | ||
12830 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | ||
12831 | fi | ||
12832 | if test "$acl_hardcode_minus_L" != no; then | ||
12833 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | ||
12834 | else | ||
12835 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | ||
12836 | fi | ||
12837 | fi | ||
12838 | fi | ||
12839 | fi | ||
12840 | else | ||
12841 | if test "X$found_a" != "X"; then | ||
12842 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | ||
12843 | else | ||
12844 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | ||
12845 | fi | ||
12846 | fi | ||
12847 | additional_includedir= | ||
12848 | case "$found_dir" in | ||
12849 | */$acl_libdirstem | */$acl_libdirstem/) | ||
12850 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | ||
12851 | LIBICONV_PREFIX="$basedir" | ||
12852 | additional_includedir="$basedir/include" | ||
12853 | ;; | ||
12854 | esac | ||
12855 | if test "X$additional_includedir" != "X"; then | ||
12856 | if test "X$additional_includedir" != "X/usr/include"; then | ||
12857 | haveit= | ||
12858 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
12859 | if test -n "$GCC"; then | ||
12860 | case $host_os in | ||
12861 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
12862 | esac | ||
12863 | fi | ||
12864 | fi | ||
12865 | if test -z "$haveit"; then | ||
12866 | for x in $CPPFLAGS $INCICONV; do | ||
12867 | |||
12868 | acl_save_prefix="$prefix" | ||
12869 | prefix="$acl_final_prefix" | ||
12870 | acl_save_exec_prefix="$exec_prefix" | ||
12871 | exec_prefix="$acl_final_exec_prefix" | ||
12872 | eval x=\"$x\" | ||
12873 | exec_prefix="$acl_save_exec_prefix" | ||
12874 | prefix="$acl_save_prefix" | ||
12875 | |||
12876 | if test "X$x" = "X-I$additional_includedir"; then | ||
12877 | haveit=yes | ||
12878 | break | ||
12879 | fi | ||
12880 | done | ||
12881 | if test -z "$haveit"; then | ||
12882 | if test -d "$additional_includedir"; then | ||
12883 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | ||
12884 | fi | ||
12885 | fi | ||
12886 | fi | ||
12887 | fi | ||
12888 | fi | ||
12889 | if test -n "$found_la"; then | ||
12890 | save_libdir="$libdir" | ||
12891 | case "$found_la" in | ||
12892 | */* | *\\*) . "$found_la" ;; | ||
12893 | *) . "./$found_la" ;; | ||
12894 | esac | ||
12895 | libdir="$save_libdir" | ||
12896 | for dep in $dependency_libs; do | ||
12897 | case "$dep" in | ||
12898 | -L*) | ||
12899 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | ||
12900 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | ||
12901 | haveit= | ||
12902 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | ||
12903 | if test -n "$GCC"; then | ||
12904 | case $host_os in | ||
12905 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
12906 | esac | ||
12907 | fi | ||
12908 | fi | ||
12909 | if test -z "$haveit"; then | ||
12910 | haveit= | ||
12911 | for x in $LDFLAGS $LIBICONV; do | ||
12912 | |||
12913 | acl_save_prefix="$prefix" | ||
12914 | prefix="$acl_final_prefix" | ||
12915 | acl_save_exec_prefix="$exec_prefix" | ||
12916 | exec_prefix="$acl_final_exec_prefix" | ||
12917 | eval x=\"$x\" | ||
12918 | exec_prefix="$acl_save_exec_prefix" | ||
12919 | prefix="$acl_save_prefix" | ||
12920 | |||
12921 | if test "X$x" = "X-L$additional_libdir"; then | ||
12922 | haveit=yes | ||
12923 | break | ||
12924 | fi | ||
12925 | done | ||
12926 | if test -z "$haveit"; then | ||
12927 | if test -d "$additional_libdir"; then | ||
12928 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | ||
12929 | fi | ||
12930 | fi | ||
12931 | haveit= | ||
12932 | for x in $LDFLAGS $LTLIBICONV; do | ||
12933 | |||
12934 | acl_save_prefix="$prefix" | ||
12935 | prefix="$acl_final_prefix" | ||
12936 | acl_save_exec_prefix="$exec_prefix" | ||
12937 | exec_prefix="$acl_final_exec_prefix" | ||
12938 | eval x=\"$x\" | ||
12939 | exec_prefix="$acl_save_exec_prefix" | ||
12940 | prefix="$acl_save_prefix" | ||
12941 | |||
12942 | if test "X$x" = "X-L$additional_libdir"; then | ||
12943 | haveit=yes | ||
12944 | break | ||
12945 | fi | ||
12946 | done | ||
12947 | if test -z "$haveit"; then | ||
12948 | if test -d "$additional_libdir"; then | ||
12949 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | ||
12950 | fi | ||
12951 | fi | ||
12952 | fi | ||
12953 | fi | ||
12954 | ;; | ||
12955 | -R*) | ||
12956 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | ||
12957 | if test "$enable_rpath" != no; then | ||
12958 | haveit= | ||
12959 | for x in $rpathdirs; do | ||
12960 | if test "X$x" = "X$dir"; then | ||
12961 | haveit=yes | ||
12962 | break | ||
12963 | fi | ||
12964 | done | ||
12965 | if test -z "$haveit"; then | ||
12966 | rpathdirs="$rpathdirs $dir" | ||
12967 | fi | ||
12968 | haveit= | ||
12969 | for x in $ltrpathdirs; do | ||
12970 | if test "X$x" = "X$dir"; then | ||
12971 | haveit=yes | ||
12972 | break | ||
12973 | fi | ||
12974 | done | ||
12975 | if test -z "$haveit"; then | ||
12976 | ltrpathdirs="$ltrpathdirs $dir" | ||
12977 | fi | ||
12978 | fi | ||
12979 | ;; | ||
12980 | -l*) | ||
12981 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | ||
12982 | ;; | ||
12983 | *.la) | ||
12984 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | ||
12985 | ;; | ||
12986 | *) | ||
12987 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | ||
12988 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | ||
12989 | ;; | ||
12990 | esac | ||
12991 | done | ||
12992 | fi | ||
12993 | else | ||
12994 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | ||
12995 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | ||
12996 | fi | ||
12997 | fi | ||
12998 | fi | ||
12999 | done | ||
13000 | done | ||
13001 | if test "X$rpathdirs" != "X"; then | ||
13002 | if test -n "$acl_hardcode_libdir_separator"; then | ||
13003 | alldirs= | ||
13004 | for found_dir in $rpathdirs; do | ||
13005 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | ||
13006 | done | ||
13007 | acl_save_libdir="$libdir" | ||
13008 | libdir="$alldirs" | ||
13009 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
13010 | libdir="$acl_save_libdir" | ||
13011 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | ||
13012 | else | ||
13013 | for found_dir in $rpathdirs; do | ||
13014 | acl_save_libdir="$libdir" | ||
13015 | libdir="$found_dir" | ||
13016 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
13017 | libdir="$acl_save_libdir" | ||
13018 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | ||
13019 | done | ||
13020 | fi | ||
13021 | fi | ||
13022 | if test "X$ltrpathdirs" != "X"; then | ||
13023 | for found_dir in $ltrpathdirs; do | ||
13024 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | ||
13025 | done | ||
13026 | fi | ||
13027 | |||
13028 | |||
13029 | |||
13030 | |||
13031 | |||
13032 | |||
13033 | |||
13034 | |||
13035 | |||
13036 | |||
13037 | |||
13038 | |||
13039 | |||
13040 | |||
13041 | |||
13042 | |||
13043 | |||
13044 | |||
13045 | |||
13046 | |||
13047 | |||
13048 | |||
13049 | |||
13050 | |||
13051 | |||
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | ||
13053 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | ||
13054 | if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : | ||
13055 | $as_echo_n "(cached) " >&6 | ||
13056 | else | ||
13057 | gt_save_LIBS="$LIBS" | ||
13058 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | ||
13059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13060 | /* end confdefs.h. */ | ||
13061 | #include <CoreFoundation/CFPreferences.h> | ||
13062 | int | ||
13063 | main () | ||
13064 | { | ||
13065 | CFPreferencesCopyAppValue(NULL, NULL) | ||
13066 | ; | ||
13067 | return 0; | ||
13068 | } | ||
13069 | _ACEOF | ||
13070 | if ac_fn_c_try_link "$LINENO"; then : | ||
13071 | gt_cv_func_CFPreferencesCopyAppValue=yes | ||
13072 | else | ||
13073 | gt_cv_func_CFPreferencesCopyAppValue=no | ||
13074 | fi | ||
13075 | rm -f core conftest.err conftest.$ac_objext \ | ||
13076 | conftest$ac_exeext conftest.$ac_ext | ||
13077 | LIBS="$gt_save_LIBS" | ||
13078 | fi | ||
13079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | ||
13080 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | ||
13081 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | ||
13082 | |||
13083 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | ||
13084 | |||
13085 | fi | ||
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | ||
13087 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | ||
13088 | if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : | ||
13089 | $as_echo_n "(cached) " >&6 | ||
13090 | else | ||
13091 | gt_save_LIBS="$LIBS" | ||
13092 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | ||
13093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13094 | /* end confdefs.h. */ | ||
13095 | #include <CoreFoundation/CFLocale.h> | ||
13096 | int | ||
13097 | main () | ||
13098 | { | ||
13099 | CFLocaleCopyCurrent(); | ||
13100 | ; | ||
13101 | return 0; | ||
13102 | } | ||
13103 | _ACEOF | ||
13104 | if ac_fn_c_try_link "$LINENO"; then : | ||
13105 | gt_cv_func_CFLocaleCopyCurrent=yes | ||
13106 | else | ||
13107 | gt_cv_func_CFLocaleCopyCurrent=no | ||
13108 | fi | ||
13109 | rm -f core conftest.err conftest.$ac_objext \ | ||
13110 | conftest$ac_exeext conftest.$ac_ext | ||
13111 | LIBS="$gt_save_LIBS" | ||
13112 | fi | ||
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | ||
13114 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | ||
13115 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | ||
13116 | |||
13117 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | ||
13118 | |||
13119 | fi | ||
13120 | INTL_MACOSX_LIBS= | ||
13121 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | ||
13122 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | ||
13123 | fi | ||
13124 | |||
13125 | |||
13126 | |||
13127 | |||
13128 | |||
13129 | |||
13130 | LIBINTL= | ||
13131 | LTLIBINTL= | ||
13132 | POSUB= | ||
13133 | |||
13134 | case " $gt_needs " in | ||
13135 | *" need-formatstring-macros "*) gt_api_version=3 ;; | ||
13136 | *" need-ngettext "*) gt_api_version=2 ;; | ||
13137 | *) gt_api_version=1 ;; | ||
13138 | esac | ||
13139 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | ||
13140 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | ||
13141 | |||
13142 | if test "$USE_NLS" = "yes"; then | ||
13143 | gt_use_preinstalled_gnugettext=no | ||
13144 | |||
13145 | |||
13146 | if test $gt_api_version -ge 3; then | ||
13147 | gt_revision_test_code=' | ||
13148 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | ||
13149 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | ||
13150 | #endif | ||
13151 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | ||
13152 | ' | ||
13153 | else | ||
13154 | gt_revision_test_code= | ||
13155 | fi | ||
13156 | if test $gt_api_version -ge 2; then | ||
13157 | gt_expression_test_code=' + * ngettext ("", "", 0)' | ||
13158 | else | ||
13159 | gt_expression_test_code= | ||
13160 | fi | ||
13161 | |||
13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | ||
13163 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | ||
13164 | if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then : | ||
13165 | $as_echo_n "(cached) " >&6 | ||
13166 | else | ||
13167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13168 | /* end confdefs.h. */ | ||
13169 | #include <libintl.h> | ||
13170 | $gt_revision_test_code | ||
13171 | extern int _nl_msg_cat_cntr; | ||
13172 | extern int *_nl_domain_bindings; | ||
13173 | int | ||
13174 | main () | ||
13175 | { | ||
13176 | bindtextdomain ("", ""); | ||
13177 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings | ||
13178 | ; | ||
13179 | return 0; | ||
13180 | } | ||
13181 | _ACEOF | ||
13182 | if ac_fn_c_try_link "$LINENO"; then : | ||
13183 | eval "$gt_func_gnugettext_libc=yes" | ||
13184 | else | ||
13185 | eval "$gt_func_gnugettext_libc=no" | ||
13186 | fi | ||
13187 | rm -f core conftest.err conftest.$ac_objext \ | ||
13188 | conftest$ac_exeext conftest.$ac_ext | ||
13189 | fi | ||
13190 | eval ac_res=\$$gt_func_gnugettext_libc | ||
13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
13192 | $as_echo "$ac_res" >&6; } | ||
13193 | |||
13194 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | ||
13195 | |||
13196 | |||
13197 | |||
13198 | |||
13199 | |||
13200 | am_save_CPPFLAGS="$CPPFLAGS" | ||
13201 | |||
13202 | for element in $INCICONV; do | ||
13203 | haveit= | ||
13204 | for x in $CPPFLAGS; do | ||
13205 | |||
13206 | acl_save_prefix="$prefix" | ||
13207 | prefix="$acl_final_prefix" | ||
13208 | acl_save_exec_prefix="$exec_prefix" | ||
13209 | exec_prefix="$acl_final_exec_prefix" | ||
13210 | eval x=\"$x\" | ||
13211 | exec_prefix="$acl_save_exec_prefix" | ||
13212 | prefix="$acl_save_prefix" | ||
13213 | |||
13214 | if test "X$x" = "X$element"; then | ||
13215 | haveit=yes | ||
13216 | break | ||
13217 | fi | ||
13218 | done | ||
13219 | if test -z "$haveit"; then | ||
13220 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | ||
13221 | fi | ||
13222 | done | ||
13223 | |||
13224 | |||
13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | ||
13226 | $as_echo_n "checking for iconv... " >&6; } | ||
13227 | if test "${am_cv_func_iconv+set}" = set; then : | ||
13228 | $as_echo_n "(cached) " >&6 | ||
13229 | else | ||
13230 | |||
13231 | am_cv_func_iconv="no, consider installing GNU libiconv" | ||
13232 | am_cv_lib_iconv=no | ||
13233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13234 | /* end confdefs.h. */ | ||
13235 | #include <stdlib.h> | ||
13236 | #include <iconv.h> | ||
13237 | int | ||
13238 | main () | ||
13239 | { | ||
13240 | iconv_t cd = iconv_open("",""); | ||
13241 | iconv(cd,NULL,NULL,NULL,NULL); | ||
13242 | iconv_close(cd); | ||
13243 | ; | ||
13244 | return 0; | ||
13245 | } | ||
13246 | _ACEOF | ||
13247 | if ac_fn_c_try_link "$LINENO"; then : | ||
13248 | am_cv_func_iconv=yes | ||
13249 | fi | ||
13250 | rm -f core conftest.err conftest.$ac_objext \ | ||
13251 | conftest$ac_exeext conftest.$ac_ext | ||
13252 | if test "$am_cv_func_iconv" != yes; then | ||
13253 | am_save_LIBS="$LIBS" | ||
13254 | LIBS="$LIBS $LIBICONV" | ||
13255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13256 | /* end confdefs.h. */ | ||
13257 | #include <stdlib.h> | ||
13258 | #include <iconv.h> | ||
13259 | int | ||
13260 | main () | ||
13261 | { | ||
13262 | iconv_t cd = iconv_open("",""); | ||
13263 | iconv(cd,NULL,NULL,NULL,NULL); | ||
13264 | iconv_close(cd); | ||
13265 | ; | ||
13266 | return 0; | ||
13267 | } | ||
13268 | _ACEOF | ||
13269 | if ac_fn_c_try_link "$LINENO"; then : | ||
13270 | am_cv_lib_iconv=yes | ||
13271 | am_cv_func_iconv=yes | ||
13272 | fi | ||
13273 | rm -f core conftest.err conftest.$ac_objext \ | ||
13274 | conftest$ac_exeext conftest.$ac_ext | ||
13275 | LIBS="$am_save_LIBS" | ||
13276 | fi | ||
13277 | |||
13278 | fi | ||
13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | ||
13280 | $as_echo "$am_cv_func_iconv" >&6; } | ||
13281 | if test "$am_cv_func_iconv" = yes; then | ||
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | ||
13283 | $as_echo_n "checking for working iconv... " >&6; } | ||
13284 | if test "${am_cv_func_iconv_works+set}" = set; then : | ||
13285 | $as_echo_n "(cached) " >&6 | ||
13286 | else | ||
13287 | |||
13288 | am_save_LIBS="$LIBS" | ||
13289 | if test $am_cv_lib_iconv = yes; then | ||
13290 | LIBS="$LIBS $LIBICONV" | ||
13291 | fi | ||
13292 | if test "$cross_compiling" = yes; then : | ||
13293 | case "$host_os" in | ||
13294 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | ||
13295 | *) am_cv_func_iconv_works="guessing yes" ;; | ||
13296 | esac | ||
13297 | else | ||
13298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13299 | /* end confdefs.h. */ | ||
13300 | |||
13301 | #include <iconv.h> | ||
13302 | #include <string.h> | ||
13303 | int main () | ||
13304 | { | ||
13305 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | ||
13306 | returns. */ | ||
13307 | { | ||
13308 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | ||
13309 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | ||
13310 | { | ||
13311 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | ||
13312 | char buf[10]; | ||
13313 | const char *inptr = input; | ||
13314 | size_t inbytesleft = strlen (input); | ||
13315 | char *outptr = buf; | ||
13316 | size_t outbytesleft = sizeof (buf); | ||
13317 | size_t res = iconv (cd_utf8_to_88591, | ||
13318 | (char **) &inptr, &inbytesleft, | ||
13319 | &outptr, &outbytesleft); | ||
13320 | if (res == 0) | ||
13321 | return 1; | ||
13322 | } | ||
13323 | } | ||
13324 | #if 0 /* This bug could be worked around by the caller. */ | ||
13325 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | ||
13326 | { | ||
13327 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | ||
13328 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | ||
13329 | { | ||
13330 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | ||
13331 | char buf[50]; | ||
13332 | const char *inptr = input; | ||
13333 | size_t inbytesleft = strlen (input); | ||
13334 | char *outptr = buf; | ||
13335 | size_t outbytesleft = sizeof (buf); | ||
13336 | size_t res = iconv (cd_88591_to_utf8, | ||
13337 | (char **) &inptr, &inbytesleft, | ||
13338 | &outptr, &outbytesleft); | ||
13339 | if ((int)res > 0) | ||
13340 | return 1; | ||
13341 | } | ||
13342 | } | ||
13343 | #endif | ||
13344 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | ||
13345 | provided. */ | ||
13346 | if (/* Try standardized names. */ | ||
13347 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | ||
13348 | /* Try IRIX, OSF/1 names. */ | ||
13349 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | ||
13350 | /* Try AIX names. */ | ||
13351 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | ||
13352 | /* Try HP-UX names. */ | ||
13353 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | ||
13354 | return 1; | ||
13355 | return 0; | ||
13356 | } | ||
13357 | _ACEOF | ||
13358 | if ac_fn_c_try_run "$LINENO"; then : | ||
13359 | am_cv_func_iconv_works=yes | ||
13360 | else | ||
13361 | am_cv_func_iconv_works=no | ||
13362 | fi | ||
13363 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13364 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13365 | fi | ||
13366 | |||
13367 | LIBS="$am_save_LIBS" | ||
13368 | |||
13369 | fi | ||
13370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | ||
13371 | $as_echo "$am_cv_func_iconv_works" >&6; } | ||
13372 | case "$am_cv_func_iconv_works" in | ||
13373 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | ||
13374 | *) am_func_iconv=yes ;; | ||
13375 | esac | ||
13376 | else | ||
13377 | am_func_iconv=no am_cv_lib_iconv=no | ||
13378 | fi | ||
13379 | if test "$am_func_iconv" = yes; then | ||
13380 | |||
13381 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | ||
13382 | |||
13383 | fi | ||
13384 | if test "$am_cv_lib_iconv" = yes; then | ||
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | ||
13386 | $as_echo_n "checking how to link with libiconv... " >&6; } | ||
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | ||
13388 | $as_echo "$LIBICONV" >&6; } | ||
13389 | else | ||
13390 | CPPFLAGS="$am_save_CPPFLAGS" | ||
13391 | LIBICONV= | ||
13392 | LTLIBICONV= | ||
13393 | fi | ||
13394 | |||
13395 | |||
13396 | |||
13397 | |||
13398 | |||
13399 | |||
13400 | |||
13401 | |||
13402 | use_additional=yes | ||
13403 | |||
13404 | acl_save_prefix="$prefix" | ||
13405 | prefix="$acl_final_prefix" | ||
13406 | acl_save_exec_prefix="$exec_prefix" | ||
13407 | exec_prefix="$acl_final_exec_prefix" | ||
13408 | |||
13409 | eval additional_includedir=\"$includedir\" | ||
13410 | eval additional_libdir=\"$libdir\" | ||
13411 | |||
13412 | exec_prefix="$acl_save_exec_prefix" | ||
13413 | prefix="$acl_save_prefix" | ||
13414 | |||
13415 | |||
13416 | # Check whether --with-libintl-prefix was given. | ||
13417 | if test "${with_libintl_prefix+set}" = set; then : | ||
13418 | withval=$with_libintl_prefix; | ||
13419 | if test "X$withval" = "Xno"; then | ||
13420 | use_additional=no | ||
13421 | else | ||
13422 | if test "X$withval" = "X"; then | ||
13423 | |||
13424 | acl_save_prefix="$prefix" | ||
13425 | prefix="$acl_final_prefix" | ||
13426 | acl_save_exec_prefix="$exec_prefix" | ||
13427 | exec_prefix="$acl_final_exec_prefix" | ||
13428 | |||
13429 | eval additional_includedir=\"$includedir\" | ||
13430 | eval additional_libdir=\"$libdir\" | ||
13431 | |||
13432 | exec_prefix="$acl_save_exec_prefix" | ||
13433 | prefix="$acl_save_prefix" | ||
13434 | |||
13435 | else | ||
13436 | additional_includedir="$withval/include" | ||
13437 | additional_libdir="$withval/$acl_libdirstem" | ||
13438 | fi | ||
13439 | fi | ||
13440 | |||
13441 | fi | ||
13442 | |||
13443 | LIBINTL= | ||
13444 | LTLIBINTL= | ||
13445 | INCINTL= | ||
13446 | LIBINTL_PREFIX= | ||
13447 | rpathdirs= | ||
13448 | ltrpathdirs= | ||
13449 | names_already_handled= | ||
13450 | names_next_round='intl ' | ||
13451 | while test -n "$names_next_round"; do | ||
13452 | names_this_round="$names_next_round" | ||
13453 | names_next_round= | ||
13454 | for name in $names_this_round; do | ||
13455 | already_handled= | ||
13456 | for n in $names_already_handled; do | ||
13457 | if test "$n" = "$name"; then | ||
13458 | already_handled=yes | ||
13459 | break | ||
13460 | fi | ||
13461 | done | ||
13462 | if test -z "$already_handled"; then | ||
13463 | names_already_handled="$names_already_handled $name" | ||
13464 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | ||
13465 | eval value=\"\$HAVE_LIB$uppername\" | ||
13466 | if test -n "$value"; then | ||
13467 | if test "$value" = yes; then | ||
13468 | eval value=\"\$LIB$uppername\" | ||
13469 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | ||
13470 | eval value=\"\$LTLIB$uppername\" | ||
13471 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | ||
13472 | else | ||
13473 | : | ||
13474 | fi | ||
13475 | else | ||
13476 | found_dir= | ||
13477 | found_la= | ||
13478 | found_so= | ||
13479 | found_a= | ||
13480 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | ||
13481 | if test -n "$acl_shlibext"; then | ||
13482 | shrext=".$acl_shlibext" # typically: shrext=.so | ||
13483 | else | ||
13484 | shrext= | ||
13485 | fi | ||
13486 | if test $use_additional = yes; then | ||
13487 | dir="$additional_libdir" | ||
13488 | if test -n "$acl_shlibext"; then | ||
13489 | if test -f "$dir/$libname$shrext"; then | ||
13490 | found_dir="$dir" | ||
13491 | found_so="$dir/$libname$shrext" | ||
13492 | else | ||
13493 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
13494 | ver=`(cd "$dir" && \ | ||
13495 | for f in "$libname$shrext".*; do echo "$f"; done \ | ||
13496 | | sed -e "s,^$libname$shrext\\\\.,," \ | ||
13497 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
13498 | | sed 1q ) 2>/dev/null` | ||
13499 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
13500 | found_dir="$dir" | ||
13501 | found_so="$dir/$libname$shrext.$ver" | ||
13502 | fi | ||
13503 | else | ||
13504 | eval library_names=\"$acl_library_names_spec\" | ||
13505 | for f in $library_names; do | ||
13506 | if test -f "$dir/$f"; then | ||
13507 | found_dir="$dir" | ||
13508 | found_so="$dir/$f" | ||
13509 | break | ||
13510 | fi | ||
13511 | done | ||
13512 | fi | ||
13513 | fi | ||
13514 | fi | ||
13515 | if test "X$found_dir" = "X"; then | ||
13516 | if test -f "$dir/$libname.$acl_libext"; then | ||
13517 | found_dir="$dir" | ||
13518 | found_a="$dir/$libname.$acl_libext" | ||
13519 | fi | ||
13520 | fi | ||
13521 | if test "X$found_dir" != "X"; then | ||
13522 | if test -f "$dir/$libname.la"; then | ||
13523 | found_la="$dir/$libname.la" | ||
13524 | fi | ||
13525 | fi | ||
13526 | fi | ||
13527 | if test "X$found_dir" = "X"; then | ||
13528 | for x in $LDFLAGS $LTLIBINTL; do | ||
13529 | |||
13530 | acl_save_prefix="$prefix" | ||
13531 | prefix="$acl_final_prefix" | ||
13532 | acl_save_exec_prefix="$exec_prefix" | ||
13533 | exec_prefix="$acl_final_exec_prefix" | ||
13534 | eval x=\"$x\" | ||
13535 | exec_prefix="$acl_save_exec_prefix" | ||
13536 | prefix="$acl_save_prefix" | ||
13537 | |||
13538 | case "$x" in | ||
13539 | -L*) | ||
13540 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
13541 | if test -n "$acl_shlibext"; then | ||
13542 | if test -f "$dir/$libname$shrext"; then | ||
13543 | found_dir="$dir" | ||
13544 | found_so="$dir/$libname$shrext" | ||
13545 | else | ||
13546 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
13547 | ver=`(cd "$dir" && \ | ||
13548 | for f in "$libname$shrext".*; do echo "$f"; done \ | ||
13549 | | sed -e "s,^$libname$shrext\\\\.,," \ | ||
13550 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
13551 | | sed 1q ) 2>/dev/null` | ||
13552 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
13553 | found_dir="$dir" | ||
13554 | found_so="$dir/$libname$shrext.$ver" | ||
13555 | fi | ||
13556 | else | ||
13557 | eval library_names=\"$acl_library_names_spec\" | ||
13558 | for f in $library_names; do | ||
13559 | if test -f "$dir/$f"; then | ||
13560 | found_dir="$dir" | ||
13561 | found_so="$dir/$f" | ||
13562 | break | ||
13563 | fi | ||
13564 | done | ||
13565 | fi | ||
13566 | fi | ||
13567 | fi | ||
13568 | if test "X$found_dir" = "X"; then | ||
13569 | if test -f "$dir/$libname.$acl_libext"; then | ||
13570 | found_dir="$dir" | ||
13571 | found_a="$dir/$libname.$acl_libext" | ||
13572 | fi | ||
13573 | fi | ||
13574 | if test "X$found_dir" != "X"; then | ||
13575 | if test -f "$dir/$libname.la"; then | ||
13576 | found_la="$dir/$libname.la" | ||
13577 | fi | ||
13578 | fi | ||
13579 | ;; | ||
13580 | esac | ||
13581 | if test "X$found_dir" != "X"; then | ||
13582 | break | ||
13583 | fi | ||
13584 | done | ||
13585 | fi | ||
13586 | if test "X$found_dir" != "X"; then | ||
13587 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | ||
13588 | if test "X$found_so" != "X"; then | ||
13589 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | ||
13590 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
13591 | else | ||
13592 | haveit= | ||
13593 | for x in $ltrpathdirs; do | ||
13594 | if test "X$x" = "X$found_dir"; then | ||
13595 | haveit=yes | ||
13596 | break | ||
13597 | fi | ||
13598 | done | ||
13599 | if test -z "$haveit"; then | ||
13600 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
13601 | fi | ||
13602 | if test "$acl_hardcode_direct" = yes; then | ||
13603 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
13604 | else | ||
13605 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | ||
13606 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
13607 | haveit= | ||
13608 | for x in $rpathdirs; do | ||
13609 | if test "X$x" = "X$found_dir"; then | ||
13610 | haveit=yes | ||
13611 | break | ||
13612 | fi | ||
13613 | done | ||
13614 | if test -z "$haveit"; then | ||
13615 | rpathdirs="$rpathdirs $found_dir" | ||
13616 | fi | ||
13617 | else | ||
13618 | haveit= | ||
13619 | for x in $LDFLAGS $LIBINTL; do | ||
13620 | |||
13621 | acl_save_prefix="$prefix" | ||
13622 | prefix="$acl_final_prefix" | ||
13623 | acl_save_exec_prefix="$exec_prefix" | ||
13624 | exec_prefix="$acl_final_exec_prefix" | ||
13625 | eval x=\"$x\" | ||
13626 | exec_prefix="$acl_save_exec_prefix" | ||
13627 | prefix="$acl_save_prefix" | ||
13628 | |||
13629 | if test "X$x" = "X-L$found_dir"; then | ||
13630 | haveit=yes | ||
13631 | break | ||
13632 | fi | ||
13633 | done | ||
13634 | if test -z "$haveit"; then | ||
13635 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | ||
13636 | fi | ||
13637 | if test "$acl_hardcode_minus_L" != no; then | ||
13638 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | ||
13639 | else | ||
13640 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | ||
13641 | fi | ||
13642 | fi | ||
13643 | fi | ||
13644 | fi | ||
13645 | else | ||
13646 | if test "X$found_a" != "X"; then | ||
13647 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | ||
13648 | else | ||
13649 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | ||
13650 | fi | ||
13651 | fi | ||
13652 | additional_includedir= | ||
13653 | case "$found_dir" in | ||
13654 | */$acl_libdirstem | */$acl_libdirstem/) | ||
13655 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | ||
13656 | LIBINTL_PREFIX="$basedir" | ||
13657 | additional_includedir="$basedir/include" | ||
13658 | ;; | ||
13659 | esac | ||
13660 | if test "X$additional_includedir" != "X"; then | ||
13661 | if test "X$additional_includedir" != "X/usr/include"; then | ||
13662 | haveit= | ||
13663 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
13664 | if test -n "$GCC"; then | ||
13665 | case $host_os in | ||
13666 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
13667 | esac | ||
13668 | fi | ||
13669 | fi | ||
13670 | if test -z "$haveit"; then | ||
13671 | for x in $CPPFLAGS $INCINTL; do | ||
13672 | |||
13673 | acl_save_prefix="$prefix" | ||
13674 | prefix="$acl_final_prefix" | ||
13675 | acl_save_exec_prefix="$exec_prefix" | ||
13676 | exec_prefix="$acl_final_exec_prefix" | ||
13677 | eval x=\"$x\" | ||
13678 | exec_prefix="$acl_save_exec_prefix" | ||
13679 | prefix="$acl_save_prefix" | ||
13680 | |||
13681 | if test "X$x" = "X-I$additional_includedir"; then | ||
13682 | haveit=yes | ||
13683 | break | ||
13684 | fi | ||
13685 | done | ||
13686 | if test -z "$haveit"; then | ||
13687 | if test -d "$additional_includedir"; then | ||
13688 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | ||
13689 | fi | ||
13690 | fi | ||
13691 | fi | ||
13692 | fi | ||
13693 | fi | ||
13694 | if test -n "$found_la"; then | ||
13695 | save_libdir="$libdir" | ||
13696 | case "$found_la" in | ||
13697 | */* | *\\*) . "$found_la" ;; | ||
13698 | *) . "./$found_la" ;; | ||
13699 | esac | ||
13700 | libdir="$save_libdir" | ||
13701 | for dep in $dependency_libs; do | ||
13702 | case "$dep" in | ||
13703 | -L*) | ||
13704 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | ||
13705 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | ||
13706 | haveit= | ||
13707 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | ||
13708 | if test -n "$GCC"; then | ||
13709 | case $host_os in | ||
13710 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
13711 | esac | ||
13712 | fi | ||
13713 | fi | ||
13714 | if test -z "$haveit"; then | ||
13715 | haveit= | ||
13716 | for x in $LDFLAGS $LIBINTL; do | ||
13717 | |||
13718 | acl_save_prefix="$prefix" | ||
13719 | prefix="$acl_final_prefix" | ||
13720 | acl_save_exec_prefix="$exec_prefix" | ||
13721 | exec_prefix="$acl_final_exec_prefix" | ||
13722 | eval x=\"$x\" | ||
13723 | exec_prefix="$acl_save_exec_prefix" | ||
13724 | prefix="$acl_save_prefix" | ||
13725 | |||
13726 | if test "X$x" = "X-L$additional_libdir"; then | ||
13727 | haveit=yes | ||
13728 | break | ||
13729 | fi | ||
13730 | done | ||
13731 | if test -z "$haveit"; then | ||
13732 | if test -d "$additional_libdir"; then | ||
13733 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | ||
13734 | fi | ||
13735 | fi | ||
13736 | haveit= | ||
13737 | for x in $LDFLAGS $LTLIBINTL; do | ||
13738 | |||
13739 | acl_save_prefix="$prefix" | ||
13740 | prefix="$acl_final_prefix" | ||
13741 | acl_save_exec_prefix="$exec_prefix" | ||
13742 | exec_prefix="$acl_final_exec_prefix" | ||
13743 | eval x=\"$x\" | ||
13744 | exec_prefix="$acl_save_exec_prefix" | ||
13745 | prefix="$acl_save_prefix" | ||
13746 | |||
13747 | if test "X$x" = "X-L$additional_libdir"; then | ||
13748 | haveit=yes | ||
13749 | break | ||
13750 | fi | ||
13751 | done | ||
13752 | if test -z "$haveit"; then | ||
13753 | if test -d "$additional_libdir"; then | ||
13754 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | ||
13755 | fi | ||
13756 | fi | ||
13757 | fi | ||
13758 | fi | ||
13759 | ;; | ||
13760 | -R*) | ||
13761 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | ||
13762 | if test "$enable_rpath" != no; then | ||
13763 | haveit= | ||
13764 | for x in $rpathdirs; do | ||
13765 | if test "X$x" = "X$dir"; then | ||
13766 | haveit=yes | ||
13767 | break | ||
13768 | fi | ||
13769 | done | ||
13770 | if test -z "$haveit"; then | ||
13771 | rpathdirs="$rpathdirs $dir" | ||
13772 | fi | ||
13773 | haveit= | ||
13774 | for x in $ltrpathdirs; do | ||
13775 | if test "X$x" = "X$dir"; then | ||
13776 | haveit=yes | ||
13777 | break | ||
13778 | fi | ||
13779 | done | ||
13780 | if test -z "$haveit"; then | ||
13781 | ltrpathdirs="$ltrpathdirs $dir" | ||
13782 | fi | ||
13783 | fi | ||
13784 | ;; | ||
13785 | -l*) | ||
13786 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | ||
13787 | ;; | ||
13788 | *.la) | ||
13789 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | ||
13790 | ;; | ||
13791 | *) | ||
13792 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | ||
13793 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | ||
13794 | ;; | ||
13795 | esac | ||
13796 | done | ||
13797 | fi | ||
13798 | else | ||
13799 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | ||
13800 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | ||
13801 | fi | ||
13802 | fi | ||
13803 | fi | ||
13804 | done | ||
13805 | done | ||
13806 | if test "X$rpathdirs" != "X"; then | ||
13807 | if test -n "$acl_hardcode_libdir_separator"; then | ||
13808 | alldirs= | ||
13809 | for found_dir in $rpathdirs; do | ||
13810 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | ||
13811 | done | ||
13812 | acl_save_libdir="$libdir" | ||
13813 | libdir="$alldirs" | ||
13814 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
13815 | libdir="$acl_save_libdir" | ||
13816 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | ||
13817 | else | ||
13818 | for found_dir in $rpathdirs; do | ||
13819 | acl_save_libdir="$libdir" | ||
13820 | libdir="$found_dir" | ||
13821 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
13822 | libdir="$acl_save_libdir" | ||
13823 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | ||
13824 | done | ||
13825 | fi | ||
13826 | fi | ||
13827 | if test "X$ltrpathdirs" != "X"; then | ||
13828 | for found_dir in $ltrpathdirs; do | ||
13829 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | ||
13830 | done | ||
13831 | fi | ||
13832 | |||
13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | ||
13834 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | ||
13835 | if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then : | ||
13836 | $as_echo_n "(cached) " >&6 | ||
13837 | else | ||
13838 | gt_save_CPPFLAGS="$CPPFLAGS" | ||
13839 | CPPFLAGS="$CPPFLAGS $INCINTL" | ||
13840 | gt_save_LIBS="$LIBS" | ||
13841 | LIBS="$LIBS $LIBINTL" | ||
13842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13843 | /* end confdefs.h. */ | ||
13844 | #include <libintl.h> | ||
13845 | $gt_revision_test_code | ||
13846 | extern int _nl_msg_cat_cntr; | ||
13847 | extern | ||
13848 | #ifdef __cplusplus | ||
13849 | "C" | ||
13850 | #endif | ||
13851 | const char *_nl_expand_alias (const char *); | ||
13852 | int | ||
13853 | main () | ||
13854 | { | ||
13855 | bindtextdomain ("", ""); | ||
13856 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | ||
13857 | ; | ||
13858 | return 0; | ||
13859 | } | ||
13860 | _ACEOF | ||
13861 | if ac_fn_c_try_link "$LINENO"; then : | ||
13862 | eval "$gt_func_gnugettext_libintl=yes" | ||
13863 | else | ||
13864 | eval "$gt_func_gnugettext_libintl=no" | ||
13865 | fi | ||
13866 | rm -f core conftest.err conftest.$ac_objext \ | ||
13867 | conftest$ac_exeext conftest.$ac_ext | ||
13868 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | ||
13869 | LIBS="$LIBS $LIBICONV" | ||
13870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13871 | /* end confdefs.h. */ | ||
13872 | #include <libintl.h> | ||
13873 | $gt_revision_test_code | ||
13874 | extern int _nl_msg_cat_cntr; | ||
13875 | extern | ||
13876 | #ifdef __cplusplus | ||
13877 | "C" | ||
13878 | #endif | ||
13879 | const char *_nl_expand_alias (const char *); | ||
13880 | int | ||
13881 | main () | ||
13882 | { | ||
13883 | bindtextdomain ("", ""); | ||
13884 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | ||
13885 | ; | ||
13886 | return 0; | ||
13887 | } | ||
13888 | _ACEOF | ||
13889 | if ac_fn_c_try_link "$LINENO"; then : | ||
13890 | LIBINTL="$LIBINTL $LIBICONV" | ||
13891 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | ||
13892 | eval "$gt_func_gnugettext_libintl=yes" | ||
13893 | |||
13894 | fi | ||
13895 | rm -f core conftest.err conftest.$ac_objext \ | ||
13896 | conftest$ac_exeext conftest.$ac_ext | ||
13897 | fi | ||
13898 | CPPFLAGS="$gt_save_CPPFLAGS" | ||
13899 | LIBS="$gt_save_LIBS" | ||
13900 | fi | ||
13901 | eval ac_res=\$$gt_func_gnugettext_libintl | ||
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
13903 | $as_echo "$ac_res" >&6; } | ||
13904 | fi | ||
13905 | |||
13906 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ | ||
13907 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | ||
13908 | && test "$PACKAGE" != gettext-runtime \ | ||
13909 | && test "$PACKAGE" != gettext-tools; }; then | ||
13910 | gt_use_preinstalled_gnugettext=yes | ||
13911 | else | ||
13912 | LIBINTL= | ||
13913 | LTLIBINTL= | ||
13914 | INCINTL= | ||
13915 | fi | ||
13916 | |||
13917 | |||
13918 | |||
13919 | if test -n "$INTL_MACOSX_LIBS"; then | ||
13920 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | ||
13921 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | ||
13922 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | ||
13923 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | ||
13924 | fi | ||
13925 | fi | ||
13926 | |||
13927 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | ||
13928 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | ||
13929 | |||
13930 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | ||
13931 | |||
13932 | else | ||
13933 | USE_NLS=no | ||
13934 | fi | ||
13935 | fi | ||
13936 | |||
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 | ||
13938 | $as_echo_n "checking whether to use NLS... " >&6; } | ||
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | ||
13940 | $as_echo "$USE_NLS" >&6; } | ||
13941 | if test "$USE_NLS" = "yes"; then | ||
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | ||
13943 | $as_echo_n "checking where the gettext function comes from... " >&6; } | ||
13944 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | ||
13945 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | ||
13946 | gt_source="external libintl" | ||
13947 | else | ||
13948 | gt_source="libc" | ||
13949 | fi | ||
13950 | else | ||
13951 | gt_source="included intl directory" | ||
13952 | fi | ||
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | ||
13954 | $as_echo "$gt_source" >&6; } | ||
13955 | fi | ||
13956 | |||
13957 | if test "$USE_NLS" = "yes"; then | ||
13958 | |||
13959 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | ||
13960 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | ||
13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | ||
13962 | $as_echo_n "checking how to link with libintl... " >&6; } | ||
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | ||
13964 | $as_echo "$LIBINTL" >&6; } | ||
13965 | |||
13966 | for element in $INCINTL; do | ||
13967 | haveit= | ||
13968 | for x in $CPPFLAGS; do | ||
13969 | |||
13970 | acl_save_prefix="$prefix" | ||
13971 | prefix="$acl_final_prefix" | ||
13972 | acl_save_exec_prefix="$exec_prefix" | ||
13973 | exec_prefix="$acl_final_exec_prefix" | ||
13974 | eval x=\"$x\" | ||
13975 | exec_prefix="$acl_save_exec_prefix" | ||
13976 | prefix="$acl_save_prefix" | ||
13977 | |||
13978 | if test "X$x" = "X$element"; then | ||
13979 | haveit=yes | ||
13980 | break | ||
13981 | fi | ||
13982 | done | ||
13983 | if test -z "$haveit"; then | ||
13984 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | ||
13985 | fi | ||
13986 | done | ||
13987 | |||
13988 | fi | ||
13989 | |||
13990 | |||
13991 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h | ||
13992 | |||
13993 | |||
13994 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h | ||
13995 | |||
13996 | fi | ||
13997 | |||
13998 | POSUB=po | ||
13999 | fi | ||
14000 | |||
14001 | |||
14002 | |||
14003 | INTLLIBS="$LIBINTL" | ||
14004 | |||
14005 | |||
14006 | |||
14007 | |||
14008 | |||
14009 | |||
14010 | po_makefile_in=po/Makefile.in | ||
14011 | have_po="yes" | ||
14012 | |||
14013 | |||
14014 | |||
14015 | if test "x${POSUB}" = "x" ; then | ||
14016 | have_po="no" | ||
14017 | fi | ||
14018 | |||
14019 | if test "x${have_po}" = "xyes"; then | ||
14020 | HAVE_PO_TRUE= | ||
14021 | HAVE_PO_FALSE='#' | ||
14022 | else | ||
14023 | HAVE_PO_TRUE='#' | ||
14024 | HAVE_PO_FALSE= | ||
14025 | fi | ||
14026 | |||
14027 | |||
14028 | with_max_log_level="<unset>" | ||
14029 | |||
14030 | # Check whether --with-internal-maximum-log-level was given. | ||
14031 | if test "${with_internal_maximum_log_level+set}" = set; then : | ||
14032 | withval=$with_internal_maximum_log_level; | ||
14033 | if test "x${withval}" != "xno"; then | ||
14034 | if echo "${withval}" | grep -E '^[0-9]+$' >/dev/null 2>/dev/null; then | ||
14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: ignoring any EINA_LOG() with level greater than ${withval}" >&5 | ||
14036 | $as_echo "$as_me: ignoring any EINA_LOG() with level greater than ${withval}" >&6;} | ||
14037 | |||
14038 | cat >>confdefs.h <<_ACEOF | ||
14039 | #define EINA_LOG_LEVEL_MAXIMUM ${withval} | ||
14040 | _ACEOF | ||
14041 | |||
14042 | with_max_log_level="${withval}" | ||
14043 | else | ||
14044 | as_fn_error $? "--with-internal-maximum-log-level takes a decimal number, got \"${withval}\" instead." "$LINENO" 5 | ||
14045 | fi | ||
14046 | fi | ||
14047 | |||
14048 | else | ||
14049 | : | ||
14050 | fi | ||
14051 | |||
14052 | |||
14053 | |||
14054 | ### Default options with respect to host | ||
14055 | |||
14056 | |||
14057 | |||
14058 | |||
14059 | # dependencies and options | ||
14060 | want_curl="no" | ||
14061 | want_local_sockets="yes" | ||
14062 | want_abstract_sockets="no" | ||
14063 | want_gnutls="no" | ||
14064 | want_openssl="no" | ||
14065 | want_cares="no" | ||
14066 | want_cipher="no" | ||
14067 | want_signature="no" | ||
14068 | want_poll="yes" | ||
14069 | want_inotify="no" | ||
14070 | want_notify_win32="no" | ||
14071 | want_tslib="no" | ||
14072 | want_glib="no" | ||
14073 | |||
14074 | # core modules | ||
14075 | want_ecore_con="yes" | ||
14076 | want_ecore_ipc="yes" | ||
14077 | want_ecore_file="yes" | ||
14078 | #want_ecore_config="no" | ||
14079 | want_ecore_imf="no" | ||
14080 | want_ecore_input="yes" | ||
14081 | |||
14082 | # graphic system modules | ||
14083 | want_evas_simple_x11="no" | ||
14084 | want_ecore_x_xcb="no" | ||
14085 | want_ecore_x="no" | ||
14086 | want_ecore_win32="no" | ||
14087 | want_ecore_cocoa="no" | ||
14088 | want_ecore_sdl="no" | ||
14089 | want_ecore_psl1ght="no" | ||
14090 | want_ecore_fb="no" | ||
14091 | want_ecore_directfb="no" | ||
14092 | want_ecore_wince="no" | ||
14093 | want_ecore_wayland="no" | ||
14094 | |||
14095 | # ecore_x options (both xlib and xcb) | ||
14096 | want_ecore_x_composite="yes" | ||
14097 | want_ecore_x_damage="yes" | ||
14098 | want_ecore_x_dpms="yes" | ||
14099 | want_ecore_x_randr="yes" | ||
14100 | want_ecore_x_render="yes" | ||
14101 | want_ecore_x_screensaver="yes" | ||
14102 | want_ecore_x_shape="yes" | ||
14103 | want_ecore_x_gesture="no" | ||
14104 | want_ecore_x_sync="yes" | ||
14105 | want_ecore_x_xfixes="yes" | ||
14106 | want_ecore_x_xinerama="yes" | ||
14107 | want_ecore_x_xprint="yes" | ||
14108 | want_ecore_x_xtest="yes" | ||
14109 | want_ecore_x_cursor="yes" | ||
14110 | want_ecore_x_input="yes" | ||
14111 | want_ecore_x_dri="yes" | ||
14112 | |||
14113 | # ecore_evas modules | ||
14114 | want_ecore_evas="yes" | ||
14115 | want_ecore_evas_software_buffer="yes" | ||
14116 | want_ecore_evas_software_x11="no" | ||
14117 | want_ecore_evas_opengl_x11="no" | ||
14118 | want_ecore_evas_software_16_x11="no" | ||
14119 | want_ecore_evas_software_8_x11="no" | ||
14120 | want_ecore_evas_software_xcb="no" | ||
14121 | want_ecore_evas_software_gdi="no" | ||
14122 | want_ecore_evas_software_ddraw="no" | ||
14123 | want_ecore_evas_direct3d="no" | ||
14124 | want_ecore_evas_opengl_glew="no" | ||
14125 | want_ecore_evas_software_16_ddraw="no" | ||
14126 | want_ecore_evas_software_sdl="no" | ||
14127 | want_ecore_evas_gl_sdl="no" | ||
14128 | want_ecore_evas_gl_cocoa="no" | ||
14129 | want_ecore_evas_psl1ght="no" | ||
14130 | want_ecore_evas_directfb="no" | ||
14131 | want_ecore_evas_fb="no" | ||
14132 | want_ecore_evas_software_16_wince="no" | ||
14133 | want_ecore_evas_ews="yes" | ||
14134 | want_ecore_evas_extn="yes" | ||
14135 | want_ecore_evas_wayland_shm="no" | ||
14136 | want_ecore_evas_wayland_egl="no" | ||
14137 | |||
14138 | # ecore_imf modules | ||
14139 | want_ecore_imf_xim="no" | ||
14140 | want_ecore_imf_scim="no" | ||
14141 | |||
14142 | case "$host_os" in | ||
14143 | mingw32ce*) | ||
14144 | want_ecore_con="no" | ||
14145 | want_ecore_ipc="no" | ||
14146 | want_ecore_wince="yes" | ||
14147 | want_ecore_evas_software_16_wince="yes" | ||
14148 | want_ecore_evas_extn="no" | ||
14149 | ;; | ||
14150 | mingw*) | ||
14151 | want_notify_win32="yes" | ||
14152 | want_curl="yes" | ||
14153 | want_glib="auto" | ||
14154 | want_gnutls="auto" | ||
14155 | want_openssl="auto" | ||
14156 | want_ecore_imf="yes" | ||
14157 | want_ecore_win32="yes" | ||
14158 | want_ecore_evas_software_gdi="yes" | ||
14159 | want_ecore_evas_software_ddraw="yes" | ||
14160 | want_ecore_evas_direct3d="yes" | ||
14161 | want_ecore_evas_opengl_glew="yes" | ||
14162 | want_ecore_evas_software_16_ddraw="auto" | ||
14163 | want_ecore_evas_software_sdl="yes" | ||
14164 | want_ecore_evas_gl_sdl="yes" | ||
14165 | ;; | ||
14166 | darwin*) | ||
14167 | want_curl="yes" | ||
14168 | want_glib="auto" | ||
14169 | want_gnutls="auto" | ||
14170 | want_openssl="auto" | ||
14171 | want_ecore_imf="yes" | ||
14172 | want_ecore_cocoa="yes" | ||
14173 | want_ecore_evas_software_sdl="yes" | ||
14174 | want_ecore_evas_gl_sdl="yes" | ||
14175 | want_ecore_evas_gl_cocoa="yes" | ||
14176 | ;; | ||
14177 | *) | ||
14178 | want_curl="yes" | ||
14179 | want_glib="auto" | ||
14180 | want_abstract_sockets="yes" | ||
14181 | want_gnutls="auto" | ||
14182 | want_openssl="auto" | ||
14183 | want_cipher="yes" | ||
14184 | want_signature="yes" | ||
14185 | want_inotify="yes" | ||
14186 | want_tslib="yes" | ||
14187 | want_ecore_fb="yes" | ||
14188 | want_ecore_imf="yes" | ||
14189 | want_ecore_x="yes" | ||
14190 | want_ecore_wayland="yes" | ||
14191 | want_ecore_evas_software_x11="yes" | ||
14192 | want_ecore_evas_opengl_x11="yes" | ||
14193 | want_ecore_evas_software_16_x11="yes" | ||
14194 | want_ecore_evas_software_8_x11="yes" | ||
14195 | want_ecore_evas_software_xcb="no" | ||
14196 | want_ecore_evas_software_sdl="yes" | ||
14197 | want_ecore_evas_gl_sdl="yes" | ||
14198 | want_ecore_evas_gl_cocoa="no" | ||
14199 | want_ecore_evas_directfb="yes" | ||
14200 | want_ecore_evas_fb="yes" | ||
14201 | want_ecore_evas_wayland_shm="yes" | ||
14202 | want_ecore_evas_wayland_egl="yes" | ||
14203 | want_ecore_imf_xim="yes" | ||
14204 | want_ecore_imf_scim="yes" | ||
14205 | ;; | ||
14206 | esac | ||
14207 | |||
14208 | case "$host_vendor" in | ||
14209 | ps3*) | ||
14210 | want_local_sockets="no" | ||
14211 | ;; | ||
14212 | esac | ||
14213 | requirements_ecore="" | ||
14214 | requirements_ecore_con="" | ||
14215 | #requirements_ecore_config="" | ||
14216 | requirements_ecore_directfb="" | ||
14217 | requirements_ecore_evas="" | ||
14218 | requirements_ecore_fb="" | ||
14219 | requirements_ecore_file="" | ||
14220 | requirements_ecore_imf="" | ||
14221 | requirements_ecore_imf_evas="" | ||
14222 | requirements_ecore_input="" | ||
14223 | requirements_ecore_input_evas="" | ||
14224 | requirements_ecore_ipc="" | ||
14225 | requirements_ecore_cocoa="" | ||
14226 | requirements_ecore_sdl="" | ||
14227 | requirements_ecore_psl1ght="" | ||
14228 | requirements_ecore_x="" | ||
14229 | requirements_ecore_win32="" | ||
14230 | requirements_ecore_wince="" | ||
14231 | requirements_ecore_imf_xim="" | ||
14232 | requirements_ecore_imf_scim="" | ||
14233 | requirements_ecore_wayland="" | ||
14234 | |||
14235 | ### Additional options to configure | ||
14236 | |||
14237 | want_glib_integration_always=no | ||
14238 | # Check whether --enable-glib-integration-always was given. | ||
14239 | if test "${enable_glib_integration_always+set}" = set; then : | ||
14240 | enableval=$enable_glib_integration_always; want_glib_integration_always=$enableval | ||
14241 | fi | ||
14242 | |||
14243 | |||
14244 | if test "x${want_glib_integration_always}" = "xyes" ; then | ||
14245 | |||
14246 | $as_echo "#define GLIB_INTEGRATION_ALWAYS 1" >>confdefs.h | ||
14247 | |||
14248 | want_glib=yes | ||
14249 | fi | ||
14250 | |||
14251 | want_g_main_loop=no | ||
14252 | # Check whether --enable-g-main-loop was given. | ||
14253 | if test "${enable_g_main_loop+set}" = set; then : | ||
14254 | enableval=$enable_g_main_loop; want_g_main_loop=$enableval | ||
14255 | fi | ||
14256 | |||
14257 | |||
14258 | if test "x${want_g_main_loop}" = "xyes" ; then | ||
14259 | |||
14260 | $as_echo "#define USE_G_MAIN_LOOP 1" >>confdefs.h | ||
14261 | |||
14262 | want_glib=yes | ||
14263 | fi | ||
14264 | |||
14265 | if test "x${want_glib_integration_always}" = "xyes" -a "x${want_g_main_loop}" = "xyes"; then | ||
14266 | as_fn_error $? "--enable-glib-integration-always and --enable-glib-main-loop are mutually exclusive" "$LINENO" 5 | ||
14267 | fi | ||
14268 | |||
14269 | # local sockets (ecore_con.c) | ||
14270 | # Check whether --enable-local-sockets was given. | ||
14271 | if test "${enable_local_sockets+set}" = set; then : | ||
14272 | enableval=$enable_local_sockets; | ||
14273 | if test "x${enableval}" = "xyes" ; then | ||
14274 | want_ecore_con_local_sockets="yes" | ||
14275 | else | ||
14276 | want_ecore_con_local_sockets="no" | ||
14277 | fi | ||
14278 | |||
14279 | else | ||
14280 | want_ecore_con_local_sockets=${want_local_sockets} | ||
14281 | fi | ||
14282 | |||
14283 | |||
14284 | if test "x${want_ecore_con_local_sockets}" = "xyes" ; then | ||
14285 | |||
14286 | $as_echo "#define HAVE_LOCAL_SOCKETS 1" >>confdefs.h | ||
14287 | |||
14288 | fi | ||
14289 | |||
14290 | # abstract sockets (ecore_con.c) | ||
14291 | # Check whether --enable-abstract-sockets was given. | ||
14292 | if test "${enable_abstract_sockets+set}" = set; then : | ||
14293 | enableval=$enable_abstract_sockets; | ||
14294 | if test "x${enableval}" = "xyes" ; then | ||
14295 | want_ecore_con_abstract_sockets="yes" | ||
14296 | else | ||
14297 | want_ecore_con_abstract_sockets="no" | ||
14298 | fi | ||
14299 | |||
14300 | else | ||
14301 | want_ecore_con_abstract_sockets=${want_abstract_sockets} | ||
14302 | fi | ||
14303 | |||
14304 | |||
14305 | if test "x${want_ecore_con_abstract_sockets}" = "xyes" ; then | ||
14306 | |||
14307 | $as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h | ||
14308 | |||
14309 | fi | ||
14310 | |||
14311 | # Simple X11 build/link | ||
14312 | |||
14313 | # Check whether --enable-simple-x11 was given. | ||
14314 | if test "${enable_simple_x11+set}" = set; then : | ||
14315 | enableval=$enable_simple_x11; want_evas_simple_x11=$enableval | ||
14316 | fi | ||
14317 | |||
14318 | |||
14319 | # XIM | ||
14320 | # Check whether --enable-xim was given. | ||
14321 | if test "${enable_xim+set}" = set; then : | ||
14322 | enableval=$enable_xim; | ||
14323 | if test "x${enableval}" = "xyes" ; then | ||
14324 | want_xim="yes" | ||
14325 | else | ||
14326 | want_xim="no" | ||
14327 | fi | ||
14328 | |||
14329 | else | ||
14330 | want_xim="yes" | ||
14331 | fi | ||
14332 | |||
14333 | |||
14334 | if test "x${want_xim}" = "xyes" ; then | ||
14335 | |||
14336 | $as_echo "#define ENABLE_XIM 1" >>confdefs.h | ||
14337 | |||
14338 | fi | ||
14339 | |||
14340 | ### Checks for programs | ||
14341 | |||
14342 | |||
14343 | ac_ext=m | ||
14344 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
14345 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14346 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14347 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
14348 | if test -n "$ac_tool_prefix"; then | ||
14349 | for ac_prog in gcc objcc objc cc CC | ||
14350 | do | ||
14351 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
14352 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14354 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14355 | if test "${ac_cv_prog_OBJC+set}" = set; then : | ||
14356 | $as_echo_n "(cached) " >&6 | ||
14357 | else | ||
14358 | if test -n "$OBJC"; then | ||
14359 | ac_cv_prog_OBJC="$OBJC" # Let the user override the test. | ||
14360 | else | ||
14361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14362 | for as_dir in $PATH | ||
14363 | do | ||
14364 | IFS=$as_save_IFS | ||
14365 | test -z "$as_dir" && as_dir=. | ||
14366 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14368 | ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" | ||
14369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14370 | break 2 | ||
14371 | fi | ||
14372 | done | ||
14373 | done | ||
14374 | IFS=$as_save_IFS | ||
14375 | |||
14376 | fi | ||
14377 | fi | ||
14378 | OBJC=$ac_cv_prog_OBJC | ||
14379 | if test -n "$OBJC"; then | ||
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 | ||
14381 | $as_echo "$OBJC" >&6; } | ||
14382 | else | ||
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14384 | $as_echo "no" >&6; } | ||
14385 | fi | ||
14386 | |||
14387 | |||
14388 | test -n "$OBJC" && break | ||
14389 | done | ||
14390 | fi | ||
14391 | if test -z "$OBJC"; then | ||
14392 | ac_ct_OBJC=$OBJC | ||
14393 | for ac_prog in gcc objcc objc cc CC | ||
14394 | do | ||
14395 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
14396 | set dummy $ac_prog; ac_word=$2 | ||
14397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14398 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14399 | if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then : | ||
14400 | $as_echo_n "(cached) " >&6 | ||
14401 | else | ||
14402 | if test -n "$ac_ct_OBJC"; then | ||
14403 | ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. | ||
14404 | else | ||
14405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14406 | for as_dir in $PATH | ||
14407 | do | ||
14408 | IFS=$as_save_IFS | ||
14409 | test -z "$as_dir" && as_dir=. | ||
14410 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14412 | ac_cv_prog_ac_ct_OBJC="$ac_prog" | ||
14413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14414 | break 2 | ||
14415 | fi | ||
14416 | done | ||
14417 | done | ||
14418 | IFS=$as_save_IFS | ||
14419 | |||
14420 | fi | ||
14421 | fi | ||
14422 | ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC | ||
14423 | if test -n "$ac_ct_OBJC"; then | ||
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 | ||
14425 | $as_echo "$ac_ct_OBJC" >&6; } | ||
14426 | else | ||
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14428 | $as_echo "no" >&6; } | ||
14429 | fi | ||
14430 | |||
14431 | |||
14432 | test -n "$ac_ct_OBJC" && break | ||
14433 | done | ||
14434 | |||
14435 | if test "x$ac_ct_OBJC" = x; then | ||
14436 | OBJC="gcc" | ||
14437 | else | ||
14438 | case $cross_compiling:$ac_tool_warned in | ||
14439 | yes:) | ||
14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
14441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
14442 | ac_tool_warned=yes ;; | ||
14443 | esac | ||
14444 | OBJC=$ac_ct_OBJC | ||
14445 | fi | ||
14446 | fi | ||
14447 | |||
14448 | # Provide some information about the compiler. | ||
14449 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 | ||
14450 | set X $ac_compile | ||
14451 | ac_compiler=$2 | ||
14452 | for ac_option in --version -v -V -qversion; do | ||
14453 | { { ac_try="$ac_compiler $ac_option >&5" | ||
14454 | case "(($ac_try" in | ||
14455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14456 | *) ac_try_echo=$ac_try;; | ||
14457 | esac | ||
14458 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
14459 | $as_echo "$ac_try_echo"; } >&5 | ||
14460 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
14461 | ac_status=$? | ||
14462 | if test -s conftest.err; then | ||
14463 | sed '10a\ | ||
14464 | ... rest of stderr output deleted ... | ||
14465 | 10q' conftest.err >conftest.er1 | ||
14466 | cat conftest.er1 >&5 | ||
14467 | fi | ||
14468 | rm -f conftest.er1 conftest.err | ||
14469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14470 | test $ac_status = 0; } | ||
14471 | done | ||
14472 | |||
14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 | ||
14474 | $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } | ||
14475 | if test "${ac_cv_objc_compiler_gnu+set}" = set; then : | ||
14476 | $as_echo_n "(cached) " >&6 | ||
14477 | else | ||
14478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14479 | /* end confdefs.h. */ | ||
14480 | |||
14481 | int | ||
14482 | main () | ||
14483 | { | ||
14484 | #ifndef __GNUC__ | ||
14485 | choke me | ||
14486 | #endif | ||
14487 | |||
14488 | ; | ||
14489 | return 0; | ||
14490 | } | ||
14491 | _ACEOF | ||
14492 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
14493 | ac_compiler_gnu=yes | ||
14494 | else | ||
14495 | ac_compiler_gnu=no | ||
14496 | fi | ||
14497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14498 | ac_cv_objc_compiler_gnu=$ac_compiler_gnu | ||
14499 | |||
14500 | fi | ||
14501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 | ||
14502 | $as_echo "$ac_cv_objc_compiler_gnu" >&6; } | ||
14503 | if test $ac_compiler_gnu = yes; then | ||
14504 | GOBJC=yes | ||
14505 | else | ||
14506 | GOBJC= | ||
14507 | fi | ||
14508 | ac_test_OBJCFLAGS=${OBJCFLAGS+set} | ||
14509 | ac_save_OBJCFLAGS=$OBJCFLAGS | ||
14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 | ||
14511 | $as_echo_n "checking whether $OBJC accepts -g... " >&6; } | ||
14512 | if test "${ac_cv_prog_objc_g+set}" = set; then : | ||
14513 | $as_echo_n "(cached) " >&6 | ||
14514 | else | ||
14515 | ac_save_objc_werror_flag=$ac_objc_werror_flag | ||
14516 | ac_objc_werror_flag=yes | ||
14517 | ac_cv_prog_objc_g=no | ||
14518 | OBJCFLAGS="-g" | ||
14519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14520 | /* end confdefs.h. */ | ||
14521 | |||
14522 | int | ||
14523 | main () | ||
14524 | { | ||
14525 | |||
14526 | ; | ||
14527 | return 0; | ||
14528 | } | ||
14529 | _ACEOF | ||
14530 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
14531 | ac_cv_prog_objc_g=yes | ||
14532 | else | ||
14533 | OBJCFLAGS="" | ||
14534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14535 | /* end confdefs.h. */ | ||
14536 | |||
14537 | int | ||
14538 | main () | ||
14539 | { | ||
14540 | |||
14541 | ; | ||
14542 | return 0; | ||
14543 | } | ||
14544 | _ACEOF | ||
14545 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
14546 | |||
14547 | else | ||
14548 | ac_objc_werror_flag=$ac_save_objc_werror_flag | ||
14549 | OBJCFLAGS="-g" | ||
14550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14551 | /* end confdefs.h. */ | ||
14552 | |||
14553 | int | ||
14554 | main () | ||
14555 | { | ||
14556 | |||
14557 | ; | ||
14558 | return 0; | ||
14559 | } | ||
14560 | _ACEOF | ||
14561 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
14562 | ac_cv_prog_objc_g=yes | ||
14563 | fi | ||
14564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14565 | fi | ||
14566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14567 | fi | ||
14568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14569 | ac_objc_werror_flag=$ac_save_objc_werror_flag | ||
14570 | fi | ||
14571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 | ||
14572 | $as_echo "$ac_cv_prog_objc_g" >&6; } | ||
14573 | if test "$ac_test_OBJCFLAGS" = set; then | ||
14574 | OBJCFLAGS=$ac_save_OBJCFLAGS | ||
14575 | elif test $ac_cv_prog_objc_g = yes; then | ||
14576 | if test "$GOBJC" = yes; then | ||
14577 | OBJCFLAGS="-g -O2" | ||
14578 | else | ||
14579 | OBJCFLAGS="-g" | ||
14580 | fi | ||
14581 | else | ||
14582 | if test "$GOBJC" = yes; then | ||
14583 | OBJCFLAGS="-O2" | ||
14584 | else | ||
14585 | OBJCFLAGS= | ||
14586 | fi | ||
14587 | fi | ||
14588 | ac_ext=c | ||
14589 | ac_cpp='$CPP $CPPFLAGS' | ||
14590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
14593 | |||
14594 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | ||
14595 | |||
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
14597 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
14598 | if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then : | ||
14599 | $as_echo_n "(cached) " >&6 | ||
14600 | else | ||
14601 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
14602 | # We make a subdir and do the tests there. Otherwise we can end up | ||
14603 | # making bogus files that we don't know about and never remove. For | ||
14604 | # instance it was reported that on HP-UX the gcc test will end up | ||
14605 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
14606 | # in D'. | ||
14607 | mkdir conftest.dir | ||
14608 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
14609 | # using a relative directory. | ||
14610 | cp "$am_depcomp" conftest.dir | ||
14611 | cd conftest.dir | ||
14612 | # We will build objects and dependencies in a subdirectory because | ||
14613 | # it helps to detect inapplicable dependency modes. For instance | ||
14614 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
14615 | # side effect of compilation, but ICC will put the dependencies in | ||
14616 | # the current directory while Tru64 will put them in the object | ||
14617 | # directory. | ||
14618 | mkdir sub | ||
14619 | |||
14620 | am_cv_OBJC_dependencies_compiler_type=none | ||
14621 | if test "$am_compiler_list" = ""; then | ||
14622 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
14623 | fi | ||
14624 | am__universal=false | ||
14625 | |||
14626 | |||
14627 | for depmode in $am_compiler_list; do | ||
14628 | # Setup a source with many dependencies, because some compilers | ||
14629 | # like to wrap large dependency lists on column 80 (with \), and | ||
14630 | # we should not choose a depcomp mode which is confused by this. | ||
14631 | # | ||
14632 | # We need to recreate these files for each test, as the compiler may | ||
14633 | # overwrite some of them when testing with obscure command lines. | ||
14634 | # This happens at least with the AIX C compiler. | ||
14635 | : > sub/conftest.c | ||
14636 | for i in 1 2 3 4 5 6; do | ||
14637 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
14638 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
14639 | # Solaris 8's {/usr,}/bin/sh. | ||
14640 | touch sub/conftst$i.h | ||
14641 | done | ||
14642 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
14643 | |||
14644 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
14645 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
14646 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
14647 | # versions had trouble with output in subdirs | ||
14648 | am__obj=sub/conftest.${OBJEXT-o} | ||
14649 | am__minus_obj="-o $am__obj" | ||
14650 | case $depmode in | ||
14651 | gcc) | ||
14652 | # This depmode causes a compiler race in universal mode. | ||
14653 | test "$am__universal" = false || continue | ||
14654 | ;; | ||
14655 | nosideeffect) | ||
14656 | # after this tag, mechanisms are not by side-effect, so they'll | ||
14657 | # only be used when explicitly requested | ||
14658 | if test "x$enable_dependency_tracking" = xyes; then | ||
14659 | continue | ||
14660 | else | ||
14661 | break | ||
14662 | fi | ||
14663 | ;; | ||
14664 | msvisualcpp | msvcmsys) | ||
14665 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
14666 | # not run yet. These depmodes are late enough in the game, and | ||
14667 | # so weak that their functioning should not be impacted. | ||
14668 | am__obj=conftest.${OBJEXT-o} | ||
14669 | am__minus_obj= | ||
14670 | ;; | ||
14671 | none) break ;; | ||
14672 | esac | ||
14673 | if depmode=$depmode \ | ||
14674 | source=sub/conftest.c object=$am__obj \ | ||
14675 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
14676 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
14677 | >/dev/null 2>conftest.err && | ||
14678 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
14679 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
14680 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
14681 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
14682 | # icc doesn't choke on unknown options, it will just issue warnings | ||
14683 | # or remarks (even with -Werror). So we grep stderr for any message | ||
14684 | # that says an option was ignored or not supported. | ||
14685 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
14686 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
14687 | # The diagnosis changed in icc 8.0: | ||
14688 | # icc: Command line remark: option '-MP' not supported | ||
14689 | if (grep 'ignoring option' conftest.err || | ||
14690 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
14691 | am_cv_OBJC_dependencies_compiler_type=$depmode | ||
14692 | break | ||
14693 | fi | ||
14694 | fi | ||
14695 | done | ||
14696 | |||
14697 | cd .. | ||
14698 | rm -rf conftest.dir | ||
14699 | else | ||
14700 | am_cv_OBJC_dependencies_compiler_type=none | ||
14701 | fi | ||
14702 | |||
14703 | fi | ||
14704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | ||
14705 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | ||
14706 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | ||
14707 | |||
14708 | if | ||
14709 | test "x$enable_dependency_tracking" != xno \ | ||
14710 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | ||
14711 | am__fastdepOBJC_TRUE= | ||
14712 | am__fastdepOBJC_FALSE='#' | ||
14713 | else | ||
14714 | am__fastdepOBJC_TRUE='#' | ||
14715 | am__fastdepOBJC_FALSE= | ||
14716 | fi | ||
14717 | |||
14718 | |||
14719 | |||
14720 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | ||
14721 | |||
14722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
14723 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
14724 | if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then : | ||
14725 | $as_echo_n "(cached) " >&6 | ||
14726 | else | ||
14727 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
14728 | # We make a subdir and do the tests there. Otherwise we can end up | ||
14729 | # making bogus files that we don't know about and never remove. For | ||
14730 | # instance it was reported that on HP-UX the gcc test will end up | ||
14731 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
14732 | # in D'. | ||
14733 | mkdir conftest.dir | ||
14734 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
14735 | # using a relative directory. | ||
14736 | cp "$am_depcomp" conftest.dir | ||
14737 | cd conftest.dir | ||
14738 | # We will build objects and dependencies in a subdirectory because | ||
14739 | # it helps to detect inapplicable dependency modes. For instance | ||
14740 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
14741 | # side effect of compilation, but ICC will put the dependencies in | ||
14742 | # the current directory while Tru64 will put them in the object | ||
14743 | # directory. | ||
14744 | mkdir sub | ||
14745 | |||
14746 | am_cv_OBJC_dependencies_compiler_type=none | ||
14747 | if test "$am_compiler_list" = ""; then | ||
14748 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
14749 | fi | ||
14750 | am__universal=false | ||
14751 | |||
14752 | |||
14753 | for depmode in $am_compiler_list; do | ||
14754 | # Setup a source with many dependencies, because some compilers | ||
14755 | # like to wrap large dependency lists on column 80 (with \), and | ||
14756 | # we should not choose a depcomp mode which is confused by this. | ||
14757 | # | ||
14758 | # We need to recreate these files for each test, as the compiler may | ||
14759 | # overwrite some of them when testing with obscure command lines. | ||
14760 | # This happens at least with the AIX C compiler. | ||
14761 | : > sub/conftest.c | ||
14762 | for i in 1 2 3 4 5 6; do | ||
14763 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
14764 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
14765 | # Solaris 8's {/usr,}/bin/sh. | ||
14766 | touch sub/conftst$i.h | ||
14767 | done | ||
14768 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
14769 | |||
14770 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
14771 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
14772 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
14773 | # versions had trouble with output in subdirs | ||
14774 | am__obj=sub/conftest.${OBJEXT-o} | ||
14775 | am__minus_obj="-o $am__obj" | ||
14776 | case $depmode in | ||
14777 | gcc) | ||
14778 | # This depmode causes a compiler race in universal mode. | ||
14779 | test "$am__universal" = false || continue | ||
14780 | ;; | ||
14781 | nosideeffect) | ||
14782 | # after this tag, mechanisms are not by side-effect, so they'll | ||
14783 | # only be used when explicitly requested | ||
14784 | if test "x$enable_dependency_tracking" = xyes; then | ||
14785 | continue | ||
14786 | else | ||
14787 | break | ||
14788 | fi | ||
14789 | ;; | ||
14790 | msvisualcpp | msvcmsys) | ||
14791 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
14792 | # not run yet. These depmodes are late enough in the game, and | ||
14793 | # so weak that their functioning should not be impacted. | ||
14794 | am__obj=conftest.${OBJEXT-o} | ||
14795 | am__minus_obj= | ||
14796 | ;; | ||
14797 | none) break ;; | ||
14798 | esac | ||
14799 | if depmode=$depmode \ | ||
14800 | source=sub/conftest.c object=$am__obj \ | ||
14801 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
14802 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
14803 | >/dev/null 2>conftest.err && | ||
14804 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
14805 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
14806 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
14807 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
14808 | # icc doesn't choke on unknown options, it will just issue warnings | ||
14809 | # or remarks (even with -Werror). So we grep stderr for any message | ||
14810 | # that says an option was ignored or not supported. | ||
14811 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
14812 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
14813 | # The diagnosis changed in icc 8.0: | ||
14814 | # icc: Command line remark: option '-MP' not supported | ||
14815 | if (grep 'ignoring option' conftest.err || | ||
14816 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
14817 | am_cv_OBJC_dependencies_compiler_type=$depmode | ||
14818 | break | ||
14819 | fi | ||
14820 | fi | ||
14821 | done | ||
14822 | |||
14823 | cd .. | ||
14824 | rm -rf conftest.dir | ||
14825 | else | ||
14826 | am_cv_OBJC_dependencies_compiler_type=none | ||
14827 | fi | ||
14828 | |||
14829 | fi | ||
14830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | ||
14831 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | ||
14832 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | ||
14833 | |||
14834 | if | ||
14835 | test "x$enable_dependency_tracking" != xno \ | ||
14836 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | ||
14837 | am__fastdepOBJC_TRUE= | ||
14838 | am__fastdepOBJC_FALSE='#' | ||
14839 | else | ||
14840 | am__fastdepOBJC_TRUE='#' | ||
14841 | am__fastdepOBJC_FALSE= | ||
14842 | fi | ||
14843 | |||
14844 | |||
14845 | |||
14846 | |||
14847 | if false; then | ||
14848 | am__fastdepOBJC_TRUE= | ||
14849 | am__fastdepOBJC_FALSE='#' | ||
14850 | else | ||
14851 | am__fastdepOBJC_TRUE='#' | ||
14852 | am__fastdepOBJC_FALSE= | ||
14853 | fi | ||
14854 | |||
14855 | |||
14856 | |||
14857 | ac_ext=cpp | ||
14858 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
14859 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14860 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14861 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
14862 | if test -z "$CXX"; then | ||
14863 | if test -n "$CCC"; then | ||
14864 | CXX=$CCC | ||
14865 | else | ||
14866 | if test -n "$ac_tool_prefix"; then | ||
14867 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
14868 | do | ||
14869 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
14870 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
14871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14872 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14873 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
14874 | $as_echo_n "(cached) " >&6 | ||
14875 | else | ||
14876 | if test -n "$CXX"; then | ||
14877 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
14878 | else | ||
14879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14880 | for as_dir in $PATH | ||
14881 | do | ||
14882 | IFS=$as_save_IFS | ||
14883 | test -z "$as_dir" && as_dir=. | ||
14884 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14886 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
14887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14888 | break 2 | ||
14889 | fi | ||
14890 | done | ||
14891 | done | ||
14892 | IFS=$as_save_IFS | ||
14893 | |||
14894 | fi | ||
14895 | fi | ||
14896 | CXX=$ac_cv_prog_CXX | ||
14897 | if test -n "$CXX"; then | ||
14898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
14899 | $as_echo "$CXX" >&6; } | ||
14900 | else | ||
14901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14902 | $as_echo "no" >&6; } | ||
14903 | fi | ||
14904 | |||
14905 | |||
14906 | test -n "$CXX" && break | ||
14907 | done | ||
14908 | fi | ||
14909 | if test -z "$CXX"; then | ||
14910 | ac_ct_CXX=$CXX | ||
14911 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
14912 | do | ||
14913 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
14914 | set dummy $ac_prog; ac_word=$2 | ||
14915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
14916 | $as_echo_n "checking for $ac_word... " >&6; } | ||
14917 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
14918 | $as_echo_n "(cached) " >&6 | ||
14919 | else | ||
14920 | if test -n "$ac_ct_CXX"; then | ||
14921 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
14922 | else | ||
14923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14924 | for as_dir in $PATH | ||
14925 | do | ||
14926 | IFS=$as_save_IFS | ||
14927 | test -z "$as_dir" && as_dir=. | ||
14928 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
14930 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
14931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14932 | break 2 | ||
14933 | fi | ||
14934 | done | ||
14935 | done | ||
14936 | IFS=$as_save_IFS | ||
14937 | |||
14938 | fi | ||
14939 | fi | ||
14940 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
14941 | if test -n "$ac_ct_CXX"; then | ||
14942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
14943 | $as_echo "$ac_ct_CXX" >&6; } | ||
14944 | else | ||
14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14946 | $as_echo "no" >&6; } | ||
14947 | fi | ||
14948 | |||
14949 | |||
14950 | test -n "$ac_ct_CXX" && break | ||
14951 | done | ||
14952 | |||
14953 | if test "x$ac_ct_CXX" = x; then | ||
14954 | CXX="g++" | ||
14955 | else | ||
14956 | case $cross_compiling:$ac_tool_warned in | ||
14957 | yes:) | ||
14958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
14959 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
14960 | ac_tool_warned=yes ;; | ||
14961 | esac | ||
14962 | CXX=$ac_ct_CXX | ||
14963 | fi | ||
14964 | fi | ||
14965 | |||
14966 | fi | ||
14967 | fi | ||
14968 | # Provide some information about the compiler. | ||
14969 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
14970 | set X $ac_compile | ||
14971 | ac_compiler=$2 | ||
14972 | for ac_option in --version -v -V -qversion; do | ||
14973 | { { ac_try="$ac_compiler $ac_option >&5" | ||
14974 | case "(($ac_try" in | ||
14975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14976 | *) ac_try_echo=$ac_try;; | ||
14977 | esac | ||
14978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
14979 | $as_echo "$ac_try_echo"; } >&5 | ||
14980 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
14981 | ac_status=$? | ||
14982 | if test -s conftest.err; then | ||
14983 | sed '10a\ | ||
14984 | ... rest of stderr output deleted ... | ||
14985 | 10q' conftest.err >conftest.er1 | ||
14986 | cat conftest.er1 >&5 | ||
14987 | fi | ||
14988 | rm -f conftest.er1 conftest.err | ||
14989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14990 | test $ac_status = 0; } | ||
14991 | done | ||
14992 | |||
14993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
14994 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
14995 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
14996 | $as_echo_n "(cached) " >&6 | ||
14997 | else | ||
14998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14999 | /* end confdefs.h. */ | ||
15000 | |||
15001 | int | ||
15002 | main () | ||
15003 | { | ||
15004 | #ifndef __GNUC__ | ||
15005 | choke me | ||
15006 | #endif | ||
15007 | |||
15008 | ; | ||
15009 | return 0; | ||
15010 | } | ||
15011 | _ACEOF | ||
15012 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15013 | ac_compiler_gnu=yes | ||
15014 | else | ||
15015 | ac_compiler_gnu=no | ||
15016 | fi | ||
15017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15018 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
15019 | |||
15020 | fi | ||
15021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
15022 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
15023 | if test $ac_compiler_gnu = yes; then | ||
15024 | GXX=yes | ||
15025 | else | ||
15026 | GXX= | ||
15027 | fi | ||
15028 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
15029 | ac_save_CXXFLAGS=$CXXFLAGS | ||
15030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
15031 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
15032 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
15033 | $as_echo_n "(cached) " >&6 | ||
15034 | else | ||
15035 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
15036 | ac_cxx_werror_flag=yes | ||
15037 | ac_cv_prog_cxx_g=no | ||
15038 | CXXFLAGS="-g" | ||
15039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15040 | /* end confdefs.h. */ | ||
15041 | |||
15042 | int | ||
15043 | main () | ||
15044 | { | ||
15045 | |||
15046 | ; | ||
15047 | return 0; | ||
15048 | } | ||
15049 | _ACEOF | ||
15050 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15051 | ac_cv_prog_cxx_g=yes | ||
15052 | else | ||
15053 | CXXFLAGS="" | ||
15054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15055 | /* end confdefs.h. */ | ||
15056 | |||
15057 | int | ||
15058 | main () | ||
15059 | { | ||
15060 | |||
15061 | ; | ||
15062 | return 0; | ||
15063 | } | ||
15064 | _ACEOF | ||
15065 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15066 | |||
15067 | else | ||
15068 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
15069 | CXXFLAGS="-g" | ||
15070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15071 | /* end confdefs.h. */ | ||
15072 | |||
15073 | int | ||
15074 | main () | ||
15075 | { | ||
15076 | |||
15077 | ; | ||
15078 | return 0; | ||
15079 | } | ||
15080 | _ACEOF | ||
15081 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15082 | ac_cv_prog_cxx_g=yes | ||
15083 | fi | ||
15084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15085 | fi | ||
15086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15087 | fi | ||
15088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15089 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
15090 | fi | ||
15091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
15092 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
15093 | if test "$ac_test_CXXFLAGS" = set; then | ||
15094 | CXXFLAGS=$ac_save_CXXFLAGS | ||
15095 | elif test $ac_cv_prog_cxx_g = yes; then | ||
15096 | if test "$GXX" = yes; then | ||
15097 | CXXFLAGS="-g -O2" | ||
15098 | else | ||
15099 | CXXFLAGS="-g" | ||
15100 | fi | ||
15101 | else | ||
15102 | if test "$GXX" = yes; then | ||
15103 | CXXFLAGS="-O2" | ||
15104 | else | ||
15105 | CXXFLAGS= | ||
15106 | fi | ||
15107 | fi | ||
15108 | ac_ext=c | ||
15109 | ac_cpp='$CPP $CPPFLAGS' | ||
15110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15113 | |||
15114 | depcc="$CXX" am_compiler_list= | ||
15115 | |||
15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
15117 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
15118 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
15119 | $as_echo_n "(cached) " >&6 | ||
15120 | else | ||
15121 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
15122 | # We make a subdir and do the tests there. Otherwise we can end up | ||
15123 | # making bogus files that we don't know about and never remove. For | ||
15124 | # instance it was reported that on HP-UX the gcc test will end up | ||
15125 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
15126 | # in D'. | ||
15127 | mkdir conftest.dir | ||
15128 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
15129 | # using a relative directory. | ||
15130 | cp "$am_depcomp" conftest.dir | ||
15131 | cd conftest.dir | ||
15132 | # We will build objects and dependencies in a subdirectory because | ||
15133 | # it helps to detect inapplicable dependency modes. For instance | ||
15134 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
15135 | # side effect of compilation, but ICC will put the dependencies in | ||
15136 | # the current directory while Tru64 will put them in the object | ||
15137 | # directory. | ||
15138 | mkdir sub | ||
15139 | |||
15140 | am_cv_CXX_dependencies_compiler_type=none | ||
15141 | if test "$am_compiler_list" = ""; then | ||
15142 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
15143 | fi | ||
15144 | am__universal=false | ||
15145 | case " $depcc " in #( | ||
15146 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
15147 | esac | ||
15148 | |||
15149 | for depmode in $am_compiler_list; do | ||
15150 | # Setup a source with many dependencies, because some compilers | ||
15151 | # like to wrap large dependency lists on column 80 (with \), and | ||
15152 | # we should not choose a depcomp mode which is confused by this. | ||
15153 | # | ||
15154 | # We need to recreate these files for each test, as the compiler may | ||
15155 | # overwrite some of them when testing with obscure command lines. | ||
15156 | # This happens at least with the AIX C compiler. | ||
15157 | : > sub/conftest.c | ||
15158 | for i in 1 2 3 4 5 6; do | ||
15159 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
15160 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
15161 | # Solaris 8's {/usr,}/bin/sh. | ||
15162 | touch sub/conftst$i.h | ||
15163 | done | ||
15164 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
15165 | |||
15166 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
15167 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
15168 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
15169 | # versions had trouble with output in subdirs | ||
15170 | am__obj=sub/conftest.${OBJEXT-o} | ||
15171 | am__minus_obj="-o $am__obj" | ||
15172 | case $depmode in | ||
15173 | gcc) | ||
15174 | # This depmode causes a compiler race in universal mode. | ||
15175 | test "$am__universal" = false || continue | ||
15176 | ;; | ||
15177 | nosideeffect) | ||
15178 | # after this tag, mechanisms are not by side-effect, so they'll | ||
15179 | # only be used when explicitly requested | ||
15180 | if test "x$enable_dependency_tracking" = xyes; then | ||
15181 | continue | ||
15182 | else | ||
15183 | break | ||
15184 | fi | ||
15185 | ;; | ||
15186 | msvisualcpp | msvcmsys) | ||
15187 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
15188 | # not run yet. These depmodes are late enough in the game, and | ||
15189 | # so weak that their functioning should not be impacted. | ||
15190 | am__obj=conftest.${OBJEXT-o} | ||
15191 | am__minus_obj= | ||
15192 | ;; | ||
15193 | none) break ;; | ||
15194 | esac | ||
15195 | if depmode=$depmode \ | ||
15196 | source=sub/conftest.c object=$am__obj \ | ||
15197 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
15198 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
15199 | >/dev/null 2>conftest.err && | ||
15200 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
15201 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
15202 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
15203 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
15204 | # icc doesn't choke on unknown options, it will just issue warnings | ||
15205 | # or remarks (even with -Werror). So we grep stderr for any message | ||
15206 | # that says an option was ignored or not supported. | ||
15207 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
15208 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
15209 | # The diagnosis changed in icc 8.0: | ||
15210 | # icc: Command line remark: option '-MP' not supported | ||
15211 | if (grep 'ignoring option' conftest.err || | ||
15212 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
15213 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
15214 | break | ||
15215 | fi | ||
15216 | fi | ||
15217 | done | ||
15218 | |||
15219 | cd .. | ||
15220 | rm -rf conftest.dir | ||
15221 | else | ||
15222 | am_cv_CXX_dependencies_compiler_type=none | ||
15223 | fi | ||
15224 | |||
15225 | fi | ||
15226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
15227 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
15228 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
15229 | |||
15230 | if | ||
15231 | test "x$enable_dependency_tracking" != xno \ | ||
15232 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
15233 | am__fastdepCXX_TRUE= | ||
15234 | am__fastdepCXX_FALSE='#' | ||
15235 | else | ||
15236 | am__fastdepCXX_TRUE='#' | ||
15237 | am__fastdepCXX_FALSE= | ||
15238 | fi | ||
15239 | |||
15240 | |||
15241 | |||
15242 | ac_ext=cpp | ||
15243 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
15244 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15245 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15246 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
15247 | if test -z "$CXX"; then | ||
15248 | if test -n "$CCC"; then | ||
15249 | CXX=$CCC | ||
15250 | else | ||
15251 | if test -n "$ac_tool_prefix"; then | ||
15252 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
15253 | do | ||
15254 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
15255 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
15256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15257 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15258 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
15259 | $as_echo_n "(cached) " >&6 | ||
15260 | else | ||
15261 | if test -n "$CXX"; then | ||
15262 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
15263 | else | ||
15264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15265 | for as_dir in $PATH | ||
15266 | do | ||
15267 | IFS=$as_save_IFS | ||
15268 | test -z "$as_dir" && as_dir=. | ||
15269 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15271 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
15272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15273 | break 2 | ||
15274 | fi | ||
15275 | done | ||
15276 | done | ||
15277 | IFS=$as_save_IFS | ||
15278 | |||
15279 | fi | ||
15280 | fi | ||
15281 | CXX=$ac_cv_prog_CXX | ||
15282 | if test -n "$CXX"; then | ||
15283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
15284 | $as_echo "$CXX" >&6; } | ||
15285 | else | ||
15286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15287 | $as_echo "no" >&6; } | ||
15288 | fi | ||
15289 | |||
15290 | |||
15291 | test -n "$CXX" && break | ||
15292 | done | ||
15293 | fi | ||
15294 | if test -z "$CXX"; then | ||
15295 | ac_ct_CXX=$CXX | ||
15296 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
15297 | do | ||
15298 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
15299 | set dummy $ac_prog; ac_word=$2 | ||
15300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15301 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15302 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
15303 | $as_echo_n "(cached) " >&6 | ||
15304 | else | ||
15305 | if test -n "$ac_ct_CXX"; then | ||
15306 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
15307 | else | ||
15308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15309 | for as_dir in $PATH | ||
15310 | do | ||
15311 | IFS=$as_save_IFS | ||
15312 | test -z "$as_dir" && as_dir=. | ||
15313 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15315 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
15316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15317 | break 2 | ||
15318 | fi | ||
15319 | done | ||
15320 | done | ||
15321 | IFS=$as_save_IFS | ||
15322 | |||
15323 | fi | ||
15324 | fi | ||
15325 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
15326 | if test -n "$ac_ct_CXX"; then | ||
15327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
15328 | $as_echo "$ac_ct_CXX" >&6; } | ||
15329 | else | ||
15330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15331 | $as_echo "no" >&6; } | ||
15332 | fi | ||
15333 | |||
15334 | |||
15335 | test -n "$ac_ct_CXX" && break | ||
15336 | done | ||
15337 | |||
15338 | if test "x$ac_ct_CXX" = x; then | ||
15339 | CXX="g++" | ||
15340 | else | ||
15341 | case $cross_compiling:$ac_tool_warned in | ||
15342 | yes:) | ||
15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
15344 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
15345 | ac_tool_warned=yes ;; | ||
15346 | esac | ||
15347 | CXX=$ac_ct_CXX | ||
15348 | fi | ||
15349 | fi | ||
15350 | |||
15351 | fi | ||
15352 | fi | ||
15353 | # Provide some information about the compiler. | ||
15354 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
15355 | set X $ac_compile | ||
15356 | ac_compiler=$2 | ||
15357 | for ac_option in --version -v -V -qversion; do | ||
15358 | { { ac_try="$ac_compiler $ac_option >&5" | ||
15359 | case "(($ac_try" in | ||
15360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15361 | *) ac_try_echo=$ac_try;; | ||
15362 | esac | ||
15363 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
15364 | $as_echo "$ac_try_echo"; } >&5 | ||
15365 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
15366 | ac_status=$? | ||
15367 | if test -s conftest.err; then | ||
15368 | sed '10a\ | ||
15369 | ... rest of stderr output deleted ... | ||
15370 | 10q' conftest.err >conftest.er1 | ||
15371 | cat conftest.er1 >&5 | ||
15372 | fi | ||
15373 | rm -f conftest.er1 conftest.err | ||
15374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15375 | test $ac_status = 0; } | ||
15376 | done | ||
15377 | |||
15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
15379 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
15380 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
15381 | $as_echo_n "(cached) " >&6 | ||
15382 | else | ||
15383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15384 | /* end confdefs.h. */ | ||
15385 | |||
15386 | int | ||
15387 | main () | ||
15388 | { | ||
15389 | #ifndef __GNUC__ | ||
15390 | choke me | ||
15391 | #endif | ||
15392 | |||
15393 | ; | ||
15394 | return 0; | ||
15395 | } | ||
15396 | _ACEOF | ||
15397 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15398 | ac_compiler_gnu=yes | ||
15399 | else | ||
15400 | ac_compiler_gnu=no | ||
15401 | fi | ||
15402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15403 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
15404 | |||
15405 | fi | ||
15406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
15407 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
15408 | if test $ac_compiler_gnu = yes; then | ||
15409 | GXX=yes | ||
15410 | else | ||
15411 | GXX= | ||
15412 | fi | ||
15413 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
15414 | ac_save_CXXFLAGS=$CXXFLAGS | ||
15415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
15416 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
15417 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
15418 | $as_echo_n "(cached) " >&6 | ||
15419 | else | ||
15420 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
15421 | ac_cxx_werror_flag=yes | ||
15422 | ac_cv_prog_cxx_g=no | ||
15423 | CXXFLAGS="-g" | ||
15424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15425 | /* end confdefs.h. */ | ||
15426 | |||
15427 | int | ||
15428 | main () | ||
15429 | { | ||
15430 | |||
15431 | ; | ||
15432 | return 0; | ||
15433 | } | ||
15434 | _ACEOF | ||
15435 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15436 | ac_cv_prog_cxx_g=yes | ||
15437 | else | ||
15438 | CXXFLAGS="" | ||
15439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15440 | /* end confdefs.h. */ | ||
15441 | |||
15442 | int | ||
15443 | main () | ||
15444 | { | ||
15445 | |||
15446 | ; | ||
15447 | return 0; | ||
15448 | } | ||
15449 | _ACEOF | ||
15450 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15451 | |||
15452 | else | ||
15453 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
15454 | CXXFLAGS="-g" | ||
15455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15456 | /* end confdefs.h. */ | ||
15457 | |||
15458 | int | ||
15459 | main () | ||
15460 | { | ||
15461 | |||
15462 | ; | ||
15463 | return 0; | ||
15464 | } | ||
15465 | _ACEOF | ||
15466 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
15467 | ac_cv_prog_cxx_g=yes | ||
15468 | fi | ||
15469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15470 | fi | ||
15471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15472 | fi | ||
15473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15474 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
15475 | fi | ||
15476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
15477 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
15478 | if test "$ac_test_CXXFLAGS" = set; then | ||
15479 | CXXFLAGS=$ac_save_CXXFLAGS | ||
15480 | elif test $ac_cv_prog_cxx_g = yes; then | ||
15481 | if test "$GXX" = yes; then | ||
15482 | CXXFLAGS="-g -O2" | ||
15483 | else | ||
15484 | CXXFLAGS="-g" | ||
15485 | fi | ||
15486 | else | ||
15487 | if test "$GXX" = yes; then | ||
15488 | CXXFLAGS="-O2" | ||
15489 | else | ||
15490 | CXXFLAGS= | ||
15491 | fi | ||
15492 | fi | ||
15493 | ac_ext=c | ||
15494 | ac_cpp='$CPP $CPPFLAGS' | ||
15495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15498 | |||
15499 | depcc="$CXX" am_compiler_list= | ||
15500 | |||
15501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
15502 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
15503 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
15504 | $as_echo_n "(cached) " >&6 | ||
15505 | else | ||
15506 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
15507 | # We make a subdir and do the tests there. Otherwise we can end up | ||
15508 | # making bogus files that we don't know about and never remove. For | ||
15509 | # instance it was reported that on HP-UX the gcc test will end up | ||
15510 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
15511 | # in D'. | ||
15512 | mkdir conftest.dir | ||
15513 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
15514 | # using a relative directory. | ||
15515 | cp "$am_depcomp" conftest.dir | ||
15516 | cd conftest.dir | ||
15517 | # We will build objects and dependencies in a subdirectory because | ||
15518 | # it helps to detect inapplicable dependency modes. For instance | ||
15519 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
15520 | # side effect of compilation, but ICC will put the dependencies in | ||
15521 | # the current directory while Tru64 will put them in the object | ||
15522 | # directory. | ||
15523 | mkdir sub | ||
15524 | |||
15525 | am_cv_CXX_dependencies_compiler_type=none | ||
15526 | if test "$am_compiler_list" = ""; then | ||
15527 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
15528 | fi | ||
15529 | am__universal=false | ||
15530 | case " $depcc " in #( | ||
15531 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
15532 | esac | ||
15533 | |||
15534 | for depmode in $am_compiler_list; do | ||
15535 | # Setup a source with many dependencies, because some compilers | ||
15536 | # like to wrap large dependency lists on column 80 (with \), and | ||
15537 | # we should not choose a depcomp mode which is confused by this. | ||
15538 | # | ||
15539 | # We need to recreate these files for each test, as the compiler may | ||
15540 | # overwrite some of them when testing with obscure command lines. | ||
15541 | # This happens at least with the AIX C compiler. | ||
15542 | : > sub/conftest.c | ||
15543 | for i in 1 2 3 4 5 6; do | ||
15544 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
15545 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
15546 | # Solaris 8's {/usr,}/bin/sh. | ||
15547 | touch sub/conftst$i.h | ||
15548 | done | ||
15549 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
15550 | |||
15551 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
15552 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
15553 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
15554 | # versions had trouble with output in subdirs | ||
15555 | am__obj=sub/conftest.${OBJEXT-o} | ||
15556 | am__minus_obj="-o $am__obj" | ||
15557 | case $depmode in | ||
15558 | gcc) | ||
15559 | # This depmode causes a compiler race in universal mode. | ||
15560 | test "$am__universal" = false || continue | ||
15561 | ;; | ||
15562 | nosideeffect) | ||
15563 | # after this tag, mechanisms are not by side-effect, so they'll | ||
15564 | # only be used when explicitly requested | ||
15565 | if test "x$enable_dependency_tracking" = xyes; then | ||
15566 | continue | ||
15567 | else | ||
15568 | break | ||
15569 | fi | ||
15570 | ;; | ||
15571 | msvisualcpp | msvcmsys) | ||
15572 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
15573 | # not run yet. These depmodes are late enough in the game, and | ||
15574 | # so weak that their functioning should not be impacted. | ||
15575 | am__obj=conftest.${OBJEXT-o} | ||
15576 | am__minus_obj= | ||
15577 | ;; | ||
15578 | none) break ;; | ||
15579 | esac | ||
15580 | if depmode=$depmode \ | ||
15581 | source=sub/conftest.c object=$am__obj \ | ||
15582 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
15583 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
15584 | >/dev/null 2>conftest.err && | ||
15585 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
15586 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
15587 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
15588 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
15589 | # icc doesn't choke on unknown options, it will just issue warnings | ||
15590 | # or remarks (even with -Werror). So we grep stderr for any message | ||
15591 | # that says an option was ignored or not supported. | ||
15592 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
15593 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
15594 | # The diagnosis changed in icc 8.0: | ||
15595 | # icc: Command line remark: option '-MP' not supported | ||
15596 | if (grep 'ignoring option' conftest.err || | ||
15597 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
15598 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
15599 | break | ||
15600 | fi | ||
15601 | fi | ||
15602 | done | ||
15603 | |||
15604 | cd .. | ||
15605 | rm -rf conftest.dir | ||
15606 | else | ||
15607 | am_cv_CXX_dependencies_compiler_type=none | ||
15608 | fi | ||
15609 | |||
15610 | fi | ||
15611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
15612 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
15613 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
15614 | |||
15615 | if | ||
15616 | test "x$enable_dependency_tracking" != xno \ | ||
15617 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
15618 | am__fastdepCXX_TRUE= | ||
15619 | am__fastdepCXX_FALSE='#' | ||
15620 | else | ||
15621 | am__fastdepCXX_TRUE='#' | ||
15622 | am__fastdepCXX_FALSE= | ||
15623 | fi | ||
15624 | |||
15625 | |||
15626 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
15627 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
15628 | (test "X$CXX" != "Xg++"))) ; then | ||
15629 | ac_ext=cpp | ||
15630 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
15631 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15632 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15633 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
15634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | ||
15635 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | ||
15636 | if test -z "$CXXCPP"; then | ||
15637 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | ||
15638 | $as_echo_n "(cached) " >&6 | ||
15639 | else | ||
15640 | # Double quotes because CXXCPP needs to be expanded | ||
15641 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
15642 | do | ||
15643 | ac_preproc_ok=false | ||
15644 | for ac_cxx_preproc_warn_flag in '' yes | ||
15645 | do | ||
15646 | # Use a header file that comes with gcc, so configuring glibc | ||
15647 | # with a fresh cross-compiler works. | ||
15648 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15649 | # <limits.h> exists even on freestanding compilers. | ||
15650 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
15651 | # not just through cpp. "Syntax error" is here to catch this case. | ||
15652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15653 | /* end confdefs.h. */ | ||
15654 | #ifdef __STDC__ | ||
15655 | # include <limits.h> | ||
15656 | #else | ||
15657 | # include <assert.h> | ||
15658 | #endif | ||
15659 | Syntax error | ||
15660 | _ACEOF | ||
15661 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
15662 | |||
15663 | else | ||
15664 | # Broken: fails on valid input. | ||
15665 | continue | ||
15666 | fi | ||
15667 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
15668 | |||
15669 | # OK, works on sane cases. Now check whether nonexistent headers | ||
15670 | # can be detected and how. | ||
15671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15672 | /* end confdefs.h. */ | ||
15673 | #include <ac_nonexistent.h> | ||
15674 | _ACEOF | ||
15675 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
15676 | # Broken: success on invalid input. | ||
15677 | continue | ||
15678 | else | ||
15679 | # Passes both tests. | ||
15680 | ac_preproc_ok=: | ||
15681 | break | ||
15682 | fi | ||
15683 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
15684 | |||
15685 | done | ||
15686 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
15687 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
15688 | if $ac_preproc_ok; then : | ||
15689 | break | ||
15690 | fi | ||
15691 | |||
15692 | done | ||
15693 | ac_cv_prog_CXXCPP=$CXXCPP | ||
15694 | |||
15695 | fi | ||
15696 | CXXCPP=$ac_cv_prog_CXXCPP | ||
15697 | else | ||
15698 | ac_cv_prog_CXXCPP=$CXXCPP | ||
15699 | fi | ||
15700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | ||
15701 | $as_echo "$CXXCPP" >&6; } | ||
15702 | ac_preproc_ok=false | ||
15703 | for ac_cxx_preproc_warn_flag in '' yes | ||
15704 | do | ||
15705 | # Use a header file that comes with gcc, so configuring glibc | ||
15706 | # with a fresh cross-compiler works. | ||
15707 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15708 | # <limits.h> exists even on freestanding compilers. | ||
15709 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
15710 | # not just through cpp. "Syntax error" is here to catch this case. | ||
15711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15712 | /* end confdefs.h. */ | ||
15713 | #ifdef __STDC__ | ||
15714 | # include <limits.h> | ||
15715 | #else | ||
15716 | # include <assert.h> | ||
15717 | #endif | ||
15718 | Syntax error | ||
15719 | _ACEOF | ||
15720 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
15721 | |||
15722 | else | ||
15723 | # Broken: fails on valid input. | ||
15724 | continue | ||
15725 | fi | ||
15726 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
15727 | |||
15728 | # OK, works on sane cases. Now check whether nonexistent headers | ||
15729 | # can be detected and how. | ||
15730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15731 | /* end confdefs.h. */ | ||
15732 | #include <ac_nonexistent.h> | ||
15733 | _ACEOF | ||
15734 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
15735 | # Broken: success on invalid input. | ||
15736 | continue | ||
15737 | else | ||
15738 | # Passes both tests. | ||
15739 | ac_preproc_ok=: | ||
15740 | break | ||
15741 | fi | ||
15742 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
15743 | |||
15744 | done | ||
15745 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
15746 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
15747 | if $ac_preproc_ok; then : | ||
15748 | |||
15749 | else | ||
15750 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
15751 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
15752 | _lt_caught_CXX_error=yes; } | ||
15753 | fi | ||
15754 | |||
15755 | ac_ext=c | ||
15756 | ac_cpp='$CPP $CPPFLAGS' | ||
15757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15760 | |||
15761 | else | ||
15762 | _lt_caught_CXX_error=yes | ||
15763 | fi | ||
15764 | |||
15765 | |||
15766 | |||
15767 | |||
15768 | ac_ext=cpp | ||
15769 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
15770 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15771 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15772 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
15773 | |||
15774 | archive_cmds_need_lc_CXX=no | ||
15775 | allow_undefined_flag_CXX= | ||
15776 | always_export_symbols_CXX=no | ||
15777 | archive_expsym_cmds_CXX= | ||
15778 | compiler_needs_object_CXX=no | ||
15779 | export_dynamic_flag_spec_CXX= | ||
15780 | hardcode_direct_CXX=no | ||
15781 | hardcode_direct_absolute_CXX=no | ||
15782 | hardcode_libdir_flag_spec_CXX= | ||
15783 | hardcode_libdir_flag_spec_ld_CXX= | ||
15784 | hardcode_libdir_separator_CXX= | ||
15785 | hardcode_minus_L_CXX=no | ||
15786 | hardcode_shlibpath_var_CXX=unsupported | ||
15787 | hardcode_automatic_CXX=no | ||
15788 | inherit_rpath_CXX=no | ||
15789 | module_cmds_CXX= | ||
15790 | module_expsym_cmds_CXX= | ||
15791 | link_all_deplibs_CXX=unknown | ||
15792 | old_archive_cmds_CXX=$old_archive_cmds | ||
15793 | no_undefined_flag_CXX= | ||
15794 | whole_archive_flag_spec_CXX= | ||
15795 | enable_shared_with_static_runtimes_CXX=no | ||
15796 | |||
15797 | # Source file extension for C++ test sources. | ||
15798 | ac_ext=cpp | ||
15799 | |||
15800 | # Object file extension for compiled C++ test sources. | ||
15801 | objext=o | ||
15802 | objext_CXX=$objext | ||
15803 | |||
15804 | # No sense in running all these tests if we already determined that | ||
15805 | # the CXX compiler isn't working. Some variables (like enable_shared) | ||
15806 | # are currently assumed to apply to all compilers on this platform, | ||
15807 | # and will be corrupted by setting them based on a non-working compiler. | ||
15808 | if test "$_lt_caught_CXX_error" != yes; then | ||
15809 | # Code to be used in simple compile tests | ||
15810 | lt_simple_compile_test_code="int some_variable = 0;" | ||
15811 | |||
15812 | # Code to be used in simple link tests | ||
15813 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | ||
15814 | |||
15815 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
15816 | |||
15817 | |||
15818 | |||
15819 | |||
15820 | |||
15821 | |||
15822 | # If no C compiler was specified, use CC. | ||
15823 | LTCC=${LTCC-"$CC"} | ||
15824 | |||
15825 | # If no C compiler flags were specified, use CFLAGS. | ||
15826 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
15827 | |||
15828 | # Allow CC to be a program name with arguments. | ||
15829 | compiler=$CC | ||
15830 | |||
15831 | |||
15832 | # save warnings/boilerplate of simple test code | ||
15833 | ac_outfile=conftest.$ac_objext | ||
15834 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
15835 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
15836 | _lt_compiler_boilerplate=`cat conftest.err` | ||
15837 | $RM conftest* | ||
15838 | |||
15839 | ac_outfile=conftest.$ac_objext | ||
15840 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
15841 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
15842 | _lt_linker_boilerplate=`cat conftest.err` | ||
15843 | $RM -r conftest* | ||
15844 | |||
15845 | |||
15846 | # Allow CC to be a program name with arguments. | ||
15847 | lt_save_CC=$CC | ||
15848 | lt_save_LD=$LD | ||
15849 | lt_save_GCC=$GCC | ||
15850 | GCC=$GXX | ||
15851 | lt_save_with_gnu_ld=$with_gnu_ld | ||
15852 | lt_save_path_LD=$lt_cv_path_LD | ||
15853 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
15854 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
15855 | else | ||
15856 | $as_unset lt_cv_prog_gnu_ld | ||
15857 | fi | ||
15858 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
15859 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
15860 | else | ||
15861 | $as_unset lt_cv_path_LD | ||
15862 | fi | ||
15863 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
15864 | CC=${CXX-"c++"} | ||
15865 | compiler=$CC | ||
15866 | compiler_CXX=$CC | ||
15867 | for cc_temp in $compiler""; do | ||
15868 | case $cc_temp in | ||
15869 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
15870 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
15871 | \-*) ;; | ||
15872 | *) break;; | ||
15873 | esac | ||
15874 | done | ||
15875 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
15876 | |||
15877 | |||
15878 | if test -n "$compiler"; then | ||
15879 | # We don't want -fno-exception when compiling C++ code, so set the | ||
15880 | # no_builtin_flag separately | ||
15881 | if test "$GXX" = yes; then | ||
15882 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
15883 | else | ||
15884 | lt_prog_compiler_no_builtin_flag_CXX= | ||
15885 | fi | ||
15886 | |||
15887 | if test "$GXX" = yes; then | ||
15888 | # Set up default GNU C++ configuration | ||
15889 | |||
15890 | |||
15891 | |||
15892 | # Check whether --with-gnu-ld was given. | ||
15893 | if test "${with_gnu_ld+set}" = set; then : | ||
15894 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
15895 | else | ||
15896 | with_gnu_ld=no | ||
15897 | fi | ||
15898 | |||
15899 | ac_prog=ld | ||
15900 | if test "$GCC" = yes; then | ||
15901 | # Check if gcc -print-prog-name=ld gives a path. | ||
15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
15903 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
15904 | case $host in | ||
15905 | *-*-mingw*) | ||
15906 | # gcc leaves a trailing carriage return which upsets mingw | ||
15907 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
15908 | *) | ||
15909 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
15910 | esac | ||
15911 | case $ac_prog in | ||
15912 | # Accept absolute paths. | ||
15913 | [\\/]* | ?:[\\/]*) | ||
15914 | re_direlt='/[^/][^/]*/\.\./' | ||
15915 | # Canonicalize the pathname of ld | ||
15916 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
15917 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
15918 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
15919 | done | ||
15920 | test -z "$LD" && LD="$ac_prog" | ||
15921 | ;; | ||
15922 | "") | ||
15923 | # If it fails, then pretend we aren't using GCC. | ||
15924 | ac_prog=ld | ||
15925 | ;; | ||
15926 | *) | ||
15927 | # If it is relative, then search for the first ld in PATH. | ||
15928 | with_gnu_ld=unknown | ||
15929 | ;; | ||
15930 | esac | ||
15931 | elif test "$with_gnu_ld" = yes; then | ||
15932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
15933 | $as_echo_n "checking for GNU ld... " >&6; } | ||
15934 | else | ||
15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
15936 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
15937 | fi | ||
15938 | if test "${lt_cv_path_LD+set}" = set; then : | ||
15939 | $as_echo_n "(cached) " >&6 | ||
15940 | else | ||
15941 | if test -z "$LD"; then | ||
15942 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
15943 | for ac_dir in $PATH; do | ||
15944 | IFS="$lt_save_ifs" | ||
15945 | test -z "$ac_dir" && ac_dir=. | ||
15946 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
15947 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
15948 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
15949 | # but apparently some variants of GNU ld only accept -v. | ||
15950 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
15951 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
15952 | *GNU* | *'with BFD'*) | ||
15953 | test "$with_gnu_ld" != no && break | ||
15954 | ;; | ||
15955 | *) | ||
15956 | test "$with_gnu_ld" != yes && break | ||
15957 | ;; | ||
15958 | esac | ||
15959 | fi | ||
15960 | done | ||
15961 | IFS="$lt_save_ifs" | ||
15962 | else | ||
15963 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
15964 | fi | ||
15965 | fi | ||
15966 | |||
15967 | LD="$lt_cv_path_LD" | ||
15968 | if test -n "$LD"; then | ||
15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
15970 | $as_echo "$LD" >&6; } | ||
15971 | else | ||
15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15973 | $as_echo "no" >&6; } | ||
15974 | fi | ||
15975 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
15977 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
15978 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
15979 | $as_echo_n "(cached) " >&6 | ||
15980 | else | ||
15981 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
15982 | case `$LD -v 2>&1 </dev/null` in | ||
15983 | *GNU* | *'with BFD'*) | ||
15984 | lt_cv_prog_gnu_ld=yes | ||
15985 | ;; | ||
15986 | *) | ||
15987 | lt_cv_prog_gnu_ld=no | ||
15988 | ;; | ||
15989 | esac | ||
15990 | fi | ||
15991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
15992 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
15993 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
15994 | |||
15995 | |||
15996 | |||
15997 | |||
15998 | |||
15999 | |||
16000 | |||
16001 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
16002 | # archiving commands below assume that GNU ld is being used. | ||
16003 | if test "$with_gnu_ld" = yes; then | ||
16004 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16005 | 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' | ||
16006 | |||
16007 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16008 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16009 | |||
16010 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
16011 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
16012 | # investigate it a little bit more. (MM) | ||
16013 | wlarc='${wl}' | ||
16014 | |||
16015 | # ancient GNU ld didn't support --whole-archive et. al. | ||
16016 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | ||
16017 | $GREP 'no-whole-archive' > /dev/null; then | ||
16018 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
16019 | else | ||
16020 | whole_archive_flag_spec_CXX= | ||
16021 | fi | ||
16022 | else | ||
16023 | with_gnu_ld=no | ||
16024 | wlarc= | ||
16025 | |||
16026 | # A generic and very simple default shared library creation | ||
16027 | # command for GNU C++ for the case where it uses the native | ||
16028 | # linker, instead of GNU ld. If possible, this setting should | ||
16029 | # overridden to take advantage of the native linker features on | ||
16030 | # the platform it is being used on. | ||
16031 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
16032 | fi | ||
16033 | |||
16034 | # Commands to make compiler produce verbose output that lists | ||
16035 | # what "hidden" libraries, object files and flags are used when | ||
16036 | # linking a shared library. | ||
16037 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
16038 | |||
16039 | else | ||
16040 | GXX=no | ||
16041 | with_gnu_ld=no | ||
16042 | wlarc= | ||
16043 | fi | ||
16044 | |||
16045 | # PORTME: fill in a description of your system's C++ link characteristics | ||
16046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
16047 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
16048 | ld_shlibs_CXX=yes | ||
16049 | case $host_os in | ||
16050 | aix3*) | ||
16051 | # FIXME: insert proper C++ library support | ||
16052 | ld_shlibs_CXX=no | ||
16053 | ;; | ||
16054 | aix[4-9]*) | ||
16055 | if test "$host_cpu" = ia64; then | ||
16056 | # On IA64, the linker does run time linking by default, so we don't | ||
16057 | # have to do anything special. | ||
16058 | aix_use_runtimelinking=no | ||
16059 | exp_sym_flag='-Bexport' | ||
16060 | no_entry_flag="" | ||
16061 | else | ||
16062 | aix_use_runtimelinking=no | ||
16063 | |||
16064 | # Test if we are trying to use run time linking or normal | ||
16065 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
16066 | # need to do runtime linking. | ||
16067 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
16068 | for ld_flag in $LDFLAGS; do | ||
16069 | case $ld_flag in | ||
16070 | *-brtl*) | ||
16071 | aix_use_runtimelinking=yes | ||
16072 | break | ||
16073 | ;; | ||
16074 | esac | ||
16075 | done | ||
16076 | ;; | ||
16077 | esac | ||
16078 | |||
16079 | exp_sym_flag='-bexport' | ||
16080 | no_entry_flag='-bnoentry' | ||
16081 | fi | ||
16082 | |||
16083 | # When large executables or shared objects are built, AIX ld can | ||
16084 | # have problems creating the table of contents. If linking a library | ||
16085 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
16086 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
16087 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
16088 | |||
16089 | archive_cmds_CXX='' | ||
16090 | hardcode_direct_CXX=yes | ||
16091 | hardcode_direct_absolute_CXX=yes | ||
16092 | hardcode_libdir_separator_CXX=':' | ||
16093 | link_all_deplibs_CXX=yes | ||
16094 | file_list_spec_CXX='${wl}-f,' | ||
16095 | |||
16096 | if test "$GXX" = yes; then | ||
16097 | case $host_os in aix4.[012]|aix4.[012].*) | ||
16098 | # We only want to do this on AIX 4.2 and lower, the check | ||
16099 | # below for broken collect2 doesn't work under 4.3+ | ||
16100 | collect2name=`${CC} -print-prog-name=collect2` | ||
16101 | if test -f "$collect2name" && | ||
16102 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
16103 | then | ||
16104 | # We have reworked collect2 | ||
16105 | : | ||
16106 | else | ||
16107 | # We have old collect2 | ||
16108 | hardcode_direct_CXX=unsupported | ||
16109 | # It fails to find uninstalled libraries when the uninstalled | ||
16110 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
16111 | # to unsupported forces relinking | ||
16112 | hardcode_minus_L_CXX=yes | ||
16113 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
16114 | hardcode_libdir_separator_CXX= | ||
16115 | fi | ||
16116 | esac | ||
16117 | shared_flag='-shared' | ||
16118 | if test "$aix_use_runtimelinking" = yes; then | ||
16119 | shared_flag="$shared_flag "'${wl}-G' | ||
16120 | fi | ||
16121 | else | ||
16122 | # not using gcc | ||
16123 | if test "$host_cpu" = ia64; then | ||
16124 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
16125 | # chokes on -Wl,-G. The following line is correct: | ||
16126 | shared_flag='-G' | ||
16127 | else | ||
16128 | if test "$aix_use_runtimelinking" = yes; then | ||
16129 | shared_flag='${wl}-G' | ||
16130 | else | ||
16131 | shared_flag='${wl}-bM:SRE' | ||
16132 | fi | ||
16133 | fi | ||
16134 | fi | ||
16135 | |||
16136 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | ||
16137 | # It seems that -bexpall does not export symbols beginning with | ||
16138 | # underscore (_), so it is better to generate a list of symbols to | ||
16139 | # export. | ||
16140 | always_export_symbols_CXX=yes | ||
16141 | if test "$aix_use_runtimelinking" = yes; then | ||
16142 | # Warning - without using the other runtime loading flags (-brtl), | ||
16143 | # -berok will link without error, but may produce a broken library. | ||
16144 | allow_undefined_flag_CXX='-berok' | ||
16145 | # Determine the default libpath from the value encoded in an empty | ||
16146 | # executable. | ||
16147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16148 | /* end confdefs.h. */ | ||
16149 | |||
16150 | int | ||
16151 | main () | ||
16152 | { | ||
16153 | |||
16154 | ; | ||
16155 | return 0; | ||
16156 | } | ||
16157 | _ACEOF | ||
16158 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
16159 | |||
16160 | lt_aix_libpath_sed=' | ||
16161 | /Import File Strings/,/^$/ { | ||
16162 | /^0/ { | ||
16163 | s/^0 *\(.*\)$/\1/ | ||
16164 | p | ||
16165 | } | ||
16166 | }' | ||
16167 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
16168 | # Check for a 64-bit object if we didn't find anything. | ||
16169 | if test -z "$aix_libpath"; then | ||
16170 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
16171 | fi | ||
16172 | fi | ||
16173 | rm -f core conftest.err conftest.$ac_objext \ | ||
16174 | conftest$ac_exeext conftest.$ac_ext | ||
16175 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
16176 | |||
16177 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
16178 | |||
16179 | 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" | ||
16180 | else | ||
16181 | if test "$host_cpu" = ia64; then | ||
16182 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
16183 | allow_undefined_flag_CXX="-z nodefs" | ||
16184 | 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" | ||
16185 | else | ||
16186 | # Determine the default libpath from the value encoded in an | ||
16187 | # empty executable. | ||
16188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16189 | /* end confdefs.h. */ | ||
16190 | |||
16191 | int | ||
16192 | main () | ||
16193 | { | ||
16194 | |||
16195 | ; | ||
16196 | return 0; | ||
16197 | } | ||
16198 | _ACEOF | ||
16199 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
16200 | |||
16201 | lt_aix_libpath_sed=' | ||
16202 | /Import File Strings/,/^$/ { | ||
16203 | /^0/ { | ||
16204 | s/^0 *\(.*\)$/\1/ | ||
16205 | p | ||
16206 | } | ||
16207 | }' | ||
16208 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
16209 | # Check for a 64-bit object if we didn't find anything. | ||
16210 | if test -z "$aix_libpath"; then | ||
16211 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
16212 | fi | ||
16213 | fi | ||
16214 | rm -f core conftest.err conftest.$ac_objext \ | ||
16215 | conftest$ac_exeext conftest.$ac_ext | ||
16216 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
16217 | |||
16218 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
16219 | # Warning - without using the other run time loading flags, | ||
16220 | # -berok will link without error, but may produce a broken library. | ||
16221 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
16222 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
16223 | # Exported symbols can be pulled into shared objects from archives | ||
16224 | whole_archive_flag_spec_CXX='$convenience' | ||
16225 | archive_cmds_need_lc_CXX=yes | ||
16226 | # This is similar to how AIX traditionally builds its shared | ||
16227 | # libraries. | ||
16228 | 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' | ||
16229 | fi | ||
16230 | fi | ||
16231 | ;; | ||
16232 | |||
16233 | beos*) | ||
16234 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
16235 | allow_undefined_flag_CXX=unsupported | ||
16236 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
16237 | # support --undefined. This deserves some investigation. FIXME | ||
16238 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16239 | else | ||
16240 | ld_shlibs_CXX=no | ||
16241 | fi | ||
16242 | ;; | ||
16243 | |||
16244 | chorus*) | ||
16245 | case $cc_basename in | ||
16246 | *) | ||
16247 | # FIXME: insert proper C++ library support | ||
16248 | ld_shlibs_CXX=no | ||
16249 | ;; | ||
16250 | esac | ||
16251 | ;; | ||
16252 | |||
16253 | cygwin* | mingw* | pw32* | cegcc*) | ||
16254 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
16255 | # as there is no search path for DLLs. | ||
16256 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
16257 | allow_undefined_flag_CXX=unsupported | ||
16258 | always_export_symbols_CXX=no | ||
16259 | enable_shared_with_static_runtimes_CXX=yes | ||
16260 | |||
16261 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
16262 | 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' | ||
16263 | # If the export-symbols file already is a .def file (1st line | ||
16264 | # is EXPORTS), use it as is; otherwise, prepend... | ||
16265 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
16266 | cp $export_symbols $output_objdir/$soname.def; | ||
16267 | else | ||
16268 | echo EXPORTS > $output_objdir/$soname.def; | ||
16269 | cat $export_symbols >> $output_objdir/$soname.def; | ||
16270 | fi~ | ||
16271 | $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' | ||
16272 | else | ||
16273 | ld_shlibs_CXX=no | ||
16274 | fi | ||
16275 | ;; | ||
16276 | darwin* | rhapsody*) | ||
16277 | |||
16278 | |||
16279 | archive_cmds_need_lc_CXX=no | ||
16280 | hardcode_direct_CXX=no | ||
16281 | hardcode_automatic_CXX=yes | ||
16282 | hardcode_shlibpath_var_CXX=unsupported | ||
16283 | whole_archive_flag_spec_CXX='' | ||
16284 | link_all_deplibs_CXX=yes | ||
16285 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | ||
16286 | case $cc_basename in | ||
16287 | ifort*) _lt_dar_can_shared=yes ;; | ||
16288 | *) _lt_dar_can_shared=$GCC ;; | ||
16289 | esac | ||
16290 | if test "$_lt_dar_can_shared" = "yes"; then | ||
16291 | output_verbose_link_cmd=echo | ||
16292 | 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}" | ||
16293 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
16294 | 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}" | ||
16295 | 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}" | ||
16296 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
16297 | 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}" | ||
16298 | 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}" | ||
16299 | fi | ||
16300 | |||
16301 | else | ||
16302 | ld_shlibs_CXX=no | ||
16303 | fi | ||
16304 | |||
16305 | ;; | ||
16306 | |||
16307 | dgux*) | ||
16308 | case $cc_basename in | ||
16309 | ec++*) | ||
16310 | # FIXME: insert proper C++ library support | ||
16311 | ld_shlibs_CXX=no | ||
16312 | ;; | ||
16313 | ghcx*) | ||
16314 | # Green Hills C++ Compiler | ||
16315 | # FIXME: insert proper C++ library support | ||
16316 | ld_shlibs_CXX=no | ||
16317 | ;; | ||
16318 | *) | ||
16319 | # FIXME: insert proper C++ library support | ||
16320 | ld_shlibs_CXX=no | ||
16321 | ;; | ||
16322 | esac | ||
16323 | ;; | ||
16324 | |||
16325 | freebsd[12]*) | ||
16326 | # C++ shared libraries reported to be fairly broken before | ||
16327 | # switch to ELF | ||
16328 | ld_shlibs_CXX=no | ||
16329 | ;; | ||
16330 | |||
16331 | freebsd-elf*) | ||
16332 | archive_cmds_need_lc_CXX=no | ||
16333 | ;; | ||
16334 | |||
16335 | freebsd* | dragonfly*) | ||
16336 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
16337 | # conventions | ||
16338 | ld_shlibs_CXX=yes | ||
16339 | ;; | ||
16340 | |||
16341 | gnu*) | ||
16342 | ;; | ||
16343 | |||
16344 | hpux9*) | ||
16345 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
16346 | hardcode_libdir_separator_CXX=: | ||
16347 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
16348 | hardcode_direct_CXX=yes | ||
16349 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
16350 | # but as the default | ||
16351 | # location of the library. | ||
16352 | |||
16353 | case $cc_basename in | ||
16354 | CC*) | ||
16355 | # FIXME: insert proper C++ library support | ||
16356 | ld_shlibs_CXX=no | ||
16357 | ;; | ||
16358 | aCC*) | ||
16359 | 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' | ||
16360 | # Commands to make compiler produce verbose output that lists | ||
16361 | # what "hidden" libraries, object files and flags are used when | ||
16362 | # linking a shared library. | ||
16363 | # | ||
16364 | # There doesn't appear to be a way to prevent this compiler from | ||
16365 | # explicitly linking system object files so we need to strip them | ||
16366 | # from the output so that they don't get included in the library | ||
16367 | # dependencies. | ||
16368 | 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' | ||
16369 | ;; | ||
16370 | *) | ||
16371 | if test "$GXX" = yes; then | ||
16372 | 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' | ||
16373 | else | ||
16374 | # FIXME: insert proper C++ library support | ||
16375 | ld_shlibs_CXX=no | ||
16376 | fi | ||
16377 | ;; | ||
16378 | esac | ||
16379 | ;; | ||
16380 | |||
16381 | hpux10*|hpux11*) | ||
16382 | if test $with_gnu_ld = no; then | ||
16383 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
16384 | hardcode_libdir_separator_CXX=: | ||
16385 | |||
16386 | case $host_cpu in | ||
16387 | hppa*64*|ia64*) | ||
16388 | ;; | ||
16389 | *) | ||
16390 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
16391 | ;; | ||
16392 | esac | ||
16393 | fi | ||
16394 | case $host_cpu in | ||
16395 | hppa*64*|ia64*) | ||
16396 | hardcode_direct_CXX=no | ||
16397 | hardcode_shlibpath_var_CXX=no | ||
16398 | ;; | ||
16399 | *) | ||
16400 | hardcode_direct_CXX=yes | ||
16401 | hardcode_direct_absolute_CXX=yes | ||
16402 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
16403 | # but as the default | ||
16404 | # location of the library. | ||
16405 | ;; | ||
16406 | esac | ||
16407 | |||
16408 | case $cc_basename in | ||
16409 | CC*) | ||
16410 | # FIXME: insert proper C++ library support | ||
16411 | ld_shlibs_CXX=no | ||
16412 | ;; | ||
16413 | aCC*) | ||
16414 | case $host_cpu in | ||
16415 | hppa*64*) | ||
16416 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16417 | ;; | ||
16418 | ia64*) | ||
16419 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16420 | ;; | ||
16421 | *) | ||
16422 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16423 | ;; | ||
16424 | esac | ||
16425 | # Commands to make compiler produce verbose output that lists | ||
16426 | # what "hidden" libraries, object files and flags are used when | ||
16427 | # linking a shared library. | ||
16428 | # | ||
16429 | # There doesn't appear to be a way to prevent this compiler from | ||
16430 | # explicitly linking system object files so we need to strip them | ||
16431 | # from the output so that they don't get included in the library | ||
16432 | # dependencies. | ||
16433 | 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' | ||
16434 | ;; | ||
16435 | *) | ||
16436 | if test "$GXX" = yes; then | ||
16437 | if test $with_gnu_ld = no; then | ||
16438 | case $host_cpu in | ||
16439 | hppa*64*) | ||
16440 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16441 | ;; | ||
16442 | ia64*) | ||
16443 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16444 | ;; | ||
16445 | *) | ||
16446 | 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' | ||
16447 | ;; | ||
16448 | esac | ||
16449 | fi | ||
16450 | else | ||
16451 | # FIXME: insert proper C++ library support | ||
16452 | ld_shlibs_CXX=no | ||
16453 | fi | ||
16454 | ;; | ||
16455 | esac | ||
16456 | ;; | ||
16457 | |||
16458 | interix[3-9]*) | ||
16459 | hardcode_direct_CXX=no | ||
16460 | hardcode_shlibpath_var_CXX=no | ||
16461 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16462 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
16463 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
16464 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
16465 | # default) and relocated if they conflict, which is a slow very memory | ||
16466 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
16467 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
16468 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
16469 | 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' | ||
16470 | 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' | ||
16471 | ;; | ||
16472 | irix5* | irix6*) | ||
16473 | case $cc_basename in | ||
16474 | CC*) | ||
16475 | # SGI C++ | ||
16476 | 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' | ||
16477 | |||
16478 | # Archives containing C++ object files must be created using | ||
16479 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
16480 | # necessary to make sure instantiated templates are included | ||
16481 | # in the archive. | ||
16482 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
16483 | ;; | ||
16484 | *) | ||
16485 | if test "$GXX" = yes; then | ||
16486 | if test "$with_gnu_ld" = no; then | ||
16487 | 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' | ||
16488 | else | ||
16489 | 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' | ||
16490 | fi | ||
16491 | fi | ||
16492 | link_all_deplibs_CXX=yes | ||
16493 | ;; | ||
16494 | esac | ||
16495 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16496 | hardcode_libdir_separator_CXX=: | ||
16497 | inherit_rpath_CXX=yes | ||
16498 | ;; | ||
16499 | |||
16500 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
16501 | case $cc_basename in | ||
16502 | KCC*) | ||
16503 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
16504 | |||
16505 | # KCC will only create a shared library if the output file | ||
16506 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
16507 | # to its proper name (with version) after linking. | ||
16508 | 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' | ||
16509 | 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' | ||
16510 | # Commands to make compiler produce verbose output that lists | ||
16511 | # what "hidden" libraries, object files and flags are used when | ||
16512 | # linking a shared library. | ||
16513 | # | ||
16514 | # There doesn't appear to be a way to prevent this compiler from | ||
16515 | # explicitly linking system object files so we need to strip them | ||
16516 | # from the output so that they don't get included in the library | ||
16517 | # dependencies. | ||
16518 | 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' | ||
16519 | |||
16520 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16521 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16522 | |||
16523 | # Archives containing C++ object files must be created using | ||
16524 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
16525 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
16526 | ;; | ||
16527 | icpc* | ecpc* ) | ||
16528 | # Intel C++ | ||
16529 | with_gnu_ld=yes | ||
16530 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
16531 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
16532 | # earlier do not add the objects themselves. | ||
16533 | case `$CC -V 2>&1` in | ||
16534 | *"Version 7."*) | ||
16535 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16536 | 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' | ||
16537 | ;; | ||
16538 | *) # Version 8.0 or newer | ||
16539 | tmp_idyn= | ||
16540 | case $host_cpu in | ||
16541 | ia64*) tmp_idyn=' -i_dynamic';; | ||
16542 | esac | ||
16543 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16544 | 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' | ||
16545 | ;; | ||
16546 | esac | ||
16547 | archive_cmds_need_lc_CXX=no | ||
16548 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16549 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16550 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
16551 | ;; | ||
16552 | pgCC* | pgcpp*) | ||
16553 | # Portland Group C++ compiler | ||
16554 | case `$CC -V` in | ||
16555 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | ||
16556 | prelink_cmds_CXX='tpldir=Template.dir~ | ||
16557 | rm -rf $tpldir~ | ||
16558 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
16559 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
16560 | old_archive_cmds_CXX='tpldir=Template.dir~ | ||
16561 | rm -rf $tpldir~ | ||
16562 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
16563 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
16564 | $RANLIB $oldlib' | ||
16565 | archive_cmds_CXX='tpldir=Template.dir~ | ||
16566 | rm -rf $tpldir~ | ||
16567 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
16568 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
16569 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | ||
16570 | rm -rf $tpldir~ | ||
16571 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
16572 | $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' | ||
16573 | ;; | ||
16574 | *) # Version 6 will use weak symbols | ||
16575 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
16576 | 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' | ||
16577 | ;; | ||
16578 | esac | ||
16579 | |||
16580 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
16581 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16582 | 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' | ||
16583 | ;; | ||
16584 | cxx*) | ||
16585 | # Compaq C++ | ||
16586 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16587 | 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' | ||
16588 | |||
16589 | runpath_var=LD_RUN_PATH | ||
16590 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
16591 | hardcode_libdir_separator_CXX=: | ||
16592 | |||
16593 | # Commands to make compiler produce verbose output that lists | ||
16594 | # what "hidden" libraries, object files and flags are used when | ||
16595 | # linking a shared library. | ||
16596 | # | ||
16597 | # There doesn't appear to be a way to prevent this compiler from | ||
16598 | # explicitly linking system object files so we need to strip them | ||
16599 | # from the output so that they don't get included in the library | ||
16600 | # dependencies. | ||
16601 | 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' | ||
16602 | ;; | ||
16603 | xl*) | ||
16604 | # IBM XL 8.0 on PPC, with GNU ld | ||
16605 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16606 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
16607 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16608 | if test "x$supports_anon_versioning" = xyes; then | ||
16609 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | ||
16610 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
16611 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
16612 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
16613 | fi | ||
16614 | ;; | ||
16615 | *) | ||
16616 | case `$CC -V 2>&1 | sed 5q` in | ||
16617 | *Sun\ C*) | ||
16618 | # Sun C++ 5.9 | ||
16619 | no_undefined_flag_CXX=' -zdefs' | ||
16620 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16621 | 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' | ||
16622 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
16623 | 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' | ||
16624 | compiler_needs_object_CXX=yes | ||
16625 | |||
16626 | # Not sure whether something based on | ||
16627 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | ||
16628 | # would be better. | ||
16629 | output_verbose_link_cmd='echo' | ||
16630 | |||
16631 | # Archives containing C++ object files must be created using | ||
16632 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
16633 | # necessary to make sure instantiated templates are included | ||
16634 | # in the archive. | ||
16635 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
16636 | ;; | ||
16637 | esac | ||
16638 | ;; | ||
16639 | esac | ||
16640 | ;; | ||
16641 | |||
16642 | lynxos*) | ||
16643 | # FIXME: insert proper C++ library support | ||
16644 | ld_shlibs_CXX=no | ||
16645 | ;; | ||
16646 | |||
16647 | m88k*) | ||
16648 | # FIXME: insert proper C++ library support | ||
16649 | ld_shlibs_CXX=no | ||
16650 | ;; | ||
16651 | |||
16652 | mvs*) | ||
16653 | case $cc_basename in | ||
16654 | cxx*) | ||
16655 | # FIXME: insert proper C++ library support | ||
16656 | ld_shlibs_CXX=no | ||
16657 | ;; | ||
16658 | *) | ||
16659 | # FIXME: insert proper C++ library support | ||
16660 | ld_shlibs_CXX=no | ||
16661 | ;; | ||
16662 | esac | ||
16663 | ;; | ||
16664 | |||
16665 | netbsd*) | ||
16666 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
16667 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
16668 | wlarc= | ||
16669 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
16670 | hardcode_direct_CXX=yes | ||
16671 | hardcode_shlibpath_var_CXX=no | ||
16672 | fi | ||
16673 | # Workaround some broken pre-1.5 toolchains | ||
16674 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
16675 | ;; | ||
16676 | |||
16677 | *nto* | *qnx*) | ||
16678 | ld_shlibs_CXX=yes | ||
16679 | ;; | ||
16680 | |||
16681 | openbsd2*) | ||
16682 | # C++ shared libraries are fairly broken | ||
16683 | ld_shlibs_CXX=no | ||
16684 | ;; | ||
16685 | |||
16686 | openbsd*) | ||
16687 | if test -f /usr/libexec/ld.so; then | ||
16688 | hardcode_direct_CXX=yes | ||
16689 | hardcode_shlibpath_var_CXX=no | ||
16690 | hardcode_direct_absolute_CXX=yes | ||
16691 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
16692 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16693 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16694 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
16695 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
16696 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
16697 | fi | ||
16698 | output_verbose_link_cmd=echo | ||
16699 | else | ||
16700 | ld_shlibs_CXX=no | ||
16701 | fi | ||
16702 | ;; | ||
16703 | |||
16704 | osf3* | osf4* | osf5*) | ||
16705 | case $cc_basename in | ||
16706 | KCC*) | ||
16707 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
16708 | |||
16709 | # KCC will only create a shared library if the output file | ||
16710 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
16711 | # to its proper name (with version) after linking. | ||
16712 | 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' | ||
16713 | |||
16714 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
16715 | hardcode_libdir_separator_CXX=: | ||
16716 | |||
16717 | # Archives containing C++ object files must be created using | ||
16718 | # the KAI C++ compiler. | ||
16719 | case $host in | ||
16720 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | ||
16721 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | ||
16722 | esac | ||
16723 | ;; | ||
16724 | RCC*) | ||
16725 | # Rational C++ 2.4.1 | ||
16726 | # FIXME: insert proper C++ library support | ||
16727 | ld_shlibs_CXX=no | ||
16728 | ;; | ||
16729 | cxx*) | ||
16730 | case $host in | ||
16731 | osf3*) | ||
16732 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
16733 | 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' | ||
16734 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16735 | ;; | ||
16736 | *) | ||
16737 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
16738 | 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' | ||
16739 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
16740 | echo "-hidden">> $lib.exp~ | ||
16741 | $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~ | ||
16742 | $RM $lib.exp' | ||
16743 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
16744 | ;; | ||
16745 | esac | ||
16746 | |||
16747 | hardcode_libdir_separator_CXX=: | ||
16748 | |||
16749 | # Commands to make compiler produce verbose output that lists | ||
16750 | # what "hidden" libraries, object files and flags are used when | ||
16751 | # linking a shared library. | ||
16752 | # | ||
16753 | # There doesn't appear to be a way to prevent this compiler from | ||
16754 | # explicitly linking system object files so we need to strip them | ||
16755 | # from the output so that they don't get included in the library | ||
16756 | # dependencies. | ||
16757 | 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' | ||
16758 | ;; | ||
16759 | *) | ||
16760 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
16761 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
16762 | case $host in | ||
16763 | osf3*) | ||
16764 | 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' | ||
16765 | ;; | ||
16766 | *) | ||
16767 | 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' | ||
16768 | ;; | ||
16769 | esac | ||
16770 | |||
16771 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
16772 | hardcode_libdir_separator_CXX=: | ||
16773 | |||
16774 | # Commands to make compiler produce verbose output that lists | ||
16775 | # what "hidden" libraries, object files and flags are used when | ||
16776 | # linking a shared library. | ||
16777 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
16778 | |||
16779 | else | ||
16780 | # FIXME: insert proper C++ library support | ||
16781 | ld_shlibs_CXX=no | ||
16782 | fi | ||
16783 | ;; | ||
16784 | esac | ||
16785 | ;; | ||
16786 | |||
16787 | psos*) | ||
16788 | # FIXME: insert proper C++ library support | ||
16789 | ld_shlibs_CXX=no | ||
16790 | ;; | ||
16791 | |||
16792 | sunos4*) | ||
16793 | case $cc_basename in | ||
16794 | CC*) | ||
16795 | # Sun C++ 4.x | ||
16796 | # FIXME: insert proper C++ library support | ||
16797 | ld_shlibs_CXX=no | ||
16798 | ;; | ||
16799 | lcc*) | ||
16800 | # Lucid | ||
16801 | # FIXME: insert proper C++ library support | ||
16802 | ld_shlibs_CXX=no | ||
16803 | ;; | ||
16804 | *) | ||
16805 | # FIXME: insert proper C++ library support | ||
16806 | ld_shlibs_CXX=no | ||
16807 | ;; | ||
16808 | esac | ||
16809 | ;; | ||
16810 | |||
16811 | solaris*) | ||
16812 | case $cc_basename in | ||
16813 | CC*) | ||
16814 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
16815 | archive_cmds_need_lc_CXX=yes | ||
16816 | no_undefined_flag_CXX=' -zdefs' | ||
16817 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
16818 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
16819 | $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' | ||
16820 | |||
16821 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
16822 | hardcode_shlibpath_var_CXX=no | ||
16823 | case $host_os in | ||
16824 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
16825 | *) | ||
16826 | # The compiler driver will combine and reorder linker options, | ||
16827 | # but understands `-z linker_flag'. | ||
16828 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
16829 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | ||
16830 | ;; | ||
16831 | esac | ||
16832 | link_all_deplibs_CXX=yes | ||
16833 | |||
16834 | output_verbose_link_cmd='echo' | ||
16835 | |||
16836 | # Archives containing C++ object files must be created using | ||
16837 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
16838 | # necessary to make sure instantiated templates are included | ||
16839 | # in the archive. | ||
16840 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
16841 | ;; | ||
16842 | gcx*) | ||
16843 | # Green Hills C++ Compiler | ||
16844 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
16845 | |||
16846 | # The C++ compiler must be used to create the archive. | ||
16847 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
16848 | ;; | ||
16849 | *) | ||
16850 | # GNU C++ compiler with Solaris linker | ||
16851 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
16852 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
16853 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
16854 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
16855 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
16856 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
16857 | |||
16858 | # Commands to make compiler produce verbose output that lists | ||
16859 | # what "hidden" libraries, object files and flags are used when | ||
16860 | # linking a shared library. | ||
16861 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
16862 | else | ||
16863 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
16864 | # platform. | ||
16865 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
16866 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
16867 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
16868 | |||
16869 | # Commands to make compiler produce verbose output that lists | ||
16870 | # what "hidden" libraries, object files and flags are used when | ||
16871 | # linking a shared library. | ||
16872 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
16873 | fi | ||
16874 | |||
16875 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
16876 | case $host_os in | ||
16877 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
16878 | *) | ||
16879 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
16880 | ;; | ||
16881 | esac | ||
16882 | fi | ||
16883 | ;; | ||
16884 | esac | ||
16885 | ;; | ||
16886 | |||
16887 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
16888 | no_undefined_flag_CXX='${wl}-z,text' | ||
16889 | archive_cmds_need_lc_CXX=no | ||
16890 | hardcode_shlibpath_var_CXX=no | ||
16891 | runpath_var='LD_RUN_PATH' | ||
16892 | |||
16893 | case $cc_basename in | ||
16894 | CC*) | ||
16895 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16896 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16897 | ;; | ||
16898 | *) | ||
16899 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16900 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16901 | ;; | ||
16902 | esac | ||
16903 | ;; | ||
16904 | |||
16905 | sysv5* | sco3.2v5* | sco5v6*) | ||
16906 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
16907 | # link with -lc, and that would cause any symbols used from libc to | ||
16908 | # always be unresolved, which means just about no library would | ||
16909 | # ever link correctly. If we're not using GNU ld we use -z text | ||
16910 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
16911 | # as -z defs. | ||
16912 | no_undefined_flag_CXX='${wl}-z,text' | ||
16913 | allow_undefined_flag_CXX='${wl}-z,nodefs' | ||
16914 | archive_cmds_need_lc_CXX=no | ||
16915 | hardcode_shlibpath_var_CXX=no | ||
16916 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | ||
16917 | hardcode_libdir_separator_CXX=':' | ||
16918 | link_all_deplibs_CXX=yes | ||
16919 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | ||
16920 | runpath_var='LD_RUN_PATH' | ||
16921 | |||
16922 | case $cc_basename in | ||
16923 | CC*) | ||
16924 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16925 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16926 | ;; | ||
16927 | *) | ||
16928 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16929 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16930 | ;; | ||
16931 | esac | ||
16932 | ;; | ||
16933 | |||
16934 | tandem*) | ||
16935 | case $cc_basename in | ||
16936 | NCC*) | ||
16937 | # NonStop-UX NCC 3.20 | ||
16938 | # FIXME: insert proper C++ library support | ||
16939 | ld_shlibs_CXX=no | ||
16940 | ;; | ||
16941 | *) | ||
16942 | # FIXME: insert proper C++ library support | ||
16943 | ld_shlibs_CXX=no | ||
16944 | ;; | ||
16945 | esac | ||
16946 | ;; | ||
16947 | |||
16948 | vxworks*) | ||
16949 | # FIXME: insert proper C++ library support | ||
16950 | ld_shlibs_CXX=no | ||
16951 | ;; | ||
16952 | |||
16953 | *) | ||
16954 | # FIXME: insert proper C++ library support | ||
16955 | ld_shlibs_CXX=no | ||
16956 | ;; | ||
16957 | esac | ||
16958 | |||
16959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
16960 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
16961 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
16962 | |||
16963 | GCC_CXX="$GXX" | ||
16964 | LD_CXX="$LD" | ||
16965 | |||
16966 | ## CAVEAT EMPTOR: | ||
16967 | ## There is no encapsulation within the following macros, do not change | ||
16968 | ## the running order or otherwise move them around unless you know exactly | ||
16969 | ## what you are doing... | ||
16970 | # Dependencies to place before and after the object being linked: | ||
16971 | predep_objects_CXX= | ||
16972 | postdep_objects_CXX= | ||
16973 | predeps_CXX= | ||
16974 | postdeps_CXX= | ||
16975 | compiler_lib_search_path_CXX= | ||
16976 | |||
16977 | cat > conftest.$ac_ext <<_LT_EOF | ||
16978 | class Foo | ||
16979 | { | ||
16980 | public: | ||
16981 | Foo (void) { a = 0; } | ||
16982 | private: | ||
16983 | int a; | ||
16984 | }; | ||
16985 | _LT_EOF | ||
16986 | |||
16987 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
16988 | (eval $ac_compile) 2>&5 | ||
16989 | ac_status=$? | ||
16990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16991 | test $ac_status = 0; }; then | ||
16992 | # Parse the compiler output and extract the necessary | ||
16993 | # objects, libraries and library flags. | ||
16994 | |||
16995 | # Sentinel used to keep track of whether or not we are before | ||
16996 | # the conftest object file. | ||
16997 | pre_test_object_deps_done=no | ||
16998 | |||
16999 | for p in `eval "$output_verbose_link_cmd"`; do | ||
17000 | case $p in | ||
17001 | |||
17002 | -L* | -R* | -l*) | ||
17003 | # Some compilers place space between "-{L,R}" and the path. | ||
17004 | # Remove the space. | ||
17005 | if test $p = "-L" || | ||
17006 | test $p = "-R"; then | ||
17007 | prev=$p | ||
17008 | continue | ||
17009 | else | ||
17010 | prev= | ||
17011 | fi | ||
17012 | |||
17013 | if test "$pre_test_object_deps_done" = no; then | ||
17014 | case $p in | ||
17015 | -L* | -R*) | ||
17016 | # Internal compiler library paths should come after those | ||
17017 | # provided the user. The postdeps already come after the | ||
17018 | # user supplied libs so there is no need to process them. | ||
17019 | if test -z "$compiler_lib_search_path_CXX"; then | ||
17020 | compiler_lib_search_path_CXX="${prev}${p}" | ||
17021 | else | ||
17022 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
17023 | fi | ||
17024 | ;; | ||
17025 | # The "-l" case would never come before the object being | ||
17026 | # linked, so don't bother handling this case. | ||
17027 | esac | ||
17028 | else | ||
17029 | if test -z "$postdeps_CXX"; then | ||
17030 | postdeps_CXX="${prev}${p}" | ||
17031 | else | ||
17032 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
17033 | fi | ||
17034 | fi | ||
17035 | ;; | ||
17036 | |||
17037 | *.$objext) | ||
17038 | # This assumes that the test object file only shows up | ||
17039 | # once in the compiler output. | ||
17040 | if test "$p" = "conftest.$objext"; then | ||
17041 | pre_test_object_deps_done=yes | ||
17042 | continue | ||
17043 | fi | ||
17044 | |||
17045 | if test "$pre_test_object_deps_done" = no; then | ||
17046 | if test -z "$predep_objects_CXX"; then | ||
17047 | predep_objects_CXX="$p" | ||
17048 | else | ||
17049 | predep_objects_CXX="$predep_objects_CXX $p" | ||
17050 | fi | ||
17051 | else | ||
17052 | if test -z "$postdep_objects_CXX"; then | ||
17053 | postdep_objects_CXX="$p" | ||
17054 | else | ||
17055 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
17056 | fi | ||
17057 | fi | ||
17058 | ;; | ||
17059 | |||
17060 | *) ;; # Ignore the rest. | ||
17061 | |||
17062 | esac | ||
17063 | done | ||
17064 | |||
17065 | # Clean up. | ||
17066 | rm -f a.out a.exe | ||
17067 | else | ||
17068 | echo "libtool.m4: error: problem compiling CXX test program" | ||
17069 | fi | ||
17070 | |||
17071 | $RM -f confest.$objext | ||
17072 | |||
17073 | # PORTME: override above test on systems where it is broken | ||
17074 | case $host_os in | ||
17075 | interix[3-9]*) | ||
17076 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
17077 | # hack all around it, let's just trust "g++" to DTRT. | ||
17078 | predep_objects_CXX= | ||
17079 | postdep_objects_CXX= | ||
17080 | postdeps_CXX= | ||
17081 | ;; | ||
17082 | |||
17083 | linux*) | ||
17084 | case `$CC -V 2>&1 | sed 5q` in | ||
17085 | *Sun\ C*) | ||
17086 | # Sun C++ 5.9 | ||
17087 | |||
17088 | # The more standards-conforming stlport4 library is | ||
17089 | # incompatible with the Cstd library. Avoid specifying | ||
17090 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
17091 | # -library=stlport4 depends on it. | ||
17092 | case " $CXX $CXXFLAGS " in | ||
17093 | *" -library=stlport4 "*) | ||
17094 | solaris_use_stlport4=yes | ||
17095 | ;; | ||
17096 | esac | ||
17097 | |||
17098 | if test "$solaris_use_stlport4" != yes; then | ||
17099 | postdeps_CXX='-library=Cstd -library=Crun' | ||
17100 | fi | ||
17101 | ;; | ||
17102 | esac | ||
17103 | ;; | ||
17104 | |||
17105 | solaris*) | ||
17106 | case $cc_basename in | ||
17107 | CC*) | ||
17108 | # The more standards-conforming stlport4 library is | ||
17109 | # incompatible with the Cstd library. Avoid specifying | ||
17110 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
17111 | # -library=stlport4 depends on it. | ||
17112 | case " $CXX $CXXFLAGS " in | ||
17113 | *" -library=stlport4 "*) | ||
17114 | solaris_use_stlport4=yes | ||
17115 | ;; | ||
17116 | esac | ||
17117 | |||
17118 | # Adding this requires a known-good setup of shared libraries for | ||
17119 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
17120 | # archive will be linked into the output, leading to subtle bugs. | ||
17121 | if test "$solaris_use_stlport4" != yes; then | ||
17122 | postdeps_CXX='-library=Cstd -library=Crun' | ||
17123 | fi | ||
17124 | ;; | ||
17125 | esac | ||
17126 | ;; | ||
17127 | esac | ||
17128 | |||
17129 | |||
17130 | case " $postdeps_CXX " in | ||
17131 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
17132 | esac | ||
17133 | compiler_lib_search_dirs_CXX= | ||
17134 | if test -n "${compiler_lib_search_path_CXX}"; then | ||
17135 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | ||
17136 | fi | ||
17137 | |||
17138 | |||
17139 | |||
17140 | |||
17141 | |||
17142 | |||
17143 | |||
17144 | |||
17145 | |||
17146 | |||
17147 | |||
17148 | |||
17149 | |||
17150 | |||
17151 | |||
17152 | |||
17153 | |||
17154 | |||
17155 | |||
17156 | |||
17157 | |||
17158 | |||
17159 | |||
17160 | |||
17161 | |||
17162 | |||
17163 | |||
17164 | |||
17165 | |||
17166 | |||
17167 | |||
17168 | lt_prog_compiler_wl_CXX= | ||
17169 | lt_prog_compiler_pic_CXX= | ||
17170 | lt_prog_compiler_static_CXX= | ||
17171 | |||
17172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
17173 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
17174 | |||
17175 | # C++ specific cases for pic, static, wl, etc. | ||
17176 | if test "$GXX" = yes; then | ||
17177 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17178 | lt_prog_compiler_static_CXX='-static' | ||
17179 | |||
17180 | case $host_os in | ||
17181 | aix*) | ||
17182 | # All AIX code is PIC. | ||
17183 | if test "$host_cpu" = ia64; then | ||
17184 | # AIX 5 now supports IA64 processor | ||
17185 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17186 | fi | ||
17187 | ;; | ||
17188 | |||
17189 | amigaos*) | ||
17190 | case $host_cpu in | ||
17191 | powerpc) | ||
17192 | # see comment about AmigaOS4 .so support | ||
17193 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17194 | ;; | ||
17195 | m68k) | ||
17196 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
17197 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
17198 | # like `-m68040'. | ||
17199 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
17200 | ;; | ||
17201 | esac | ||
17202 | ;; | ||
17203 | |||
17204 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
17205 | # PIC is the default for these OSes. | ||
17206 | ;; | ||
17207 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
17208 | # This hack is so that the source file can tell whether it is being | ||
17209 | # built for inclusion in a dll (and should export symbols for example). | ||
17210 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
17211 | # (--disable-auto-import) libraries | ||
17212 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
17213 | ;; | ||
17214 | darwin* | rhapsody*) | ||
17215 | # PIC is the default on this platform | ||
17216 | # Common symbols not allowed in MH_DYLIB files | ||
17217 | lt_prog_compiler_pic_CXX='-fno-common' | ||
17218 | ;; | ||
17219 | *djgpp*) | ||
17220 | # DJGPP does not support shared libraries at all | ||
17221 | lt_prog_compiler_pic_CXX= | ||
17222 | ;; | ||
17223 | interix[3-9]*) | ||
17224 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
17225 | # Instead, we relocate shared libraries at runtime. | ||
17226 | ;; | ||
17227 | sysv4*MP*) | ||
17228 | if test -d /usr/nec; then | ||
17229 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
17230 | fi | ||
17231 | ;; | ||
17232 | hpux*) | ||
17233 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
17234 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
17235 | # sets the default TLS model and affects inlining. | ||
17236 | case $host_cpu in | ||
17237 | hppa*64*) | ||
17238 | ;; | ||
17239 | *) | ||
17240 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17241 | ;; | ||
17242 | esac | ||
17243 | ;; | ||
17244 | *qnx* | *nto*) | ||
17245 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
17246 | # it will coredump. | ||
17247 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
17248 | ;; | ||
17249 | *) | ||
17250 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17251 | ;; | ||
17252 | esac | ||
17253 | else | ||
17254 | case $host_os in | ||
17255 | aix[4-9]*) | ||
17256 | # All AIX code is PIC. | ||
17257 | if test "$host_cpu" = ia64; then | ||
17258 | # AIX 5 now supports IA64 processor | ||
17259 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17260 | else | ||
17261 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
17262 | fi | ||
17263 | ;; | ||
17264 | chorus*) | ||
17265 | case $cc_basename in | ||
17266 | cxch68*) | ||
17267 | # Green Hills C++ Compiler | ||
17268 | # _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" | ||
17269 | ;; | ||
17270 | esac | ||
17271 | ;; | ||
17272 | dgux*) | ||
17273 | case $cc_basename in | ||
17274 | ec++*) | ||
17275 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17276 | ;; | ||
17277 | ghcx*) | ||
17278 | # Green Hills C++ Compiler | ||
17279 | lt_prog_compiler_pic_CXX='-pic' | ||
17280 | ;; | ||
17281 | *) | ||
17282 | ;; | ||
17283 | esac | ||
17284 | ;; | ||
17285 | freebsd* | dragonfly*) | ||
17286 | # FreeBSD uses GNU C++ | ||
17287 | ;; | ||
17288 | hpux9* | hpux10* | hpux11*) | ||
17289 | case $cc_basename in | ||
17290 | CC*) | ||
17291 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17292 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
17293 | if test "$host_cpu" != ia64; then | ||
17294 | lt_prog_compiler_pic_CXX='+Z' | ||
17295 | fi | ||
17296 | ;; | ||
17297 | aCC*) | ||
17298 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17299 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
17300 | case $host_cpu in | ||
17301 | hppa*64*|ia64*) | ||
17302 | # +Z the default | ||
17303 | ;; | ||
17304 | *) | ||
17305 | lt_prog_compiler_pic_CXX='+Z' | ||
17306 | ;; | ||
17307 | esac | ||
17308 | ;; | ||
17309 | *) | ||
17310 | ;; | ||
17311 | esac | ||
17312 | ;; | ||
17313 | interix*) | ||
17314 | # This is c89, which is MS Visual C++ (no shared libs) | ||
17315 | # Anyone wants to do a port? | ||
17316 | ;; | ||
17317 | irix5* | irix6* | nonstopux*) | ||
17318 | case $cc_basename in | ||
17319 | CC*) | ||
17320 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17321 | lt_prog_compiler_static_CXX='-non_shared' | ||
17322 | # CC pic flag -KPIC is the default. | ||
17323 | ;; | ||
17324 | *) | ||
17325 | ;; | ||
17326 | esac | ||
17327 | ;; | ||
17328 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
17329 | case $cc_basename in | ||
17330 | KCC*) | ||
17331 | # KAI C++ Compiler | ||
17332 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
17333 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17334 | ;; | ||
17335 | ecpc* ) | ||
17336 | # old Intel C++ for x86_64 which still supported -KPIC. | ||
17337 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17338 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17339 | lt_prog_compiler_static_CXX='-static' | ||
17340 | ;; | ||
17341 | icpc* ) | ||
17342 | # Intel C++, used to be incompatible with GCC. | ||
17343 | # ICC 10 doesn't accept -KPIC any more. | ||
17344 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17345 | lt_prog_compiler_pic_CXX='-fPIC' | ||
17346 | lt_prog_compiler_static_CXX='-static' | ||
17347 | ;; | ||
17348 | pgCC* | pgcpp*) | ||
17349 | # Portland Group C++ compiler | ||
17350 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17351 | lt_prog_compiler_pic_CXX='-fpic' | ||
17352 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17353 | ;; | ||
17354 | cxx*) | ||
17355 | # Compaq C++ | ||
17356 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
17357 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
17358 | lt_prog_compiler_pic_CXX= | ||
17359 | lt_prog_compiler_static_CXX='-non_shared' | ||
17360 | ;; | ||
17361 | xlc* | xlC*) | ||
17362 | # IBM XL 8.0 on PPC | ||
17363 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17364 | lt_prog_compiler_pic_CXX='-qpic' | ||
17365 | lt_prog_compiler_static_CXX='-qstaticlink' | ||
17366 | ;; | ||
17367 | *) | ||
17368 | case `$CC -V 2>&1 | sed 5q` in | ||
17369 | *Sun\ C*) | ||
17370 | # Sun C++ 5.9 | ||
17371 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17372 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17373 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
17374 | ;; | ||
17375 | esac | ||
17376 | ;; | ||
17377 | esac | ||
17378 | ;; | ||
17379 | lynxos*) | ||
17380 | ;; | ||
17381 | m88k*) | ||
17382 | ;; | ||
17383 | mvs*) | ||
17384 | case $cc_basename in | ||
17385 | cxx*) | ||
17386 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
17387 | ;; | ||
17388 | *) | ||
17389 | ;; | ||
17390 | esac | ||
17391 | ;; | ||
17392 | netbsd* | netbsdelf*-gnu) | ||
17393 | ;; | ||
17394 | *qnx* | *nto*) | ||
17395 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
17396 | # it will coredump. | ||
17397 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
17398 | ;; | ||
17399 | osf3* | osf4* | osf5*) | ||
17400 | case $cc_basename in | ||
17401 | KCC*) | ||
17402 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
17403 | ;; | ||
17404 | RCC*) | ||
17405 | # Rational C++ 2.4.1 | ||
17406 | lt_prog_compiler_pic_CXX='-pic' | ||
17407 | ;; | ||
17408 | cxx*) | ||
17409 | # Digital/Compaq C++ | ||
17410 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17411 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
17412 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
17413 | lt_prog_compiler_pic_CXX= | ||
17414 | lt_prog_compiler_static_CXX='-non_shared' | ||
17415 | ;; | ||
17416 | *) | ||
17417 | ;; | ||
17418 | esac | ||
17419 | ;; | ||
17420 | psos*) | ||
17421 | ;; | ||
17422 | solaris*) | ||
17423 | case $cc_basename in | ||
17424 | CC*) | ||
17425 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
17426 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17427 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17428 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
17429 | ;; | ||
17430 | gcx*) | ||
17431 | # Green Hills C++ Compiler | ||
17432 | lt_prog_compiler_pic_CXX='-PIC' | ||
17433 | ;; | ||
17434 | *) | ||
17435 | ;; | ||
17436 | esac | ||
17437 | ;; | ||
17438 | sunos4*) | ||
17439 | case $cc_basename in | ||
17440 | CC*) | ||
17441 | # Sun C++ 4.x | ||
17442 | lt_prog_compiler_pic_CXX='-pic' | ||
17443 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17444 | ;; | ||
17445 | lcc*) | ||
17446 | # Lucid | ||
17447 | lt_prog_compiler_pic_CXX='-pic' | ||
17448 | ;; | ||
17449 | *) | ||
17450 | ;; | ||
17451 | esac | ||
17452 | ;; | ||
17453 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
17454 | case $cc_basename in | ||
17455 | CC*) | ||
17456 | lt_prog_compiler_wl_CXX='-Wl,' | ||
17457 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17458 | lt_prog_compiler_static_CXX='-Bstatic' | ||
17459 | ;; | ||
17460 | esac | ||
17461 | ;; | ||
17462 | tandem*) | ||
17463 | case $cc_basename in | ||
17464 | NCC*) | ||
17465 | # NonStop-UX NCC 3.20 | ||
17466 | lt_prog_compiler_pic_CXX='-KPIC' | ||
17467 | ;; | ||
17468 | *) | ||
17469 | ;; | ||
17470 | esac | ||
17471 | ;; | ||
17472 | vxworks*) | ||
17473 | ;; | ||
17474 | *) | ||
17475 | lt_prog_compiler_can_build_shared_CXX=no | ||
17476 | ;; | ||
17477 | esac | ||
17478 | fi | ||
17479 | |||
17480 | case $host_os in | ||
17481 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
17482 | *djgpp*) | ||
17483 | lt_prog_compiler_pic_CXX= | ||
17484 | ;; | ||
17485 | *) | ||
17486 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
17487 | ;; | ||
17488 | esac | ||
17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | ||
17490 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | ||
17491 | |||
17492 | |||
17493 | |||
17494 | # | ||
17495 | # Check to make sure the PIC flag actually works. | ||
17496 | # | ||
17497 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
17498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
17499 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | ||
17500 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | ||
17501 | $as_echo_n "(cached) " >&6 | ||
17502 | else | ||
17503 | lt_cv_prog_compiler_pic_works_CXX=no | ||
17504 | ac_outfile=conftest.$ac_objext | ||
17505 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17506 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
17507 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17508 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17509 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17510 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17511 | # The option is referenced via a variable to avoid confusing sed. | ||
17512 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17513 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17514 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17515 | -e 's:$: $lt_compiler_flag:'` | ||
17516 | (eval echo "\"\$as_me:17516: $lt_compile\"" >&5) | ||
17517 | (eval "$lt_compile" 2>conftest.err) | ||
17518 | ac_status=$? | ||
17519 | cat conftest.err >&5 | ||
17520 | echo "$as_me:17520: \$? = $ac_status" >&5 | ||
17521 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
17522 | # The compiler can only warn and ignore the option if not recognized | ||
17523 | # So say no if there are warnings other than the usual output. | ||
17524 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
17525 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
17526 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
17527 | lt_cv_prog_compiler_pic_works_CXX=yes | ||
17528 | fi | ||
17529 | fi | ||
17530 | $RM conftest* | ||
17531 | |||
17532 | fi | ||
17533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | ||
17534 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | ||
17535 | |||
17536 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | ||
17537 | case $lt_prog_compiler_pic_CXX in | ||
17538 | "" | " "*) ;; | ||
17539 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
17540 | esac | ||
17541 | else | ||
17542 | lt_prog_compiler_pic_CXX= | ||
17543 | lt_prog_compiler_can_build_shared_CXX=no | ||
17544 | fi | ||
17545 | |||
17546 | fi | ||
17547 | |||
17548 | |||
17549 | |||
17550 | # | ||
17551 | # Check to make sure the static flag actually works. | ||
17552 | # | ||
17553 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | ||
17554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
17555 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
17556 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | ||
17557 | $as_echo_n "(cached) " >&6 | ||
17558 | else | ||
17559 | lt_cv_prog_compiler_static_works_CXX=no | ||
17560 | save_LDFLAGS="$LDFLAGS" | ||
17561 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
17562 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
17563 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
17564 | # The linker can only warn and ignore the option if not recognized | ||
17565 | # So say no if there are warnings | ||
17566 | if test -s conftest.err; then | ||
17567 | # Append any errors to the config.log. | ||
17568 | cat conftest.err 1>&5 | ||
17569 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
17570 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
17571 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
17572 | lt_cv_prog_compiler_static_works_CXX=yes | ||
17573 | fi | ||
17574 | else | ||
17575 | lt_cv_prog_compiler_static_works_CXX=yes | ||
17576 | fi | ||
17577 | fi | ||
17578 | $RM -r conftest* | ||
17579 | LDFLAGS="$save_LDFLAGS" | ||
17580 | |||
17581 | fi | ||
17582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | ||
17583 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | ||
17584 | |||
17585 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | ||
17586 | : | ||
17587 | else | ||
17588 | lt_prog_compiler_static_CXX= | ||
17589 | fi | ||
17590 | |||
17591 | |||
17592 | |||
17593 | |||
17594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
17595 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
17596 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
17597 | $as_echo_n "(cached) " >&6 | ||
17598 | else | ||
17599 | lt_cv_prog_compiler_c_o_CXX=no | ||
17600 | $RM -r conftest 2>/dev/null | ||
17601 | mkdir conftest | ||
17602 | cd conftest | ||
17603 | mkdir out | ||
17604 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17605 | |||
17606 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
17607 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17608 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17609 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17610 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17611 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17612 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17613 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17614 | -e 's:$: $lt_compiler_flag:'` | ||
17615 | (eval echo "\"\$as_me:17615: $lt_compile\"" >&5) | ||
17616 | (eval "$lt_compile" 2>out/conftest.err) | ||
17617 | ac_status=$? | ||
17618 | cat out/conftest.err >&5 | ||
17619 | echo "$as_me:17619: \$? = $ac_status" >&5 | ||
17620 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
17621 | then | ||
17622 | # The compiler can only warn and ignore the option if not recognized | ||
17623 | # So say no if there are warnings | ||
17624 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
17625 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
17626 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
17627 | lt_cv_prog_compiler_c_o_CXX=yes | ||
17628 | fi | ||
17629 | fi | ||
17630 | chmod u+w . 2>&5 | ||
17631 | $RM conftest* | ||
17632 | # SGI C++ compiler will create directory out/ii_files/ for | ||
17633 | # template instantiation | ||
17634 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
17635 | $RM out/* && rmdir out | ||
17636 | cd .. | ||
17637 | $RM -r conftest | ||
17638 | $RM conftest* | ||
17639 | |||
17640 | fi | ||
17641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
17642 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
17643 | |||
17644 | |||
17645 | |||
17646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
17647 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
17648 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
17649 | $as_echo_n "(cached) " >&6 | ||
17650 | else | ||
17651 | lt_cv_prog_compiler_c_o_CXX=no | ||
17652 | $RM -r conftest 2>/dev/null | ||
17653 | mkdir conftest | ||
17654 | cd conftest | ||
17655 | mkdir out | ||
17656 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17657 | |||
17658 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
17659 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17660 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17661 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17662 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17663 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17664 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
17665 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17666 | -e 's:$: $lt_compiler_flag:'` | ||
17667 | (eval echo "\"\$as_me:17667: $lt_compile\"" >&5) | ||
17668 | (eval "$lt_compile" 2>out/conftest.err) | ||
17669 | ac_status=$? | ||
17670 | cat out/conftest.err >&5 | ||
17671 | echo "$as_me:17671: \$? = $ac_status" >&5 | ||
17672 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
17673 | then | ||
17674 | # The compiler can only warn and ignore the option if not recognized | ||
17675 | # So say no if there are warnings | ||
17676 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
17677 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
17678 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
17679 | lt_cv_prog_compiler_c_o_CXX=yes | ||
17680 | fi | ||
17681 | fi | ||
17682 | chmod u+w . 2>&5 | ||
17683 | $RM conftest* | ||
17684 | # SGI C++ compiler will create directory out/ii_files/ for | ||
17685 | # template instantiation | ||
17686 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
17687 | $RM out/* && rmdir out | ||
17688 | cd .. | ||
17689 | $RM -r conftest | ||
17690 | $RM conftest* | ||
17691 | |||
17692 | fi | ||
17693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
17694 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
17695 | |||
17696 | |||
17697 | |||
17698 | |||
17699 | hard_links="nottested" | ||
17700 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
17701 | # do not overwrite the value of need_locks provided by the user | ||
17702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
17703 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
17704 | hard_links=yes | ||
17705 | $RM conftest* | ||
17706 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
17707 | touch conftest.a | ||
17708 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
17709 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
17710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
17711 | $as_echo "$hard_links" >&6; } | ||
17712 | if test "$hard_links" = no; then | ||
17713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
17714 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
17715 | need_locks=warn | ||
17716 | fi | ||
17717 | else | ||
17718 | need_locks=no | ||
17719 | fi | ||
17720 | |||
17721 | |||
17722 | |||
17723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
17724 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
17725 | |||
17726 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
17727 | case $host_os in | ||
17728 | aix[4-9]*) | ||
17729 | # If we're using GNU nm, then we don't want the "-C" option. | ||
17730 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
17731 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
17732 | 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' | ||
17733 | else | ||
17734 | 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' | ||
17735 | fi | ||
17736 | ;; | ||
17737 | pw32*) | ||
17738 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
17739 | ;; | ||
17740 | cygwin* | mingw* | cegcc*) | ||
17741 | 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' | ||
17742 | ;; | ||
17743 | linux* | k*bsd*-gnu) | ||
17744 | link_all_deplibs_CXX=no | ||
17745 | ;; | ||
17746 | *) | ||
17747 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
17748 | ;; | ||
17749 | esac | ||
17750 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
17751 | |||
17752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
17753 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
17754 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
17755 | |||
17756 | with_gnu_ld_CXX=$with_gnu_ld | ||
17757 | |||
17758 | |||
17759 | |||
17760 | |||
17761 | |||
17762 | |||
17763 | # | ||
17764 | # Do we need to explicitly link libc? | ||
17765 | # | ||
17766 | case "x$archive_cmds_need_lc_CXX" in | ||
17767 | x|xyes) | ||
17768 | # Assume -lc should be added | ||
17769 | archive_cmds_need_lc_CXX=yes | ||
17770 | |||
17771 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
17772 | case $archive_cmds_CXX in | ||
17773 | *'~'*) | ||
17774 | # FIXME: we may have to deal with multi-command sequences. | ||
17775 | ;; | ||
17776 | '$CC '*) | ||
17777 | # Test whether the compiler implicitly links with -lc since on some | ||
17778 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
17779 | # to ld, don't add -lc before -lgcc. | ||
17780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
17781 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
17782 | $RM conftest* | ||
17783 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17784 | |||
17785 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
17786 | (eval $ac_compile) 2>&5 | ||
17787 | ac_status=$? | ||
17788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17789 | test $ac_status = 0; } 2>conftest.err; then | ||
17790 | soname=conftest | ||
17791 | lib=conftest | ||
17792 | libobjs=conftest.$ac_objext | ||
17793 | deplibs= | ||
17794 | wl=$lt_prog_compiler_wl_CXX | ||
17795 | pic_flag=$lt_prog_compiler_pic_CXX | ||
17796 | compiler_flags=-v | ||
17797 | linker_flags=-v | ||
17798 | verstring= | ||
17799 | output_objdir=. | ||
17800 | libname=conftest | ||
17801 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
17802 | allow_undefined_flag_CXX= | ||
17803 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
17804 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
17805 | ac_status=$? | ||
17806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17807 | test $ac_status = 0; } | ||
17808 | then | ||
17809 | archive_cmds_need_lc_CXX=no | ||
17810 | else | ||
17811 | archive_cmds_need_lc_CXX=yes | ||
17812 | fi | ||
17813 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
17814 | else | ||
17815 | cat conftest.err 1>&5 | ||
17816 | fi | ||
17817 | $RM conftest* | ||
17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | ||
17819 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | ||
17820 | ;; | ||
17821 | esac | ||
17822 | fi | ||
17823 | ;; | ||
17824 | esac | ||
17825 | |||
17826 | |||
17827 | |||
17828 | |||
17829 | |||
17830 | |||
17831 | |||
17832 | |||
17833 | |||
17834 | |||
17835 | |||
17836 | |||
17837 | |||
17838 | |||
17839 | |||
17840 | |||
17841 | |||
17842 | |||
17843 | |||
17844 | |||
17845 | |||
17846 | |||
17847 | |||
17848 | |||
17849 | |||
17850 | |||
17851 | |||
17852 | |||
17853 | |||
17854 | |||
17855 | |||
17856 | |||
17857 | |||
17858 | |||
17859 | |||
17860 | |||
17861 | |||
17862 | |||
17863 | |||
17864 | |||
17865 | |||
17866 | |||
17867 | |||
17868 | |||
17869 | |||
17870 | |||
17871 | |||
17872 | |||
17873 | |||
17874 | |||
17875 | |||
17876 | |||
17877 | |||
17878 | |||
17879 | |||
17880 | |||
17881 | |||
17882 | |||
17883 | |||
17884 | |||
17885 | |||
17886 | |||
17887 | |||
17888 | |||
17889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
17890 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
17891 | |||
17892 | library_names_spec= | ||
17893 | libname_spec='lib$name' | ||
17894 | soname_spec= | ||
17895 | shrext_cmds=".so" | ||
17896 | postinstall_cmds= | ||
17897 | postuninstall_cmds= | ||
17898 | finish_cmds= | ||
17899 | finish_eval= | ||
17900 | shlibpath_var= | ||
17901 | shlibpath_overrides_runpath=unknown | ||
17902 | version_type=none | ||
17903 | dynamic_linker="$host_os ld.so" | ||
17904 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
17905 | need_lib_prefix=unknown | ||
17906 | hardcode_into_libs=no | ||
17907 | |||
17908 | # when you set need_version to no, make sure it does not cause -set_version | ||
17909 | # flags to be left without arguments | ||
17910 | need_version=unknown | ||
17911 | |||
17912 | case $host_os in | ||
17913 | aix3*) | ||
17914 | version_type=linux | ||
17915 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
17916 | shlibpath_var=LIBPATH | ||
17917 | |||
17918 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
17919 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17920 | ;; | ||
17921 | |||
17922 | aix[4-9]*) | ||
17923 | version_type=linux | ||
17924 | need_lib_prefix=no | ||
17925 | need_version=no | ||
17926 | hardcode_into_libs=yes | ||
17927 | if test "$host_cpu" = ia64; then | ||
17928 | # AIX 5 supports IA64 | ||
17929 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
17930 | shlibpath_var=LD_LIBRARY_PATH | ||
17931 | else | ||
17932 | # With GCC up to 2.95.x, collect2 would create an import file | ||
17933 | # for dependence libraries. The import file would start with | ||
17934 | # the line `#! .'. This would cause the generated library to | ||
17935 | # depend on `.', always an invalid library. This was fixed in | ||
17936 | # development snapshots of GCC prior to 3.0. | ||
17937 | case $host_os in | ||
17938 | aix4 | aix4.[01] | aix4.[01].*) | ||
17939 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
17940 | echo ' yes ' | ||
17941 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
17942 | : | ||
17943 | else | ||
17944 | can_build_shared=no | ||
17945 | fi | ||
17946 | ;; | ||
17947 | esac | ||
17948 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
17949 | # soname into executable. Probably we can add versioning support to | ||
17950 | # collect2, so additional links can be useful in future. | ||
17951 | if test "$aix_use_runtimelinking" = yes; then | ||
17952 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
17953 | # instead of lib<name>.a to let people know that these are not | ||
17954 | # typical AIX shared libraries. | ||
17955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17956 | else | ||
17957 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
17958 | # and later when we are not doing run time linking. | ||
17959 | library_names_spec='${libname}${release}.a $libname.a' | ||
17960 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17961 | fi | ||
17962 | shlibpath_var=LIBPATH | ||
17963 | fi | ||
17964 | ;; | ||
17965 | |||
17966 | amigaos*) | ||
17967 | case $host_cpu in | ||
17968 | powerpc) | ||
17969 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
17970 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
17971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17972 | ;; | ||
17973 | m68k) | ||
17974 | library_names_spec='$libname.ixlibrary $libname.a' | ||
17975 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
17976 | 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' | ||
17977 | ;; | ||
17978 | esac | ||
17979 | ;; | ||
17980 | |||
17981 | beos*) | ||
17982 | library_names_spec='${libname}${shared_ext}' | ||
17983 | dynamic_linker="$host_os ld.so" | ||
17984 | shlibpath_var=LIBRARY_PATH | ||
17985 | ;; | ||
17986 | |||
17987 | bsdi[45]*) | ||
17988 | version_type=linux | ||
17989 | need_version=no | ||
17990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17991 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17992 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
17993 | shlibpath_var=LD_LIBRARY_PATH | ||
17994 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
17995 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
17996 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
17997 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
17998 | # libtool to hard-code these into programs | ||
17999 | ;; | ||
18000 | |||
18001 | cygwin* | mingw* | pw32* | cegcc*) | ||
18002 | version_type=windows | ||
18003 | shrext_cmds=".dll" | ||
18004 | need_version=no | ||
18005 | need_lib_prefix=no | ||
18006 | |||
18007 | case $GCC,$host_os in | ||
18008 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
18009 | library_names_spec='$libname.dll.a' | ||
18010 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
18011 | postinstall_cmds='base_file=`basename \${file}`~ | ||
18012 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
18013 | dldir=$destdir/`dirname \$dlpath`~ | ||
18014 | test -d \$dldir || mkdir -p \$dldir~ | ||
18015 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
18016 | chmod a+x \$dldir/$dlname~ | ||
18017 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
18018 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
18019 | fi' | ||
18020 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
18021 | dlpath=$dir/\$dldll~ | ||
18022 | $RM \$dlpath' | ||
18023 | shlibpath_overrides_runpath=yes | ||
18024 | |||
18025 | case $host_os in | ||
18026 | cygwin*) | ||
18027 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
18028 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18029 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
18030 | ;; | ||
18031 | mingw* | cegcc*) | ||
18032 | # MinGW DLLs use traditional 'lib' prefix | ||
18033 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18034 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
18035 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
18036 | # It is most probably a Windows format PATH printed by | ||
18037 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
18038 | # path with ; separators, and with drive letters. We can handle the | ||
18039 | # drive letters (cygwin fileutils understands them), so leave them, | ||
18040 | # especially as we might pass files found there to a mingw objdump, | ||
18041 | # which wouldn't understand a cygwinified path. Ahh. | ||
18042 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
18043 | else | ||
18044 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
18045 | fi | ||
18046 | ;; | ||
18047 | pw32*) | ||
18048 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
18049 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18050 | ;; | ||
18051 | esac | ||
18052 | ;; | ||
18053 | |||
18054 | *) | ||
18055 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
18056 | ;; | ||
18057 | esac | ||
18058 | dynamic_linker='Win32 ld.exe' | ||
18059 | # FIXME: first we should search . and the directory the executable is in | ||
18060 | shlibpath_var=PATH | ||
18061 | ;; | ||
18062 | |||
18063 | darwin* | rhapsody*) | ||
18064 | dynamic_linker="$host_os dyld" | ||
18065 | version_type=darwin | ||
18066 | need_lib_prefix=no | ||
18067 | need_version=no | ||
18068 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
18069 | soname_spec='${libname}${release}${major}$shared_ext' | ||
18070 | shlibpath_overrides_runpath=yes | ||
18071 | shlibpath_var=DYLD_LIBRARY_PATH | ||
18072 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
18073 | |||
18074 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
18075 | ;; | ||
18076 | |||
18077 | dgux*) | ||
18078 | version_type=linux | ||
18079 | need_lib_prefix=no | ||
18080 | need_version=no | ||
18081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
18082 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18083 | shlibpath_var=LD_LIBRARY_PATH | ||
18084 | ;; | ||
18085 | |||
18086 | freebsd1*) | ||
18087 | dynamic_linker=no | ||
18088 | ;; | ||
18089 | |||
18090 | freebsd* | dragonfly*) | ||
18091 | # DragonFly does not have aout. When/if they implement a new | ||
18092 | # versioning mechanism, adjust this. | ||
18093 | if test -x /usr/bin/objformat; then | ||
18094 | objformat=`/usr/bin/objformat` | ||
18095 | else | ||
18096 | case $host_os in | ||
18097 | freebsd[123]*) objformat=aout ;; | ||
18098 | *) objformat=elf ;; | ||
18099 | esac | ||
18100 | fi | ||
18101 | version_type=freebsd-$objformat | ||
18102 | case $version_type in | ||
18103 | freebsd-elf*) | ||
18104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18105 | need_version=no | ||
18106 | need_lib_prefix=no | ||
18107 | ;; | ||
18108 | freebsd-*) | ||
18109 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
18110 | need_version=yes | ||
18111 | ;; | ||
18112 | esac | ||
18113 | shlibpath_var=LD_LIBRARY_PATH | ||
18114 | case $host_os in | ||
18115 | freebsd2*) | ||
18116 | shlibpath_overrides_runpath=yes | ||
18117 | ;; | ||
18118 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
18119 | shlibpath_overrides_runpath=yes | ||
18120 | hardcode_into_libs=yes | ||
18121 | ;; | ||
18122 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
18123 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
18124 | shlibpath_overrides_runpath=no | ||
18125 | hardcode_into_libs=yes | ||
18126 | ;; | ||
18127 | *) # from 4.6 on, and DragonFly | ||
18128 | shlibpath_overrides_runpath=yes | ||
18129 | hardcode_into_libs=yes | ||
18130 | ;; | ||
18131 | esac | ||
18132 | ;; | ||
18133 | |||
18134 | gnu*) | ||
18135 | version_type=linux | ||
18136 | need_lib_prefix=no | ||
18137 | need_version=no | ||
18138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
18139 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18140 | shlibpath_var=LD_LIBRARY_PATH | ||
18141 | hardcode_into_libs=yes | ||
18142 | ;; | ||
18143 | |||
18144 | hpux9* | hpux10* | hpux11*) | ||
18145 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
18146 | # link against other versions. | ||
18147 | version_type=sunos | ||
18148 | need_lib_prefix=no | ||
18149 | need_version=no | ||
18150 | case $host_cpu in | ||
18151 | ia64*) | ||
18152 | shrext_cmds='.so' | ||
18153 | hardcode_into_libs=yes | ||
18154 | dynamic_linker="$host_os dld.so" | ||
18155 | shlibpath_var=LD_LIBRARY_PATH | ||
18156 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
18157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18158 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18159 | if test "X$HPUX_IA64_MODE" = X32; then | ||
18160 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
18161 | else | ||
18162 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
18163 | fi | ||
18164 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
18165 | ;; | ||
18166 | hppa*64*) | ||
18167 | shrext_cmds='.sl' | ||
18168 | hardcode_into_libs=yes | ||
18169 | dynamic_linker="$host_os dld.sl" | ||
18170 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
18171 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
18172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18173 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18174 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
18175 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
18176 | ;; | ||
18177 | *) | ||
18178 | shrext_cmds='.sl' | ||
18179 | dynamic_linker="$host_os dld.sl" | ||
18180 | shlibpath_var=SHLIB_PATH | ||
18181 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
18182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18183 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18184 | ;; | ||
18185 | esac | ||
18186 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
18187 | postinstall_cmds='chmod 555 $lib' | ||
18188 | ;; | ||
18189 | |||
18190 | interix[3-9]*) | ||
18191 | version_type=linux | ||
18192 | need_lib_prefix=no | ||
18193 | need_version=no | ||
18194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18195 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18196 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
18197 | shlibpath_var=LD_LIBRARY_PATH | ||
18198 | shlibpath_overrides_runpath=no | ||
18199 | hardcode_into_libs=yes | ||
18200 | ;; | ||
18201 | |||
18202 | irix5* | irix6* | nonstopux*) | ||
18203 | case $host_os in | ||
18204 | nonstopux*) version_type=nonstopux ;; | ||
18205 | *) | ||
18206 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
18207 | version_type=linux | ||
18208 | else | ||
18209 | version_type=irix | ||
18210 | fi ;; | ||
18211 | esac | ||
18212 | need_lib_prefix=no | ||
18213 | need_version=no | ||
18214 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18216 | case $host_os in | ||
18217 | irix5* | nonstopux*) | ||
18218 | libsuff= shlibsuff= | ||
18219 | ;; | ||
18220 | *) | ||
18221 | case $LD in # libtool.m4 will add one of these switches to LD | ||
18222 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
18223 | libsuff= shlibsuff= libmagic=32-bit;; | ||
18224 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
18225 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
18226 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
18227 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
18228 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
18229 | esac | ||
18230 | ;; | ||
18231 | esac | ||
18232 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
18233 | shlibpath_overrides_runpath=no | ||
18234 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
18235 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
18236 | hardcode_into_libs=yes | ||
18237 | ;; | ||
18238 | |||
18239 | # No shared lib support for Linux oldld, aout, or coff. | ||
18240 | linux*oldld* | linux*aout* | linux*coff*) | ||
18241 | dynamic_linker=no | ||
18242 | ;; | ||
18243 | |||
18244 | # This must be Linux ELF. | ||
18245 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
18246 | version_type=linux | ||
18247 | need_lib_prefix=no | ||
18248 | need_version=no | ||
18249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18250 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18251 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
18252 | shlibpath_var=LD_LIBRARY_PATH | ||
18253 | shlibpath_overrides_runpath=no | ||
18254 | # Some binutils ld are patched to set DT_RUNPATH | ||
18255 | save_LDFLAGS=$LDFLAGS | ||
18256 | save_libdir=$libdir | ||
18257 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | ||
18258 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | ||
18259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18260 | /* end confdefs.h. */ | ||
18261 | |||
18262 | int | ||
18263 | main () | ||
18264 | { | ||
18265 | |||
18266 | ; | ||
18267 | return 0; | ||
18268 | } | ||
18269 | _ACEOF | ||
18270 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
18271 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
18272 | shlibpath_overrides_runpath=yes | ||
18273 | fi | ||
18274 | fi | ||
18275 | rm -f core conftest.err conftest.$ac_objext \ | ||
18276 | conftest$ac_exeext conftest.$ac_ext | ||
18277 | LDFLAGS=$save_LDFLAGS | ||
18278 | libdir=$save_libdir | ||
18279 | |||
18280 | # This implies no fast_install, which is unacceptable. | ||
18281 | # Some rework will be needed to allow for fast_install | ||
18282 | # before this can be enabled. | ||
18283 | hardcode_into_libs=yes | ||
18284 | |||
18285 | # Append ld.so.conf contents to the search path | ||
18286 | if test -f /etc/ld.so.conf; then | ||
18287 | 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' ' '` | ||
18288 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
18289 | fi | ||
18290 | |||
18291 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
18292 | # powerpc, because MkLinux only supported shared libraries with the | ||
18293 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
18294 | # most powerpc-linux boxes support dynamic linking these days and | ||
18295 | # people can always --disable-shared, the test was removed, and we | ||
18296 | # assume the GNU/Linux dynamic linker is in use. | ||
18297 | dynamic_linker='GNU/Linux ld.so' | ||
18298 | ;; | ||
18299 | |||
18300 | netbsdelf*-gnu) | ||
18301 | version_type=linux | ||
18302 | need_lib_prefix=no | ||
18303 | need_version=no | ||
18304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18305 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18306 | shlibpath_var=LD_LIBRARY_PATH | ||
18307 | shlibpath_overrides_runpath=no | ||
18308 | hardcode_into_libs=yes | ||
18309 | dynamic_linker='NetBSD ld.elf_so' | ||
18310 | ;; | ||
18311 | |||
18312 | netbsd*) | ||
18313 | version_type=sunos | ||
18314 | need_lib_prefix=no | ||
18315 | need_version=no | ||
18316 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
18317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18318 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
18319 | dynamic_linker='NetBSD (a.out) ld.so' | ||
18320 | else | ||
18321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18322 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18323 | dynamic_linker='NetBSD ld.elf_so' | ||
18324 | fi | ||
18325 | shlibpath_var=LD_LIBRARY_PATH | ||
18326 | shlibpath_overrides_runpath=yes | ||
18327 | hardcode_into_libs=yes | ||
18328 | ;; | ||
18329 | |||
18330 | newsos6) | ||
18331 | version_type=linux | ||
18332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18333 | shlibpath_var=LD_LIBRARY_PATH | ||
18334 | shlibpath_overrides_runpath=yes | ||
18335 | ;; | ||
18336 | |||
18337 | *nto* | *qnx*) | ||
18338 | version_type=qnx | ||
18339 | need_lib_prefix=no | ||
18340 | need_version=no | ||
18341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18342 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18343 | shlibpath_var=LD_LIBRARY_PATH | ||
18344 | shlibpath_overrides_runpath=no | ||
18345 | hardcode_into_libs=yes | ||
18346 | dynamic_linker='ldqnx.so' | ||
18347 | ;; | ||
18348 | |||
18349 | openbsd*) | ||
18350 | version_type=sunos | ||
18351 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
18352 | need_lib_prefix=no | ||
18353 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
18354 | case $host_os in | ||
18355 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
18356 | *) need_version=no ;; | ||
18357 | esac | ||
18358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18359 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
18360 | shlibpath_var=LD_LIBRARY_PATH | ||
18361 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
18362 | case $host_os in | ||
18363 | openbsd2.[89] | openbsd2.[89].*) | ||
18364 | shlibpath_overrides_runpath=no | ||
18365 | ;; | ||
18366 | *) | ||
18367 | shlibpath_overrides_runpath=yes | ||
18368 | ;; | ||
18369 | esac | ||
18370 | else | ||
18371 | shlibpath_overrides_runpath=yes | ||
18372 | fi | ||
18373 | ;; | ||
18374 | |||
18375 | os2*) | ||
18376 | libname_spec='$name' | ||
18377 | shrext_cmds=".dll" | ||
18378 | need_lib_prefix=no | ||
18379 | library_names_spec='$libname${shared_ext} $libname.a' | ||
18380 | dynamic_linker='OS/2 ld.exe' | ||
18381 | shlibpath_var=LIBPATH | ||
18382 | ;; | ||
18383 | |||
18384 | osf3* | osf4* | osf5*) | ||
18385 | version_type=osf | ||
18386 | need_lib_prefix=no | ||
18387 | need_version=no | ||
18388 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18390 | shlibpath_var=LD_LIBRARY_PATH | ||
18391 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
18392 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
18393 | ;; | ||
18394 | |||
18395 | rdos*) | ||
18396 | dynamic_linker=no | ||
18397 | ;; | ||
18398 | |||
18399 | solaris*) | ||
18400 | version_type=linux | ||
18401 | need_lib_prefix=no | ||
18402 | need_version=no | ||
18403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18404 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18405 | shlibpath_var=LD_LIBRARY_PATH | ||
18406 | shlibpath_overrides_runpath=yes | ||
18407 | hardcode_into_libs=yes | ||
18408 | # ldd complains unless libraries are executable | ||
18409 | postinstall_cmds='chmod +x $lib' | ||
18410 | ;; | ||
18411 | |||
18412 | sunos4*) | ||
18413 | version_type=sunos | ||
18414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18415 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
18416 | shlibpath_var=LD_LIBRARY_PATH | ||
18417 | shlibpath_overrides_runpath=yes | ||
18418 | if test "$with_gnu_ld" = yes; then | ||
18419 | need_lib_prefix=no | ||
18420 | fi | ||
18421 | need_version=yes | ||
18422 | ;; | ||
18423 | |||
18424 | sysv4 | sysv4.3*) | ||
18425 | version_type=linux | ||
18426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18427 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18428 | shlibpath_var=LD_LIBRARY_PATH | ||
18429 | case $host_vendor in | ||
18430 | sni) | ||
18431 | shlibpath_overrides_runpath=no | ||
18432 | need_lib_prefix=no | ||
18433 | runpath_var=LD_RUN_PATH | ||
18434 | ;; | ||
18435 | siemens) | ||
18436 | need_lib_prefix=no | ||
18437 | ;; | ||
18438 | motorola) | ||
18439 | need_lib_prefix=no | ||
18440 | need_version=no | ||
18441 | shlibpath_overrides_runpath=no | ||
18442 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
18443 | ;; | ||
18444 | esac | ||
18445 | ;; | ||
18446 | |||
18447 | sysv4*MP*) | ||
18448 | if test -d /usr/nec ;then | ||
18449 | version_type=linux | ||
18450 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
18451 | soname_spec='$libname${shared_ext}.$major' | ||
18452 | shlibpath_var=LD_LIBRARY_PATH | ||
18453 | fi | ||
18454 | ;; | ||
18455 | |||
18456 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
18457 | version_type=freebsd-elf | ||
18458 | need_lib_prefix=no | ||
18459 | need_version=no | ||
18460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18461 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18462 | shlibpath_var=LD_LIBRARY_PATH | ||
18463 | shlibpath_overrides_runpath=yes | ||
18464 | hardcode_into_libs=yes | ||
18465 | if test "$with_gnu_ld" = yes; then | ||
18466 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
18467 | else | ||
18468 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
18469 | case $host_os in | ||
18470 | sco3.2v5*) | ||
18471 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
18472 | ;; | ||
18473 | esac | ||
18474 | fi | ||
18475 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
18476 | ;; | ||
18477 | |||
18478 | tpf*) | ||
18479 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
18480 | version_type=linux | ||
18481 | need_lib_prefix=no | ||
18482 | need_version=no | ||
18483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18484 | shlibpath_var=LD_LIBRARY_PATH | ||
18485 | shlibpath_overrides_runpath=no | ||
18486 | hardcode_into_libs=yes | ||
18487 | ;; | ||
18488 | |||
18489 | uts4*) | ||
18490 | version_type=linux | ||
18491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18492 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18493 | shlibpath_var=LD_LIBRARY_PATH | ||
18494 | ;; | ||
18495 | |||
18496 | *) | ||
18497 | dynamic_linker=no | ||
18498 | ;; | ||
18499 | esac | ||
18500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
18501 | $as_echo "$dynamic_linker" >&6; } | ||
18502 | test "$dynamic_linker" = no && can_build_shared=no | ||
18503 | |||
18504 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
18505 | if test "$GCC" = yes; then | ||
18506 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
18507 | fi | ||
18508 | |||
18509 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
18510 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
18511 | fi | ||
18512 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
18513 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
18514 | fi | ||
18515 | |||
18516 | |||
18517 | |||
18518 | |||
18519 | |||
18520 | |||
18521 | |||
18522 | |||
18523 | |||
18524 | |||
18525 | |||
18526 | |||
18527 | |||
18528 | |||
18529 | |||
18530 | |||
18531 | |||
18532 | |||
18533 | |||
18534 | |||
18535 | |||
18536 | |||
18537 | |||
18538 | |||
18539 | |||
18540 | |||
18541 | |||
18542 | |||
18543 | |||
18544 | |||
18545 | |||
18546 | |||
18547 | |||
18548 | |||
18549 | |||
18550 | |||
18551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
18552 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
18553 | hardcode_action_CXX= | ||
18554 | if test -n "$hardcode_libdir_flag_spec_CXX" || | ||
18555 | test -n "$runpath_var_CXX" || | ||
18556 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | ||
18557 | |||
18558 | # We can hardcode non-existent directories. | ||
18559 | if test "$hardcode_direct_CXX" != no && | ||
18560 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
18561 | # have to relink, otherwise we might link with an installed library | ||
18562 | # when we should be linking with a yet-to-be-installed one | ||
18563 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
18564 | test "$hardcode_minus_L_CXX" != no; then | ||
18565 | # Linking always hardcodes the temporary library directory. | ||
18566 | hardcode_action_CXX=relink | ||
18567 | else | ||
18568 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
18569 | hardcode_action_CXX=immediate | ||
18570 | fi | ||
18571 | else | ||
18572 | # We cannot hardcode anything, or else we can only hardcode existing | ||
18573 | # directories. | ||
18574 | hardcode_action_CXX=unsupported | ||
18575 | fi | ||
18576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | ||
18577 | $as_echo "$hardcode_action_CXX" >&6; } | ||
18578 | |||
18579 | if test "$hardcode_action_CXX" = relink || | ||
18580 | test "$inherit_rpath_CXX" = yes; then | ||
18581 | # Fast installation is not supported | ||
18582 | enable_fast_install=no | ||
18583 | elif test "$shlibpath_overrides_runpath" = yes || | ||
18584 | test "$enable_shared" = no; then | ||
18585 | # Fast installation is not necessary | ||
18586 | enable_fast_install=needless | ||
18587 | fi | ||
18588 | |||
18589 | |||
18590 | |||
18591 | |||
18592 | |||
18593 | |||
18594 | |||
18595 | fi # test -n "$compiler" | ||
18596 | |||
18597 | CC=$lt_save_CC | ||
18598 | LDCXX=$LD | ||
18599 | LD=$lt_save_LD | ||
18600 | GCC=$lt_save_GCC | ||
18601 | with_gnu_ld=$lt_save_with_gnu_ld | ||
18602 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
18603 | lt_cv_path_LD=$lt_save_path_LD | ||
18604 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
18605 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
18606 | fi # test "$_lt_caught_CXX_error" != yes | ||
18607 | |||
18608 | ac_ext=c | ||
18609 | ac_cpp='$CPP $CPPFLAGS' | ||
18610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18613 | |||
18614 | |||
18615 | ac_ext=c | ||
18616 | ac_cpp='$CPP $CPPFLAGS' | ||
18617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18620 | if test -n "$ac_tool_prefix"; then | ||
18621 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
18622 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
18623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18624 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18625 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
18626 | $as_echo_n "(cached) " >&6 | ||
18627 | else | ||
18628 | if test -n "$CC"; then | ||
18629 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
18630 | else | ||
18631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18632 | for as_dir in $PATH | ||
18633 | do | ||
18634 | IFS=$as_save_IFS | ||
18635 | test -z "$as_dir" && as_dir=. | ||
18636 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18638 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
18639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18640 | break 2 | ||
18641 | fi | ||
18642 | done | ||
18643 | done | ||
18644 | IFS=$as_save_IFS | ||
18645 | |||
18646 | fi | ||
18647 | fi | ||
18648 | CC=$ac_cv_prog_CC | ||
18649 | if test -n "$CC"; then | ||
18650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
18651 | $as_echo "$CC" >&6; } | ||
18652 | else | ||
18653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18654 | $as_echo "no" >&6; } | ||
18655 | fi | ||
18656 | |||
18657 | |||
18658 | fi | ||
18659 | if test -z "$ac_cv_prog_CC"; then | ||
18660 | ac_ct_CC=$CC | ||
18661 | # Extract the first word of "gcc", so it can be a program name with args. | ||
18662 | set dummy gcc; ac_word=$2 | ||
18663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18664 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18665 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
18666 | $as_echo_n "(cached) " >&6 | ||
18667 | else | ||
18668 | if test -n "$ac_ct_CC"; then | ||
18669 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
18670 | else | ||
18671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18672 | for as_dir in $PATH | ||
18673 | do | ||
18674 | IFS=$as_save_IFS | ||
18675 | test -z "$as_dir" && as_dir=. | ||
18676 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18678 | ac_cv_prog_ac_ct_CC="gcc" | ||
18679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18680 | break 2 | ||
18681 | fi | ||
18682 | done | ||
18683 | done | ||
18684 | IFS=$as_save_IFS | ||
18685 | |||
18686 | fi | ||
18687 | fi | ||
18688 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
18689 | if test -n "$ac_ct_CC"; then | ||
18690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
18691 | $as_echo "$ac_ct_CC" >&6; } | ||
18692 | else | ||
18693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18694 | $as_echo "no" >&6; } | ||
18695 | fi | ||
18696 | |||
18697 | if test "x$ac_ct_CC" = x; then | ||
18698 | CC="" | ||
18699 | else | ||
18700 | case $cross_compiling:$ac_tool_warned in | ||
18701 | yes:) | ||
18702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
18703 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
18704 | ac_tool_warned=yes ;; | ||
18705 | esac | ||
18706 | CC=$ac_ct_CC | ||
18707 | fi | ||
18708 | else | ||
18709 | CC="$ac_cv_prog_CC" | ||
18710 | fi | ||
18711 | |||
18712 | if test -z "$CC"; then | ||
18713 | if test -n "$ac_tool_prefix"; then | ||
18714 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
18715 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
18716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18717 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18718 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
18719 | $as_echo_n "(cached) " >&6 | ||
18720 | else | ||
18721 | if test -n "$CC"; then | ||
18722 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
18723 | else | ||
18724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18725 | for as_dir in $PATH | ||
18726 | do | ||
18727 | IFS=$as_save_IFS | ||
18728 | test -z "$as_dir" && as_dir=. | ||
18729 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18731 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
18732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18733 | break 2 | ||
18734 | fi | ||
18735 | done | ||
18736 | done | ||
18737 | IFS=$as_save_IFS | ||
18738 | |||
18739 | fi | ||
18740 | fi | ||
18741 | CC=$ac_cv_prog_CC | ||
18742 | if test -n "$CC"; then | ||
18743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
18744 | $as_echo "$CC" >&6; } | ||
18745 | else | ||
18746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18747 | $as_echo "no" >&6; } | ||
18748 | fi | ||
18749 | |||
18750 | |||
18751 | fi | ||
18752 | fi | ||
18753 | if test -z "$CC"; then | ||
18754 | # Extract the first word of "cc", so it can be a program name with args. | ||
18755 | set dummy cc; ac_word=$2 | ||
18756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18757 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18758 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
18759 | $as_echo_n "(cached) " >&6 | ||
18760 | else | ||
18761 | if test -n "$CC"; then | ||
18762 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
18763 | else | ||
18764 | ac_prog_rejected=no | ||
18765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18766 | for as_dir in $PATH | ||
18767 | do | ||
18768 | IFS=$as_save_IFS | ||
18769 | test -z "$as_dir" && as_dir=. | ||
18770 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18772 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
18773 | ac_prog_rejected=yes | ||
18774 | continue | ||
18775 | fi | ||
18776 | ac_cv_prog_CC="cc" | ||
18777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18778 | break 2 | ||
18779 | fi | ||
18780 | done | ||
18781 | done | ||
18782 | IFS=$as_save_IFS | ||
18783 | |||
18784 | if test $ac_prog_rejected = yes; then | ||
18785 | # We found a bogon in the path, so make sure we never use it. | ||
18786 | set dummy $ac_cv_prog_CC | ||
18787 | shift | ||
18788 | if test $# != 0; then | ||
18789 | # We chose a different compiler from the bogus one. | ||
18790 | # However, it has the same basename, so the bogon will be chosen | ||
18791 | # first if we set CC to just the basename; use the full file name. | ||
18792 | shift | ||
18793 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
18794 | fi | ||
18795 | fi | ||
18796 | fi | ||
18797 | fi | ||
18798 | CC=$ac_cv_prog_CC | ||
18799 | if test -n "$CC"; then | ||
18800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
18801 | $as_echo "$CC" >&6; } | ||
18802 | else | ||
18803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18804 | $as_echo "no" >&6; } | ||
18805 | fi | ||
18806 | |||
18807 | |||
18808 | fi | ||
18809 | if test -z "$CC"; then | ||
18810 | if test -n "$ac_tool_prefix"; then | ||
18811 | for ac_prog in cl.exe | ||
18812 | do | ||
18813 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
18814 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
18815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18816 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18817 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
18818 | $as_echo_n "(cached) " >&6 | ||
18819 | else | ||
18820 | if test -n "$CC"; then | ||
18821 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
18822 | else | ||
18823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18824 | for as_dir in $PATH | ||
18825 | do | ||
18826 | IFS=$as_save_IFS | ||
18827 | test -z "$as_dir" && as_dir=. | ||
18828 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18830 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
18831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18832 | break 2 | ||
18833 | fi | ||
18834 | done | ||
18835 | done | ||
18836 | IFS=$as_save_IFS | ||
18837 | |||
18838 | fi | ||
18839 | fi | ||
18840 | CC=$ac_cv_prog_CC | ||
18841 | if test -n "$CC"; then | ||
18842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
18843 | $as_echo "$CC" >&6; } | ||
18844 | else | ||
18845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18846 | $as_echo "no" >&6; } | ||
18847 | fi | ||
18848 | |||
18849 | |||
18850 | test -n "$CC" && break | ||
18851 | done | ||
18852 | fi | ||
18853 | if test -z "$CC"; then | ||
18854 | ac_ct_CC=$CC | ||
18855 | for ac_prog in cl.exe | ||
18856 | do | ||
18857 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
18858 | set dummy $ac_prog; ac_word=$2 | ||
18859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18860 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18861 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
18862 | $as_echo_n "(cached) " >&6 | ||
18863 | else | ||
18864 | if test -n "$ac_ct_CC"; then | ||
18865 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
18866 | else | ||
18867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18868 | for as_dir in $PATH | ||
18869 | do | ||
18870 | IFS=$as_save_IFS | ||
18871 | test -z "$as_dir" && as_dir=. | ||
18872 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18874 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
18875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18876 | break 2 | ||
18877 | fi | ||
18878 | done | ||
18879 | done | ||
18880 | IFS=$as_save_IFS | ||
18881 | |||
18882 | fi | ||
18883 | fi | ||
18884 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
18885 | if test -n "$ac_ct_CC"; then | ||
18886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
18887 | $as_echo "$ac_ct_CC" >&6; } | ||
18888 | else | ||
18889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18890 | $as_echo "no" >&6; } | ||
18891 | fi | ||
18892 | |||
18893 | |||
18894 | test -n "$ac_ct_CC" && break | ||
18895 | done | ||
18896 | |||
18897 | if test "x$ac_ct_CC" = x; then | ||
18898 | CC="" | ||
18899 | else | ||
18900 | case $cross_compiling:$ac_tool_warned in | ||
18901 | yes:) | ||
18902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
18903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
18904 | ac_tool_warned=yes ;; | ||
18905 | esac | ||
18906 | CC=$ac_ct_CC | ||
18907 | fi | ||
18908 | fi | ||
18909 | |||
18910 | fi | ||
18911 | |||
18912 | |||
18913 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
18914 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
18915 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
18916 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
18917 | |||
18918 | # Provide some information about the compiler. | ||
18919 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
18920 | set X $ac_compile | ||
18921 | ac_compiler=$2 | ||
18922 | for ac_option in --version -v -V -qversion; do | ||
18923 | { { ac_try="$ac_compiler $ac_option >&5" | ||
18924 | case "(($ac_try" in | ||
18925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18926 | *) ac_try_echo=$ac_try;; | ||
18927 | esac | ||
18928 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
18929 | $as_echo "$ac_try_echo"; } >&5 | ||
18930 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
18931 | ac_status=$? | ||
18932 | if test -s conftest.err; then | ||
18933 | sed '10a\ | ||
18934 | ... rest of stderr output deleted ... | ||
18935 | 10q' conftest.err >conftest.er1 | ||
18936 | cat conftest.er1 >&5 | ||
18937 | fi | ||
18938 | rm -f conftest.er1 conftest.err | ||
18939 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18940 | test $ac_status = 0; } | ||
18941 | done | ||
18942 | |||
18943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
18944 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
18945 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
18946 | $as_echo_n "(cached) " >&6 | ||
18947 | else | ||
18948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18949 | /* end confdefs.h. */ | ||
18950 | |||
18951 | int | ||
18952 | main () | ||
18953 | { | ||
18954 | #ifndef __GNUC__ | ||
18955 | choke me | ||
18956 | #endif | ||
18957 | |||
18958 | ; | ||
18959 | return 0; | ||
18960 | } | ||
18961 | _ACEOF | ||
18962 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18963 | ac_compiler_gnu=yes | ||
18964 | else | ||
18965 | ac_compiler_gnu=no | ||
18966 | fi | ||
18967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18968 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
18969 | |||
18970 | fi | ||
18971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
18972 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
18973 | if test $ac_compiler_gnu = yes; then | ||
18974 | GCC=yes | ||
18975 | else | ||
18976 | GCC= | ||
18977 | fi | ||
18978 | ac_test_CFLAGS=${CFLAGS+set} | ||
18979 | ac_save_CFLAGS=$CFLAGS | ||
18980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
18981 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
18982 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
18983 | $as_echo_n "(cached) " >&6 | ||
18984 | else | ||
18985 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
18986 | ac_c_werror_flag=yes | ||
18987 | ac_cv_prog_cc_g=no | ||
18988 | CFLAGS="-g" | ||
18989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18990 | /* end confdefs.h. */ | ||
18991 | |||
18992 | int | ||
18993 | main () | ||
18994 | { | ||
18995 | |||
18996 | ; | ||
18997 | return 0; | ||
18998 | } | ||
18999 | _ACEOF | ||
19000 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19001 | ac_cv_prog_cc_g=yes | ||
19002 | else | ||
19003 | CFLAGS="" | ||
19004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19005 | /* end confdefs.h. */ | ||
19006 | |||
19007 | int | ||
19008 | main () | ||
19009 | { | ||
19010 | |||
19011 | ; | ||
19012 | return 0; | ||
19013 | } | ||
19014 | _ACEOF | ||
19015 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19016 | |||
19017 | else | ||
19018 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
19019 | CFLAGS="-g" | ||
19020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19021 | /* end confdefs.h. */ | ||
19022 | |||
19023 | int | ||
19024 | main () | ||
19025 | { | ||
19026 | |||
19027 | ; | ||
19028 | return 0; | ||
19029 | } | ||
19030 | _ACEOF | ||
19031 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19032 | ac_cv_prog_cc_g=yes | ||
19033 | fi | ||
19034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19035 | fi | ||
19036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19037 | fi | ||
19038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19039 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
19040 | fi | ||
19041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
19042 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
19043 | if test "$ac_test_CFLAGS" = set; then | ||
19044 | CFLAGS=$ac_save_CFLAGS | ||
19045 | elif test $ac_cv_prog_cc_g = yes; then | ||
19046 | if test "$GCC" = yes; then | ||
19047 | CFLAGS="-g -O2" | ||
19048 | else | ||
19049 | CFLAGS="-g" | ||
19050 | fi | ||
19051 | else | ||
19052 | if test "$GCC" = yes; then | ||
19053 | CFLAGS="-O2" | ||
19054 | else | ||
19055 | CFLAGS= | ||
19056 | fi | ||
19057 | fi | ||
19058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
19059 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
19060 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
19061 | $as_echo_n "(cached) " >&6 | ||
19062 | else | ||
19063 | ac_cv_prog_cc_c89=no | ||
19064 | ac_save_CC=$CC | ||
19065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19066 | /* end confdefs.h. */ | ||
19067 | #include <stdarg.h> | ||
19068 | #include <stdio.h> | ||
19069 | #include <sys/types.h> | ||
19070 | #include <sys/stat.h> | ||
19071 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
19072 | struct buf { int x; }; | ||
19073 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
19074 | static char *e (p, i) | ||
19075 | char **p; | ||
19076 | int i; | ||
19077 | { | ||
19078 | return p[i]; | ||
19079 | } | ||
19080 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
19081 | { | ||
19082 | char *s; | ||
19083 | va_list v; | ||
19084 | va_start (v,p); | ||
19085 | s = g (p, va_arg (v,int)); | ||
19086 | va_end (v); | ||
19087 | return s; | ||
19088 | } | ||
19089 | |||
19090 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
19091 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
19092 | These don't provoke an error unfortunately, instead are silently treated | ||
19093 | as 'x'. The following induces an error, until -std is added to get | ||
19094 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
19095 | array size at least. It's necessary to write '\x00'==0 to get something | ||
19096 | that's true only with -std. */ | ||
19097 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
19098 | |||
19099 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
19100 | inside strings and character constants. */ | ||
19101 | #define FOO(x) 'x' | ||
19102 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
19103 | |||
19104 | int test (int i, double x); | ||
19105 | struct s1 {int (*f) (int a);}; | ||
19106 | struct s2 {int (*f) (double a);}; | ||
19107 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
19108 | int argc; | ||
19109 | char **argv; | ||
19110 | int | ||
19111 | main () | ||
19112 | { | ||
19113 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
19114 | ; | ||
19115 | return 0; | ||
19116 | } | ||
19117 | _ACEOF | ||
19118 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
19119 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
19120 | do | ||
19121 | CC="$ac_save_CC $ac_arg" | ||
19122 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19123 | ac_cv_prog_cc_c89=$ac_arg | ||
19124 | fi | ||
19125 | rm -f core conftest.err conftest.$ac_objext | ||
19126 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
19127 | done | ||
19128 | rm -f conftest.$ac_ext | ||
19129 | CC=$ac_save_CC | ||
19130 | |||
19131 | fi | ||
19132 | # AC_CACHE_VAL | ||
19133 | case "x$ac_cv_prog_cc_c89" in | ||
19134 | x) | ||
19135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
19136 | $as_echo "none needed" >&6; } ;; | ||
19137 | xno) | ||
19138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
19139 | $as_echo "unsupported" >&6; } ;; | ||
19140 | *) | ||
19141 | CC="$CC $ac_cv_prog_cc_c89" | ||
19142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
19143 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
19144 | esac | ||
19145 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
19146 | |||
19147 | fi | ||
19148 | |||
19149 | ac_ext=c | ||
19150 | ac_cpp='$CPP $CPPFLAGS' | ||
19151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19154 | |||
19155 | depcc="$CC" am_compiler_list= | ||
19156 | |||
19157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
19158 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
19159 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
19160 | $as_echo_n "(cached) " >&6 | ||
19161 | else | ||
19162 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
19163 | # We make a subdir and do the tests there. Otherwise we can end up | ||
19164 | # making bogus files that we don't know about and never remove. For | ||
19165 | # instance it was reported that on HP-UX the gcc test will end up | ||
19166 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
19167 | # in D'. | ||
19168 | mkdir conftest.dir | ||
19169 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
19170 | # using a relative directory. | ||
19171 | cp "$am_depcomp" conftest.dir | ||
19172 | cd conftest.dir | ||
19173 | # We will build objects and dependencies in a subdirectory because | ||
19174 | # it helps to detect inapplicable dependency modes. For instance | ||
19175 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
19176 | # side effect of compilation, but ICC will put the dependencies in | ||
19177 | # the current directory while Tru64 will put them in the object | ||
19178 | # directory. | ||
19179 | mkdir sub | ||
19180 | |||
19181 | am_cv_CC_dependencies_compiler_type=none | ||
19182 | if test "$am_compiler_list" = ""; then | ||
19183 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
19184 | fi | ||
19185 | am__universal=false | ||
19186 | case " $depcc " in #( | ||
19187 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
19188 | esac | ||
19189 | |||
19190 | for depmode in $am_compiler_list; do | ||
19191 | # Setup a source with many dependencies, because some compilers | ||
19192 | # like to wrap large dependency lists on column 80 (with \), and | ||
19193 | # we should not choose a depcomp mode which is confused by this. | ||
19194 | # | ||
19195 | # We need to recreate these files for each test, as the compiler may | ||
19196 | # overwrite some of them when testing with obscure command lines. | ||
19197 | # This happens at least with the AIX C compiler. | ||
19198 | : > sub/conftest.c | ||
19199 | for i in 1 2 3 4 5 6; do | ||
19200 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
19201 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
19202 | # Solaris 8's {/usr,}/bin/sh. | ||
19203 | touch sub/conftst$i.h | ||
19204 | done | ||
19205 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
19206 | |||
19207 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
19208 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
19209 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
19210 | # versions had trouble with output in subdirs | ||
19211 | am__obj=sub/conftest.${OBJEXT-o} | ||
19212 | am__minus_obj="-o $am__obj" | ||
19213 | case $depmode in | ||
19214 | gcc) | ||
19215 | # This depmode causes a compiler race in universal mode. | ||
19216 | test "$am__universal" = false || continue | ||
19217 | ;; | ||
19218 | nosideeffect) | ||
19219 | # after this tag, mechanisms are not by side-effect, so they'll | ||
19220 | # only be used when explicitly requested | ||
19221 | if test "x$enable_dependency_tracking" = xyes; then | ||
19222 | continue | ||
19223 | else | ||
19224 | break | ||
19225 | fi | ||
19226 | ;; | ||
19227 | msvisualcpp | msvcmsys) | ||
19228 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
19229 | # not run yet. These depmodes are late enough in the game, and | ||
19230 | # so weak that their functioning should not be impacted. | ||
19231 | am__obj=conftest.${OBJEXT-o} | ||
19232 | am__minus_obj= | ||
19233 | ;; | ||
19234 | none) break ;; | ||
19235 | esac | ||
19236 | if depmode=$depmode \ | ||
19237 | source=sub/conftest.c object=$am__obj \ | ||
19238 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
19239 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
19240 | >/dev/null 2>conftest.err && | ||
19241 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
19242 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
19243 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
19244 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
19245 | # icc doesn't choke on unknown options, it will just issue warnings | ||
19246 | # or remarks (even with -Werror). So we grep stderr for any message | ||
19247 | # that says an option was ignored or not supported. | ||
19248 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
19249 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
19250 | # The diagnosis changed in icc 8.0: | ||
19251 | # icc: Command line remark: option '-MP' not supported | ||
19252 | if (grep 'ignoring option' conftest.err || | ||
19253 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
19254 | am_cv_CC_dependencies_compiler_type=$depmode | ||
19255 | break | ||
19256 | fi | ||
19257 | fi | ||
19258 | done | ||
19259 | |||
19260 | cd .. | ||
19261 | rm -rf conftest.dir | ||
19262 | else | ||
19263 | am_cv_CC_dependencies_compiler_type=none | ||
19264 | fi | ||
19265 | |||
19266 | fi | ||
19267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
19268 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
19269 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
19270 | |||
19271 | if | ||
19272 | test "x$enable_dependency_tracking" != xno \ | ||
19273 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
19274 | am__fastdepCC_TRUE= | ||
19275 | am__fastdepCC_FALSE='#' | ||
19276 | else | ||
19277 | am__fastdepCC_TRUE='#' | ||
19278 | am__fastdepCC_FALSE= | ||
19279 | fi | ||
19280 | |||
19281 | |||
19282 | |||
19283 | have_gnu_objc=${ac_cv_objc_compiler_gnu} | ||
19284 | |||
19285 | # doxygen program for documentation building | ||
19286 | |||
19287 | |||
19288 | |||
19289 | # Check whether --enable-doc was given. | ||
19290 | if test "${enable_doc+set}" = set; then : | ||
19291 | enableval=$enable_doc; | ||
19292 | if test "x${enableval}" = "xyes" ; then | ||
19293 | efl_enable_doc="yes" | ||
19294 | else | ||
19295 | efl_enable_doc="no" | ||
19296 | fi | ||
19297 | |||
19298 | else | ||
19299 | efl_enable_doc="yes" | ||
19300 | fi | ||
19301 | |||
19302 | |||
19303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
19304 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
19305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
19306 | $as_echo "${efl_enable_doc}" >&6; } | ||
19307 | |||
19308 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
19309 | |||
19310 | |||
19311 | efl_doxygen="doxygen" | ||
19312 | |||
19313 | |||
19314 | # Check whether --with-doxygen was given. | ||
19315 | if test "${with_doxygen+set}" = set; then : | ||
19316 | withval=$with_doxygen; | ||
19317 | efl_doxygen=${withval} | ||
19318 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
19319 | set dummy ${efl_doxygen}; ac_word=$2 | ||
19320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19321 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19322 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
19323 | $as_echo_n "(cached) " >&6 | ||
19324 | else | ||
19325 | if test -n "$efl_have_doxygen"; then | ||
19326 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
19327 | else | ||
19328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19329 | for as_dir in $PATH | ||
19330 | do | ||
19331 | IFS=$as_save_IFS | ||
19332 | test -z "$as_dir" && as_dir=. | ||
19333 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19335 | ac_cv_prog_efl_have_doxygen="yes" | ||
19336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19337 | break 2 | ||
19338 | fi | ||
19339 | done | ||
19340 | done | ||
19341 | IFS=$as_save_IFS | ||
19342 | |||
19343 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
19344 | fi | ||
19345 | fi | ||
19346 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
19347 | if test -n "$efl_have_doxygen"; then | ||
19348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
19349 | $as_echo "$efl_have_doxygen" >&6; } | ||
19350 | else | ||
19351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19352 | $as_echo "no" >&6; } | ||
19353 | fi | ||
19354 | |||
19355 | |||
19356 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
19357 | echo "WARNING:" | ||
19358 | echo "The doxygen program you specified:" | ||
19359 | echo "${efl_doxygen}" | ||
19360 | echo "was not found. Please check the path and make sure " | ||
19361 | echo "the program exists and is executable." | ||
19362 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
19363 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
19364 | fi | ||
19365 | |||
19366 | else | ||
19367 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
19368 | set dummy ${efl_doxygen}; ac_word=$2 | ||
19369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19370 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19371 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
19372 | $as_echo_n "(cached) " >&6 | ||
19373 | else | ||
19374 | if test -n "$efl_have_doxygen"; then | ||
19375 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
19376 | else | ||
19377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19378 | for as_dir in $PATH | ||
19379 | do | ||
19380 | IFS=$as_save_IFS | ||
19381 | test -z "$as_dir" && as_dir=. | ||
19382 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19384 | ac_cv_prog_efl_have_doxygen="yes" | ||
19385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19386 | break 2 | ||
19387 | fi | ||
19388 | done | ||
19389 | done | ||
19390 | IFS=$as_save_IFS | ||
19391 | |||
19392 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
19393 | fi | ||
19394 | fi | ||
19395 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
19396 | if test -n "$efl_have_doxygen"; then | ||
19397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
19398 | $as_echo "$efl_have_doxygen" >&6; } | ||
19399 | else | ||
19400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19401 | $as_echo "no" >&6; } | ||
19402 | fi | ||
19403 | |||
19404 | |||
19405 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
19406 | echo "WARNING:" | ||
19407 | echo "The doxygen program was not found in your execute path." | ||
19408 | echo "You may have doxygen installed somewhere not covered by your path." | ||
19409 | echo "" | ||
19410 | echo "If this is the case make sure you have the packages installed, AND" | ||
19411 | echo "that the doxygen program is in your execute path (see your" | ||
19412 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
19413 | echo "alternatively, specify the program to use with --with-doxygen." | ||
19414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
19415 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
19416 | fi | ||
19417 | |||
19418 | fi | ||
19419 | |||
19420 | fi | ||
19421 | |||
19422 | |||
19423 | |||
19424 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
19425 | efl_enable_doc="no" | ||
19426 | fi | ||
19427 | |||
19428 | if test "x${efl_enable_doc}" = "xyes"; then | ||
19429 | EFL_BUILD_DOC_TRUE= | ||
19430 | EFL_BUILD_DOC_FALSE='#' | ||
19431 | else | ||
19432 | EFL_BUILD_DOC_TRUE='#' | ||
19433 | EFL_BUILD_DOC_FALSE= | ||
19434 | fi | ||
19435 | |||
19436 | |||
19437 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
19438 | build_doc="yes" | ||
19439 | else | ||
19440 | build_doc="no" | ||
19441 | fi | ||
19442 | |||
19443 | |||
19444 | |||
19445 | |||
19446 | |||
19447 | |||
19448 | CFLAGS_save="${CFLAGS}" | ||
19449 | CFLAGS="${CFLAGS} -Wall" | ||
19450 | |||
19451 | ac_ext=c | ||
19452 | ac_cpp='$CPP $CPPFLAGS' | ||
19453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19456 | |||
19457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wall" >&5 | ||
19458 | $as_echo_n "checking whether the compiler supports -Wall... " >&6; } | ||
19459 | |||
19460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19461 | /* end confdefs.h. */ | ||
19462 | |||
19463 | int | ||
19464 | main () | ||
19465 | { | ||
19466 | |||
19467 | ; | ||
19468 | return 0; | ||
19469 | } | ||
19470 | _ACEOF | ||
19471 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19472 | have_flag="yes" | ||
19473 | else | ||
19474 | have_flag="no" | ||
19475 | fi | ||
19476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
19478 | $as_echo "${have_flag}" >&6; } | ||
19479 | |||
19480 | if test "x${have_flag}" = "xno" ; then | ||
19481 | CFLAGS="${CFLAGS_save}" | ||
19482 | fi | ||
19483 | ac_ext=c | ||
19484 | ac_cpp='$CPP $CPPFLAGS' | ||
19485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19488 | |||
19489 | |||
19490 | |||
19491 | |||
19492 | |||
19493 | CFLAGS_save="${CFLAGS}" | ||
19494 | CFLAGS="${CFLAGS} -W" | ||
19495 | |||
19496 | ac_ext=c | ||
19497 | ac_cpp='$CPP $CPPFLAGS' | ||
19498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19501 | |||
19502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -W" >&5 | ||
19503 | $as_echo_n "checking whether the compiler supports -W... " >&6; } | ||
19504 | |||
19505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19506 | /* end confdefs.h. */ | ||
19507 | |||
19508 | int | ||
19509 | main () | ||
19510 | { | ||
19511 | |||
19512 | ; | ||
19513 | return 0; | ||
19514 | } | ||
19515 | _ACEOF | ||
19516 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19517 | have_flag="yes" | ||
19518 | else | ||
19519 | have_flag="no" | ||
19520 | fi | ||
19521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
19523 | $as_echo "${have_flag}" >&6; } | ||
19524 | |||
19525 | if test "x${have_flag}" = "xno" ; then | ||
19526 | CFLAGS="${CFLAGS_save}" | ||
19527 | fi | ||
19528 | ac_ext=c | ||
19529 | ac_cpp='$CPP $CPPFLAGS' | ||
19530 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19531 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19532 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19533 | |||
19534 | |||
19535 | |||
19536 | |||
19537 | |||
19538 | # The first call to PKG_CHECK_MODULES is done conditionally, | ||
19539 | # so we should include this here: | ||
19540 | |||
19541 | |||
19542 | |||
19543 | |||
19544 | |||
19545 | |||
19546 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
19547 | if test -n "$ac_tool_prefix"; then | ||
19548 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
19549 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
19550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19551 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19552 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
19553 | $as_echo_n "(cached) " >&6 | ||
19554 | else | ||
19555 | case $PKG_CONFIG in | ||
19556 | [\\/]* | ?:[\\/]*) | ||
19557 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
19558 | ;; | ||
19559 | *) | ||
19560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19561 | for as_dir in $PATH | ||
19562 | do | ||
19563 | IFS=$as_save_IFS | ||
19564 | test -z "$as_dir" && as_dir=. | ||
19565 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19566 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19567 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
19568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19569 | break 2 | ||
19570 | fi | ||
19571 | done | ||
19572 | done | ||
19573 | IFS=$as_save_IFS | ||
19574 | |||
19575 | ;; | ||
19576 | esac | ||
19577 | fi | ||
19578 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
19579 | if test -n "$PKG_CONFIG"; then | ||
19580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
19581 | $as_echo "$PKG_CONFIG" >&6; } | ||
19582 | else | ||
19583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19584 | $as_echo "no" >&6; } | ||
19585 | fi | ||
19586 | |||
19587 | |||
19588 | fi | ||
19589 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
19590 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
19591 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
19592 | set dummy pkg-config; ac_word=$2 | ||
19593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
19594 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19595 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
19596 | $as_echo_n "(cached) " >&6 | ||
19597 | else | ||
19598 | case $ac_pt_PKG_CONFIG in | ||
19599 | [\\/]* | ?:[\\/]*) | ||
19600 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
19601 | ;; | ||
19602 | *) | ||
19603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19604 | for as_dir in $PATH | ||
19605 | do | ||
19606 | IFS=$as_save_IFS | ||
19607 | test -z "$as_dir" && as_dir=. | ||
19608 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19610 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
19611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19612 | break 2 | ||
19613 | fi | ||
19614 | done | ||
19615 | done | ||
19616 | IFS=$as_save_IFS | ||
19617 | |||
19618 | ;; | ||
19619 | esac | ||
19620 | fi | ||
19621 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
19622 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
19623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
19624 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
19625 | else | ||
19626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19627 | $as_echo "no" >&6; } | ||
19628 | fi | ||
19629 | |||
19630 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
19631 | PKG_CONFIG="" | ||
19632 | else | ||
19633 | case $cross_compiling:$ac_tool_warned in | ||
19634 | yes:) | ||
19635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
19636 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
19637 | ac_tool_warned=yes ;; | ||
19638 | esac | ||
19639 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
19640 | fi | ||
19641 | else | ||
19642 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
19643 | fi | ||
19644 | |||
19645 | fi | ||
19646 | if test -n "$PKG_CONFIG"; then | ||
19647 | _pkg_min_version=0.9.0 | ||
19648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
19649 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
19650 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
19651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19652 | $as_echo "yes" >&6; } | ||
19653 | else | ||
19654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19655 | $as_echo "no" >&6; } | ||
19656 | PKG_CONFIG="" | ||
19657 | fi | ||
19658 | fi | ||
19659 | |||
19660 | # Check whether pkg-config supports Requires.private | ||
19661 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
19662 | pkgconfig_requires_private="Requires.private" | ||
19663 | else | ||
19664 | pkgconfig_requires_private="Requires" | ||
19665 | fi | ||
19666 | |||
19667 | |||
19668 | ### Checks for some build time option | ||
19669 | have_backtrace="no" | ||
19670 | for ac_func in backtrace | ||
19671 | do : | ||
19672 | ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" | ||
19673 | if test "x$ac_cv_func_backtrace" = x""yes; then : | ||
19674 | cat >>confdefs.h <<_ACEOF | ||
19675 | #define HAVE_BACKTRACE 1 | ||
19676 | _ACEOF | ||
19677 | have_backtrace="yes" | ||
19678 | fi | ||
19679 | done | ||
19680 | |||
19681 | |||
19682 | want_ecore_timer_dump="no" | ||
19683 | |||
19684 | # Check whether --enable-ecore-timer-dump was given. | ||
19685 | if test "${enable_ecore_timer_dump+set}" = set; then : | ||
19686 | enableval=$enable_ecore_timer_dump; want_ecore_timer_dump=$enableval | ||
19687 | fi | ||
19688 | |||
19689 | |||
19690 | if test "x$want_ecore_timer_dump" = "xyes" -a "x$have_backtrace" = "xyes"; then | ||
19691 | |||
19692 | $as_echo "#define WANT_ECORE_TIMER_DUMP 1" >>confdefs.h | ||
19693 | |||
19694 | fi | ||
19695 | |||
19696 | ### Checks for libraries | ||
19697 | |||
19698 | # Evil library for compilation on Windows | ||
19699 | |||
19700 | case "$host_os" in | ||
19701 | mingw*) | ||
19702 | |||
19703 | pkg_failed=no | ||
19704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
19705 | $as_echo_n "checking for EVIL... " >&6; } | ||
19706 | |||
19707 | if test -n "$EVIL_CFLAGS"; then | ||
19708 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
19709 | elif test -n "$PKG_CONFIG"; then | ||
19710 | if test -n "$PKG_CONFIG" && \ | ||
19711 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
19712 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
19713 | ac_status=$? | ||
19714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19715 | test $ac_status = 0; }; then | ||
19716 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
19717 | else | ||
19718 | pkg_failed=yes | ||
19719 | fi | ||
19720 | else | ||
19721 | pkg_failed=untried | ||
19722 | fi | ||
19723 | if test -n "$EVIL_LIBS"; then | ||
19724 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
19725 | elif test -n "$PKG_CONFIG"; then | ||
19726 | if test -n "$PKG_CONFIG" && \ | ||
19727 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
19728 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
19729 | ac_status=$? | ||
19730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19731 | test $ac_status = 0; }; then | ||
19732 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
19733 | else | ||
19734 | pkg_failed=yes | ||
19735 | fi | ||
19736 | else | ||
19737 | pkg_failed=untried | ||
19738 | fi | ||
19739 | |||
19740 | |||
19741 | |||
19742 | if test $pkg_failed = yes; then | ||
19743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19744 | $as_echo "no" >&6; } | ||
19745 | |||
19746 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
19747 | _pkg_short_errors_supported=yes | ||
19748 | else | ||
19749 | _pkg_short_errors_supported=no | ||
19750 | fi | ||
19751 | if test $_pkg_short_errors_supported = yes; then | ||
19752 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
19753 | else | ||
19754 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
19755 | fi | ||
19756 | # Put the nasty error message in config.log where it belongs | ||
19757 | echo "$EVIL_PKG_ERRORS" >&5 | ||
19758 | |||
19759 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
19760 | |||
19761 | $EVIL_PKG_ERRORS | ||
19762 | |||
19763 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
19764 | installed software in a non-standard prefix. | ||
19765 | |||
19766 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
19767 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
19768 | See the pkg-config man page for more details." "$LINENO" 5 | ||
19769 | elif test $pkg_failed = untried; then | ||
19770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19771 | $as_echo "no" >&6; } | ||
19772 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
19773 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
19774 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
19775 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
19776 | path to pkg-config. | ||
19777 | |||
19778 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
19779 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
19780 | See the pkg-config man page for more details. | ||
19781 | |||
19782 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
19783 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
19784 | else | ||
19785 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
19786 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
19787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19788 | $as_echo "yes" >&6; } | ||
19789 | |||
19790 | fi | ||
19791 | |||
19792 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
19793 | |||
19794 | requirements_ecore="evil ${requirements_ecore}" | ||
19795 | requirements_ecore_evas="evil ${requirements_ecore_evas}" | ||
19796 | requirements_ecore_file="evil ${requirements_ecore_file}" | ||
19797 | requirements_ecore_imf="evil ${requirements_ecore_imf}" | ||
19798 | requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}" | ||
19799 | EFL_ECORE_BUILD="-DEFL_ECORE_BUILD" | ||
19800 | EFL_ECORE_CON_BUILD="-DEFL_ECORE_CON_BUILD" | ||
19801 | EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD" | ||
19802 | EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD" | ||
19803 | EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD" | ||
19804 | EFL_ECORE_IMF_EVAS_BUILD="-DEFL_ECORE_IMF_EVAS_BUILD" | ||
19805 | EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD" | ||
19806 | EFL_ECORE_INPUT_EVAS_BUILD="-DEFL_ECORE_INPUT_EVAS_BUILD" | ||
19807 | EFL_ECORE_IPC_BUILD="-DEFL_ECORE_IPC_BUILD" | ||
19808 | ;; | ||
19809 | esac | ||
19810 | |||
19811 | have_win32="" | ||
19812 | have_wince="" | ||
19813 | case "$host_os" in | ||
19814 | mingw32ce* | cegcc*) | ||
19815 | EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD" | ||
19816 | requirements_ecore_wince="evil ${requirements_ecore_wince}" | ||
19817 | have_wince="yes" | ||
19818 | ;; | ||
19819 | mingw*) | ||
19820 | EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD" | ||
19821 | EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD" | ||
19822 | requirements_ecore_win32="evil ${requirements_ecore_win32}" | ||
19823 | requirements_ecore_sdl="evil ${requirements_ecore_sdl}" | ||
19824 | have_win32="yes" | ||
19825 | ;; | ||
19826 | esac | ||
19827 | |||
19828 | have_ps3="" | ||
19829 | case "$host_vendor" in | ||
19830 | ps3*) | ||
19831 | have_ps3="yes" | ||
19832 | |||
19833 | pkg_failed=no | ||
19834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESCAPE" >&5 | ||
19835 | $as_echo_n "checking for ESCAPE... " >&6; } | ||
19836 | |||
19837 | if test -n "$ESCAPE_CFLAGS"; then | ||
19838 | pkg_cv_ESCAPE_CFLAGS="$ESCAPE_CFLAGS" | ||
19839 | elif test -n "$PKG_CONFIG"; then | ||
19840 | if test -n "$PKG_CONFIG" && \ | ||
19841 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"escape\""; } >&5 | ||
19842 | ($PKG_CONFIG --exists --print-errors "escape") 2>&5 | ||
19843 | ac_status=$? | ||
19844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19845 | test $ac_status = 0; }; then | ||
19846 | pkg_cv_ESCAPE_CFLAGS=`$PKG_CONFIG --cflags "escape" 2>/dev/null` | ||
19847 | else | ||
19848 | pkg_failed=yes | ||
19849 | fi | ||
19850 | else | ||
19851 | pkg_failed=untried | ||
19852 | fi | ||
19853 | if test -n "$ESCAPE_LIBS"; then | ||
19854 | pkg_cv_ESCAPE_LIBS="$ESCAPE_LIBS" | ||
19855 | elif test -n "$PKG_CONFIG"; then | ||
19856 | if test -n "$PKG_CONFIG" && \ | ||
19857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"escape\""; } >&5 | ||
19858 | ($PKG_CONFIG --exists --print-errors "escape") 2>&5 | ||
19859 | ac_status=$? | ||
19860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19861 | test $ac_status = 0; }; then | ||
19862 | pkg_cv_ESCAPE_LIBS=`$PKG_CONFIG --libs "escape" 2>/dev/null` | ||
19863 | else | ||
19864 | pkg_failed=yes | ||
19865 | fi | ||
19866 | else | ||
19867 | pkg_failed=untried | ||
19868 | fi | ||
19869 | |||
19870 | |||
19871 | |||
19872 | if test $pkg_failed = yes; then | ||
19873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19874 | $as_echo "no" >&6; } | ||
19875 | |||
19876 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
19877 | _pkg_short_errors_supported=yes | ||
19878 | else | ||
19879 | _pkg_short_errors_supported=no | ||
19880 | fi | ||
19881 | if test $_pkg_short_errors_supported = yes; then | ||
19882 | ESCAPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "escape" 2>&1` | ||
19883 | else | ||
19884 | ESCAPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "escape" 2>&1` | ||
19885 | fi | ||
19886 | # Put the nasty error message in config.log where it belongs | ||
19887 | echo "$ESCAPE_PKG_ERRORS" >&5 | ||
19888 | |||
19889 | as_fn_error $? "Package requirements (escape) were not met: | ||
19890 | |||
19891 | $ESCAPE_PKG_ERRORS | ||
19892 | |||
19893 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
19894 | installed software in a non-standard prefix. | ||
19895 | |||
19896 | Alternatively, you may set the environment variables ESCAPE_CFLAGS | ||
19897 | and ESCAPE_LIBS to avoid the need to call pkg-config. | ||
19898 | See the pkg-config man page for more details." "$LINENO" 5 | ||
19899 | elif test $pkg_failed = untried; then | ||
19900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19901 | $as_echo "no" >&6; } | ||
19902 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
19903 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
19904 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
19905 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
19906 | path to pkg-config. | ||
19907 | |||
19908 | Alternatively, you may set the environment variables ESCAPE_CFLAGS | ||
19909 | and ESCAPE_LIBS to avoid the need to call pkg-config. | ||
19910 | See the pkg-config man page for more details. | ||
19911 | |||
19912 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
19913 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
19914 | else | ||
19915 | ESCAPE_CFLAGS=$pkg_cv_ESCAPE_CFLAGS | ||
19916 | ESCAPE_LIBS=$pkg_cv_ESCAPE_LIBS | ||
19917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19918 | $as_echo "yes" >&6; } | ||
19919 | |||
19920 | fi | ||
19921 | CFLAGS="$CFLAGS $ESCAPE_CFLAGS" | ||
19922 | |||
19923 | $as_echo "#define HAVE_ESCAPE 1" >>confdefs.h | ||
19924 | |||
19925 | EFL_ECORE_PSL1GHT_BUILD="-DEFL_ECORE_PSL1GHT_BUILD" | ||
19926 | requirements_ecore="escape ${requirements_ecore}" | ||
19927 | requirements_ecore_evas="escape ${requirements_ecore_evas}" | ||
19928 | requirements_ecore_file="escape ${requirements_ecore_file}" | ||
19929 | requirements_ecore_imf="escape ${requirements_ecore_imf}" | ||
19930 | requirements_ecore_imf_evas="escape ${requirements_ecore_imf_evas}" | ||
19931 | requirements_ecore_sdl="escape ${requirements_ecore_sdl}" | ||
19932 | want_ecore_psl1ght="yes" | ||
19933 | want_ecore_evas_psl1ght="yes" | ||
19934 | ;; | ||
19935 | esac | ||
19936 | |||
19937 | |||
19938 | ### Checks for portability layer | ||
19939 | |||
19940 | |||
19941 | pkg_failed=no | ||
19942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXOTIC" >&5 | ||
19943 | $as_echo_n "checking for EXOTIC... " >&6; } | ||
19944 | |||
19945 | if test -n "$EXOTIC_CFLAGS"; then | ||
19946 | pkg_cv_EXOTIC_CFLAGS="$EXOTIC_CFLAGS" | ||
19947 | elif test -n "$PKG_CONFIG"; then | ||
19948 | if test -n "$PKG_CONFIG" && \ | ||
19949 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
19950 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
19951 | ac_status=$? | ||
19952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19953 | test $ac_status = 0; }; then | ||
19954 | pkg_cv_EXOTIC_CFLAGS=`$PKG_CONFIG --cflags "exotic" 2>/dev/null` | ||
19955 | else | ||
19956 | pkg_failed=yes | ||
19957 | fi | ||
19958 | else | ||
19959 | pkg_failed=untried | ||
19960 | fi | ||
19961 | if test -n "$EXOTIC_LIBS"; then | ||
19962 | pkg_cv_EXOTIC_LIBS="$EXOTIC_LIBS" | ||
19963 | elif test -n "$PKG_CONFIG"; then | ||
19964 | if test -n "$PKG_CONFIG" && \ | ||
19965 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
19966 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
19967 | ac_status=$? | ||
19968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
19969 | test $ac_status = 0; }; then | ||
19970 | pkg_cv_EXOTIC_LIBS=`$PKG_CONFIG --libs "exotic" 2>/dev/null` | ||
19971 | else | ||
19972 | pkg_failed=yes | ||
19973 | fi | ||
19974 | else | ||
19975 | pkg_failed=untried | ||
19976 | fi | ||
19977 | |||
19978 | |||
19979 | |||
19980 | if test $pkg_failed = yes; then | ||
19981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19982 | $as_echo "no" >&6; } | ||
19983 | |||
19984 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
19985 | _pkg_short_errors_supported=yes | ||
19986 | else | ||
19987 | _pkg_short_errors_supported=no | ||
19988 | fi | ||
19989 | if test $_pkg_short_errors_supported = yes; then | ||
19990 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "exotic" 2>&1` | ||
19991 | else | ||
19992 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --print-errors "exotic" 2>&1` | ||
19993 | fi | ||
19994 | # Put the nasty error message in config.log where it belongs | ||
19995 | echo "$EXOTIC_PKG_ERRORS" >&5 | ||
19996 | |||
19997 | enable_exotic="no" | ||
19998 | elif test $pkg_failed = untried; then | ||
19999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20000 | $as_echo "no" >&6; } | ||
20001 | enable_exotic="no" | ||
20002 | else | ||
20003 | EXOTIC_CFLAGS=$pkg_cv_EXOTIC_CFLAGS | ||
20004 | EXOTIC_LIBS=$pkg_cv_EXOTIC_LIBS | ||
20005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20006 | $as_echo "yes" >&6; } | ||
20007 | enable_exotic="yes" | ||
20008 | fi | ||
20009 | |||
20010 | if test "x${enable_exotic}" = "xyes"; then | ||
20011 | requirements_ecore="exotic ${requirements_ecore}" | ||
20012 | |||
20013 | |||
20014 | $as_echo "#define HAVE_EXOTIC 1" >>confdefs.h | ||
20015 | |||
20016 | fi | ||
20017 | if test "x${enable_exotic}" = "xyes"; then | ||
20018 | ECORE_HAVE_EXOTIC_TRUE= | ||
20019 | ECORE_HAVE_EXOTIC_FALSE='#' | ||
20020 | else | ||
20021 | ECORE_HAVE_EXOTIC_TRUE='#' | ||
20022 | ECORE_HAVE_EXOTIC_FALSE= | ||
20023 | fi | ||
20024 | |||
20025 | |||
20026 | |||
20027 | |||
20028 | |||
20029 | |||
20030 | |||
20031 | |||
20032 | |||
20033 | |||
20034 | |||
20035 | |||
20036 | |||
20037 | |||
20038 | |||
20039 | |||
20040 | if test "x${have_wince}" = "xyes"; then | ||
20041 | ECORE_HAVE_WINCE_TRUE= | ||
20042 | ECORE_HAVE_WINCE_FALSE='#' | ||
20043 | else | ||
20044 | ECORE_HAVE_WINCE_TRUE='#' | ||
20045 | ECORE_HAVE_WINCE_FALSE= | ||
20046 | fi | ||
20047 | |||
20048 | if test "x${have_win32}" = "xyes"; then | ||
20049 | ECORE_HAVE_WIN32_TRUE= | ||
20050 | ECORE_HAVE_WIN32_FALSE='#' | ||
20051 | else | ||
20052 | ECORE_HAVE_WIN32_TRUE='#' | ||
20053 | ECORE_HAVE_WIN32_FALSE= | ||
20054 | fi | ||
20055 | |||
20056 | if test "x${have_ps3}" = "xyes"; then | ||
20057 | ECORE_HAVE_PS3_TRUE= | ||
20058 | ECORE_HAVE_PS3_FALSE='#' | ||
20059 | else | ||
20060 | ECORE_HAVE_PS3_TRUE='#' | ||
20061 | ECORE_HAVE_PS3_FALSE= | ||
20062 | fi | ||
20063 | |||
20064 | |||
20065 | WIN32_LIBS="" | ||
20066 | case "$host_os" in | ||
20067 | mingw32ce* | cegcc*) | ||
20068 | WIN32_LIBS="-lws2" | ||
20069 | dlopen_libs="-ldl" | ||
20070 | ;; | ||
20071 | mingw*) | ||
20072 | WIN32_LIBS="-lws2_32" | ||
20073 | dlopen_libs="-ldl" | ||
20074 | ;; | ||
20075 | *) | ||
20076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 | ||
20077 | $as_echo_n "checking for dlopen in -lc... " >&6; } | ||
20078 | if test "${ac_cv_lib_c_dlopen+set}" = set; then : | ||
20079 | $as_echo_n "(cached) " >&6 | ||
20080 | else | ||
20081 | ac_check_lib_save_LIBS=$LIBS | ||
20082 | LIBS="-lc $LIBS" | ||
20083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20084 | /* end confdefs.h. */ | ||
20085 | |||
20086 | /* Override any GCC internal prototype to avoid an error. | ||
20087 | Use char because int might match the return type of a GCC | ||
20088 | builtin and then its argument prototype would still apply. */ | ||
20089 | #ifdef __cplusplus | ||
20090 | extern "C" | ||
20091 | #endif | ||
20092 | char dlopen (); | ||
20093 | int | ||
20094 | main () | ||
20095 | { | ||
20096 | return dlopen (); | ||
20097 | ; | ||
20098 | return 0; | ||
20099 | } | ||
20100 | _ACEOF | ||
20101 | if ac_fn_c_try_link "$LINENO"; then : | ||
20102 | ac_cv_lib_c_dlopen=yes | ||
20103 | else | ||
20104 | ac_cv_lib_c_dlopen=no | ||
20105 | fi | ||
20106 | rm -f core conftest.err conftest.$ac_objext \ | ||
20107 | conftest$ac_exeext conftest.$ac_ext | ||
20108 | LIBS=$ac_check_lib_save_LIBS | ||
20109 | fi | ||
20110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 | ||
20111 | $as_echo "$ac_cv_lib_c_dlopen" >&6; } | ||
20112 | if test "x$ac_cv_lib_c_dlopen" = x""yes; then : | ||
20113 | cat >>confdefs.h <<_ACEOF | ||
20114 | #define HAVE_LIBC 1 | ||
20115 | _ACEOF | ||
20116 | |||
20117 | LIBS="-lc $LIBS" | ||
20118 | |||
20119 | else | ||
20120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
20121 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
20122 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
20123 | $as_echo_n "(cached) " >&6 | ||
20124 | else | ||
20125 | ac_check_lib_save_LIBS=$LIBS | ||
20126 | LIBS="-ldl $LIBS" | ||
20127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20128 | /* end confdefs.h. */ | ||
20129 | |||
20130 | /* Override any GCC internal prototype to avoid an error. | ||
20131 | Use char because int might match the return type of a GCC | ||
20132 | builtin and then its argument prototype would still apply. */ | ||
20133 | #ifdef __cplusplus | ||
20134 | extern "C" | ||
20135 | #endif | ||
20136 | char dlopen (); | ||
20137 | int | ||
20138 | main () | ||
20139 | { | ||
20140 | return dlopen (); | ||
20141 | ; | ||
20142 | return 0; | ||
20143 | } | ||
20144 | _ACEOF | ||
20145 | if ac_fn_c_try_link "$LINENO"; then : | ||
20146 | ac_cv_lib_dl_dlopen=yes | ||
20147 | else | ||
20148 | ac_cv_lib_dl_dlopen=no | ||
20149 | fi | ||
20150 | rm -f core conftest.err conftest.$ac_objext \ | ||
20151 | conftest$ac_exeext conftest.$ac_ext | ||
20152 | LIBS=$ac_check_lib_save_LIBS | ||
20153 | fi | ||
20154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
20155 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
20156 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
20157 | dlopen_libs=-ldl | ||
20158 | fi | ||
20159 | |||
20160 | |||
20161 | fi | ||
20162 | |||
20163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5 | ||
20164 | $as_echo_n "checking for clock_gettime in -lc... " >&6; } | ||
20165 | if test "${ac_cv_lib_c_clock_gettime+set}" = set; then : | ||
20166 | $as_echo_n "(cached) " >&6 | ||
20167 | else | ||
20168 | ac_check_lib_save_LIBS=$LIBS | ||
20169 | LIBS="-lc $LIBS" | ||
20170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20171 | /* end confdefs.h. */ | ||
20172 | |||
20173 | /* Override any GCC internal prototype to avoid an error. | ||
20174 | Use char because int might match the return type of a GCC | ||
20175 | builtin and then its argument prototype would still apply. */ | ||
20176 | #ifdef __cplusplus | ||
20177 | extern "C" | ||
20178 | #endif | ||
20179 | char clock_gettime (); | ||
20180 | int | ||
20181 | main () | ||
20182 | { | ||
20183 | return clock_gettime (); | ||
20184 | ; | ||
20185 | return 0; | ||
20186 | } | ||
20187 | _ACEOF | ||
20188 | if ac_fn_c_try_link "$LINENO"; then : | ||
20189 | ac_cv_lib_c_clock_gettime=yes | ||
20190 | else | ||
20191 | ac_cv_lib_c_clock_gettime=no | ||
20192 | fi | ||
20193 | rm -f core conftest.err conftest.$ac_objext \ | ||
20194 | conftest$ac_exeext conftest.$ac_ext | ||
20195 | LIBS=$ac_check_lib_save_LIBS | ||
20196 | fi | ||
20197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5 | ||
20198 | $as_echo "$ac_cv_lib_c_clock_gettime" >&6; } | ||
20199 | if test "x$ac_cv_lib_c_clock_gettime" = x""yes; then : | ||
20200 | |||
20201 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
20202 | |||
20203 | else | ||
20204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | ||
20205 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | ||
20206 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | ||
20207 | $as_echo_n "(cached) " >&6 | ||
20208 | else | ||
20209 | ac_check_lib_save_LIBS=$LIBS | ||
20210 | LIBS="-lrt $LIBS" | ||
20211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20212 | /* end confdefs.h. */ | ||
20213 | |||
20214 | /* Override any GCC internal prototype to avoid an error. | ||
20215 | Use char because int might match the return type of a GCC | ||
20216 | builtin and then its argument prototype would still apply. */ | ||
20217 | #ifdef __cplusplus | ||
20218 | extern "C" | ||
20219 | #endif | ||
20220 | char clock_gettime (); | ||
20221 | int | ||
20222 | main () | ||
20223 | { | ||
20224 | return clock_gettime (); | ||
20225 | ; | ||
20226 | return 0; | ||
20227 | } | ||
20228 | _ACEOF | ||
20229 | if ac_fn_c_try_link "$LINENO"; then : | ||
20230 | ac_cv_lib_rt_clock_gettime=yes | ||
20231 | else | ||
20232 | ac_cv_lib_rt_clock_gettime=no | ||
20233 | fi | ||
20234 | rm -f core conftest.err conftest.$ac_objext \ | ||
20235 | conftest$ac_exeext conftest.$ac_ext | ||
20236 | LIBS=$ac_check_lib_save_LIBS | ||
20237 | fi | ||
20238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | ||
20239 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | ||
20240 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | ||
20241 | |||
20242 | rt_libs=-lrt | ||
20243 | |||
20244 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
20245 | |||
20246 | |||
20247 | fi | ||
20248 | |||
20249 | |||
20250 | fi | ||
20251 | |||
20252 | ;; | ||
20253 | esac | ||
20254 | |||
20255 | |||
20256 | |||
20257 | |||
20258 | # Eina library | ||
20259 | |||
20260 | |||
20261 | pkg_failed=no | ||
20262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EINA" >&5 | ||
20263 | $as_echo_n "checking for EINA... " >&6; } | ||
20264 | |||
20265 | if test -n "$EINA_CFLAGS"; then | ||
20266 | pkg_cv_EINA_CFLAGS="$EINA_CFLAGS" | ||
20267 | elif test -n "$PKG_CONFIG"; then | ||
20268 | if test -n "$PKG_CONFIG" && \ | ||
20269 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.2.0\""; } >&5 | ||
20270 | ($PKG_CONFIG --exists --print-errors "eina >= 1.2.0") 2>&5 | ||
20271 | ac_status=$? | ||
20272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20273 | test $ac_status = 0; }; then | ||
20274 | pkg_cv_EINA_CFLAGS=`$PKG_CONFIG --cflags "eina >= 1.2.0" 2>/dev/null` | ||
20275 | else | ||
20276 | pkg_failed=yes | ||
20277 | fi | ||
20278 | else | ||
20279 | pkg_failed=untried | ||
20280 | fi | ||
20281 | if test -n "$EINA_LIBS"; then | ||
20282 | pkg_cv_EINA_LIBS="$EINA_LIBS" | ||
20283 | elif test -n "$PKG_CONFIG"; then | ||
20284 | if test -n "$PKG_CONFIG" && \ | ||
20285 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.2.0\""; } >&5 | ||
20286 | ($PKG_CONFIG --exists --print-errors "eina >= 1.2.0") 2>&5 | ||
20287 | ac_status=$? | ||
20288 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20289 | test $ac_status = 0; }; then | ||
20290 | pkg_cv_EINA_LIBS=`$PKG_CONFIG --libs "eina >= 1.2.0" 2>/dev/null` | ||
20291 | else | ||
20292 | pkg_failed=yes | ||
20293 | fi | ||
20294 | else | ||
20295 | pkg_failed=untried | ||
20296 | fi | ||
20297 | |||
20298 | |||
20299 | |||
20300 | if test $pkg_failed = yes; then | ||
20301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20302 | $as_echo "no" >&6; } | ||
20303 | |||
20304 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20305 | _pkg_short_errors_supported=yes | ||
20306 | else | ||
20307 | _pkg_short_errors_supported=no | ||
20308 | fi | ||
20309 | if test $_pkg_short_errors_supported = yes; then | ||
20310 | EINA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eina >= 1.2.0" 2>&1` | ||
20311 | else | ||
20312 | EINA_PKG_ERRORS=`$PKG_CONFIG --print-errors "eina >= 1.2.0" 2>&1` | ||
20313 | fi | ||
20314 | # Put the nasty error message in config.log where it belongs | ||
20315 | echo "$EINA_PKG_ERRORS" >&5 | ||
20316 | |||
20317 | as_fn_error $? "Package requirements (eina >= 1.2.0) were not met: | ||
20318 | |||
20319 | $EINA_PKG_ERRORS | ||
20320 | |||
20321 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
20322 | installed software in a non-standard prefix. | ||
20323 | |||
20324 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
20325 | and EINA_LIBS to avoid the need to call pkg-config. | ||
20326 | See the pkg-config man page for more details." "$LINENO" 5 | ||
20327 | elif test $pkg_failed = untried; then | ||
20328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20329 | $as_echo "no" >&6; } | ||
20330 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
20331 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
20332 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
20333 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
20334 | path to pkg-config. | ||
20335 | |||
20336 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
20337 | and EINA_LIBS to avoid the need to call pkg-config. | ||
20338 | See the pkg-config man page for more details. | ||
20339 | |||
20340 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
20341 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
20342 | else | ||
20343 | EINA_CFLAGS=$pkg_cv_EINA_CFLAGS | ||
20344 | EINA_LIBS=$pkg_cv_EINA_LIBS | ||
20345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20346 | $as_echo "yes" >&6; } | ||
20347 | |||
20348 | fi | ||
20349 | #FIXME check all the requirements when the eina move will be finished | ||
20350 | requirements_ecore="eina >= 1.2.0 ${requirements_ecore}" | ||
20351 | requirements_ecore_con="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_con}" | ||
20352 | #requirements_ecore_config="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_config}" | ||
20353 | requirements_ecore_directfb="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_directfb}" | ||
20354 | requirements_ecore_evas="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_evas}" | ||
20355 | requirements_ecore_fb="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_fb}" | ||
20356 | requirements_ecore_file="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_file}" | ||
20357 | requirements_ecore_imf="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_imf}" | ||
20358 | requirements_ecore_imf_evas="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_imf_evas}" | ||
20359 | requirements_ecore_input="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_input}" | ||
20360 | requirements_ecore_input_evas="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_input_evas}" | ||
20361 | requirements_ecore_ipc="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_ipc}" | ||
20362 | requirements_ecore_cocoa="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_cocoa}" | ||
20363 | requirements_ecore_sdl="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_sdl}" | ||
20364 | requirements_ecore_psl1ght="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_sdl}" | ||
20365 | requirements_ecore_win32="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_win32}" | ||
20366 | requirements_ecore_wince="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_wince}" | ||
20367 | requirements_ecore_x="ecore >= 1.2.0 eina >= 1.2.0 ${requirements_ecore_x}" | ||
20368 | |||
20369 | |||
20370 | # glib support (main loop integration) | ||
20371 | # Check whether --enable-glib was given. | ||
20372 | if test "${enable_glib+set}" = set; then : | ||
20373 | enableval=$enable_glib; want_glib=$enableval | ||
20374 | fi | ||
20375 | |||
20376 | |||
20377 | if test "x$want_glib" != "xno"; then | ||
20378 | |||
20379 | pkg_failed=no | ||
20380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 | ||
20381 | $as_echo_n "checking for GLIB... " >&6; } | ||
20382 | |||
20383 | if test -n "$GLIB_CFLAGS"; then | ||
20384 | pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" | ||
20385 | elif test -n "$PKG_CONFIG"; then | ||
20386 | if test -n "$PKG_CONFIG" && \ | ||
20387 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 | ||
20388 | ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 | ||
20389 | ac_status=$? | ||
20390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20391 | test $ac_status = 0; }; then | ||
20392 | pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null` | ||
20393 | else | ||
20394 | pkg_failed=yes | ||
20395 | fi | ||
20396 | else | ||
20397 | pkg_failed=untried | ||
20398 | fi | ||
20399 | if test -n "$GLIB_LIBS"; then | ||
20400 | pkg_cv_GLIB_LIBS="$GLIB_LIBS" | ||
20401 | elif test -n "$PKG_CONFIG"; then | ||
20402 | if test -n "$PKG_CONFIG" && \ | ||
20403 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 | ||
20404 | ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 | ||
20405 | ac_status=$? | ||
20406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20407 | test $ac_status = 0; }; then | ||
20408 | pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null` | ||
20409 | else | ||
20410 | pkg_failed=yes | ||
20411 | fi | ||
20412 | else | ||
20413 | pkg_failed=untried | ||
20414 | fi | ||
20415 | |||
20416 | |||
20417 | |||
20418 | if test $pkg_failed = yes; then | ||
20419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20420 | $as_echo "no" >&6; } | ||
20421 | |||
20422 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20423 | _pkg_short_errors_supported=yes | ||
20424 | else | ||
20425 | _pkg_short_errors_supported=no | ||
20426 | fi | ||
20427 | if test $_pkg_short_errors_supported = yes; then | ||
20428 | GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1` | ||
20429 | else | ||
20430 | GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1` | ||
20431 | fi | ||
20432 | # Put the nasty error message in config.log where it belongs | ||
20433 | echo "$GLIB_PKG_ERRORS" >&5 | ||
20434 | |||
20435 | have_glib="no" | ||
20436 | elif test $pkg_failed = untried; then | ||
20437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20438 | $as_echo "no" >&6; } | ||
20439 | have_glib="no" | ||
20440 | else | ||
20441 | GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS | ||
20442 | GLIB_LIBS=$pkg_cv_GLIB_LIBS | ||
20443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20444 | $as_echo "yes" >&6; } | ||
20445 | have_glib="yes" | ||
20446 | fi | ||
20447 | else | ||
20448 | have_glib="no" | ||
20449 | fi | ||
20450 | if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then | ||
20451 | as_fn_error $? "GLib support requested, but no GLib found by pkg-config." "$LINENO" 5 | ||
20452 | elif test "x$have_glib" = "xyes"; then | ||
20453 | |||
20454 | $as_echo "#define HAVE_GLIB 1" >>confdefs.h | ||
20455 | |||
20456 | requirements_ecore="glib-2.0 ${requirements_ecore}" | ||
20457 | fi | ||
20458 | |||
20459 | |||
20460 | # SDL library (ecore_sdl) | ||
20461 | |||
20462 | have_sdl="no" | ||
20463 | |||
20464 | pkg_failed=no | ||
20465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 | ||
20466 | $as_echo_n "checking for SDL... " >&6; } | ||
20467 | |||
20468 | if test -n "$SDL_CFLAGS"; then | ||
20469 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | ||
20470 | elif test -n "$PKG_CONFIG"; then | ||
20471 | if test -n "$PKG_CONFIG" && \ | ||
20472 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20473 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20474 | ac_status=$? | ||
20475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20476 | test $ac_status = 0; }; then | ||
20477 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null` | ||
20478 | else | ||
20479 | pkg_failed=yes | ||
20480 | fi | ||
20481 | else | ||
20482 | pkg_failed=untried | ||
20483 | fi | ||
20484 | if test -n "$SDL_LIBS"; then | ||
20485 | pkg_cv_SDL_LIBS="$SDL_LIBS" | ||
20486 | elif test -n "$PKG_CONFIG"; then | ||
20487 | if test -n "$PKG_CONFIG" && \ | ||
20488 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20489 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20490 | ac_status=$? | ||
20491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20492 | test $ac_status = 0; }; then | ||
20493 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null` | ||
20494 | else | ||
20495 | pkg_failed=yes | ||
20496 | fi | ||
20497 | else | ||
20498 | pkg_failed=untried | ||
20499 | fi | ||
20500 | |||
20501 | |||
20502 | |||
20503 | if test $pkg_failed = yes; then | ||
20504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20505 | $as_echo "no" >&6; } | ||
20506 | |||
20507 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20508 | _pkg_short_errors_supported=yes | ||
20509 | else | ||
20510 | _pkg_short_errors_supported=no | ||
20511 | fi | ||
20512 | if test $_pkg_short_errors_supported = yes; then | ||
20513 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1` | ||
20514 | else | ||
20515 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1` | ||
20516 | fi | ||
20517 | # Put the nasty error message in config.log where it belongs | ||
20518 | echo "$SDL_PKG_ERRORS" >&5 | ||
20519 | |||
20520 | have_sdl="no" | ||
20521 | elif test $pkg_failed = untried; then | ||
20522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20523 | $as_echo "no" >&6; } | ||
20524 | have_sdl="no" | ||
20525 | else | ||
20526 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | ||
20527 | SDL_LIBS=$pkg_cv_SDL_LIBS | ||
20528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20529 | $as_echo "yes" >&6; } | ||
20530 | have_sdl="yes" | ||
20531 | fi | ||
20532 | if test "x${have_sdl}" != "xyes" ; then | ||
20533 | SDL_CONFIG="sdl-config" | ||
20534 | |||
20535 | # Check whether --with-sdl-config was given. | ||
20536 | if test "${with_sdl_config+set}" = set; then : | ||
20537 | withval=$with_sdl_config; | ||
20538 | SDL_CONFIG=$withval | ||
20539 | { $as_echo "$as_me:${as_lineno-$LINENO}: using ${SDL_CONFIG} for sdl-config" >&5 | ||
20540 | $as_echo "$as_me: using ${SDL_CONFIG} for sdl-config" >&6;} | ||
20541 | |||
20542 | fi | ||
20543 | |||
20544 | |||
20545 | # Extract the first word of ""sdl-config"", so it can be a program name with args. | ||
20546 | set dummy "sdl-config"; ac_word=$2 | ||
20547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
20548 | $as_echo_n "checking for $ac_word... " >&6; } | ||
20549 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then : | ||
20550 | $as_echo_n "(cached) " >&6 | ||
20551 | else | ||
20552 | case $SDL_CONFIG in | ||
20553 | [\\/]* | ?:[\\/]*) | ||
20554 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | ||
20555 | ;; | ||
20556 | *) | ||
20557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20558 | for as_dir in $PATH | ||
20559 | do | ||
20560 | IFS=$as_save_IFS | ||
20561 | test -z "$as_dir" && as_dir=. | ||
20562 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20564 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
20565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20566 | break 2 | ||
20567 | fi | ||
20568 | done | ||
20569 | done | ||
20570 | IFS=$as_save_IFS | ||
20571 | |||
20572 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="""" | ||
20573 | ;; | ||
20574 | esac | ||
20575 | fi | ||
20576 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | ||
20577 | if test -n "$SDL_CONFIG"; then | ||
20578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 | ||
20579 | $as_echo "$SDL_CONFIG" >&6; } | ||
20580 | else | ||
20581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20582 | $as_echo "no" >&6; } | ||
20583 | fi | ||
20584 | |||
20585 | |||
20586 | |||
20587 | if test -n "$SDL_CONFIG" ; then | ||
20588 | SDL_CFLAGS=`$SDL_CONFIG --cflags` | ||
20589 | SDL_LIBS=`$SDL_CONFIG --libs` | ||
20590 | |||
20591 | |||
20592 | have_sdl="yes" | ||
20593 | fi | ||
20594 | fi | ||
20595 | |||
20596 | if test "x${have_sdl}" = "xyes" ; then | ||
20597 | if test -n "$PKG_CONFIG" && \ | ||
20598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.3.0\""; } >&5 | ||
20599 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.3.0") 2>&5 | ||
20600 | ac_status=$? | ||
20601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20602 | test $ac_status = 0; }; then | ||
20603 | |||
20604 | $as_echo "#define BUILD_ECORE_EVAS_SDL_130 1" >>confdefs.h | ||
20605 | |||
20606 | fi | ||
20607 | fi | ||
20608 | |||
20609 | |||
20610 | # DirectFB library (ecore_directfb) | ||
20611 | |||
20612 | |||
20613 | pkg_failed=no | ||
20614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5 | ||
20615 | $as_echo_n "checking for DIRECTFB... " >&6; } | ||
20616 | |||
20617 | if test -n "$DIRECTFB_CFLAGS"; then | ||
20618 | pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" | ||
20619 | elif test -n "$PKG_CONFIG"; then | ||
20620 | if test -n "$PKG_CONFIG" && \ | ||
20621 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5 | ||
20622 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5 | ||
20623 | ac_status=$? | ||
20624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20625 | test $ac_status = 0; }; then | ||
20626 | pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.16" 2>/dev/null` | ||
20627 | else | ||
20628 | pkg_failed=yes | ||
20629 | fi | ||
20630 | else | ||
20631 | pkg_failed=untried | ||
20632 | fi | ||
20633 | if test -n "$DIRECTFB_LIBS"; then | ||
20634 | pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" | ||
20635 | elif test -n "$PKG_CONFIG"; then | ||
20636 | if test -n "$PKG_CONFIG" && \ | ||
20637 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5 | ||
20638 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5 | ||
20639 | ac_status=$? | ||
20640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20641 | test $ac_status = 0; }; then | ||
20642 | pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.16" 2>/dev/null` | ||
20643 | else | ||
20644 | pkg_failed=yes | ||
20645 | fi | ||
20646 | else | ||
20647 | pkg_failed=untried | ||
20648 | fi | ||
20649 | |||
20650 | |||
20651 | |||
20652 | if test $pkg_failed = yes; then | ||
20653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20654 | $as_echo "no" >&6; } | ||
20655 | |||
20656 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20657 | _pkg_short_errors_supported=yes | ||
20658 | else | ||
20659 | _pkg_short_errors_supported=no | ||
20660 | fi | ||
20661 | if test $_pkg_short_errors_supported = yes; then | ||
20662 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 0.9.16" 2>&1` | ||
20663 | else | ||
20664 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 0.9.16" 2>&1` | ||
20665 | fi | ||
20666 | # Put the nasty error message in config.log where it belongs | ||
20667 | echo "$DIRECTFB_PKG_ERRORS" >&5 | ||
20668 | |||
20669 | have_directfb="no" | ||
20670 | elif test $pkg_failed = untried; then | ||
20671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20672 | $as_echo "no" >&6; } | ||
20673 | have_directfb="no" | ||
20674 | else | ||
20675 | DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS | ||
20676 | DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS | ||
20677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20678 | $as_echo "yes" >&6; } | ||
20679 | have_directfb="yes" | ||
20680 | fi | ||
20681 | |||
20682 | |||
20683 | # Eet library (ecore_config) | ||
20684 | |||
20685 | #PKG_CHECK_MODULES([EET], | ||
20686 | # [eet >= 1.4.0], | ||
20687 | # [have_eet="yes"], | ||
20688 | # [have_eet="no"]) | ||
20689 | |||
20690 | |||
20691 | # Xlib and XCB (ecore_x) | ||
20692 | |||
20693 | ac_fn_c_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default" | ||
20694 | if test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = x""yes; then : | ||
20695 | FOUND_MAXHOSTNAMELEN=yes | ||
20696 | fi | ||
20697 | |||
20698 | |||
20699 | if test "x${FOUND_MAXHOSTNAMELEN}" != "xyes" ; then | ||
20700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5 | ||
20701 | $as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; } | ||
20702 | FOUND_MAXHOSTNAMELEN="not found" | ||
20703 | |||
20704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20705 | /* end confdefs.h. */ | ||
20706 | |||
20707 | |||
20708 | #include <sys/param.h> | ||
20709 | |||
20710 | int | ||
20711 | main () | ||
20712 | { | ||
20713 | |||
20714 | int h = MAXHOSTNAMELEN; | ||
20715 | |||
20716 | ; | ||
20717 | return 0; | ||
20718 | } | ||
20719 | |||
20720 | _ACEOF | ||
20721 | if ac_fn_c_try_compile "$LINENO"; then : | ||
20722 | |||
20723 | FOUND_MAXHOSTNAMELEN="sys/param.h" | ||
20724 | |||
20725 | $as_echo "#define NEED_SYS_PARAM_H 1" >>confdefs.h | ||
20726 | |||
20727 | |||
20728 | fi | ||
20729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20730 | |||
20731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20732 | /* end confdefs.h. */ | ||
20733 | |||
20734 | |||
20735 | #include <netdb.h> | ||
20736 | |||
20737 | int | ||
20738 | main () | ||
20739 | { | ||
20740 | |||
20741 | int h = MAXHOSTNAMELEN; | ||
20742 | |||
20743 | ; | ||
20744 | return 0; | ||
20745 | } | ||
20746 | |||
20747 | _ACEOF | ||
20748 | if ac_fn_c_try_compile "$LINENO"; then : | ||
20749 | |||
20750 | FOUND_MAXHOSTNAMELEN="netdb.h" | ||
20751 | |||
20752 | $as_echo "#define NEED_NETDB_H 1" >>confdefs.h | ||
20753 | |||
20754 | |||
20755 | fi | ||
20756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20757 | |||
20758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5 | ||
20759 | $as_echo "$FOUND_MAXHOSTNAMELEN" >&6; } | ||
20760 | fi | ||
20761 | |||
20762 | have_x="no" | ||
20763 | have_ecore_x="no" | ||
20764 | have_ecore_x_xlib="no" | ||
20765 | have_ecore_x_xcb="no" | ||
20766 | |||
20767 | x_dir=""; | ||
20768 | x_includes=""; | ||
20769 | x_cflags=""; | ||
20770 | x_libs=""; | ||
20771 | |||
20772 | ecore_x_libs_private="" | ||
20773 | |||
20774 | # Check whether --enable-ecore-x-composite was given. | ||
20775 | if test "${enable_ecore_x_composite+set}" = set; then : | ||
20776 | enableval=$enable_ecore_x_composite; want_ecore_x_composite=$enableval | ||
20777 | fi | ||
20778 | |||
20779 | |||
20780 | # Check whether --enable-ecore-x-damage was given. | ||
20781 | if test "${enable_ecore_x_damage+set}" = set; then : | ||
20782 | enableval=$enable_ecore_x_damage; want_ecore_x_damage=$enableval | ||
20783 | fi | ||
20784 | |||
20785 | |||
20786 | # Check whether --enable-ecore-x-dpms was given. | ||
20787 | if test "${enable_ecore_x_dpms+set}" = set; then : | ||
20788 | enableval=$enable_ecore_x_dpms; want_ecore_x_dpms=$enableval | ||
20789 | fi | ||
20790 | |||
20791 | |||
20792 | # Check whether --enable-ecore-x-randr was given. | ||
20793 | if test "${enable_ecore_x_randr+set}" = set; then : | ||
20794 | enableval=$enable_ecore_x_randr; want_ecore_x_randr=$enableval | ||
20795 | fi | ||
20796 | |||
20797 | |||
20798 | # Check whether --enable-ecore-x-render was given. | ||
20799 | if test "${enable_ecore_x_render+set}" = set; then : | ||
20800 | enableval=$enable_ecore_x_render; want_ecore_x_render=$enableval | ||
20801 | fi | ||
20802 | |||
20803 | |||
20804 | # Check whether --enable-ecore-x-screensaver was given. | ||
20805 | if test "${enable_ecore_x_screensaver+set}" = set; then : | ||
20806 | enableval=$enable_ecore_x_screensaver; want_ecore_x_screensaver=$enableval | ||
20807 | fi | ||
20808 | |||
20809 | |||
20810 | # Check whether --enable-ecore-x-shape was given. | ||
20811 | if test "${enable_ecore_x_shape+set}" = set; then : | ||
20812 | enableval=$enable_ecore_x_shape; want_ecore_x_shape=$enableval | ||
20813 | fi | ||
20814 | |||
20815 | |||
20816 | # Check whether --enable-ecore-x-gesture was given. | ||
20817 | if test "${enable_ecore_x_gesture+set}" = set; then : | ||
20818 | enableval=$enable_ecore_x_gesture; want_ecore_x_gesture=$enableval | ||
20819 | fi | ||
20820 | |||
20821 | |||
20822 | # Check whether --enable-ecore-x-sync was given. | ||
20823 | if test "${enable_ecore_x_sync+set}" = set; then : | ||
20824 | enableval=$enable_ecore_x_sync; want_ecore_x_sync=$enableval | ||
20825 | fi | ||
20826 | |||
20827 | |||
20828 | # Check whether --enable-ecore-x-xfixes was given. | ||
20829 | if test "${enable_ecore_x_xfixes+set}" = set; then : | ||
20830 | enableval=$enable_ecore_x_xfixes; want_ecore_x_xfixes=$enableval | ||
20831 | fi | ||
20832 | |||
20833 | |||
20834 | # Check whether --enable-ecore-x-xinerama was given. | ||
20835 | if test "${enable_ecore_x_xinerama+set}" = set; then : | ||
20836 | enableval=$enable_ecore_x_xinerama; want_ecore_x_xinerama=$enableval | ||
20837 | fi | ||
20838 | |||
20839 | |||
20840 | # Check whether --enable-ecore-x-xprint was given. | ||
20841 | if test "${enable_ecore_x_xprint+set}" = set; then : | ||
20842 | enableval=$enable_ecore_x_xprint; want_ecore_x_xprint=$enableval | ||
20843 | fi | ||
20844 | |||
20845 | |||
20846 | # Check whether --enable-ecore-x-xtest was given. | ||
20847 | if test "${enable_ecore_x_xtest+set}" = set; then : | ||
20848 | enableval=$enable_ecore_x_xtest; want_ecore_x_xtest=$enableval | ||
20849 | fi | ||
20850 | |||
20851 | |||
20852 | # Check whether --enable-ecore-x-cursor was given. | ||
20853 | if test "${enable_ecore_x_cursor+set}" = set; then : | ||
20854 | enableval=$enable_ecore_x_cursor; want_ecore_x_cursor=$enableval | ||
20855 | fi | ||
20856 | |||
20857 | |||
20858 | # Check whether --enable-ecore-x-input was given. | ||
20859 | if test "${enable_ecore_x_input+set}" = set; then : | ||
20860 | enableval=$enable_ecore_x_input; want_ecore_x_input=$enableval | ||
20861 | fi | ||
20862 | |||
20863 | |||
20864 | # Check whether --enable-ecore-x-dri was given. | ||
20865 | if test "${enable_ecore_x_dri+set}" = set; then : | ||
20866 | enableval=$enable_ecore_x_dri; want_ecore_x_dri=$enableval | ||
20867 | fi | ||
20868 | |||
20869 | |||
20870 | # Check whether --enable-ecore-x-xcb was given. | ||
20871 | if test "${enable_ecore_x_xcb+set}" = set; then : | ||
20872 | enableval=$enable_ecore_x_xcb; want_ecore_x_xcb=$enableval | ||
20873 | fi | ||
20874 | |||
20875 | |||
20876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_x with XCB backend is to be built" >&5 | ||
20877 | $as_echo_n "checking whether ecore_x with XCB backend is to be built... " >&6; } | ||
20878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ecore_x_xcb" >&5 | ||
20879 | $as_echo "$want_ecore_x_xcb" >&6; } | ||
20880 | |||
20881 | if test "x$want_ecore_x_xcb" = "xyes" ; then | ||
20882 | |||
20883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 | ||
20884 | $as_echo_n "checking keysym definitions... " >&6; } | ||
20885 | KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 | ||
20886 | FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" | ||
20887 | for i in $FILES; do | ||
20888 | if test -f "$KEYSYMDEFDIR/$i"; then | ||
20889 | KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" | ||
20890 | elif test "x$i" = "xkeysymdef.h"; then | ||
20891 | as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 | ||
20892 | fi | ||
20893 | done | ||
20894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 | ||
20895 | $as_echo "$KEYSYMDEFS" >&6; } | ||
20896 | |||
20897 | |||
20898 | have_iconv="no" | ||
20899 | |||
20900 | # Check whether --with-iconv-link was given. | ||
20901 | if test "${with_iconv_link+set}" = set; then : | ||
20902 | withval=$with_iconv_link; | ||
20903 | LIBS="$withval $LIBS" | ||
20904 | have_iconv="yes" | ||
20905 | |||
20906 | fi | ||
20907 | |||
20908 | |||
20909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit iconv link options" >&5 | ||
20910 | $as_echo_n "checking for explicit iconv link options... " >&6; } | ||
20911 | if test "x${iconv_libs}" = "x" ; then | ||
20912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no explicit iconv link option" >&5 | ||
20913 | $as_echo "no explicit iconv link option" >&6; } | ||
20914 | else | ||
20915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_libs" >&5 | ||
20916 | $as_echo "$iconv_libs" >&6; } | ||
20917 | fi | ||
20918 | |||
20919 | if test "x${have_iconv}" = "xno" ; then | ||
20920 | for ac_header in iconv.h | ||
20921 | do : | ||
20922 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | ||
20923 | if test "x$ac_cv_header_iconv_h" = x""yes; then : | ||
20924 | cat >>confdefs.h <<_ACEOF | ||
20925 | #define HAVE_ICONV_H 1 | ||
20926 | _ACEOF | ||
20927 | have_iconv="yes" | ||
20928 | fi | ||
20929 | |||
20930 | done | ||
20931 | |||
20932 | |||
20933 | if test "x${have_iconv}" = "xyes" ; then | ||
20934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libc" >&5 | ||
20935 | $as_echo_n "checking whether iconv() is in libc... " >&6; } | ||
20936 | |||
20937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20938 | /* end confdefs.h. */ | ||
20939 | |||
20940 | #include <stdlib.h> | ||
20941 | #include <iconv.h> | ||
20942 | |||
20943 | int | ||
20944 | main () | ||
20945 | { | ||
20946 | |||
20947 | iconv_t ic; | ||
20948 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
20949 | |||
20950 | ; | ||
20951 | return 0; | ||
20952 | } | ||
20953 | _ACEOF | ||
20954 | if ac_fn_c_try_link "$LINENO"; then : | ||
20955 | have_iconv="yes" | ||
20956 | else | ||
20957 | have_iconv="no" | ||
20958 | fi | ||
20959 | rm -f core conftest.err conftest.$ac_objext \ | ||
20960 | conftest$ac_exeext conftest.$ac_ext | ||
20961 | |||
20962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
20963 | $as_echo "${have_iconv}" >&6; } | ||
20964 | fi | ||
20965 | |||
20966 | if test "x${have_iconv}" = "xno" ; then | ||
20967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libiconv.a" >&5 | ||
20968 | $as_echo_n "checking whether iconv() is in libiconv.a... " >&6; } | ||
20969 | |||
20970 | LIBS_save="${LIBS}" | ||
20971 | LIBS="-liconv $LIBS" | ||
20972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20973 | /* end confdefs.h. */ | ||
20974 | |||
20975 | #include <stdlib.h> | ||
20976 | #include <iconv.h> | ||
20977 | |||
20978 | int | ||
20979 | main () | ||
20980 | { | ||
20981 | |||
20982 | iconv_t ic; | ||
20983 | size_t count; | ||
20984 | count = iconv(ic, NULL, NULL, NULL, NULL); | ||
20985 | |||
20986 | ; | ||
20987 | return 0; | ||
20988 | } | ||
20989 | _ACEOF | ||
20990 | if ac_fn_c_try_link "$LINENO"; then : | ||
20991 | have_iconv="yes" | ||
20992 | else | ||
20993 | |||
20994 | have_iconv="no" | ||
20995 | LIBS=${LIBS_save} | ||
20996 | |||
20997 | fi | ||
20998 | rm -f core conftest.err conftest.$ac_objext \ | ||
20999 | conftest$ac_exeext conftest.$ac_ext | ||
21000 | |||
21001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
21002 | $as_echo "${have_iconv}" >&6; } | ||
21003 | fi | ||
21004 | |||
21005 | if test "x${have_iconv}" = "xno" ; then | ||
21006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libiconv_plug.a" >&5 | ||
21007 | $as_echo_n "checking whether iconv() is in libiconv_plug.a... " >&6; } | ||
21008 | |||
21009 | LIBS_save="${LIBS}" | ||
21010 | LIBS="-liconv_plug $LIBS" | ||
21011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21012 | /* end confdefs.h. */ | ||
21013 | |||
21014 | #include <stdlib.h> | ||
21015 | #include <iconv.h> | ||
21016 | |||
21017 | int | ||
21018 | main () | ||
21019 | { | ||
21020 | |||
21021 | iconv_t ic; | ||
21022 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
21023 | |||
21024 | ; | ||
21025 | return 0; | ||
21026 | } | ||
21027 | _ACEOF | ||
21028 | if ac_fn_c_try_link "$LINENO"; then : | ||
21029 | have_iconv="yes" | ||
21030 | else | ||
21031 | |||
21032 | have_iconv="no" | ||
21033 | LIBS=${LIBS_save} | ||
21034 | |||
21035 | fi | ||
21036 | rm -f core conftest.err conftest.$ac_objext \ | ||
21037 | conftest$ac_exeext conftest.$ac_ext | ||
21038 | |||
21039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
21040 | $as_echo "${have_iconv}" >&6; } | ||
21041 | fi | ||
21042 | |||
21043 | if test "x${have_iconv}" = "xyes" ; then | ||
21044 | |||
21045 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | ||
21046 | |||
21047 | fi | ||
21048 | fi | ||
21049 | |||
21050 | |||
21051 | pkg_failed=no | ||
21052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_XCB" >&5 | ||
21053 | $as_echo_n "checking for ECORE_XCB... " >&6; } | ||
21054 | |||
21055 | if test -n "$ECORE_XCB_CFLAGS"; then | ||
21056 | pkg_cv_ECORE_XCB_CFLAGS="$ECORE_XCB_CFLAGS" | ||
21057 | elif test -n "$PKG_CONFIG"; then | ||
21058 | if test -n "$PKG_CONFIG" && \ | ||
21059 | { { $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 | ||
21060 | ($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 | ||
21061 | ac_status=$? | ||
21062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21063 | test $ac_status = 0; }; then | ||
21064 | 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` | ||
21065 | else | ||
21066 | pkg_failed=yes | ||
21067 | fi | ||
21068 | else | ||
21069 | pkg_failed=untried | ||
21070 | fi | ||
21071 | if test -n "$ECORE_XCB_LIBS"; then | ||
21072 | pkg_cv_ECORE_XCB_LIBS="$ECORE_XCB_LIBS" | ||
21073 | elif test -n "$PKG_CONFIG"; then | ||
21074 | if test -n "$PKG_CONFIG" && \ | ||
21075 | { { $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 | ||
21076 | ($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 | ||
21077 | ac_status=$? | ||
21078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21079 | test $ac_status = 0; }; then | ||
21080 | 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` | ||
21081 | else | ||
21082 | pkg_failed=yes | ||
21083 | fi | ||
21084 | else | ||
21085 | pkg_failed=untried | ||
21086 | fi | ||
21087 | |||
21088 | |||
21089 | |||
21090 | if test $pkg_failed = yes; then | ||
21091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21092 | $as_echo "no" >&6; } | ||
21093 | |||
21094 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21095 | _pkg_short_errors_supported=yes | ||
21096 | else | ||
21097 | _pkg_short_errors_supported=no | ||
21098 | fi | ||
21099 | if test $_pkg_short_errors_supported = yes; then | ||
21100 | 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` | ||
21101 | else | ||
21102 | 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` | ||
21103 | fi | ||
21104 | # Put the nasty error message in config.log where it belongs | ||
21105 | echo "$ECORE_XCB_PKG_ERRORS" >&5 | ||
21106 | |||
21107 | |||
21108 | |||
21109 | pkg_failed=no | ||
21110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_XCB" >&5 | ||
21111 | $as_echo_n "checking for ECORE_XCB... " >&6; } | ||
21112 | |||
21113 | if test -n "$ECORE_XCB_CFLAGS"; then | ||
21114 | pkg_cv_ECORE_XCB_CFLAGS="$ECORE_XCB_CFLAGS" | ||
21115 | elif test -n "$PKG_CONFIG"; then | ||
21116 | if test -n "$PKG_CONFIG" && \ | ||
21117 | { { $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 | ||
21118 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms") 2>&5 | ||
21119 | ac_status=$? | ||
21120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21121 | test $ac_status = 0; }; then | ||
21122 | pkg_cv_ECORE_XCB_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>/dev/null` | ||
21123 | else | ||
21124 | pkg_failed=yes | ||
21125 | fi | ||
21126 | else | ||
21127 | pkg_failed=untried | ||
21128 | fi | ||
21129 | if test -n "$ECORE_XCB_LIBS"; then | ||
21130 | pkg_cv_ECORE_XCB_LIBS="$ECORE_XCB_LIBS" | ||
21131 | elif test -n "$PKG_CONFIG"; then | ||
21132 | if test -n "$PKG_CONFIG" && \ | ||
21133 | { { $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 | ||
21134 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms") 2>&5 | ||
21135 | ac_status=$? | ||
21136 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21137 | test $ac_status = 0; }; then | ||
21138 | pkg_cv_ECORE_XCB_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>/dev/null` | ||
21139 | else | ||
21140 | pkg_failed=yes | ||
21141 | fi | ||
21142 | else | ||
21143 | pkg_failed=untried | ||
21144 | fi | ||
21145 | |||
21146 | |||
21147 | |||
21148 | if test $pkg_failed = yes; then | ||
21149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21150 | $as_echo "no" >&6; } | ||
21151 | |||
21152 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21153 | _pkg_short_errors_supported=yes | ||
21154 | else | ||
21155 | _pkg_short_errors_supported=no | ||
21156 | fi | ||
21157 | if test $_pkg_short_errors_supported = yes; then | ||
21158 | 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` | ||
21159 | else | ||
21160 | ECORE_XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>&1` | ||
21161 | fi | ||
21162 | # Put the nasty error message in config.log where it belongs | ||
21163 | echo "$ECORE_XCB_PKG_ERRORS" >&5 | ||
21164 | |||
21165 | have_ecore_x_xcb="no" | ||
21166 | elif test $pkg_failed = untried; then | ||
21167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21168 | $as_echo "no" >&6; } | ||
21169 | have_ecore_x_xcb="no" | ||
21170 | else | ||
21171 | ECORE_XCB_CFLAGS=$pkg_cv_ECORE_XCB_CFLAGS | ||
21172 | ECORE_XCB_LIBS=$pkg_cv_ECORE_XCB_LIBS | ||
21173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21174 | $as_echo "yes" >&6; } | ||
21175 | have_ecore_x_xcb="yes" | ||
21176 | |||
21177 | $as_echo "#define OLD_XCB_VERSION 1" >>confdefs.h | ||
21178 | |||
21179 | requirements_ecore_x="x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" | ||
21180 | fi | ||
21181 | |||
21182 | elif test $pkg_failed = untried; then | ||
21183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21184 | $as_echo "no" >&6; } | ||
21185 | |||
21186 | |||
21187 | pkg_failed=no | ||
21188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_XCB" >&5 | ||
21189 | $as_echo_n "checking for ECORE_XCB... " >&6; } | ||
21190 | |||
21191 | if test -n "$ECORE_XCB_CFLAGS"; then | ||
21192 | pkg_cv_ECORE_XCB_CFLAGS="$ECORE_XCB_CFLAGS" | ||
21193 | elif test -n "$PKG_CONFIG"; then | ||
21194 | if test -n "$PKG_CONFIG" && \ | ||
21195 | { { $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 | ||
21196 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms") 2>&5 | ||
21197 | ac_status=$? | ||
21198 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21199 | test $ac_status = 0; }; then | ||
21200 | pkg_cv_ECORE_XCB_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>/dev/null` | ||
21201 | else | ||
21202 | pkg_failed=yes | ||
21203 | fi | ||
21204 | else | ||
21205 | pkg_failed=untried | ||
21206 | fi | ||
21207 | if test -n "$ECORE_XCB_LIBS"; then | ||
21208 | pkg_cv_ECORE_XCB_LIBS="$ECORE_XCB_LIBS" | ||
21209 | elif test -n "$PKG_CONFIG"; then | ||
21210 | if test -n "$PKG_CONFIG" && \ | ||
21211 | { { $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 | ||
21212 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms") 2>&5 | ||
21213 | ac_status=$? | ||
21214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21215 | test $ac_status = 0; }; then | ||
21216 | pkg_cv_ECORE_XCB_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>/dev/null` | ||
21217 | else | ||
21218 | pkg_failed=yes | ||
21219 | fi | ||
21220 | else | ||
21221 | pkg_failed=untried | ||
21222 | fi | ||
21223 | |||
21224 | |||
21225 | |||
21226 | if test $pkg_failed = yes; then | ||
21227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21228 | $as_echo "no" >&6; } | ||
21229 | |||
21230 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21231 | _pkg_short_errors_supported=yes | ||
21232 | else | ||
21233 | _pkg_short_errors_supported=no | ||
21234 | fi | ||
21235 | if test $_pkg_short_errors_supported = yes; then | ||
21236 | 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` | ||
21237 | else | ||
21238 | ECORE_XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms" 2>&1` | ||
21239 | fi | ||
21240 | # Put the nasty error message in config.log where it belongs | ||
21241 | echo "$ECORE_XCB_PKG_ERRORS" >&5 | ||
21242 | |||
21243 | have_ecore_x_xcb="no" | ||
21244 | elif test $pkg_failed = untried; then | ||
21245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21246 | $as_echo "no" >&6; } | ||
21247 | have_ecore_x_xcb="no" | ||
21248 | else | ||
21249 | ECORE_XCB_CFLAGS=$pkg_cv_ECORE_XCB_CFLAGS | ||
21250 | ECORE_XCB_LIBS=$pkg_cv_ECORE_XCB_LIBS | ||
21251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21252 | $as_echo "yes" >&6; } | ||
21253 | have_ecore_x_xcb="yes" | ||
21254 | |||
21255 | $as_echo "#define OLD_XCB_VERSION 1" >>confdefs.h | ||
21256 | |||
21257 | requirements_ecore_x="x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" | ||
21258 | fi | ||
21259 | |||
21260 | else | ||
21261 | ECORE_XCB_CFLAGS=$pkg_cv_ECORE_XCB_CFLAGS | ||
21262 | ECORE_XCB_LIBS=$pkg_cv_ECORE_XCB_LIBS | ||
21263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21264 | $as_echo "yes" >&6; } | ||
21265 | have_ecore_x_xcb="yes" | ||
21266 | requirements_ecore_x="x11-xcb xcb xcb-shm xcb-event xcb-icccm xcb-util xcb-image xcb-keysyms ${requirements_ecore_x}" | ||
21267 | |||
21268 | fi | ||
21269 | |||
21270 | if test "x$have_ecore_x_xcb" = "xyes" ; then | ||
21271 | |||
21272 | |||
21273 | pkg_failed=no | ||
21274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 | ||
21275 | $as_echo_n "checking for PIXMAN... " >&6; } | ||
21276 | |||
21277 | if test -n "$PIXMAN_CFLAGS"; then | ||
21278 | pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" | ||
21279 | elif test -n "$PKG_CONFIG"; then | ||
21280 | if test -n "$PKG_CONFIG" && \ | ||
21281 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5 | ||
21282 | ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5 | ||
21283 | ac_status=$? | ||
21284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21285 | test $ac_status = 0; }; then | ||
21286 | pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1" 2>/dev/null` | ||
21287 | else | ||
21288 | pkg_failed=yes | ||
21289 | fi | ||
21290 | else | ||
21291 | pkg_failed=untried | ||
21292 | fi | ||
21293 | if test -n "$PIXMAN_LIBS"; then | ||
21294 | pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" | ||
21295 | elif test -n "$PKG_CONFIG"; then | ||
21296 | if test -n "$PKG_CONFIG" && \ | ||
21297 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5 | ||
21298 | ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5 | ||
21299 | ac_status=$? | ||
21300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21301 | test $ac_status = 0; }; then | ||
21302 | pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "pixman-1" 2>/dev/null` | ||
21303 | else | ||
21304 | pkg_failed=yes | ||
21305 | fi | ||
21306 | else | ||
21307 | pkg_failed=untried | ||
21308 | fi | ||
21309 | |||
21310 | |||
21311 | |||
21312 | if test $pkg_failed = yes; then | ||
21313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21314 | $as_echo "no" >&6; } | ||
21315 | |||
21316 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21317 | _pkg_short_errors_supported=yes | ||
21318 | else | ||
21319 | _pkg_short_errors_supported=no | ||
21320 | fi | ||
21321 | if test $_pkg_short_errors_supported = yes; then | ||
21322 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pixman-1" 2>&1` | ||
21323 | else | ||
21324 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "pixman-1" 2>&1` | ||
21325 | fi | ||
21326 | # Put the nasty error message in config.log where it belongs | ||
21327 | echo "$PIXMAN_PKG_ERRORS" >&5 | ||
21328 | |||
21329 | |||
21330 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21331 | as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5 | ||
21332 | fi | ||
21333 | |||
21334 | elif test $pkg_failed = untried; then | ||
21335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21336 | $as_echo "no" >&6; } | ||
21337 | |||
21338 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21339 | as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5 | ||
21340 | fi | ||
21341 | |||
21342 | else | ||
21343 | PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS | ||
21344 | PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS | ||
21345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21346 | $as_echo "yes" >&6; } | ||
21347 | |||
21348 | have_pixman="yes" | ||
21349 | |||
21350 | $as_echo "#define HAVE_PIXMAN 1" >>confdefs.h | ||
21351 | |||
21352 | requirements_ecore_x="pixman-1 ${requirements_ecore_x}" | ||
21353 | |||
21354 | fi | ||
21355 | |||
21356 | if test "x$want_ecore_x_composite" != "xno"; then | ||
21357 | |||
21358 | pkg_failed=no | ||
21359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_COMPOSITE" >&5 | ||
21360 | $as_echo_n "checking for XCB_COMPOSITE... " >&6; } | ||
21361 | |||
21362 | if test -n "$XCB_COMPOSITE_CFLAGS"; then | ||
21363 | pkg_cv_XCB_COMPOSITE_CFLAGS="$XCB_COMPOSITE_CFLAGS" | ||
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 \"xcb-composite\""; } >&5 | ||
21367 | ($PKG_CONFIG --exists --print-errors "xcb-composite") 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_XCB_COMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcb-composite" 2>/dev/null` | ||
21372 | else | ||
21373 | pkg_failed=yes | ||
21374 | fi | ||
21375 | else | ||
21376 | pkg_failed=untried | ||
21377 | fi | ||
21378 | if test -n "$XCB_COMPOSITE_LIBS"; then | ||
21379 | pkg_cv_XCB_COMPOSITE_LIBS="$XCB_COMPOSITE_LIBS" | ||
21380 | elif test -n "$PKG_CONFIG"; then | ||
21381 | if test -n "$PKG_CONFIG" && \ | ||
21382 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-composite\""; } >&5 | ||
21383 | ($PKG_CONFIG --exists --print-errors "xcb-composite") 2>&5 | ||
21384 | ac_status=$? | ||
21385 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21386 | test $ac_status = 0; }; then | ||
21387 | pkg_cv_XCB_COMPOSITE_LIBS=`$PKG_CONFIG --libs "xcb-composite" 2>/dev/null` | ||
21388 | else | ||
21389 | pkg_failed=yes | ||
21390 | fi | ||
21391 | else | ||
21392 | pkg_failed=untried | ||
21393 | fi | ||
21394 | |||
21395 | |||
21396 | |||
21397 | if test $pkg_failed = yes; then | ||
21398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21399 | $as_echo "no" >&6; } | ||
21400 | |||
21401 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21402 | _pkg_short_errors_supported=yes | ||
21403 | else | ||
21404 | _pkg_short_errors_supported=no | ||
21405 | fi | ||
21406 | if test $_pkg_short_errors_supported = yes; then | ||
21407 | XCB_COMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-composite" 2>&1` | ||
21408 | else | ||
21409 | XCB_COMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-composite" 2>&1` | ||
21410 | fi | ||
21411 | # Put the nasty error message in config.log where it belongs | ||
21412 | echo "$XCB_COMPOSITE_PKG_ERRORS" >&5 | ||
21413 | |||
21414 | have_ecore_x_xcb_composite="no" | ||
21415 | elif test $pkg_failed = untried; then | ||
21416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21417 | $as_echo "no" >&6; } | ||
21418 | have_ecore_x_xcb_composite="no" | ||
21419 | else | ||
21420 | XCB_COMPOSITE_CFLAGS=$pkg_cv_XCB_COMPOSITE_CFLAGS | ||
21421 | XCB_COMPOSITE_LIBS=$pkg_cv_XCB_COMPOSITE_LIBS | ||
21422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21423 | $as_echo "yes" >&6; } | ||
21424 | have_ecore_x_xcb_composite="yes" | ||
21425 | requirements_ecore_x="xcb-composite ${requirements_ecore_x}" | ||
21426 | |||
21427 | $as_echo "#define ECORE_XCB_COMPOSITE 1" >>confdefs.h | ||
21428 | |||
21429 | fi | ||
21430 | else | ||
21431 | have_ecore_x_xcb_composite="no" | ||
21432 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"composite extension explicitly disabled\"" >&5 | ||
21433 | $as_echo "$as_me: \"composite extension explicitly disabled\"" >&6;} | ||
21434 | fi | ||
21435 | |||
21436 | if test "x$want_ecore_x_damage" != "xno"; then | ||
21437 | |||
21438 | pkg_failed=no | ||
21439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_DAMAGE" >&5 | ||
21440 | $as_echo_n "checking for XCB_DAMAGE... " >&6; } | ||
21441 | |||
21442 | if test -n "$XCB_DAMAGE_CFLAGS"; then | ||
21443 | pkg_cv_XCB_DAMAGE_CFLAGS="$XCB_DAMAGE_CFLAGS" | ||
21444 | elif test -n "$PKG_CONFIG"; then | ||
21445 | if test -n "$PKG_CONFIG" && \ | ||
21446 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-damage\""; } >&5 | ||
21447 | ($PKG_CONFIG --exists --print-errors "xcb-damage") 2>&5 | ||
21448 | ac_status=$? | ||
21449 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21450 | test $ac_status = 0; }; then | ||
21451 | pkg_cv_XCB_DAMAGE_CFLAGS=`$PKG_CONFIG --cflags "xcb-damage" 2>/dev/null` | ||
21452 | else | ||
21453 | pkg_failed=yes | ||
21454 | fi | ||
21455 | else | ||
21456 | pkg_failed=untried | ||
21457 | fi | ||
21458 | if test -n "$XCB_DAMAGE_LIBS"; then | ||
21459 | pkg_cv_XCB_DAMAGE_LIBS="$XCB_DAMAGE_LIBS" | ||
21460 | elif test -n "$PKG_CONFIG"; then | ||
21461 | if test -n "$PKG_CONFIG" && \ | ||
21462 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-damage\""; } >&5 | ||
21463 | ($PKG_CONFIG --exists --print-errors "xcb-damage") 2>&5 | ||
21464 | ac_status=$? | ||
21465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21466 | test $ac_status = 0; }; then | ||
21467 | pkg_cv_XCB_DAMAGE_LIBS=`$PKG_CONFIG --libs "xcb-damage" 2>/dev/null` | ||
21468 | else | ||
21469 | pkg_failed=yes | ||
21470 | fi | ||
21471 | else | ||
21472 | pkg_failed=untried | ||
21473 | fi | ||
21474 | |||
21475 | |||
21476 | |||
21477 | if test $pkg_failed = yes; then | ||
21478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21479 | $as_echo "no" >&6; } | ||
21480 | |||
21481 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21482 | _pkg_short_errors_supported=yes | ||
21483 | else | ||
21484 | _pkg_short_errors_supported=no | ||
21485 | fi | ||
21486 | if test $_pkg_short_errors_supported = yes; then | ||
21487 | XCB_DAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-damage" 2>&1` | ||
21488 | else | ||
21489 | XCB_DAMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-damage" 2>&1` | ||
21490 | fi | ||
21491 | # Put the nasty error message in config.log where it belongs | ||
21492 | echo "$XCB_DAMAGE_PKG_ERRORS" >&5 | ||
21493 | |||
21494 | have_ecore_x_xcb_damage="no" | ||
21495 | elif test $pkg_failed = untried; then | ||
21496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21497 | $as_echo "no" >&6; } | ||
21498 | have_ecore_x_xcb_damage="no" | ||
21499 | else | ||
21500 | XCB_DAMAGE_CFLAGS=$pkg_cv_XCB_DAMAGE_CFLAGS | ||
21501 | XCB_DAMAGE_LIBS=$pkg_cv_XCB_DAMAGE_LIBS | ||
21502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21503 | $as_echo "yes" >&6; } | ||
21504 | have_ecore_x_xcb_damage="yes" | ||
21505 | requirements_ecore_x="xcb-damage ${requirements_ecore_x}" | ||
21506 | |||
21507 | $as_echo "#define ECORE_XCB_DAMAGE 1" >>confdefs.h | ||
21508 | |||
21509 | fi | ||
21510 | else | ||
21511 | have_ecore_x_xcb_damage="no" | ||
21512 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"damage extension explicitly disabled\"" >&5 | ||
21513 | $as_echo "$as_me: \"damage extension explicitly disabled\"" >&6;} | ||
21514 | fi | ||
21515 | |||
21516 | if test "x$want_ecore_x_dpms" != "xno"; then | ||
21517 | |||
21518 | pkg_failed=no | ||
21519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_DPMS" >&5 | ||
21520 | $as_echo_n "checking for XCB_DPMS... " >&6; } | ||
21521 | |||
21522 | if test -n "$XCB_DPMS_CFLAGS"; then | ||
21523 | pkg_cv_XCB_DPMS_CFLAGS="$XCB_DPMS_CFLAGS" | ||
21524 | elif test -n "$PKG_CONFIG"; then | ||
21525 | if test -n "$PKG_CONFIG" && \ | ||
21526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dpms\""; } >&5 | ||
21527 | ($PKG_CONFIG --exists --print-errors "xcb-dpms") 2>&5 | ||
21528 | ac_status=$? | ||
21529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21530 | test $ac_status = 0; }; then | ||
21531 | pkg_cv_XCB_DPMS_CFLAGS=`$PKG_CONFIG --cflags "xcb-dpms" 2>/dev/null` | ||
21532 | else | ||
21533 | pkg_failed=yes | ||
21534 | fi | ||
21535 | else | ||
21536 | pkg_failed=untried | ||
21537 | fi | ||
21538 | if test -n "$XCB_DPMS_LIBS"; then | ||
21539 | pkg_cv_XCB_DPMS_LIBS="$XCB_DPMS_LIBS" | ||
21540 | elif test -n "$PKG_CONFIG"; then | ||
21541 | if test -n "$PKG_CONFIG" && \ | ||
21542 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dpms\""; } >&5 | ||
21543 | ($PKG_CONFIG --exists --print-errors "xcb-dpms") 2>&5 | ||
21544 | ac_status=$? | ||
21545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21546 | test $ac_status = 0; }; then | ||
21547 | pkg_cv_XCB_DPMS_LIBS=`$PKG_CONFIG --libs "xcb-dpms" 2>/dev/null` | ||
21548 | else | ||
21549 | pkg_failed=yes | ||
21550 | fi | ||
21551 | else | ||
21552 | pkg_failed=untried | ||
21553 | fi | ||
21554 | |||
21555 | |||
21556 | |||
21557 | if test $pkg_failed = yes; then | ||
21558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21559 | $as_echo "no" >&6; } | ||
21560 | |||
21561 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21562 | _pkg_short_errors_supported=yes | ||
21563 | else | ||
21564 | _pkg_short_errors_supported=no | ||
21565 | fi | ||
21566 | if test $_pkg_short_errors_supported = yes; then | ||
21567 | XCB_DPMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-dpms" 2>&1` | ||
21568 | else | ||
21569 | XCB_DPMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-dpms" 2>&1` | ||
21570 | fi | ||
21571 | # Put the nasty error message in config.log where it belongs | ||
21572 | echo "$XCB_DPMS_PKG_ERRORS" >&5 | ||
21573 | |||
21574 | have_ecore_x_xcb_dpms="no" | ||
21575 | elif test $pkg_failed = untried; then | ||
21576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21577 | $as_echo "no" >&6; } | ||
21578 | have_ecore_x_xcb_dpms="no" | ||
21579 | else | ||
21580 | XCB_DPMS_CFLAGS=$pkg_cv_XCB_DPMS_CFLAGS | ||
21581 | XCB_DPMS_LIBS=$pkg_cv_XCB_DPMS_LIBS | ||
21582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21583 | $as_echo "yes" >&6; } | ||
21584 | have_ecore_x_xcb_dpms="yes" | ||
21585 | requirements_ecore_x="xcb-dpms ${requirements_ecore_x}" | ||
21586 | |||
21587 | $as_echo "#define ECORE_XCB_DPMS 1" >>confdefs.h | ||
21588 | |||
21589 | fi | ||
21590 | else | ||
21591 | have_ecore_x_xcb_dpms="no" | ||
21592 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"dpms extension explicitly disabled\"" >&5 | ||
21593 | $as_echo "$as_me: \"dpms extension explicitly disabled\"" >&6;} | ||
21594 | fi | ||
21595 | |||
21596 | if test "x$want_ecore_x_randr" != "xno"; then | ||
21597 | |||
21598 | pkg_failed=no | ||
21599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_RANDR" >&5 | ||
21600 | $as_echo_n "checking for XCB_RANDR... " >&6; } | ||
21601 | |||
21602 | if test -n "$XCB_RANDR_CFLAGS"; then | ||
21603 | pkg_cv_XCB_RANDR_CFLAGS="$XCB_RANDR_CFLAGS" | ||
21604 | elif test -n "$PKG_CONFIG"; then | ||
21605 | if test -n "$PKG_CONFIG" && \ | ||
21606 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-randr\""; } >&5 | ||
21607 | ($PKG_CONFIG --exists --print-errors "xcb-randr") 2>&5 | ||
21608 | ac_status=$? | ||
21609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21610 | test $ac_status = 0; }; then | ||
21611 | pkg_cv_XCB_RANDR_CFLAGS=`$PKG_CONFIG --cflags "xcb-randr" 2>/dev/null` | ||
21612 | else | ||
21613 | pkg_failed=yes | ||
21614 | fi | ||
21615 | else | ||
21616 | pkg_failed=untried | ||
21617 | fi | ||
21618 | if test -n "$XCB_RANDR_LIBS"; then | ||
21619 | pkg_cv_XCB_RANDR_LIBS="$XCB_RANDR_LIBS" | ||
21620 | elif test -n "$PKG_CONFIG"; then | ||
21621 | if test -n "$PKG_CONFIG" && \ | ||
21622 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-randr\""; } >&5 | ||
21623 | ($PKG_CONFIG --exists --print-errors "xcb-randr") 2>&5 | ||
21624 | ac_status=$? | ||
21625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21626 | test $ac_status = 0; }; then | ||
21627 | pkg_cv_XCB_RANDR_LIBS=`$PKG_CONFIG --libs "xcb-randr" 2>/dev/null` | ||
21628 | else | ||
21629 | pkg_failed=yes | ||
21630 | fi | ||
21631 | else | ||
21632 | pkg_failed=untried | ||
21633 | fi | ||
21634 | |||
21635 | |||
21636 | |||
21637 | if test $pkg_failed = yes; then | ||
21638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21639 | $as_echo "no" >&6; } | ||
21640 | |||
21641 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21642 | _pkg_short_errors_supported=yes | ||
21643 | else | ||
21644 | _pkg_short_errors_supported=no | ||
21645 | fi | ||
21646 | if test $_pkg_short_errors_supported = yes; then | ||
21647 | XCB_RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-randr" 2>&1` | ||
21648 | else | ||
21649 | XCB_RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-randr" 2>&1` | ||
21650 | fi | ||
21651 | # Put the nasty error message in config.log where it belongs | ||
21652 | echo "$XCB_RANDR_PKG_ERRORS" >&5 | ||
21653 | |||
21654 | have_ecore_x_xcb_randr="no" | ||
21655 | elif test $pkg_failed = untried; then | ||
21656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21657 | $as_echo "no" >&6; } | ||
21658 | have_ecore_x_xcb_randr="no" | ||
21659 | else | ||
21660 | XCB_RANDR_CFLAGS=$pkg_cv_XCB_RANDR_CFLAGS | ||
21661 | XCB_RANDR_LIBS=$pkg_cv_XCB_RANDR_LIBS | ||
21662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21663 | $as_echo "yes" >&6; } | ||
21664 | have_ecore_x_xcb_randr="yes" | ||
21665 | requirements_ecore_x="xcb-randr ${requirements_ecore_x}" | ||
21666 | |||
21667 | $as_echo "#define ECORE_XCB_RANDR 1" >>confdefs.h | ||
21668 | |||
21669 | fi | ||
21670 | else | ||
21671 | have_ecore_x_xcb_randr="no" | ||
21672 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"randr extension explicitly disabled\"" >&5 | ||
21673 | $as_echo "$as_me: \"randr extension explicitly disabled\"" >&6;} | ||
21674 | fi | ||
21675 | |||
21676 | if test "x$want_ecore_x_render" != "xno"; then | ||
21677 | |||
21678 | pkg_failed=no | ||
21679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_RENDER" >&5 | ||
21680 | $as_echo_n "checking for XCB_RENDER... " >&6; } | ||
21681 | |||
21682 | if test -n "$XCB_RENDER_CFLAGS"; then | ||
21683 | pkg_cv_XCB_RENDER_CFLAGS="$XCB_RENDER_CFLAGS" | ||
21684 | elif test -n "$PKG_CONFIG"; then | ||
21685 | if test -n "$PKG_CONFIG" && \ | ||
21686 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render xcb-renderutil\""; } >&5 | ||
21687 | ($PKG_CONFIG --exists --print-errors "xcb-render xcb-renderutil") 2>&5 | ||
21688 | ac_status=$? | ||
21689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21690 | test $ac_status = 0; }; then | ||
21691 | pkg_cv_XCB_RENDER_CFLAGS=`$PKG_CONFIG --cflags "xcb-render xcb-renderutil" 2>/dev/null` | ||
21692 | else | ||
21693 | pkg_failed=yes | ||
21694 | fi | ||
21695 | else | ||
21696 | pkg_failed=untried | ||
21697 | fi | ||
21698 | if test -n "$XCB_RENDER_LIBS"; then | ||
21699 | pkg_cv_XCB_RENDER_LIBS="$XCB_RENDER_LIBS" | ||
21700 | elif test -n "$PKG_CONFIG"; then | ||
21701 | if test -n "$PKG_CONFIG" && \ | ||
21702 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render xcb-renderutil\""; } >&5 | ||
21703 | ($PKG_CONFIG --exists --print-errors "xcb-render xcb-renderutil") 2>&5 | ||
21704 | ac_status=$? | ||
21705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21706 | test $ac_status = 0; }; then | ||
21707 | pkg_cv_XCB_RENDER_LIBS=`$PKG_CONFIG --libs "xcb-render xcb-renderutil" 2>/dev/null` | ||
21708 | else | ||
21709 | pkg_failed=yes | ||
21710 | fi | ||
21711 | else | ||
21712 | pkg_failed=untried | ||
21713 | fi | ||
21714 | |||
21715 | |||
21716 | |||
21717 | if test $pkg_failed = yes; then | ||
21718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21719 | $as_echo "no" >&6; } | ||
21720 | |||
21721 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21722 | _pkg_short_errors_supported=yes | ||
21723 | else | ||
21724 | _pkg_short_errors_supported=no | ||
21725 | fi | ||
21726 | if test $_pkg_short_errors_supported = yes; then | ||
21727 | XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-render xcb-renderutil" 2>&1` | ||
21728 | else | ||
21729 | XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-render xcb-renderutil" 2>&1` | ||
21730 | fi | ||
21731 | # Put the nasty error message in config.log where it belongs | ||
21732 | echo "$XCB_RENDER_PKG_ERRORS" >&5 | ||
21733 | |||
21734 | have_ecore_x_xcb_render="no" | ||
21735 | elif test $pkg_failed = untried; then | ||
21736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21737 | $as_echo "no" >&6; } | ||
21738 | have_ecore_x_xcb_render="no" | ||
21739 | else | ||
21740 | XCB_RENDER_CFLAGS=$pkg_cv_XCB_RENDER_CFLAGS | ||
21741 | XCB_RENDER_LIBS=$pkg_cv_XCB_RENDER_LIBS | ||
21742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21743 | $as_echo "yes" >&6; } | ||
21744 | have_ecore_x_xcb_render="yes" | ||
21745 | requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}" | ||
21746 | |||
21747 | $as_echo "#define ECORE_XCB_RENDER 1" >>confdefs.h | ||
21748 | |||
21749 | fi | ||
21750 | else | ||
21751 | have_ecore_x_xcb_render="no" | ||
21752 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"render extension explicitly disabled\"" >&5 | ||
21753 | $as_echo "$as_me: \"render extension explicitly disabled\"" >&6;} | ||
21754 | fi | ||
21755 | |||
21756 | if test "x$want_ecore_x_screensaver" != "xno"; then | ||
21757 | |||
21758 | pkg_failed=no | ||
21759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SCREENSAVER" >&5 | ||
21760 | $as_echo_n "checking for XCB_SCREENSAVER... " >&6; } | ||
21761 | |||
21762 | if test -n "$XCB_SCREENSAVER_CFLAGS"; then | ||
21763 | pkg_cv_XCB_SCREENSAVER_CFLAGS="$XCB_SCREENSAVER_CFLAGS" | ||
21764 | elif test -n "$PKG_CONFIG"; then | ||
21765 | if test -n "$PKG_CONFIG" && \ | ||
21766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-screensaver\""; } >&5 | ||
21767 | ($PKG_CONFIG --exists --print-errors "xcb-screensaver") 2>&5 | ||
21768 | ac_status=$? | ||
21769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21770 | test $ac_status = 0; }; then | ||
21771 | pkg_cv_XCB_SCREENSAVER_CFLAGS=`$PKG_CONFIG --cflags "xcb-screensaver" 2>/dev/null` | ||
21772 | else | ||
21773 | pkg_failed=yes | ||
21774 | fi | ||
21775 | else | ||
21776 | pkg_failed=untried | ||
21777 | fi | ||
21778 | if test -n "$XCB_SCREENSAVER_LIBS"; then | ||
21779 | pkg_cv_XCB_SCREENSAVER_LIBS="$XCB_SCREENSAVER_LIBS" | ||
21780 | elif test -n "$PKG_CONFIG"; then | ||
21781 | if test -n "$PKG_CONFIG" && \ | ||
21782 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-screensaver\""; } >&5 | ||
21783 | ($PKG_CONFIG --exists --print-errors "xcb-screensaver") 2>&5 | ||
21784 | ac_status=$? | ||
21785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21786 | test $ac_status = 0; }; then | ||
21787 | pkg_cv_XCB_SCREENSAVER_LIBS=`$PKG_CONFIG --libs "xcb-screensaver" 2>/dev/null` | ||
21788 | else | ||
21789 | pkg_failed=yes | ||
21790 | fi | ||
21791 | else | ||
21792 | pkg_failed=untried | ||
21793 | fi | ||
21794 | |||
21795 | |||
21796 | |||
21797 | if test $pkg_failed = yes; then | ||
21798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21799 | $as_echo "no" >&6; } | ||
21800 | |||
21801 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21802 | _pkg_short_errors_supported=yes | ||
21803 | else | ||
21804 | _pkg_short_errors_supported=no | ||
21805 | fi | ||
21806 | if test $_pkg_short_errors_supported = yes; then | ||
21807 | XCB_SCREENSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-screensaver" 2>&1` | ||
21808 | else | ||
21809 | XCB_SCREENSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-screensaver" 2>&1` | ||
21810 | fi | ||
21811 | # Put the nasty error message in config.log where it belongs | ||
21812 | echo "$XCB_SCREENSAVER_PKG_ERRORS" >&5 | ||
21813 | |||
21814 | have_ecore_x_xcb_screensaver="no" | ||
21815 | elif test $pkg_failed = untried; then | ||
21816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21817 | $as_echo "no" >&6; } | ||
21818 | have_ecore_x_xcb_screensaver="no" | ||
21819 | else | ||
21820 | XCB_SCREENSAVER_CFLAGS=$pkg_cv_XCB_SCREENSAVER_CFLAGS | ||
21821 | XCB_SCREENSAVER_LIBS=$pkg_cv_XCB_SCREENSAVER_LIBS | ||
21822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21823 | $as_echo "yes" >&6; } | ||
21824 | have_ecore_x_xcb_screensaver="yes" | ||
21825 | requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}" | ||
21826 | |||
21827 | $as_echo "#define ECORE_XCB_SCREENSAVER 1" >>confdefs.h | ||
21828 | |||
21829 | fi | ||
21830 | else | ||
21831 | have_ecore_x_xcb_screensaver="no" | ||
21832 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"screensaver extension explicitly disabled\"" >&5 | ||
21833 | $as_echo "$as_me: \"screensaver extension explicitly disabled\"" >&6;} | ||
21834 | fi | ||
21835 | |||
21836 | if test "x$want_ecore_x_shape" != "xno"; then | ||
21837 | |||
21838 | pkg_failed=no | ||
21839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SHAPE" >&5 | ||
21840 | $as_echo_n "checking for XCB_SHAPE... " >&6; } | ||
21841 | |||
21842 | if test -n "$XCB_SHAPE_CFLAGS"; then | ||
21843 | pkg_cv_XCB_SHAPE_CFLAGS="$XCB_SHAPE_CFLAGS" | ||
21844 | elif test -n "$PKG_CONFIG"; then | ||
21845 | if test -n "$PKG_CONFIG" && \ | ||
21846 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shape\""; } >&5 | ||
21847 | ($PKG_CONFIG --exists --print-errors "xcb-shape") 2>&5 | ||
21848 | ac_status=$? | ||
21849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21850 | test $ac_status = 0; }; then | ||
21851 | pkg_cv_XCB_SHAPE_CFLAGS=`$PKG_CONFIG --cflags "xcb-shape" 2>/dev/null` | ||
21852 | else | ||
21853 | pkg_failed=yes | ||
21854 | fi | ||
21855 | else | ||
21856 | pkg_failed=untried | ||
21857 | fi | ||
21858 | if test -n "$XCB_SHAPE_LIBS"; then | ||
21859 | pkg_cv_XCB_SHAPE_LIBS="$XCB_SHAPE_LIBS" | ||
21860 | elif test -n "$PKG_CONFIG"; then | ||
21861 | if test -n "$PKG_CONFIG" && \ | ||
21862 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-shape\""; } >&5 | ||
21863 | ($PKG_CONFIG --exists --print-errors "xcb-shape") 2>&5 | ||
21864 | ac_status=$? | ||
21865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21866 | test $ac_status = 0; }; then | ||
21867 | pkg_cv_XCB_SHAPE_LIBS=`$PKG_CONFIG --libs "xcb-shape" 2>/dev/null` | ||
21868 | else | ||
21869 | pkg_failed=yes | ||
21870 | fi | ||
21871 | else | ||
21872 | pkg_failed=untried | ||
21873 | fi | ||
21874 | |||
21875 | |||
21876 | |||
21877 | if test $pkg_failed = yes; then | ||
21878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21879 | $as_echo "no" >&6; } | ||
21880 | |||
21881 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21882 | _pkg_short_errors_supported=yes | ||
21883 | else | ||
21884 | _pkg_short_errors_supported=no | ||
21885 | fi | ||
21886 | if test $_pkg_short_errors_supported = yes; then | ||
21887 | XCB_SHAPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-shape" 2>&1` | ||
21888 | else | ||
21889 | XCB_SHAPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-shape" 2>&1` | ||
21890 | fi | ||
21891 | # Put the nasty error message in config.log where it belongs | ||
21892 | echo "$XCB_SHAPE_PKG_ERRORS" >&5 | ||
21893 | |||
21894 | have_ecore_x_xcb_shape="no" | ||
21895 | elif test $pkg_failed = untried; then | ||
21896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21897 | $as_echo "no" >&6; } | ||
21898 | have_ecore_x_xcb_shape="no" | ||
21899 | else | ||
21900 | XCB_SHAPE_CFLAGS=$pkg_cv_XCB_SHAPE_CFLAGS | ||
21901 | XCB_SHAPE_LIBS=$pkg_cv_XCB_SHAPE_LIBS | ||
21902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21903 | $as_echo "yes" >&6; } | ||
21904 | have_ecore_x_xcb_shape="yes" | ||
21905 | requirements_ecore_x="xcb-shape ${requirements_ecore_x}" | ||
21906 | |||
21907 | $as_echo "#define ECORE_XCB_SHAPE 1" >>confdefs.h | ||
21908 | |||
21909 | fi | ||
21910 | else | ||
21911 | have_ecore_x_xcb_shape="no" | ||
21912 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"shape extension explicitly disabled\"" >&5 | ||
21913 | $as_echo "$as_me: \"shape extension explicitly disabled\"" >&6;} | ||
21914 | fi | ||
21915 | |||
21916 | if test "x$want_ecore_x_gesture" != "xno"; then | ||
21917 | |||
21918 | pkg_failed=no | ||
21919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XGESTURE" >&5 | ||
21920 | $as_echo_n "checking for XCB_XGESTURE... " >&6; } | ||
21921 | |||
21922 | if test -n "$XCB_XGESTURE_CFLAGS"; then | ||
21923 | pkg_cv_XCB_XGESTURE_CFLAGS="$XCB_XGESTURE_CFLAGS" | ||
21924 | elif test -n "$PKG_CONFIG"; then | ||
21925 | if test -n "$PKG_CONFIG" && \ | ||
21926 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-gesture\""; } >&5 | ||
21927 | ($PKG_CONFIG --exists --print-errors "xcb-gesture") 2>&5 | ||
21928 | ac_status=$? | ||
21929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21930 | test $ac_status = 0; }; then | ||
21931 | pkg_cv_XCB_XGESTURE_CFLAGS=`$PKG_CONFIG --cflags "xcb-gesture" 2>/dev/null` | ||
21932 | else | ||
21933 | pkg_failed=yes | ||
21934 | fi | ||
21935 | else | ||
21936 | pkg_failed=untried | ||
21937 | fi | ||
21938 | if test -n "$XCB_XGESTURE_LIBS"; then | ||
21939 | pkg_cv_XCB_XGESTURE_LIBS="$XCB_XGESTURE_LIBS" | ||
21940 | elif test -n "$PKG_CONFIG"; then | ||
21941 | if test -n "$PKG_CONFIG" && \ | ||
21942 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-gesture\""; } >&5 | ||
21943 | ($PKG_CONFIG --exists --print-errors "xcb-gesture") 2>&5 | ||
21944 | ac_status=$? | ||
21945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21946 | test $ac_status = 0; }; then | ||
21947 | pkg_cv_XCB_XGESTURE_LIBS=`$PKG_CONFIG --libs "xcb-gesture" 2>/dev/null` | ||
21948 | else | ||
21949 | pkg_failed=yes | ||
21950 | fi | ||
21951 | else | ||
21952 | pkg_failed=untried | ||
21953 | fi | ||
21954 | |||
21955 | |||
21956 | |||
21957 | if test $pkg_failed = yes; then | ||
21958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21959 | $as_echo "no" >&6; } | ||
21960 | |||
21961 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21962 | _pkg_short_errors_supported=yes | ||
21963 | else | ||
21964 | _pkg_short_errors_supported=no | ||
21965 | fi | ||
21966 | if test $_pkg_short_errors_supported = yes; then | ||
21967 | XCB_XGESTURE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-gesture" 2>&1` | ||
21968 | else | ||
21969 | XCB_XGESTURE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-gesture" 2>&1` | ||
21970 | fi | ||
21971 | # Put the nasty error message in config.log where it belongs | ||
21972 | echo "$XCB_XGESTURE_PKG_ERRORS" >&5 | ||
21973 | |||
21974 | have_ecore_x_xcb_gesture="no" | ||
21975 | elif test $pkg_failed = untried; then | ||
21976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21977 | $as_echo "no" >&6; } | ||
21978 | have_ecore_x_xcb_gesture="no" | ||
21979 | else | ||
21980 | XCB_XGESTURE_CFLAGS=$pkg_cv_XCB_XGESTURE_CFLAGS | ||
21981 | XCB_XGESTURE_LIBS=$pkg_cv_XCB_XGESTURE_LIBS | ||
21982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21983 | $as_echo "yes" >&6; } | ||
21984 | have_ecore_x_xcb_gesture="yes" | ||
21985 | requirements_ecore_x="xcb-gesture ${requirements_ecore_x}" | ||
21986 | |||
21987 | $as_echo "#define ECORE_XCB_XGESTURE 1" >>confdefs.h | ||
21988 | |||
21989 | fi | ||
21990 | else | ||
21991 | have_ecore_x_xcb_gesture="no" | ||
21992 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"gesture extension explicitly disabled\"" >&5 | ||
21993 | $as_echo "$as_me: \"gesture extension explicitly disabled\"" >&6;} | ||
21994 | fi | ||
21995 | |||
21996 | if test "x$want_ecore_x_sync" != "xno"; then | ||
21997 | |||
21998 | pkg_failed=no | ||
21999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_SYNC" >&5 | ||
22000 | $as_echo_n "checking for XCB_SYNC... " >&6; } | ||
22001 | |||
22002 | if test -n "$XCB_SYNC_CFLAGS"; then | ||
22003 | pkg_cv_XCB_SYNC_CFLAGS="$XCB_SYNC_CFLAGS" | ||
22004 | elif test -n "$PKG_CONFIG"; then | ||
22005 | if test -n "$PKG_CONFIG" && \ | ||
22006 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-sync\""; } >&5 | ||
22007 | ($PKG_CONFIG --exists --print-errors "xcb-sync") 2>&5 | ||
22008 | ac_status=$? | ||
22009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22010 | test $ac_status = 0; }; then | ||
22011 | pkg_cv_XCB_SYNC_CFLAGS=`$PKG_CONFIG --cflags "xcb-sync" 2>/dev/null` | ||
22012 | else | ||
22013 | pkg_failed=yes | ||
22014 | fi | ||
22015 | else | ||
22016 | pkg_failed=untried | ||
22017 | fi | ||
22018 | if test -n "$XCB_SYNC_LIBS"; then | ||
22019 | pkg_cv_XCB_SYNC_LIBS="$XCB_SYNC_LIBS" | ||
22020 | elif test -n "$PKG_CONFIG"; then | ||
22021 | if test -n "$PKG_CONFIG" && \ | ||
22022 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-sync\""; } >&5 | ||
22023 | ($PKG_CONFIG --exists --print-errors "xcb-sync") 2>&5 | ||
22024 | ac_status=$? | ||
22025 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22026 | test $ac_status = 0; }; then | ||
22027 | pkg_cv_XCB_SYNC_LIBS=`$PKG_CONFIG --libs "xcb-sync" 2>/dev/null` | ||
22028 | else | ||
22029 | pkg_failed=yes | ||
22030 | fi | ||
22031 | else | ||
22032 | pkg_failed=untried | ||
22033 | fi | ||
22034 | |||
22035 | |||
22036 | |||
22037 | if test $pkg_failed = yes; then | ||
22038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22039 | $as_echo "no" >&6; } | ||
22040 | |||
22041 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22042 | _pkg_short_errors_supported=yes | ||
22043 | else | ||
22044 | _pkg_short_errors_supported=no | ||
22045 | fi | ||
22046 | if test $_pkg_short_errors_supported = yes; then | ||
22047 | XCB_SYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-sync" 2>&1` | ||
22048 | else | ||
22049 | XCB_SYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-sync" 2>&1` | ||
22050 | fi | ||
22051 | # Put the nasty error message in config.log where it belongs | ||
22052 | echo "$XCB_SYNC_PKG_ERRORS" >&5 | ||
22053 | |||
22054 | have_ecore_x_xcb_sync="no" | ||
22055 | elif test $pkg_failed = untried; then | ||
22056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22057 | $as_echo "no" >&6; } | ||
22058 | have_ecore_x_xcb_sync="no" | ||
22059 | else | ||
22060 | XCB_SYNC_CFLAGS=$pkg_cv_XCB_SYNC_CFLAGS | ||
22061 | XCB_SYNC_LIBS=$pkg_cv_XCB_SYNC_LIBS | ||
22062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22063 | $as_echo "yes" >&6; } | ||
22064 | have_ecore_x_xcb_sync="yes" | ||
22065 | requirements_ecore_x="xcb-sync ${requirements_ecore_x}" | ||
22066 | |||
22067 | $as_echo "#define ECORE_XCB_SYNC 1" >>confdefs.h | ||
22068 | |||
22069 | fi | ||
22070 | else | ||
22071 | have_ecore_x_xcb_sync="no" | ||
22072 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"sync extension explicitly disabled\"" >&5 | ||
22073 | $as_echo "$as_me: \"sync extension explicitly disabled\"" >&6;} | ||
22074 | fi | ||
22075 | |||
22076 | if test "x$want_ecore_x_xfixes" != "xno"; then | ||
22077 | |||
22078 | pkg_failed=no | ||
22079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XFIXES" >&5 | ||
22080 | $as_echo_n "checking for XCB_XFIXES... " >&6; } | ||
22081 | |||
22082 | if test -n "$XCB_XFIXES_CFLAGS"; then | ||
22083 | pkg_cv_XCB_XFIXES_CFLAGS="$XCB_XFIXES_CFLAGS" | ||
22084 | elif test -n "$PKG_CONFIG"; then | ||
22085 | if test -n "$PKG_CONFIG" && \ | ||
22086 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xfixes\""; } >&5 | ||
22087 | ($PKG_CONFIG --exists --print-errors "xcb-xfixes") 2>&5 | ||
22088 | ac_status=$? | ||
22089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22090 | test $ac_status = 0; }; then | ||
22091 | pkg_cv_XCB_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xcb-xfixes" 2>/dev/null` | ||
22092 | else | ||
22093 | pkg_failed=yes | ||
22094 | fi | ||
22095 | else | ||
22096 | pkg_failed=untried | ||
22097 | fi | ||
22098 | if test -n "$XCB_XFIXES_LIBS"; then | ||
22099 | pkg_cv_XCB_XFIXES_LIBS="$XCB_XFIXES_LIBS" | ||
22100 | elif test -n "$PKG_CONFIG"; then | ||
22101 | if test -n "$PKG_CONFIG" && \ | ||
22102 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xfixes\""; } >&5 | ||
22103 | ($PKG_CONFIG --exists --print-errors "xcb-xfixes") 2>&5 | ||
22104 | ac_status=$? | ||
22105 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22106 | test $ac_status = 0; }; then | ||
22107 | pkg_cv_XCB_XFIXES_LIBS=`$PKG_CONFIG --libs "xcb-xfixes" 2>/dev/null` | ||
22108 | else | ||
22109 | pkg_failed=yes | ||
22110 | fi | ||
22111 | else | ||
22112 | pkg_failed=untried | ||
22113 | fi | ||
22114 | |||
22115 | |||
22116 | |||
22117 | if test $pkg_failed = yes; then | ||
22118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22119 | $as_echo "no" >&6; } | ||
22120 | |||
22121 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22122 | _pkg_short_errors_supported=yes | ||
22123 | else | ||
22124 | _pkg_short_errors_supported=no | ||
22125 | fi | ||
22126 | if test $_pkg_short_errors_supported = yes; then | ||
22127 | XCB_XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xfixes" 2>&1` | ||
22128 | else | ||
22129 | XCB_XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xfixes" 2>&1` | ||
22130 | fi | ||
22131 | # Put the nasty error message in config.log where it belongs | ||
22132 | echo "$XCB_XFIXES_PKG_ERRORS" >&5 | ||
22133 | |||
22134 | have_ecore_x_xcb_xfixes="no" | ||
22135 | elif test $pkg_failed = untried; then | ||
22136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22137 | $as_echo "no" >&6; } | ||
22138 | have_ecore_x_xcb_xfixes="no" | ||
22139 | else | ||
22140 | XCB_XFIXES_CFLAGS=$pkg_cv_XCB_XFIXES_CFLAGS | ||
22141 | XCB_XFIXES_LIBS=$pkg_cv_XCB_XFIXES_LIBS | ||
22142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22143 | $as_echo "yes" >&6; } | ||
22144 | have_ecore_x_xcb_xfixes="yes" | ||
22145 | requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}" | ||
22146 | |||
22147 | $as_echo "#define ECORE_XCB_XFIXES 1" >>confdefs.h | ||
22148 | |||
22149 | fi | ||
22150 | else | ||
22151 | have_ecore_x_xcb_xfixes="no" | ||
22152 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xfixes extension explicitly disabled\"" >&5 | ||
22153 | $as_echo "$as_me: \"xfixes extension explicitly disabled\"" >&6;} | ||
22154 | fi | ||
22155 | |||
22156 | if test "x$want_ecore_x_xinerama" != "xno"; then | ||
22157 | |||
22158 | pkg_failed=no | ||
22159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XINERAMA" >&5 | ||
22160 | $as_echo_n "checking for XCB_XINERAMA... " >&6; } | ||
22161 | |||
22162 | if test -n "$XCB_XINERAMA_CFLAGS"; then | ||
22163 | pkg_cv_XCB_XINERAMA_CFLAGS="$XCB_XINERAMA_CFLAGS" | ||
22164 | elif test -n "$PKG_CONFIG"; then | ||
22165 | if test -n "$PKG_CONFIG" && \ | ||
22166 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xinerama\""; } >&5 | ||
22167 | ($PKG_CONFIG --exists --print-errors "xcb-xinerama") 2>&5 | ||
22168 | ac_status=$? | ||
22169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22170 | test $ac_status = 0; }; then | ||
22171 | pkg_cv_XCB_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xcb-xinerama" 2>/dev/null` | ||
22172 | else | ||
22173 | pkg_failed=yes | ||
22174 | fi | ||
22175 | else | ||
22176 | pkg_failed=untried | ||
22177 | fi | ||
22178 | if test -n "$XCB_XINERAMA_LIBS"; then | ||
22179 | pkg_cv_XCB_XINERAMA_LIBS="$XCB_XINERAMA_LIBS" | ||
22180 | elif test -n "$PKG_CONFIG"; then | ||
22181 | if test -n "$PKG_CONFIG" && \ | ||
22182 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xinerama\""; } >&5 | ||
22183 | ($PKG_CONFIG --exists --print-errors "xcb-xinerama") 2>&5 | ||
22184 | ac_status=$? | ||
22185 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22186 | test $ac_status = 0; }; then | ||
22187 | pkg_cv_XCB_XINERAMA_LIBS=`$PKG_CONFIG --libs "xcb-xinerama" 2>/dev/null` | ||
22188 | else | ||
22189 | pkg_failed=yes | ||
22190 | fi | ||
22191 | else | ||
22192 | pkg_failed=untried | ||
22193 | fi | ||
22194 | |||
22195 | |||
22196 | |||
22197 | if test $pkg_failed = yes; then | ||
22198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22199 | $as_echo "no" >&6; } | ||
22200 | |||
22201 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22202 | _pkg_short_errors_supported=yes | ||
22203 | else | ||
22204 | _pkg_short_errors_supported=no | ||
22205 | fi | ||
22206 | if test $_pkg_short_errors_supported = yes; then | ||
22207 | XCB_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xinerama" 2>&1` | ||
22208 | else | ||
22209 | XCB_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xinerama" 2>&1` | ||
22210 | fi | ||
22211 | # Put the nasty error message in config.log where it belongs | ||
22212 | echo "$XCB_XINERAMA_PKG_ERRORS" >&5 | ||
22213 | |||
22214 | have_ecore_x_xcb_xinerama="no" | ||
22215 | elif test $pkg_failed = untried; then | ||
22216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22217 | $as_echo "no" >&6; } | ||
22218 | have_ecore_x_xcb_xinerama="no" | ||
22219 | else | ||
22220 | XCB_XINERAMA_CFLAGS=$pkg_cv_XCB_XINERAMA_CFLAGS | ||
22221 | XCB_XINERAMA_LIBS=$pkg_cv_XCB_XINERAMA_LIBS | ||
22222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22223 | $as_echo "yes" >&6; } | ||
22224 | have_ecore_x_xcb_xinerama="yes" | ||
22225 | requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}" | ||
22226 | |||
22227 | $as_echo "#define ECORE_XCB_XINERAMA 1" >>confdefs.h | ||
22228 | |||
22229 | fi | ||
22230 | else | ||
22231 | have_ecore_x_xcb_xinerama="no" | ||
22232 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xinerama extension explicitly disabled\"" >&5 | ||
22233 | $as_echo "$as_me: \"xinerama extension explicitly disabled\"" >&6;} | ||
22234 | fi | ||
22235 | |||
22236 | if test "x$want_ecore_x_xprint" != "xno"; then | ||
22237 | |||
22238 | pkg_failed=no | ||
22239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XPRINT" >&5 | ||
22240 | $as_echo_n "checking for XCB_XPRINT... " >&6; } | ||
22241 | |||
22242 | if test -n "$XCB_XPRINT_CFLAGS"; then | ||
22243 | pkg_cv_XCB_XPRINT_CFLAGS="$XCB_XPRINT_CFLAGS" | ||
22244 | elif test -n "$PKG_CONFIG"; then | ||
22245 | if test -n "$PKG_CONFIG" && \ | ||
22246 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xprint\""; } >&5 | ||
22247 | ($PKG_CONFIG --exists --print-errors "xcb-xprint") 2>&5 | ||
22248 | ac_status=$? | ||
22249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22250 | test $ac_status = 0; }; then | ||
22251 | pkg_cv_XCB_XPRINT_CFLAGS=`$PKG_CONFIG --cflags "xcb-xprint" 2>/dev/null` | ||
22252 | else | ||
22253 | pkg_failed=yes | ||
22254 | fi | ||
22255 | else | ||
22256 | pkg_failed=untried | ||
22257 | fi | ||
22258 | if test -n "$XCB_XPRINT_LIBS"; then | ||
22259 | pkg_cv_XCB_XPRINT_LIBS="$XCB_XPRINT_LIBS" | ||
22260 | elif test -n "$PKG_CONFIG"; then | ||
22261 | if test -n "$PKG_CONFIG" && \ | ||
22262 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xprint\""; } >&5 | ||
22263 | ($PKG_CONFIG --exists --print-errors "xcb-xprint") 2>&5 | ||
22264 | ac_status=$? | ||
22265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22266 | test $ac_status = 0; }; then | ||
22267 | pkg_cv_XCB_XPRINT_LIBS=`$PKG_CONFIG --libs "xcb-xprint" 2>/dev/null` | ||
22268 | else | ||
22269 | pkg_failed=yes | ||
22270 | fi | ||
22271 | else | ||
22272 | pkg_failed=untried | ||
22273 | fi | ||
22274 | |||
22275 | |||
22276 | |||
22277 | if test $pkg_failed = yes; then | ||
22278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22279 | $as_echo "no" >&6; } | ||
22280 | |||
22281 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22282 | _pkg_short_errors_supported=yes | ||
22283 | else | ||
22284 | _pkg_short_errors_supported=no | ||
22285 | fi | ||
22286 | if test $_pkg_short_errors_supported = yes; then | ||
22287 | XCB_XPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xprint" 2>&1` | ||
22288 | else | ||
22289 | XCB_XPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xprint" 2>&1` | ||
22290 | fi | ||
22291 | # Put the nasty error message in config.log where it belongs | ||
22292 | echo "$XCB_XPRINT_PKG_ERRORS" >&5 | ||
22293 | |||
22294 | have_ecore_x_xcb_xprint="no" | ||
22295 | elif test $pkg_failed = untried; then | ||
22296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22297 | $as_echo "no" >&6; } | ||
22298 | have_ecore_x_xcb_xprint="no" | ||
22299 | else | ||
22300 | XCB_XPRINT_CFLAGS=$pkg_cv_XCB_XPRINT_CFLAGS | ||
22301 | XCB_XPRINT_LIBS=$pkg_cv_XCB_XPRINT_LIBS | ||
22302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22303 | $as_echo "yes" >&6; } | ||
22304 | have_ecore_x_xcb_xprint="yes" | ||
22305 | requirements_ecore_x="xcb-xprint ${requirements_ecore_x}" | ||
22306 | |||
22307 | $as_echo "#define ECORE_XCB_XPRINT 1" >>confdefs.h | ||
22308 | |||
22309 | fi | ||
22310 | else | ||
22311 | have_ecore_x_xcb_xprint="no" | ||
22312 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xprint extension explicitly disabled\"" >&5 | ||
22313 | $as_echo "$as_me: \"xprint extension explicitly disabled\"" >&6;} | ||
22314 | fi | ||
22315 | |||
22316 | if test "x$want_ecore_x_xtest" != "xno"; then | ||
22317 | |||
22318 | pkg_failed=no | ||
22319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XTEST" >&5 | ||
22320 | $as_echo_n "checking for XCB_XTEST... " >&6; } | ||
22321 | |||
22322 | if test -n "$XCB_XTEST_CFLAGS"; then | ||
22323 | pkg_cv_XCB_XTEST_CFLAGS="$XCB_XTEST_CFLAGS" | ||
22324 | elif test -n "$PKG_CONFIG"; then | ||
22325 | if test -n "$PKG_CONFIG" && \ | ||
22326 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xtest\""; } >&5 | ||
22327 | ($PKG_CONFIG --exists --print-errors "xcb-xtest") 2>&5 | ||
22328 | ac_status=$? | ||
22329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22330 | test $ac_status = 0; }; then | ||
22331 | pkg_cv_XCB_XTEST_CFLAGS=`$PKG_CONFIG --cflags "xcb-xtest" 2>/dev/null` | ||
22332 | else | ||
22333 | pkg_failed=yes | ||
22334 | fi | ||
22335 | else | ||
22336 | pkg_failed=untried | ||
22337 | fi | ||
22338 | if test -n "$XCB_XTEST_LIBS"; then | ||
22339 | pkg_cv_XCB_XTEST_LIBS="$XCB_XTEST_LIBS" | ||
22340 | elif test -n "$PKG_CONFIG"; then | ||
22341 | if test -n "$PKG_CONFIG" && \ | ||
22342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xtest\""; } >&5 | ||
22343 | ($PKG_CONFIG --exists --print-errors "xcb-xtest") 2>&5 | ||
22344 | ac_status=$? | ||
22345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22346 | test $ac_status = 0; }; then | ||
22347 | pkg_cv_XCB_XTEST_LIBS=`$PKG_CONFIG --libs "xcb-xtest" 2>/dev/null` | ||
22348 | else | ||
22349 | pkg_failed=yes | ||
22350 | fi | ||
22351 | else | ||
22352 | pkg_failed=untried | ||
22353 | fi | ||
22354 | |||
22355 | |||
22356 | |||
22357 | if test $pkg_failed = yes; then | ||
22358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22359 | $as_echo "no" >&6; } | ||
22360 | |||
22361 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22362 | _pkg_short_errors_supported=yes | ||
22363 | else | ||
22364 | _pkg_short_errors_supported=no | ||
22365 | fi | ||
22366 | if test $_pkg_short_errors_supported = yes; then | ||
22367 | XCB_XTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xtest" 2>&1` | ||
22368 | else | ||
22369 | XCB_XTEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xtest" 2>&1` | ||
22370 | fi | ||
22371 | # Put the nasty error message in config.log where it belongs | ||
22372 | echo "$XCB_XTEST_PKG_ERRORS" >&5 | ||
22373 | |||
22374 | have_ecore_x_xcb_xtest="no" | ||
22375 | elif test $pkg_failed = untried; then | ||
22376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22377 | $as_echo "no" >&6; } | ||
22378 | have_ecore_x_xcb_xtest="no" | ||
22379 | else | ||
22380 | XCB_XTEST_CFLAGS=$pkg_cv_XCB_XTEST_CFLAGS | ||
22381 | XCB_XTEST_LIBS=$pkg_cv_XCB_XTEST_LIBS | ||
22382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22383 | $as_echo "yes" >&6; } | ||
22384 | have_ecore_x_xcb_xtest="yes" | ||
22385 | requirements_ecore_x="xcb-xtest ${requirements_ecore_x}" | ||
22386 | |||
22387 | $as_echo "#define ECORE_XCB_XTEST 1" >>confdefs.h | ||
22388 | |||
22389 | fi | ||
22390 | else | ||
22391 | have_ecore_x_xcb_xtest="no" | ||
22392 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xtest extension explicitly disabled\"" >&5 | ||
22393 | $as_echo "$as_me: \"xtest extension explicitly disabled\"" >&6;} | ||
22394 | fi | ||
22395 | |||
22396 | # input extension disabled currently in xcb as xcb-input has some issues | ||
22397 | want_ecore_x_input="no" | ||
22398 | if test "x$want_ecore_x_input" != "xno"; then | ||
22399 | |||
22400 | pkg_failed=no | ||
22401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_XINPUT" >&5 | ||
22402 | $as_echo_n "checking for XCB_XINPUT... " >&6; } | ||
22403 | |||
22404 | if test -n "$XCB_XINPUT_CFLAGS"; then | ||
22405 | pkg_cv_XCB_XINPUT_CFLAGS="$XCB_XINPUT_CFLAGS" | ||
22406 | elif test -n "$PKG_CONFIG"; then | ||
22407 | if test -n "$PKG_CONFIG" && \ | ||
22408 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xinput\""; } >&5 | ||
22409 | ($PKG_CONFIG --exists --print-errors "xcb-xinput") 2>&5 | ||
22410 | ac_status=$? | ||
22411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22412 | test $ac_status = 0; }; then | ||
22413 | pkg_cv_XCB_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xcb-xinput" 2>/dev/null` | ||
22414 | else | ||
22415 | pkg_failed=yes | ||
22416 | fi | ||
22417 | else | ||
22418 | pkg_failed=untried | ||
22419 | fi | ||
22420 | if test -n "$XCB_XINPUT_LIBS"; then | ||
22421 | pkg_cv_XCB_XINPUT_LIBS="$XCB_XINPUT_LIBS" | ||
22422 | elif test -n "$PKG_CONFIG"; then | ||
22423 | if test -n "$PKG_CONFIG" && \ | ||
22424 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xinput\""; } >&5 | ||
22425 | ($PKG_CONFIG --exists --print-errors "xcb-xinput") 2>&5 | ||
22426 | ac_status=$? | ||
22427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22428 | test $ac_status = 0; }; then | ||
22429 | pkg_cv_XCB_XINPUT_LIBS=`$PKG_CONFIG --libs "xcb-xinput" 2>/dev/null` | ||
22430 | else | ||
22431 | pkg_failed=yes | ||
22432 | fi | ||
22433 | else | ||
22434 | pkg_failed=untried | ||
22435 | fi | ||
22436 | |||
22437 | |||
22438 | |||
22439 | if test $pkg_failed = yes; then | ||
22440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22441 | $as_echo "no" >&6; } | ||
22442 | |||
22443 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22444 | _pkg_short_errors_supported=yes | ||
22445 | else | ||
22446 | _pkg_short_errors_supported=no | ||
22447 | fi | ||
22448 | if test $_pkg_short_errors_supported = yes; then | ||
22449 | XCB_XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-xinput" 2>&1` | ||
22450 | else | ||
22451 | XCB_XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-xinput" 2>&1` | ||
22452 | fi | ||
22453 | # Put the nasty error message in config.log where it belongs | ||
22454 | echo "$XCB_XINPUT_PKG_ERRORS" >&5 | ||
22455 | |||
22456 | have_ecore_x_xcb_xinput="no" | ||
22457 | elif test $pkg_failed = untried; then | ||
22458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22459 | $as_echo "no" >&6; } | ||
22460 | have_ecore_x_xcb_xinput="no" | ||
22461 | else | ||
22462 | XCB_XINPUT_CFLAGS=$pkg_cv_XCB_XINPUT_CFLAGS | ||
22463 | XCB_XINPUT_LIBS=$pkg_cv_XCB_XINPUT_LIBS | ||
22464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22465 | $as_echo "yes" >&6; } | ||
22466 | have_ecore_x_xcb_xinput="yes" | ||
22467 | requirements_ecore_x="xcb-xinput ${requirements_ecore_x}" | ||
22468 | |||
22469 | $as_echo "#define ECORE_XCB_XINPUT 1" >>confdefs.h | ||
22470 | |||
22471 | fi | ||
22472 | else | ||
22473 | have_ecore_x_xcb_xinput="no" | ||
22474 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"xinput extension explicitly disabled\"" >&5 | ||
22475 | $as_echo "$as_me: \"xinput extension explicitly disabled\"" >&6;} | ||
22476 | fi | ||
22477 | |||
22478 | if test "x$want_ecore_x_cursor" != "xno"; then | ||
22479 | |||
22480 | pkg_failed=no | ||
22481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_CURSOR" >&5 | ||
22482 | $as_echo_n "checking for XCB_CURSOR... " >&6; } | ||
22483 | |||
22484 | if test -n "$XCB_CURSOR_CFLAGS"; then | ||
22485 | pkg_cv_XCB_CURSOR_CFLAGS="$XCB_CURSOR_CFLAGS" | ||
22486 | elif test -n "$PKG_CONFIG"; then | ||
22487 | if test -n "$PKG_CONFIG" && \ | ||
22488 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render xcb-renderutil\""; } >&5 | ||
22489 | ($PKG_CONFIG --exists --print-errors "xcb-render xcb-renderutil") 2>&5 | ||
22490 | ac_status=$? | ||
22491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22492 | test $ac_status = 0; }; then | ||
22493 | pkg_cv_XCB_CURSOR_CFLAGS=`$PKG_CONFIG --cflags "xcb-render xcb-renderutil" 2>/dev/null` | ||
22494 | else | ||
22495 | pkg_failed=yes | ||
22496 | fi | ||
22497 | else | ||
22498 | pkg_failed=untried | ||
22499 | fi | ||
22500 | if test -n "$XCB_CURSOR_LIBS"; then | ||
22501 | pkg_cv_XCB_CURSOR_LIBS="$XCB_CURSOR_LIBS" | ||
22502 | elif test -n "$PKG_CONFIG"; then | ||
22503 | if test -n "$PKG_CONFIG" && \ | ||
22504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render xcb-renderutil\""; } >&5 | ||
22505 | ($PKG_CONFIG --exists --print-errors "xcb-render xcb-renderutil") 2>&5 | ||
22506 | ac_status=$? | ||
22507 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22508 | test $ac_status = 0; }; then | ||
22509 | pkg_cv_XCB_CURSOR_LIBS=`$PKG_CONFIG --libs "xcb-render xcb-renderutil" 2>/dev/null` | ||
22510 | else | ||
22511 | pkg_failed=yes | ||
22512 | fi | ||
22513 | else | ||
22514 | pkg_failed=untried | ||
22515 | fi | ||
22516 | |||
22517 | |||
22518 | |||
22519 | if test $pkg_failed = yes; then | ||
22520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22521 | $as_echo "no" >&6; } | ||
22522 | |||
22523 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
22524 | _pkg_short_errors_supported=yes | ||
22525 | else | ||
22526 | _pkg_short_errors_supported=no | ||
22527 | fi | ||
22528 | if test $_pkg_short_errors_supported = yes; then | ||
22529 | XCB_CURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb-render xcb-renderutil" 2>&1` | ||
22530 | else | ||
22531 | XCB_CURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb-render xcb-renderutil" 2>&1` | ||
22532 | fi | ||
22533 | # Put the nasty error message in config.log where it belongs | ||
22534 | echo "$XCB_CURSOR_PKG_ERRORS" >&5 | ||
22535 | |||
22536 | have_ecore_x_xcb_cursor="no" | ||
22537 | elif test $pkg_failed = untried; then | ||
22538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22539 | $as_echo "no" >&6; } | ||
22540 | have_ecore_x_xcb_cursor="no" | ||
22541 | else | ||
22542 | XCB_CURSOR_CFLAGS=$pkg_cv_XCB_CURSOR_CFLAGS | ||
22543 | XCB_CURSOR_LIBS=$pkg_cv_XCB_CURSOR_LIBS | ||
22544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22545 | $as_echo "yes" >&6; } | ||
22546 | have_ecore_x_xcb_cursor="yes" | ||
22547 | requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}" | ||
22548 | |||
22549 | $as_echo "#define ECORE_XCB_CURSOR 1" >>confdefs.h | ||
22550 | |||
22551 | fi | ||
22552 | else | ||
22553 | have_ecore_x_xcb_cursor="no" | ||
22554 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"cursor extension explicitly disabled\"" >&5 | ||
22555 | $as_echo "$as_me: \"cursor extension explicitly disabled\"" >&6;} | ||
22556 | fi | ||
22557 | |||
22558 | # if test "x$want_ecore_x_dri" != "xno"; then | ||
22559 | # PKG_CHECK_MODULES(XCB_DRI, xcb-dri2, | ||
22560 | # [ have_ecore_x_xcb_dri="yes" | ||
22561 | # requirements_ecore_x="xcb-dri2 ${requirements_ecore_x}" | ||
22562 | # AC_DEFINE(ECORE_XCB_DRI, 1, [Build support for XCB dri/dri2]) ], | ||
22563 | # [ have_ecore_x_xcb_dri="no" ]) | ||
22564 | # else | ||
22565 | # have_ecore_x_xcb_dri="no" | ||
22566 | # AC_MSG_NOTICE("dri extension explicitly disabled") | ||
22567 | # fi | ||
22568 | |||
22569 | |||
22570 | $as_echo "#define HAVE_ECORE_X_XCB 1" >>confdefs.h | ||
22571 | |||
22572 | |||
22573 | x_cflags=$ECORE_XCB_CFLAGS | ||
22574 | x_libs=$ECORE_XCB_LIBS | ||
22575 | have_x="yes" | ||
22576 | |||
22577 | have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB" | ||
22578 | |||
22579 | fi | ||
22580 | fi | ||
22581 | |||
22582 | if ! test "x$have_ecore_x_xcb" = "xyes" ; then | ||
22583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
22584 | $as_echo_n "checking for X... " >&6; } | ||
22585 | |||
22586 | |||
22587 | # Check whether --with-x was given. | ||
22588 | if test "${with_x+set}" = set; then : | ||
22589 | withval=$with_x; | ||
22590 | fi | ||
22591 | |||
22592 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
22593 | if test "x$with_x" = xno; then | ||
22594 | # The user explicitly disabled X. | ||
22595 | have_x=disabled | ||
22596 | else | ||
22597 | case $x_includes,$x_libraries in #( | ||
22598 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
22599 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
22600 | $as_echo_n "(cached) " >&6 | ||
22601 | else | ||
22602 | # One or both of the vars are not set, and there is no cached value. | ||
22603 | ac_x_includes=no ac_x_libraries=no | ||
22604 | rm -f -r conftest.dir | ||
22605 | if mkdir conftest.dir; then | ||
22606 | cd conftest.dir | ||
22607 | cat >Imakefile <<'_ACEOF' | ||
22608 | incroot: | ||
22609 | @echo incroot='${INCROOT}' | ||
22610 | usrlibdir: | ||
22611 | @echo usrlibdir='${USRLIBDIR}' | ||
22612 | libdir: | ||
22613 | @echo libdir='${LIBDIR}' | ||
22614 | _ACEOF | ||
22615 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
22616 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
22617 | for ac_var in incroot usrlibdir libdir; do | ||
22618 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
22619 | done | ||
22620 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
22621 | for ac_extension in a so sl dylib la dll; do | ||
22622 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
22623 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
22624 | ac_im_usrlibdir=$ac_im_libdir; break | ||
22625 | fi | ||
22626 | done | ||
22627 | # Screen out bogus values from the imake configuration. They are | ||
22628 | # bogus both because they are the default anyway, and because | ||
22629 | # using them would break gcc on systems where it needs fixed includes. | ||
22630 | case $ac_im_incroot in | ||
22631 | /usr/include) ac_x_includes= ;; | ||
22632 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
22633 | esac | ||
22634 | case $ac_im_usrlibdir in | ||
22635 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
22636 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
22637 | esac | ||
22638 | fi | ||
22639 | cd .. | ||
22640 | rm -f -r conftest.dir | ||
22641 | fi | ||
22642 | |||
22643 | # Standard set of common directories for X headers. | ||
22644 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
22645 | ac_x_header_dirs=' | ||
22646 | /usr/X11/include | ||
22647 | /usr/X11R7/include | ||
22648 | /usr/X11R6/include | ||
22649 | /usr/X11R5/include | ||
22650 | /usr/X11R4/include | ||
22651 | |||
22652 | /usr/include/X11 | ||
22653 | /usr/include/X11R7 | ||
22654 | /usr/include/X11R6 | ||
22655 | /usr/include/X11R5 | ||
22656 | /usr/include/X11R4 | ||
22657 | |||
22658 | /usr/local/X11/include | ||
22659 | /usr/local/X11R7/include | ||
22660 | /usr/local/X11R6/include | ||
22661 | /usr/local/X11R5/include | ||
22662 | /usr/local/X11R4/include | ||
22663 | |||
22664 | /usr/local/include/X11 | ||
22665 | /usr/local/include/X11R7 | ||
22666 | /usr/local/include/X11R6 | ||
22667 | /usr/local/include/X11R5 | ||
22668 | /usr/local/include/X11R4 | ||
22669 | |||
22670 | /usr/X386/include | ||
22671 | /usr/x386/include | ||
22672 | /usr/XFree86/include/X11 | ||
22673 | |||
22674 | /usr/include | ||
22675 | /usr/local/include | ||
22676 | /usr/unsupported/include | ||
22677 | /usr/athena/include | ||
22678 | /usr/local/x11r5/include | ||
22679 | /usr/lpp/Xamples/include | ||
22680 | |||
22681 | /usr/openwin/include | ||
22682 | /usr/openwin/share/include' | ||
22683 | |||
22684 | if test "$ac_x_includes" = no; then | ||
22685 | # Guess where to find include files, by looking for Xlib.h. | ||
22686 | # First, try using that file with no special directory specified. | ||
22687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22688 | /* end confdefs.h. */ | ||
22689 | #include <X11/Xlib.h> | ||
22690 | _ACEOF | ||
22691 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
22692 | # We can compile using X headers with no special include directory. | ||
22693 | ac_x_includes= | ||
22694 | else | ||
22695 | for ac_dir in $ac_x_header_dirs; do | ||
22696 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
22697 | ac_x_includes=$ac_dir | ||
22698 | break | ||
22699 | fi | ||
22700 | done | ||
22701 | fi | ||
22702 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
22703 | fi # $ac_x_includes = no | ||
22704 | |||
22705 | if test "$ac_x_libraries" = no; then | ||
22706 | # Check for the libraries. | ||
22707 | # See if we find them without any special options. | ||
22708 | # Don't add to $LIBS permanently. | ||
22709 | ac_save_LIBS=$LIBS | ||
22710 | LIBS="-lX11 $LIBS" | ||
22711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22712 | /* end confdefs.h. */ | ||
22713 | #include <X11/Xlib.h> | ||
22714 | int | ||
22715 | main () | ||
22716 | { | ||
22717 | XrmInitialize () | ||
22718 | ; | ||
22719 | return 0; | ||
22720 | } | ||
22721 | _ACEOF | ||
22722 | if ac_fn_c_try_link "$LINENO"; then : | ||
22723 | LIBS=$ac_save_LIBS | ||
22724 | # We can link X programs with no special library path. | ||
22725 | ac_x_libraries= | ||
22726 | else | ||
22727 | LIBS=$ac_save_LIBS | ||
22728 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
22729 | do | ||
22730 | # Don't even attempt the hair of trying to link an X program! | ||
22731 | for ac_extension in a so sl dylib la dll; do | ||
22732 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
22733 | ac_x_libraries=$ac_dir | ||
22734 | break 2 | ||
22735 | fi | ||
22736 | done | ||
22737 | done | ||
22738 | fi | ||
22739 | rm -f core conftest.err conftest.$ac_objext \ | ||
22740 | conftest$ac_exeext conftest.$ac_ext | ||
22741 | fi # $ac_x_libraries = no | ||
22742 | |||
22743 | case $ac_x_includes,$ac_x_libraries in #( | ||
22744 | no,* | *,no | *\'*) | ||
22745 | # Didn't find X, or a directory has "'" in its name. | ||
22746 | ac_cv_have_x="have_x=no";; #( | ||
22747 | *) | ||
22748 | # Record where we found X for the cache. | ||
22749 | ac_cv_have_x="have_x=yes\ | ||
22750 | ac_x_includes='$ac_x_includes'\ | ||
22751 | ac_x_libraries='$ac_x_libraries'" | ||
22752 | esac | ||
22753 | fi | ||
22754 | ;; #( | ||
22755 | *) have_x=yes;; | ||
22756 | esac | ||
22757 | eval "$ac_cv_have_x" | ||
22758 | fi # $with_x != no | ||
22759 | |||
22760 | if test "$have_x" != yes; then | ||
22761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
22762 | $as_echo "$have_x" >&6; } | ||
22763 | no_x=yes | ||
22764 | else | ||
22765 | # If each of the values was on the command line, it overrides each guess. | ||
22766 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
22767 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
22768 | # Update the cache value to reflect the command line values. | ||
22769 | ac_cv_have_x="have_x=yes\ | ||
22770 | ac_x_includes='$x_includes'\ | ||
22771 | ac_x_libraries='$x_libraries'" | ||
22772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
22773 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
22774 | fi | ||
22775 | |||
22776 | if test "$no_x" = yes; then | ||
22777 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
22778 | |||
22779 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
22780 | |||
22781 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
22782 | else | ||
22783 | if test -n "$x_includes"; then | ||
22784 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
22785 | fi | ||
22786 | |||
22787 | # It would also be nice to do this for all -L options, not just this one. | ||
22788 | if test -n "$x_libraries"; then | ||
22789 | X_LIBS="$X_LIBS -L$x_libraries" | ||
22790 | # For Solaris; some versions of Sun CC require a space after -R and | ||
22791 | # others require no space. Words are not sufficient . . . . | ||
22792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
22793 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
22794 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
22795 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
22796 | ac_c_werror_flag=yes | ||
22797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22798 | /* end confdefs.h. */ | ||
22799 | |||
22800 | int | ||
22801 | main () | ||
22802 | { | ||
22803 | |||
22804 | ; | ||
22805 | return 0; | ||
22806 | } | ||
22807 | _ACEOF | ||
22808 | if ac_fn_c_try_link "$LINENO"; then : | ||
22809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22810 | $as_echo "no" >&6; } | ||
22811 | X_LIBS="$X_LIBS -R$x_libraries" | ||
22812 | else | ||
22813 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
22814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22815 | /* end confdefs.h. */ | ||
22816 | |||
22817 | int | ||
22818 | main () | ||
22819 | { | ||
22820 | |||
22821 | ; | ||
22822 | return 0; | ||
22823 | } | ||
22824 | _ACEOF | ||
22825 | if ac_fn_c_try_link "$LINENO"; then : | ||
22826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22827 | $as_echo "yes" >&6; } | ||
22828 | X_LIBS="$X_LIBS -R $x_libraries" | ||
22829 | else | ||
22830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
22831 | $as_echo "neither works" >&6; } | ||
22832 | fi | ||
22833 | rm -f core conftest.err conftest.$ac_objext \ | ||
22834 | conftest$ac_exeext conftest.$ac_ext | ||
22835 | fi | ||
22836 | rm -f core conftest.err conftest.$ac_objext \ | ||
22837 | conftest$ac_exeext conftest.$ac_ext | ||
22838 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
22839 | LIBS=$ac_xsave_LIBS | ||
22840 | fi | ||
22841 | |||
22842 | # Check for system-dependent libraries X programs must link with. | ||
22843 | # Do this before checking for the system-independent R6 libraries | ||
22844 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
22845 | |||
22846 | if test "$ISC" = yes; then | ||
22847 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
22848 | else | ||
22849 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
22850 | # libraries were built with DECnet support. And Karl Berry says | ||
22851 | # the Alpha needs dnet_stub (dnet does not exist). | ||
22852 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
22853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22854 | /* end confdefs.h. */ | ||
22855 | |||
22856 | /* Override any GCC internal prototype to avoid an error. | ||
22857 | Use char because int might match the return type of a GCC | ||
22858 | builtin and then its argument prototype would still apply. */ | ||
22859 | #ifdef __cplusplus | ||
22860 | extern "C" | ||
22861 | #endif | ||
22862 | char XOpenDisplay (); | ||
22863 | int | ||
22864 | main () | ||
22865 | { | ||
22866 | return XOpenDisplay (); | ||
22867 | ; | ||
22868 | return 0; | ||
22869 | } | ||
22870 | _ACEOF | ||
22871 | if ac_fn_c_try_link "$LINENO"; then : | ||
22872 | |||
22873 | else | ||
22874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
22875 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
22876 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
22877 | $as_echo_n "(cached) " >&6 | ||
22878 | else | ||
22879 | ac_check_lib_save_LIBS=$LIBS | ||
22880 | LIBS="-ldnet $LIBS" | ||
22881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22882 | /* end confdefs.h. */ | ||
22883 | |||
22884 | /* Override any GCC internal prototype to avoid an error. | ||
22885 | Use char because int might match the return type of a GCC | ||
22886 | builtin and then its argument prototype would still apply. */ | ||
22887 | #ifdef __cplusplus | ||
22888 | extern "C" | ||
22889 | #endif | ||
22890 | char dnet_ntoa (); | ||
22891 | int | ||
22892 | main () | ||
22893 | { | ||
22894 | return dnet_ntoa (); | ||
22895 | ; | ||
22896 | return 0; | ||
22897 | } | ||
22898 | _ACEOF | ||
22899 | if ac_fn_c_try_link "$LINENO"; then : | ||
22900 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
22901 | else | ||
22902 | ac_cv_lib_dnet_dnet_ntoa=no | ||
22903 | fi | ||
22904 | rm -f core conftest.err conftest.$ac_objext \ | ||
22905 | conftest$ac_exeext conftest.$ac_ext | ||
22906 | LIBS=$ac_check_lib_save_LIBS | ||
22907 | fi | ||
22908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
22909 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
22910 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
22911 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
22912 | fi | ||
22913 | |||
22914 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
22915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
22916 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
22917 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
22918 | $as_echo_n "(cached) " >&6 | ||
22919 | else | ||
22920 | ac_check_lib_save_LIBS=$LIBS | ||
22921 | LIBS="-ldnet_stub $LIBS" | ||
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 dnet_ntoa (); | ||
22932 | int | ||
22933 | main () | ||
22934 | { | ||
22935 | return dnet_ntoa (); | ||
22936 | ; | ||
22937 | return 0; | ||
22938 | } | ||
22939 | _ACEOF | ||
22940 | if ac_fn_c_try_link "$LINENO"; then : | ||
22941 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
22942 | else | ||
22943 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
22944 | fi | ||
22945 | rm -f core conftest.err conftest.$ac_objext \ | ||
22946 | conftest$ac_exeext conftest.$ac_ext | ||
22947 | LIBS=$ac_check_lib_save_LIBS | ||
22948 | fi | ||
22949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
22950 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
22951 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
22952 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
22953 | fi | ||
22954 | |||
22955 | fi | ||
22956 | fi | ||
22957 | rm -f core conftest.err conftest.$ac_objext \ | ||
22958 | conftest$ac_exeext conftest.$ac_ext | ||
22959 | LIBS="$ac_xsave_LIBS" | ||
22960 | |||
22961 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
22962 | # to get the SysV transport functions. | ||
22963 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
22964 | # needs -lnsl. | ||
22965 | # The nsl library prevents programs from opening the X display | ||
22966 | # on Irix 5.2, according to T.E. Dickey. | ||
22967 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
22968 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
22969 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
22970 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
22971 | |||
22972 | fi | ||
22973 | |||
22974 | if test $ac_cv_func_gethostbyname = no; then | ||
22975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
22976 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
22977 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
22978 | $as_echo_n "(cached) " >&6 | ||
22979 | else | ||
22980 | ac_check_lib_save_LIBS=$LIBS | ||
22981 | LIBS="-lnsl $LIBS" | ||
22982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22983 | /* end confdefs.h. */ | ||
22984 | |||
22985 | /* Override any GCC internal prototype to avoid an error. | ||
22986 | Use char because int might match the return type of a GCC | ||
22987 | builtin and then its argument prototype would still apply. */ | ||
22988 | #ifdef __cplusplus | ||
22989 | extern "C" | ||
22990 | #endif | ||
22991 | char gethostbyname (); | ||
22992 | int | ||
22993 | main () | ||
22994 | { | ||
22995 | return gethostbyname (); | ||
22996 | ; | ||
22997 | return 0; | ||
22998 | } | ||
22999 | _ACEOF | ||
23000 | if ac_fn_c_try_link "$LINENO"; then : | ||
23001 | ac_cv_lib_nsl_gethostbyname=yes | ||
23002 | else | ||
23003 | ac_cv_lib_nsl_gethostbyname=no | ||
23004 | fi | ||
23005 | rm -f core conftest.err conftest.$ac_objext \ | ||
23006 | conftest$ac_exeext conftest.$ac_ext | ||
23007 | LIBS=$ac_check_lib_save_LIBS | ||
23008 | fi | ||
23009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
23010 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
23011 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
23012 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
23013 | fi | ||
23014 | |||
23015 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
23016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
23017 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
23018 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
23019 | $as_echo_n "(cached) " >&6 | ||
23020 | else | ||
23021 | ac_check_lib_save_LIBS=$LIBS | ||
23022 | LIBS="-lbsd $LIBS" | ||
23023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23024 | /* end confdefs.h. */ | ||
23025 | |||
23026 | /* Override any GCC internal prototype to avoid an error. | ||
23027 | Use char because int might match the return type of a GCC | ||
23028 | builtin and then its argument prototype would still apply. */ | ||
23029 | #ifdef __cplusplus | ||
23030 | extern "C" | ||
23031 | #endif | ||
23032 | char gethostbyname (); | ||
23033 | int | ||
23034 | main () | ||
23035 | { | ||
23036 | return gethostbyname (); | ||
23037 | ; | ||
23038 | return 0; | ||
23039 | } | ||
23040 | _ACEOF | ||
23041 | if ac_fn_c_try_link "$LINENO"; then : | ||
23042 | ac_cv_lib_bsd_gethostbyname=yes | ||
23043 | else | ||
23044 | ac_cv_lib_bsd_gethostbyname=no | ||
23045 | fi | ||
23046 | rm -f core conftest.err conftest.$ac_objext \ | ||
23047 | conftest$ac_exeext conftest.$ac_ext | ||
23048 | LIBS=$ac_check_lib_save_LIBS | ||
23049 | fi | ||
23050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
23051 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
23052 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
23053 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
23054 | fi | ||
23055 | |||
23056 | fi | ||
23057 | fi | ||
23058 | |||
23059 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
23060 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
23061 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
23062 | # on later versions), says Simon Leinen: it contains gethostby* | ||
23063 | # variants that don't use the name server (or something). -lsocket | ||
23064 | # must be given before -lnsl if both are needed. We assume that | ||
23065 | # if connect needs -lnsl, so does gethostbyname. | ||
23066 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
23067 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
23068 | |||
23069 | fi | ||
23070 | |||
23071 | if test $ac_cv_func_connect = no; then | ||
23072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
23073 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
23074 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
23075 | $as_echo_n "(cached) " >&6 | ||
23076 | else | ||
23077 | ac_check_lib_save_LIBS=$LIBS | ||
23078 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
23079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23080 | /* end confdefs.h. */ | ||
23081 | |||
23082 | /* Override any GCC internal prototype to avoid an error. | ||
23083 | Use char because int might match the return type of a GCC | ||
23084 | builtin and then its argument prototype would still apply. */ | ||
23085 | #ifdef __cplusplus | ||
23086 | extern "C" | ||
23087 | #endif | ||
23088 | char connect (); | ||
23089 | int | ||
23090 | main () | ||
23091 | { | ||
23092 | return connect (); | ||
23093 | ; | ||
23094 | return 0; | ||
23095 | } | ||
23096 | _ACEOF | ||
23097 | if ac_fn_c_try_link "$LINENO"; then : | ||
23098 | ac_cv_lib_socket_connect=yes | ||
23099 | else | ||
23100 | ac_cv_lib_socket_connect=no | ||
23101 | fi | ||
23102 | rm -f core conftest.err conftest.$ac_objext \ | ||
23103 | conftest$ac_exeext conftest.$ac_ext | ||
23104 | LIBS=$ac_check_lib_save_LIBS | ||
23105 | fi | ||
23106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
23107 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
23108 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
23109 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
23110 | fi | ||
23111 | |||
23112 | fi | ||
23113 | |||
23114 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
23115 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
23116 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
23117 | |||
23118 | fi | ||
23119 | |||
23120 | if test $ac_cv_func_remove = no; then | ||
23121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
23122 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
23123 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
23124 | $as_echo_n "(cached) " >&6 | ||
23125 | else | ||
23126 | ac_check_lib_save_LIBS=$LIBS | ||
23127 | LIBS="-lposix $LIBS" | ||
23128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23129 | /* end confdefs.h. */ | ||
23130 | |||
23131 | /* Override any GCC internal prototype to avoid an error. | ||
23132 | Use char because int might match the return type of a GCC | ||
23133 | builtin and then its argument prototype would still apply. */ | ||
23134 | #ifdef __cplusplus | ||
23135 | extern "C" | ||
23136 | #endif | ||
23137 | char remove (); | ||
23138 | int | ||
23139 | main () | ||
23140 | { | ||
23141 | return remove (); | ||
23142 | ; | ||
23143 | return 0; | ||
23144 | } | ||
23145 | _ACEOF | ||
23146 | if ac_fn_c_try_link "$LINENO"; then : | ||
23147 | ac_cv_lib_posix_remove=yes | ||
23148 | else | ||
23149 | ac_cv_lib_posix_remove=no | ||
23150 | fi | ||
23151 | rm -f core conftest.err conftest.$ac_objext \ | ||
23152 | conftest$ac_exeext conftest.$ac_ext | ||
23153 | LIBS=$ac_check_lib_save_LIBS | ||
23154 | fi | ||
23155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
23156 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
23157 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
23158 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
23159 | fi | ||
23160 | |||
23161 | fi | ||
23162 | |||
23163 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
23164 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
23165 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
23166 | |||
23167 | fi | ||
23168 | |||
23169 | if test $ac_cv_func_shmat = no; then | ||
23170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
23171 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
23172 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
23173 | $as_echo_n "(cached) " >&6 | ||
23174 | else | ||
23175 | ac_check_lib_save_LIBS=$LIBS | ||
23176 | LIBS="-lipc $LIBS" | ||
23177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23178 | /* end confdefs.h. */ | ||
23179 | |||
23180 | /* Override any GCC internal prototype to avoid an error. | ||
23181 | Use char because int might match the return type of a GCC | ||
23182 | builtin and then its argument prototype would still apply. */ | ||
23183 | #ifdef __cplusplus | ||
23184 | extern "C" | ||
23185 | #endif | ||
23186 | char shmat (); | ||
23187 | int | ||
23188 | main () | ||
23189 | { | ||
23190 | return shmat (); | ||
23191 | ; | ||
23192 | return 0; | ||
23193 | } | ||
23194 | _ACEOF | ||
23195 | if ac_fn_c_try_link "$LINENO"; then : | ||
23196 | ac_cv_lib_ipc_shmat=yes | ||
23197 | else | ||
23198 | ac_cv_lib_ipc_shmat=no | ||
23199 | fi | ||
23200 | rm -f core conftest.err conftest.$ac_objext \ | ||
23201 | conftest$ac_exeext conftest.$ac_ext | ||
23202 | LIBS=$ac_check_lib_save_LIBS | ||
23203 | fi | ||
23204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
23205 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
23206 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
23207 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
23208 | fi | ||
23209 | |||
23210 | fi | ||
23211 | fi | ||
23212 | |||
23213 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
23214 | ac_save_LDFLAGS=$LDFLAGS | ||
23215 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
23216 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
23217 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
23218 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
23219 | # These have to be linked with before -lX11, unlike the other | ||
23220 | # libraries we check for below, so use a different variable. | ||
23221 | # John Interrante, Karl Berry | ||
23222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
23223 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
23224 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
23225 | $as_echo_n "(cached) " >&6 | ||
23226 | else | ||
23227 | ac_check_lib_save_LIBS=$LIBS | ||
23228 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
23229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23230 | /* end confdefs.h. */ | ||
23231 | |||
23232 | /* Override any GCC internal prototype to avoid an error. | ||
23233 | Use char because int might match the return type of a GCC | ||
23234 | builtin and then its argument prototype would still apply. */ | ||
23235 | #ifdef __cplusplus | ||
23236 | extern "C" | ||
23237 | #endif | ||
23238 | char IceConnectionNumber (); | ||
23239 | int | ||
23240 | main () | ||
23241 | { | ||
23242 | return IceConnectionNumber (); | ||
23243 | ; | ||
23244 | return 0; | ||
23245 | } | ||
23246 | _ACEOF | ||
23247 | if ac_fn_c_try_link "$LINENO"; then : | ||
23248 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
23249 | else | ||
23250 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
23251 | fi | ||
23252 | rm -f core conftest.err conftest.$ac_objext \ | ||
23253 | conftest$ac_exeext conftest.$ac_ext | ||
23254 | LIBS=$ac_check_lib_save_LIBS | ||
23255 | fi | ||
23256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
23257 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
23258 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
23259 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
23260 | fi | ||
23261 | |||
23262 | LDFLAGS=$ac_save_LDFLAGS | ||
23263 | |||
23264 | fi | ||
23265 | |||
23266 | ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default" | ||
23267 | if test "x$ac_cv_header_X11_X_h" = x""yes; then : | ||
23268 | |||
23269 | if test "x$want_evas_simple_x11" = "xyes"; then | ||
23270 | x_libs="${x_libs} -lX11 -lXext" | ||
23271 | else | ||
23272 | x_dir=${x_dir:-/usr/X11R6} | ||
23273 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
23274 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" | ||
23275 | fi | ||
23276 | have_ecore_x_xlib="yes" | ||
23277 | |||
23278 | |||
23279 | fi | ||
23280 | |||
23281 | |||
23282 | |||
23283 | if test "x$have_ecore_x_xlib" = "xyes"; then | ||
23284 | Xcursor_libs="" | ||
23285 | Xcursor_cflags="" | ||
23286 | use_Xcursor="no" | ||
23287 | PCFLAGS=$CFLAGS | ||
23288 | CFLAGS="$x_cflags $x_includes" | ||
23289 | |||
23290 | if test "x$want_ecore_x_cursor" = "xyes"; then | ||
23291 | ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" " | ||
23292 | #include <X11/Xlib.h> | ||
23293 | |||
23294 | |||
23295 | " | ||
23296 | if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = x""yes; then : | ||
23297 | |||
23298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageLoadCursor in -lXcursor" >&5 | ||
23299 | $as_echo_n "checking for XcursorImageLoadCursor in -lXcursor... " >&6; } | ||
23300 | if test "${ac_cv_lib_Xcursor_XcursorImageLoadCursor+set}" = set; then : | ||
23301 | $as_echo_n "(cached) " >&6 | ||
23302 | else | ||
23303 | ac_check_lib_save_LIBS=$LIBS | ||
23304 | LIBS="-lXcursor | ||
23305 | $x_libs -lXrender | ||
23306 | |||
23307 | $LIBS" | ||
23308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23309 | /* end confdefs.h. */ | ||
23310 | |||
23311 | /* Override any GCC internal prototype to avoid an error. | ||
23312 | Use char because int might match the return type of a GCC | ||
23313 | builtin and then its argument prototype would still apply. */ | ||
23314 | #ifdef __cplusplus | ||
23315 | extern "C" | ||
23316 | #endif | ||
23317 | char XcursorImageLoadCursor (); | ||
23318 | int | ||
23319 | main () | ||
23320 | { | ||
23321 | return XcursorImageLoadCursor (); | ||
23322 | ; | ||
23323 | return 0; | ||
23324 | } | ||
23325 | _ACEOF | ||
23326 | if ac_fn_c_try_link "$LINENO"; then : | ||
23327 | ac_cv_lib_Xcursor_XcursorImageLoadCursor=yes | ||
23328 | else | ||
23329 | ac_cv_lib_Xcursor_XcursorImageLoadCursor=no | ||
23330 | fi | ||
23331 | rm -f core conftest.err conftest.$ac_objext \ | ||
23332 | conftest$ac_exeext conftest.$ac_ext | ||
23333 | LIBS=$ac_check_lib_save_LIBS | ||
23334 | fi | ||
23335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageLoadCursor" >&5 | ||
23336 | $as_echo "$ac_cv_lib_Xcursor_XcursorImageLoadCursor" >&6; } | ||
23337 | if test "x$ac_cv_lib_Xcursor_XcursorImageLoadCursor" = x""yes; then : | ||
23338 | |||
23339 | |||
23340 | $as_echo "#define ECORE_XCURSOR 1" >>confdefs.h | ||
23341 | |||
23342 | Xcursor_cflags="" | ||
23343 | Xcursor_libs="-lXcursor" | ||
23344 | use_Xcursor="yes" | ||
23345 | |||
23346 | else | ||
23347 | |||
23348 | Xcursor_cflags="" | ||
23349 | Xcursor_libs="" | ||
23350 | use_Xcursor="no" | ||
23351 | |||
23352 | fi | ||
23353 | |||
23354 | |||
23355 | else | ||
23356 | |||
23357 | Xcursor_cflags="" | ||
23358 | Xcursor_libs="" | ||
23359 | use_Xcursor="no" | ||
23360 | |||
23361 | fi | ||
23362 | |||
23363 | |||
23364 | CFLAGS=$PCFLAGS | ||
23365 | else | ||
23366 | Xcursor_cflags="" | ||
23367 | Xcursor_libs="" | ||
23368 | use_Xcursor="no" | ||
23369 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"Xcursor explicitly disabled\"" >&5 | ||
23370 | $as_echo "$as_me: \"Xcursor explicitly disabled\"" >&6;} | ||
23371 | fi | ||
23372 | |||
23373 | |||
23374 | |||
23375 | |||
23376 | |||
23377 | |||
23378 | XKB_CFLAGS="" | ||
23379 | XKB_LIBS="" | ||
23380 | use_xkb="no" | ||
23381 | |||
23382 | if test "x$want_ecore_x_xkb" != "xno"; then | ||
23383 | SAVE_CFLAGS=$CFLAGS | ||
23384 | CFLAGS="$x_cflags $x_includes" | ||
23385 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XKB.h" "ac_cv_header_X11_extensions_XKB_h" " #include <X11/Xlib.h> | ||
23386 | |||
23387 | " | ||
23388 | if test "x$ac_cv_header_X11_extensions_XKB_h" = x""yes; then : | ||
23389 | |||
23390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbSetDetectableAutoRepeat in -lX11" >&5 | ||
23391 | $as_echo_n "checking for XkbSetDetectableAutoRepeat in -lX11... " >&6; } | ||
23392 | if test "${ac_cv_lib_X11_XkbSetDetectableAutoRepeat+set}" = set; then : | ||
23393 | $as_echo_n "(cached) " >&6 | ||
23394 | else | ||
23395 | ac_check_lib_save_LIBS=$LIBS | ||
23396 | LIBS="-lX11 $x_libs | ||
23397 | $LIBS" | ||
23398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23399 | /* end confdefs.h. */ | ||
23400 | |||
23401 | /* Override any GCC internal prototype to avoid an error. | ||
23402 | Use char because int might match the return type of a GCC | ||
23403 | builtin and then its argument prototype would still apply. */ | ||
23404 | #ifdef __cplusplus | ||
23405 | extern "C" | ||
23406 | #endif | ||
23407 | char XkbSetDetectableAutoRepeat (); | ||
23408 | int | ||
23409 | main () | ||
23410 | { | ||
23411 | return XkbSetDetectableAutoRepeat (); | ||
23412 | ; | ||
23413 | return 0; | ||
23414 | } | ||
23415 | _ACEOF | ||
23416 | if ac_fn_c_try_link "$LINENO"; then : | ||
23417 | ac_cv_lib_X11_XkbSetDetectableAutoRepeat=yes | ||
23418 | else | ||
23419 | ac_cv_lib_X11_XkbSetDetectableAutoRepeat=no | ||
23420 | fi | ||
23421 | rm -f core conftest.err conftest.$ac_objext \ | ||
23422 | conftest$ac_exeext conftest.$ac_ext | ||
23423 | LIBS=$ac_check_lib_save_LIBS | ||
23424 | fi | ||
23425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbSetDetectableAutoRepeat" >&5 | ||
23426 | $as_echo "$ac_cv_lib_X11_XkbSetDetectableAutoRepeat" >&6; } | ||
23427 | if test "x$ac_cv_lib_X11_XkbSetDetectableAutoRepeat" = x""yes; then : | ||
23428 | |||
23429 | |||
23430 | $as_echo "#define ECORE_XKB 1" >>confdefs.h | ||
23431 | |||
23432 | XKB_LIBS="-lX11" | ||
23433 | use_xkb="yes" | ||
23434 | |||
23435 | else | ||
23436 | use_xkb="no" | ||
23437 | fi | ||
23438 | |||
23439 | |||
23440 | else | ||
23441 | use_xkb="no" | ||
23442 | fi | ||
23443 | |||
23444 | |||
23445 | CFLAGS=$SAVE_CFLAGS | ||
23446 | else | ||
23447 | use_xkb="no" | ||
23448 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xkb support disabled" >&5 | ||
23449 | $as_echo "$as_me: Xkb support disabled" >&6;} | ||
23450 | fi | ||
23451 | |||
23452 | |||
23453 | |||
23454 | |||
23455 | |||
23456 | |||
23457 | |||
23458 | |||
23459 | |||
23460 | XCOMPOSITE_CFLAGS="" | ||
23461 | XCOMPOSITE_LIBS="" | ||
23462 | use_xcomposite="no" | ||
23463 | |||
23464 | if test "x$want_ecore_x_composite" != "xno"; then | ||
23465 | SAVE_CFLAGS=$CFLAGS | ||
23466 | CFLAGS="$x_cflags $x_includes" | ||
23467 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" " #include <X11/Xlib.h> | ||
23468 | |||
23469 | " | ||
23470 | if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = x""yes; then : | ||
23471 | |||
23472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCompositeQueryExtension in -lXcomposite" >&5 | ||
23473 | $as_echo_n "checking for XCompositeQueryExtension in -lXcomposite... " >&6; } | ||
23474 | if test "${ac_cv_lib_Xcomposite_XCompositeQueryExtension+set}" = set; then : | ||
23475 | $as_echo_n "(cached) " >&6 | ||
23476 | else | ||
23477 | ac_check_lib_save_LIBS=$LIBS | ||
23478 | LIBS="-lXcomposite $x_libs | ||
23479 | $LIBS" | ||
23480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23481 | /* end confdefs.h. */ | ||
23482 | |||
23483 | /* Override any GCC internal prototype to avoid an error. | ||
23484 | Use char because int might match the return type of a GCC | ||
23485 | builtin and then its argument prototype would still apply. */ | ||
23486 | #ifdef __cplusplus | ||
23487 | extern "C" | ||
23488 | #endif | ||
23489 | char XCompositeQueryExtension (); | ||
23490 | int | ||
23491 | main () | ||
23492 | { | ||
23493 | return XCompositeQueryExtension (); | ||
23494 | ; | ||
23495 | return 0; | ||
23496 | } | ||
23497 | _ACEOF | ||
23498 | if ac_fn_c_try_link "$LINENO"; then : | ||
23499 | ac_cv_lib_Xcomposite_XCompositeQueryExtension=yes | ||
23500 | else | ||
23501 | ac_cv_lib_Xcomposite_XCompositeQueryExtension=no | ||
23502 | fi | ||
23503 | rm -f core conftest.err conftest.$ac_objext \ | ||
23504 | conftest$ac_exeext conftest.$ac_ext | ||
23505 | LIBS=$ac_check_lib_save_LIBS | ||
23506 | fi | ||
23507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&5 | ||
23508 | $as_echo "$ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&6; } | ||
23509 | if test "x$ac_cv_lib_Xcomposite_XCompositeQueryExtension" = x""yes; then : | ||
23510 | |||
23511 | |||
23512 | $as_echo "#define ECORE_XCOMPOSITE 1" >>confdefs.h | ||
23513 | |||
23514 | XCOMPOSITE_LIBS="-lXcomposite" | ||
23515 | use_xcomposite="yes" | ||
23516 | |||
23517 | else | ||
23518 | use_xcomposite="no" | ||
23519 | fi | ||
23520 | |||
23521 | |||
23522 | else | ||
23523 | use_xcomposite="no" | ||
23524 | fi | ||
23525 | |||
23526 | |||
23527 | CFLAGS=$SAVE_CFLAGS | ||
23528 | else | ||
23529 | use_xcomposite="no" | ||
23530 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xcomposite support disabled" >&5 | ||
23531 | $as_echo "$as_me: Xcomposite support disabled" >&6;} | ||
23532 | fi | ||
23533 | |||
23534 | |||
23535 | |||
23536 | |||
23537 | |||
23538 | |||
23539 | |||
23540 | |||
23541 | |||
23542 | XDAMAGE_CFLAGS="" | ||
23543 | XDAMAGE_LIBS="" | ||
23544 | use_xdamage="no" | ||
23545 | |||
23546 | if test "x$want_ecore_x_damage" != "xno"; then | ||
23547 | SAVE_CFLAGS=$CFLAGS | ||
23548 | CFLAGS="$x_cflags $x_includes" | ||
23549 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdamage.h" "ac_cv_header_X11_extensions_Xdamage_h" " #include <X11/Xlib.h> | ||
23550 | |||
23551 | " | ||
23552 | if test "x$ac_cv_header_X11_extensions_Xdamage_h" = x""yes; then : | ||
23553 | |||
23554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamageSubtract in -lXdamage" >&5 | ||
23555 | $as_echo_n "checking for XDamageSubtract in -lXdamage... " >&6; } | ||
23556 | if test "${ac_cv_lib_Xdamage_XDamageSubtract+set}" = set; then : | ||
23557 | $as_echo_n "(cached) " >&6 | ||
23558 | else | ||
23559 | ac_check_lib_save_LIBS=$LIBS | ||
23560 | LIBS="-lXdamage $x_libs | ||
23561 | $LIBS" | ||
23562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23563 | /* end confdefs.h. */ | ||
23564 | |||
23565 | /* Override any GCC internal prototype to avoid an error. | ||
23566 | Use char because int might match the return type of a GCC | ||
23567 | builtin and then its argument prototype would still apply. */ | ||
23568 | #ifdef __cplusplus | ||
23569 | extern "C" | ||
23570 | #endif | ||
23571 | char XDamageSubtract (); | ||
23572 | int | ||
23573 | main () | ||
23574 | { | ||
23575 | return XDamageSubtract (); | ||
23576 | ; | ||
23577 | return 0; | ||
23578 | } | ||
23579 | _ACEOF | ||
23580 | if ac_fn_c_try_link "$LINENO"; then : | ||
23581 | ac_cv_lib_Xdamage_XDamageSubtract=yes | ||
23582 | else | ||
23583 | ac_cv_lib_Xdamage_XDamageSubtract=no | ||
23584 | fi | ||
23585 | rm -f core conftest.err conftest.$ac_objext \ | ||
23586 | conftest$ac_exeext conftest.$ac_ext | ||
23587 | LIBS=$ac_check_lib_save_LIBS | ||
23588 | fi | ||
23589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdamage_XDamageSubtract" >&5 | ||
23590 | $as_echo "$ac_cv_lib_Xdamage_XDamageSubtract" >&6; } | ||
23591 | if test "x$ac_cv_lib_Xdamage_XDamageSubtract" = x""yes; then : | ||
23592 | |||
23593 | |||
23594 | $as_echo "#define ECORE_XDAMAGE 1" >>confdefs.h | ||
23595 | |||
23596 | XDAMAGE_LIBS="-lXdamage" | ||
23597 | use_xdamage="yes" | ||
23598 | |||
23599 | else | ||
23600 | use_xdamage="no" | ||
23601 | fi | ||
23602 | |||
23603 | |||
23604 | else | ||
23605 | use_xdamage="no" | ||
23606 | fi | ||
23607 | |||
23608 | |||
23609 | CFLAGS=$SAVE_CFLAGS | ||
23610 | else | ||
23611 | use_xdamage="no" | ||
23612 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xdamage support disabled" >&5 | ||
23613 | $as_echo "$as_me: Xdamage support disabled" >&6;} | ||
23614 | fi | ||
23615 | |||
23616 | |||
23617 | |||
23618 | |||
23619 | |||
23620 | |||
23621 | |||
23622 | |||
23623 | |||
23624 | XDPMS_CFLAGS="" | ||
23625 | XDPMS_LIBS="" | ||
23626 | use_xdpms="no" | ||
23627 | |||
23628 | if test "x$want_ecore_x_dpms" != "xno"; then | ||
23629 | SAVE_CFLAGS=$CFLAGS | ||
23630 | CFLAGS="$x_cflags $x_includes" | ||
23631 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" " #include <X11/Xlib.h> | ||
23632 | |||
23633 | " | ||
23634 | if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then : | ||
23635 | |||
23636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSQueryExtension in -lXdpms" >&5 | ||
23637 | $as_echo_n "checking for DPMSQueryExtension in -lXdpms... " >&6; } | ||
23638 | if test "${ac_cv_lib_Xdpms_DPMSQueryExtension+set}" = set; then : | ||
23639 | $as_echo_n "(cached) " >&6 | ||
23640 | else | ||
23641 | ac_check_lib_save_LIBS=$LIBS | ||
23642 | LIBS="-lXdpms $x_libs | ||
23643 | $LIBS" | ||
23644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23645 | /* end confdefs.h. */ | ||
23646 | |||
23647 | /* Override any GCC internal prototype to avoid an error. | ||
23648 | Use char because int might match the return type of a GCC | ||
23649 | builtin and then its argument prototype would still apply. */ | ||
23650 | #ifdef __cplusplus | ||
23651 | extern "C" | ||
23652 | #endif | ||
23653 | char DPMSQueryExtension (); | ||
23654 | int | ||
23655 | main () | ||
23656 | { | ||
23657 | return DPMSQueryExtension (); | ||
23658 | ; | ||
23659 | return 0; | ||
23660 | } | ||
23661 | _ACEOF | ||
23662 | if ac_fn_c_try_link "$LINENO"; then : | ||
23663 | ac_cv_lib_Xdpms_DPMSQueryExtension=yes | ||
23664 | else | ||
23665 | ac_cv_lib_Xdpms_DPMSQueryExtension=no | ||
23666 | fi | ||
23667 | rm -f core conftest.err conftest.$ac_objext \ | ||
23668 | conftest$ac_exeext conftest.$ac_ext | ||
23669 | LIBS=$ac_check_lib_save_LIBS | ||
23670 | fi | ||
23671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdpms_DPMSQueryExtension" >&5 | ||
23672 | $as_echo "$ac_cv_lib_Xdpms_DPMSQueryExtension" >&6; } | ||
23673 | if test "x$ac_cv_lib_Xdpms_DPMSQueryExtension" = x""yes; then : | ||
23674 | |||
23675 | |||
23676 | $as_echo "#define ECORE_XDPMS 1" >>confdefs.h | ||
23677 | |||
23678 | XDPMS_LIBS="-lXdpms" | ||
23679 | use_xdpms="yes" | ||
23680 | |||
23681 | else | ||
23682 | use_xdpms="no" | ||
23683 | fi | ||
23684 | |||
23685 | |||
23686 | else | ||
23687 | use_xdpms="no" | ||
23688 | fi | ||
23689 | |||
23690 | |||
23691 | CFLAGS=$SAVE_CFLAGS | ||
23692 | else | ||
23693 | use_xdpms="no" | ||
23694 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xdpms support disabled" >&5 | ||
23695 | $as_echo "$as_me: Xdpms support disabled" >&6;} | ||
23696 | fi | ||
23697 | |||
23698 | |||
23699 | |||
23700 | |||
23701 | |||
23702 | |||
23703 | |||
23704 | if test "x$use_xdpms" = "xno" ; then | ||
23705 | |||
23706 | |||
23707 | XDPMS_CFLAGS="" | ||
23708 | XDPMS_LIBS="" | ||
23709 | use_xdpms="no" | ||
23710 | |||
23711 | if test "x$want_ecore_x_dpms" != "xno"; then | ||
23712 | SAVE_CFLAGS=$CFLAGS | ||
23713 | CFLAGS="$x_cflags $x_includes" | ||
23714 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" " #include <X11/Xlib.h> | ||
23715 | |||
23716 | " | ||
23717 | if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then : | ||
23718 | |||
23719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSQueryExtension in -lXext" >&5 | ||
23720 | $as_echo_n "checking for DPMSQueryExtension in -lXext... " >&6; } | ||
23721 | if test "${ac_cv_lib_Xext_DPMSQueryExtension+set}" = set; then : | ||
23722 | $as_echo_n "(cached) " >&6 | ||
23723 | else | ||
23724 | ac_check_lib_save_LIBS=$LIBS | ||
23725 | LIBS="-lXext $x_libs | ||
23726 | $LIBS" | ||
23727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23728 | /* end confdefs.h. */ | ||
23729 | |||
23730 | /* Override any GCC internal prototype to avoid an error. | ||
23731 | Use char because int might match the return type of a GCC | ||
23732 | builtin and then its argument prototype would still apply. */ | ||
23733 | #ifdef __cplusplus | ||
23734 | extern "C" | ||
23735 | #endif | ||
23736 | char DPMSQueryExtension (); | ||
23737 | int | ||
23738 | main () | ||
23739 | { | ||
23740 | return DPMSQueryExtension (); | ||
23741 | ; | ||
23742 | return 0; | ||
23743 | } | ||
23744 | _ACEOF | ||
23745 | if ac_fn_c_try_link "$LINENO"; then : | ||
23746 | ac_cv_lib_Xext_DPMSQueryExtension=yes | ||
23747 | else | ||
23748 | ac_cv_lib_Xext_DPMSQueryExtension=no | ||
23749 | fi | ||
23750 | rm -f core conftest.err conftest.$ac_objext \ | ||
23751 | conftest$ac_exeext conftest.$ac_ext | ||
23752 | LIBS=$ac_check_lib_save_LIBS | ||
23753 | fi | ||
23754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSQueryExtension" >&5 | ||
23755 | $as_echo "$ac_cv_lib_Xext_DPMSQueryExtension" >&6; } | ||
23756 | if test "x$ac_cv_lib_Xext_DPMSQueryExtension" = x""yes; then : | ||
23757 | |||
23758 | |||
23759 | $as_echo "#define ECORE_XDPMS 1" >>confdefs.h | ||
23760 | |||
23761 | XDPMS_LIBS="-lXext" | ||
23762 | use_xdpms="yes" | ||
23763 | |||
23764 | else | ||
23765 | use_xdpms="no" | ||
23766 | fi | ||
23767 | |||
23768 | |||
23769 | else | ||
23770 | use_xdpms="no" | ||
23771 | fi | ||
23772 | |||
23773 | |||
23774 | CFLAGS=$SAVE_CFLAGS | ||
23775 | else | ||
23776 | use_xdpms="no" | ||
23777 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xdpms support disabled" >&5 | ||
23778 | $as_echo "$as_me: Xdpms support disabled" >&6;} | ||
23779 | fi | ||
23780 | |||
23781 | |||
23782 | |||
23783 | |||
23784 | |||
23785 | |||
23786 | |||
23787 | fi | ||
23788 | |||
23789 | |||
23790 | XFIXES_CFLAGS="" | ||
23791 | XFIXES_LIBS="" | ||
23792 | use_xfixes="no" | ||
23793 | |||
23794 | if test "x$want_ecore_x_xfixes" != "xno"; then | ||
23795 | SAVE_CFLAGS=$CFLAGS | ||
23796 | CFLAGS="$x_cflags $x_includes" | ||
23797 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" " #include <X11/Xlib.h> | ||
23798 | |||
23799 | " | ||
23800 | if test "x$ac_cv_header_X11_extensions_Xfixes_h" = x""yes; then : | ||
23801 | |||
23802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesExpandRegion in -lXfixes" >&5 | ||
23803 | $as_echo_n "checking for XFixesExpandRegion in -lXfixes... " >&6; } | ||
23804 | if test "${ac_cv_lib_Xfixes_XFixesExpandRegion+set}" = set; then : | ||
23805 | $as_echo_n "(cached) " >&6 | ||
23806 | else | ||
23807 | ac_check_lib_save_LIBS=$LIBS | ||
23808 | LIBS="-lXfixes $x_libs | ||
23809 | $LIBS" | ||
23810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23811 | /* end confdefs.h. */ | ||
23812 | |||
23813 | /* Override any GCC internal prototype to avoid an error. | ||
23814 | Use char because int might match the return type of a GCC | ||
23815 | builtin and then its argument prototype would still apply. */ | ||
23816 | #ifdef __cplusplus | ||
23817 | extern "C" | ||
23818 | #endif | ||
23819 | char XFixesExpandRegion (); | ||
23820 | int | ||
23821 | main () | ||
23822 | { | ||
23823 | return XFixesExpandRegion (); | ||
23824 | ; | ||
23825 | return 0; | ||
23826 | } | ||
23827 | _ACEOF | ||
23828 | if ac_fn_c_try_link "$LINENO"; then : | ||
23829 | ac_cv_lib_Xfixes_XFixesExpandRegion=yes | ||
23830 | else | ||
23831 | ac_cv_lib_Xfixes_XFixesExpandRegion=no | ||
23832 | fi | ||
23833 | rm -f core conftest.err conftest.$ac_objext \ | ||
23834 | conftest$ac_exeext conftest.$ac_ext | ||
23835 | LIBS=$ac_check_lib_save_LIBS | ||
23836 | fi | ||
23837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesExpandRegion" >&5 | ||
23838 | $as_echo "$ac_cv_lib_Xfixes_XFixesExpandRegion" >&6; } | ||
23839 | if test "x$ac_cv_lib_Xfixes_XFixesExpandRegion" = x""yes; then : | ||
23840 | |||
23841 | |||
23842 | $as_echo "#define ECORE_XFIXES 1" >>confdefs.h | ||
23843 | |||
23844 | XFIXES_LIBS="-lXfixes" | ||
23845 | use_xfixes="yes" | ||
23846 | |||
23847 | else | ||
23848 | use_xfixes="no" | ||
23849 | fi | ||
23850 | |||
23851 | |||
23852 | else | ||
23853 | use_xfixes="no" | ||
23854 | fi | ||
23855 | |||
23856 | |||
23857 | CFLAGS=$SAVE_CFLAGS | ||
23858 | else | ||
23859 | use_xfixes="no" | ||
23860 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xfixes support disabled" >&5 | ||
23861 | $as_echo "$as_me: Xfixes support disabled" >&6;} | ||
23862 | fi | ||
23863 | |||
23864 | |||
23865 | |||
23866 | |||
23867 | |||
23868 | |||
23869 | |||
23870 | |||
23871 | |||
23872 | XINERAMA_CFLAGS="" | ||
23873 | XINERAMA_LIBS="" | ||
23874 | use_xinerama="no" | ||
23875 | |||
23876 | if test "x$want_ecore_x_xinerama" != "xno"; then | ||
23877 | SAVE_CFLAGS=$CFLAGS | ||
23878 | CFLAGS="$x_cflags $x_includes" | ||
23879 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" " #include <X11/Xlib.h> | ||
23880 | |||
23881 | " | ||
23882 | if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then : | ||
23883 | |||
23884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5 | ||
23885 | $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; } | ||
23886 | if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then : | ||
23887 | $as_echo_n "(cached) " >&6 | ||
23888 | else | ||
23889 | ac_check_lib_save_LIBS=$LIBS | ||
23890 | LIBS="-lXinerama $x_libs | ||
23891 | $LIBS" | ||
23892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23893 | /* end confdefs.h. */ | ||
23894 | |||
23895 | /* Override any GCC internal prototype to avoid an error. | ||
23896 | Use char because int might match the return type of a GCC | ||
23897 | builtin and then its argument prototype would still apply. */ | ||
23898 | #ifdef __cplusplus | ||
23899 | extern "C" | ||
23900 | #endif | ||
23901 | char XineramaQueryScreens (); | ||
23902 | int | ||
23903 | main () | ||
23904 | { | ||
23905 | return XineramaQueryScreens (); | ||
23906 | ; | ||
23907 | return 0; | ||
23908 | } | ||
23909 | _ACEOF | ||
23910 | if ac_fn_c_try_link "$LINENO"; then : | ||
23911 | ac_cv_lib_Xinerama_XineramaQueryScreens=yes | ||
23912 | else | ||
23913 | ac_cv_lib_Xinerama_XineramaQueryScreens=no | ||
23914 | fi | ||
23915 | rm -f core conftest.err conftest.$ac_objext \ | ||
23916 | conftest$ac_exeext conftest.$ac_ext | ||
23917 | LIBS=$ac_check_lib_save_LIBS | ||
23918 | fi | ||
23919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 | ||
23920 | $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; } | ||
23921 | if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then : | ||
23922 | |||
23923 | |||
23924 | $as_echo "#define ECORE_XINERAMA 1" >>confdefs.h | ||
23925 | |||
23926 | XINERAMA_LIBS="-lXinerama" | ||
23927 | use_xinerama="yes" | ||
23928 | |||
23929 | else | ||
23930 | use_xinerama="no" | ||
23931 | fi | ||
23932 | |||
23933 | |||
23934 | else | ||
23935 | use_xinerama="no" | ||
23936 | fi | ||
23937 | |||
23938 | |||
23939 | CFLAGS=$SAVE_CFLAGS | ||
23940 | else | ||
23941 | use_xinerama="no" | ||
23942 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xinerama support disabled" >&5 | ||
23943 | $as_echo "$as_me: Xinerama support disabled" >&6;} | ||
23944 | fi | ||
23945 | |||
23946 | |||
23947 | |||
23948 | |||
23949 | |||
23950 | |||
23951 | |||
23952 | |||
23953 | |||
23954 | XPRINT_CFLAGS="" | ||
23955 | XPRINT_LIBS="" | ||
23956 | use_xprint="no" | ||
23957 | |||
23958 | if test "x$want_ecore_x_xprint" != "xno"; then | ||
23959 | SAVE_CFLAGS=$CFLAGS | ||
23960 | CFLAGS="$x_cflags $x_includes" | ||
23961 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Print.h" "ac_cv_header_X11_extensions_Print_h" " #include <X11/Xlib.h> | ||
23962 | |||
23963 | " | ||
23964 | if test "x$ac_cv_header_X11_extensions_Print_h" = x""yes; then : | ||
23965 | |||
23966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpQueryScreens in -lXp" >&5 | ||
23967 | $as_echo_n "checking for XpQueryScreens in -lXp... " >&6; } | ||
23968 | if test "${ac_cv_lib_Xp_XpQueryScreens+set}" = set; then : | ||
23969 | $as_echo_n "(cached) " >&6 | ||
23970 | else | ||
23971 | ac_check_lib_save_LIBS=$LIBS | ||
23972 | LIBS="-lXp $x_libs | ||
23973 | $LIBS" | ||
23974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23975 | /* end confdefs.h. */ | ||
23976 | |||
23977 | /* Override any GCC internal prototype to avoid an error. | ||
23978 | Use char because int might match the return type of a GCC | ||
23979 | builtin and then its argument prototype would still apply. */ | ||
23980 | #ifdef __cplusplus | ||
23981 | extern "C" | ||
23982 | #endif | ||
23983 | char XpQueryScreens (); | ||
23984 | int | ||
23985 | main () | ||
23986 | { | ||
23987 | return XpQueryScreens (); | ||
23988 | ; | ||
23989 | return 0; | ||
23990 | } | ||
23991 | _ACEOF | ||
23992 | if ac_fn_c_try_link "$LINENO"; then : | ||
23993 | ac_cv_lib_Xp_XpQueryScreens=yes | ||
23994 | else | ||
23995 | ac_cv_lib_Xp_XpQueryScreens=no | ||
23996 | fi | ||
23997 | rm -f core conftest.err conftest.$ac_objext \ | ||
23998 | conftest$ac_exeext conftest.$ac_ext | ||
23999 | LIBS=$ac_check_lib_save_LIBS | ||
24000 | fi | ||
24001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpQueryScreens" >&5 | ||
24002 | $as_echo "$ac_cv_lib_Xp_XpQueryScreens" >&6; } | ||
24003 | if test "x$ac_cv_lib_Xp_XpQueryScreens" = x""yes; then : | ||
24004 | |||
24005 | |||
24006 | $as_echo "#define ECORE_XPRINT 1" >>confdefs.h | ||
24007 | |||
24008 | XPRINT_LIBS="-lXp" | ||
24009 | use_xprint="yes" | ||
24010 | |||
24011 | else | ||
24012 | use_xprint="no" | ||
24013 | fi | ||
24014 | |||
24015 | |||
24016 | else | ||
24017 | use_xprint="no" | ||
24018 | fi | ||
24019 | |||
24020 | |||
24021 | CFLAGS=$SAVE_CFLAGS | ||
24022 | else | ||
24023 | use_xprint="no" | ||
24024 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xprint support disabled" >&5 | ||
24025 | $as_echo "$as_me: Xprint support disabled" >&6;} | ||
24026 | fi | ||
24027 | |||
24028 | |||
24029 | |||
24030 | |||
24031 | |||
24032 | |||
24033 | |||
24034 | |||
24035 | |||
24036 | XRANDR_CFLAGS="" | ||
24037 | XRANDR_LIBS="" | ||
24038 | use_xrandr="no" | ||
24039 | |||
24040 | if test "x$want_ecore_x_randr" != "xno"; then | ||
24041 | SAVE_CFLAGS=$CFLAGS | ||
24042 | CFLAGS="$x_cflags $x_includes" | ||
24043 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" " #include <X11/Xlib.h> | ||
24044 | |||
24045 | " | ||
24046 | if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then : | ||
24047 | |||
24048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResourcesCurrent in -lXrandr" >&5 | ||
24049 | $as_echo_n "checking for XRRGetScreenResourcesCurrent in -lXrandr... " >&6; } | ||
24050 | if test "${ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent+set}" = set; then : | ||
24051 | $as_echo_n "(cached) " >&6 | ||
24052 | else | ||
24053 | ac_check_lib_save_LIBS=$LIBS | ||
24054 | LIBS="-lXrandr $x_libs | ||
24055 | $LIBS" | ||
24056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24057 | /* end confdefs.h. */ | ||
24058 | |||
24059 | /* Override any GCC internal prototype to avoid an error. | ||
24060 | Use char because int might match the return type of a GCC | ||
24061 | builtin and then its argument prototype would still apply. */ | ||
24062 | #ifdef __cplusplus | ||
24063 | extern "C" | ||
24064 | #endif | ||
24065 | char XRRGetScreenResourcesCurrent (); | ||
24066 | int | ||
24067 | main () | ||
24068 | { | ||
24069 | return XRRGetScreenResourcesCurrent (); | ||
24070 | ; | ||
24071 | return 0; | ||
24072 | } | ||
24073 | _ACEOF | ||
24074 | if ac_fn_c_try_link "$LINENO"; then : | ||
24075 | ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent=yes | ||
24076 | else | ||
24077 | ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent=no | ||
24078 | fi | ||
24079 | rm -f core conftest.err conftest.$ac_objext \ | ||
24080 | conftest$ac_exeext conftest.$ac_ext | ||
24081 | LIBS=$ac_check_lib_save_LIBS | ||
24082 | fi | ||
24083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent" >&5 | ||
24084 | $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent" >&6; } | ||
24085 | if test "x$ac_cv_lib_Xrandr_XRRGetScreenResourcesCurrent" = x""yes; then : | ||
24086 | |||
24087 | |||
24088 | $as_echo "#define ECORE_XRANDR 1" >>confdefs.h | ||
24089 | |||
24090 | XRANDR_LIBS="-lXrandr" | ||
24091 | use_xrandr="yes" | ||
24092 | |||
24093 | else | ||
24094 | use_xrandr="no" | ||
24095 | fi | ||
24096 | |||
24097 | |||
24098 | else | ||
24099 | use_xrandr="no" | ||
24100 | fi | ||
24101 | |||
24102 | |||
24103 | CFLAGS=$SAVE_CFLAGS | ||
24104 | else | ||
24105 | use_xrandr="no" | ||
24106 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xrandr support disabled" >&5 | ||
24107 | $as_echo "$as_me: Xrandr support disabled" >&6;} | ||
24108 | fi | ||
24109 | |||
24110 | |||
24111 | |||
24112 | |||
24113 | |||
24114 | |||
24115 | |||
24116 | |||
24117 | |||
24118 | XGESTURE_CFLAGS="" | ||
24119 | XGESTURE_LIBS="" | ||
24120 | use_xgesture="no" | ||
24121 | |||
24122 | if test "x$want_ecore_x_gesture" != "xno"; then | ||
24123 | SAVE_CFLAGS=$CFLAGS | ||
24124 | CFLAGS="$x_cflags $x_includes" | ||
24125 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/gesture.h" "ac_cv_header_X11_extensions_gesture_h" " #include <X11/Xlib.h> | ||
24126 | |||
24127 | " | ||
24128 | if test "x$ac_cv_header_X11_extensions_gesture_h" = x""yes; then : | ||
24129 | |||
24130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGestureQueryExtension in -lXgesture" >&5 | ||
24131 | $as_echo_n "checking for XGestureQueryExtension in -lXgesture... " >&6; } | ||
24132 | if test "${ac_cv_lib_Xgesture_XGestureQueryExtension+set}" = set; then : | ||
24133 | $as_echo_n "(cached) " >&6 | ||
24134 | else | ||
24135 | ac_check_lib_save_LIBS=$LIBS | ||
24136 | LIBS="-lXgesture $x_libs | ||
24137 | $LIBS" | ||
24138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24139 | /* end confdefs.h. */ | ||
24140 | |||
24141 | /* Override any GCC internal prototype to avoid an error. | ||
24142 | Use char because int might match the return type of a GCC | ||
24143 | builtin and then its argument prototype would still apply. */ | ||
24144 | #ifdef __cplusplus | ||
24145 | extern "C" | ||
24146 | #endif | ||
24147 | char XGestureQueryExtension (); | ||
24148 | int | ||
24149 | main () | ||
24150 | { | ||
24151 | return XGestureQueryExtension (); | ||
24152 | ; | ||
24153 | return 0; | ||
24154 | } | ||
24155 | _ACEOF | ||
24156 | if ac_fn_c_try_link "$LINENO"; then : | ||
24157 | ac_cv_lib_Xgesture_XGestureQueryExtension=yes | ||
24158 | else | ||
24159 | ac_cv_lib_Xgesture_XGestureQueryExtension=no | ||
24160 | fi | ||
24161 | rm -f core conftest.err conftest.$ac_objext \ | ||
24162 | conftest$ac_exeext conftest.$ac_ext | ||
24163 | LIBS=$ac_check_lib_save_LIBS | ||
24164 | fi | ||
24165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xgesture_XGestureQueryExtension" >&5 | ||
24166 | $as_echo "$ac_cv_lib_Xgesture_XGestureQueryExtension" >&6; } | ||
24167 | if test "x$ac_cv_lib_Xgesture_XGestureQueryExtension" = x""yes; then : | ||
24168 | |||
24169 | |||
24170 | $as_echo "#define ECORE_XGESTURE 1" >>confdefs.h | ||
24171 | |||
24172 | XGESTURE_LIBS="-lXgesture" | ||
24173 | use_xgesture="yes" | ||
24174 | |||
24175 | else | ||
24176 | use_xgesture="no" | ||
24177 | fi | ||
24178 | |||
24179 | |||
24180 | else | ||
24181 | use_xgesture="no" | ||
24182 | fi | ||
24183 | |||
24184 | |||
24185 | CFLAGS=$SAVE_CFLAGS | ||
24186 | else | ||
24187 | use_xgesture="no" | ||
24188 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xgesture support disabled" >&5 | ||
24189 | $as_echo "$as_me: Xgesture support disabled" >&6;} | ||
24190 | fi | ||
24191 | |||
24192 | |||
24193 | |||
24194 | |||
24195 | |||
24196 | |||
24197 | |||
24198 | |||
24199 | |||
24200 | XRENDER_CFLAGS="" | ||
24201 | XRENDER_LIBS="" | ||
24202 | use_xrender="no" | ||
24203 | |||
24204 | if test "x$want_ecore_x_render" != "xno"; then | ||
24205 | SAVE_CFLAGS=$CFLAGS | ||
24206 | CFLAGS="$x_cflags $x_includes" | ||
24207 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" " #include <X11/Xlib.h> | ||
24208 | |||
24209 | " | ||
24210 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : | ||
24211 | |||
24212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderFindVisualFormat in -lXrender" >&5 | ||
24213 | $as_echo_n "checking for XRenderFindVisualFormat in -lXrender... " >&6; } | ||
24214 | if test "${ac_cv_lib_Xrender_XRenderFindVisualFormat+set}" = set; then : | ||
24215 | $as_echo_n "(cached) " >&6 | ||
24216 | else | ||
24217 | ac_check_lib_save_LIBS=$LIBS | ||
24218 | LIBS="-lXrender $x_libs | ||
24219 | $LIBS" | ||
24220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24221 | /* end confdefs.h. */ | ||
24222 | |||
24223 | /* Override any GCC internal prototype to avoid an error. | ||
24224 | Use char because int might match the return type of a GCC | ||
24225 | builtin and then its argument prototype would still apply. */ | ||
24226 | #ifdef __cplusplus | ||
24227 | extern "C" | ||
24228 | #endif | ||
24229 | char XRenderFindVisualFormat (); | ||
24230 | int | ||
24231 | main () | ||
24232 | { | ||
24233 | return XRenderFindVisualFormat (); | ||
24234 | ; | ||
24235 | return 0; | ||
24236 | } | ||
24237 | _ACEOF | ||
24238 | if ac_fn_c_try_link "$LINENO"; then : | ||
24239 | ac_cv_lib_Xrender_XRenderFindVisualFormat=yes | ||
24240 | else | ||
24241 | ac_cv_lib_Xrender_XRenderFindVisualFormat=no | ||
24242 | fi | ||
24243 | rm -f core conftest.err conftest.$ac_objext \ | ||
24244 | conftest$ac_exeext conftest.$ac_ext | ||
24245 | LIBS=$ac_check_lib_save_LIBS | ||
24246 | fi | ||
24247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderFindVisualFormat" >&5 | ||
24248 | $as_echo "$ac_cv_lib_Xrender_XRenderFindVisualFormat" >&6; } | ||
24249 | if test "x$ac_cv_lib_Xrender_XRenderFindVisualFormat" = x""yes; then : | ||
24250 | |||
24251 | |||
24252 | $as_echo "#define ECORE_XRENDER 1" >>confdefs.h | ||
24253 | |||
24254 | XRENDER_LIBS="-lXrender" | ||
24255 | use_xrender="yes" | ||
24256 | |||
24257 | else | ||
24258 | use_xrender="no" | ||
24259 | fi | ||
24260 | |||
24261 | |||
24262 | else | ||
24263 | use_xrender="no" | ||
24264 | fi | ||
24265 | |||
24266 | |||
24267 | CFLAGS=$SAVE_CFLAGS | ||
24268 | else | ||
24269 | use_xrender="no" | ||
24270 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xrender support disabled" >&5 | ||
24271 | $as_echo "$as_me: Xrender support disabled" >&6;} | ||
24272 | fi | ||
24273 | |||
24274 | |||
24275 | |||
24276 | |||
24277 | |||
24278 | |||
24279 | |||
24280 | |||
24281 | |||
24282 | XTEST_CFLAGS="" | ||
24283 | XTEST_LIBS="" | ||
24284 | use_xtest="no" | ||
24285 | |||
24286 | if test "x$want_ecore_x_xtest" != "xno"; then | ||
24287 | SAVE_CFLAGS=$CFLAGS | ||
24288 | CFLAGS="$x_cflags $x_includes" | ||
24289 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XTest.h" "ac_cv_header_X11_extensions_XTest_h" " #include <X11/Xlib.h> | ||
24290 | |||
24291 | " | ||
24292 | if test "x$ac_cv_header_X11_extensions_XTest_h" = x""yes; then : | ||
24293 | |||
24294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestFakeKeyEvent in -lXtst" >&5 | ||
24295 | $as_echo_n "checking for XTestFakeKeyEvent in -lXtst... " >&6; } | ||
24296 | if test "${ac_cv_lib_Xtst_XTestFakeKeyEvent+set}" = set; then : | ||
24297 | $as_echo_n "(cached) " >&6 | ||
24298 | else | ||
24299 | ac_check_lib_save_LIBS=$LIBS | ||
24300 | LIBS="-lXtst $x_libs | ||
24301 | $LIBS" | ||
24302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24303 | /* end confdefs.h. */ | ||
24304 | |||
24305 | /* Override any GCC internal prototype to avoid an error. | ||
24306 | Use char because int might match the return type of a GCC | ||
24307 | builtin and then its argument prototype would still apply. */ | ||
24308 | #ifdef __cplusplus | ||
24309 | extern "C" | ||
24310 | #endif | ||
24311 | char XTestFakeKeyEvent (); | ||
24312 | int | ||
24313 | main () | ||
24314 | { | ||
24315 | return XTestFakeKeyEvent (); | ||
24316 | ; | ||
24317 | return 0; | ||
24318 | } | ||
24319 | _ACEOF | ||
24320 | if ac_fn_c_try_link "$LINENO"; then : | ||
24321 | ac_cv_lib_Xtst_XTestFakeKeyEvent=yes | ||
24322 | else | ||
24323 | ac_cv_lib_Xtst_XTestFakeKeyEvent=no | ||
24324 | fi | ||
24325 | rm -f core conftest.err conftest.$ac_objext \ | ||
24326 | conftest$ac_exeext conftest.$ac_ext | ||
24327 | LIBS=$ac_check_lib_save_LIBS | ||
24328 | fi | ||
24329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestFakeKeyEvent" >&5 | ||
24330 | $as_echo "$ac_cv_lib_Xtst_XTestFakeKeyEvent" >&6; } | ||
24331 | if test "x$ac_cv_lib_Xtst_XTestFakeKeyEvent" = x""yes; then : | ||
24332 | |||
24333 | |||
24334 | $as_echo "#define ECORE_XTEST 1" >>confdefs.h | ||
24335 | |||
24336 | XTEST_LIBS="-lXtst" | ||
24337 | use_xtest="yes" | ||
24338 | |||
24339 | else | ||
24340 | use_xtest="no" | ||
24341 | fi | ||
24342 | |||
24343 | |||
24344 | else | ||
24345 | use_xtest="no" | ||
24346 | fi | ||
24347 | |||
24348 | |||
24349 | CFLAGS=$SAVE_CFLAGS | ||
24350 | else | ||
24351 | use_xtest="no" | ||
24352 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xtest support disabled" >&5 | ||
24353 | $as_echo "$as_me: Xtest support disabled" >&6;} | ||
24354 | fi | ||
24355 | |||
24356 | |||
24357 | |||
24358 | |||
24359 | |||
24360 | |||
24361 | |||
24362 | |||
24363 | |||
24364 | XSS_CFLAGS="" | ||
24365 | XSS_LIBS="" | ||
24366 | use_xss="no" | ||
24367 | |||
24368 | if test "x$want_ecore_x_screensaver" != "xno"; then | ||
24369 | SAVE_CFLAGS=$CFLAGS | ||
24370 | CFLAGS="$x_cflags $x_includes" | ||
24371 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" " #include <X11/Xlib.h> | ||
24372 | |||
24373 | " | ||
24374 | if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = x""yes; then : | ||
24375 | |||
24376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSelectInput in -lXss" >&5 | ||
24377 | $as_echo_n "checking for XScreenSaverSelectInput in -lXss... " >&6; } | ||
24378 | if test "${ac_cv_lib_Xss_XScreenSaverSelectInput+set}" = set; then : | ||
24379 | $as_echo_n "(cached) " >&6 | ||
24380 | else | ||
24381 | ac_check_lib_save_LIBS=$LIBS | ||
24382 | LIBS="-lXss $x_libs | ||
24383 | $LIBS" | ||
24384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24385 | /* end confdefs.h. */ | ||
24386 | |||
24387 | /* Override any GCC internal prototype to avoid an error. | ||
24388 | Use char because int might match the return type of a GCC | ||
24389 | builtin and then its argument prototype would still apply. */ | ||
24390 | #ifdef __cplusplus | ||
24391 | extern "C" | ||
24392 | #endif | ||
24393 | char XScreenSaverSelectInput (); | ||
24394 | int | ||
24395 | main () | ||
24396 | { | ||
24397 | return XScreenSaverSelectInput (); | ||
24398 | ; | ||
24399 | return 0; | ||
24400 | } | ||
24401 | _ACEOF | ||
24402 | if ac_fn_c_try_link "$LINENO"; then : | ||
24403 | ac_cv_lib_Xss_XScreenSaverSelectInput=yes | ||
24404 | else | ||
24405 | ac_cv_lib_Xss_XScreenSaverSelectInput=no | ||
24406 | fi | ||
24407 | rm -f core conftest.err conftest.$ac_objext \ | ||
24408 | conftest$ac_exeext conftest.$ac_ext | ||
24409 | LIBS=$ac_check_lib_save_LIBS | ||
24410 | fi | ||
24411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSelectInput" >&5 | ||
24412 | $as_echo "$ac_cv_lib_Xss_XScreenSaverSelectInput" >&6; } | ||
24413 | if test "x$ac_cv_lib_Xss_XScreenSaverSelectInput" = x""yes; then : | ||
24414 | |||
24415 | |||
24416 | $as_echo "#define ECORE_XSS 1" >>confdefs.h | ||
24417 | |||
24418 | XSS_LIBS="-lXss" | ||
24419 | use_xss="yes" | ||
24420 | |||
24421 | else | ||
24422 | use_xss="no" | ||
24423 | fi | ||
24424 | |||
24425 | |||
24426 | else | ||
24427 | use_xss="no" | ||
24428 | fi | ||
24429 | |||
24430 | |||
24431 | CFLAGS=$SAVE_CFLAGS | ||
24432 | else | ||
24433 | use_xss="no" | ||
24434 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xss support disabled" >&5 | ||
24435 | $as_echo "$as_me: Xss support disabled" >&6;} | ||
24436 | fi | ||
24437 | |||
24438 | |||
24439 | |||
24440 | |||
24441 | |||
24442 | |||
24443 | |||
24444 | |||
24445 | |||
24446 | XI2_CFLAGS="" | ||
24447 | XI2_LIBS="" | ||
24448 | use_xi2="no" | ||
24449 | |||
24450 | if test "x$want_ecore_x_input" != "xno"; then | ||
24451 | SAVE_CFLAGS=$CFLAGS | ||
24452 | CFLAGS="$x_cflags $x_includes" | ||
24453 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" " #include <X11/Xlib.h> | ||
24454 | |||
24455 | " | ||
24456 | if test "x$ac_cv_header_X11_extensions_XInput2_h" = x""yes; then : | ||
24457 | |||
24458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIQueryDevice in -lXi" >&5 | ||
24459 | $as_echo_n "checking for XIQueryDevice in -lXi... " >&6; } | ||
24460 | if test "${ac_cv_lib_Xi_XIQueryDevice+set}" = set; then : | ||
24461 | $as_echo_n "(cached) " >&6 | ||
24462 | else | ||
24463 | ac_check_lib_save_LIBS=$LIBS | ||
24464 | LIBS="-lXi $x_libs | ||
24465 | $LIBS" | ||
24466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24467 | /* end confdefs.h. */ | ||
24468 | |||
24469 | /* Override any GCC internal prototype to avoid an error. | ||
24470 | Use char because int might match the return type of a GCC | ||
24471 | builtin and then its argument prototype would still apply. */ | ||
24472 | #ifdef __cplusplus | ||
24473 | extern "C" | ||
24474 | #endif | ||
24475 | char XIQueryDevice (); | ||
24476 | int | ||
24477 | main () | ||
24478 | { | ||
24479 | return XIQueryDevice (); | ||
24480 | ; | ||
24481 | return 0; | ||
24482 | } | ||
24483 | _ACEOF | ||
24484 | if ac_fn_c_try_link "$LINENO"; then : | ||
24485 | ac_cv_lib_Xi_XIQueryDevice=yes | ||
24486 | else | ||
24487 | ac_cv_lib_Xi_XIQueryDevice=no | ||
24488 | fi | ||
24489 | rm -f core conftest.err conftest.$ac_objext \ | ||
24490 | conftest$ac_exeext conftest.$ac_ext | ||
24491 | LIBS=$ac_check_lib_save_LIBS | ||
24492 | fi | ||
24493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XIQueryDevice" >&5 | ||
24494 | $as_echo "$ac_cv_lib_Xi_XIQueryDevice" >&6; } | ||
24495 | if test "x$ac_cv_lib_Xi_XIQueryDevice" = x""yes; then : | ||
24496 | |||
24497 | |||
24498 | $as_echo "#define ECORE_XI2 1" >>confdefs.h | ||
24499 | |||
24500 | XI2_LIBS="-lXi" | ||
24501 | use_xi2="yes" | ||
24502 | |||
24503 | else | ||
24504 | use_xi2="no" | ||
24505 | fi | ||
24506 | |||
24507 | |||
24508 | else | ||
24509 | use_xi2="no" | ||
24510 | fi | ||
24511 | |||
24512 | |||
24513 | CFLAGS=$SAVE_CFLAGS | ||
24514 | else | ||
24515 | use_xi2="no" | ||
24516 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xi2 support disabled" >&5 | ||
24517 | $as_echo "$as_me: Xi2 support disabled" >&6;} | ||
24518 | fi | ||
24519 | |||
24520 | |||
24521 | |||
24522 | |||
24523 | |||
24524 | |||
24525 | |||
24526 | |||
24527 | 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}" | ||
24528 | |||
24529 | |||
24530 | $as_echo "#define HAVE_ECORE_X_XLIB 1" >>confdefs.h | ||
24531 | |||
24532 | have_x="yes" | ||
24533 | |||
24534 | have_ecore_x_xlib="yes" | ||
24535 | fi | ||
24536 | fi | ||
24537 | |||
24538 | |||
24539 | |||
24540 | |||
24541 | |||
24542 | |||
24543 | if test $have_ecore_x_xlib = yes; then | ||
24544 | BUILD_ECORE_X_XLIB_TRUE= | ||
24545 | BUILD_ECORE_X_XLIB_FALSE='#' | ||
24546 | else | ||
24547 | BUILD_ECORE_X_XLIB_TRUE='#' | ||
24548 | BUILD_ECORE_X_XLIB_FALSE= | ||
24549 | fi | ||
24550 | |||
24551 | if test $have_ecore_x_xcb = yes; then | ||
24552 | BUILD_ECORE_X_XCB_TRUE= | ||
24553 | BUILD_ECORE_X_XCB_FALSE='#' | ||
24554 | else | ||
24555 | BUILD_ECORE_X_XCB_TRUE='#' | ||
24556 | BUILD_ECORE_X_XCB_FALSE= | ||
24557 | fi | ||
24558 | |||
24559 | |||
24560 | |||
24561 | # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas) | ||
24562 | |||
24563 | |||
24564 | pkg_failed=no | ||
24565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVAS" >&5 | ||
24566 | $as_echo_n "checking for EVAS... " >&6; } | ||
24567 | |||
24568 | if test -n "$EVAS_CFLAGS"; then | ||
24569 | pkg_cv_EVAS_CFLAGS="$EVAS_CFLAGS" | ||
24570 | elif test -n "$PKG_CONFIG"; then | ||
24571 | if test -n "$PKG_CONFIG" && \ | ||
24572 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas >= 1.2.0\""; } >&5 | ||
24573 | ($PKG_CONFIG --exists --print-errors "evas >= 1.2.0") 2>&5 | ||
24574 | ac_status=$? | ||
24575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
24576 | test $ac_status = 0; }; then | ||
24577 | pkg_cv_EVAS_CFLAGS=`$PKG_CONFIG --cflags "evas >= 1.2.0" 2>/dev/null` | ||
24578 | else | ||
24579 | pkg_failed=yes | ||
24580 | fi | ||
24581 | else | ||
24582 | pkg_failed=untried | ||
24583 | fi | ||
24584 | if test -n "$EVAS_LIBS"; then | ||
24585 | pkg_cv_EVAS_LIBS="$EVAS_LIBS" | ||
24586 | elif test -n "$PKG_CONFIG"; then | ||
24587 | if test -n "$PKG_CONFIG" && \ | ||
24588 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas >= 1.2.0\""; } >&5 | ||
24589 | ($PKG_CONFIG --exists --print-errors "evas >= 1.2.0") 2>&5 | ||
24590 | ac_status=$? | ||
24591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
24592 | test $ac_status = 0; }; then | ||
24593 | pkg_cv_EVAS_LIBS=`$PKG_CONFIG --libs "evas >= 1.2.0" 2>/dev/null` | ||
24594 | else | ||
24595 | pkg_failed=yes | ||
24596 | fi | ||
24597 | else | ||
24598 | pkg_failed=untried | ||
24599 | fi | ||
24600 | |||
24601 | |||
24602 | |||
24603 | if test $pkg_failed = yes; then | ||
24604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24605 | $as_echo "no" >&6; } | ||
24606 | |||
24607 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
24608 | _pkg_short_errors_supported=yes | ||
24609 | else | ||
24610 | _pkg_short_errors_supported=no | ||
24611 | fi | ||
24612 | if test $_pkg_short_errors_supported = yes; then | ||
24613 | EVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evas >= 1.2.0" 2>&1` | ||
24614 | else | ||
24615 | EVAS_PKG_ERRORS=`$PKG_CONFIG --print-errors "evas >= 1.2.0" 2>&1` | ||
24616 | fi | ||
24617 | # Put the nasty error message in config.log where it belongs | ||
24618 | echo "$EVAS_PKG_ERRORS" >&5 | ||
24619 | |||
24620 | have_evas="no" | ||
24621 | elif test $pkg_failed = untried; then | ||
24622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24623 | $as_echo "no" >&6; } | ||
24624 | have_evas="no" | ||
24625 | else | ||
24626 | EVAS_CFLAGS=$pkg_cv_EVAS_CFLAGS | ||
24627 | EVAS_LIBS=$pkg_cv_EVAS_LIBS | ||
24628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
24629 | $as_echo "yes" >&6; } | ||
24630 | have_evas="yes" | ||
24631 | fi | ||
24632 | |||
24633 | |||
24634 | ### Checks for header files | ||
24635 | |||
24636 | for ac_header in sys/select.h sys/prctl.h | ||
24637 | do : | ||
24638 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
24639 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
24640 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
24641 | cat >>confdefs.h <<_ACEOF | ||
24642 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
24643 | _ACEOF | ||
24644 | |||
24645 | fi | ||
24646 | |||
24647 | done | ||
24648 | |||
24649 | |||
24650 | |||
24651 | |||
24652 | default_max="4096" | ||
24653 | ac_ext=c | ||
24654 | ac_cpp='$CPP $CPPFLAGS' | ||
24655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
24656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
24657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
24658 | |||
24659 | |||
24660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
24661 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
24662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24663 | /* end confdefs.h. */ | ||
24664 | |||
24665 | #include <limits.h> | ||
24666 | |||
24667 | int | ||
24668 | main () | ||
24669 | { | ||
24670 | |||
24671 | int i = PATH_MAX; | ||
24672 | |||
24673 | ; | ||
24674 | return 0; | ||
24675 | } | ||
24676 | _ACEOF | ||
24677 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
24679 | $as_echo "yes" >&6; } | ||
24680 | else | ||
24681 | |||
24682 | |||
24683 | cat >>confdefs.h <<_ACEOF | ||
24684 | #define PATH_MAX ${default_max} | ||
24685 | _ACEOF | ||
24686 | |||
24687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
24688 | $as_echo "no: using ${default_max}" >&6; } | ||
24689 | |||
24690 | fi | ||
24691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24692 | |||
24693 | ac_ext=c | ||
24694 | ac_cpp='$CPP $CPPFLAGS' | ||
24695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
24696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
24697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
24698 | |||
24699 | |||
24700 | |||
24701 | |||
24702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | ||
24703 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | ||
24704 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | ||
24705 | $as_echo_n "(cached) " >&6 | ||
24706 | else | ||
24707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24708 | /* end confdefs.h. */ | ||
24709 | #include <sys/types.h> | ||
24710 | #include <sys/wait.h> | ||
24711 | #ifndef WEXITSTATUS | ||
24712 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | ||
24713 | #endif | ||
24714 | #ifndef WIFEXITED | ||
24715 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | ||
24716 | #endif | ||
24717 | |||
24718 | int | ||
24719 | main () | ||
24720 | { | ||
24721 | int s; | ||
24722 | wait (&s); | ||
24723 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | ||
24724 | ; | ||
24725 | return 0; | ||
24726 | } | ||
24727 | _ACEOF | ||
24728 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24729 | ac_cv_header_sys_wait_h=yes | ||
24730 | else | ||
24731 | ac_cv_header_sys_wait_h=no | ||
24732 | fi | ||
24733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24734 | fi | ||
24735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | ||
24736 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | ||
24737 | if test $ac_cv_header_sys_wait_h = yes; then | ||
24738 | |||
24739 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | ||
24740 | |||
24741 | fi | ||
24742 | |||
24743 | # Check whether --enable-largefile was given. | ||
24744 | if test "${enable_largefile+set}" = set; then : | ||
24745 | enableval=$enable_largefile; | ||
24746 | fi | ||
24747 | |||
24748 | if test "$enable_largefile" != no; then | ||
24749 | |||
24750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
24751 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
24752 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | ||
24753 | $as_echo_n "(cached) " >&6 | ||
24754 | else | ||
24755 | ac_cv_sys_largefile_CC=no | ||
24756 | if test "$GCC" != yes; then | ||
24757 | ac_save_CC=$CC | ||
24758 | while :; do | ||
24759 | # IRIX 6.2 and later do not support large files by default, | ||
24760 | # so use the C compiler's -n32 option if that helps. | ||
24761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24762 | /* end confdefs.h. */ | ||
24763 | #include <sys/types.h> | ||
24764 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
24765 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
24766 | since some C++ compilers masquerading as C compilers | ||
24767 | incorrectly reject 9223372036854775807. */ | ||
24768 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
24769 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
24770 | && LARGE_OFF_T % 2147483647 == 1) | ||
24771 | ? 1 : -1]; | ||
24772 | int | ||
24773 | main () | ||
24774 | { | ||
24775 | |||
24776 | ; | ||
24777 | return 0; | ||
24778 | } | ||
24779 | _ACEOF | ||
24780 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24781 | break | ||
24782 | fi | ||
24783 | rm -f core conftest.err conftest.$ac_objext | ||
24784 | CC="$CC -n32" | ||
24785 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24786 | ac_cv_sys_largefile_CC=' -n32'; break | ||
24787 | fi | ||
24788 | rm -f core conftest.err conftest.$ac_objext | ||
24789 | break | ||
24790 | done | ||
24791 | CC=$ac_save_CC | ||
24792 | rm -f conftest.$ac_ext | ||
24793 | fi | ||
24794 | fi | ||
24795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
24796 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
24797 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
24798 | CC=$CC$ac_cv_sys_largefile_CC | ||
24799 | fi | ||
24800 | |||
24801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
24802 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
24803 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | ||
24804 | $as_echo_n "(cached) " >&6 | ||
24805 | else | ||
24806 | while :; do | ||
24807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24808 | /* end confdefs.h. */ | ||
24809 | #include <sys/types.h> | ||
24810 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
24811 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
24812 | since some C++ compilers masquerading as C compilers | ||
24813 | incorrectly reject 9223372036854775807. */ | ||
24814 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
24815 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
24816 | && LARGE_OFF_T % 2147483647 == 1) | ||
24817 | ? 1 : -1]; | ||
24818 | int | ||
24819 | main () | ||
24820 | { | ||
24821 | |||
24822 | ; | ||
24823 | return 0; | ||
24824 | } | ||
24825 | _ACEOF | ||
24826 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24827 | ac_cv_sys_file_offset_bits=no; break | ||
24828 | fi | ||
24829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24831 | /* end confdefs.h. */ | ||
24832 | #define _FILE_OFFSET_BITS 64 | ||
24833 | #include <sys/types.h> | ||
24834 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
24835 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
24836 | since some C++ compilers masquerading as C compilers | ||
24837 | incorrectly reject 9223372036854775807. */ | ||
24838 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
24839 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
24840 | && LARGE_OFF_T % 2147483647 == 1) | ||
24841 | ? 1 : -1]; | ||
24842 | int | ||
24843 | main () | ||
24844 | { | ||
24845 | |||
24846 | ; | ||
24847 | return 0; | ||
24848 | } | ||
24849 | _ACEOF | ||
24850 | if ac_fn_c_try_compile "$LINENO"; then : | ||
24851 | ac_cv_sys_file_offset_bits=64; break | ||
24852 | fi | ||
24853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24854 | ac_cv_sys_file_offset_bits=unknown | ||
24855 | break | ||
24856 | done | ||
24857 | fi | ||
24858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
24859 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
24860 | case $ac_cv_sys_file_offset_bits in #( | ||
24861 | no | unknown) ;; | ||
24862 | *) | ||
24863 | cat >>confdefs.h <<_ACEOF | ||
24864 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
24865 | _ACEOF | ||
24866 | ;; | ||
24867 | esac | ||
24868 | rm -rf conftest* | ||
24869 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
24870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
24871 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
24872 | if test "${ac_cv_sys_large_files+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_large_files=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 _LARGE_FILES 1 | ||
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_large_files=1; break | ||
24921 | fi | ||
24922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24923 | ac_cv_sys_large_files=unknown | ||
24924 | break | ||
24925 | done | ||
24926 | fi | ||
24927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
24928 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
24929 | case $ac_cv_sys_large_files in #( | ||
24930 | no | unknown) ;; | ||
24931 | *) | ||
24932 | cat >>confdefs.h <<_ACEOF | ||
24933 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
24934 | _ACEOF | ||
24935 | ;; | ||
24936 | esac | ||
24937 | rm -rf conftest* | ||
24938 | fi | ||
24939 | fi | ||
24940 | |||
24941 | |||
24942 | have_addrinfo="no" | ||
24943 | case "$host_os" in | ||
24944 | mingw* | cegcc*) | ||
24945 | |||
24946 | $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h | ||
24947 | |||
24948 | |||
24949 | $as_echo "#define HAVE_SYS_MMAN_H 1" >>confdefs.h | ||
24950 | |||
24951 | |||
24952 | $as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h | ||
24953 | |||
24954 | have_addrinfo="yes" | ||
24955 | ;; | ||
24956 | *) | ||
24957 | for ac_header in dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h | ||
24958 | do : | ||
24959 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
24960 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
24961 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
24962 | cat >>confdefs.h <<_ACEOF | ||
24963 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
24964 | _ACEOF | ||
24965 | |||
24966 | fi | ||
24967 | |||
24968 | done | ||
24969 | |||
24970 | ;; | ||
24971 | esac | ||
24972 | |||
24973 | # ecore_con | ||
24974 | |||
24975 | for ac_header in sys/socket.h | ||
24976 | do : | ||
24977 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" | ||
24978 | if test "x$ac_cv_header_sys_socket_h" = x""yes; then : | ||
24979 | cat >>confdefs.h <<_ACEOF | ||
24980 | #define HAVE_SYS_SOCKET_H 1 | ||
24981 | _ACEOF | ||
24982 | |||
24983 | fi | ||
24984 | |||
24985 | done | ||
24986 | |||
24987 | for ac_header in net/if.h | ||
24988 | do : | ||
24989 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " | ||
24990 | #include <stdio.h> | ||
24991 | #ifdef STDC_HEADERS | ||
24992 | # include <stdlib.h> | ||
24993 | # include <stddef.h> | ||
24994 | #else | ||
24995 | # ifdef HAVE_STDLIB_H | ||
24996 | # include <stdlib.h> | ||
24997 | # endif | ||
24998 | #endif | ||
24999 | #ifdef HAVE_SYS_SOCKET_H | ||
25000 | # include <sys/socket.h> | ||
25001 | #endif | ||
25002 | |||
25003 | " | ||
25004 | if test "x$ac_cv_header_net_if_h" = x""yes; then : | ||
25005 | cat >>confdefs.h <<_ACEOF | ||
25006 | #define HAVE_NET_IF_H 1 | ||
25007 | _ACEOF | ||
25008 | |||
25009 | fi | ||
25010 | |||
25011 | done | ||
25012 | |||
25013 | for ac_header in sys/un.h arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h ws2tcpip.h netdb.h | ||
25014 | do : | ||
25015 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
25016 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
25017 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
25018 | cat >>confdefs.h <<_ACEOF | ||
25019 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
25020 | _ACEOF | ||
25021 | |||
25022 | fi | ||
25023 | |||
25024 | done | ||
25025 | |||
25026 | |||
25027 | if test "x${ac_cv_header_netdb_h}" = "xyes" ; then | ||
25028 | have_addrinfo="yes" | ||
25029 | fi | ||
25030 | |||
25031 | # Framebuffer (ecore_fb) | ||
25032 | have_fb="no" | ||
25033 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" | ||
25034 | if test "x$ac_cv_header_linux_fb_h" = x""yes; then : | ||
25035 | ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" | ||
25036 | if test "x$ac_cv_header_linux_input_h" = x""yes; then : | ||
25037 | have_fb="yes" | ||
25038 | fi | ||
25039 | |||
25040 | |||
25041 | fi | ||
25042 | |||
25043 | |||
25044 | |||
25045 | # Cocoa header files (ecore_cocoa) | ||
25046 | |||
25047 | if test "x${want_ecore_cocoa}" = "xyes" ; then | ||
25048 | cocoa_ldflags="" | ||
25049 | have_cocoa="no" | ||
25050 | |||
25051 | if test "x${have_gnu_objc}" = "xyes" ; then | ||
25052 | ac_ext=m | ||
25053 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
25054 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
25055 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
25056 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
25057 | |||
25058 | LIBS_save="$LIBS" | ||
25059 | LIBS="$LIBS -framework Cocoa" | ||
25060 | |||
25061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25062 | /* end confdefs.h. */ | ||
25063 | |||
25064 | #include <Cocoa/Cocoa.h> | ||
25065 | |||
25066 | int | ||
25067 | main () | ||
25068 | { | ||
25069 | |||
25070 | NSWindow *window; | ||
25071 | window = [[NSWindow alloc] | ||
25072 | initWithContentRect:NSMakeRect(0, 0, 1, 1) | ||
25073 | styleMask:(NSTitledWindowMask) | ||
25074 | backing:NSBackingStoreBuffered | ||
25075 | defer:NO | ||
25076 | screen:nil | ||
25077 | ]; | ||
25078 | |||
25079 | ; | ||
25080 | return 0; | ||
25081 | } | ||
25082 | _ACEOF | ||
25083 | if ac_fn_objc_try_link "$LINENO"; then : | ||
25084 | |||
25085 | have_cocoa="yes" | ||
25086 | cocoa_ldflags="-framework Cocoa" | ||
25087 | |||
25088 | else | ||
25089 | have_cocoa="no" | ||
25090 | fi | ||
25091 | rm -f core conftest.err conftest.$ac_objext \ | ||
25092 | conftest$ac_exeext conftest.$ac_ext | ||
25093 | LIBS="$LIBS_save" | ||
25094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Cocoa framework is supported" >&5 | ||
25095 | $as_echo_n "checking whether Cocoa framework is supported... " >&6; } | ||
25096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_cocoa}" >&5 | ||
25097 | $as_echo "${have_cocoa}" >&6; } | ||
25098 | ac_ext=c | ||
25099 | ac_cpp='$CPP $CPPFLAGS' | ||
25100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
25101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
25102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
25103 | |||
25104 | fi | ||
25105 | |||
25106 | fi | ||
25107 | |||
25108 | |||
25109 | want_epoll=yes | ||
25110 | # Check whether --enable-epoll was given. | ||
25111 | if test "${enable_epoll+set}" = set; then : | ||
25112 | enableval=$enable_epoll; want_epoll=$enableval | ||
25113 | fi | ||
25114 | |||
25115 | |||
25116 | if test "x${want_epoll}" = "xyes" ; then | ||
25117 | # check for epoll support | ||
25118 | for ac_header in sys/epoll.h | ||
25119 | do : | ||
25120 | ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" | ||
25121 | if test "x$ac_cv_header_sys_epoll_h" = x""yes; then : | ||
25122 | cat >>confdefs.h <<_ACEOF | ||
25123 | #define HAVE_SYS_EPOLL_H 1 | ||
25124 | _ACEOF | ||
25125 | |||
25126 | fi | ||
25127 | |||
25128 | done | ||
25129 | |||
25130 | fi | ||
25131 | |||
25132 | # timerfd_create | ||
25133 | for ac_header in sys/timerfd.h | ||
25134 | do : | ||
25135 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" | ||
25136 | if test "x$ac_cv_header_sys_timerfd_h" = x""yes; then : | ||
25137 | cat >>confdefs.h <<_ACEOF | ||
25138 | #define HAVE_SYS_TIMERFD_H 1 | ||
25139 | _ACEOF | ||
25140 | |||
25141 | fi | ||
25142 | |||
25143 | done | ||
25144 | |||
25145 | for ac_func in timerfd_create | ||
25146 | do : | ||
25147 | ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create" | ||
25148 | if test "x$ac_cv_func_timerfd_create" = x""yes; then : | ||
25149 | cat >>confdefs.h <<_ACEOF | ||
25150 | #define HAVE_TIMERFD_CREATE 1 | ||
25151 | _ACEOF | ||
25152 | |||
25153 | fi | ||
25154 | done | ||
25155 | |||
25156 | |||
25157 | # thread support | ||
25158 | |||
25159 | |||
25160 | |||
25161 | |||
25162 | # Check whether --enable-posix-threads was given. | ||
25163 | if test "${enable_posix_threads+set}" = set; then : | ||
25164 | enableval=$enable_posix_threads; | ||
25165 | if test "x${enableval}" = "xyes" ; then | ||
25166 | _efl_enable_posix_threads="yes" | ||
25167 | else | ||
25168 | _efl_enable_posix_threads="no" | ||
25169 | fi | ||
25170 | |||
25171 | else | ||
25172 | _efl_enable_posix_threads="auto" | ||
25173 | fi | ||
25174 | |||
25175 | |||
25176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build POSIX threads code" >&5 | ||
25177 | $as_echo_n "checking whether to build POSIX threads code... " >&6; } | ||
25178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_posix_threads}" >&5 | ||
25179 | $as_echo "${_efl_enable_posix_threads}" >&6; } | ||
25180 | |||
25181 | # Check whether --enable-win32-threads was given. | ||
25182 | if test "${enable_win32_threads+set}" = set; then : | ||
25183 | enableval=$enable_win32_threads; | ||
25184 | if test "x${enableval}" = "xyes" ; then | ||
25185 | _efl_enable_win32_threads="yes" | ||
25186 | else | ||
25187 | _efl_enable_win32_threads="no" | ||
25188 | fi | ||
25189 | |||
25190 | else | ||
25191 | _efl_enable_win32_threads="no" | ||
25192 | fi | ||
25193 | |||
25194 | |||
25195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Windows threads code" >&5 | ||
25196 | $as_echo_n "checking whether to build Windows threads code... " >&6; } | ||
25197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_win32_threads}" >&5 | ||
25198 | $as_echo "${_efl_enable_win32_threads}" >&6; } | ||
25199 | |||
25200 | |||
25201 | if test "x${_efl_enable_posix_threads}" = "xyes" && test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
25202 | case "$host_os" in | ||
25203 | mingw*) | ||
25204 | _efl_enable_posix_threads=no | ||
25205 | ;; | ||
25206 | *) | ||
25207 | _efl_enable_win32_threads=no | ||
25208 | ;; | ||
25209 | esac | ||
25210 | fi | ||
25211 | |||
25212 | if test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
25213 | case "$host_os" in | ||
25214 | mingw*) | ||
25215 | ;; | ||
25216 | *) | ||
25217 | as_fn_error $? "Win32 threads support requested but non Windows system found." "$LINENO" 5 | ||
25218 | ;; | ||
25219 | esac | ||
25220 | fi | ||
25221 | |||
25222 | if test "x${_efl_enable_posix_threads}" = "xyes" ; then | ||
25223 | case "$host_os" in | ||
25224 | mingw*) | ||
25225 | as_fn_error $? "POSIX threads support requested but Windows system found." "$LINENO" 5 | ||
25226 | ;; | ||
25227 | *) | ||
25228 | ;; | ||
25229 | esac | ||
25230 | fi | ||
25231 | |||
25232 | |||
25233 | case "$host_os" in | ||
25234 | mingw*) | ||
25235 | ;; | ||
25236 | solaris*) | ||
25237 | _efl_threads_cflags="-mt" | ||
25238 | _efl_threads_libs="-mt" | ||
25239 | ;; | ||
25240 | *) | ||
25241 | _efl_threads_cflags="-pthread" | ||
25242 | _efl_threads_libs="-pthread" | ||
25243 | ;; | ||
25244 | esac | ||
25245 | |||
25246 | _efl_have_posix_threads="no" | ||
25247 | _efl_have_win32_threads="no" | ||
25248 | |||
25249 | if test "x${_efl_enable_posix_threads}" = "xyes" || test "x${_efl_enable_posix_threads}" = "xauto" ; then | ||
25250 | |||
25251 | SAVE_CFLAGS=${CFLAGS} | ||
25252 | CFLAGS="${CFLAGS} ${_efl_threads_cflags}" | ||
25253 | SAVE_LIBS=${LIBS} | ||
25254 | LIBS="${LIBS} ${_efl_threads_libs}" | ||
25255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25256 | /* end confdefs.h. */ | ||
25257 | |||
25258 | #include <pthread.h> | ||
25259 | |||
25260 | int | ||
25261 | main () | ||
25262 | { | ||
25263 | |||
25264 | pthread_t id; | ||
25265 | id = pthread_self(); | ||
25266 | |||
25267 | ; | ||
25268 | return 0; | ||
25269 | } | ||
25270 | _ACEOF | ||
25271 | if ac_fn_c_try_link "$LINENO"; then : | ||
25272 | _efl_have_posix_threads="yes" | ||
25273 | else | ||
25274 | _efl_have_posix_threads="no" | ||
25275 | fi | ||
25276 | rm -f core conftest.err conftest.$ac_objext \ | ||
25277 | conftest$ac_exeext conftest.$ac_ext | ||
25278 | CFLAGS=${SAVE_CFLAGS} | ||
25279 | LIBS=${SAVE_LIBS} | ||
25280 | |||
25281 | fi | ||
25282 | |||
25283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system support POSIX threads" >&5 | ||
25284 | $as_echo_n "checking whether system support POSIX threads... " >&6; } | ||
25285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_have_posix_threads}" >&5 | ||
25286 | $as_echo "${_efl_have_posix_threads}" >&6; } | ||
25287 | if test "$x{_efl_enable_posix_threads}" = "xyes" && test "x${_efl_have_posix_threads}" = "xno"; then | ||
25288 | as_fn_error $? "POSIX threads support requested but not found." "$LINENO" 5 | ||
25289 | fi | ||
25290 | |||
25291 | EFL_PTHREAD_CFLAGS="" | ||
25292 | EFL_PTHREAD_LIBS="" | ||
25293 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
25294 | EFL_PTHREAD_CFLAGS=${_efl_threads_cflags} | ||
25295 | EFL_PTHREAD_LIBS=${_efl_threads_libs} | ||
25296 | fi | ||
25297 | |||
25298 | |||
25299 | |||
25300 | |||
25301 | _efl_enable_debug_threads="no" | ||
25302 | # Check whether --enable-debug-threads was given. | ||
25303 | if test "${enable_debug_threads+set}" = set; then : | ||
25304 | enableval=$enable_debug_threads; _efl_enable_debug_threads="${enableval}" | ||
25305 | fi | ||
25306 | |||
25307 | |||
25308 | have_debug_threads="no" | ||
25309 | if test "x${_efl_have_posix_threads}" = "xyes" -a "x${_efl_enable_debug_threads}" = "xyes"; then | ||
25310 | have_debug_threads="yes" | ||
25311 | |||
25312 | $as_echo "#define EFL_DEBUG_THREADS 1" >>confdefs.h | ||
25313 | |||
25314 | fi | ||
25315 | |||
25316 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
25317 | |||
25318 | $as_echo "#define EFL_HAVE_POSIX_THREADS 1" >>confdefs.h | ||
25319 | |||
25320 | fi | ||
25321 | |||
25322 | if test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
25323 | _efl_have_win32_threads="yes" | ||
25324 | |||
25325 | $as_echo "#define EFL_HAVE_WIN32_THREADS 1" >>confdefs.h | ||
25326 | |||
25327 | fi | ||
25328 | |||
25329 | if test "x${_efl_have_posix_threads}" = "xyes" || test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
25330 | |||
25331 | $as_echo "#define EFL_HAVE_THREADS 1" >>confdefs.h | ||
25332 | |||
25333 | fi | ||
25334 | |||
25335 | if test "x$_efl_have_posix_threads" = "xyes" || test "x$_efl_have_win32_threads" = "xyes"; then : | ||
25336 | |||
25337 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
25338 | have_threads="POSIX" | ||
25339 | else | ||
25340 | if test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
25341 | have_threads="Win32" | ||
25342 | else | ||
25343 | have_threads="no" | ||
25344 | fi | ||
25345 | fi | ||
25346 | |||
25347 | else | ||
25348 | have_threads="no" | ||
25349 | fi | ||
25350 | |||
25351 | |||
25352 | ### enable thread safety if we have threads, unless specifically asked not to | ||
25353 | if test "x${have_threads}" = "xno" | ||
25354 | then | ||
25355 | want_thread_safety="no" | ||
25356 | else | ||
25357 | want_thread_safety="no" # to be changed to yes when ready | ||
25358 | # Check whether --enable-thread-safety was given. | ||
25359 | if test "${enable_thread_safety+set}" = set; then : | ||
25360 | enableval=$enable_thread_safety; want_thread_safety=$enableval | ||
25361 | fi | ||
25362 | |||
25363 | fi | ||
25364 | |||
25365 | if test "x${want_thread_safety}" = "xyes" | ||
25366 | then | ||
25367 | |||
25368 | $as_echo "#define HAVE_THREAD_SAFETY 1" >>confdefs.h | ||
25369 | |||
25370 | fi | ||
25371 | |||
25372 | ### Checks for types | ||
25373 | # The cast to long int works around a bug in the HP C Compiler | ||
25374 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25375 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25376 | # This bug is HP SR number 8606223364. | ||
25377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
25378 | $as_echo_n "checking size of int... " >&6; } | ||
25379 | if test "${ac_cv_sizeof_int+set}" = set; then : | ||
25380 | $as_echo_n "(cached) " >&6 | ||
25381 | else | ||
25382 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
25383 | |||
25384 | else | ||
25385 | if test "$ac_cv_type_int" = yes; then | ||
25386 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
25387 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
25388 | as_fn_error 77 "cannot compute sizeof (int) | ||
25389 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
25390 | else | ||
25391 | ac_cv_sizeof_int=0 | ||
25392 | fi | ||
25393 | fi | ||
25394 | |||
25395 | fi | ||
25396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
25397 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
25398 | |||
25399 | |||
25400 | |||
25401 | cat >>confdefs.h <<_ACEOF | ||
25402 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
25403 | _ACEOF | ||
25404 | |||
25405 | |||
25406 | # The cast to long int works around a bug in the HP C Compiler | ||
25407 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
25408 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
25409 | # This bug is HP SR number 8606223364. | ||
25410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | ||
25411 | $as_echo_n "checking size of long... " >&6; } | ||
25412 | if test "${ac_cv_sizeof_long+set}" = set; then : | ||
25413 | $as_echo_n "(cached) " >&6 | ||
25414 | else | ||
25415 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | ||
25416 | |||
25417 | else | ||
25418 | if test "$ac_cv_type_long" = yes; then | ||
25419 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
25420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
25421 | as_fn_error 77 "cannot compute sizeof (long) | ||
25422 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
25423 | else | ||
25424 | ac_cv_sizeof_long=0 | ||
25425 | fi | ||
25426 | fi | ||
25427 | |||
25428 | fi | ||
25429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | ||
25430 | $as_echo "$ac_cv_sizeof_long" >&6; } | ||
25431 | |||
25432 | |||
25433 | |||
25434 | cat >>confdefs.h <<_ACEOF | ||
25435 | #define SIZEOF_LONG $ac_cv_sizeof_long | ||
25436 | _ACEOF | ||
25437 | |||
25438 | |||
25439 | |||
25440 | |||
25441 | ### Checks for structures | ||
25442 | |||
25443 | |||
25444 | ### Checks for compiler characteristics | ||
25445 | case $ac_cv_prog_cc_stdc in #( | ||
25446 | no) : | ||
25447 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
25448 | *) : | ||
25449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
25450 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
25451 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
25452 | $as_echo_n "(cached) " >&6 | ||
25453 | else | ||
25454 | ac_cv_prog_cc_c99=no | ||
25455 | ac_save_CC=$CC | ||
25456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25457 | /* end confdefs.h. */ | ||
25458 | #include <stdarg.h> | ||
25459 | #include <stdbool.h> | ||
25460 | #include <stdlib.h> | ||
25461 | #include <wchar.h> | ||
25462 | #include <stdio.h> | ||
25463 | |||
25464 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
25465 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
25466 | #define showlist(...) puts (#__VA_ARGS__) | ||
25467 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
25468 | static void | ||
25469 | test_varargs_macros (void) | ||
25470 | { | ||
25471 | int x = 1234; | ||
25472 | int y = 5678; | ||
25473 | debug ("Flag"); | ||
25474 | debug ("X = %d\n", x); | ||
25475 | showlist (The first, second, and third items.); | ||
25476 | report (x>y, "x is %d but y is %d", x, y); | ||
25477 | } | ||
25478 | |||
25479 | // Check long long types. | ||
25480 | #define BIG64 18446744073709551615ull | ||
25481 | #define BIG32 4294967295ul | ||
25482 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
25483 | #if !BIG_OK | ||
25484 | your preprocessor is broken; | ||
25485 | #endif | ||
25486 | #if BIG_OK | ||
25487 | #else | ||
25488 | your preprocessor is broken; | ||
25489 | #endif | ||
25490 | static long long int bignum = -9223372036854775807LL; | ||
25491 | static unsigned long long int ubignum = BIG64; | ||
25492 | |||
25493 | struct incomplete_array | ||
25494 | { | ||
25495 | int datasize; | ||
25496 | double data[]; | ||
25497 | }; | ||
25498 | |||
25499 | struct named_init { | ||
25500 | int number; | ||
25501 | const wchar_t *name; | ||
25502 | double average; | ||
25503 | }; | ||
25504 | |||
25505 | typedef const char *ccp; | ||
25506 | |||
25507 | static inline int | ||
25508 | test_restrict (ccp restrict text) | ||
25509 | { | ||
25510 | // See if C++-style comments work. | ||
25511 | // Iterate through items via the restricted pointer. | ||
25512 | // Also check for declarations in for loops. | ||
25513 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
25514 | continue; | ||
25515 | return 0; | ||
25516 | } | ||
25517 | |||
25518 | // Check varargs and va_copy. | ||
25519 | static void | ||
25520 | test_varargs (const char *format, ...) | ||
25521 | { | ||
25522 | va_list args; | ||
25523 | va_start (args, format); | ||
25524 | va_list args_copy; | ||
25525 | va_copy (args_copy, args); | ||
25526 | |||
25527 | const char *str; | ||
25528 | int number; | ||
25529 | float fnumber; | ||
25530 | |||
25531 | while (*format) | ||
25532 | { | ||
25533 | switch (*format++) | ||
25534 | { | ||
25535 | case 's': // string | ||
25536 | str = va_arg (args_copy, const char *); | ||
25537 | break; | ||
25538 | case 'd': // int | ||
25539 | number = va_arg (args_copy, int); | ||
25540 | break; | ||
25541 | case 'f': // float | ||
25542 | fnumber = va_arg (args_copy, double); | ||
25543 | break; | ||
25544 | default: | ||
25545 | break; | ||
25546 | } | ||
25547 | } | ||
25548 | va_end (args_copy); | ||
25549 | va_end (args); | ||
25550 | } | ||
25551 | |||
25552 | int | ||
25553 | main () | ||
25554 | { | ||
25555 | |||
25556 | // Check bool. | ||
25557 | _Bool success = false; | ||
25558 | |||
25559 | // Check restrict. | ||
25560 | if (test_restrict ("String literal") == 0) | ||
25561 | success = true; | ||
25562 | char *restrict newvar = "Another string"; | ||
25563 | |||
25564 | // Check varargs. | ||
25565 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
25566 | test_varargs_macros (); | ||
25567 | |||
25568 | // Check flexible array members. | ||
25569 | struct incomplete_array *ia = | ||
25570 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
25571 | ia->datasize = 10; | ||
25572 | for (int i = 0; i < ia->datasize; ++i) | ||
25573 | ia->data[i] = i * 1.234; | ||
25574 | |||
25575 | // Check named initializers. | ||
25576 | struct named_init ni = { | ||
25577 | .number = 34, | ||
25578 | .name = L"Test wide string", | ||
25579 | .average = 543.34343, | ||
25580 | }; | ||
25581 | |||
25582 | ni.number = 58; | ||
25583 | |||
25584 | int dynamic_array[ni.number]; | ||
25585 | dynamic_array[ni.number - 1] = 543; | ||
25586 | |||
25587 | // work around unused variable warnings | ||
25588 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
25589 | || dynamic_array[ni.number - 1] != 543); | ||
25590 | |||
25591 | ; | ||
25592 | return 0; | ||
25593 | } | ||
25594 | _ACEOF | ||
25595 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
25596 | do | ||
25597 | CC="$ac_save_CC $ac_arg" | ||
25598 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25599 | ac_cv_prog_cc_c99=$ac_arg | ||
25600 | fi | ||
25601 | rm -f core conftest.err conftest.$ac_objext | ||
25602 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
25603 | done | ||
25604 | rm -f conftest.$ac_ext | ||
25605 | CC=$ac_save_CC | ||
25606 | |||
25607 | fi | ||
25608 | # AC_CACHE_VAL | ||
25609 | case "x$ac_cv_prog_cc_c99" in | ||
25610 | x) | ||
25611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
25612 | $as_echo "none needed" >&6; } ;; | ||
25613 | xno) | ||
25614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
25615 | $as_echo "unsupported" >&6; } ;; | ||
25616 | *) | ||
25617 | CC="$CC $ac_cv_prog_cc_c99" | ||
25618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
25619 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
25620 | esac | ||
25621 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
25622 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
25623 | else | ||
25624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
25625 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
25626 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
25627 | $as_echo_n "(cached) " >&6 | ||
25628 | else | ||
25629 | ac_cv_prog_cc_c89=no | ||
25630 | ac_save_CC=$CC | ||
25631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25632 | /* end confdefs.h. */ | ||
25633 | #include <stdarg.h> | ||
25634 | #include <stdio.h> | ||
25635 | #include <sys/types.h> | ||
25636 | #include <sys/stat.h> | ||
25637 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
25638 | struct buf { int x; }; | ||
25639 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
25640 | static char *e (p, i) | ||
25641 | char **p; | ||
25642 | int i; | ||
25643 | { | ||
25644 | return p[i]; | ||
25645 | } | ||
25646 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
25647 | { | ||
25648 | char *s; | ||
25649 | va_list v; | ||
25650 | va_start (v,p); | ||
25651 | s = g (p, va_arg (v,int)); | ||
25652 | va_end (v); | ||
25653 | return s; | ||
25654 | } | ||
25655 | |||
25656 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
25657 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
25658 | These don't provoke an error unfortunately, instead are silently treated | ||
25659 | as 'x'. The following induces an error, until -std is added to get | ||
25660 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
25661 | array size at least. It's necessary to write '\x00'==0 to get something | ||
25662 | that's true only with -std. */ | ||
25663 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
25664 | |||
25665 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
25666 | inside strings and character constants. */ | ||
25667 | #define FOO(x) 'x' | ||
25668 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
25669 | |||
25670 | int test (int i, double x); | ||
25671 | struct s1 {int (*f) (int a);}; | ||
25672 | struct s2 {int (*f) (double a);}; | ||
25673 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
25674 | int argc; | ||
25675 | char **argv; | ||
25676 | int | ||
25677 | main () | ||
25678 | { | ||
25679 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
25680 | ; | ||
25681 | return 0; | ||
25682 | } | ||
25683 | _ACEOF | ||
25684 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
25685 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
25686 | do | ||
25687 | CC="$ac_save_CC $ac_arg" | ||
25688 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25689 | ac_cv_prog_cc_c89=$ac_arg | ||
25690 | fi | ||
25691 | rm -f core conftest.err conftest.$ac_objext | ||
25692 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
25693 | done | ||
25694 | rm -f conftest.$ac_ext | ||
25695 | CC=$ac_save_CC | ||
25696 | |||
25697 | fi | ||
25698 | # AC_CACHE_VAL | ||
25699 | case "x$ac_cv_prog_cc_c89" in | ||
25700 | x) | ||
25701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
25702 | $as_echo "none needed" >&6; } ;; | ||
25703 | xno) | ||
25704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
25705 | $as_echo "unsupported" >&6; } ;; | ||
25706 | *) | ||
25707 | CC="$CC $ac_cv_prog_cc_c89" | ||
25708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
25709 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
25710 | esac | ||
25711 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
25712 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
25713 | else | ||
25714 | ac_cv_prog_cc_stdc=no | ||
25715 | fi | ||
25716 | |||
25717 | fi | ||
25718 | ;; | ||
25719 | esac | ||
25720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
25721 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
25722 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
25723 | $as_echo_n "(cached) " >&6 | ||
25724 | fi | ||
25725 | |||
25726 | case $ac_cv_prog_cc_stdc in #( | ||
25727 | no) : | ||
25728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
25729 | $as_echo "unsupported" >&6; } ;; #( | ||
25730 | '') : | ||
25731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
25732 | $as_echo "none needed" >&6; } ;; #( | ||
25733 | *) : | ||
25734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
25735 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
25736 | esac | ||
25737 | |||
25738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
25739 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
25740 | if test "${ac_cv_c_const+set}" = set; then : | ||
25741 | $as_echo_n "(cached) " >&6 | ||
25742 | else | ||
25743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25744 | /* end confdefs.h. */ | ||
25745 | |||
25746 | int | ||
25747 | main () | ||
25748 | { | ||
25749 | /* FIXME: Include the comments suggested by Paul. */ | ||
25750 | #ifndef __cplusplus | ||
25751 | /* Ultrix mips cc rejects this. */ | ||
25752 | typedef int charset[2]; | ||
25753 | const charset cs; | ||
25754 | /* SunOS 4.1.1 cc rejects this. */ | ||
25755 | char const *const *pcpcc; | ||
25756 | char **ppc; | ||
25757 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
25758 | struct point {int x, y;}; | ||
25759 | static struct point const zero = {0,0}; | ||
25760 | /* AIX XL C 1.02.0.0 rejects this. | ||
25761 | It does not let you subtract one const X* pointer from another in | ||
25762 | an arm of an if-expression whose if-part is not a constant | ||
25763 | expression */ | ||
25764 | const char *g = "string"; | ||
25765 | pcpcc = &g + (g ? g-g : 0); | ||
25766 | /* HPUX 7.0 cc rejects these. */ | ||
25767 | ++pcpcc; | ||
25768 | ppc = (char**) pcpcc; | ||
25769 | pcpcc = (char const *const *) ppc; | ||
25770 | { /* SCO 3.2v4 cc rejects this. */ | ||
25771 | char *t; | ||
25772 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
25773 | |||
25774 | *t++ = 0; | ||
25775 | if (s) return 0; | ||
25776 | } | ||
25777 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
25778 | int x[] = {25, 17}; | ||
25779 | const int *foo = &x[0]; | ||
25780 | ++foo; | ||
25781 | } | ||
25782 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
25783 | typedef const int *iptr; | ||
25784 | iptr p = 0; | ||
25785 | ++p; | ||
25786 | } | ||
25787 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
25788 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
25789 | struct s { int j; const int *ap[3]; }; | ||
25790 | struct s *b; b->j = 5; | ||
25791 | } | ||
25792 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
25793 | const int foo = 10; | ||
25794 | if (!foo) return 0; | ||
25795 | } | ||
25796 | return !cs[0] && !zero.x; | ||
25797 | #endif | ||
25798 | |||
25799 | ; | ||
25800 | return 0; | ||
25801 | } | ||
25802 | _ACEOF | ||
25803 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25804 | ac_cv_c_const=yes | ||
25805 | else | ||
25806 | ac_cv_c_const=no | ||
25807 | fi | ||
25808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25809 | fi | ||
25810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
25811 | $as_echo "$ac_cv_c_const" >&6; } | ||
25812 | if test $ac_cv_c_const = no; then | ||
25813 | |||
25814 | $as_echo "#define const /**/" >>confdefs.h | ||
25815 | |||
25816 | fi | ||
25817 | |||
25818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
25819 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
25820 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
25821 | $as_echo_n "(cached) " >&6 | ||
25822 | else | ||
25823 | ac_cv_c_bigendian=unknown | ||
25824 | # See if we're dealing with a universal compiler. | ||
25825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25826 | /* end confdefs.h. */ | ||
25827 | #ifndef __APPLE_CC__ | ||
25828 | not a universal capable compiler | ||
25829 | #endif | ||
25830 | typedef int dummy; | ||
25831 | |||
25832 | _ACEOF | ||
25833 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25834 | |||
25835 | # Check for potential -arch flags. It is not universal unless | ||
25836 | # there are at least two -arch flags with different values. | ||
25837 | ac_arch= | ||
25838 | ac_prev= | ||
25839 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
25840 | if test -n "$ac_prev"; then | ||
25841 | case $ac_word in | ||
25842 | i?86 | x86_64 | ppc | ppc64) | ||
25843 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
25844 | ac_arch=$ac_word | ||
25845 | else | ||
25846 | ac_cv_c_bigendian=universal | ||
25847 | break | ||
25848 | fi | ||
25849 | ;; | ||
25850 | esac | ||
25851 | ac_prev= | ||
25852 | elif test "x$ac_word" = "x-arch"; then | ||
25853 | ac_prev=arch | ||
25854 | fi | ||
25855 | done | ||
25856 | fi | ||
25857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25858 | if test $ac_cv_c_bigendian = unknown; then | ||
25859 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
25860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25861 | /* end confdefs.h. */ | ||
25862 | #include <sys/types.h> | ||
25863 | #include <sys/param.h> | ||
25864 | |||
25865 | int | ||
25866 | main () | ||
25867 | { | ||
25868 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
25869 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
25870 | && LITTLE_ENDIAN) | ||
25871 | bogus endian macros | ||
25872 | #endif | ||
25873 | |||
25874 | ; | ||
25875 | return 0; | ||
25876 | } | ||
25877 | _ACEOF | ||
25878 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25879 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
25880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25881 | /* end confdefs.h. */ | ||
25882 | #include <sys/types.h> | ||
25883 | #include <sys/param.h> | ||
25884 | |||
25885 | int | ||
25886 | main () | ||
25887 | { | ||
25888 | #if BYTE_ORDER != BIG_ENDIAN | ||
25889 | not big endian | ||
25890 | #endif | ||
25891 | |||
25892 | ; | ||
25893 | return 0; | ||
25894 | } | ||
25895 | _ACEOF | ||
25896 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25897 | ac_cv_c_bigendian=yes | ||
25898 | else | ||
25899 | ac_cv_c_bigendian=no | ||
25900 | fi | ||
25901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25902 | fi | ||
25903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25904 | fi | ||
25905 | if test $ac_cv_c_bigendian = unknown; then | ||
25906 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
25907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25908 | /* end confdefs.h. */ | ||
25909 | #include <limits.h> | ||
25910 | |||
25911 | int | ||
25912 | main () | ||
25913 | { | ||
25914 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
25915 | bogus endian macros | ||
25916 | #endif | ||
25917 | |||
25918 | ; | ||
25919 | return 0; | ||
25920 | } | ||
25921 | _ACEOF | ||
25922 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25923 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
25924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25925 | /* end confdefs.h. */ | ||
25926 | #include <limits.h> | ||
25927 | |||
25928 | int | ||
25929 | main () | ||
25930 | { | ||
25931 | #ifndef _BIG_ENDIAN | ||
25932 | not big endian | ||
25933 | #endif | ||
25934 | |||
25935 | ; | ||
25936 | return 0; | ||
25937 | } | ||
25938 | _ACEOF | ||
25939 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25940 | ac_cv_c_bigendian=yes | ||
25941 | else | ||
25942 | ac_cv_c_bigendian=no | ||
25943 | fi | ||
25944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25945 | fi | ||
25946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25947 | fi | ||
25948 | if test $ac_cv_c_bigendian = unknown; then | ||
25949 | # Compile a test program. | ||
25950 | if test "$cross_compiling" = yes; then : | ||
25951 | # Try to guess by grepping values from an object file. | ||
25952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25953 | /* end confdefs.h. */ | ||
25954 | short int ascii_mm[] = | ||
25955 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
25956 | short int ascii_ii[] = | ||
25957 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
25958 | int use_ascii (int i) { | ||
25959 | return ascii_mm[i] + ascii_ii[i]; | ||
25960 | } | ||
25961 | short int ebcdic_ii[] = | ||
25962 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
25963 | short int ebcdic_mm[] = | ||
25964 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
25965 | int use_ebcdic (int i) { | ||
25966 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
25967 | } | ||
25968 | extern int foo; | ||
25969 | |||
25970 | int | ||
25971 | main () | ||
25972 | { | ||
25973 | return use_ascii (foo) == use_ebcdic (foo); | ||
25974 | ; | ||
25975 | return 0; | ||
25976 | } | ||
25977 | _ACEOF | ||
25978 | if ac_fn_c_try_compile "$LINENO"; then : | ||
25979 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
25980 | ac_cv_c_bigendian=yes | ||
25981 | fi | ||
25982 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
25983 | if test "$ac_cv_c_bigendian" = unknown; then | ||
25984 | ac_cv_c_bigendian=no | ||
25985 | else | ||
25986 | # finding both strings is unlikely to happen, but who knows? | ||
25987 | ac_cv_c_bigendian=unknown | ||
25988 | fi | ||
25989 | fi | ||
25990 | fi | ||
25991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25992 | else | ||
25993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25994 | /* end confdefs.h. */ | ||
25995 | $ac_includes_default | ||
25996 | int | ||
25997 | main () | ||
25998 | { | ||
25999 | |||
26000 | /* Are we little or big endian? From Harbison&Steele. */ | ||
26001 | union | ||
26002 | { | ||
26003 | long int l; | ||
26004 | char c[sizeof (long int)]; | ||
26005 | } u; | ||
26006 | u.l = 1; | ||
26007 | return u.c[sizeof (long int) - 1] == 1; | ||
26008 | |||
26009 | ; | ||
26010 | return 0; | ||
26011 | } | ||
26012 | _ACEOF | ||
26013 | if ac_fn_c_try_run "$LINENO"; then : | ||
26014 | ac_cv_c_bigendian=no | ||
26015 | else | ||
26016 | ac_cv_c_bigendian=yes | ||
26017 | fi | ||
26018 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
26019 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
26020 | fi | ||
26021 | |||
26022 | fi | ||
26023 | fi | ||
26024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
26025 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
26026 | case $ac_cv_c_bigendian in #( | ||
26027 | yes) | ||
26028 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
26029 | ;; #( | ||
26030 | no) | ||
26031 | ;; #( | ||
26032 | universal) | ||
26033 | |||
26034 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
26035 | |||
26036 | ;; #( | ||
26037 | *) | ||
26038 | as_fn_error $? "unknown endianness | ||
26039 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
26040 | esac | ||
26041 | |||
26042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
26043 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
26044 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
26045 | $as_echo_n "(cached) " >&6 | ||
26046 | else | ||
26047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26048 | /* end confdefs.h. */ | ||
26049 | #include <stdlib.h> | ||
26050 | #include <stdarg.h> | ||
26051 | #include <string.h> | ||
26052 | #include <float.h> | ||
26053 | |||
26054 | int | ||
26055 | main () | ||
26056 | { | ||
26057 | |||
26058 | ; | ||
26059 | return 0; | ||
26060 | } | ||
26061 | _ACEOF | ||
26062 | if ac_fn_c_try_compile "$LINENO"; then : | ||
26063 | ac_cv_header_stdc=yes | ||
26064 | else | ||
26065 | ac_cv_header_stdc=no | ||
26066 | fi | ||
26067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26068 | |||
26069 | if test $ac_cv_header_stdc = yes; then | ||
26070 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
26071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26072 | /* end confdefs.h. */ | ||
26073 | #include <string.h> | ||
26074 | |||
26075 | _ACEOF | ||
26076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
26077 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
26078 | |||
26079 | else | ||
26080 | ac_cv_header_stdc=no | ||
26081 | fi | ||
26082 | rm -f conftest* | ||
26083 | |||
26084 | fi | ||
26085 | |||
26086 | if test $ac_cv_header_stdc = yes; then | ||
26087 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
26088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26089 | /* end confdefs.h. */ | ||
26090 | #include <stdlib.h> | ||
26091 | |||
26092 | _ACEOF | ||
26093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
26094 | $EGREP "free" >/dev/null 2>&1; then : | ||
26095 | |||
26096 | else | ||
26097 | ac_cv_header_stdc=no | ||
26098 | fi | ||
26099 | rm -f conftest* | ||
26100 | |||
26101 | fi | ||
26102 | |||
26103 | if test $ac_cv_header_stdc = yes; then | ||
26104 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
26105 | if test "$cross_compiling" = yes; then : | ||
26106 | : | ||
26107 | else | ||
26108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26109 | /* end confdefs.h. */ | ||
26110 | #include <ctype.h> | ||
26111 | #include <stdlib.h> | ||
26112 | #if ((' ' & 0x0FF) == 0x020) | ||
26113 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
26114 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
26115 | #else | ||
26116 | # define ISLOWER(c) \ | ||
26117 | (('a' <= (c) && (c) <= 'i') \ | ||
26118 | || ('j' <= (c) && (c) <= 'r') \ | ||
26119 | || ('s' <= (c) && (c) <= 'z')) | ||
26120 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
26121 | #endif | ||
26122 | |||
26123 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
26124 | int | ||
26125 | main () | ||
26126 | { | ||
26127 | int i; | ||
26128 | for (i = 0; i < 256; i++) | ||
26129 | if (XOR (islower (i), ISLOWER (i)) | ||
26130 | || toupper (i) != TOUPPER (i)) | ||
26131 | return 2; | ||
26132 | return 0; | ||
26133 | } | ||
26134 | _ACEOF | ||
26135 | if ac_fn_c_try_run "$LINENO"; then : | ||
26136 | |||
26137 | else | ||
26138 | ac_cv_header_stdc=no | ||
26139 | fi | ||
26140 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
26141 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
26142 | fi | ||
26143 | |||
26144 | fi | ||
26145 | fi | ||
26146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
26147 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
26148 | if test $ac_cv_header_stdc = yes; then | ||
26149 | |||
26150 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
26151 | |||
26152 | fi | ||
26153 | |||
26154 | |||
26155 | |||
26156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | ||
26157 | $as_echo_n "checking for __attribute__... " >&6; } | ||
26158 | |||
26159 | if test "${ac_cv___attribute__+set}" = set; then : | ||
26160 | $as_echo_n "(cached) " >&6 | ||
26161 | else | ||
26162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26163 | /* end confdefs.h. */ | ||
26164 | |||
26165 | #include <stdlib.h> | ||
26166 | |||
26167 | int func(int x); | ||
26168 | int foo(int x __attribute__ ((unused))) | ||
26169 | { | ||
26170 | exit(1); | ||
26171 | } | ||
26172 | |||
26173 | int | ||
26174 | main () | ||
26175 | { | ||
26176 | |||
26177 | ; | ||
26178 | return 0; | ||
26179 | } | ||
26180 | _ACEOF | ||
26181 | if ac_fn_c_try_compile "$LINENO"; then : | ||
26182 | ac_cv___attribute__="yes" | ||
26183 | else | ||
26184 | ac_cv___attribute__="no" | ||
26185 | |||
26186 | fi | ||
26187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26188 | fi | ||
26189 | |||
26190 | |||
26191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 | ||
26192 | $as_echo "$ac_cv___attribute__" >&6; } | ||
26193 | |||
26194 | if test "x${ac_cv___attribute__}" = "xyes" ; then | ||
26195 | |||
26196 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | ||
26197 | |||
26198 | |||
26199 | $as_echo "#define __UNUSED__ __attribute__((unused))" >>confdefs.h | ||
26200 | |||
26201 | else | ||
26202 | |||
26203 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
26204 | |||
26205 | fi | ||
26206 | |||
26207 | |||
26208 | |||
26209 | WIN32_CPPFLAGS="" | ||
26210 | WIN32_CFLAGS="" | ||
26211 | case "$host_os" in | ||
26212 | mingw32ce*) | ||
26213 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
26214 | ;; | ||
26215 | cegcc*) | ||
26216 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
26217 | WIN32_CFLAGS="-mwin32" | ||
26218 | ;; | ||
26219 | mingw*) | ||
26220 | WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
26221 | ;; | ||
26222 | esac | ||
26223 | |||
26224 | |||
26225 | |||
26226 | |||
26227 | ### Checks for linker characteristics | ||
26228 | |||
26229 | # use --enable-auto-import on Windows | ||
26230 | |||
26231 | lt_enable_auto_import="" | ||
26232 | case "$host_os" in | ||
26233 | mingw* | cegcc*) | ||
26234 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
26235 | ;; | ||
26236 | esac | ||
26237 | |||
26238 | |||
26239 | ### Checks for library functions | ||
26240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
26241 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
26242 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
26243 | $as_echo_n "(cached) " >&6 | ||
26244 | else | ||
26245 | ac_func_search_save_LIBS=$LIBS | ||
26246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26247 | /* end confdefs.h. */ | ||
26248 | |||
26249 | /* Override any GCC internal prototype to avoid an error. | ||
26250 | Use char because int might match the return type of a GCC | ||
26251 | builtin and then its argument prototype would still apply. */ | ||
26252 | #ifdef __cplusplus | ||
26253 | extern "C" | ||
26254 | #endif | ||
26255 | char strerror (); | ||
26256 | int | ||
26257 | main () | ||
26258 | { | ||
26259 | return strerror (); | ||
26260 | ; | ||
26261 | return 0; | ||
26262 | } | ||
26263 | _ACEOF | ||
26264 | for ac_lib in '' cposix; do | ||
26265 | if test -z "$ac_lib"; then | ||
26266 | ac_res="none required" | ||
26267 | else | ||
26268 | ac_res=-l$ac_lib | ||
26269 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
26270 | fi | ||
26271 | if ac_fn_c_try_link "$LINENO"; then : | ||
26272 | ac_cv_search_strerror=$ac_res | ||
26273 | fi | ||
26274 | rm -f core conftest.err conftest.$ac_objext \ | ||
26275 | conftest$ac_exeext | ||
26276 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
26277 | break | ||
26278 | fi | ||
26279 | done | ||
26280 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
26281 | |||
26282 | else | ||
26283 | ac_cv_search_strerror=no | ||
26284 | fi | ||
26285 | rm conftest.$ac_ext | ||
26286 | LIBS=$ac_func_search_save_LIBS | ||
26287 | fi | ||
26288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
26289 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
26290 | ac_res=$ac_cv_search_strerror | ||
26291 | if test "$ac_res" != no; then : | ||
26292 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
26293 | |||
26294 | fi | ||
26295 | |||
26296 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
26297 | # for constant arguments. Useless! | ||
26298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
26299 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
26300 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
26301 | $as_echo_n "(cached) " >&6 | ||
26302 | else | ||
26303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26304 | /* end confdefs.h. */ | ||
26305 | #include <alloca.h> | ||
26306 | int | ||
26307 | main () | ||
26308 | { | ||
26309 | char *p = (char *) alloca (2 * sizeof (int)); | ||
26310 | if (p) return 0; | ||
26311 | ; | ||
26312 | return 0; | ||
26313 | } | ||
26314 | _ACEOF | ||
26315 | if ac_fn_c_try_link "$LINENO"; then : | ||
26316 | ac_cv_working_alloca_h=yes | ||
26317 | else | ||
26318 | ac_cv_working_alloca_h=no | ||
26319 | fi | ||
26320 | rm -f core conftest.err conftest.$ac_objext \ | ||
26321 | conftest$ac_exeext conftest.$ac_ext | ||
26322 | fi | ||
26323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
26324 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
26325 | if test $ac_cv_working_alloca_h = yes; then | ||
26326 | |||
26327 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
26328 | |||
26329 | fi | ||
26330 | |||
26331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
26332 | $as_echo_n "checking for alloca... " >&6; } | ||
26333 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
26334 | $as_echo_n "(cached) " >&6 | ||
26335 | else | ||
26336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26337 | /* end confdefs.h. */ | ||
26338 | #ifdef __GNUC__ | ||
26339 | # define alloca __builtin_alloca | ||
26340 | #else | ||
26341 | # ifdef _MSC_VER | ||
26342 | # include <malloc.h> | ||
26343 | # define alloca _alloca | ||
26344 | # else | ||
26345 | # ifdef HAVE_ALLOCA_H | ||
26346 | # include <alloca.h> | ||
26347 | # else | ||
26348 | # ifdef _AIX | ||
26349 | #pragma alloca | ||
26350 | # else | ||
26351 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
26352 | char *alloca (); | ||
26353 | # endif | ||
26354 | # endif | ||
26355 | # endif | ||
26356 | # endif | ||
26357 | #endif | ||
26358 | |||
26359 | int | ||
26360 | main () | ||
26361 | { | ||
26362 | char *p = (char *) alloca (1); | ||
26363 | if (p) return 0; | ||
26364 | ; | ||
26365 | return 0; | ||
26366 | } | ||
26367 | _ACEOF | ||
26368 | if ac_fn_c_try_link "$LINENO"; then : | ||
26369 | ac_cv_func_alloca_works=yes | ||
26370 | else | ||
26371 | ac_cv_func_alloca_works=no | ||
26372 | fi | ||
26373 | rm -f core conftest.err conftest.$ac_objext \ | ||
26374 | conftest$ac_exeext conftest.$ac_ext | ||
26375 | fi | ||
26376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
26377 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
26378 | |||
26379 | if test $ac_cv_func_alloca_works = yes; then | ||
26380 | |||
26381 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
26382 | |||
26383 | else | ||
26384 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
26385 | # that cause trouble. Some versions do not even contain alloca or | ||
26386 | # contain a buggy version. If you still want to use their alloca, | ||
26387 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
26388 | |||
26389 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
26390 | |||
26391 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
26392 | |||
26393 | |||
26394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
26395 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
26396 | if test "${ac_cv_os_cray+set}" = set; then : | ||
26397 | $as_echo_n "(cached) " >&6 | ||
26398 | else | ||
26399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26400 | /* end confdefs.h. */ | ||
26401 | #if defined CRAY && ! defined CRAY2 | ||
26402 | webecray | ||
26403 | #else | ||
26404 | wenotbecray | ||
26405 | #endif | ||
26406 | |||
26407 | _ACEOF | ||
26408 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
26409 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
26410 | ac_cv_os_cray=yes | ||
26411 | else | ||
26412 | ac_cv_os_cray=no | ||
26413 | fi | ||
26414 | rm -f conftest* | ||
26415 | |||
26416 | fi | ||
26417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
26418 | $as_echo "$ac_cv_os_cray" >&6; } | ||
26419 | if test $ac_cv_os_cray = yes; then | ||
26420 | for ac_func in _getb67 GETB67 getb67; do | ||
26421 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26422 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
26423 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
26424 | |||
26425 | cat >>confdefs.h <<_ACEOF | ||
26426 | #define CRAY_STACKSEG_END $ac_func | ||
26427 | _ACEOF | ||
26428 | |||
26429 | break | ||
26430 | fi | ||
26431 | |||
26432 | done | ||
26433 | fi | ||
26434 | |||
26435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
26436 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
26437 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
26438 | $as_echo_n "(cached) " >&6 | ||
26439 | else | ||
26440 | if test "$cross_compiling" = yes; then : | ||
26441 | ac_cv_c_stack_direction=0 | ||
26442 | else | ||
26443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26444 | /* end confdefs.h. */ | ||
26445 | $ac_includes_default | ||
26446 | int | ||
26447 | find_stack_direction () | ||
26448 | { | ||
26449 | static char *addr = 0; | ||
26450 | auto char dummy; | ||
26451 | if (addr == 0) | ||
26452 | { | ||
26453 | addr = &dummy; | ||
26454 | return find_stack_direction (); | ||
26455 | } | ||
26456 | else | ||
26457 | return (&dummy > addr) ? 1 : -1; | ||
26458 | } | ||
26459 | |||
26460 | int | ||
26461 | main () | ||
26462 | { | ||
26463 | return find_stack_direction () < 0; | ||
26464 | } | ||
26465 | _ACEOF | ||
26466 | if ac_fn_c_try_run "$LINENO"; then : | ||
26467 | ac_cv_c_stack_direction=1 | ||
26468 | else | ||
26469 | ac_cv_c_stack_direction=-1 | ||
26470 | fi | ||
26471 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
26472 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
26473 | fi | ||
26474 | |||
26475 | fi | ||
26476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
26477 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
26478 | cat >>confdefs.h <<_ACEOF | ||
26479 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
26480 | _ACEOF | ||
26481 | |||
26482 | |||
26483 | fi | ||
26484 | |||
26485 | for ac_func in gettimeofday strlcpy execvp | ||
26486 | do : | ||
26487 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26488 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
26489 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
26490 | cat >>confdefs.h <<_ACEOF | ||
26491 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
26492 | _ACEOF | ||
26493 | |||
26494 | fi | ||
26495 | done | ||
26496 | |||
26497 | |||
26498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26499 | /* end confdefs.h. */ | ||
26500 | |||
26501 | #include <math.h> | ||
26502 | |||
26503 | int | ||
26504 | main () | ||
26505 | { | ||
26506 | |||
26507 | int i = isfinite(0); | ||
26508 | |||
26509 | ; | ||
26510 | return 0; | ||
26511 | } | ||
26512 | _ACEOF | ||
26513 | if ac_fn_c_try_compile "$LINENO"; then : | ||
26514 | |||
26515 | |||
26516 | $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h | ||
26517 | |||
26518 | have_isfinite="yes" | ||
26519 | |||
26520 | else | ||
26521 | have_isfinite="no" | ||
26522 | fi | ||
26523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26524 | |||
26525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5 | ||
26526 | $as_echo_n "checking for isfinite... " >&6; } | ||
26527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_isfinite}" >&5 | ||
26528 | $as_echo "${have_isfinite}" >&6; } | ||
26529 | |||
26530 | have_atfile_source=auto | ||
26531 | # Check whether --enable-atfile-source was given. | ||
26532 | if test "${enable_atfile_source+set}" = set; then : | ||
26533 | enableval=$enable_atfile_source; | ||
26534 | if test "x${enableval}" = "xyes" ; then | ||
26535 | have_atfile_source="yes" | ||
26536 | else | ||
26537 | have_atfile_source="no" | ||
26538 | fi | ||
26539 | else | ||
26540 | have_atfile_source=auto | ||
26541 | fi | ||
26542 | |||
26543 | |||
26544 | if ! test "x${have_atfile_source}" = "xno" ; then | ||
26545 | for ac_func in mkdirat | ||
26546 | do : | ||
26547 | ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat" | ||
26548 | if test "x$ac_cv_func_mkdirat" = x""yes; then : | ||
26549 | cat >>confdefs.h <<_ACEOF | ||
26550 | #define HAVE_MKDIRAT 1 | ||
26551 | _ACEOF | ||
26552 | |||
26553 | have_atfile_source="yes" | ||
26554 | |||
26555 | $as_echo "#define HAVE_ATFILE_SOURCE 1" >>confdefs.h | ||
26556 | |||
26557 | |||
26558 | else | ||
26559 | |||
26560 | if test "x${have_atfile_source}" = "xyes" ; then | ||
26561 | as_fn_error $? "required atfile-source but no mkdirat()" "$LINENO" 5 | ||
26562 | fi | ||
26563 | have_atfile_source="no" | ||
26564 | |||
26565 | fi | ||
26566 | done | ||
26567 | |||
26568 | fi | ||
26569 | |||
26570 | SHM_OPEN_LIBS="" | ||
26571 | |||
26572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open is in libc" >&5 | ||
26573 | $as_echo_n "checking whether shm_open is in libc... " >&6; } | ||
26574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26575 | /* end confdefs.h. */ | ||
26576 | |||
26577 | #include <sys/mman.h> | ||
26578 | #include <sys/stat.h> | ||
26579 | #include <fcntl.h> | ||
26580 | |||
26581 | int | ||
26582 | main () | ||
26583 | { | ||
26584 | |||
26585 | int fd; | ||
26586 | fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
26587 | shm_unlink("/"); | ||
26588 | |||
26589 | ; | ||
26590 | return 0; | ||
26591 | } | ||
26592 | _ACEOF | ||
26593 | if ac_fn_c_try_link "$LINENO"; then : | ||
26594 | |||
26595 | have_shm_open="yes" | ||
26596 | |||
26597 | $as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h | ||
26598 | |||
26599 | |||
26600 | else | ||
26601 | have_shm_open="no" | ||
26602 | fi | ||
26603 | rm -f core conftest.err conftest.$ac_objext \ | ||
26604 | conftest$ac_exeext conftest.$ac_ext | ||
26605 | LIBS="${LIBS_save}" | ||
26606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_shm_open}" >&5 | ||
26607 | $as_echo "${have_shm_open}" >&6; } | ||
26608 | |||
26609 | if ! test "x${have_shm_open}" = "xyes" ; then | ||
26610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open is in librt" >&5 | ||
26611 | $as_echo_n "checking whether shm_open is in librt... " >&6; } | ||
26612 | LIBS_save="${LIBS}" | ||
26613 | LIBS="${LIBS} -lrt" | ||
26614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26615 | /* end confdefs.h. */ | ||
26616 | |||
26617 | #include <sys/mman.h> | ||
26618 | #include <sys/stat.h> | ||
26619 | #include <fcntl.h> | ||
26620 | |||
26621 | int | ||
26622 | main () | ||
26623 | { | ||
26624 | |||
26625 | int fd; | ||
26626 | fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
26627 | shm_unlink("/"); | ||
26628 | |||
26629 | ; | ||
26630 | return 0; | ||
26631 | } | ||
26632 | _ACEOF | ||
26633 | if ac_fn_c_try_link "$LINENO"; then : | ||
26634 | |||
26635 | have_shm_open="yes" | ||
26636 | |||
26637 | $as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h | ||
26638 | |||
26639 | SHM_OPEN_LIBS="-lrt" | ||
26640 | |||
26641 | else | ||
26642 | have_shm_open="no" | ||
26643 | fi | ||
26644 | rm -f core conftest.err conftest.$ac_objext \ | ||
26645 | conftest$ac_exeext conftest.$ac_ext | ||
26646 | LIBS="${LIBS_save}" | ||
26647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_shm_open}" >&5 | ||
26648 | $as_echo "${have_shm_open}" >&6; } | ||
26649 | fi | ||
26650 | |||
26651 | |||
26652 | |||
26653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open is available" >&5 | ||
26654 | $as_echo_n "checking whether shm_open is available... " >&6; } | ||
26655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_shm_open}" >&5 | ||
26656 | $as_echo "${have_shm_open}" >&6; } | ||
26657 | |||
26658 | ### Checks for optionnal feature | ||
26659 | ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo" | ||
26660 | if test "x$ac_cv_func_mallinfo" = x""yes; then : | ||
26661 | |||
26662 | have_mallinfo="yes" | ||
26663 | |||
26664 | $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h | ||
26665 | |||
26666 | |||
26667 | else | ||
26668 | have_mallinfo="no" | ||
26669 | fi | ||
26670 | |||
26671 | |||
26672 | ### Ecore modules | ||
26673 | |||
26674 | ## Core modules | ||
26675 | |||
26676 | # ecore_con | ||
26677 | |||
26678 | |||
26679 | have_ecore_con=no | ||
26680 | ecore_con_cflags= | ||
26681 | ecore_con_libs= | ||
26682 | want_module=${want_ecore_con} | ||
26683 | |||
26684 | # Check whether --enable-ecore-con was given. | ||
26685 | if test "${enable_ecore_con+set}" = set; then : | ||
26686 | enableval=$enable_ecore_con; | ||
26687 | if test "x${enableval}" = "xyes" ; then | ||
26688 | want_module="yes" | ||
26689 | else | ||
26690 | want_module="no" | ||
26691 | fi | ||
26692 | |||
26693 | fi | ||
26694 | |||
26695 | |||
26696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Con module is to be built" >&5 | ||
26697 | $as_echo_n "checking whether Ecore_Con module is to be built... " >&6; } | ||
26698 | |||
26699 | if test "x${want_module}" = "xyes" ; then | ||
26700 | if test "x${have_addrinfo}" = "x" || test "x${have_addrinfo}" = "xyes" ; then | ||
26701 | |||
26702 | $as_echo "#define BUILD_ECORE_CON 1" >>confdefs.h | ||
26703 | |||
26704 | have_ecore_con="yes" | ||
26705 | ecore_con_libs="-lecore_con" | ||
26706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26707 | $as_echo "yes" >&6; } | ||
26708 | else | ||
26709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
26710 | $as_echo "no (dependency failed)" >&6; } | ||
26711 | fi | ||
26712 | else | ||
26713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26714 | $as_echo "no" >&6; } | ||
26715 | fi | ||
26716 | |||
26717 | if test "x$have_ecore_con" = "xyes"; then | ||
26718 | BUILD_ECORE_CON_TRUE= | ||
26719 | BUILD_ECORE_CON_FALSE='#' | ||
26720 | else | ||
26721 | BUILD_ECORE_CON_TRUE='#' | ||
26722 | BUILD_ECORE_CON_FALSE= | ||
26723 | fi | ||
26724 | |||
26725 | |||
26726 | if test "x$have_ecore_con" = "xyes"; then : | ||
26727 | |||
26728 | fi | ||
26729 | |||
26730 | |||
26731 | |||
26732 | |||
26733 | |||
26734 | |||
26735 | |||
26736 | |||
26737 | have_curl="no" | ||
26738 | have_gnutls="no" | ||
26739 | have_openssl="no" | ||
26740 | have_cares="no" | ||
26741 | want_ipv6="yes" | ||
26742 | have_ipv6="no" | ||
26743 | |||
26744 | # Check whether --enable-ipv6 was given. | ||
26745 | if test "${enable_ipv6+set}" = set; then : | ||
26746 | enableval=$enable_ipv6; | ||
26747 | if test "x${enableval}" = "xyes" ; then | ||
26748 | want_ipv6="yes" | ||
26749 | else | ||
26750 | want_ipv6="no" | ||
26751 | fi | ||
26752 | else | ||
26753 | want_ipv6="auto" | ||
26754 | fi | ||
26755 | |||
26756 | |||
26757 | if test "x${have_ecore_con}" = "xyes" ; then | ||
26758 | |||
26759 | # Verify IPV6 availability in headers | ||
26760 | if test "x${want_ipv6}" != "xno" ; then | ||
26761 | ac_fn_c_check_type "$LINENO" "struct ipv6_mreq" "ac_cv_type_struct_ipv6_mreq" " | ||
26762 | #ifdef HAVE_NETINET_IN_H | ||
26763 | # include <netinet/in.h> | ||
26764 | #endif | ||
26765 | #ifdef HAVE_WS2TCPIP_H | ||
26766 | # include <ws2tcpip.h> | ||
26767 | #endif | ||
26768 | |||
26769 | " | ||
26770 | if test "x$ac_cv_type_struct_ipv6_mreq" = x""yes; then : | ||
26771 | |||
26772 | cat >>confdefs.h <<_ACEOF | ||
26773 | #define HAVE_STRUCT_IPV6_MREQ 1 | ||
26774 | _ACEOF | ||
26775 | |||
26776 | have_ipv6="yes" | ||
26777 | else | ||
26778 | have_ipv6="no" | ||
26779 | fi | ||
26780 | |||
26781 | fi | ||
26782 | |||
26783 | if test "x${have_ipv6}" = "xyes" ; then | ||
26784 | |||
26785 | $as_echo "#define HAVE_IPV6 1" >>confdefs.h | ||
26786 | |||
26787 | fi | ||
26788 | |||
26789 | |||
26790 | _ecore_want_curl=${want_curl} | ||
26791 | _ecore_have_curl="no" | ||
26792 | |||
26793 | # Check whether --enable-curl was given. | ||
26794 | if test "${enable_curl+set}" = set; then : | ||
26795 | enableval=$enable_curl; | ||
26796 | if test "x${enableval}" = "xyes" ; then | ||
26797 | _ecore_want_curl="yes" | ||
26798 | else | ||
26799 | _ecore_want_curl="no" | ||
26800 | fi | ||
26801 | |||
26802 | fi | ||
26803 | |||
26804 | |||
26805 | if test "x${_ecore_want_curl}" = "xyes" ; then | ||
26806 | |||
26807 | pkg_failed=no | ||
26808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5 | ||
26809 | $as_echo_n "checking for CURL... " >&6; } | ||
26810 | |||
26811 | if test -n "$CURL_CFLAGS"; then | ||
26812 | pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" | ||
26813 | elif test -n "$PKG_CONFIG"; then | ||
26814 | if test -n "$PKG_CONFIG" && \ | ||
26815 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 | ||
26816 | ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 | ||
26817 | ac_status=$? | ||
26818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26819 | test $ac_status = 0; }; then | ||
26820 | pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null` | ||
26821 | else | ||
26822 | pkg_failed=yes | ||
26823 | fi | ||
26824 | else | ||
26825 | pkg_failed=untried | ||
26826 | fi | ||
26827 | if test -n "$CURL_LIBS"; then | ||
26828 | pkg_cv_CURL_LIBS="$CURL_LIBS" | ||
26829 | elif test -n "$PKG_CONFIG"; then | ||
26830 | if test -n "$PKG_CONFIG" && \ | ||
26831 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 | ||
26832 | ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 | ||
26833 | ac_status=$? | ||
26834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26835 | test $ac_status = 0; }; then | ||
26836 | pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null` | ||
26837 | else | ||
26838 | pkg_failed=yes | ||
26839 | fi | ||
26840 | else | ||
26841 | pkg_failed=untried | ||
26842 | fi | ||
26843 | |||
26844 | |||
26845 | |||
26846 | if test $pkg_failed = yes; then | ||
26847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26848 | $as_echo "no" >&6; } | ||
26849 | |||
26850 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
26851 | _pkg_short_errors_supported=yes | ||
26852 | else | ||
26853 | _pkg_short_errors_supported=no | ||
26854 | fi | ||
26855 | if test $_pkg_short_errors_supported = yes; then | ||
26856 | CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1` | ||
26857 | else | ||
26858 | CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1` | ||
26859 | fi | ||
26860 | # Put the nasty error message in config.log where it belongs | ||
26861 | echo "$CURL_PKG_ERRORS" >&5 | ||
26862 | |||
26863 | _ecore_have_curl="no" | ||
26864 | elif test $pkg_failed = untried; then | ||
26865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26866 | $as_echo "no" >&6; } | ||
26867 | _ecore_have_curl="no" | ||
26868 | else | ||
26869 | CURL_CFLAGS=$pkg_cv_CURL_CFLAGS | ||
26870 | CURL_LIBS=$pkg_cv_CURL_LIBS | ||
26871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26872 | $as_echo "yes" >&6; } | ||
26873 | |||
26874 | |||
26875 | $as_echo "#define HAVE_CURL 1" >>confdefs.h | ||
26876 | |||
26877 | _ecore_have_curl="yes" | ||
26878 | |||
26879 | fi | ||
26880 | fi | ||
26881 | |||
26882 | if test "x$_ecore_have_curl" = "xyes" ; then | ||
26883 | |||
26884 | have_curl="yes" | ||
26885 | requirements_ecore_con="libcurl ${requirements_ecore_con}" | ||
26886 | |||
26887 | else | ||
26888 | have_curl="no" | ||
26889 | fi | ||
26890 | |||
26891 | |||
26892 | |||
26893 | _ecore_want_gnutls=${want_gnutls} | ||
26894 | _ecore_have_gnutls="no" | ||
26895 | |||
26896 | # Check whether --enable-gnutls was given. | ||
26897 | if test "${enable_gnutls+set}" = set; then : | ||
26898 | enableval=$enable_gnutls; | ||
26899 | if test "x${enableval}" = "xyes" ; then | ||
26900 | _ecore_want_gnutls="yes" | ||
26901 | else | ||
26902 | _ecore_want_gnutls="no" | ||
26903 | fi | ||
26904 | |||
26905 | fi | ||
26906 | |||
26907 | |||
26908 | if test "x${_ecore_want_gnutls}" = "xyes" -o "x${_ecore_want_gnutls}" = "xauto" ; then | ||
26909 | |||
26910 | pkg_failed=no | ||
26911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 | ||
26912 | $as_echo_n "checking for TLS... " >&6; } | ||
26913 | |||
26914 | if test -n "$TLS_CFLAGS"; then | ||
26915 | pkg_cv_TLS_CFLAGS="$TLS_CFLAGS" | ||
26916 | elif test -n "$PKG_CONFIG"; then | ||
26917 | if test -n "$PKG_CONFIG" && \ | ||
26918 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.2\""; } >&5 | ||
26919 | ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.2") 2>&5 | ||
26920 | ac_status=$? | ||
26921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26922 | test $ac_status = 0; }; then | ||
26923 | pkg_cv_TLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.10.2" 2>/dev/null` | ||
26924 | else | ||
26925 | pkg_failed=yes | ||
26926 | fi | ||
26927 | else | ||
26928 | pkg_failed=untried | ||
26929 | fi | ||
26930 | if test -n "$TLS_LIBS"; then | ||
26931 | pkg_cv_TLS_LIBS="$TLS_LIBS" | ||
26932 | elif test -n "$PKG_CONFIG"; then | ||
26933 | if test -n "$PKG_CONFIG" && \ | ||
26934 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.2\""; } >&5 | ||
26935 | ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.2") 2>&5 | ||
26936 | ac_status=$? | ||
26937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26938 | test $ac_status = 0; }; then | ||
26939 | pkg_cv_TLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.10.2" 2>/dev/null` | ||
26940 | else | ||
26941 | pkg_failed=yes | ||
26942 | fi | ||
26943 | else | ||
26944 | pkg_failed=untried | ||
26945 | fi | ||
26946 | |||
26947 | |||
26948 | |||
26949 | if test $pkg_failed = yes; then | ||
26950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26951 | $as_echo "no" >&6; } | ||
26952 | |||
26953 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
26954 | _pkg_short_errors_supported=yes | ||
26955 | else | ||
26956 | _pkg_short_errors_supported=no | ||
26957 | fi | ||
26958 | if test $_pkg_short_errors_supported = yes; then | ||
26959 | TLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 2.10.2" 2>&1` | ||
26960 | else | ||
26961 | TLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 2.10.2" 2>&1` | ||
26962 | fi | ||
26963 | # Put the nasty error message in config.log where it belongs | ||
26964 | echo "$TLS_PKG_ERRORS" >&5 | ||
26965 | |||
26966 | _ecore_have_gnutls="no" | ||
26967 | elif test $pkg_failed = untried; then | ||
26968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26969 | $as_echo "no" >&6; } | ||
26970 | _ecore_have_gnutls="no" | ||
26971 | else | ||
26972 | TLS_CFLAGS=$pkg_cv_TLS_CFLAGS | ||
26973 | TLS_LIBS=$pkg_cv_TLS_LIBS | ||
26974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26975 | $as_echo "yes" >&6; } | ||
26976 | |||
26977 | |||
26978 | $as_echo "#define USE_GNUTLS 1" >>confdefs.h | ||
26979 | |||
26980 | _ecore_have_gnutls="yes" | ||
26981 | |||
26982 | fi | ||
26983 | # for ecore_con_ssl.c | ||
26984 | |||
26985 | pkg_failed=no | ||
26986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS2" >&5 | ||
26987 | $as_echo_n "checking for TLS2... " >&6; } | ||
26988 | |||
26989 | if test -n "$TLS2_CFLAGS"; then | ||
26990 | pkg_cv_TLS2_CFLAGS="$TLS2_CFLAGS" | ||
26991 | elif test -n "$PKG_CONFIG"; then | ||
26992 | if test -n "$PKG_CONFIG" && \ | ||
26993 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.2\""; } >&5 | ||
26994 | ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.2") 2>&5 | ||
26995 | ac_status=$? | ||
26996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
26997 | test $ac_status = 0; }; then | ||
26998 | pkg_cv_TLS2_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.10.2" 2>/dev/null` | ||
26999 | else | ||
27000 | pkg_failed=yes | ||
27001 | fi | ||
27002 | else | ||
27003 | pkg_failed=untried | ||
27004 | fi | ||
27005 | if test -n "$TLS2_LIBS"; then | ||
27006 | pkg_cv_TLS2_LIBS="$TLS2_LIBS" | ||
27007 | elif test -n "$PKG_CONFIG"; then | ||
27008 | if test -n "$PKG_CONFIG" && \ | ||
27009 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.2\""; } >&5 | ||
27010 | ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.2") 2>&5 | ||
27011 | ac_status=$? | ||
27012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27013 | test $ac_status = 0; }; then | ||
27014 | pkg_cv_TLS2_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.10.2" 2>/dev/null` | ||
27015 | else | ||
27016 | pkg_failed=yes | ||
27017 | fi | ||
27018 | else | ||
27019 | pkg_failed=untried | ||
27020 | fi | ||
27021 | |||
27022 | |||
27023 | |||
27024 | if test $pkg_failed = yes; then | ||
27025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27026 | $as_echo "no" >&6; } | ||
27027 | |||
27028 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27029 | _pkg_short_errors_supported=yes | ||
27030 | else | ||
27031 | _pkg_short_errors_supported=no | ||
27032 | fi | ||
27033 | if test $_pkg_short_errors_supported = yes; then | ||
27034 | TLS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 2.10.2" 2>&1` | ||
27035 | else | ||
27036 | TLS2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 2.10.2" 2>&1` | ||
27037 | fi | ||
27038 | # Put the nasty error message in config.log where it belongs | ||
27039 | echo "$TLS2_PKG_ERRORS" >&5 | ||
27040 | |||
27041 | dummy="no" | ||
27042 | elif test $pkg_failed = untried; then | ||
27043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27044 | $as_echo "no" >&6; } | ||
27045 | dummy="no" | ||
27046 | else | ||
27047 | TLS2_CFLAGS=$pkg_cv_TLS2_CFLAGS | ||
27048 | TLS2_LIBS=$pkg_cv_TLS2_LIBS | ||
27049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27050 | $as_echo "yes" >&6; } | ||
27051 | |||
27052 | $as_echo "#define USE_GNUTLS2 1" >>confdefs.h | ||
27053 | |||
27054 | fi | ||
27055 | if test "x$_ecore_have_gnutls" = "xyes";then | ||
27056 | |||
27057 | |||
27058 | # Check whether --with-libgcrypt-prefix was given. | ||
27059 | if test "${with_libgcrypt_prefix+set}" = set; then : | ||
27060 | withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" | ||
27061 | else | ||
27062 | libgcrypt_config_prefix="" | ||
27063 | fi | ||
27064 | |||
27065 | |||
27066 | # Check whether --with-libgcrypt-exec-prefix was given. | ||
27067 | if test "${with_libgcrypt_exec_prefix+set}" = set; then : | ||
27068 | withval=$with_libgcrypt_exec_prefix; libgcrypt_config_exec_prefix="$withval" | ||
27069 | else | ||
27070 | libgcrypt_config_exec_prefix="" | ||
27071 | fi | ||
27072 | |||
27073 | |||
27074 | if test x$libgcrypt_config_exec_prefix != x ; then | ||
27075 | libgcrypt_config_args="$libgcrypt_config_args --exec-prefix=$libgcrypt_config_exec_prefix" | ||
27076 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
27077 | LIBGCRYPT_CONFIG=$libgcrypt_config_exec_prefix/bin/libgcrypt-config | ||
27078 | fi | ||
27079 | fi | ||
27080 | if test x$libgcrypt_config_prefix != x ; then | ||
27081 | libgcrypt_config_args="$libgcrypt_config_args --prefix=$libgcrypt_config_prefix" | ||
27082 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
27083 | LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config | ||
27084 | fi | ||
27085 | fi | ||
27086 | |||
27087 | # Extract the first word of "libgcrypt-config", so it can be a program name with args. | ||
27088 | set dummy libgcrypt-config; ac_word=$2 | ||
27089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
27090 | $as_echo_n "checking for $ac_word... " >&6; } | ||
27091 | if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then : | ||
27092 | $as_echo_n "(cached) " >&6 | ||
27093 | else | ||
27094 | case $LIBGCRYPT_CONFIG in | ||
27095 | [\\/]* | ?:[\\/]*) | ||
27096 | ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. | ||
27097 | ;; | ||
27098 | *) | ||
27099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
27100 | for as_dir in $PATH | ||
27101 | do | ||
27102 | IFS=$as_save_IFS | ||
27103 | test -z "$as_dir" && as_dir=. | ||
27104 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
27105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
27106 | ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
27107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
27108 | break 2 | ||
27109 | fi | ||
27110 | done | ||
27111 | done | ||
27112 | IFS=$as_save_IFS | ||
27113 | |||
27114 | test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" | ||
27115 | ;; | ||
27116 | esac | ||
27117 | fi | ||
27118 | LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG | ||
27119 | if test -n "$LIBGCRYPT_CONFIG"; then | ||
27120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 | ||
27121 | $as_echo "$LIBGCRYPT_CONFIG" >&6; } | ||
27122 | else | ||
27123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27124 | $as_echo "no" >&6; } | ||
27125 | fi | ||
27126 | |||
27127 | |||
27128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5 | ||
27129 | $as_echo_n "checking for libgcrypt... " >&6; } | ||
27130 | no_libgcrypt="" | ||
27131 | if test "$LIBGCRYPT_CONFIG" = "no" ; then | ||
27132 | no_libgcrypt=yes | ||
27133 | else | ||
27134 | LIBGCRYPT_CFLAGS="`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`" | ||
27135 | LIBGCRYPT_LIBS="`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`" | ||
27136 | |||
27137 | fi | ||
27138 | if test "x$no_libgcrypt" = x ; then | ||
27139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27140 | $as_echo "yes" >&6; } | ||
27141 | _ecore_have_gnutls="yes" | ||
27142 | else | ||
27143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27144 | $as_echo "no" >&6; } | ||
27145 | if test "$LIBGCRYPT_CONFIG" = "no" ; then | ||
27146 | echo "*** The libgcrypt-config script installed by libgcrypt could not be found" | ||
27147 | echo "*** If libgcrypt was installed in PREFIX, make sure PREFIX/bin is in" | ||
27148 | echo "*** your path, or set the LIBGCRYPT_CONFIG environment variable to the" | ||
27149 | echo "*** full path to libgcrypt-config." | ||
27150 | fi | ||
27151 | LIBGCRYPT_CFLAGS="" | ||
27152 | LIBGCRYPT_LIBS="" | ||
27153 | _ecore_have_gnutls="no" | ||
27154 | fi | ||
27155 | |||
27156 | |||
27157 | |||
27158 | |||
27159 | |||
27160 | |||
27161 | if test "x${_ecore_have_gnutls}" = "xyes" ; then | ||
27162 | TLS_CFLAGS+=" ${LIBGCRYPT_CFLAGS}" | ||
27163 | TLS_LIBS+=" ${LIBGCRYPT_LIBS}" | ||
27164 | fi | ||
27165 | fi | ||
27166 | |||
27167 | fi | ||
27168 | |||
27169 | if test "x$_ecore_have_gnutls" = "xyes" ; then | ||
27170 | have_gnutls="yes" | ||
27171 | else | ||
27172 | have_gnutls="no" | ||
27173 | fi | ||
27174 | |||
27175 | |||
27176 | |||
27177 | _ecore_want_openssl=${want_openssl} | ||
27178 | _ecore_have_openssl="no" | ||
27179 | |||
27180 | # Check whether --enable-openssl was given. | ||
27181 | if test "${enable_openssl+set}" = set; then : | ||
27182 | enableval=$enable_openssl; | ||
27183 | if test "x${enableval}" = "xyes" ; then | ||
27184 | _ecore_want_openssl="yes" | ||
27185 | else | ||
27186 | _ecore_want_openssl="no" | ||
27187 | fi | ||
27188 | |||
27189 | fi | ||
27190 | |||
27191 | |||
27192 | if test "x${_ecore_have_gnutls}" = "xyes";then | ||
27193 | _ecore_want_openssl=no | ||
27194 | fi | ||
27195 | |||
27196 | if test "x${_ecore_want_openssl}" = "xyes" -o "x${_ecore_want_openssl}" = "xauto"; then | ||
27197 | |||
27198 | pkg_failed=no | ||
27199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 | ||
27200 | $as_echo_n "checking for SSL... " >&6; } | ||
27201 | |||
27202 | if test -n "$SSL_CFLAGS"; then | ||
27203 | pkg_cv_SSL_CFLAGS="$SSL_CFLAGS" | ||
27204 | elif test -n "$PKG_CONFIG"; then | ||
27205 | if test -n "$PKG_CONFIG" && \ | ||
27206 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | ||
27207 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | ||
27208 | ac_status=$? | ||
27209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27210 | test $ac_status = 0; }; then | ||
27211 | pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` | ||
27212 | else | ||
27213 | pkg_failed=yes | ||
27214 | fi | ||
27215 | else | ||
27216 | pkg_failed=untried | ||
27217 | fi | ||
27218 | if test -n "$SSL_LIBS"; then | ||
27219 | pkg_cv_SSL_LIBS="$SSL_LIBS" | ||
27220 | elif test -n "$PKG_CONFIG"; then | ||
27221 | if test -n "$PKG_CONFIG" && \ | ||
27222 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | ||
27223 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | ||
27224 | ac_status=$? | ||
27225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27226 | test $ac_status = 0; }; then | ||
27227 | pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` | ||
27228 | else | ||
27229 | pkg_failed=yes | ||
27230 | fi | ||
27231 | else | ||
27232 | pkg_failed=untried | ||
27233 | fi | ||
27234 | |||
27235 | |||
27236 | |||
27237 | if test $pkg_failed = yes; then | ||
27238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27239 | $as_echo "no" >&6; } | ||
27240 | |||
27241 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27242 | _pkg_short_errors_supported=yes | ||
27243 | else | ||
27244 | _pkg_short_errors_supported=no | ||
27245 | fi | ||
27246 | if test $_pkg_short_errors_supported = yes; then | ||
27247 | SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1` | ||
27248 | else | ||
27249 | SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1` | ||
27250 | fi | ||
27251 | # Put the nasty error message in config.log where it belongs | ||
27252 | echo "$SSL_PKG_ERRORS" >&5 | ||
27253 | |||
27254 | _ecore_have_openssl="no" | ||
27255 | elif test $pkg_failed = untried; then | ||
27256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27257 | $as_echo "no" >&6; } | ||
27258 | _ecore_have_openssl="no" | ||
27259 | else | ||
27260 | SSL_CFLAGS=$pkg_cv_SSL_CFLAGS | ||
27261 | SSL_LIBS=$pkg_cv_SSL_LIBS | ||
27262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27263 | $as_echo "yes" >&6; } | ||
27264 | |||
27265 | |||
27266 | $as_echo "#define USE_OPENSSL 1" >>confdefs.h | ||
27267 | |||
27268 | _ecore_have_openssl="yes" | ||
27269 | |||
27270 | fi | ||
27271 | fi | ||
27272 | |||
27273 | if test "x$_ecore_have_openssl" = "xyes" ; then | ||
27274 | have_openssl="yes" | ||
27275 | else | ||
27276 | have_openssl="no" | ||
27277 | fi | ||
27278 | |||
27279 | |||
27280 | if test "x${have_gnutls}" = "xyes" ; then | ||
27281 | requirements_ecore_con="gnutls ${requirements_ecore_con}" | ||
27282 | # no need to add it to req_ecore_ipc, since they | ||
27283 | # depends on ecore_con anyway. | ||
27284 | else | ||
27285 | if test "x${have_openssl}" = "xyes" ; then | ||
27286 | requirements_ecore_con="openssl ${requirements_ecore_con}" | ||
27287 | # no need to add it to req_ecore_ipc, since they | ||
27288 | # depends on ecore_con anyway. | ||
27289 | fi | ||
27290 | fi | ||
27291 | |||
27292 | |||
27293 | _ecore_want_cares=${want_cares} | ||
27294 | _ecore_have_cares="no" | ||
27295 | |||
27296 | # Check whether --enable-cares was given. | ||
27297 | if test "${enable_cares+set}" = set; then : | ||
27298 | enableval=$enable_cares; | ||
27299 | if test "x${enableval}" = "xyes" ; then | ||
27300 | _ecore_want_cares="yes" | ||
27301 | else | ||
27302 | _ecore_want_cares="no" | ||
27303 | fi | ||
27304 | |||
27305 | fi | ||
27306 | |||
27307 | |||
27308 | if test "x${_ecore_want_cares}" = "xyes" -o "x${_ecore_want_cares}" = "xauto" ; then | ||
27309 | |||
27310 | pkg_failed=no | ||
27311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5 | ||
27312 | $as_echo_n "checking for CARES... " >&6; } | ||
27313 | |||
27314 | if test -n "$CARES_CFLAGS"; then | ||
27315 | pkg_cv_CARES_CFLAGS="$CARES_CFLAGS" | ||
27316 | elif test -n "$PKG_CONFIG"; then | ||
27317 | if test -n "$PKG_CONFIG" && \ | ||
27318 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.1\""; } >&5 | ||
27319 | ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.1") 2>&5 | ||
27320 | ac_status=$? | ||
27321 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27322 | test $ac_status = 0; }; then | ||
27323 | pkg_cv_CARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.6.1" 2>/dev/null` | ||
27324 | else | ||
27325 | pkg_failed=yes | ||
27326 | fi | ||
27327 | else | ||
27328 | pkg_failed=untried | ||
27329 | fi | ||
27330 | if test -n "$CARES_LIBS"; then | ||
27331 | pkg_cv_CARES_LIBS="$CARES_LIBS" | ||
27332 | elif test -n "$PKG_CONFIG"; then | ||
27333 | if test -n "$PKG_CONFIG" && \ | ||
27334 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.1\""; } >&5 | ||
27335 | ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.1") 2>&5 | ||
27336 | ac_status=$? | ||
27337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27338 | test $ac_status = 0; }; then | ||
27339 | pkg_cv_CARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.6.1" 2>/dev/null` | ||
27340 | else | ||
27341 | pkg_failed=yes | ||
27342 | fi | ||
27343 | else | ||
27344 | pkg_failed=untried | ||
27345 | fi | ||
27346 | |||
27347 | |||
27348 | |||
27349 | if test $pkg_failed = yes; then | ||
27350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27351 | $as_echo "no" >&6; } | ||
27352 | |||
27353 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27354 | _pkg_short_errors_supported=yes | ||
27355 | else | ||
27356 | _pkg_short_errors_supported=no | ||
27357 | fi | ||
27358 | if test $_pkg_short_errors_supported = yes; then | ||
27359 | CARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcares >= 1.6.1" 2>&1` | ||
27360 | else | ||
27361 | CARES_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcares >= 1.6.1" 2>&1` | ||
27362 | fi | ||
27363 | # Put the nasty error message in config.log where it belongs | ||
27364 | echo "$CARES_PKG_ERRORS" >&5 | ||
27365 | |||
27366 | _ecore_have_cares="no" | ||
27367 | elif test $pkg_failed = untried; then | ||
27368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27369 | $as_echo "no" >&6; } | ||
27370 | _ecore_have_cares="no" | ||
27371 | else | ||
27372 | CARES_CFLAGS=$pkg_cv_CARES_CFLAGS | ||
27373 | CARES_LIBS=$pkg_cv_CARES_LIBS | ||
27374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27375 | $as_echo "yes" >&6; } | ||
27376 | _ecore_have_cares="yes" | ||
27377 | fi | ||
27378 | fi | ||
27379 | |||
27380 | if test "x${_ecore_have_cares}" = "xyes" ; then | ||
27381 | |||
27382 | $as_echo "#define HAVE_CARES 1" >>confdefs.h | ||
27383 | |||
27384 | fi | ||
27385 | |||
27386 | if test "x$_ecore_have_cares" = "xyes" ; then | ||
27387 | |||
27388 | have_cares="yes" | ||
27389 | requirements_ecore_con="libcares ${requirements_ecore_con}" | ||
27390 | |||
27391 | else | ||
27392 | have_cares="no" | ||
27393 | fi | ||
27394 | |||
27395 | |||
27396 | fi | ||
27397 | |||
27398 | if test "x${have_cares}" = "xyes"; then | ||
27399 | HAVE_CARES_TRUE= | ||
27400 | HAVE_CARES_FALSE='#' | ||
27401 | else | ||
27402 | HAVE_CARES_TRUE='#' | ||
27403 | HAVE_CARES_FALSE= | ||
27404 | fi | ||
27405 | |||
27406 | |||
27407 | # ecore_ipc | ||
27408 | |||
27409 | |||
27410 | have_ecore_ipc=no | ||
27411 | ecore_ipc_cflags= | ||
27412 | ecore_ipc_libs= | ||
27413 | want_module=${want_ecore_ipc} | ||
27414 | |||
27415 | # Check whether --enable-ecore-ipc was given. | ||
27416 | if test "${enable_ecore_ipc+set}" = set; then : | ||
27417 | enableval=$enable_ecore_ipc; | ||
27418 | if test "x${enableval}" = "xyes" ; then | ||
27419 | want_module="yes" | ||
27420 | else | ||
27421 | want_module="no" | ||
27422 | fi | ||
27423 | |||
27424 | fi | ||
27425 | |||
27426 | |||
27427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Ipc module is to be built" >&5 | ||
27428 | $as_echo_n "checking whether Ecore_Ipc module is to be built... " >&6; } | ||
27429 | |||
27430 | if test "x${want_module}" = "xyes" ; then | ||
27431 | if test "x${have_ecore_con}" = "x" || test "x${have_ecore_con}" = "xyes" ; then | ||
27432 | |||
27433 | $as_echo "#define BUILD_ECORE_IPC 1" >>confdefs.h | ||
27434 | |||
27435 | have_ecore_ipc="yes" | ||
27436 | ecore_ipc_libs="-lecore_ipc" | ||
27437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27438 | $as_echo "yes" >&6; } | ||
27439 | else | ||
27440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27441 | $as_echo "no (dependency failed)" >&6; } | ||
27442 | fi | ||
27443 | else | ||
27444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27445 | $as_echo "no" >&6; } | ||
27446 | fi | ||
27447 | |||
27448 | if test "x$have_ecore_ipc" = "xyes"; then | ||
27449 | BUILD_ECORE_IPC_TRUE= | ||
27450 | BUILD_ECORE_IPC_FALSE='#' | ||
27451 | else | ||
27452 | BUILD_ECORE_IPC_TRUE='#' | ||
27453 | BUILD_ECORE_IPC_FALSE= | ||
27454 | fi | ||
27455 | |||
27456 | |||
27457 | if test "x$have_ecore_ipc" = "xyes"; then : | ||
27458 | |||
27459 | requirements_ecore_ipc="ecore-con >= 1.2.0 ${requirements_ecore_ipc}" | ||
27460 | requirements_ecore_evas="ecore-ipc >= 1.2.0 ${requirements_ecore_evas}" | ||
27461 | |||
27462 | fi | ||
27463 | |||
27464 | |||
27465 | |||
27466 | |||
27467 | |||
27468 | |||
27469 | |||
27470 | |||
27471 | # ecore_file | ||
27472 | |||
27473 | |||
27474 | have_ecore_file=no | ||
27475 | ecore_file_cflags= | ||
27476 | ecore_file_libs= | ||
27477 | want_module=${want_ecore_file} | ||
27478 | |||
27479 | # Check whether --enable-ecore-file was given. | ||
27480 | if test "${enable_ecore_file+set}" = set; then : | ||
27481 | enableval=$enable_ecore_file; | ||
27482 | if test "x${enableval}" = "xyes" ; then | ||
27483 | want_module="yes" | ||
27484 | else | ||
27485 | want_module="no" | ||
27486 | fi | ||
27487 | |||
27488 | fi | ||
27489 | |||
27490 | |||
27491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_File module is to be built" >&5 | ||
27492 | $as_echo_n "checking whether Ecore_File module is to be built... " >&6; } | ||
27493 | |||
27494 | if test "x${want_module}" = "xyes" ; then | ||
27495 | if test "x" = "x" || test "x" = "xyes" ; then | ||
27496 | |||
27497 | $as_echo "#define BUILD_ECORE_FILE 1" >>confdefs.h | ||
27498 | |||
27499 | have_ecore_file="yes" | ||
27500 | ecore_file_libs="-lecore_file" | ||
27501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27502 | $as_echo "yes" >&6; } | ||
27503 | else | ||
27504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27505 | $as_echo "no (dependency failed)" >&6; } | ||
27506 | fi | ||
27507 | else | ||
27508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27509 | $as_echo "no" >&6; } | ||
27510 | fi | ||
27511 | |||
27512 | if test "x$have_ecore_file" = "xyes"; then | ||
27513 | BUILD_ECORE_FILE_TRUE= | ||
27514 | BUILD_ECORE_FILE_FALSE='#' | ||
27515 | else | ||
27516 | BUILD_ECORE_FILE_TRUE='#' | ||
27517 | BUILD_ECORE_FILE_FALSE= | ||
27518 | fi | ||
27519 | |||
27520 | |||
27521 | if test "x$have_ecore_file" = "xyes"; then : | ||
27522 | |||
27523 | fi | ||
27524 | |||
27525 | |||
27526 | |||
27527 | |||
27528 | |||
27529 | |||
27530 | |||
27531 | |||
27532 | have_poll="no" | ||
27533 | have_inotify="no" | ||
27534 | have_notify_win32="no" | ||
27535 | if test "x${have_ecore_file}" = "xyes" ; then | ||
27536 | |||
27537 | _ecore_want_poll=${want_poll} | ||
27538 | _ecore_have_poll="no" | ||
27539 | |||
27540 | # Check whether --enable-poll was given. | ||
27541 | if test "${enable_poll+set}" = set; then : | ||
27542 | enableval=$enable_poll; | ||
27543 | if test "x${enableval}" = "xyes" ; then | ||
27544 | _ecore_want_poll="yes" | ||
27545 | else | ||
27546 | _ecore_want_poll="no" | ||
27547 | fi | ||
27548 | |||
27549 | fi | ||
27550 | |||
27551 | |||
27552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether polling is to be used for filemonitoring" >&5 | ||
27553 | $as_echo_n "checking whether polling is to be used for filemonitoring... " >&6; } | ||
27554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_ecore_want_poll}" >&5 | ||
27555 | $as_echo "${_ecore_want_poll}" >&6; } | ||
27556 | |||
27557 | if test "x${_ecore_want_poll}" = "xyes" ; then | ||
27558 | |||
27559 | $as_echo "#define HAVE_POLL 1" >>confdefs.h | ||
27560 | |||
27561 | _ecore_have_poll="yes" | ||
27562 | fi | ||
27563 | |||
27564 | if test "x${_ecore_have_poll}" = "xyes" ; then | ||
27565 | have_poll="yes" | ||
27566 | else | ||
27567 | have_poll="no" | ||
27568 | fi | ||
27569 | |||
27570 | |||
27571 | _ecore_want_inotify=${want_inotify} | ||
27572 | _ecore_have_inotify="no" | ||
27573 | |||
27574 | _ecore_want_inotify="yes" | ||
27575 | # Check whether --enable-inotify was given. | ||
27576 | if test "${enable_inotify+set}" = set; then : | ||
27577 | enableval=$enable_inotify; | ||
27578 | if test "x${enableval}" = "xyes" ; then | ||
27579 | _ecore_want_inotify="yes" | ||
27580 | else | ||
27581 | _ecore_want_inotify="no" | ||
27582 | fi | ||
27583 | |||
27584 | fi | ||
27585 | |||
27586 | |||
27587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inotify is to be used for filemonitoring" >&5 | ||
27588 | $as_echo_n "checking whether inotify is to be used for filemonitoring... " >&6; } | ||
27589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ecore_want_inotify" >&5 | ||
27590 | $as_echo "$_ecore_want_inotify" >&6; } | ||
27591 | |||
27592 | |||
27593 | if test "x${_ecore_want_inotify}" = "xyes" ; then | ||
27594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -lc" >&5 | ||
27595 | $as_echo_n "checking for inotify_init in -lc... " >&6; } | ||
27596 | if test "${ac_cv_lib_c_inotify_init+set}" = set; then : | ||
27597 | $as_echo_n "(cached) " >&6 | ||
27598 | else | ||
27599 | ac_check_lib_save_LIBS=$LIBS | ||
27600 | LIBS="-lc $LIBS" | ||
27601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27602 | /* end confdefs.h. */ | ||
27603 | |||
27604 | /* Override any GCC internal prototype to avoid an error. | ||
27605 | Use char because int might match the return type of a GCC | ||
27606 | builtin and then its argument prototype would still apply. */ | ||
27607 | #ifdef __cplusplus | ||
27608 | extern "C" | ||
27609 | #endif | ||
27610 | char inotify_init (); | ||
27611 | int | ||
27612 | main () | ||
27613 | { | ||
27614 | return inotify_init (); | ||
27615 | ; | ||
27616 | return 0; | ||
27617 | } | ||
27618 | _ACEOF | ||
27619 | if ac_fn_c_try_link "$LINENO"; then : | ||
27620 | ac_cv_lib_c_inotify_init=yes | ||
27621 | else | ||
27622 | ac_cv_lib_c_inotify_init=no | ||
27623 | fi | ||
27624 | rm -f core conftest.err conftest.$ac_objext \ | ||
27625 | conftest$ac_exeext conftest.$ac_ext | ||
27626 | LIBS=$ac_check_lib_save_LIBS | ||
27627 | fi | ||
27628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inotify_init" >&5 | ||
27629 | $as_echo "$ac_cv_lib_c_inotify_init" >&6; } | ||
27630 | if test "x$ac_cv_lib_c_inotify_init" = x""yes; then : | ||
27631 | |||
27632 | |||
27633 | $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h | ||
27634 | |||
27635 | |||
27636 | $as_echo "#define HAVE_SYS_INOTIFY 1" >>confdefs.h | ||
27637 | |||
27638 | _ecore_have_inotify="yes" | ||
27639 | |||
27640 | else | ||
27641 | |||
27642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27643 | /* end confdefs.h. */ | ||
27644 | |||
27645 | #include <asm/unistd.h> | ||
27646 | #include <linux/inotify.h> | ||
27647 | |||
27648 | int | ||
27649 | main () | ||
27650 | { | ||
27651 | int a = __NR_inotify_init; int b = IN_MOVE_SELF; | ||
27652 | ; | ||
27653 | return 0; | ||
27654 | } | ||
27655 | _ACEOF | ||
27656 | if ac_fn_c_try_compile "$LINENO"; then : | ||
27657 | |||
27658 | |||
27659 | $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h | ||
27660 | |||
27661 | _ecore_have_inotify="yes" | ||
27662 | |||
27663 | else | ||
27664 | _ecore_have_inotify="no" | ||
27665 | fi | ||
27666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27667 | |||
27668 | fi | ||
27669 | |||
27670 | fi | ||
27671 | |||
27672 | if test "x$_ecore_have_inotify" = "xyes" ; then | ||
27673 | have_inotify="yes" | ||
27674 | else | ||
27675 | have_inotify="no" | ||
27676 | fi | ||
27677 | |||
27678 | |||
27679 | _ecore_want_notify_win32=${want_notify_win32} | ||
27680 | _ecore_have_notify_win32="no" | ||
27681 | |||
27682 | # Check whether --enable-notify-win32 was given. | ||
27683 | if test "${enable_notify_win32+set}" = set; then : | ||
27684 | enableval=$enable_notify_win32; | ||
27685 | if test "x${enableval}" = "xyes" ; then | ||
27686 | _ecore_want_notify_win32="yes" | ||
27687 | else | ||
27688 | _ecore_want_notify_win32="no" | ||
27689 | fi | ||
27690 | |||
27691 | fi | ||
27692 | |||
27693 | |||
27694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows notification is to be used for filemonitoring" >&5 | ||
27695 | $as_echo_n "checking whether Windows notification is to be used for filemonitoring... " >&6; } | ||
27696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_ecore_want_notify_win32}" >&5 | ||
27697 | $as_echo "${_ecore_want_notify_win32}" >&6; } | ||
27698 | |||
27699 | if test "x${_ecore_want_notify_win32}" = "xyes" ; then | ||
27700 | |||
27701 | $as_echo "#define HAVE_NOTIFY_WIN32 1" >>confdefs.h | ||
27702 | |||
27703 | _ecore_have_notify_win32="yes" | ||
27704 | fi | ||
27705 | |||
27706 | if test "x${_ecore_have_notify_win32}" = "xyes" ; then | ||
27707 | have_notify_win32="yes" | ||
27708 | else | ||
27709 | have_notify_win32="no" | ||
27710 | fi | ||
27711 | |||
27712 | |||
27713 | if test "x${have_ecore_con}" = "xyes" ; then | ||
27714 | requirements_ecore_file="ecore-con >= 1.2.0 ${requirements_ecore_file}" | ||
27715 | else | ||
27716 | |||
27717 | _ecore_want_curl=${want_curl} | ||
27718 | _ecore_have_curl="no" | ||
27719 | |||
27720 | # Check whether --enable-curl was given. | ||
27721 | if test "${enable_curl+set}" = set; then : | ||
27722 | enableval=$enable_curl; | ||
27723 | if test "x${enableval}" = "xyes" ; then | ||
27724 | _ecore_want_curl="yes" | ||
27725 | else | ||
27726 | _ecore_want_curl="no" | ||
27727 | fi | ||
27728 | |||
27729 | fi | ||
27730 | |||
27731 | |||
27732 | if test "x${_ecore_want_curl}" = "xyes" ; then | ||
27733 | |||
27734 | pkg_failed=no | ||
27735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5 | ||
27736 | $as_echo_n "checking for CURL... " >&6; } | ||
27737 | |||
27738 | if test -n "$CURL_CFLAGS"; then | ||
27739 | pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" | ||
27740 | elif test -n "$PKG_CONFIG"; then | ||
27741 | if test -n "$PKG_CONFIG" && \ | ||
27742 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 | ||
27743 | ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 | ||
27744 | ac_status=$? | ||
27745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27746 | test $ac_status = 0; }; then | ||
27747 | pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null` | ||
27748 | else | ||
27749 | pkg_failed=yes | ||
27750 | fi | ||
27751 | else | ||
27752 | pkg_failed=untried | ||
27753 | fi | ||
27754 | if test -n "$CURL_LIBS"; then | ||
27755 | pkg_cv_CURL_LIBS="$CURL_LIBS" | ||
27756 | elif test -n "$PKG_CONFIG"; then | ||
27757 | if test -n "$PKG_CONFIG" && \ | ||
27758 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 | ||
27759 | ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 | ||
27760 | ac_status=$? | ||
27761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27762 | test $ac_status = 0; }; then | ||
27763 | pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null` | ||
27764 | else | ||
27765 | pkg_failed=yes | ||
27766 | fi | ||
27767 | else | ||
27768 | pkg_failed=untried | ||
27769 | fi | ||
27770 | |||
27771 | |||
27772 | |||
27773 | if test $pkg_failed = yes; then | ||
27774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27775 | $as_echo "no" >&6; } | ||
27776 | |||
27777 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27778 | _pkg_short_errors_supported=yes | ||
27779 | else | ||
27780 | _pkg_short_errors_supported=no | ||
27781 | fi | ||
27782 | if test $_pkg_short_errors_supported = yes; then | ||
27783 | CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1` | ||
27784 | else | ||
27785 | CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1` | ||
27786 | fi | ||
27787 | # Put the nasty error message in config.log where it belongs | ||
27788 | echo "$CURL_PKG_ERRORS" >&5 | ||
27789 | |||
27790 | _ecore_have_curl="no" | ||
27791 | elif test $pkg_failed = untried; then | ||
27792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27793 | $as_echo "no" >&6; } | ||
27794 | _ecore_have_curl="no" | ||
27795 | else | ||
27796 | CURL_CFLAGS=$pkg_cv_CURL_CFLAGS | ||
27797 | CURL_LIBS=$pkg_cv_CURL_LIBS | ||
27798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27799 | $as_echo "yes" >&6; } | ||
27800 | |||
27801 | |||
27802 | $as_echo "#define HAVE_CURL 1" >>confdefs.h | ||
27803 | |||
27804 | _ecore_have_curl="yes" | ||
27805 | |||
27806 | fi | ||
27807 | fi | ||
27808 | |||
27809 | if test "x$_ecore_have_curl" = "xyes" ; then | ||
27810 | |||
27811 | have_curl="yes" | ||
27812 | requirements_ecore_file="libcurl ${requirements_ecore_file}" | ||
27813 | |||
27814 | else | ||
27815 | have_curl="no" | ||
27816 | fi | ||
27817 | |||
27818 | fi | ||
27819 | |||
27820 | fi | ||
27821 | |||
27822 | # ecore_config | ||
27823 | #ecore_config_deps="no" | ||
27824 | #if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then | ||
27825 | # ecore_config_deps="yes" | ||
27826 | #fi | ||
27827 | |||
27828 | #ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}], | ||
27829 | # [requirements_ecore_config="ecore-ipc >= 1.2.0 evas >= 1.2.0 eet >= 1.6.0 ${requirements_ecore_config}"]) | ||
27830 | |||
27831 | if false; then | ||
27832 | BUILD_ECORE_CONFIG_TRUE= | ||
27833 | BUILD_ECORE_CONFIG_FALSE='#' | ||
27834 | else | ||
27835 | BUILD_ECORE_CONFIG_TRUE='#' | ||
27836 | BUILD_ECORE_CONFIG_FALSE= | ||
27837 | fi | ||
27838 | |||
27839 | |||
27840 | # ecore_imf | ||
27841 | |||
27842 | |||
27843 | |||
27844 | have_ecore_imf=no | ||
27845 | ecore_imf_cflags= | ||
27846 | ecore_imf_libs= | ||
27847 | want_module=${want_ecore_imf} | ||
27848 | |||
27849 | # Check whether --enable-ecore-imf was given. | ||
27850 | if test "${enable_ecore_imf+set}" = set; then : | ||
27851 | enableval=$enable_ecore_imf; | ||
27852 | if test "x${enableval}" = "xyes" ; then | ||
27853 | want_module="yes" | ||
27854 | else | ||
27855 | want_module="no" | ||
27856 | fi | ||
27857 | |||
27858 | fi | ||
27859 | |||
27860 | |||
27861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Imf module is to be built" >&5 | ||
27862 | $as_echo_n "checking whether Ecore_Imf module is to be built... " >&6; } | ||
27863 | |||
27864 | if test "x${want_module}" = "xyes" ; then | ||
27865 | if test "x" = "x" || test "x" = "xyes" ; then | ||
27866 | |||
27867 | $as_echo "#define BUILD_ECORE_IMF 1" >>confdefs.h | ||
27868 | |||
27869 | have_ecore_imf="yes" | ||
27870 | ecore_imf_libs="-lecore_imf" | ||
27871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27872 | $as_echo "yes" >&6; } | ||
27873 | else | ||
27874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27875 | $as_echo "no (dependency failed)" >&6; } | ||
27876 | fi | ||
27877 | else | ||
27878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27879 | $as_echo "no" >&6; } | ||
27880 | fi | ||
27881 | |||
27882 | if test "x$have_ecore_imf" = "xyes"; then | ||
27883 | BUILD_ECORE_IMF_TRUE= | ||
27884 | BUILD_ECORE_IMF_FALSE='#' | ||
27885 | else | ||
27886 | BUILD_ECORE_IMF_TRUE='#' | ||
27887 | BUILD_ECORE_IMF_FALSE= | ||
27888 | fi | ||
27889 | |||
27890 | |||
27891 | if test "x$have_ecore_imf" = "xyes"; then : | ||
27892 | |||
27893 | fi | ||
27894 | |||
27895 | |||
27896 | |||
27897 | |||
27898 | |||
27899 | |||
27900 | |||
27901 | |||
27902 | # ecore_imf_evas | ||
27903 | |||
27904 | ecore_imf_evas_deps="no" | ||
27905 | if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then | ||
27906 | ecore_imf_evas_deps="yes" | ||
27907 | fi | ||
27908 | |||
27909 | |||
27910 | |||
27911 | have_ecore_imf_evas=no | ||
27912 | ecore_imf_evas_cflags= | ||
27913 | ecore_imf_evas_libs= | ||
27914 | want_module=${want_ecore_imf} | ||
27915 | |||
27916 | # Check whether --enable-ecore-imf-evas was given. | ||
27917 | if test "${enable_ecore_imf_evas+set}" = set; then : | ||
27918 | enableval=$enable_ecore_imf_evas; | ||
27919 | if test "x${enableval}" = "xyes" ; then | ||
27920 | want_module="yes" | ||
27921 | else | ||
27922 | want_module="no" | ||
27923 | fi | ||
27924 | |||
27925 | fi | ||
27926 | |||
27927 | |||
27928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Imf_Evas module is to be built" >&5 | ||
27929 | $as_echo_n "checking whether Ecore_Imf_Evas module is to be built... " >&6; } | ||
27930 | |||
27931 | if test "x${want_module}" = "xyes" ; then | ||
27932 | if test "x${ecore_imf_evas_deps}" = "x" || test "x${ecore_imf_evas_deps}" = "xyes" ; then | ||
27933 | |||
27934 | $as_echo "#define BUILD_ECORE_IMF_EVAS 1" >>confdefs.h | ||
27935 | |||
27936 | have_ecore_imf_evas="yes" | ||
27937 | ecore_imf_evas_libs="-lecore_imf_evas" | ||
27938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27939 | $as_echo "yes" >&6; } | ||
27940 | else | ||
27941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
27942 | $as_echo "no (dependency failed)" >&6; } | ||
27943 | fi | ||
27944 | else | ||
27945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27946 | $as_echo "no" >&6; } | ||
27947 | fi | ||
27948 | |||
27949 | if test "x$have_ecore_imf_evas" = "xyes"; then | ||
27950 | BUILD_ECORE_IMF_EVAS_TRUE= | ||
27951 | BUILD_ECORE_IMF_EVAS_FALSE='#' | ||
27952 | else | ||
27953 | BUILD_ECORE_IMF_EVAS_TRUE='#' | ||
27954 | BUILD_ECORE_IMF_EVAS_FALSE= | ||
27955 | fi | ||
27956 | |||
27957 | |||
27958 | if test "x$have_ecore_imf_evas" = "xyes"; then : | ||
27959 | requirements_ecore_imf_evas="ecore-imf >= 1.2.0 evas >= 1.2.0 ${requirements_ecore_imf_evas}" | ||
27960 | fi | ||
27961 | |||
27962 | |||
27963 | |||
27964 | |||
27965 | |||
27966 | |||
27967 | |||
27968 | |||
27969 | # ecore_input{_evas} | ||
27970 | |||
27971 | |||
27972 | have_ecore_input=no | ||
27973 | ecore_input_cflags= | ||
27974 | ecore_input_libs= | ||
27975 | want_module=${want_ecore_input} | ||
27976 | |||
27977 | # Check whether --enable-ecore-input was given. | ||
27978 | if test "${enable_ecore_input+set}" = set; then : | ||
27979 | enableval=$enable_ecore_input; | ||
27980 | if test "x${enableval}" = "xyes" ; then | ||
27981 | want_module="yes" | ||
27982 | else | ||
27983 | want_module="no" | ||
27984 | fi | ||
27985 | |||
27986 | fi | ||
27987 | |||
27988 | |||
27989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Input module is to be built" >&5 | ||
27990 | $as_echo_n "checking whether Ecore_Input module is to be built... " >&6; } | ||
27991 | |||
27992 | if test "x${want_module}" = "xyes" ; then | ||
27993 | if test "x" = "x" || test "x" = "xyes" ; then | ||
27994 | |||
27995 | $as_echo "#define BUILD_ECORE_INPUT 1" >>confdefs.h | ||
27996 | |||
27997 | have_ecore_input="yes" | ||
27998 | ecore_input_libs="-lecore_input" | ||
27999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28000 | $as_echo "yes" >&6; } | ||
28001 | else | ||
28002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28003 | $as_echo "no (dependency failed)" >&6; } | ||
28004 | fi | ||
28005 | else | ||
28006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28007 | $as_echo "no" >&6; } | ||
28008 | fi | ||
28009 | |||
28010 | if test "x$have_ecore_input" = "xyes"; then | ||
28011 | BUILD_ECORE_INPUT_TRUE= | ||
28012 | BUILD_ECORE_INPUT_FALSE='#' | ||
28013 | else | ||
28014 | BUILD_ECORE_INPUT_TRUE='#' | ||
28015 | BUILD_ECORE_INPUT_FALSE= | ||
28016 | fi | ||
28017 | |||
28018 | |||
28019 | if test "x$have_ecore_input" = "xyes"; then : | ||
28020 | |||
28021 | fi | ||
28022 | |||
28023 | |||
28024 | |||
28025 | |||
28026 | |||
28027 | |||
28028 | |||
28029 | |||
28030 | |||
28031 | have_ecore_input_evas=no | ||
28032 | ecore_input_evas_cflags= | ||
28033 | ecore_input_evas_libs= | ||
28034 | want_module=${want_ecore_input} | ||
28035 | |||
28036 | # Check whether --enable-ecore-input-evas was given. | ||
28037 | if test "${enable_ecore_input_evas+set}" = set; then : | ||
28038 | enableval=$enable_ecore_input_evas; | ||
28039 | if test "x${enableval}" = "xyes" ; then | ||
28040 | want_module="yes" | ||
28041 | else | ||
28042 | want_module="no" | ||
28043 | fi | ||
28044 | |||
28045 | fi | ||
28046 | |||
28047 | |||
28048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Input_Evas module is to be built" >&5 | ||
28049 | $as_echo_n "checking whether Ecore_Input_Evas module is to be built... " >&6; } | ||
28050 | |||
28051 | if test "x${want_module}" = "xyes" ; then | ||
28052 | if test "x${have_evas}" = "x" || test "x${have_evas}" = "xyes" ; then | ||
28053 | |||
28054 | $as_echo "#define BUILD_ECORE_INPUT_EVAS 1" >>confdefs.h | ||
28055 | |||
28056 | have_ecore_input_evas="yes" | ||
28057 | ecore_input_evas_libs="-lecore_input_evas" | ||
28058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28059 | $as_echo "yes" >&6; } | ||
28060 | else | ||
28061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28062 | $as_echo "no (dependency failed)" >&6; } | ||
28063 | fi | ||
28064 | else | ||
28065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28066 | $as_echo "no" >&6; } | ||
28067 | fi | ||
28068 | |||
28069 | if test "x$have_ecore_input_evas" = "xyes"; then | ||
28070 | BUILD_ECORE_INPUT_EVAS_TRUE= | ||
28071 | BUILD_ECORE_INPUT_EVAS_FALSE='#' | ||
28072 | else | ||
28073 | BUILD_ECORE_INPUT_EVAS_TRUE='#' | ||
28074 | BUILD_ECORE_INPUT_EVAS_FALSE= | ||
28075 | fi | ||
28076 | |||
28077 | |||
28078 | if test "x$have_ecore_input_evas" = "xyes"; then : | ||
28079 | requirements_ecore_input_evas="ecore-input >= 1.2.0 evas >= 1.2.0 ${requirements_ecore_input}" | ||
28080 | fi | ||
28081 | |||
28082 | |||
28083 | |||
28084 | |||
28085 | |||
28086 | |||
28087 | |||
28088 | |||
28089 | # ecore_imf_xim | ||
28090 | if false; then | ||
28091 | BUILD_ECORE_IMF_XIM_TRUE= | ||
28092 | BUILD_ECORE_IMF_XIM_FALSE='#' | ||
28093 | else | ||
28094 | BUILD_ECORE_IMF_XIM_TRUE='#' | ||
28095 | BUILD_ECORE_IMF_XIM_FALSE= | ||
28096 | fi | ||
28097 | |||
28098 | ecore_imf_xim_deps="no" | ||
28099 | echo "have_ecore_x_xlib: ${have_ecore_x_xlib}" | ||
28100 | if test "x${have_ecore_imf}" = "xyes" \ | ||
28101 | -a "x${have_ecore_x_xlib}" = "xyes" \ | ||
28102 | -a "x${have_ecore_input}" = "xyes" ; then | ||
28103 | ecore_imf_xim_deps="yes" | ||
28104 | |||
28105 | $as_echo "#define BUILD_ECORE_IMF_XIM 1" >>confdefs.h | ||
28106 | |||
28107 | fi | ||
28108 | |||
28109 | |||
28110 | |||
28111 | have_ecore_imf_xim=no | ||
28112 | ecore_imf_xim_cflags= | ||
28113 | ecore_imf_xim_libs= | ||
28114 | want_module=${want_ecore_imf} | ||
28115 | |||
28116 | # Check whether --enable-ecore-imf-xim was given. | ||
28117 | if test "${enable_ecore_imf_xim+set}" = set; then : | ||
28118 | enableval=$enable_ecore_imf_xim; | ||
28119 | if test "x${enableval}" = "xyes" ; then | ||
28120 | want_module="yes" | ||
28121 | else | ||
28122 | want_module="no" | ||
28123 | fi | ||
28124 | |||
28125 | fi | ||
28126 | |||
28127 | |||
28128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Imf_XIM module is to be built" >&5 | ||
28129 | $as_echo_n "checking whether Ecore_Imf_XIM module is to be built... " >&6; } | ||
28130 | |||
28131 | if test "x${want_module}" = "xyes" ; then | ||
28132 | if test "x${ecore_imf_xim_deps}" = "x" || test "x${ecore_imf_xim_deps}" = "xyes" ; then | ||
28133 | |||
28134 | $as_echo "#define BUILD_ECORE_IMF_XIM 1" >>confdefs.h | ||
28135 | |||
28136 | have_ecore_imf_xim="yes" | ||
28137 | ecore_imf_xim_libs="-lecore_imf_xim" | ||
28138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28139 | $as_echo "yes" >&6; } | ||
28140 | else | ||
28141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28142 | $as_echo "no (dependency failed)" >&6; } | ||
28143 | fi | ||
28144 | else | ||
28145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28146 | $as_echo "no" >&6; } | ||
28147 | fi | ||
28148 | |||
28149 | if test "x$have_ecore_imf_xim" = "xyes"; then | ||
28150 | BUILD_ECORE_IMF_XIM_TRUE= | ||
28151 | BUILD_ECORE_IMF_XIM_FALSE='#' | ||
28152 | else | ||
28153 | BUILD_ECORE_IMF_XIM_TRUE='#' | ||
28154 | BUILD_ECORE_IMF_XIM_FALSE= | ||
28155 | fi | ||
28156 | |||
28157 | |||
28158 | if test "x$have_ecore_imf_xim" = "xyes"; then : | ||
28159 | requirements_ecore_imf_xim="ecore-imf >= 1.2.0 ecore-x >= 1.2.0 ecore-input >= 1.2.0 ${requirements_ecore_imf_xim}" | ||
28160 | fi | ||
28161 | |||
28162 | |||
28163 | |||
28164 | |||
28165 | |||
28166 | |||
28167 | |||
28168 | |||
28169 | # ecore_imf_scim | ||
28170 | |||
28171 | pkg_failed=no | ||
28172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM" >&5 | ||
28173 | $as_echo_n "checking for SCIM... " >&6; } | ||
28174 | |||
28175 | if test -n "$SCIM_CFLAGS"; then | ||
28176 | pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS" | ||
28177 | elif test -n "$PKG_CONFIG"; then | ||
28178 | if test -n "$PKG_CONFIG" && \ | ||
28179 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim\""; } >&5 | ||
28180 | ($PKG_CONFIG --exists --print-errors "scim") 2>&5 | ||
28181 | ac_status=$? | ||
28182 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28183 | test $ac_status = 0; }; then | ||
28184 | pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim" 2>/dev/null` | ||
28185 | else | ||
28186 | pkg_failed=yes | ||
28187 | fi | ||
28188 | else | ||
28189 | pkg_failed=untried | ||
28190 | fi | ||
28191 | if test -n "$SCIM_LIBS"; then | ||
28192 | pkg_cv_SCIM_LIBS="$SCIM_LIBS" | ||
28193 | elif test -n "$PKG_CONFIG"; then | ||
28194 | if test -n "$PKG_CONFIG" && \ | ||
28195 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim\""; } >&5 | ||
28196 | ($PKG_CONFIG --exists --print-errors "scim") 2>&5 | ||
28197 | ac_status=$? | ||
28198 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28199 | test $ac_status = 0; }; then | ||
28200 | pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim" 2>/dev/null` | ||
28201 | else | ||
28202 | pkg_failed=yes | ||
28203 | fi | ||
28204 | else | ||
28205 | pkg_failed=untried | ||
28206 | fi | ||
28207 | |||
28208 | |||
28209 | |||
28210 | if test $pkg_failed = yes; then | ||
28211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28212 | $as_echo "no" >&6; } | ||
28213 | |||
28214 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28215 | _pkg_short_errors_supported=yes | ||
28216 | else | ||
28217 | _pkg_short_errors_supported=no | ||
28218 | fi | ||
28219 | if test $_pkg_short_errors_supported = yes; then | ||
28220 | SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "scim" 2>&1` | ||
28221 | else | ||
28222 | SCIM_PKG_ERRORS=`$PKG_CONFIG --print-errors "scim" 2>&1` | ||
28223 | fi | ||
28224 | # Put the nasty error message in config.log where it belongs | ||
28225 | echo "$SCIM_PKG_ERRORS" >&5 | ||
28226 | |||
28227 | have_scim="no" | ||
28228 | elif test $pkg_failed = untried; then | ||
28229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28230 | $as_echo "no" >&6; } | ||
28231 | have_scim="no" | ||
28232 | else | ||
28233 | SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS | ||
28234 | SCIM_LIBS=$pkg_cv_SCIM_LIBS | ||
28235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28236 | $as_echo "yes" >&6; } | ||
28237 | have_scim="yes" | ||
28238 | fi | ||
28239 | |||
28240 | if false; then | ||
28241 | BUILD_ECORE_IMF_SCIM_TRUE= | ||
28242 | BUILD_ECORE_IMF_SCIM_FALSE='#' | ||
28243 | else | ||
28244 | BUILD_ECORE_IMF_SCIM_TRUE='#' | ||
28245 | BUILD_ECORE_IMF_SCIM_FALSE= | ||
28246 | fi | ||
28247 | |||
28248 | ecore_imf_scim_deps="no" | ||
28249 | echo "have_ecore_x_xlib: ${have_ecore_x_xlib}" | ||
28250 | if test "x${have_ecore_imf}" = "xyes" \ | ||
28251 | -a "x${have_scim}" = "xyes" \ | ||
28252 | -a "x${have_ecore_input}" = "xyes" ; then | ||
28253 | ecore_imf_scim_deps="yes" | ||
28254 | |||
28255 | $as_echo "#define BUILD_ECORE_IMF_SCIM 1" >>confdefs.h | ||
28256 | |||
28257 | fi | ||
28258 | |||
28259 | |||
28260 | |||
28261 | have_ecore_imf_scim=no | ||
28262 | ecore_imf_scim_cflags= | ||
28263 | ecore_imf_scim_libs= | ||
28264 | want_module=${want_ecore_imf} | ||
28265 | |||
28266 | # Check whether --enable-ecore-imf-scim was given. | ||
28267 | if test "${enable_ecore_imf_scim+set}" = set; then : | ||
28268 | enableval=$enable_ecore_imf_scim; | ||
28269 | if test "x${enableval}" = "xyes" ; then | ||
28270 | want_module="yes" | ||
28271 | else | ||
28272 | want_module="no" | ||
28273 | fi | ||
28274 | |||
28275 | fi | ||
28276 | |||
28277 | |||
28278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Imf_SCIM module is to be built" >&5 | ||
28279 | $as_echo_n "checking whether Ecore_Imf_SCIM module is to be built... " >&6; } | ||
28280 | |||
28281 | if test "x${want_module}" = "xyes" ; then | ||
28282 | if test "x${ecore_imf_scim_deps}" = "x" || test "x${ecore_imf_scim_deps}" = "xyes" ; then | ||
28283 | |||
28284 | $as_echo "#define BUILD_ECORE_IMF_SCIM 1" >>confdefs.h | ||
28285 | |||
28286 | have_ecore_imf_scim="yes" | ||
28287 | ecore_imf_scim_libs="-lecore_imf_scim" | ||
28288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28289 | $as_echo "yes" >&6; } | ||
28290 | else | ||
28291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28292 | $as_echo "no (dependency failed)" >&6; } | ||
28293 | fi | ||
28294 | else | ||
28295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28296 | $as_echo "no" >&6; } | ||
28297 | fi | ||
28298 | |||
28299 | if test "x$have_ecore_imf_scim" = "xyes"; then | ||
28300 | BUILD_ECORE_IMF_SCIM_TRUE= | ||
28301 | BUILD_ECORE_IMF_SCIM_FALSE='#' | ||
28302 | else | ||
28303 | BUILD_ECORE_IMF_SCIM_TRUE='#' | ||
28304 | BUILD_ECORE_IMF_SCIM_FALSE= | ||
28305 | fi | ||
28306 | |||
28307 | |||
28308 | if test "x$have_ecore_imf_scim" = "xyes"; then : | ||
28309 | requirements_ecore_imf_scim="ecore-imf >= 1.2.0 ecore-x >= 1.2.0 ecore-input >= 1.2.0 ${requirements_ecore_imf_scim}" | ||
28310 | fi | ||
28311 | |||
28312 | |||
28313 | |||
28314 | |||
28315 | |||
28316 | |||
28317 | |||
28318 | |||
28319 | ## Graphic systems | ||
28320 | |||
28321 | # ecore_x{cb} | ||
28322 | |||
28323 | ecore_x_deps="no" | ||
28324 | if test "x${have_x}" = "xyes" -a \ | ||
28325 | "x${have_ecore_input}" = "xyes" ; then | ||
28326 | ecore_x_deps="yes" | ||
28327 | fi | ||
28328 | |||
28329 | |||
28330 | |||
28331 | have_ecore_x=no | ||
28332 | ecore_x_cflags= | ||
28333 | ecore_x_libs= | ||
28334 | want_module=${want_ecore_x} | ||
28335 | |||
28336 | # Check whether --enable-ecore-x was given. | ||
28337 | if test "${enable_ecore_x+set}" = set; then : | ||
28338 | enableval=$enable_ecore_x; | ||
28339 | if test "x${enableval}" = "xyes" ; then | ||
28340 | want_module="yes" | ||
28341 | else | ||
28342 | want_module="no" | ||
28343 | fi | ||
28344 | |||
28345 | fi | ||
28346 | |||
28347 | |||
28348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_X module is to be built" >&5 | ||
28349 | $as_echo_n "checking whether Ecore_X module is to be built... " >&6; } | ||
28350 | |||
28351 | if test "x${want_module}" = "xyes" ; then | ||
28352 | if test "x${ecore_x_deps}" = "x" || test "x${ecore_x_deps}" = "xyes" ; then | ||
28353 | |||
28354 | $as_echo "#define BUILD_ECORE_X 1" >>confdefs.h | ||
28355 | |||
28356 | have_ecore_x="yes" | ||
28357 | ecore_x_libs="-lecore_x" | ||
28358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28359 | $as_echo "yes" >&6; } | ||
28360 | else | ||
28361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28362 | $as_echo "no (dependency failed)" >&6; } | ||
28363 | fi | ||
28364 | else | ||
28365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28366 | $as_echo "no" >&6; } | ||
28367 | fi | ||
28368 | |||
28369 | if test "x$have_ecore_x" = "xyes"; then | ||
28370 | BUILD_ECORE_X_TRUE= | ||
28371 | BUILD_ECORE_X_FALSE='#' | ||
28372 | else | ||
28373 | BUILD_ECORE_X_TRUE='#' | ||
28374 | BUILD_ECORE_X_FALSE= | ||
28375 | fi | ||
28376 | |||
28377 | |||
28378 | if test "x$have_ecore_x" = "xyes"; then : | ||
28379 | |||
28380 | ecore_x_libs="$ecore_x_libs $x_libs" | ||
28381 | requirements_ecore_x="ecore-input >= 1.2.0 ${requirements_ecore_x}" | ||
28382 | |||
28383 | fi | ||
28384 | |||
28385 | |||
28386 | |||
28387 | |||
28388 | |||
28389 | |||
28390 | |||
28391 | |||
28392 | # ecore_win32 | ||
28393 | |||
28394 | |||
28395 | |||
28396 | have_ecore_win32=no | ||
28397 | ecore_win32_cflags= | ||
28398 | ecore_win32_libs= | ||
28399 | want_module=${want_ecore_win32} | ||
28400 | |||
28401 | # Check whether --enable-ecore-win32 was given. | ||
28402 | if test "${enable_ecore_win32+set}" = set; then : | ||
28403 | enableval=$enable_ecore_win32; | ||
28404 | if test "x${enableval}" = "xyes" ; then | ||
28405 | want_module="yes" | ||
28406 | else | ||
28407 | want_module="no" | ||
28408 | fi | ||
28409 | |||
28410 | fi | ||
28411 | |||
28412 | |||
28413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Win32 module is to be built" >&5 | ||
28414 | $as_echo_n "checking whether Ecore_Win32 module is to be built... " >&6; } | ||
28415 | |||
28416 | if test "x${want_module}" = "xyes" ; then | ||
28417 | if test "x${have_ecore_input}" = "x" || test "x${have_ecore_input}" = "xyes" ; then | ||
28418 | |||
28419 | $as_echo "#define BUILD_ECORE_WIN32 1" >>confdefs.h | ||
28420 | |||
28421 | have_ecore_win32="yes" | ||
28422 | ecore_win32_libs="-lecore_win32" | ||
28423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28424 | $as_echo "yes" >&6; } | ||
28425 | else | ||
28426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28427 | $as_echo "no (dependency failed)" >&6; } | ||
28428 | fi | ||
28429 | else | ||
28430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28431 | $as_echo "no" >&6; } | ||
28432 | fi | ||
28433 | |||
28434 | if test "x$have_ecore_win32" = "xyes"; then | ||
28435 | BUILD_ECORE_WIN32_TRUE= | ||
28436 | BUILD_ECORE_WIN32_FALSE='#' | ||
28437 | else | ||
28438 | BUILD_ECORE_WIN32_TRUE='#' | ||
28439 | BUILD_ECORE_WIN32_FALSE= | ||
28440 | fi | ||
28441 | |||
28442 | |||
28443 | if test "x$have_ecore_win32" = "xyes"; then : | ||
28444 | |||
28445 | ecore_win32_libs="-lole32 -lgdi32" | ||
28446 | requirements_ecore_win32="ecore-input >= 1.2.0 ${requirements_ecore_win32}" | ||
28447 | |||
28448 | fi | ||
28449 | |||
28450 | |||
28451 | |||
28452 | |||
28453 | |||
28454 | |||
28455 | |||
28456 | |||
28457 | |||
28458 | # ecore_cocoa | ||
28459 | |||
28460 | ecore_cocoa_deps="no" | ||
28461 | if test "x${have_ecore_input}" = "xyes" -a "x${have_cocoa}" = "xyes" ; then | ||
28462 | ecore_cocoa_deps="yes" | ||
28463 | fi | ||
28464 | |||
28465 | |||
28466 | |||
28467 | have_ecore_cocoa=no | ||
28468 | ecore_cocoa_cflags= | ||
28469 | ecore_cocoa_libs= | ||
28470 | want_module=${want_ecore_cocoa} | ||
28471 | |||
28472 | # Check whether --enable-ecore-cocoa was given. | ||
28473 | if test "${enable_ecore_cocoa+set}" = set; then : | ||
28474 | enableval=$enable_ecore_cocoa; | ||
28475 | if test "x${enableval}" = "xyes" ; then | ||
28476 | want_module="yes" | ||
28477 | else | ||
28478 | want_module="no" | ||
28479 | fi | ||
28480 | |||
28481 | fi | ||
28482 | |||
28483 | |||
28484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Cocoa module is to be built" >&5 | ||
28485 | $as_echo_n "checking whether Ecore_Cocoa module is to be built... " >&6; } | ||
28486 | |||
28487 | if test "x${want_module}" = "xyes" ; then | ||
28488 | if test "x${ecore_cocoa_deps}" = "x" || test "x${ecore_cocoa_deps}" = "xyes" ; then | ||
28489 | |||
28490 | $as_echo "#define BUILD_ECORE_COCOA 1" >>confdefs.h | ||
28491 | |||
28492 | have_ecore_cocoa="yes" | ||
28493 | ecore_cocoa_libs="-lecore_cocoa" | ||
28494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28495 | $as_echo "yes" >&6; } | ||
28496 | else | ||
28497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28498 | $as_echo "no (dependency failed)" >&6; } | ||
28499 | fi | ||
28500 | else | ||
28501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28502 | $as_echo "no" >&6; } | ||
28503 | fi | ||
28504 | |||
28505 | if test "x$have_ecore_cocoa" = "xyes"; then | ||
28506 | BUILD_ECORE_COCOA_TRUE= | ||
28507 | BUILD_ECORE_COCOA_FALSE='#' | ||
28508 | else | ||
28509 | BUILD_ECORE_COCOA_TRUE='#' | ||
28510 | BUILD_ECORE_COCOA_FALSE= | ||
28511 | fi | ||
28512 | |||
28513 | |||
28514 | if test "x$have_ecore_cocoa" = "xyes"; then : | ||
28515 | requirements_ecore_cocoa="ecore-input >= 1.2.0 ${requirements_ecore_cocoa}" | ||
28516 | fi | ||
28517 | |||
28518 | |||
28519 | |||
28520 | |||
28521 | |||
28522 | |||
28523 | |||
28524 | |||
28525 | # ecore_sdl | ||
28526 | |||
28527 | ecore_sdl_deps="no" | ||
28528 | if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then | ||
28529 | ecore_sdl_deps="yes" | ||
28530 | fi | ||
28531 | |||
28532 | |||
28533 | |||
28534 | have_ecore_sdl=no | ||
28535 | ecore_sdl_cflags= | ||
28536 | ecore_sdl_libs= | ||
28537 | want_module=${want_ecore_sdl} | ||
28538 | |||
28539 | # Check whether --enable-ecore-sdl was given. | ||
28540 | if test "${enable_ecore_sdl+set}" = set; then : | ||
28541 | enableval=$enable_ecore_sdl; | ||
28542 | if test "x${enableval}" = "xyes" ; then | ||
28543 | want_module="yes" | ||
28544 | else | ||
28545 | want_module="no" | ||
28546 | fi | ||
28547 | |||
28548 | fi | ||
28549 | |||
28550 | |||
28551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Sdl module is to be built" >&5 | ||
28552 | $as_echo_n "checking whether Ecore_Sdl module is to be built... " >&6; } | ||
28553 | |||
28554 | if test "x${want_module}" = "xyes" ; then | ||
28555 | if test "x${ecore_sdl_deps}" = "x" || test "x${ecore_sdl_deps}" = "xyes" ; then | ||
28556 | |||
28557 | $as_echo "#define BUILD_ECORE_SDL 1" >>confdefs.h | ||
28558 | |||
28559 | have_ecore_sdl="yes" | ||
28560 | ecore_sdl_libs="-lecore_sdl" | ||
28561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28562 | $as_echo "yes" >&6; } | ||
28563 | else | ||
28564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28565 | $as_echo "no (dependency failed)" >&6; } | ||
28566 | fi | ||
28567 | else | ||
28568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28569 | $as_echo "no" >&6; } | ||
28570 | fi | ||
28571 | |||
28572 | if test "x$have_ecore_sdl" = "xyes"; then | ||
28573 | BUILD_ECORE_SDL_TRUE= | ||
28574 | BUILD_ECORE_SDL_FALSE='#' | ||
28575 | else | ||
28576 | BUILD_ECORE_SDL_TRUE='#' | ||
28577 | BUILD_ECORE_SDL_FALSE= | ||
28578 | fi | ||
28579 | |||
28580 | |||
28581 | if test "x$have_ecore_sdl" = "xyes"; then : | ||
28582 | requirements_ecore_sdl="ecore-input >= 1.2.0 ${requirements_ecore_sdl}" | ||
28583 | fi | ||
28584 | |||
28585 | |||
28586 | |||
28587 | |||
28588 | |||
28589 | |||
28590 | |||
28591 | |||
28592 | |||
28593 | |||
28594 | have_ecore_psl1ght=no | ||
28595 | ecore_psl1ght_cflags= | ||
28596 | ecore_psl1ght_libs= | ||
28597 | want_module=${want_ecore_psl1ght} | ||
28598 | |||
28599 | # Check whether --enable-ecore-psl1ght was given. | ||
28600 | if test "${enable_ecore_psl1ght+set}" = set; then : | ||
28601 | enableval=$enable_ecore_psl1ght; | ||
28602 | if test "x${enableval}" = "xyes" ; then | ||
28603 | want_module="yes" | ||
28604 | else | ||
28605 | want_module="no" | ||
28606 | fi | ||
28607 | |||
28608 | fi | ||
28609 | |||
28610 | |||
28611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_psl1ght module is to be built" >&5 | ||
28612 | $as_echo_n "checking whether Ecore_psl1ght module is to be built... " >&6; } | ||
28613 | |||
28614 | if test "x${want_module}" = "xyes" ; then | ||
28615 | if test "x${ecore_psl1ght_deps}" = "x" || test "x${ecore_psl1ght_deps}" = "xyes" ; then | ||
28616 | |||
28617 | $as_echo "#define BUILD_ECORE_PSL1GHT 1" >>confdefs.h | ||
28618 | |||
28619 | have_ecore_psl1ght="yes" | ||
28620 | ecore_psl1ght_libs="-lecore_psl1ght" | ||
28621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28622 | $as_echo "yes" >&6; } | ||
28623 | else | ||
28624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28625 | $as_echo "no (dependency failed)" >&6; } | ||
28626 | fi | ||
28627 | else | ||
28628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28629 | $as_echo "no" >&6; } | ||
28630 | fi | ||
28631 | |||
28632 | if test "x$have_ecore_psl1ght" = "xyes"; then | ||
28633 | BUILD_ECORE_PSL1GHT_TRUE= | ||
28634 | BUILD_ECORE_PSL1GHT_FALSE='#' | ||
28635 | else | ||
28636 | BUILD_ECORE_PSL1GHT_TRUE='#' | ||
28637 | BUILD_ECORE_PSL1GHT_FALSE= | ||
28638 | fi | ||
28639 | |||
28640 | |||
28641 | if test "x$have_ecore_psl1ght" = "xyes"; then : | ||
28642 | requirements_ecore_psl1ght="ecore-input >= 1.2.0 ${requirements_ecore_psl1ght}" | ||
28643 | fi | ||
28644 | |||
28645 | |||
28646 | |||
28647 | |||
28648 | |||
28649 | |||
28650 | |||
28651 | |||
28652 | # ecore_fb | ||
28653 | |||
28654 | |||
28655 | have_ecore_fb=no | ||
28656 | ecore_fb_cflags= | ||
28657 | ecore_fb_libs= | ||
28658 | want_module=${want_ecore_fb} | ||
28659 | |||
28660 | # Check whether --enable-ecore-fb was given. | ||
28661 | if test "${enable_ecore_fb+set}" = set; then : | ||
28662 | enableval=$enable_ecore_fb; | ||
28663 | if test "x${enableval}" = "xyes" ; then | ||
28664 | want_module="yes" | ||
28665 | else | ||
28666 | want_module="no" | ||
28667 | fi | ||
28668 | |||
28669 | fi | ||
28670 | |||
28671 | |||
28672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_FB module is to be built" >&5 | ||
28673 | $as_echo_n "checking whether Ecore_FB module is to be built... " >&6; } | ||
28674 | |||
28675 | if test "x${want_module}" = "xyes" ; then | ||
28676 | if test "x$have_fb" = "x" || test "x$have_fb" = "xyes" ; then | ||
28677 | |||
28678 | $as_echo "#define BUILD_ECORE_FB 1" >>confdefs.h | ||
28679 | |||
28680 | have_ecore_fb="yes" | ||
28681 | ecore_fb_libs="-lecore_fb" | ||
28682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28683 | $as_echo "yes" >&6; } | ||
28684 | else | ||
28685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
28686 | $as_echo "no (dependency failed)" >&6; } | ||
28687 | fi | ||
28688 | else | ||
28689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28690 | $as_echo "no" >&6; } | ||
28691 | fi | ||
28692 | |||
28693 | if test "x$have_ecore_fb" = "xyes"; then | ||
28694 | BUILD_ECORE_FB_TRUE= | ||
28695 | BUILD_ECORE_FB_FALSE='#' | ||
28696 | else | ||
28697 | BUILD_ECORE_FB_TRUE='#' | ||
28698 | BUILD_ECORE_FB_FALSE= | ||
28699 | fi | ||
28700 | |||
28701 | |||
28702 | if test "x$have_ecore_fb" = "xyes"; then : | ||
28703 | |||
28704 | fi | ||
28705 | |||
28706 | |||
28707 | |||
28708 | |||
28709 | |||
28710 | |||
28711 | |||
28712 | |||
28713 | if test "x${have_ecore_fb}" = "xyes" ; then | ||
28714 | |||
28715 | _tslib_requirement="" | ||
28716 | _ecore_want_tslib=${want_tslib} | ||
28717 | _ecore_have_tslib="no" | ||
28718 | TSLIB_LIBS="" | ||
28719 | TSLIB_CFLAGS="" | ||
28720 | |||
28721 | # Check whether --enable-tslib was given. | ||
28722 | if test "${enable_tslib+set}" = set; then : | ||
28723 | enableval=$enable_tslib; | ||
28724 | if test "x${enableval}" = "xyes" ; then | ||
28725 | _ecore_want_tslib="yes" | ||
28726 | else | ||
28727 | _ecore_want_tslib="no" | ||
28728 | fi | ||
28729 | |||
28730 | fi | ||
28731 | |||
28732 | |||
28733 | if test "x${_ecore_want_tslib}" = "xyes" -o "x${_ecore_want_tslib}" = "xauto" ; then | ||
28734 | |||
28735 | pkg_failed=no | ||
28736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5 | ||
28737 | $as_echo_n "checking for TSLIB... " >&6; } | ||
28738 | |||
28739 | if test -n "$TSLIB_CFLAGS"; then | ||
28740 | pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS" | ||
28741 | elif test -n "$PKG_CONFIG"; then | ||
28742 | if test -n "$PKG_CONFIG" && \ | ||
28743 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-1.0\""; } >&5 | ||
28744 | ($PKG_CONFIG --exists --print-errors "tslib-1.0") 2>&5 | ||
28745 | ac_status=$? | ||
28746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28747 | test $ac_status = 0; }; then | ||
28748 | pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-1.0" 2>/dev/null` | ||
28749 | else | ||
28750 | pkg_failed=yes | ||
28751 | fi | ||
28752 | else | ||
28753 | pkg_failed=untried | ||
28754 | fi | ||
28755 | if test -n "$TSLIB_LIBS"; then | ||
28756 | pkg_cv_TSLIB_LIBS="$TSLIB_LIBS" | ||
28757 | elif test -n "$PKG_CONFIG"; then | ||
28758 | if test -n "$PKG_CONFIG" && \ | ||
28759 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-1.0\""; } >&5 | ||
28760 | ($PKG_CONFIG --exists --print-errors "tslib-1.0") 2>&5 | ||
28761 | ac_status=$? | ||
28762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28763 | test $ac_status = 0; }; then | ||
28764 | pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-1.0" 2>/dev/null` | ||
28765 | else | ||
28766 | pkg_failed=yes | ||
28767 | fi | ||
28768 | else | ||
28769 | pkg_failed=untried | ||
28770 | fi | ||
28771 | |||
28772 | |||
28773 | |||
28774 | if test $pkg_failed = yes; then | ||
28775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28776 | $as_echo "no" >&6; } | ||
28777 | |||
28778 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28779 | _pkg_short_errors_supported=yes | ||
28780 | else | ||
28781 | _pkg_short_errors_supported=no | ||
28782 | fi | ||
28783 | if test $_pkg_short_errors_supported = yes; then | ||
28784 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib-1.0" 2>&1` | ||
28785 | else | ||
28786 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib-1.0" 2>&1` | ||
28787 | fi | ||
28788 | # Put the nasty error message in config.log where it belongs | ||
28789 | echo "$TSLIB_PKG_ERRORS" >&5 | ||
28790 | |||
28791 | |||
28792 | |||
28793 | pkg_failed=no | ||
28794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5 | ||
28795 | $as_echo_n "checking for TSLIB... " >&6; } | ||
28796 | |||
28797 | if test -n "$TSLIB_CFLAGS"; then | ||
28798 | pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS" | ||
28799 | elif test -n "$PKG_CONFIG"; then | ||
28800 | if test -n "$PKG_CONFIG" && \ | ||
28801 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib\""; } >&5 | ||
28802 | ($PKG_CONFIG --exists --print-errors "tslib") 2>&5 | ||
28803 | ac_status=$? | ||
28804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28805 | test $ac_status = 0; }; then | ||
28806 | pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib" 2>/dev/null` | ||
28807 | else | ||
28808 | pkg_failed=yes | ||
28809 | fi | ||
28810 | else | ||
28811 | pkg_failed=untried | ||
28812 | fi | ||
28813 | if test -n "$TSLIB_LIBS"; then | ||
28814 | pkg_cv_TSLIB_LIBS="$TSLIB_LIBS" | ||
28815 | elif test -n "$PKG_CONFIG"; then | ||
28816 | if test -n "$PKG_CONFIG" && \ | ||
28817 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib\""; } >&5 | ||
28818 | ($PKG_CONFIG --exists --print-errors "tslib") 2>&5 | ||
28819 | ac_status=$? | ||
28820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28821 | test $ac_status = 0; }; then | ||
28822 | pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib" 2>/dev/null` | ||
28823 | else | ||
28824 | pkg_failed=yes | ||
28825 | fi | ||
28826 | else | ||
28827 | pkg_failed=untried | ||
28828 | fi | ||
28829 | |||
28830 | |||
28831 | |||
28832 | if test $pkg_failed = yes; then | ||
28833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28834 | $as_echo "no" >&6; } | ||
28835 | |||
28836 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28837 | _pkg_short_errors_supported=yes | ||
28838 | else | ||
28839 | _pkg_short_errors_supported=no | ||
28840 | fi | ||
28841 | if test $_pkg_short_errors_supported = yes; then | ||
28842 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib" 2>&1` | ||
28843 | else | ||
28844 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib" 2>&1` | ||
28845 | fi | ||
28846 | # Put the nasty error message in config.log where it belongs | ||
28847 | echo "$TSLIB_PKG_ERRORS" >&5 | ||
28848 | |||
28849 | |||
28850 | ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default" | ||
28851 | if test "x$ac_cv_header_tslib_h" = x""yes; then : | ||
28852 | |||
28853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | ||
28854 | $as_echo_n "checking for ts_open in -lts... " >&6; } | ||
28855 | if test "${ac_cv_lib_ts_ts_open+set}" = set; then : | ||
28856 | $as_echo_n "(cached) " >&6 | ||
28857 | else | ||
28858 | ac_check_lib_save_LIBS=$LIBS | ||
28859 | LIBS="-lts $LIBS" | ||
28860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28861 | /* end confdefs.h. */ | ||
28862 | |||
28863 | /* Override any GCC internal prototype to avoid an error. | ||
28864 | Use char because int might match the return type of a GCC | ||
28865 | builtin and then its argument prototype would still apply. */ | ||
28866 | #ifdef __cplusplus | ||
28867 | extern "C" | ||
28868 | #endif | ||
28869 | char ts_open (); | ||
28870 | int | ||
28871 | main () | ||
28872 | { | ||
28873 | return ts_open (); | ||
28874 | ; | ||
28875 | return 0; | ||
28876 | } | ||
28877 | _ACEOF | ||
28878 | if ac_fn_c_try_link "$LINENO"; then : | ||
28879 | ac_cv_lib_ts_ts_open=yes | ||
28880 | else | ||
28881 | ac_cv_lib_ts_ts_open=no | ||
28882 | fi | ||
28883 | rm -f core conftest.err conftest.$ac_objext \ | ||
28884 | conftest$ac_exeext conftest.$ac_ext | ||
28885 | LIBS=$ac_check_lib_save_LIBS | ||
28886 | fi | ||
28887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | ||
28888 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | ||
28889 | if test "x$ac_cv_lib_ts_ts_open" = x""yes; then : | ||
28890 | |||
28891 | TSLIB_LIBS="-lts" | ||
28892 | TSLIB_CFLAGS="" | ||
28893 | |||
28894 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
28895 | |||
28896 | _ecore_have_tslib="yes" | ||
28897 | |||
28898 | else | ||
28899 | |||
28900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -ltslib" >&5 | ||
28901 | $as_echo_n "checking for ts_open in -ltslib... " >&6; } | ||
28902 | if test "${ac_cv_lib_tslib_ts_open+set}" = set; then : | ||
28903 | $as_echo_n "(cached) " >&6 | ||
28904 | else | ||
28905 | ac_check_lib_save_LIBS=$LIBS | ||
28906 | LIBS="-ltslib $LIBS" | ||
28907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28908 | /* end confdefs.h. */ | ||
28909 | |||
28910 | /* Override any GCC internal prototype to avoid an error. | ||
28911 | Use char because int might match the return type of a GCC | ||
28912 | builtin and then its argument prototype would still apply. */ | ||
28913 | #ifdef __cplusplus | ||
28914 | extern "C" | ||
28915 | #endif | ||
28916 | char ts_open (); | ||
28917 | int | ||
28918 | main () | ||
28919 | { | ||
28920 | return ts_open (); | ||
28921 | ; | ||
28922 | return 0; | ||
28923 | } | ||
28924 | _ACEOF | ||
28925 | if ac_fn_c_try_link "$LINENO"; then : | ||
28926 | ac_cv_lib_tslib_ts_open=yes | ||
28927 | else | ||
28928 | ac_cv_lib_tslib_ts_open=no | ||
28929 | fi | ||
28930 | rm -f core conftest.err conftest.$ac_objext \ | ||
28931 | conftest$ac_exeext conftest.$ac_ext | ||
28932 | LIBS=$ac_check_lib_save_LIBS | ||
28933 | fi | ||
28934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tslib_ts_open" >&5 | ||
28935 | $as_echo "$ac_cv_lib_tslib_ts_open" >&6; } | ||
28936 | if test "x$ac_cv_lib_tslib_ts_open" = x""yes; then : | ||
28937 | |||
28938 | TSLIB_LIBS="-ltslib" | ||
28939 | TSLIB_CFLAGS="" | ||
28940 | |||
28941 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
28942 | |||
28943 | _ecore_have_tslib="yes" | ||
28944 | |||
28945 | else | ||
28946 | |||
28947 | _ecore_have_tslib="no" | ||
28948 | |||
28949 | fi | ||
28950 | |||
28951 | |||
28952 | fi | ||
28953 | |||
28954 | |||
28955 | fi | ||
28956 | |||
28957 | |||
28958 | |||
28959 | elif test $pkg_failed = untried; then | ||
28960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28961 | $as_echo "no" >&6; } | ||
28962 | |||
28963 | ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default" | ||
28964 | if test "x$ac_cv_header_tslib_h" = x""yes; then : | ||
28965 | |||
28966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | ||
28967 | $as_echo_n "checking for ts_open in -lts... " >&6; } | ||
28968 | if test "${ac_cv_lib_ts_ts_open+set}" = set; then : | ||
28969 | $as_echo_n "(cached) " >&6 | ||
28970 | else | ||
28971 | ac_check_lib_save_LIBS=$LIBS | ||
28972 | LIBS="-lts $LIBS" | ||
28973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28974 | /* end confdefs.h. */ | ||
28975 | |||
28976 | /* Override any GCC internal prototype to avoid an error. | ||
28977 | Use char because int might match the return type of a GCC | ||
28978 | builtin and then its argument prototype would still apply. */ | ||
28979 | #ifdef __cplusplus | ||
28980 | extern "C" | ||
28981 | #endif | ||
28982 | char ts_open (); | ||
28983 | int | ||
28984 | main () | ||
28985 | { | ||
28986 | return ts_open (); | ||
28987 | ; | ||
28988 | return 0; | ||
28989 | } | ||
28990 | _ACEOF | ||
28991 | if ac_fn_c_try_link "$LINENO"; then : | ||
28992 | ac_cv_lib_ts_ts_open=yes | ||
28993 | else | ||
28994 | ac_cv_lib_ts_ts_open=no | ||
28995 | fi | ||
28996 | rm -f core conftest.err conftest.$ac_objext \ | ||
28997 | conftest$ac_exeext conftest.$ac_ext | ||
28998 | LIBS=$ac_check_lib_save_LIBS | ||
28999 | fi | ||
29000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | ||
29001 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | ||
29002 | if test "x$ac_cv_lib_ts_ts_open" = x""yes; then : | ||
29003 | |||
29004 | TSLIB_LIBS="-lts" | ||
29005 | TSLIB_CFLAGS="" | ||
29006 | |||
29007 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29008 | |||
29009 | _ecore_have_tslib="yes" | ||
29010 | |||
29011 | else | ||
29012 | |||
29013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -ltslib" >&5 | ||
29014 | $as_echo_n "checking for ts_open in -ltslib... " >&6; } | ||
29015 | if test "${ac_cv_lib_tslib_ts_open+set}" = set; then : | ||
29016 | $as_echo_n "(cached) " >&6 | ||
29017 | else | ||
29018 | ac_check_lib_save_LIBS=$LIBS | ||
29019 | LIBS="-ltslib $LIBS" | ||
29020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29021 | /* end confdefs.h. */ | ||
29022 | |||
29023 | /* Override any GCC internal prototype to avoid an error. | ||
29024 | Use char because int might match the return type of a GCC | ||
29025 | builtin and then its argument prototype would still apply. */ | ||
29026 | #ifdef __cplusplus | ||
29027 | extern "C" | ||
29028 | #endif | ||
29029 | char ts_open (); | ||
29030 | int | ||
29031 | main () | ||
29032 | { | ||
29033 | return ts_open (); | ||
29034 | ; | ||
29035 | return 0; | ||
29036 | } | ||
29037 | _ACEOF | ||
29038 | if ac_fn_c_try_link "$LINENO"; then : | ||
29039 | ac_cv_lib_tslib_ts_open=yes | ||
29040 | else | ||
29041 | ac_cv_lib_tslib_ts_open=no | ||
29042 | fi | ||
29043 | rm -f core conftest.err conftest.$ac_objext \ | ||
29044 | conftest$ac_exeext conftest.$ac_ext | ||
29045 | LIBS=$ac_check_lib_save_LIBS | ||
29046 | fi | ||
29047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tslib_ts_open" >&5 | ||
29048 | $as_echo "$ac_cv_lib_tslib_ts_open" >&6; } | ||
29049 | if test "x$ac_cv_lib_tslib_ts_open" = x""yes; then : | ||
29050 | |||
29051 | TSLIB_LIBS="-ltslib" | ||
29052 | TSLIB_CFLAGS="" | ||
29053 | |||
29054 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29055 | |||
29056 | _ecore_have_tslib="yes" | ||
29057 | |||
29058 | else | ||
29059 | |||
29060 | _ecore_have_tslib="no" | ||
29061 | |||
29062 | fi | ||
29063 | |||
29064 | |||
29065 | fi | ||
29066 | |||
29067 | |||
29068 | fi | ||
29069 | |||
29070 | |||
29071 | |||
29072 | else | ||
29073 | TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS | ||
29074 | TSLIB_LIBS=$pkg_cv_TSLIB_LIBS | ||
29075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29076 | $as_echo "yes" >&6; } | ||
29077 | |||
29078 | |||
29079 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29080 | |||
29081 | _ecore_have_tslib="yes" | ||
29082 | _tslib_requirement="tslib" | ||
29083 | |||
29084 | fi | ||
29085 | |||
29086 | elif test $pkg_failed = untried; then | ||
29087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29088 | $as_echo "no" >&6; } | ||
29089 | |||
29090 | |||
29091 | pkg_failed=no | ||
29092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5 | ||
29093 | $as_echo_n "checking for TSLIB... " >&6; } | ||
29094 | |||
29095 | if test -n "$TSLIB_CFLAGS"; then | ||
29096 | pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS" | ||
29097 | elif test -n "$PKG_CONFIG"; then | ||
29098 | if test -n "$PKG_CONFIG" && \ | ||
29099 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib\""; } >&5 | ||
29100 | ($PKG_CONFIG --exists --print-errors "tslib") 2>&5 | ||
29101 | ac_status=$? | ||
29102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29103 | test $ac_status = 0; }; then | ||
29104 | pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib" 2>/dev/null` | ||
29105 | else | ||
29106 | pkg_failed=yes | ||
29107 | fi | ||
29108 | else | ||
29109 | pkg_failed=untried | ||
29110 | fi | ||
29111 | if test -n "$TSLIB_LIBS"; then | ||
29112 | pkg_cv_TSLIB_LIBS="$TSLIB_LIBS" | ||
29113 | elif test -n "$PKG_CONFIG"; then | ||
29114 | if test -n "$PKG_CONFIG" && \ | ||
29115 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib\""; } >&5 | ||
29116 | ($PKG_CONFIG --exists --print-errors "tslib") 2>&5 | ||
29117 | ac_status=$? | ||
29118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29119 | test $ac_status = 0; }; then | ||
29120 | pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib" 2>/dev/null` | ||
29121 | else | ||
29122 | pkg_failed=yes | ||
29123 | fi | ||
29124 | else | ||
29125 | pkg_failed=untried | ||
29126 | fi | ||
29127 | |||
29128 | |||
29129 | |||
29130 | if test $pkg_failed = yes; then | ||
29131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29132 | $as_echo "no" >&6; } | ||
29133 | |||
29134 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
29135 | _pkg_short_errors_supported=yes | ||
29136 | else | ||
29137 | _pkg_short_errors_supported=no | ||
29138 | fi | ||
29139 | if test $_pkg_short_errors_supported = yes; then | ||
29140 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib" 2>&1` | ||
29141 | else | ||
29142 | TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib" 2>&1` | ||
29143 | fi | ||
29144 | # Put the nasty error message in config.log where it belongs | ||
29145 | echo "$TSLIB_PKG_ERRORS" >&5 | ||
29146 | |||
29147 | |||
29148 | ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default" | ||
29149 | if test "x$ac_cv_header_tslib_h" = x""yes; then : | ||
29150 | |||
29151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | ||
29152 | $as_echo_n "checking for ts_open in -lts... " >&6; } | ||
29153 | if test "${ac_cv_lib_ts_ts_open+set}" = set; then : | ||
29154 | $as_echo_n "(cached) " >&6 | ||
29155 | else | ||
29156 | ac_check_lib_save_LIBS=$LIBS | ||
29157 | LIBS="-lts $LIBS" | ||
29158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29159 | /* end confdefs.h. */ | ||
29160 | |||
29161 | /* Override any GCC internal prototype to avoid an error. | ||
29162 | Use char because int might match the return type of a GCC | ||
29163 | builtin and then its argument prototype would still apply. */ | ||
29164 | #ifdef __cplusplus | ||
29165 | extern "C" | ||
29166 | #endif | ||
29167 | char ts_open (); | ||
29168 | int | ||
29169 | main () | ||
29170 | { | ||
29171 | return ts_open (); | ||
29172 | ; | ||
29173 | return 0; | ||
29174 | } | ||
29175 | _ACEOF | ||
29176 | if ac_fn_c_try_link "$LINENO"; then : | ||
29177 | ac_cv_lib_ts_ts_open=yes | ||
29178 | else | ||
29179 | ac_cv_lib_ts_ts_open=no | ||
29180 | fi | ||
29181 | rm -f core conftest.err conftest.$ac_objext \ | ||
29182 | conftest$ac_exeext conftest.$ac_ext | ||
29183 | LIBS=$ac_check_lib_save_LIBS | ||
29184 | fi | ||
29185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | ||
29186 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | ||
29187 | if test "x$ac_cv_lib_ts_ts_open" = x""yes; then : | ||
29188 | |||
29189 | TSLIB_LIBS="-lts" | ||
29190 | TSLIB_CFLAGS="" | ||
29191 | |||
29192 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29193 | |||
29194 | _ecore_have_tslib="yes" | ||
29195 | |||
29196 | else | ||
29197 | |||
29198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -ltslib" >&5 | ||
29199 | $as_echo_n "checking for ts_open in -ltslib... " >&6; } | ||
29200 | if test "${ac_cv_lib_tslib_ts_open+set}" = set; then : | ||
29201 | $as_echo_n "(cached) " >&6 | ||
29202 | else | ||
29203 | ac_check_lib_save_LIBS=$LIBS | ||
29204 | LIBS="-ltslib $LIBS" | ||
29205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29206 | /* end confdefs.h. */ | ||
29207 | |||
29208 | /* Override any GCC internal prototype to avoid an error. | ||
29209 | Use char because int might match the return type of a GCC | ||
29210 | builtin and then its argument prototype would still apply. */ | ||
29211 | #ifdef __cplusplus | ||
29212 | extern "C" | ||
29213 | #endif | ||
29214 | char ts_open (); | ||
29215 | int | ||
29216 | main () | ||
29217 | { | ||
29218 | return ts_open (); | ||
29219 | ; | ||
29220 | return 0; | ||
29221 | } | ||
29222 | _ACEOF | ||
29223 | if ac_fn_c_try_link "$LINENO"; then : | ||
29224 | ac_cv_lib_tslib_ts_open=yes | ||
29225 | else | ||
29226 | ac_cv_lib_tslib_ts_open=no | ||
29227 | fi | ||
29228 | rm -f core conftest.err conftest.$ac_objext \ | ||
29229 | conftest$ac_exeext conftest.$ac_ext | ||
29230 | LIBS=$ac_check_lib_save_LIBS | ||
29231 | fi | ||
29232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tslib_ts_open" >&5 | ||
29233 | $as_echo "$ac_cv_lib_tslib_ts_open" >&6; } | ||
29234 | if test "x$ac_cv_lib_tslib_ts_open" = x""yes; then : | ||
29235 | |||
29236 | TSLIB_LIBS="-ltslib" | ||
29237 | TSLIB_CFLAGS="" | ||
29238 | |||
29239 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29240 | |||
29241 | _ecore_have_tslib="yes" | ||
29242 | |||
29243 | else | ||
29244 | |||
29245 | _ecore_have_tslib="no" | ||
29246 | |||
29247 | fi | ||
29248 | |||
29249 | |||
29250 | fi | ||
29251 | |||
29252 | |||
29253 | fi | ||
29254 | |||
29255 | |||
29256 | |||
29257 | elif test $pkg_failed = untried; then | ||
29258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29259 | $as_echo "no" >&6; } | ||
29260 | |||
29261 | ac_fn_c_check_header_mongrel "$LINENO" "tslib.h" "ac_cv_header_tslib_h" "$ac_includes_default" | ||
29262 | if test "x$ac_cv_header_tslib_h" = x""yes; then : | ||
29263 | |||
29264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5 | ||
29265 | $as_echo_n "checking for ts_open in -lts... " >&6; } | ||
29266 | if test "${ac_cv_lib_ts_ts_open+set}" = set; then : | ||
29267 | $as_echo_n "(cached) " >&6 | ||
29268 | else | ||
29269 | ac_check_lib_save_LIBS=$LIBS | ||
29270 | LIBS="-lts $LIBS" | ||
29271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29272 | /* end confdefs.h. */ | ||
29273 | |||
29274 | /* Override any GCC internal prototype to avoid an error. | ||
29275 | Use char because int might match the return type of a GCC | ||
29276 | builtin and then its argument prototype would still apply. */ | ||
29277 | #ifdef __cplusplus | ||
29278 | extern "C" | ||
29279 | #endif | ||
29280 | char ts_open (); | ||
29281 | int | ||
29282 | main () | ||
29283 | { | ||
29284 | return ts_open (); | ||
29285 | ; | ||
29286 | return 0; | ||
29287 | } | ||
29288 | _ACEOF | ||
29289 | if ac_fn_c_try_link "$LINENO"; then : | ||
29290 | ac_cv_lib_ts_ts_open=yes | ||
29291 | else | ||
29292 | ac_cv_lib_ts_ts_open=no | ||
29293 | fi | ||
29294 | rm -f core conftest.err conftest.$ac_objext \ | ||
29295 | conftest$ac_exeext conftest.$ac_ext | ||
29296 | LIBS=$ac_check_lib_save_LIBS | ||
29297 | fi | ||
29298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5 | ||
29299 | $as_echo "$ac_cv_lib_ts_ts_open" >&6; } | ||
29300 | if test "x$ac_cv_lib_ts_ts_open" = x""yes; then : | ||
29301 | |||
29302 | TSLIB_LIBS="-lts" | ||
29303 | TSLIB_CFLAGS="" | ||
29304 | |||
29305 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29306 | |||
29307 | _ecore_have_tslib="yes" | ||
29308 | |||
29309 | else | ||
29310 | |||
29311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -ltslib" >&5 | ||
29312 | $as_echo_n "checking for ts_open in -ltslib... " >&6; } | ||
29313 | if test "${ac_cv_lib_tslib_ts_open+set}" = set; then : | ||
29314 | $as_echo_n "(cached) " >&6 | ||
29315 | else | ||
29316 | ac_check_lib_save_LIBS=$LIBS | ||
29317 | LIBS="-ltslib $LIBS" | ||
29318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29319 | /* end confdefs.h. */ | ||
29320 | |||
29321 | /* Override any GCC internal prototype to avoid an error. | ||
29322 | Use char because int might match the return type of a GCC | ||
29323 | builtin and then its argument prototype would still apply. */ | ||
29324 | #ifdef __cplusplus | ||
29325 | extern "C" | ||
29326 | #endif | ||
29327 | char ts_open (); | ||
29328 | int | ||
29329 | main () | ||
29330 | { | ||
29331 | return ts_open (); | ||
29332 | ; | ||
29333 | return 0; | ||
29334 | } | ||
29335 | _ACEOF | ||
29336 | if ac_fn_c_try_link "$LINENO"; then : | ||
29337 | ac_cv_lib_tslib_ts_open=yes | ||
29338 | else | ||
29339 | ac_cv_lib_tslib_ts_open=no | ||
29340 | fi | ||
29341 | rm -f core conftest.err conftest.$ac_objext \ | ||
29342 | conftest$ac_exeext conftest.$ac_ext | ||
29343 | LIBS=$ac_check_lib_save_LIBS | ||
29344 | fi | ||
29345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tslib_ts_open" >&5 | ||
29346 | $as_echo "$ac_cv_lib_tslib_ts_open" >&6; } | ||
29347 | if test "x$ac_cv_lib_tslib_ts_open" = x""yes; then : | ||
29348 | |||
29349 | TSLIB_LIBS="-ltslib" | ||
29350 | TSLIB_CFLAGS="" | ||
29351 | |||
29352 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29353 | |||
29354 | _ecore_have_tslib="yes" | ||
29355 | |||
29356 | else | ||
29357 | |||
29358 | _ecore_have_tslib="no" | ||
29359 | |||
29360 | fi | ||
29361 | |||
29362 | |||
29363 | fi | ||
29364 | |||
29365 | |||
29366 | fi | ||
29367 | |||
29368 | |||
29369 | |||
29370 | else | ||
29371 | TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS | ||
29372 | TSLIB_LIBS=$pkg_cv_TSLIB_LIBS | ||
29373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29374 | $as_echo "yes" >&6; } | ||
29375 | |||
29376 | |||
29377 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29378 | |||
29379 | _ecore_have_tslib="yes" | ||
29380 | _tslib_requirement="tslib" | ||
29381 | |||
29382 | fi | ||
29383 | |||
29384 | else | ||
29385 | TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS | ||
29386 | TSLIB_LIBS=$pkg_cv_TSLIB_LIBS | ||
29387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29388 | $as_echo "yes" >&6; } | ||
29389 | |||
29390 | |||
29391 | $as_echo "#define HAVE_TSLIB 1" >>confdefs.h | ||
29392 | |||
29393 | _ecore_have_tslib="yes" | ||
29394 | _tslib_requirement="tslib-1.0" | ||
29395 | |||
29396 | fi | ||
29397 | fi | ||
29398 | |||
29399 | |||
29400 | |||
29401 | |||
29402 | if test "x$_ecore_have_tslib" = "xyes" ; then | ||
29403 | |||
29404 | have_tslib="yes" | ||
29405 | requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}" | ||
29406 | |||
29407 | else | ||
29408 | have_tslib="no" | ||
29409 | fi | ||
29410 | |||
29411 | fi | ||
29412 | |||
29413 | # ecore_directfb | ||
29414 | |||
29415 | |||
29416 | |||
29417 | have_ecore_directfb=no | ||
29418 | ecore_directfb_cflags= | ||
29419 | ecore_directfb_libs= | ||
29420 | want_module=${want_ecore_directfb} | ||
29421 | |||
29422 | # Check whether --enable-ecore-directfb was given. | ||
29423 | if test "${enable_ecore_directfb+set}" = set; then : | ||
29424 | enableval=$enable_ecore_directfb; | ||
29425 | if test "x${enableval}" = "xyes" ; then | ||
29426 | want_module="yes" | ||
29427 | else | ||
29428 | want_module="no" | ||
29429 | fi | ||
29430 | |||
29431 | fi | ||
29432 | |||
29433 | |||
29434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_DirectFB module is to be built" >&5 | ||
29435 | $as_echo_n "checking whether Ecore_DirectFB module is to be built... " >&6; } | ||
29436 | |||
29437 | if test "x${want_module}" = "xyes" ; then | ||
29438 | if test "x${have_directfb}" = "x" || test "x${have_directfb}" = "xyes" ; then | ||
29439 | |||
29440 | $as_echo "#define BUILD_ECORE_DIRECTFB 1" >>confdefs.h | ||
29441 | |||
29442 | have_ecore_directfb="yes" | ||
29443 | ecore_directfb_libs="-lecore_directfb" | ||
29444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29445 | $as_echo "yes" >&6; } | ||
29446 | else | ||
29447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
29448 | $as_echo "no (dependency failed)" >&6; } | ||
29449 | fi | ||
29450 | else | ||
29451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29452 | $as_echo "no" >&6; } | ||
29453 | fi | ||
29454 | |||
29455 | if test "x$have_ecore_directfb" = "xyes"; then | ||
29456 | BUILD_ECORE_DIRECTFB_TRUE= | ||
29457 | BUILD_ECORE_DIRECTFB_FALSE='#' | ||
29458 | else | ||
29459 | BUILD_ECORE_DIRECTFB_TRUE='#' | ||
29460 | BUILD_ECORE_DIRECTFB_FALSE= | ||
29461 | fi | ||
29462 | |||
29463 | |||
29464 | if test "x$have_ecore_directfb" = "xyes"; then : | ||
29465 | requirements_ecore_directfb="directfb ${requirements_ecore_directfb}" | ||
29466 | fi | ||
29467 | |||
29468 | |||
29469 | |||
29470 | |||
29471 | |||
29472 | |||
29473 | |||
29474 | |||
29475 | # ecore_wince | ||
29476 | |||
29477 | |||
29478 | |||
29479 | have_ecore_wince=no | ||
29480 | ecore_wince_cflags= | ||
29481 | ecore_wince_libs= | ||
29482 | want_module=${want_ecore_wince} | ||
29483 | |||
29484 | # Check whether --enable-ecore-wince was given. | ||
29485 | if test "${enable_ecore_wince+set}" = set; then : | ||
29486 | enableval=$enable_ecore_wince; | ||
29487 | if test "x${enableval}" = "xyes" ; then | ||
29488 | want_module="yes" | ||
29489 | else | ||
29490 | want_module="no" | ||
29491 | fi | ||
29492 | |||
29493 | fi | ||
29494 | |||
29495 | |||
29496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_WinCE module is to be built" >&5 | ||
29497 | $as_echo_n "checking whether Ecore_WinCE module is to be built... " >&6; } | ||
29498 | |||
29499 | if test "x${want_module}" = "xyes" ; then | ||
29500 | if test "x${have_ecore_input}" = "x" || test "x${have_ecore_input}" = "xyes" ; then | ||
29501 | |||
29502 | $as_echo "#define BUILD_ECORE_WINCE 1" >>confdefs.h | ||
29503 | |||
29504 | have_ecore_wince="yes" | ||
29505 | ecore_wince_libs="-lecore_wince" | ||
29506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29507 | $as_echo "yes" >&6; } | ||
29508 | else | ||
29509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
29510 | $as_echo "no (dependency failed)" >&6; } | ||
29511 | fi | ||
29512 | else | ||
29513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29514 | $as_echo "no" >&6; } | ||
29515 | fi | ||
29516 | |||
29517 | if test "x$have_ecore_wince" = "xyes"; then | ||
29518 | BUILD_ECORE_WINCE_TRUE= | ||
29519 | BUILD_ECORE_WINCE_FALSE='#' | ||
29520 | else | ||
29521 | BUILD_ECORE_WINCE_TRUE='#' | ||
29522 | BUILD_ECORE_WINCE_FALSE= | ||
29523 | fi | ||
29524 | |||
29525 | |||
29526 | if test "x$have_ecore_wince" = "xyes"; then : | ||
29527 | requirements_ecore_win32="ecore-input >= 1.2.0 ${requirements_ecore_win32}" | ||
29528 | fi | ||
29529 | |||
29530 | |||
29531 | |||
29532 | |||
29533 | |||
29534 | |||
29535 | |||
29536 | |||
29537 | ## Ecore Evas | ||
29538 | |||
29539 | # ecore_evas | ||
29540 | |||
29541 | ecore_evas_deps="no" | ||
29542 | if test "x${have_evas}" = "xyes" && test "x${have_ecore_input}" = "xyes" && test "x${have_ecore_input_evas}" = "xyes" ; then | ||
29543 | ecore_evas_deps="yes" | ||
29544 | fi | ||
29545 | |||
29546 | |||
29547 | |||
29548 | have_ecore_evas=no | ||
29549 | ecore_evas_cflags= | ||
29550 | ecore_evas_libs= | ||
29551 | want_module=${want_ecore_evas} | ||
29552 | |||
29553 | # Check whether --enable-ecore-evas was given. | ||
29554 | if test "${enable_ecore_evas+set}" = set; then : | ||
29555 | enableval=$enable_ecore_evas; | ||
29556 | if test "x${enableval}" = "xyes" ; then | ||
29557 | want_module="yes" | ||
29558 | else | ||
29559 | want_module="no" | ||
29560 | fi | ||
29561 | |||
29562 | fi | ||
29563 | |||
29564 | |||
29565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Evas module is to be built" >&5 | ||
29566 | $as_echo_n "checking whether Ecore_Evas module is to be built... " >&6; } | ||
29567 | |||
29568 | if test "x${want_module}" = "xyes" ; then | ||
29569 | if test "x${ecore_evas_deps}" = "x" || test "x${ecore_evas_deps}" = "xyes" ; then | ||
29570 | |||
29571 | $as_echo "#define BUILD_ECORE_EVAS 1" >>confdefs.h | ||
29572 | |||
29573 | have_ecore_evas="yes" | ||
29574 | ecore_evas_libs="-lecore_evas" | ||
29575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29576 | $as_echo "yes" >&6; } | ||
29577 | else | ||
29578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
29579 | $as_echo "no (dependency failed)" >&6; } | ||
29580 | fi | ||
29581 | else | ||
29582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29583 | $as_echo "no" >&6; } | ||
29584 | fi | ||
29585 | |||
29586 | if test "x$have_ecore_evas" = "xyes"; then | ||
29587 | BUILD_ECORE_EVAS_TRUE= | ||
29588 | BUILD_ECORE_EVAS_FALSE='#' | ||
29589 | else | ||
29590 | BUILD_ECORE_EVAS_TRUE='#' | ||
29591 | BUILD_ECORE_EVAS_FALSE= | ||
29592 | fi | ||
29593 | |||
29594 | |||
29595 | if test "x$have_ecore_evas" = "xyes"; then : | ||
29596 | requirements_ecore_evas="ecore-input >= 1.2.0 ecore-input-evas >= 1.2.0 evas >= 1.2.0 ${requirements_ecore_evas}" | ||
29597 | fi | ||
29598 | |||
29599 | |||
29600 | |||
29601 | |||
29602 | |||
29603 | |||
29604 | |||
29605 | |||
29606 | # ecore_evas_buffer | ||
29607 | |||
29608 | |||
29609 | |||
29610 | have_ecore_evas_software_buffer="no" | ||
29611 | want_module="${want_ecore_evas_software_buffer}" | ||
29612 | |||
29613 | # Check whether --enable-ecore-evas-software-buffer was given. | ||
29614 | if test "${enable_ecore_evas_software_buffer+set}" = set; then : | ||
29615 | enableval=$enable_ecore_evas_software_buffer; | ||
29616 | if test "x${enableval}" = "xyes" ; then | ||
29617 | want_module="yes" | ||
29618 | else | ||
29619 | want_module="no" | ||
29620 | fi | ||
29621 | |||
29622 | fi | ||
29623 | |||
29624 | |||
29625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software Buffer support is to be built" >&5 | ||
29626 | $as_echo_n "checking whether ecore_evas Software Buffer support is to be built... " >&6; } | ||
29627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29628 | $as_echo "${want_module}" >&6; } | ||
29629 | |||
29630 | if test "xyes" = "xyes" && \ | ||
29631 | test "x$have_ecore_evas" = "xyes" && \ | ||
29632 | test "x$want_module" = "xyes" ; then | ||
29633 | if test -n "$PKG_CONFIG" && \ | ||
29634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-buffer\""; } >&5 | ||
29635 | ($PKG_CONFIG --exists --print-errors "evas-software-buffer") 2>&5 | ||
29636 | ac_status=$? | ||
29637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29638 | test $ac_status = 0; }; then | ||
29639 | |||
29640 | |||
29641 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_BUFFER 1" >>confdefs.h | ||
29642 | |||
29643 | have_ecore_evas_software_buffer="yes" | ||
29644 | |||
29645 | fi | ||
29646 | fi | ||
29647 | |||
29648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software Buffer support is built" >&5 | ||
29649 | $as_echo_n "checking whether ecore_evas Software Buffer support is built... " >&6; } | ||
29650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_buffer" >&5 | ||
29651 | $as_echo "$have_ecore_evas_software_buffer" >&6; } | ||
29652 | |||
29653 | if test "x$have_ecore_evas_software_buffer" = "xyes"; then : | ||
29654 | |||
29655 | fi | ||
29656 | |||
29657 | |||
29658 | |||
29659 | |||
29660 | |||
29661 | # ecore_evas_x11 | ||
29662 | |||
29663 | # ecore_evas_software_x11 | ||
29664 | |||
29665 | |||
29666 | |||
29667 | have_ecore_evas_software_x11="no" | ||
29668 | want_module="${want_ecore_evas_software_x11}" | ||
29669 | |||
29670 | # Check whether --enable-ecore-evas-software-x11 was given. | ||
29671 | if test "${enable_ecore_evas_software_x11+set}" = set; then : | ||
29672 | enableval=$enable_ecore_evas_software_x11; | ||
29673 | if test "x${enableval}" = "xyes" ; then | ||
29674 | want_module="yes" | ||
29675 | else | ||
29676 | want_module="no" | ||
29677 | fi | ||
29678 | |||
29679 | fi | ||
29680 | |||
29681 | |||
29682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software X11 support is to be built" >&5 | ||
29683 | $as_echo_n "checking whether ecore_evas Software X11 support is to be built... " >&6; } | ||
29684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29685 | $as_echo "${want_module}" >&6; } | ||
29686 | |||
29687 | if test "x${have_ecore_x}" = "xyes" && \ | ||
29688 | test "x$have_ecore_evas" = "xyes" && \ | ||
29689 | test "x$want_module" = "xyes" ; then | ||
29690 | if test -n "$PKG_CONFIG" && \ | ||
29691 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-x11\""; } >&5 | ||
29692 | ($PKG_CONFIG --exists --print-errors "evas-software-x11") 2>&5 | ||
29693 | ac_status=$? | ||
29694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29695 | test $ac_status = 0; }; then | ||
29696 | |||
29697 | |||
29698 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_X11 1" >>confdefs.h | ||
29699 | |||
29700 | have_ecore_evas_software_x11="yes" | ||
29701 | |||
29702 | fi | ||
29703 | fi | ||
29704 | |||
29705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software X11 support is built" >&5 | ||
29706 | $as_echo_n "checking whether ecore_evas Software X11 support is built... " >&6; } | ||
29707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_x11" >&5 | ||
29708 | $as_echo "$have_ecore_evas_software_x11" >&6; } | ||
29709 | |||
29710 | if test "x$have_ecore_evas_software_x11" = "xyes"; then : | ||
29711 | |||
29712 | fi | ||
29713 | |||
29714 | |||
29715 | |||
29716 | |||
29717 | |||
29718 | have_ecore_evas_software_xlib="no" | ||
29719 | have_ecore_evas_software_xcb="no" | ||
29720 | if test "x$have_ecore_evas_software_x11" = "xyes" ; then | ||
29721 | have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11` | ||
29722 | if test "x${have_ecore_evas_software_xlib}" = "xstatic"; then | ||
29723 | have_ecore_evas_software_xlib="yes" | ||
29724 | fi | ||
29725 | if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then | ||
29726 | |||
29727 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_XLIB 1" >>confdefs.h | ||
29728 | |||
29729 | fi | ||
29730 | have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11` | ||
29731 | if test "x$have_ecore_evas_software_xcb" = "xstatic"; then | ||
29732 | have_ecore_evas_software_xcb="yes" | ||
29733 | fi | ||
29734 | if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then | ||
29735 | |||
29736 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_XCB 1" >>confdefs.h | ||
29737 | |||
29738 | fi | ||
29739 | fi | ||
29740 | |||
29741 | # ecore_evas_opengl_x11 | ||
29742 | |||
29743 | |||
29744 | |||
29745 | have_ecore_evas_opengl_x11="no" | ||
29746 | want_module="${want_ecore_evas_opengl_x11}" | ||
29747 | |||
29748 | # Check whether --enable-ecore-evas-opengl-x11 was given. | ||
29749 | if test "${enable_ecore_evas_opengl_x11+set}" = set; then : | ||
29750 | enableval=$enable_ecore_evas_opengl_x11; | ||
29751 | if test "x${enableval}" = "xyes" ; then | ||
29752 | want_module="yes" | ||
29753 | else | ||
29754 | want_module="no" | ||
29755 | fi | ||
29756 | |||
29757 | fi | ||
29758 | |||
29759 | |||
29760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL Xlib support is to be built" >&5 | ||
29761 | $as_echo_n "checking whether ecore_evas OpenGL Xlib support is to be built... " >&6; } | ||
29762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29763 | $as_echo "${want_module}" >&6; } | ||
29764 | |||
29765 | if test "x${have_ecore_x}" = "xyes" && \ | ||
29766 | test "x$have_ecore_evas" = "xyes" && \ | ||
29767 | test "x$want_module" = "xyes" ; then | ||
29768 | if test -n "$PKG_CONFIG" && \ | ||
29769 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-opengl-x11\""; } >&5 | ||
29770 | ($PKG_CONFIG --exists --print-errors "evas-opengl-x11") 2>&5 | ||
29771 | ac_status=$? | ||
29772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29773 | test $ac_status = 0; }; then | ||
29774 | |||
29775 | |||
29776 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_X11 1" >>confdefs.h | ||
29777 | |||
29778 | have_ecore_evas_opengl_x11="yes" | ||
29779 | |||
29780 | fi | ||
29781 | fi | ||
29782 | |||
29783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL Xlib support is built" >&5 | ||
29784 | $as_echo_n "checking whether ecore_evas OpenGL Xlib support is built... " >&6; } | ||
29785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_opengl_x11" >&5 | ||
29786 | $as_echo "$have_ecore_evas_opengl_x11" >&6; } | ||
29787 | |||
29788 | if test "x$have_ecore_evas_opengl_x11" = "xyes"; then : | ||
29789 | |||
29790 | fi | ||
29791 | |||
29792 | |||
29793 | |||
29794 | |||
29795 | |||
29796 | have_ecore_evas_opengl_xlib="no" | ||
29797 | have_ecore_evas_opengl_xcb="no" | ||
29798 | if test "x${have_ecore_evas_opengl_x11}" = "xyes" -o "x${have_ecore_evas_opengl_x11}" = "xstatic" ; then | ||
29799 | have_ecore_evas_opengl_xlib=`${PKG_CONFIG} --variable=Xlib evas-opengl-x11` | ||
29800 | if test "x${have_ecore_evas_opengl_xlib}" = "xyes" ; then | ||
29801 | |||
29802 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_XLIB 1" >>confdefs.h | ||
29803 | |||
29804 | fi | ||
29805 | |||
29806 | # opengl does not work with xcb (yet) | ||
29807 | have_ecore_evas_opengl_xcb=`${PKG_CONFIG} --variable=XCB evas-opengl-x11` | ||
29808 | if test "x${have_ecore_evas_opengl_xcb}" = "xstatic"; then | ||
29809 | have_ecore_evas_opengl_xcb="yes" | ||
29810 | fi | ||
29811 | if test "x${have_ecore_evas_opengl_xcb}" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then | ||
29812 | |||
29813 | pkg_failed=no | ||
29814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_X11" >&5 | ||
29815 | $as_echo_n "checking for XCB_X11... " >&6; } | ||
29816 | |||
29817 | if test -n "$XCB_X11_CFLAGS"; then | ||
29818 | pkg_cv_XCB_X11_CFLAGS="$XCB_X11_CFLAGS" | ||
29819 | elif test -n "$PKG_CONFIG"; then | ||
29820 | if test -n "$PKG_CONFIG" && \ | ||
29821 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb\""; } >&5 | ||
29822 | ($PKG_CONFIG --exists --print-errors "x11-xcb") 2>&5 | ||
29823 | ac_status=$? | ||
29824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29825 | test $ac_status = 0; }; then | ||
29826 | pkg_cv_XCB_X11_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb" 2>/dev/null` | ||
29827 | else | ||
29828 | pkg_failed=yes | ||
29829 | fi | ||
29830 | else | ||
29831 | pkg_failed=untried | ||
29832 | fi | ||
29833 | if test -n "$XCB_X11_LIBS"; then | ||
29834 | pkg_cv_XCB_X11_LIBS="$XCB_X11_LIBS" | ||
29835 | elif test -n "$PKG_CONFIG"; then | ||
29836 | if test -n "$PKG_CONFIG" && \ | ||
29837 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb\""; } >&5 | ||
29838 | ($PKG_CONFIG --exists --print-errors "x11-xcb") 2>&5 | ||
29839 | ac_status=$? | ||
29840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29841 | test $ac_status = 0; }; then | ||
29842 | pkg_cv_XCB_X11_LIBS=`$PKG_CONFIG --libs "x11-xcb" 2>/dev/null` | ||
29843 | else | ||
29844 | pkg_failed=yes | ||
29845 | fi | ||
29846 | else | ||
29847 | pkg_failed=untried | ||
29848 | fi | ||
29849 | |||
29850 | |||
29851 | |||
29852 | if test $pkg_failed = yes; then | ||
29853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29854 | $as_echo "no" >&6; } | ||
29855 | |||
29856 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
29857 | _pkg_short_errors_supported=yes | ||
29858 | else | ||
29859 | _pkg_short_errors_supported=no | ||
29860 | fi | ||
29861 | if test $_pkg_short_errors_supported = yes; then | ||
29862 | XCB_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11-xcb" 2>&1` | ||
29863 | else | ||
29864 | XCB_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb" 2>&1` | ||
29865 | fi | ||
29866 | # Put the nasty error message in config.log where it belongs | ||
29867 | echo "$XCB_X11_PKG_ERRORS" >&5 | ||
29868 | |||
29869 | have_ecore_x_opengl_xcb="no" | ||
29870 | elif test $pkg_failed = untried; then | ||
29871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29872 | $as_echo "no" >&6; } | ||
29873 | have_ecore_x_opengl_xcb="no" | ||
29874 | else | ||
29875 | XCB_X11_CFLAGS=$pkg_cv_XCB_X11_CFLAGS | ||
29876 | XCB_X11_LIBS=$pkg_cv_XCB_X11_LIBS | ||
29877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29878 | $as_echo "yes" >&6; } | ||
29879 | have_ecore_x_opengl_xcb="yes" | ||
29880 | requirements_ecore_x="x11-xcb ${requirements_ecore_x}" | ||
29881 | |||
29882 | $as_echo "#define BUILD_ECORE_X_OPENGL_XCB 1" >>confdefs.h | ||
29883 | |||
29884 | |||
29885 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_XCB 1" >>confdefs.h | ||
29886 | |||
29887 | |||
29888 | fi | ||
29889 | else | ||
29890 | have_ecore_x_opengl_xcb="no" | ||
29891 | { $as_echo "$as_me:${as_lineno-$LINENO}: \"XCB-based OpenGL explicitly disabled\"" >&5 | ||
29892 | $as_echo "$as_me: \"XCB-based OpenGL explicitly disabled\"" >&6;} | ||
29893 | fi | ||
29894 | fi | ||
29895 | |||
29896 | # ecore_evas_software_x11 16 bits | ||
29897 | |||
29898 | |||
29899 | |||
29900 | have_ecore_evas_software_16_x11="no" | ||
29901 | want_module="${want_ecore_evas_software_16_x11}" | ||
29902 | |||
29903 | # Check whether --enable-ecore-evas-software-16-x11 was given. | ||
29904 | if test "${enable_ecore_evas_software_16_x11+set}" = set; then : | ||
29905 | enableval=$enable_ecore_evas_software_16_x11; | ||
29906 | if test "x${enableval}" = "xyes" ; then | ||
29907 | want_module="yes" | ||
29908 | else | ||
29909 | want_module="no" | ||
29910 | fi | ||
29911 | |||
29912 | fi | ||
29913 | |||
29914 | |||
29915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software Xlib 16 bits support is to be built" >&5 | ||
29916 | $as_echo_n "checking whether ecore_evas Software Xlib 16 bits support is to be built... " >&6; } | ||
29917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29918 | $as_echo "${want_module}" >&6; } | ||
29919 | |||
29920 | if test "x${have_ecore_x_xlib}" = "xyes" && \ | ||
29921 | test "x$have_ecore_evas" = "xyes" && \ | ||
29922 | test "x$want_module" = "xyes" ; then | ||
29923 | if test -n "$PKG_CONFIG" && \ | ||
29924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-16-x11\""; } >&5 | ||
29925 | ($PKG_CONFIG --exists --print-errors "evas-software-16-x11") 2>&5 | ||
29926 | ac_status=$? | ||
29927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29928 | test $ac_status = 0; }; then | ||
29929 | |||
29930 | |||
29931 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_16_X11 1" >>confdefs.h | ||
29932 | |||
29933 | have_ecore_evas_software_16_x11="yes" | ||
29934 | |||
29935 | fi | ||
29936 | fi | ||
29937 | |||
29938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software Xlib 16 bits support is built" >&5 | ||
29939 | $as_echo_n "checking whether ecore_evas Software Xlib 16 bits support is built... " >&6; } | ||
29940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_16_x11" >&5 | ||
29941 | $as_echo "$have_ecore_evas_software_16_x11" >&6; } | ||
29942 | |||
29943 | if test "x$have_ecore_evas_software_16_x11" = "xyes"; then : | ||
29944 | |||
29945 | fi | ||
29946 | |||
29947 | |||
29948 | |||
29949 | |||
29950 | |||
29951 | |||
29952 | |||
29953 | have_ecore_evas_software_8_x11="no" | ||
29954 | want_module="$want_ecore_evas_software_8_x11" | ||
29955 | |||
29956 | # Check whether --enable-ecore-evas-software-8-x11 was given. | ||
29957 | if test "${enable_ecore_evas_software_8_x11+set}" = set; then : | ||
29958 | enableval=$enable_ecore_evas_software_8_x11; | ||
29959 | if test "x${enableval}" = "xyes" ; then | ||
29960 | want_module="yes" | ||
29961 | else | ||
29962 | want_module="no" | ||
29963 | fi | ||
29964 | |||
29965 | fi | ||
29966 | |||
29967 | |||
29968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software 8bit X11 support is to be built" >&5 | ||
29969 | $as_echo_n "checking whether ecore_evas Software 8bit X11 support is to be built... " >&6; } | ||
29970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
29971 | $as_echo "${want_module}" >&6; } | ||
29972 | |||
29973 | if test "x$have_ecore_x_xcb" = "xyes" && \ | ||
29974 | test "x$have_ecore_evas" = "xyes" && \ | ||
29975 | test "x$want_module" = "xyes" ; then | ||
29976 | if test -n "$PKG_CONFIG" && \ | ||
29977 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-8-x11\""; } >&5 | ||
29978 | ($PKG_CONFIG --exists --print-errors "evas-software-8-x11") 2>&5 | ||
29979 | ac_status=$? | ||
29980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29981 | test $ac_status = 0; }; then | ||
29982 | |||
29983 | |||
29984 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_8_X11 1" >>confdefs.h | ||
29985 | |||
29986 | have_ecore_evas_software_8_x11="yes" | ||
29987 | |||
29988 | fi | ||
29989 | fi | ||
29990 | |||
29991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software 8bit X11 support is built" >&5 | ||
29992 | $as_echo_n "checking whether ecore_evas Software 8bit X11 support is built... " >&6; } | ||
29993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_8_x11" >&5 | ||
29994 | $as_echo "$have_ecore_evas_software_8_x11" >&6; } | ||
29995 | |||
29996 | if test "x$have_ecore_evas_software_8_x11" = "xyes"; then : | ||
29997 | |||
29998 | fi | ||
29999 | |||
30000 | |||
30001 | |||
30002 | |||
30003 | |||
30004 | |||
30005 | if test "x$have_ecore_evas_software_x11" = "xyes" -o \ | ||
30006 | "x$have_ecore_evas_opengl_x11" = "xyes" -o \ | ||
30007 | "x$have_ecore_evas_software_8_x11" = "xyes" -o \ | ||
30008 | "x$have_ecore_evas_software_16_x11" = "xyes" -o \ | ||
30009 | "x$have_ecore_evas_software_xcb" = "xyes"; then | ||
30010 | |||
30011 | $as_echo "#define BUILD_ECORE_EVAS_X11 1" >>confdefs.h | ||
30012 | |||
30013 | requirements_ecore_evas="ecore-x >= 1.2.0 ${requirements_ecore_evas}" | ||
30014 | fi | ||
30015 | |||
30016 | # ecore_evas_win32 | ||
30017 | |||
30018 | |||
30019 | |||
30020 | have_ecore_evas_software_gdi="no" | ||
30021 | want_module="${want_ecore_evas_software_gdi}" | ||
30022 | |||
30023 | # Check whether --enable-ecore-evas-software-gdi was given. | ||
30024 | if test "${enable_ecore_evas_software_gdi+set}" = set; then : | ||
30025 | enableval=$enable_ecore_evas_software_gdi; | ||
30026 | if test "x${enableval}" = "xyes" ; then | ||
30027 | want_module="yes" | ||
30028 | else | ||
30029 | want_module="no" | ||
30030 | fi | ||
30031 | |||
30032 | fi | ||
30033 | |||
30034 | |||
30035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software GDI support is to be built" >&5 | ||
30036 | $as_echo_n "checking whether ecore_evas Software GDI support is to be built... " >&6; } | ||
30037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30038 | $as_echo "${want_module}" >&6; } | ||
30039 | |||
30040 | if test "x${have_ecore_win32}" = "xyes" && \ | ||
30041 | test "x$have_ecore_evas" = "xyes" && \ | ||
30042 | test "x$want_module" = "xyes" ; then | ||
30043 | if test -n "$PKG_CONFIG" && \ | ||
30044 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-gdi\""; } >&5 | ||
30045 | ($PKG_CONFIG --exists --print-errors "evas-software-gdi") 2>&5 | ||
30046 | ac_status=$? | ||
30047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30048 | test $ac_status = 0; }; then | ||
30049 | |||
30050 | |||
30051 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_GDI 1" >>confdefs.h | ||
30052 | |||
30053 | have_ecore_evas_software_gdi="yes" | ||
30054 | |||
30055 | fi | ||
30056 | fi | ||
30057 | |||
30058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software GDI support is built" >&5 | ||
30059 | $as_echo_n "checking whether ecore_evas Software GDI support is built... " >&6; } | ||
30060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_gdi" >&5 | ||
30061 | $as_echo "$have_ecore_evas_software_gdi" >&6; } | ||
30062 | |||
30063 | if test "x$have_ecore_evas_software_gdi" = "xyes"; then : | ||
30064 | |||
30065 | fi | ||
30066 | |||
30067 | |||
30068 | |||
30069 | |||
30070 | |||
30071 | |||
30072 | |||
30073 | have_ecore_evas_software_ddraw="no" | ||
30074 | want_module="${want_ecore_evas_software_ddraw}" | ||
30075 | |||
30076 | # Check whether --enable-ecore-evas-software-ddraw was given. | ||
30077 | if test "${enable_ecore_evas_software_ddraw+set}" = set; then : | ||
30078 | enableval=$enable_ecore_evas_software_ddraw; | ||
30079 | if test "x${enableval}" = "xyes" ; then | ||
30080 | want_module="yes" | ||
30081 | else | ||
30082 | want_module="no" | ||
30083 | fi | ||
30084 | |||
30085 | fi | ||
30086 | |||
30087 | |||
30088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software DirectDraw support is to be built" >&5 | ||
30089 | $as_echo_n "checking whether ecore_evas Software DirectDraw support is to be built... " >&6; } | ||
30090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30091 | $as_echo "${want_module}" >&6; } | ||
30092 | |||
30093 | if test "x${have_ecore_win32}" = "xyes" && \ | ||
30094 | test "x$have_ecore_evas" = "xyes" && \ | ||
30095 | test "x$want_module" = "xyes" ; then | ||
30096 | if test -n "$PKG_CONFIG" && \ | ||
30097 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-ddraw\""; } >&5 | ||
30098 | ($PKG_CONFIG --exists --print-errors "evas-software-ddraw") 2>&5 | ||
30099 | ac_status=$? | ||
30100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30101 | test $ac_status = 0; }; then | ||
30102 | |||
30103 | |||
30104 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_DDRAW 1" >>confdefs.h | ||
30105 | |||
30106 | have_ecore_evas_software_ddraw="yes" | ||
30107 | |||
30108 | fi | ||
30109 | fi | ||
30110 | |||
30111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Software DirectDraw support is built" >&5 | ||
30112 | $as_echo_n "checking whether ecore_evas Software DirectDraw support is built... " >&6; } | ||
30113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_ddraw" >&5 | ||
30114 | $as_echo "$have_ecore_evas_software_ddraw" >&6; } | ||
30115 | |||
30116 | if test "x$have_ecore_evas_software_ddraw" = "xyes"; then : | ||
30117 | |||
30118 | fi | ||
30119 | |||
30120 | |||
30121 | |||
30122 | |||
30123 | |||
30124 | |||
30125 | |||
30126 | have_ecore_evas_direct3d="no" | ||
30127 | want_module="${want_ecore_evas_direct3d}" | ||
30128 | |||
30129 | # Check whether --enable-ecore-evas-direct3d was given. | ||
30130 | if test "${enable_ecore_evas_direct3d+set}" = set; then : | ||
30131 | enableval=$enable_ecore_evas_direct3d; | ||
30132 | if test "x${enableval}" = "xyes" ; then | ||
30133 | want_module="yes" | ||
30134 | else | ||
30135 | want_module="no" | ||
30136 | fi | ||
30137 | |||
30138 | fi | ||
30139 | |||
30140 | |||
30141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Direct3d support is to be built" >&5 | ||
30142 | $as_echo_n "checking whether ecore_evas Direct3d support is to be built... " >&6; } | ||
30143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30144 | $as_echo "${want_module}" >&6; } | ||
30145 | |||
30146 | if test "x${have_ecore_win32}" = "xyes" && \ | ||
30147 | test "x$have_ecore_evas" = "xyes" && \ | ||
30148 | test "x$want_module" = "xyes" ; then | ||
30149 | if test -n "$PKG_CONFIG" && \ | ||
30150 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-direct3d\""; } >&5 | ||
30151 | ($PKG_CONFIG --exists --print-errors "evas-direct3d") 2>&5 | ||
30152 | ac_status=$? | ||
30153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30154 | test $ac_status = 0; }; then | ||
30155 | |||
30156 | |||
30157 | $as_echo "#define BUILD_ECORE_EVAS_DIRECT3D 1" >>confdefs.h | ||
30158 | |||
30159 | have_ecore_evas_direct3d="yes" | ||
30160 | |||
30161 | fi | ||
30162 | fi | ||
30163 | |||
30164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Direct3d support is built" >&5 | ||
30165 | $as_echo_n "checking whether ecore_evas Direct3d support is built... " >&6; } | ||
30166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_direct3d" >&5 | ||
30167 | $as_echo "$have_ecore_evas_direct3d" >&6; } | ||
30168 | |||
30169 | if test "x$have_ecore_evas_direct3d" = "xyes"; then : | ||
30170 | |||
30171 | fi | ||
30172 | |||
30173 | |||
30174 | |||
30175 | |||
30176 | |||
30177 | |||
30178 | |||
30179 | have_ecore_evas_opengl_glew="no" | ||
30180 | want_module="${want_ecore_evas_opengl_glew}" | ||
30181 | |||
30182 | # Check whether --enable-ecore-evas-opengl-glew was given. | ||
30183 | if test "${enable_ecore_evas_opengl_glew+set}" = set; then : | ||
30184 | enableval=$enable_ecore_evas_opengl_glew; | ||
30185 | if test "x${enableval}" = "xyes" ; then | ||
30186 | want_module="yes" | ||
30187 | else | ||
30188 | want_module="no" | ||
30189 | fi | ||
30190 | |||
30191 | fi | ||
30192 | |||
30193 | |||
30194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Glew OpenGL support is to be built" >&5 | ||
30195 | $as_echo_n "checking whether ecore_evas Glew OpenGL support is to be built... " >&6; } | ||
30196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30197 | $as_echo "${want_module}" >&6; } | ||
30198 | |||
30199 | if test "x${have_ecore_win32}" = "xyes" && \ | ||
30200 | test "x$have_ecore_evas" = "xyes" && \ | ||
30201 | test "x$want_module" = "xyes" ; then | ||
30202 | if test -n "$PKG_CONFIG" && \ | ||
30203 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-opengl-glew\""; } >&5 | ||
30204 | ($PKG_CONFIG --exists --print-errors "evas-opengl-glew") 2>&5 | ||
30205 | ac_status=$? | ||
30206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30207 | test $ac_status = 0; }; then | ||
30208 | |||
30209 | |||
30210 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_GLEW 1" >>confdefs.h | ||
30211 | |||
30212 | have_ecore_evas_opengl_glew="yes" | ||
30213 | |||
30214 | fi | ||
30215 | fi | ||
30216 | |||
30217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Glew OpenGL support is built" >&5 | ||
30218 | $as_echo_n "checking whether ecore_evas Glew OpenGL support is built... " >&6; } | ||
30219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_opengl_glew" >&5 | ||
30220 | $as_echo "$have_ecore_evas_opengl_glew" >&6; } | ||
30221 | |||
30222 | if test "x$have_ecore_evas_opengl_glew" = "xyes"; then : | ||
30223 | |||
30224 | fi | ||
30225 | |||
30226 | |||
30227 | |||
30228 | |||
30229 | |||
30230 | |||
30231 | |||
30232 | have_ecore_evas_software_16_ddraw="no" | ||
30233 | want_module="${want_ecore_evas_software_16_ddraw}" | ||
30234 | |||
30235 | # Check whether --enable-ecore-evas-software-16-ddraw was given. | ||
30236 | if test "${enable_ecore_evas_software_16_ddraw+set}" = set; then : | ||
30237 | enableval=$enable_ecore_evas_software_16_ddraw; | ||
30238 | if test "x${enableval}" = "xyes" ; then | ||
30239 | want_module="yes" | ||
30240 | else | ||
30241 | want_module="no" | ||
30242 | fi | ||
30243 | |||
30244 | fi | ||
30245 | |||
30246 | |||
30247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas 16 bpp Software DirectDraw support is to be built" >&5 | ||
30248 | $as_echo_n "checking whether ecore_evas 16 bpp Software DirectDraw support is to be built... " >&6; } | ||
30249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30250 | $as_echo "${want_module}" >&6; } | ||
30251 | |||
30252 | if test "x${have_ecore_win32}" = "xyes" && \ | ||
30253 | test "x$have_ecore_evas" = "xyes" && \ | ||
30254 | test "x$want_module" = "xyes" ; then | ||
30255 | if test -n "$PKG_CONFIG" && \ | ||
30256 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-16-ddraw\""; } >&5 | ||
30257 | ($PKG_CONFIG --exists --print-errors "evas-software-16-ddraw") 2>&5 | ||
30258 | ac_status=$? | ||
30259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30260 | test $ac_status = 0; }; then | ||
30261 | |||
30262 | |||
30263 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_16_DDRAW 1" >>confdefs.h | ||
30264 | |||
30265 | have_ecore_evas_software_16_ddraw="yes" | ||
30266 | |||
30267 | fi | ||
30268 | fi | ||
30269 | |||
30270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas 16 bpp Software DirectDraw support is built" >&5 | ||
30271 | $as_echo_n "checking whether ecore_evas 16 bpp Software DirectDraw support is built... " >&6; } | ||
30272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_16_ddraw" >&5 | ||
30273 | $as_echo "$have_ecore_evas_software_16_ddraw" >&6; } | ||
30274 | |||
30275 | if test "x$have_ecore_evas_software_16_ddraw" = "xyes"; then : | ||
30276 | |||
30277 | fi | ||
30278 | |||
30279 | |||
30280 | |||
30281 | |||
30282 | |||
30283 | if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \ | ||
30284 | "x${have_ecore_evas_software_ddraw}" = "xyes" -o \ | ||
30285 | "x${have_ecore_evas_direct3d}" = "xyes" -o \ | ||
30286 | "x${have_ecore_evas_opengl_glew}" = "xyes" -o \ | ||
30287 | "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then | ||
30288 | |||
30289 | $as_echo "#define BUILD_ECORE_EVAS_WIN32 1" >>confdefs.h | ||
30290 | |||
30291 | requirements_ecore_evas="ecore-win32 >= 1.2.0 ${requirements_ecore_evas}" | ||
30292 | fi | ||
30293 | |||
30294 | # ecore_evas_software_sdl | ||
30295 | |||
30296 | have_ecore_evas_software_sdl="no" | ||
30297 | if test "x${have_ecore_sdl}" = "xyes"; then | ||
30298 | requirements_ecore_evas="ecore-sdl >= 1.2.0 ${requirements_ecore_evas}" | ||
30299 | have_ecore_evas_software_sdl="yes" | ||
30300 | |||
30301 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_SDL 1" >>confdefs.h | ||
30302 | |||
30303 | requirements_ecore_evas="ecore-sdl >= 1.2.0 ${requirements_ecore_evas}" | ||
30304 | fi | ||
30305 | |||
30306 | # ecore_evas_gl_sdl | ||
30307 | |||
30308 | |||
30309 | |||
30310 | have_ecore_evas_opengl_sdl="no" | ||
30311 | want_module="${want_ecore_evas_gl_sdl}" | ||
30312 | |||
30313 | # Check whether --enable-ecore-evas-opengl-sdl was given. | ||
30314 | if test "${enable_ecore_evas_opengl_sdl+set}" = set; then : | ||
30315 | enableval=$enable_ecore_evas_opengl_sdl; | ||
30316 | if test "x${enableval}" = "xyes" ; then | ||
30317 | want_module="yes" | ||
30318 | else | ||
30319 | want_module="no" | ||
30320 | fi | ||
30321 | |||
30322 | fi | ||
30323 | |||
30324 | |||
30325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL SDL support is to be built" >&5 | ||
30326 | $as_echo_n "checking whether ecore_evas OpenGL SDL support is to be built... " >&6; } | ||
30327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30328 | $as_echo "${want_module}" >&6; } | ||
30329 | |||
30330 | if test "x${have_ecore_sdl}" = "xyes" && \ | ||
30331 | test "x$have_ecore_evas" = "xyes" && \ | ||
30332 | test "x$want_module" = "xyes" ; then | ||
30333 | if test -n "$PKG_CONFIG" && \ | ||
30334 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-opengl-sdl\""; } >&5 | ||
30335 | ($PKG_CONFIG --exists --print-errors "evas-opengl-sdl") 2>&5 | ||
30336 | ac_status=$? | ||
30337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30338 | test $ac_status = 0; }; then | ||
30339 | |||
30340 | |||
30341 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_SDL 1" >>confdefs.h | ||
30342 | |||
30343 | have_ecore_evas_opengl_sdl="yes" | ||
30344 | |||
30345 | fi | ||
30346 | fi | ||
30347 | |||
30348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL SDL support is built" >&5 | ||
30349 | $as_echo_n "checking whether ecore_evas OpenGL SDL support is built... " >&6; } | ||
30350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_opengl_sdl" >&5 | ||
30351 | $as_echo "$have_ecore_evas_opengl_sdl" >&6; } | ||
30352 | |||
30353 | if test "x$have_ecore_evas_opengl_sdl" = "xyes"; then : | ||
30354 | requirements_ecore_evas="ecore-sdl >= 1.2.0 ${requirements_ecore_evas}" | ||
30355 | fi | ||
30356 | |||
30357 | |||
30358 | |||
30359 | |||
30360 | |||
30361 | # ecore_evas_cocoa | ||
30362 | |||
30363 | |||
30364 | |||
30365 | have_ecore_evas_opengl_cocoa="no" | ||
30366 | want_module="${want_ecore_evas_gl_cocoa}" | ||
30367 | |||
30368 | # Check whether --enable-ecore-evas-opengl-cocoa was given. | ||
30369 | if test "${enable_ecore_evas_opengl_cocoa+set}" = set; then : | ||
30370 | enableval=$enable_ecore_evas_opengl_cocoa; | ||
30371 | if test "x${enableval}" = "xyes" ; then | ||
30372 | want_module="yes" | ||
30373 | else | ||
30374 | want_module="no" | ||
30375 | fi | ||
30376 | |||
30377 | fi | ||
30378 | |||
30379 | |||
30380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL Cocoa support is to be built" >&5 | ||
30381 | $as_echo_n "checking whether ecore_evas OpenGL Cocoa support is to be built... " >&6; } | ||
30382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30383 | $as_echo "${want_module}" >&6; } | ||
30384 | |||
30385 | if test "x${have_ecore_cocoa}" = "xyes" && \ | ||
30386 | test "x$have_ecore_evas" = "xyes" && \ | ||
30387 | test "x$want_module" = "xyes" ; then | ||
30388 | if test -n "$PKG_CONFIG" && \ | ||
30389 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-opengl-cocoa\""; } >&5 | ||
30390 | ($PKG_CONFIG --exists --print-errors "evas-opengl-cocoa") 2>&5 | ||
30391 | ac_status=$? | ||
30392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30393 | test $ac_status = 0; }; then | ||
30394 | |||
30395 | |||
30396 | $as_echo "#define BUILD_ECORE_EVAS_OPENGL_COCOA 1" >>confdefs.h | ||
30397 | |||
30398 | have_ecore_evas_opengl_cocoa="yes" | ||
30399 | |||
30400 | fi | ||
30401 | fi | ||
30402 | |||
30403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas OpenGL Cocoa support is built" >&5 | ||
30404 | $as_echo_n "checking whether ecore_evas OpenGL Cocoa support is built... " >&6; } | ||
30405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_opengl_cocoa" >&5 | ||
30406 | $as_echo "$have_ecore_evas_opengl_cocoa" >&6; } | ||
30407 | |||
30408 | if test "x$have_ecore_evas_opengl_cocoa" = "xyes"; then : | ||
30409 | requirements_ecore_evas="ecore-cocoa >= 1.2.0 ${requirements_ecore_evas}" | ||
30410 | fi | ||
30411 | |||
30412 | |||
30413 | |||
30414 | |||
30415 | |||
30416 | # ecore_evas_directfb | ||
30417 | |||
30418 | |||
30419 | |||
30420 | have_ecore_evas_directfb="no" | ||
30421 | want_module="${want_ecore_evas_directfb}" | ||
30422 | |||
30423 | # Check whether --enable-ecore-evas-directfb was given. | ||
30424 | if test "${enable_ecore_evas_directfb+set}" = set; then : | ||
30425 | enableval=$enable_ecore_evas_directfb; | ||
30426 | if test "x${enableval}" = "xyes" ; then | ||
30427 | want_module="yes" | ||
30428 | else | ||
30429 | want_module="no" | ||
30430 | fi | ||
30431 | |||
30432 | fi | ||
30433 | |||
30434 | |||
30435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas DirectFB support is to be built" >&5 | ||
30436 | $as_echo_n "checking whether ecore_evas DirectFB support is to be built... " >&6; } | ||
30437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30438 | $as_echo "${want_module}" >&6; } | ||
30439 | |||
30440 | if test "x${have_ecore_directfb}" = "xyes" && \ | ||
30441 | test "x$have_ecore_evas" = "xyes" && \ | ||
30442 | test "x$want_module" = "xyes" ; then | ||
30443 | if test -n "$PKG_CONFIG" && \ | ||
30444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-directfb\""; } >&5 | ||
30445 | ($PKG_CONFIG --exists --print-errors "evas-directfb") 2>&5 | ||
30446 | ac_status=$? | ||
30447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30448 | test $ac_status = 0; }; then | ||
30449 | |||
30450 | |||
30451 | $as_echo "#define BUILD_ECORE_EVAS_DIRECTFB 1" >>confdefs.h | ||
30452 | |||
30453 | have_ecore_evas_directfb="yes" | ||
30454 | |||
30455 | fi | ||
30456 | fi | ||
30457 | |||
30458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas DirectFB support is built" >&5 | ||
30459 | $as_echo_n "checking whether ecore_evas DirectFB support is built... " >&6; } | ||
30460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_directfb" >&5 | ||
30461 | $as_echo "$have_ecore_evas_directfb" >&6; } | ||
30462 | |||
30463 | if test "x$have_ecore_evas_directfb" = "xyes"; then : | ||
30464 | requirements_ecore_evas="ecore-directfb >= 1.2.0 ${requirements_ecore_evas}" | ||
30465 | fi | ||
30466 | |||
30467 | |||
30468 | |||
30469 | |||
30470 | |||
30471 | # ecore_evas_fb | ||
30472 | |||
30473 | |||
30474 | |||
30475 | have_ecore_evas_fb="no" | ||
30476 | want_module="${want_ecore_evas_fb}" | ||
30477 | |||
30478 | # Check whether --enable-ecore-evas-fb was given. | ||
30479 | if test "${enable_ecore_evas_fb+set}" = set; then : | ||
30480 | enableval=$enable_ecore_evas_fb; | ||
30481 | if test "x${enableval}" = "xyes" ; then | ||
30482 | want_module="yes" | ||
30483 | else | ||
30484 | want_module="no" | ||
30485 | fi | ||
30486 | |||
30487 | fi | ||
30488 | |||
30489 | |||
30490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Linux Framebuffer support is to be built" >&5 | ||
30491 | $as_echo_n "checking whether ecore_evas Linux Framebuffer support is to be built... " >&6; } | ||
30492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30493 | $as_echo "${want_module}" >&6; } | ||
30494 | |||
30495 | if test "x${have_ecore_fb}" = "xyes" && \ | ||
30496 | test "x$have_ecore_evas" = "xyes" && \ | ||
30497 | test "x$want_module" = "xyes" ; then | ||
30498 | if test -n "$PKG_CONFIG" && \ | ||
30499 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-fb\""; } >&5 | ||
30500 | ($PKG_CONFIG --exists --print-errors "evas-fb") 2>&5 | ||
30501 | ac_status=$? | ||
30502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30503 | test $ac_status = 0; }; then | ||
30504 | |||
30505 | |||
30506 | $as_echo "#define BUILD_ECORE_EVAS_FB 1" >>confdefs.h | ||
30507 | |||
30508 | have_ecore_evas_fb="yes" | ||
30509 | |||
30510 | fi | ||
30511 | fi | ||
30512 | |||
30513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Linux Framebuffer support is built" >&5 | ||
30514 | $as_echo_n "checking whether ecore_evas Linux Framebuffer support is built... " >&6; } | ||
30515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_fb" >&5 | ||
30516 | $as_echo "$have_ecore_evas_fb" >&6; } | ||
30517 | |||
30518 | if test "x$have_ecore_evas_fb" = "xyes"; then : | ||
30519 | requirements_ecore_evas="ecore-fb >= 1.2.0 ${requirements_ecore_evas}" | ||
30520 | fi | ||
30521 | |||
30522 | |||
30523 | |||
30524 | |||
30525 | |||
30526 | # ecore_evas_wince | ||
30527 | |||
30528 | |||
30529 | |||
30530 | have_ecore_evas_software_16_wince="no" | ||
30531 | want_module="${want_ecore_evas_software_16_wince}" | ||
30532 | |||
30533 | # Check whether --enable-ecore-evas-software-16-wince was given. | ||
30534 | if test "${enable_ecore_evas_software_16_wince+set}" = set; then : | ||
30535 | enableval=$enable_ecore_evas_software_16_wince; | ||
30536 | if test "x${enableval}" = "xyes" ; then | ||
30537 | want_module="yes" | ||
30538 | else | ||
30539 | want_module="no" | ||
30540 | fi | ||
30541 | |||
30542 | fi | ||
30543 | |||
30544 | |||
30545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas 16 bpp Software Windows CE support is to be built" >&5 | ||
30546 | $as_echo_n "checking whether ecore_evas 16 bpp Software Windows CE support is to be built... " >&6; } | ||
30547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30548 | $as_echo "${want_module}" >&6; } | ||
30549 | |||
30550 | if test "x${have_ecore_wince}" = "xyes" && \ | ||
30551 | test "x$have_ecore_evas" = "xyes" && \ | ||
30552 | test "x$want_module" = "xyes" ; then | ||
30553 | if test -n "$PKG_CONFIG" && \ | ||
30554 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-16-wince\""; } >&5 | ||
30555 | ($PKG_CONFIG --exists --print-errors "evas-software-16-wince") 2>&5 | ||
30556 | ac_status=$? | ||
30557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30558 | test $ac_status = 0; }; then | ||
30559 | |||
30560 | |||
30561 | $as_echo "#define BUILD_ECORE_EVAS_SOFTWARE_16_WINCE 1" >>confdefs.h | ||
30562 | |||
30563 | have_ecore_evas_software_16_wince="yes" | ||
30564 | |||
30565 | fi | ||
30566 | fi | ||
30567 | |||
30568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas 16 bpp Software Windows CE support is built" >&5 | ||
30569 | $as_echo_n "checking whether ecore_evas 16 bpp Software Windows CE support is built... " >&6; } | ||
30570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_software_16_wince" >&5 | ||
30571 | $as_echo "$have_ecore_evas_software_16_wince" >&6; } | ||
30572 | |||
30573 | if test "x$have_ecore_evas_software_16_wince" = "xyes"; then : | ||
30574 | requirements_ecore_evas="ecore-wince >= 1.2.0 ${requirements_ecore_evas}" | ||
30575 | fi | ||
30576 | |||
30577 | |||
30578 | |||
30579 | |||
30580 | |||
30581 | # ecore_evas_ews | ||
30582 | |||
30583 | |||
30584 | |||
30585 | have_ecore_evas_ews="no" | ||
30586 | want_module="${want_ecore_evas_ews}" | ||
30587 | |||
30588 | # Check whether --enable-ecore-evas-ews was given. | ||
30589 | if test "${enable_ecore_evas_ews+set}" = set; then : | ||
30590 | enableval=$enable_ecore_evas_ews; | ||
30591 | if test "x${enableval}" = "xyes" ; then | ||
30592 | want_module="yes" | ||
30593 | else | ||
30594 | want_module="no" | ||
30595 | fi | ||
30596 | |||
30597 | fi | ||
30598 | |||
30599 | |||
30600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Ecore Evas Single Process Windowing System support is to be built" >&5 | ||
30601 | $as_echo_n "checking whether ecore_evas Ecore Evas Single Process Windowing System support is to be built... " >&6; } | ||
30602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30603 | $as_echo "${want_module}" >&6; } | ||
30604 | |||
30605 | if test "xyes" = "xyes" && \ | ||
30606 | test "x$have_ecore_evas" = "xyes" && \ | ||
30607 | test "x$want_module" = "xyes" ; then | ||
30608 | if test -n "$PKG_CONFIG" && \ | ||
30609 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-software-buffer\""; } >&5 | ||
30610 | ($PKG_CONFIG --exists --print-errors "evas-software-buffer") 2>&5 | ||
30611 | ac_status=$? | ||
30612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30613 | test $ac_status = 0; }; then | ||
30614 | |||
30615 | |||
30616 | $as_echo "#define BUILD_ECORE_EVAS_EWS 1" >>confdefs.h | ||
30617 | |||
30618 | have_ecore_evas_ews="yes" | ||
30619 | |||
30620 | fi | ||
30621 | fi | ||
30622 | |||
30623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Ecore Evas Single Process Windowing System support is built" >&5 | ||
30624 | $as_echo_n "checking whether ecore_evas Ecore Evas Single Process Windowing System support is built... " >&6; } | ||
30625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_ews" >&5 | ||
30626 | $as_echo "$have_ecore_evas_ews" >&6; } | ||
30627 | |||
30628 | if test "x$have_ecore_evas_ews" = "xyes"; then : | ||
30629 | |||
30630 | fi | ||
30631 | |||
30632 | |||
30633 | |||
30634 | |||
30635 | |||
30636 | # ecore_evas_extn | ||
30637 | |||
30638 | have_extn="yes" | ||
30639 | if test "x${have_ecore_ipc}" = "xno" || \ | ||
30640 | test "x${have_ecore_evas_software_buffer}" = "xno" || \ | ||
30641 | test "x${have_shm_open}" = "xno" ; then | ||
30642 | have_extn="no" | ||
30643 | fi | ||
30644 | |||
30645 | have_ecore_evas_extn="no" | ||
30646 | if test "x${want_ecore_evas_extn}" = "xyes" && \ | ||
30647 | test "x${have_extn}" = "xyes" && \ | ||
30648 | test "x${have_ecore_evas}" = "xyes"; then | ||
30649 | |||
30650 | $as_echo "#define BUILD_ECORE_EVAS_EXTN 1" >>confdefs.h | ||
30651 | |||
30652 | have_ecore_evas_extn="yes" | ||
30653 | fi | ||
30654 | |||
30655 | # ecore_evas_psl1ght | ||
30656 | |||
30657 | |||
30658 | |||
30659 | have_ecore_evas_psl1ght="no" | ||
30660 | want_module="${want_ecore_evas_psl1ght}" | ||
30661 | |||
30662 | # Check whether --enable-ecore-evas-psl1ght was given. | ||
30663 | if test "${enable_ecore_evas_psl1ght+set}" = set; then : | ||
30664 | enableval=$enable_ecore_evas_psl1ght; | ||
30665 | if test "x${enableval}" = "xyes" ; then | ||
30666 | want_module="yes" | ||
30667 | else | ||
30668 | want_module="no" | ||
30669 | fi | ||
30670 | |||
30671 | fi | ||
30672 | |||
30673 | |||
30674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas PSL1GHT support is to be built" >&5 | ||
30675 | $as_echo_n "checking whether ecore_evas PSL1GHT support is to be built... " >&6; } | ||
30676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30677 | $as_echo "${want_module}" >&6; } | ||
30678 | |||
30679 | if test "x${have_ecore_psl1ght}" = "xyes" && \ | ||
30680 | test "x$have_ecore_evas" = "xyes" && \ | ||
30681 | test "x$want_module" = "xyes" ; then | ||
30682 | if test -n "$PKG_CONFIG" && \ | ||
30683 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-psl1ght\""; } >&5 | ||
30684 | ($PKG_CONFIG --exists --print-errors "evas-psl1ght") 2>&5 | ||
30685 | ac_status=$? | ||
30686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30687 | test $ac_status = 0; }; then | ||
30688 | |||
30689 | |||
30690 | $as_echo "#define BUILD_ECORE_EVAS_PSL1GHT 1" >>confdefs.h | ||
30691 | |||
30692 | have_ecore_evas_psl1ght="yes" | ||
30693 | |||
30694 | fi | ||
30695 | fi | ||
30696 | |||
30697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas PSL1GHT support is built" >&5 | ||
30698 | $as_echo_n "checking whether ecore_evas PSL1GHT support is built... " >&6; } | ||
30699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_psl1ght" >&5 | ||
30700 | $as_echo "$have_ecore_evas_psl1ght" >&6; } | ||
30701 | |||
30702 | if test "x$have_ecore_evas_psl1ght" = "xyes"; then : | ||
30703 | requirements_ecore_evas="ecore-psl1ght >= 1.2.0 ${requirements_ecore_evas}" | ||
30704 | fi | ||
30705 | |||
30706 | |||
30707 | |||
30708 | |||
30709 | |||
30710 | ### WAYLAND | ||
30711 | |||
30712 | ecore_wayland_deps="no" | ||
30713 | have_wayland="no" | ||
30714 | if test "x${want_ecore_wayland}" = "xyes" ; then | ||
30715 | |||
30716 | pkg_failed=no | ||
30717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5 | ||
30718 | $as_echo_n "checking for WAYLAND... " >&6; } | ||
30719 | |||
30720 | if test -n "$WAYLAND_CFLAGS"; then | ||
30721 | pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS" | ||
30722 | elif test -n "$PKG_CONFIG"; then | ||
30723 | if test -n "$PKG_CONFIG" && \ | ||
30724 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl wayland-egl wayland-client xkbcommon\""; } >&5 | ||
30725 | ($PKG_CONFIG --exists --print-errors "egl wayland-egl wayland-client xkbcommon") 2>&5 | ||
30726 | ac_status=$? | ||
30727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30728 | test $ac_status = 0; }; then | ||
30729 | pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "egl wayland-egl wayland-client xkbcommon" 2>/dev/null` | ||
30730 | else | ||
30731 | pkg_failed=yes | ||
30732 | fi | ||
30733 | else | ||
30734 | pkg_failed=untried | ||
30735 | fi | ||
30736 | if test -n "$WAYLAND_LIBS"; then | ||
30737 | pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS" | ||
30738 | elif test -n "$PKG_CONFIG"; then | ||
30739 | if test -n "$PKG_CONFIG" && \ | ||
30740 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl wayland-egl wayland-client xkbcommon\""; } >&5 | ||
30741 | ($PKG_CONFIG --exists --print-errors "egl wayland-egl wayland-client xkbcommon") 2>&5 | ||
30742 | ac_status=$? | ||
30743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30744 | test $ac_status = 0; }; then | ||
30745 | pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "egl wayland-egl wayland-client xkbcommon" 2>/dev/null` | ||
30746 | else | ||
30747 | pkg_failed=yes | ||
30748 | fi | ||
30749 | else | ||
30750 | pkg_failed=untried | ||
30751 | fi | ||
30752 | |||
30753 | |||
30754 | |||
30755 | if test $pkg_failed = yes; then | ||
30756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30757 | $as_echo "no" >&6; } | ||
30758 | |||
30759 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
30760 | _pkg_short_errors_supported=yes | ||
30761 | else | ||
30762 | _pkg_short_errors_supported=no | ||
30763 | fi | ||
30764 | if test $_pkg_short_errors_supported = yes; then | ||
30765 | WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "egl wayland-egl wayland-client xkbcommon" 2>&1` | ||
30766 | else | ||
30767 | WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors "egl wayland-egl wayland-client xkbcommon" 2>&1` | ||
30768 | fi | ||
30769 | # Put the nasty error message in config.log where it belongs | ||
30770 | echo "$WAYLAND_PKG_ERRORS" >&5 | ||
30771 | |||
30772 | have_wayland="no" | ||
30773 | elif test $pkg_failed = untried; then | ||
30774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30775 | $as_echo "no" >&6; } | ||
30776 | have_wayland="no" | ||
30777 | else | ||
30778 | WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS | ||
30779 | WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS | ||
30780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30781 | $as_echo "yes" >&6; } | ||
30782 | have_wayland="yes" | ||
30783 | fi | ||
30784 | fi | ||
30785 | if test "x${have_ecore_input}" = "xyes" -a "x${have_wayland}" = "xyes" ; then | ||
30786 | ecore_wayland_deps="yes" | ||
30787 | fi | ||
30788 | |||
30789 | |||
30790 | |||
30791 | have_ecore_wayland=no | ||
30792 | ecore_wayland_cflags= | ||
30793 | ecore_wayland_libs= | ||
30794 | want_module=${want_ecore_wayland} | ||
30795 | |||
30796 | # Check whether --enable-ecore-wayland was given. | ||
30797 | if test "${enable_ecore_wayland+set}" = set; then : | ||
30798 | enableval=$enable_ecore_wayland; | ||
30799 | if test "x${enableval}" = "xyes" ; then | ||
30800 | want_module="yes" | ||
30801 | else | ||
30802 | want_module="no" | ||
30803 | fi | ||
30804 | |||
30805 | fi | ||
30806 | |||
30807 | |||
30808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ecore_Wayland module is to be built" >&5 | ||
30809 | $as_echo_n "checking whether Ecore_Wayland module is to be built... " >&6; } | ||
30810 | |||
30811 | if test "x${want_module}" = "xyes" ; then | ||
30812 | if test "x${ecore_wayland_deps}" = "x" || test "x${ecore_wayland_deps}" = "xyes" ; then | ||
30813 | |||
30814 | $as_echo "#define BUILD_ECORE_WAYLAND 1" >>confdefs.h | ||
30815 | |||
30816 | have_ecore_wayland="yes" | ||
30817 | ecore_wayland_libs="-lecore_wayland" | ||
30818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30819 | $as_echo "yes" >&6; } | ||
30820 | else | ||
30821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (dependency failed)" >&5 | ||
30822 | $as_echo "no (dependency failed)" >&6; } | ||
30823 | fi | ||
30824 | else | ||
30825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30826 | $as_echo "no" >&6; } | ||
30827 | fi | ||
30828 | |||
30829 | if test "x$have_ecore_wayland" = "xyes"; then | ||
30830 | BUILD_ECORE_WAYLAND_TRUE= | ||
30831 | BUILD_ECORE_WAYLAND_FALSE='#' | ||
30832 | else | ||
30833 | BUILD_ECORE_WAYLAND_TRUE='#' | ||
30834 | BUILD_ECORE_WAYLAND_FALSE= | ||
30835 | fi | ||
30836 | |||
30837 | |||
30838 | if test "x$have_ecore_wayland" = "xyes"; then : | ||
30839 | |||
30840 | fi | ||
30841 | |||
30842 | |||
30843 | |||
30844 | |||
30845 | |||
30846 | |||
30847 | |||
30848 | if test "x${have_ecore_wayland}" = "xyes" ; then | ||
30849 | requirements_ecore_wayland="ecore-input >= 1.2.0 egl wayland-egl wayland-client xkbcommon ${requirements_ecore_wayland}" | ||
30850 | fi | ||
30851 | |||
30852 | |||
30853 | |||
30854 | have_ecore_evas_wayland_shm="no" | ||
30855 | want_module="${want_ecore_evas_wayland_shm}" | ||
30856 | |||
30857 | # Check whether --enable-ecore-evas-wayland-shm was given. | ||
30858 | if test "${enable_ecore_evas_wayland_shm+set}" = set; then : | ||
30859 | enableval=$enable_ecore_evas_wayland_shm; | ||
30860 | if test "x${enableval}" = "xyes" ; then | ||
30861 | want_module="yes" | ||
30862 | else | ||
30863 | want_module="no" | ||
30864 | fi | ||
30865 | |||
30866 | fi | ||
30867 | |||
30868 | |||
30869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Wayland Shm support is to be built" >&5 | ||
30870 | $as_echo_n "checking whether ecore_evas Wayland Shm support is to be built... " >&6; } | ||
30871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30872 | $as_echo "${want_module}" >&6; } | ||
30873 | |||
30874 | if test "x${have_ecore_wayland}" = "xyes" && \ | ||
30875 | test "x$have_ecore_evas" = "xyes" && \ | ||
30876 | test "x$want_module" = "xyes" ; then | ||
30877 | if test -n "$PKG_CONFIG" && \ | ||
30878 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-wayland-shm\""; } >&5 | ||
30879 | ($PKG_CONFIG --exists --print-errors "evas-wayland-shm") 2>&5 | ||
30880 | ac_status=$? | ||
30881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30882 | test $ac_status = 0; }; then | ||
30883 | |||
30884 | |||
30885 | $as_echo "#define BUILD_ECORE_EVAS_WAYLAND_SHM 1" >>confdefs.h | ||
30886 | |||
30887 | have_ecore_evas_wayland_shm="yes" | ||
30888 | |||
30889 | fi | ||
30890 | fi | ||
30891 | |||
30892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Wayland Shm support is built" >&5 | ||
30893 | $as_echo_n "checking whether ecore_evas Wayland Shm support is built... " >&6; } | ||
30894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_wayland_shm" >&5 | ||
30895 | $as_echo "$have_ecore_evas_wayland_shm" >&6; } | ||
30896 | |||
30897 | if test "x$have_ecore_evas_wayland_shm" = "xyes"; then : | ||
30898 | requirements_ecore_evas="${requirements_ecore_wayland} ${requirements_ecore_evas}" | ||
30899 | fi | ||
30900 | |||
30901 | |||
30902 | |||
30903 | |||
30904 | |||
30905 | |||
30906 | |||
30907 | have_ecore_evas_wayland_egl="no" | ||
30908 | want_module="${want_ecore_evas_wayland_egl}" | ||
30909 | |||
30910 | # Check whether --enable-ecore-evas-wayland-egl was given. | ||
30911 | if test "${enable_ecore_evas_wayland_egl+set}" = set; then : | ||
30912 | enableval=$enable_ecore_evas_wayland_egl; | ||
30913 | if test "x${enableval}" = "xyes" ; then | ||
30914 | want_module="yes" | ||
30915 | else | ||
30916 | want_module="no" | ||
30917 | fi | ||
30918 | |||
30919 | fi | ||
30920 | |||
30921 | |||
30922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Wayland Egl support is to be built" >&5 | ||
30923 | $as_echo_n "checking whether ecore_evas Wayland Egl support is to be built... " >&6; } | ||
30924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_module}" >&5 | ||
30925 | $as_echo "${want_module}" >&6; } | ||
30926 | |||
30927 | if test "x${have_ecore_wayland}" = "xyes" && \ | ||
30928 | test "x$have_ecore_evas" = "xyes" && \ | ||
30929 | test "x$want_module" = "xyes" ; then | ||
30930 | if test -n "$PKG_CONFIG" && \ | ||
30931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evas-wayland-egl egl\""; } >&5 | ||
30932 | ($PKG_CONFIG --exists --print-errors "evas-wayland-egl egl") 2>&5 | ||
30933 | ac_status=$? | ||
30934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30935 | test $ac_status = 0; }; then | ||
30936 | |||
30937 | |||
30938 | $as_echo "#define BUILD_ECORE_EVAS_WAYLAND_EGL 1" >>confdefs.h | ||
30939 | |||
30940 | have_ecore_evas_wayland_egl="yes" | ||
30941 | |||
30942 | fi | ||
30943 | fi | ||
30944 | |||
30945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ecore_evas Wayland Egl support is built" >&5 | ||
30946 | $as_echo_n "checking whether ecore_evas Wayland Egl support is built... " >&6; } | ||
30947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ecore_evas_wayland_egl" >&5 | ||
30948 | $as_echo "$have_ecore_evas_wayland_egl" >&6; } | ||
30949 | |||
30950 | if test "x$have_ecore_evas_wayland_egl" = "xyes"; then : | ||
30951 | |||
30952 | |||
30953 | pkg_failed=no | ||
30954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGL" >&5 | ||
30955 | $as_echo_n "checking for WAYLAND_EGL... " >&6; } | ||
30956 | |||
30957 | if test -n "$WAYLAND_EGL_CFLAGS"; then | ||
30958 | pkg_cv_WAYLAND_EGL_CFLAGS="$WAYLAND_EGL_CFLAGS" | ||
30959 | elif test -n "$PKG_CONFIG"; then | ||
30960 | if test -n "$PKG_CONFIG" && \ | ||
30961 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-egl\""; } >&5 | ||
30962 | ($PKG_CONFIG --exists --print-errors "wayland-egl") 2>&5 | ||
30963 | ac_status=$? | ||
30964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30965 | test $ac_status = 0; }; then | ||
30966 | pkg_cv_WAYLAND_EGL_CFLAGS=`$PKG_CONFIG --cflags "wayland-egl" 2>/dev/null` | ||
30967 | else | ||
30968 | pkg_failed=yes | ||
30969 | fi | ||
30970 | else | ||
30971 | pkg_failed=untried | ||
30972 | fi | ||
30973 | if test -n "$WAYLAND_EGL_LIBS"; then | ||
30974 | pkg_cv_WAYLAND_EGL_LIBS="$WAYLAND_EGL_LIBS" | ||
30975 | elif test -n "$PKG_CONFIG"; then | ||
30976 | if test -n "$PKG_CONFIG" && \ | ||
30977 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-egl\""; } >&5 | ||
30978 | ($PKG_CONFIG --exists --print-errors "wayland-egl") 2>&5 | ||
30979 | ac_status=$? | ||
30980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30981 | test $ac_status = 0; }; then | ||
30982 | pkg_cv_WAYLAND_EGL_LIBS=`$PKG_CONFIG --libs "wayland-egl" 2>/dev/null` | ||
30983 | else | ||
30984 | pkg_failed=yes | ||
30985 | fi | ||
30986 | else | ||
30987 | pkg_failed=untried | ||
30988 | fi | ||
30989 | |||
30990 | |||
30991 | |||
30992 | if test $pkg_failed = yes; then | ||
30993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30994 | $as_echo "no" >&6; } | ||
30995 | |||
30996 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
30997 | _pkg_short_errors_supported=yes | ||
30998 | else | ||
30999 | _pkg_short_errors_supported=no | ||
31000 | fi | ||
31001 | if test $_pkg_short_errors_supported = yes; then | ||
31002 | WAYLAND_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "wayland-egl" 2>&1` | ||
31003 | else | ||
31004 | WAYLAND_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "wayland-egl" 2>&1` | ||
31005 | fi | ||
31006 | # Put the nasty error message in config.log where it belongs | ||
31007 | echo "$WAYLAND_EGL_PKG_ERRORS" >&5 | ||
31008 | |||
31009 | have_wayland_egl="no" | ||
31010 | elif test $pkg_failed = untried; then | ||
31011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
31012 | $as_echo "no" >&6; } | ||
31013 | have_wayland_egl="no" | ||
31014 | else | ||
31015 | WAYLAND_EGL_CFLAGS=$pkg_cv_WAYLAND_EGL_CFLAGS | ||
31016 | WAYLAND_EGL_LIBS=$pkg_cv_WAYLAND_EGL_LIBS | ||
31017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
31018 | $as_echo "yes" >&6; } | ||
31019 | have_wayland_egl="yes" | ||
31020 | fi | ||
31021 | if test "x${have_wayland_egl}" = "xyes" ; then | ||
31022 | requirements_ecore_evas="wayland-egl egl ${requirements_ecore_wayland} ${requirements_ecore_evas}" | ||
31023 | fi | ||
31024 | |||
31025 | fi | ||
31026 | |||
31027 | |||
31028 | |||
31029 | |||
31030 | |||
31031 | ### Unit tests | ||
31032 | |||
31033 | |||
31034 | |||
31035 | |||
31036 | # Check whether --enable-tests was given. | ||
31037 | if test "${enable_tests+set}" = set; then : | ||
31038 | enableval=$enable_tests; | ||
31039 | if test "x${enableval}" = "xyes" ; then | ||
31040 | _efl_enable_tests="yes" | ||
31041 | else | ||
31042 | _efl_enable_tests="no" | ||
31043 | fi | ||
31044 | |||
31045 | else | ||
31046 | _efl_enable_tests="no" | ||
31047 | fi | ||
31048 | |||
31049 | |||
31050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
31051 | $as_echo_n "checking whether tests are built... " >&6; } | ||
31052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
31053 | $as_echo "${_efl_enable_tests}" >&6; } | ||
31054 | |||
31055 | |||
31056 | |||
31057 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
31058 | |||
31059 | pkg_failed=no | ||
31060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
31061 | $as_echo_n "checking for CHECK... " >&6; } | ||
31062 | |||
31063 | if test -n "$CHECK_CFLAGS"; then | ||
31064 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
31065 | elif test -n "$PKG_CONFIG"; then | ||
31066 | if test -n "$PKG_CONFIG" && \ | ||
31067 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
31068 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
31069 | ac_status=$? | ||
31070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
31071 | test $ac_status = 0; }; then | ||
31072 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
31073 | else | ||
31074 | pkg_failed=yes | ||
31075 | fi | ||
31076 | else | ||
31077 | pkg_failed=untried | ||
31078 | fi | ||
31079 | if test -n "$CHECK_LIBS"; then | ||
31080 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
31081 | elif test -n "$PKG_CONFIG"; then | ||
31082 | if test -n "$PKG_CONFIG" && \ | ||
31083 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
31084 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
31085 | ac_status=$? | ||
31086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
31087 | test $ac_status = 0; }; then | ||
31088 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
31089 | else | ||
31090 | pkg_failed=yes | ||
31091 | fi | ||
31092 | else | ||
31093 | pkg_failed=untried | ||
31094 | fi | ||
31095 | |||
31096 | |||
31097 | |||
31098 | if test $pkg_failed = yes; then | ||
31099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
31100 | $as_echo "no" >&6; } | ||
31101 | |||
31102 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
31103 | _pkg_short_errors_supported=yes | ||
31104 | else | ||
31105 | _pkg_short_errors_supported=no | ||
31106 | fi | ||
31107 | if test $_pkg_short_errors_supported = yes; then | ||
31108 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
31109 | else | ||
31110 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
31111 | fi | ||
31112 | # Put the nasty error message in config.log where it belongs | ||
31113 | echo "$CHECK_PKG_ERRORS" >&5 | ||
31114 | |||
31115 | _efl_enable_tests="no" | ||
31116 | elif test $pkg_failed = untried; then | ||
31117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
31118 | $as_echo "no" >&6; } | ||
31119 | _efl_enable_tests="no" | ||
31120 | else | ||
31121 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
31122 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
31123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
31124 | $as_echo "yes" >&6; } | ||
31125 | dummy="yes" | ||
31126 | fi | ||
31127 | fi | ||
31128 | |||
31129 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
31130 | EFL_ENABLE_TESTS_TRUE= | ||
31131 | EFL_ENABLE_TESTS_FALSE='#' | ||
31132 | else | ||
31133 | EFL_ENABLE_TESTS_TRUE='#' | ||
31134 | EFL_ENABLE_TESTS_FALSE= | ||
31135 | fi | ||
31136 | |||
31137 | |||
31138 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
31139 | enable_tests="yes" | ||
31140 | else | ||
31141 | enable_tests="no" | ||
31142 | fi | ||
31143 | |||
31144 | |||
31145 | ### install and build examples | ||
31146 | |||
31147 | |||
31148 | |||
31149 | |||
31150 | # Check whether --enable-build-examples was given. | ||
31151 | if test "${enable_build_examples+set}" = set; then : | ||
31152 | enableval=$enable_build_examples; | ||
31153 | if test "x${enableval}" = "xyes" ; then | ||
31154 | _efl_enable_build_examples="yes" | ||
31155 | else | ||
31156 | _efl_enable_build_examples="no" | ||
31157 | fi | ||
31158 | |||
31159 | else | ||
31160 | _efl_enable_build_examples="no" | ||
31161 | fi | ||
31162 | |||
31163 | |||
31164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples are built" >&5 | ||
31165 | $as_echo_n "checking whether examples are built... " >&6; } | ||
31166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_build_examples}" >&5 | ||
31167 | $as_echo "${_efl_enable_build_examples}" >&6; } | ||
31168 | |||
31169 | if test "x${_efl_enable_build_examples}" = "xyes"; then | ||
31170 | EFL_BUILD_EXAMPLES_TRUE= | ||
31171 | EFL_BUILD_EXAMPLES_FALSE='#' | ||
31172 | else | ||
31173 | EFL_BUILD_EXAMPLES_TRUE='#' | ||
31174 | EFL_BUILD_EXAMPLES_FALSE= | ||
31175 | fi | ||
31176 | |||
31177 | |||
31178 | if test "x$_efl_enable_build_examples" = "xyes"; then : | ||
31179 | enable_build_examples="yes" | ||
31180 | else | ||
31181 | enable_build_examples="no" | ||
31182 | fi | ||
31183 | |||
31184 | |||
31185 | |||
31186 | |||
31187 | # Check whether --enable-install-examples was given. | ||
31188 | if test "${enable_install_examples+set}" = set; then : | ||
31189 | enableval=$enable_install_examples; | ||
31190 | if test "x${enableval}" = "xyes" ; then | ||
31191 | _efl_enable_install_examples="yes" | ||
31192 | else | ||
31193 | _efl_enable_install_examples="no" | ||
31194 | fi | ||
31195 | |||
31196 | else | ||
31197 | _efl_enable_install_examples="no" | ||
31198 | fi | ||
31199 | |||
31200 | |||
31201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples are installed" >&5 | ||
31202 | $as_echo_n "checking whether examples are installed... " >&6; } | ||
31203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_install_examples}" >&5 | ||
31204 | $as_echo "${_efl_enable_install_examples}" >&6; } | ||
31205 | |||
31206 | if test "x${_efl_enable_install_examples}" = "xyes"; then | ||
31207 | EFL_INSTALL_EXAMPLES_TRUE= | ||
31208 | EFL_INSTALL_EXAMPLES_FALSE='#' | ||
31209 | else | ||
31210 | EFL_INSTALL_EXAMPLES_TRUE='#' | ||
31211 | EFL_INSTALL_EXAMPLES_FALSE= | ||
31212 | fi | ||
31213 | |||
31214 | |||
31215 | if test "x$_efl_enable_install_examples" = "xyes"; then : | ||
31216 | enable_install_examples="yes" | ||
31217 | else | ||
31218 | enable_install_examples="no" | ||
31219 | fi | ||
31220 | |||
31221 | |||
31222 | ### requirements | ||
31223 | |||
31224 | |||
31225 | |||
31226 | #AC_SUBST(requirements_ecore_config) | ||
31227 | |||
31228 | |||
31229 | |||
31230 | |||
31231 | |||
31232 | |||
31233 | |||
31234 | |||
31235 | |||
31236 | |||
31237 | |||
31238 | |||
31239 | |||
31240 | |||
31241 | |||
31242 | |||
31243 | |||
31244 | |||
31245 | |||
31246 | 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-wayland.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/lib/ecore_wayland/Makefile src/examples/Makefile src/tests/Makefile src/modules/Makefile src/modules/immodules/Makefile src/modules/immodules/xim/Makefile src/modules/immodules/scim/Makefile ecore.spec $po_makefile_in" | ||
31247 | |||
31248 | |||
31249 | cat >confcache <<\_ACEOF | ||
31250 | # This file is a shell script that caches the results of configure | ||
31251 | # tests run on this system so they can be shared between configure | ||
31252 | # scripts and configure runs, see configure's option --config-cache. | ||
31253 | # It is not useful on other systems. If it contains results you don't | ||
31254 | # want to keep, you may remove or edit it. | ||
31255 | # | ||
31256 | # config.status only pays attention to the cache file if you give it | ||
31257 | # the --recheck option to rerun configure. | ||
31258 | # | ||
31259 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
31260 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
31261 | # following values. | ||
31262 | |||
31263 | _ACEOF | ||
31264 | |||
31265 | # The following way of writing the cache mishandles newlines in values, | ||
31266 | # but we know of no workaround that is simple, portable, and efficient. | ||
31267 | # So, we kill variables containing newlines. | ||
31268 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
31269 | # and sets the high bit in the cache file unless we assign to the vars. | ||
31270 | ( | ||
31271 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
31272 | eval ac_val=\$$ac_var | ||
31273 | case $ac_val in #( | ||
31274 | *${as_nl}*) | ||
31275 | case $ac_var in #( | ||
31276 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
31277 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
31278 | esac | ||
31279 | case $ac_var in #( | ||
31280 | _ | IFS | as_nl) ;; #( | ||
31281 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
31282 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
31283 | esac ;; | ||
31284 | esac | ||
31285 | done | ||
31286 | |||
31287 | (set) 2>&1 | | ||
31288 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
31289 | *${as_nl}ac_space=\ *) | ||
31290 | # `set' does not quote correctly, so add quotes: double-quote | ||
31291 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
31292 | sed -n \ | ||
31293 | "s/'/'\\\\''/g; | ||
31294 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
31295 | ;; #( | ||
31296 | *) | ||
31297 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
31298 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
31299 | ;; | ||
31300 | esac | | ||
31301 | sort | ||
31302 | ) | | ||
31303 | sed ' | ||
31304 | /^ac_cv_env_/b end | ||
31305 | t clear | ||
31306 | :clear | ||
31307 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
31308 | t end | ||
31309 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
31310 | :end' >>confcache | ||
31311 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
31312 | if test -w "$cache_file"; then | ||
31313 | test "x$cache_file" != "x/dev/null" && | ||
31314 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
31315 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
31316 | cat confcache >$cache_file | ||
31317 | else | ||
31318 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
31319 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
31320 | fi | ||
31321 | fi | ||
31322 | rm -f confcache | ||
31323 | |||
31324 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
31325 | # Let make expand exec_prefix. | ||
31326 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
31327 | |||
31328 | DEFS=-DHAVE_CONFIG_H | ||
31329 | |||
31330 | ac_libobjs= | ||
31331 | ac_ltlibobjs= | ||
31332 | U= | ||
31333 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
31334 | # 1. Remove the extension, and $U if already installed. | ||
31335 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
31336 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
31337 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
31338 | # will be set to the directory where LIBOBJS objects are built. | ||
31339 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
31340 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
31341 | done | ||
31342 | LIBOBJS=$ac_libobjs | ||
31343 | |||
31344 | LTLIBOBJS=$ac_ltlibobjs | ||
31345 | |||
31346 | |||
31347 | if test -n "$EXEEXT"; then | ||
31348 | am__EXEEXT_TRUE= | ||
31349 | am__EXEEXT_FALSE='#' | ||
31350 | else | ||
31351 | am__EXEEXT_TRUE='#' | ||
31352 | am__EXEEXT_FALSE= | ||
31353 | fi | ||
31354 | |||
31355 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
31356 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
31357 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31358 | fi | ||
31359 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
31360 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
31361 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31362 | fi | ||
31363 | if test -z "${HAVE_PO_TRUE}" && test -z "${HAVE_PO_FALSE}"; then | ||
31364 | as_fn_error $? "conditional \"HAVE_PO\" was never defined. | ||
31365 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31366 | fi | ||
31367 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
31368 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
31369 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31370 | fi | ||
31371 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
31372 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
31373 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31374 | fi | ||
31375 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
31376 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
31377 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31378 | fi | ||
31379 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
31380 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
31381 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31382 | fi | ||
31383 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
31384 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
31385 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31386 | fi | ||
31387 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
31388 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
31389 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31390 | fi | ||
31391 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
31392 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
31393 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31394 | fi | ||
31395 | if test -z "${ECORE_HAVE_EXOTIC_TRUE}" && test -z "${ECORE_HAVE_EXOTIC_FALSE}"; then | ||
31396 | as_fn_error $? "conditional \"ECORE_HAVE_EXOTIC\" was never defined. | ||
31397 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31398 | fi | ||
31399 | if test -z "${ECORE_HAVE_WINCE_TRUE}" && test -z "${ECORE_HAVE_WINCE_FALSE}"; then | ||
31400 | as_fn_error $? "conditional \"ECORE_HAVE_WINCE\" was never defined. | ||
31401 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31402 | fi | ||
31403 | if test -z "${ECORE_HAVE_WIN32_TRUE}" && test -z "${ECORE_HAVE_WIN32_FALSE}"; then | ||
31404 | as_fn_error $? "conditional \"ECORE_HAVE_WIN32\" was never defined. | ||
31405 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31406 | fi | ||
31407 | if test -z "${ECORE_HAVE_PS3_TRUE}" && test -z "${ECORE_HAVE_PS3_FALSE}"; then | ||
31408 | as_fn_error $? "conditional \"ECORE_HAVE_PS3\" was never defined. | ||
31409 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31410 | fi | ||
31411 | if test -z "${BUILD_ECORE_X_XLIB_TRUE}" && test -z "${BUILD_ECORE_X_XLIB_FALSE}"; then | ||
31412 | as_fn_error $? "conditional \"BUILD_ECORE_X_XLIB\" was never defined. | ||
31413 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31414 | fi | ||
31415 | if test -z "${BUILD_ECORE_X_XCB_TRUE}" && test -z "${BUILD_ECORE_X_XCB_FALSE}"; then | ||
31416 | as_fn_error $? "conditional \"BUILD_ECORE_X_XCB\" was never defined. | ||
31417 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31418 | fi | ||
31419 | |||
31420 | if test -z "${BUILD_ECORE_CON_TRUE}" && test -z "${BUILD_ECORE_CON_FALSE}"; then | ||
31421 | as_fn_error $? "conditional \"BUILD_ECORE_CON\" was never defined. | ||
31422 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31423 | fi | ||
31424 | if test -z "${HAVE_CARES_TRUE}" && test -z "${HAVE_CARES_FALSE}"; then | ||
31425 | as_fn_error $? "conditional \"HAVE_CARES\" was never defined. | ||
31426 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31427 | fi | ||
31428 | if test -z "${BUILD_ECORE_IPC_TRUE}" && test -z "${BUILD_ECORE_IPC_FALSE}"; then | ||
31429 | as_fn_error $? "conditional \"BUILD_ECORE_IPC\" was never defined. | ||
31430 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31431 | fi | ||
31432 | if test -z "${BUILD_ECORE_FILE_TRUE}" && test -z "${BUILD_ECORE_FILE_FALSE}"; then | ||
31433 | as_fn_error $? "conditional \"BUILD_ECORE_FILE\" was never defined. | ||
31434 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31435 | fi | ||
31436 | if test -z "${BUILD_ECORE_CONFIG_TRUE}" && test -z "${BUILD_ECORE_CONFIG_FALSE}"; then | ||
31437 | as_fn_error $? "conditional \"BUILD_ECORE_CONFIG\" was never defined. | ||
31438 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31439 | fi | ||
31440 | if test -z "${BUILD_ECORE_IMF_TRUE}" && test -z "${BUILD_ECORE_IMF_FALSE}"; then | ||
31441 | as_fn_error $? "conditional \"BUILD_ECORE_IMF\" was never defined. | ||
31442 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31443 | fi | ||
31444 | if test -z "${BUILD_ECORE_IMF_EVAS_TRUE}" && test -z "${BUILD_ECORE_IMF_EVAS_FALSE}"; then | ||
31445 | as_fn_error $? "conditional \"BUILD_ECORE_IMF_EVAS\" was never defined. | ||
31446 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31447 | fi | ||
31448 | if test -z "${BUILD_ECORE_INPUT_TRUE}" && test -z "${BUILD_ECORE_INPUT_FALSE}"; then | ||
31449 | as_fn_error $? "conditional \"BUILD_ECORE_INPUT\" was never defined. | ||
31450 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31451 | fi | ||
31452 | if test -z "${BUILD_ECORE_INPUT_EVAS_TRUE}" && test -z "${BUILD_ECORE_INPUT_EVAS_FALSE}"; then | ||
31453 | as_fn_error $? "conditional \"BUILD_ECORE_INPUT_EVAS\" was never defined. | ||
31454 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31455 | fi | ||
31456 | if test -z "${BUILD_ECORE_IMF_XIM_TRUE}" && test -z "${BUILD_ECORE_IMF_XIM_FALSE}"; then | ||
31457 | as_fn_error $? "conditional \"BUILD_ECORE_IMF_XIM\" was never defined. | ||
31458 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31459 | fi | ||
31460 | if test -z "${BUILD_ECORE_IMF_XIM_TRUE}" && test -z "${BUILD_ECORE_IMF_XIM_FALSE}"; then | ||
31461 | as_fn_error $? "conditional \"BUILD_ECORE_IMF_XIM\" was never defined. | ||
31462 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31463 | fi | ||
31464 | if test -z "${BUILD_ECORE_IMF_SCIM_TRUE}" && test -z "${BUILD_ECORE_IMF_SCIM_FALSE}"; then | ||
31465 | as_fn_error $? "conditional \"BUILD_ECORE_IMF_SCIM\" was never defined. | ||
31466 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31467 | fi | ||
31468 | if test -z "${BUILD_ECORE_IMF_SCIM_TRUE}" && test -z "${BUILD_ECORE_IMF_SCIM_FALSE}"; then | ||
31469 | as_fn_error $? "conditional \"BUILD_ECORE_IMF_SCIM\" was never defined. | ||
31470 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31471 | fi | ||
31472 | if test -z "${BUILD_ECORE_X_TRUE}" && test -z "${BUILD_ECORE_X_FALSE}"; then | ||
31473 | as_fn_error $? "conditional \"BUILD_ECORE_X\" was never defined. | ||
31474 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31475 | fi | ||
31476 | if test -z "${BUILD_ECORE_WIN32_TRUE}" && test -z "${BUILD_ECORE_WIN32_FALSE}"; then | ||
31477 | as_fn_error $? "conditional \"BUILD_ECORE_WIN32\" was never defined. | ||
31478 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31479 | fi | ||
31480 | if test -z "${BUILD_ECORE_COCOA_TRUE}" && test -z "${BUILD_ECORE_COCOA_FALSE}"; then | ||
31481 | as_fn_error $? "conditional \"BUILD_ECORE_COCOA\" was never defined. | ||
31482 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31483 | fi | ||
31484 | if test -z "${BUILD_ECORE_SDL_TRUE}" && test -z "${BUILD_ECORE_SDL_FALSE}"; then | ||
31485 | as_fn_error $? "conditional \"BUILD_ECORE_SDL\" was never defined. | ||
31486 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31487 | fi | ||
31488 | if test -z "${BUILD_ECORE_PSL1GHT_TRUE}" && test -z "${BUILD_ECORE_PSL1GHT_FALSE}"; then | ||
31489 | as_fn_error $? "conditional \"BUILD_ECORE_PSL1GHT\" was never defined. | ||
31490 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31491 | fi | ||
31492 | if test -z "${BUILD_ECORE_FB_TRUE}" && test -z "${BUILD_ECORE_FB_FALSE}"; then | ||
31493 | as_fn_error $? "conditional \"BUILD_ECORE_FB\" was never defined. | ||
31494 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31495 | fi | ||
31496 | if test -z "${BUILD_ECORE_DIRECTFB_TRUE}" && test -z "${BUILD_ECORE_DIRECTFB_FALSE}"; then | ||
31497 | as_fn_error $? "conditional \"BUILD_ECORE_DIRECTFB\" was never defined. | ||
31498 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31499 | fi | ||
31500 | if test -z "${BUILD_ECORE_WINCE_TRUE}" && test -z "${BUILD_ECORE_WINCE_FALSE}"; then | ||
31501 | as_fn_error $? "conditional \"BUILD_ECORE_WINCE\" was never defined. | ||
31502 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31503 | fi | ||
31504 | if test -z "${BUILD_ECORE_EVAS_TRUE}" && test -z "${BUILD_ECORE_EVAS_FALSE}"; then | ||
31505 | as_fn_error $? "conditional \"BUILD_ECORE_EVAS\" was never defined. | ||
31506 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31507 | fi | ||
31508 | if test -z "${BUILD_ECORE_WAYLAND_TRUE}" && test -z "${BUILD_ECORE_WAYLAND_FALSE}"; then | ||
31509 | as_fn_error $? "conditional \"BUILD_ECORE_WAYLAND\" was never defined. | ||
31510 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31511 | fi | ||
31512 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
31513 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
31514 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31515 | fi | ||
31516 | if test -z "${EFL_BUILD_EXAMPLES_TRUE}" && test -z "${EFL_BUILD_EXAMPLES_FALSE}"; then | ||
31517 | as_fn_error $? "conditional \"EFL_BUILD_EXAMPLES\" was never defined. | ||
31518 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31519 | fi | ||
31520 | if test -z "${EFL_INSTALL_EXAMPLES_TRUE}" && test -z "${EFL_INSTALL_EXAMPLES_FALSE}"; then | ||
31521 | as_fn_error $? "conditional \"EFL_INSTALL_EXAMPLES\" was never defined. | ||
31522 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
31523 | fi | ||
31524 | |||
31525 | : ${CONFIG_STATUS=./config.status} | ||
31526 | ac_write_fail=0 | ||
31527 | ac_clean_files_save=$ac_clean_files | ||
31528 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
31529 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
31530 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
31531 | as_write_fail=0 | ||
31532 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
31533 | #! $SHELL | ||
31534 | # Generated by $as_me. | ||
31535 | # Run this file to recreate the current configuration. | ||
31536 | # Compiler output produced by configure, useful for debugging | ||
31537 | # configure, is in config.log if it exists. | ||
31538 | |||
31539 | debug=false | ||
31540 | ac_cs_recheck=false | ||
31541 | ac_cs_silent=false | ||
31542 | |||
31543 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
31544 | export SHELL | ||
31545 | _ASEOF | ||
31546 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
31547 | ## -------------------- ## | ||
31548 | ## M4sh Initialization. ## | ||
31549 | ## -------------------- ## | ||
31550 | |||
31551 | # Be more Bourne compatible | ||
31552 | DUALCASE=1; export DUALCASE # for MKS sh | ||
31553 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
31554 | emulate sh | ||
31555 | NULLCMD=: | ||
31556 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
31557 | # is contrary to our usage. Disable this feature. | ||
31558 | alias -g '${1+"$@"}'='"$@"' | ||
31559 | setopt NO_GLOB_SUBST | ||
31560 | else | ||
31561 | case `(set -o) 2>/dev/null` in #( | ||
31562 | *posix*) : | ||
31563 | set -o posix ;; #( | ||
31564 | *) : | ||
31565 | ;; | ||
31566 | esac | ||
31567 | fi | ||
31568 | |||
31569 | |||
31570 | as_nl=' | ||
31571 | ' | ||
31572 | export as_nl | ||
31573 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
31574 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
31575 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
31576 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
31577 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
31578 | # but without wasting forks for bash or zsh. | ||
31579 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
31580 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
31581 | as_echo='print -r --' | ||
31582 | as_echo_n='print -rn --' | ||
31583 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
31584 | as_echo='printf %s\n' | ||
31585 | as_echo_n='printf %s' | ||
31586 | else | ||
31587 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
31588 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
31589 | as_echo_n='/usr/ucb/echo -n' | ||
31590 | else | ||
31591 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
31592 | as_echo_n_body='eval | ||
31593 | arg=$1; | ||
31594 | case $arg in #( | ||
31595 | *"$as_nl"*) | ||
31596 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
31597 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
31598 | esac; | ||
31599 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
31600 | ' | ||
31601 | export as_echo_n_body | ||
31602 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
31603 | fi | ||
31604 | export as_echo_body | ||
31605 | as_echo='sh -c $as_echo_body as_echo' | ||
31606 | fi | ||
31607 | |||
31608 | # The user is always right. | ||
31609 | if test "${PATH_SEPARATOR+set}" != set; then | ||
31610 | PATH_SEPARATOR=: | ||
31611 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
31612 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
31613 | PATH_SEPARATOR=';' | ||
31614 | } | ||
31615 | fi | ||
31616 | |||
31617 | |||
31618 | # IFS | ||
31619 | # We need space, tab and new line, in precisely that order. Quoting is | ||
31620 | # there to prevent editors from complaining about space-tab. | ||
31621 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
31622 | # splitting by setting IFS to empty value.) | ||
31623 | IFS=" "" $as_nl" | ||
31624 | |||
31625 | # Find who we are. Look in the path if we contain no directory separator. | ||
31626 | case $0 in #(( | ||
31627 | *[\\/]* ) as_myself=$0 ;; | ||
31628 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
31629 | for as_dir in $PATH | ||
31630 | do | ||
31631 | IFS=$as_save_IFS | ||
31632 | test -z "$as_dir" && as_dir=. | ||
31633 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
31634 | done | ||
31635 | IFS=$as_save_IFS | ||
31636 | |||
31637 | ;; | ||
31638 | esac | ||
31639 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
31640 | # in which case we are not to be found in the path. | ||
31641 | if test "x$as_myself" = x; then | ||
31642 | as_myself=$0 | ||
31643 | fi | ||
31644 | if test ! -f "$as_myself"; then | ||
31645 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
31646 | exit 1 | ||
31647 | fi | ||
31648 | |||
31649 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
31650 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
31651 | # suppresses any "Segmentation fault" message there. '((' could | ||
31652 | # trigger a bug in pdksh 5.2.14. | ||
31653 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
31654 | do eval test x\${$as_var+set} = xset \ | ||
31655 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
31656 | done | ||
31657 | PS1='$ ' | ||
31658 | PS2='> ' | ||
31659 | PS4='+ ' | ||
31660 | |||
31661 | # NLS nuisances. | ||
31662 | LC_ALL=C | ||
31663 | export LC_ALL | ||
31664 | LANGUAGE=C | ||
31665 | export LANGUAGE | ||
31666 | |||
31667 | # CDPATH. | ||
31668 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
31669 | |||
31670 | |||
31671 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
31672 | # ---------------------------------------- | ||
31673 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
31674 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
31675 | # script with STATUS, using 1 if that was 0. | ||
31676 | as_fn_error () | ||
31677 | { | ||
31678 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
31679 | if test "$4"; then | ||
31680 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
31681 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
31682 | fi | ||
31683 | $as_echo "$as_me: error: $2" >&2 | ||
31684 | as_fn_exit $as_status | ||
31685 | } # as_fn_error | ||
31686 | |||
31687 | |||
31688 | # as_fn_set_status STATUS | ||
31689 | # ----------------------- | ||
31690 | # Set $? to STATUS, without forking. | ||
31691 | as_fn_set_status () | ||
31692 | { | ||
31693 | return $1 | ||
31694 | } # as_fn_set_status | ||
31695 | |||
31696 | # as_fn_exit STATUS | ||
31697 | # ----------------- | ||
31698 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
31699 | as_fn_exit () | ||
31700 | { | ||
31701 | set +e | ||
31702 | as_fn_set_status $1 | ||
31703 | exit $1 | ||
31704 | } # as_fn_exit | ||
31705 | |||
31706 | # as_fn_unset VAR | ||
31707 | # --------------- | ||
31708 | # Portably unset VAR. | ||
31709 | as_fn_unset () | ||
31710 | { | ||
31711 | { eval $1=; unset $1;} | ||
31712 | } | ||
31713 | as_unset=as_fn_unset | ||
31714 | # as_fn_append VAR VALUE | ||
31715 | # ---------------------- | ||
31716 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
31717 | # advantage of any shell optimizations that allow amortized linear growth over | ||
31718 | # repeated appends, instead of the typical quadratic growth present in naive | ||
31719 | # implementations. | ||
31720 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
31721 | eval 'as_fn_append () | ||
31722 | { | ||
31723 | eval $1+=\$2 | ||
31724 | }' | ||
31725 | else | ||
31726 | as_fn_append () | ||
31727 | { | ||
31728 | eval $1=\$$1\$2 | ||
31729 | } | ||
31730 | fi # as_fn_append | ||
31731 | |||
31732 | # as_fn_arith ARG... | ||
31733 | # ------------------ | ||
31734 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
31735 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
31736 | # must be portable across $(()) and expr. | ||
31737 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
31738 | eval 'as_fn_arith () | ||
31739 | { | ||
31740 | as_val=$(( $* )) | ||
31741 | }' | ||
31742 | else | ||
31743 | as_fn_arith () | ||
31744 | { | ||
31745 | as_val=`expr "$@" || test $? -eq 1` | ||
31746 | } | ||
31747 | fi # as_fn_arith | ||
31748 | |||
31749 | |||
31750 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
31751 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
31752 | as_expr=expr | ||
31753 | else | ||
31754 | as_expr=false | ||
31755 | fi | ||
31756 | |||
31757 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
31758 | as_basename=basename | ||
31759 | else | ||
31760 | as_basename=false | ||
31761 | fi | ||
31762 | |||
31763 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
31764 | as_dirname=dirname | ||
31765 | else | ||
31766 | as_dirname=false | ||
31767 | fi | ||
31768 | |||
31769 | as_me=`$as_basename -- "$0" || | ||
31770 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
31771 | X"$0" : 'X\(//\)$' \| \ | ||
31772 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
31773 | $as_echo X/"$0" | | ||
31774 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
31775 | s//\1/ | ||
31776 | q | ||
31777 | } | ||
31778 | /^X\/\(\/\/\)$/{ | ||
31779 | s//\1/ | ||
31780 | q | ||
31781 | } | ||
31782 | /^X\/\(\/\).*/{ | ||
31783 | s//\1/ | ||
31784 | q | ||
31785 | } | ||
31786 | s/.*/./; q'` | ||
31787 | |||
31788 | # Avoid depending upon Character Ranges. | ||
31789 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
31790 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
31791 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
31792 | as_cr_digits='0123456789' | ||
31793 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
31794 | |||
31795 | ECHO_C= ECHO_N= ECHO_T= | ||
31796 | case `echo -n x` in #((((( | ||
31797 | -n*) | ||
31798 | case `echo 'xy\c'` in | ||
31799 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
31800 | xy) ECHO_C='\c';; | ||
31801 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
31802 | ECHO_T=' ';; | ||
31803 | esac;; | ||
31804 | *) | ||
31805 | ECHO_N='-n';; | ||
31806 | esac | ||
31807 | |||
31808 | rm -f conf$$ conf$$.exe conf$$.file | ||
31809 | if test -d conf$$.dir; then | ||
31810 | rm -f conf$$.dir/conf$$.file | ||
31811 | else | ||
31812 | rm -f conf$$.dir | ||
31813 | mkdir conf$$.dir 2>/dev/null | ||
31814 | fi | ||
31815 | if (echo >conf$$.file) 2>/dev/null; then | ||
31816 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
31817 | as_ln_s='ln -s' | ||
31818 | # ... but there are two gotchas: | ||
31819 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
31820 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
31821 | # In both cases, we have to default to `cp -p'. | ||
31822 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
31823 | as_ln_s='cp -p' | ||
31824 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
31825 | as_ln_s=ln | ||
31826 | else | ||
31827 | as_ln_s='cp -p' | ||
31828 | fi | ||
31829 | else | ||
31830 | as_ln_s='cp -p' | ||
31831 | fi | ||
31832 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
31833 | rmdir conf$$.dir 2>/dev/null | ||
31834 | |||
31835 | |||
31836 | # as_fn_mkdir_p | ||
31837 | # ------------- | ||
31838 | # Create "$as_dir" as a directory, including parents if necessary. | ||
31839 | as_fn_mkdir_p () | ||
31840 | { | ||
31841 | |||
31842 | case $as_dir in #( | ||
31843 | -*) as_dir=./$as_dir;; | ||
31844 | esac | ||
31845 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
31846 | as_dirs= | ||
31847 | while :; do | ||
31848 | case $as_dir in #( | ||
31849 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
31850 | *) as_qdir=$as_dir;; | ||
31851 | esac | ||
31852 | as_dirs="'$as_qdir' $as_dirs" | ||
31853 | as_dir=`$as_dirname -- "$as_dir" || | ||
31854 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
31855 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
31856 | X"$as_dir" : 'X\(//\)$' \| \ | ||
31857 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
31858 | $as_echo X"$as_dir" | | ||
31859 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
31860 | s//\1/ | ||
31861 | q | ||
31862 | } | ||
31863 | /^X\(\/\/\)[^/].*/{ | ||
31864 | s//\1/ | ||
31865 | q | ||
31866 | } | ||
31867 | /^X\(\/\/\)$/{ | ||
31868 | s//\1/ | ||
31869 | q | ||
31870 | } | ||
31871 | /^X\(\/\).*/{ | ||
31872 | s//\1/ | ||
31873 | q | ||
31874 | } | ||
31875 | s/.*/./; q'` | ||
31876 | test -d "$as_dir" && break | ||
31877 | done | ||
31878 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
31879 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
31880 | |||
31881 | |||
31882 | } # as_fn_mkdir_p | ||
31883 | if mkdir -p . 2>/dev/null; then | ||
31884 | as_mkdir_p='mkdir -p "$as_dir"' | ||
31885 | else | ||
31886 | test -d ./-p && rmdir ./-p | ||
31887 | as_mkdir_p=false | ||
31888 | fi | ||
31889 | |||
31890 | if test -x / >/dev/null 2>&1; then | ||
31891 | as_test_x='test -x' | ||
31892 | else | ||
31893 | if ls -dL / >/dev/null 2>&1; then | ||
31894 | as_ls_L_option=L | ||
31895 | else | ||
31896 | as_ls_L_option= | ||
31897 | fi | ||
31898 | as_test_x=' | ||
31899 | eval sh -c '\'' | ||
31900 | if test -d "$1"; then | ||
31901 | test -d "$1/."; | ||
31902 | else | ||
31903 | case $1 in #( | ||
31904 | -*)set "./$1";; | ||
31905 | esac; | ||
31906 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
31907 | ???[sx]*):;;*)false;;esac;fi | ||
31908 | '\'' sh | ||
31909 | ' | ||
31910 | fi | ||
31911 | as_executable_p=$as_test_x | ||
31912 | |||
31913 | # Sed expression to map a string onto a valid CPP name. | ||
31914 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
31915 | |||
31916 | # Sed expression to map a string onto a valid variable name. | ||
31917 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
31918 | |||
31919 | |||
31920 | exec 6>&1 | ||
31921 | ## ----------------------------------- ## | ||
31922 | ## Main body of $CONFIG_STATUS script. ## | ||
31923 | ## ----------------------------------- ## | ||
31924 | _ASEOF | ||
31925 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
31926 | |||
31927 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31928 | # Save the log message, to keep $0 and so on meaningful, and to | ||
31929 | # report actual input values of CONFIG_FILES etc. instead of their | ||
31930 | # values after options handling. | ||
31931 | ac_log=" | ||
31932 | This file was extended by ecore $as_me 1.2.0-alpha, which was | ||
31933 | generated by GNU Autoconf 2.67. Invocation command line was | ||
31934 | |||
31935 | CONFIG_FILES = $CONFIG_FILES | ||
31936 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
31937 | CONFIG_LINKS = $CONFIG_LINKS | ||
31938 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
31939 | $ $0 $@ | ||
31940 | |||
31941 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
31942 | " | ||
31943 | |||
31944 | _ACEOF | ||
31945 | |||
31946 | case $ac_config_files in *" | ||
31947 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
31948 | esac | ||
31949 | |||
31950 | case $ac_config_headers in *" | ||
31951 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
31952 | esac | ||
31953 | |||
31954 | |||
31955 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31956 | # Files that config.status was made for. | ||
31957 | config_files="$ac_config_files" | ||
31958 | config_headers="$ac_config_headers" | ||
31959 | config_commands="$ac_config_commands" | ||
31960 | |||
31961 | _ACEOF | ||
31962 | |||
31963 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31964 | ac_cs_usage="\ | ||
31965 | \`$as_me' instantiates files and other configuration actions | ||
31966 | from templates according to the current configuration. Unless the files | ||
31967 | and actions are specified as TAGs, all are instantiated by default. | ||
31968 | |||
31969 | Usage: $0 [OPTION]... [TAG]... | ||
31970 | |||
31971 | -h, --help print this help, then exit | ||
31972 | -V, --version print version number and configuration settings, then exit | ||
31973 | --config print configuration, then exit | ||
31974 | -q, --quiet, --silent | ||
31975 | do not print progress messages | ||
31976 | -d, --debug don't remove temporary files | ||
31977 | --recheck update $as_me by reconfiguring in the same conditions | ||
31978 | --file=FILE[:TEMPLATE] | ||
31979 | instantiate the configuration file FILE | ||
31980 | --header=FILE[:TEMPLATE] | ||
31981 | instantiate the configuration header FILE | ||
31982 | |||
31983 | Configuration files: | ||
31984 | $config_files | ||
31985 | |||
31986 | Configuration headers: | ||
31987 | $config_headers | ||
31988 | |||
31989 | Configuration commands: | ||
31990 | $config_commands | ||
31991 | |||
31992 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
31993 | |||
31994 | _ACEOF | ||
31995 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31996 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
31997 | ac_cs_version="\\ | ||
31998 | ecore config.status 1.2.0-alpha | ||
31999 | configured by $0, generated by GNU Autoconf 2.67, | ||
32000 | with options \\"\$ac_cs_config\\" | ||
32001 | |||
32002 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
32003 | This config.status script is free software; the Free Software Foundation | ||
32004 | gives unlimited permission to copy, distribute and modify it." | ||
32005 | |||
32006 | ac_pwd='$ac_pwd' | ||
32007 | srcdir='$srcdir' | ||
32008 | INSTALL='$INSTALL' | ||
32009 | MKDIR_P='$MKDIR_P' | ||
32010 | AWK='$AWK' | ||
32011 | test -n "\$AWK" || AWK=awk | ||
32012 | _ACEOF | ||
32013 | |||
32014 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32015 | # The default lists apply if the user does not specify any file. | ||
32016 | ac_need_defaults=: | ||
32017 | while test $# != 0 | ||
32018 | do | ||
32019 | case $1 in | ||
32020 | --*=?*) | ||
32021 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
32022 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
32023 | ac_shift=: | ||
32024 | ;; | ||
32025 | --*=) | ||
32026 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
32027 | ac_optarg= | ||
32028 | ac_shift=: | ||
32029 | ;; | ||
32030 | *) | ||
32031 | ac_option=$1 | ||
32032 | ac_optarg=$2 | ||
32033 | ac_shift=shift | ||
32034 | ;; | ||
32035 | esac | ||
32036 | |||
32037 | case $ac_option in | ||
32038 | # Handling of the options. | ||
32039 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
32040 | ac_cs_recheck=: ;; | ||
32041 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
32042 | $as_echo "$ac_cs_version"; exit ;; | ||
32043 | --config | --confi | --conf | --con | --co | --c ) | ||
32044 | $as_echo "$ac_cs_config"; exit ;; | ||
32045 | --debug | --debu | --deb | --de | --d | -d ) | ||
32046 | debug=: ;; | ||
32047 | --file | --fil | --fi | --f ) | ||
32048 | $ac_shift | ||
32049 | case $ac_optarg in | ||
32050 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
32051 | '') as_fn_error $? "missing file argument" ;; | ||
32052 | esac | ||
32053 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
32054 | ac_need_defaults=false;; | ||
32055 | --header | --heade | --head | --hea ) | ||
32056 | $ac_shift | ||
32057 | case $ac_optarg in | ||
32058 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
32059 | esac | ||
32060 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
32061 | ac_need_defaults=false;; | ||
32062 | --he | --h) | ||
32063 | # Conflict between --help and --header | ||
32064 | as_fn_error $? "ambiguous option: \`$1' | ||
32065 | Try \`$0 --help' for more information.";; | ||
32066 | --help | --hel | -h ) | ||
32067 | $as_echo "$ac_cs_usage"; exit ;; | ||
32068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
32069 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
32070 | ac_cs_silent=: ;; | ||
32071 | |||
32072 | # This is an error. | ||
32073 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
32074 | Try \`$0 --help' for more information." ;; | ||
32075 | |||
32076 | *) as_fn_append ac_config_targets " $1" | ||
32077 | ac_need_defaults=false ;; | ||
32078 | |||
32079 | esac | ||
32080 | shift | ||
32081 | done | ||
32082 | |||
32083 | ac_configure_extra_args= | ||
32084 | |||
32085 | if $ac_cs_silent; then | ||
32086 | exec 6>/dev/null | ||
32087 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
32088 | fi | ||
32089 | |||
32090 | _ACEOF | ||
32091 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32092 | if \$ac_cs_recheck; then | ||
32093 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
32094 | shift | ||
32095 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
32096 | CONFIG_SHELL='$SHELL' | ||
32097 | export CONFIG_SHELL | ||
32098 | exec "\$@" | ||
32099 | fi | ||
32100 | |||
32101 | _ACEOF | ||
32102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32103 | exec 5>>config.log | ||
32104 | { | ||
32105 | echo | ||
32106 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
32107 | ## Running $as_me. ## | ||
32108 | _ASBOX | ||
32109 | $as_echo "$ac_log" | ||
32110 | } >&5 | ||
32111 | |||
32112 | _ACEOF | ||
32113 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32114 | # | ||
32115 | # INIT-COMMANDS | ||
32116 | # | ||
32117 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
32118 | |||
32119 | |||
32120 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
32121 | # if CDPATH is set. | ||
32122 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
32123 | |||
32124 | sed_quote_subst='$sed_quote_subst' | ||
32125 | double_quote_subst='$double_quote_subst' | ||
32126 | delay_variable_subst='$delay_variable_subst' | ||
32127 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
32128 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
32129 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
32130 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
32131 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
32132 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
32133 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
32134 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
32135 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
32136 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
32137 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
32138 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
32139 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
32140 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
32141 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
32142 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
32143 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
32144 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
32145 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
32146 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
32147 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
32148 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
32149 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
32150 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
32151 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
32152 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
32153 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
32154 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
32155 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
32156 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
32157 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32158 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
32159 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
32160 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
32161 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
32162 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
32163 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
32164 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32165 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32166 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32167 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
32168 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
32169 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
32170 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
32171 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
32172 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
32173 | 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"`' | ||
32174 | 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"`' | ||
32175 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
32176 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
32177 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
32178 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
32179 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
32180 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
32181 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
32182 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
32183 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
32184 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
32185 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
32186 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
32187 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
32188 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
32189 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
32190 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
32191 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32192 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32193 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
32194 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
32195 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32196 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32197 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
32198 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32199 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32200 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32201 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32202 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32203 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32204 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
32205 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
32206 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
32207 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32208 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
32209 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
32210 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
32211 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
32212 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
32213 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
32214 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
32215 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
32216 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
32217 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
32218 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
32219 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32220 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
32221 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
32222 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32223 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32224 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
32225 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
32226 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
32227 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
32228 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
32229 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
32230 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
32231 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32232 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32233 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32234 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32235 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32236 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
32237 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
32238 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
32239 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32240 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
32241 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
32242 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
32243 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
32244 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
32245 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
32246 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
32247 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | ||
32248 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
32249 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
32250 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
32251 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
32252 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
32253 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32254 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32255 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32256 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32257 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32258 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32259 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32260 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32261 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32262 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32263 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32264 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32265 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32266 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32267 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32268 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32269 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32270 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32271 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32272 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32273 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32274 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32275 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32276 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32277 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32278 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32279 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32280 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32281 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32282 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32283 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32284 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32285 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32286 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32287 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32288 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32289 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32290 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32291 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32292 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32293 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32294 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32295 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32296 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32297 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32298 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32299 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
32300 | |||
32301 | LTCC='$LTCC' | ||
32302 | LTCFLAGS='$LTCFLAGS' | ||
32303 | compiler='$compiler_DEFAULT' | ||
32304 | |||
32305 | # Quote evaled strings. | ||
32306 | for var in SED \ | ||
32307 | GREP \ | ||
32308 | EGREP \ | ||
32309 | FGREP \ | ||
32310 | LD \ | ||
32311 | NM \ | ||
32312 | LN_S \ | ||
32313 | lt_SP2NL \ | ||
32314 | lt_NL2SP \ | ||
32315 | reload_flag \ | ||
32316 | deplibs_check_method \ | ||
32317 | file_magic_cmd \ | ||
32318 | AR \ | ||
32319 | AR_FLAGS \ | ||
32320 | STRIP \ | ||
32321 | RANLIB \ | ||
32322 | CC \ | ||
32323 | CFLAGS \ | ||
32324 | compiler \ | ||
32325 | lt_cv_sys_global_symbol_pipe \ | ||
32326 | lt_cv_sys_global_symbol_to_cdecl \ | ||
32327 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
32328 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
32329 | SHELL \ | ||
32330 | ECHO \ | ||
32331 | lt_prog_compiler_no_builtin_flag \ | ||
32332 | lt_prog_compiler_wl \ | ||
32333 | lt_prog_compiler_pic \ | ||
32334 | lt_prog_compiler_static \ | ||
32335 | lt_cv_prog_compiler_c_o \ | ||
32336 | need_locks \ | ||
32337 | DSYMUTIL \ | ||
32338 | NMEDIT \ | ||
32339 | LIPO \ | ||
32340 | OTOOL \ | ||
32341 | OTOOL64 \ | ||
32342 | shrext_cmds \ | ||
32343 | export_dynamic_flag_spec \ | ||
32344 | whole_archive_flag_spec \ | ||
32345 | compiler_needs_object \ | ||
32346 | with_gnu_ld \ | ||
32347 | allow_undefined_flag \ | ||
32348 | no_undefined_flag \ | ||
32349 | hardcode_libdir_flag_spec \ | ||
32350 | hardcode_libdir_flag_spec_ld \ | ||
32351 | hardcode_libdir_separator \ | ||
32352 | fix_srcfile_path \ | ||
32353 | exclude_expsyms \ | ||
32354 | include_expsyms \ | ||
32355 | file_list_spec \ | ||
32356 | variables_saved_for_relink \ | ||
32357 | libname_spec \ | ||
32358 | library_names_spec \ | ||
32359 | soname_spec \ | ||
32360 | finish_eval \ | ||
32361 | old_striplib \ | ||
32362 | striplib \ | ||
32363 | compiler_lib_search_dirs \ | ||
32364 | predep_objects \ | ||
32365 | postdep_objects \ | ||
32366 | predeps \ | ||
32367 | postdeps \ | ||
32368 | compiler_lib_search_path \ | ||
32369 | LD_CXX \ | ||
32370 | compiler_CXX \ | ||
32371 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
32372 | lt_prog_compiler_wl_CXX \ | ||
32373 | lt_prog_compiler_pic_CXX \ | ||
32374 | lt_prog_compiler_static_CXX \ | ||
32375 | lt_cv_prog_compiler_c_o_CXX \ | ||
32376 | export_dynamic_flag_spec_CXX \ | ||
32377 | whole_archive_flag_spec_CXX \ | ||
32378 | compiler_needs_object_CXX \ | ||
32379 | with_gnu_ld_CXX \ | ||
32380 | allow_undefined_flag_CXX \ | ||
32381 | no_undefined_flag_CXX \ | ||
32382 | hardcode_libdir_flag_spec_CXX \ | ||
32383 | hardcode_libdir_flag_spec_ld_CXX \ | ||
32384 | hardcode_libdir_separator_CXX \ | ||
32385 | fix_srcfile_path_CXX \ | ||
32386 | exclude_expsyms_CXX \ | ||
32387 | include_expsyms_CXX \ | ||
32388 | file_list_spec_CXX \ | ||
32389 | compiler_lib_search_dirs_CXX \ | ||
32390 | predep_objects_CXX \ | ||
32391 | postdep_objects_CXX \ | ||
32392 | predeps_CXX \ | ||
32393 | postdeps_CXX \ | ||
32394 | compiler_lib_search_path_CXX; do | ||
32395 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
32396 | *[\\\\\\\`\\"\\\$]*) | ||
32397 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
32398 | ;; | ||
32399 | *) | ||
32400 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
32401 | ;; | ||
32402 | esac | ||
32403 | done | ||
32404 | |||
32405 | # Double-quote double-evaled strings. | ||
32406 | for var in reload_cmds \ | ||
32407 | old_postinstall_cmds \ | ||
32408 | old_postuninstall_cmds \ | ||
32409 | old_archive_cmds \ | ||
32410 | extract_expsyms_cmds \ | ||
32411 | old_archive_from_new_cmds \ | ||
32412 | old_archive_from_expsyms_cmds \ | ||
32413 | archive_cmds \ | ||
32414 | archive_expsym_cmds \ | ||
32415 | module_cmds \ | ||
32416 | module_expsym_cmds \ | ||
32417 | export_symbols_cmds \ | ||
32418 | prelink_cmds \ | ||
32419 | postinstall_cmds \ | ||
32420 | postuninstall_cmds \ | ||
32421 | finish_cmds \ | ||
32422 | sys_lib_search_path_spec \ | ||
32423 | sys_lib_dlsearch_path_spec \ | ||
32424 | old_archive_cmds_CXX \ | ||
32425 | old_archive_from_new_cmds_CXX \ | ||
32426 | old_archive_from_expsyms_cmds_CXX \ | ||
32427 | archive_cmds_CXX \ | ||
32428 | archive_expsym_cmds_CXX \ | ||
32429 | module_cmds_CXX \ | ||
32430 | module_expsym_cmds_CXX \ | ||
32431 | export_symbols_cmds_CXX \ | ||
32432 | prelink_cmds_CXX; do | ||
32433 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
32434 | *[\\\\\\\`\\"\\\$]*) | ||
32435 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
32436 | ;; | ||
32437 | *) | ||
32438 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
32439 | ;; | ||
32440 | esac | ||
32441 | done | ||
32442 | |||
32443 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
32444 | case \$lt_ECHO in | ||
32445 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
32446 | ;; | ||
32447 | esac | ||
32448 | |||
32449 | ac_aux_dir='$ac_aux_dir' | ||
32450 | xsi_shell='$xsi_shell' | ||
32451 | lt_shell_append='$lt_shell_append' | ||
32452 | |||
32453 | # See if we are running on zsh, and set the options which allow our | ||
32454 | # commands through without removal of \ escapes INIT. | ||
32455 | if test -n "\${ZSH_VERSION+set}" ; then | ||
32456 | setopt NO_GLOB_SUBST | ||
32457 | fi | ||
32458 | |||
32459 | |||
32460 | PACKAGE='$PACKAGE' | ||
32461 | VERSION='$VERSION' | ||
32462 | TIMESTAMP='$TIMESTAMP' | ||
32463 | RM='$RM' | ||
32464 | ofile='$ofile' | ||
32465 | |||
32466 | |||
32467 | |||
32468 | |||
32469 | |||
32470 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | ||
32471 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | ||
32472 | # from automake < 1.5. | ||
32473 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | ||
32474 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | ||
32475 | LINGUAS="${LINGUAS-%UNSET%}" | ||
32476 | |||
32477 | |||
32478 | _ACEOF | ||
32479 | |||
32480 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32481 | |||
32482 | # Handling of arguments. | ||
32483 | for ac_config_target in $ac_config_targets | ||
32484 | do | ||
32485 | case $ac_config_target in | ||
32486 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
32487 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
32488 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
32489 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; | ||
32490 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
32491 | "ecore-con.pc") CONFIG_FILES="$CONFIG_FILES ecore-con.pc" ;; | ||
32492 | "ecore-config.pc") CONFIG_FILES="$CONFIG_FILES ecore-config.pc" ;; | ||
32493 | "ecore-directfb.pc") CONFIG_FILES="$CONFIG_FILES ecore-directfb.pc" ;; | ||
32494 | "ecore-evas.pc") CONFIG_FILES="$CONFIG_FILES ecore-evas.pc" ;; | ||
32495 | "ecore-fb.pc") CONFIG_FILES="$CONFIG_FILES ecore-fb.pc" ;; | ||
32496 | "ecore-file.pc") CONFIG_FILES="$CONFIG_FILES ecore-file.pc" ;; | ||
32497 | "ecore-imf.pc") CONFIG_FILES="$CONFIG_FILES ecore-imf.pc" ;; | ||
32498 | "ecore-imf-evas.pc") CONFIG_FILES="$CONFIG_FILES ecore-imf-evas.pc" ;; | ||
32499 | "ecore-ipc.pc") CONFIG_FILES="$CONFIG_FILES ecore-ipc.pc" ;; | ||
32500 | "ecore-x.pc") CONFIG_FILES="$CONFIG_FILES ecore-x.pc" ;; | ||
32501 | "ecore-input.pc") CONFIG_FILES="$CONFIG_FILES ecore-input.pc" ;; | ||
32502 | "ecore-input-evas.pc") CONFIG_FILES="$CONFIG_FILES ecore-input-evas.pc" ;; | ||
32503 | "ecore-win32.pc") CONFIG_FILES="$CONFIG_FILES ecore-win32.pc" ;; | ||
32504 | "ecore-sdl.pc") CONFIG_FILES="$CONFIG_FILES ecore-sdl.pc" ;; | ||
32505 | "ecore-cocoa.pc") CONFIG_FILES="$CONFIG_FILES ecore-cocoa.pc" ;; | ||
32506 | "ecore-psl1ght.pc") CONFIG_FILES="$CONFIG_FILES ecore-psl1ght.pc" ;; | ||
32507 | "ecore-wince.pc") CONFIG_FILES="$CONFIG_FILES ecore-wince.pc" ;; | ||
32508 | "ecore-wayland.pc") CONFIG_FILES="$CONFIG_FILES ecore-wayland.pc" ;; | ||
32509 | "ecore.pc") CONFIG_FILES="$CONFIG_FILES ecore.pc" ;; | ||
32510 | "doc/ecore.dox") CONFIG_FILES="$CONFIG_FILES doc/ecore.dox" ;; | ||
32511 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
32512 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
32513 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
32514 | "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; | ||
32515 | "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; | ||
32516 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
32517 | "src/lib/ecore/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore/Makefile" ;; | ||
32518 | "src/lib/ecore_con/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_con/Makefile" ;; | ||
32519 | "src/lib/ecore_config/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_config/Makefile" ;; | ||
32520 | "src/lib/ecore_directfb/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_directfb/Makefile" ;; | ||
32521 | "src/lib/ecore_evas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_evas/Makefile" ;; | ||
32522 | "src/lib/ecore_fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_fb/Makefile" ;; | ||
32523 | "src/lib/ecore_file/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_file/Makefile" ;; | ||
32524 | "src/lib/ecore_cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_cocoa/Makefile" ;; | ||
32525 | "src/lib/ecore_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_sdl/Makefile" ;; | ||
32526 | "src/lib/ecore_psl1ght/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_psl1ght/Makefile" ;; | ||
32527 | "src/lib/ecore_imf/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_imf/Makefile" ;; | ||
32528 | "src/lib/ecore_imf_evas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_imf_evas/Makefile" ;; | ||
32529 | "src/lib/ecore_input/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_input/Makefile" ;; | ||
32530 | "src/lib/ecore_input_evas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_input_evas/Makefile" ;; | ||
32531 | "src/lib/ecore_ipc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_ipc/Makefile" ;; | ||
32532 | "src/lib/ecore_win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_win32/Makefile" ;; | ||
32533 | "src/lib/ecore_wince/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_wince/Makefile" ;; | ||
32534 | "src/lib/ecore_x/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_x/Makefile" ;; | ||
32535 | "src/lib/ecore_x/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_x/xlib/Makefile" ;; | ||
32536 | "src/lib/ecore_x/xcb/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_x/xcb/Makefile" ;; | ||
32537 | "src/lib/ecore_wayland/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/ecore_wayland/Makefile" ;; | ||
32538 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
32539 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
32540 | "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; | ||
32541 | "src/modules/immodules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/immodules/Makefile" ;; | ||
32542 | "src/modules/immodules/xim/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/immodules/xim/Makefile" ;; | ||
32543 | "src/modules/immodules/scim/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/immodules/scim/Makefile" ;; | ||
32544 | "ecore.spec") CONFIG_FILES="$CONFIG_FILES ecore.spec" ;; | ||
32545 | "$po_makefile_in") CONFIG_FILES="$CONFIG_FILES $po_makefile_in" ;; | ||
32546 | |||
32547 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
32548 | esac | ||
32549 | done | ||
32550 | |||
32551 | |||
32552 | # If the user did not use the arguments to specify the items to instantiate, | ||
32553 | # then the envvar interface is used. Set only those that are not. | ||
32554 | # We use the long form for the default assignment because of an extremely | ||
32555 | # bizarre bug on SunOS 4.1.3. | ||
32556 | if $ac_need_defaults; then | ||
32557 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
32558 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
32559 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
32560 | fi | ||
32561 | |||
32562 | # Have a temporary directory for convenience. Make it in the build tree | ||
32563 | # simply because there is no reason against having it here, and in addition, | ||
32564 | # creating and moving files from /tmp can sometimes cause problems. | ||
32565 | # Hook for its removal unless debugging. | ||
32566 | # Note that there is a small window in which the directory will not be cleaned: | ||
32567 | # after its creation but before its name has been assigned to `$tmp'. | ||
32568 | $debug || | ||
32569 | { | ||
32570 | tmp= | ||
32571 | trap 'exit_status=$? | ||
32572 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
32573 | ' 0 | ||
32574 | trap 'as_fn_exit 1' 1 2 13 15 | ||
32575 | } | ||
32576 | # Create a (secure) tmp directory for tmp files. | ||
32577 | |||
32578 | { | ||
32579 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
32580 | test -n "$tmp" && test -d "$tmp" | ||
32581 | } || | ||
32582 | { | ||
32583 | tmp=./conf$$-$RANDOM | ||
32584 | (umask 077 && mkdir "$tmp") | ||
32585 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
32586 | |||
32587 | # Set up the scripts for CONFIG_FILES section. | ||
32588 | # No need to generate them if there are no CONFIG_FILES. | ||
32589 | # This happens for instance with `./config.status config.h'. | ||
32590 | if test -n "$CONFIG_FILES"; then | ||
32591 | |||
32592 | |||
32593 | ac_cr=`echo X | tr X '\015'` | ||
32594 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
32595 | # But we know of no other shell where ac_cr would be empty at this | ||
32596 | # point, so we can use a bashism as a fallback. | ||
32597 | if test "x$ac_cr" = x; then | ||
32598 | eval ac_cr=\$\'\\r\' | ||
32599 | fi | ||
32600 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
32601 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
32602 | ac_cs_awk_cr='\\r' | ||
32603 | else | ||
32604 | ac_cs_awk_cr=$ac_cr | ||
32605 | fi | ||
32606 | |||
32607 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
32608 | _ACEOF | ||
32609 | |||
32610 | |||
32611 | { | ||
32612 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
32613 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
32614 | echo "_ACEOF" | ||
32615 | } >conf$$subs.sh || | ||
32616 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
32617 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
32618 | ac_delim='%!_!# ' | ||
32619 | for ac_last_try in false false false false false :; do | ||
32620 | . ./conf$$subs.sh || | ||
32621 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
32622 | |||
32623 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
32624 | if test $ac_delim_n = $ac_delim_num; then | ||
32625 | break | ||
32626 | elif $ac_last_try; then | ||
32627 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
32628 | else | ||
32629 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
32630 | fi | ||
32631 | done | ||
32632 | rm -f conf$$subs.sh | ||
32633 | |||
32634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32635 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
32636 | _ACEOF | ||
32637 | sed -n ' | ||
32638 | h | ||
32639 | s/^/S["/; s/!.*/"]=/ | ||
32640 | p | ||
32641 | g | ||
32642 | s/^[^!]*!// | ||
32643 | :repl | ||
32644 | t repl | ||
32645 | s/'"$ac_delim"'$// | ||
32646 | t delim | ||
32647 | :nl | ||
32648 | h | ||
32649 | s/\(.\{148\}\)..*/\1/ | ||
32650 | t more1 | ||
32651 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
32652 | p | ||
32653 | n | ||
32654 | b repl | ||
32655 | :more1 | ||
32656 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
32657 | p | ||
32658 | g | ||
32659 | s/.\{148\}// | ||
32660 | t nl | ||
32661 | :delim | ||
32662 | h | ||
32663 | s/\(.\{148\}\)..*/\1/ | ||
32664 | t more2 | ||
32665 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
32666 | p | ||
32667 | b | ||
32668 | :more2 | ||
32669 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
32670 | p | ||
32671 | g | ||
32672 | s/.\{148\}// | ||
32673 | t delim | ||
32674 | ' <conf$$subs.awk | sed ' | ||
32675 | /^[^""]/{ | ||
32676 | N | ||
32677 | s/\n// | ||
32678 | } | ||
32679 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
32680 | rm -f conf$$subs.awk | ||
32681 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32682 | _ACAWK | ||
32683 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
32684 | for (key in S) S_is_set[key] = 1 | ||
32685 | FS = "" | ||
32686 | |||
32687 | } | ||
32688 | { | ||
32689 | line = $ 0 | ||
32690 | nfields = split(line, field, "@") | ||
32691 | substed = 0 | ||
32692 | len = length(field[1]) | ||
32693 | for (i = 2; i < nfields; i++) { | ||
32694 | key = field[i] | ||
32695 | keylen = length(key) | ||
32696 | if (S_is_set[key]) { | ||
32697 | value = S[key] | ||
32698 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
32699 | len += length(value) + length(field[++i]) | ||
32700 | substed = 1 | ||
32701 | } else | ||
32702 | len += 1 + keylen | ||
32703 | } | ||
32704 | |||
32705 | print line | ||
32706 | } | ||
32707 | |||
32708 | _ACAWK | ||
32709 | _ACEOF | ||
32710 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32711 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
32712 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
32713 | else | ||
32714 | cat | ||
32715 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
32716 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
32717 | _ACEOF | ||
32718 | |||
32719 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
32720 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
32721 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
32722 | # (actually we leave an empty line to preserve line numbers). | ||
32723 | if test "x$srcdir" = x.; then | ||
32724 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
32725 | h | ||
32726 | s/// | ||
32727 | s/^/:/ | ||
32728 | s/[ ]*$/:/ | ||
32729 | s/:\$(srcdir):/:/g | ||
32730 | s/:\${srcdir}:/:/g | ||
32731 | s/:@srcdir@:/:/g | ||
32732 | s/^:*// | ||
32733 | s/:*$// | ||
32734 | x | ||
32735 | s/\(=[ ]*\).*/\1/ | ||
32736 | G | ||
32737 | s/\n// | ||
32738 | s/^[^=]*=[ ]*$// | ||
32739 | }' | ||
32740 | fi | ||
32741 | |||
32742 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32743 | fi # test -n "$CONFIG_FILES" | ||
32744 | |||
32745 | # Set up the scripts for CONFIG_HEADERS section. | ||
32746 | # No need to generate them if there are no CONFIG_HEADERS. | ||
32747 | # This happens for instance with `./config.status Makefile'. | ||
32748 | if test -n "$CONFIG_HEADERS"; then | ||
32749 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
32750 | BEGIN { | ||
32751 | _ACEOF | ||
32752 | |||
32753 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
32754 | # here-document in config.status, that substitutes the proper values into | ||
32755 | # config.h.in to produce config.h. | ||
32756 | |||
32757 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
32758 | # handling of long lines. | ||
32759 | ac_delim='%!_!# ' | ||
32760 | for ac_last_try in false false :; do | ||
32761 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
32762 | if test -z "$ac_t"; then | ||
32763 | break | ||
32764 | elif $ac_last_try; then | ||
32765 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
32766 | else | ||
32767 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
32768 | fi | ||
32769 | done | ||
32770 | |||
32771 | # For the awk script, D is an array of macro values keyed by name, | ||
32772 | # likewise P contains macro parameters if any. Preserve backslash | ||
32773 | # newline sequences. | ||
32774 | |||
32775 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
32776 | sed -n ' | ||
32777 | s/.\{148\}/&'"$ac_delim"'/g | ||
32778 | t rset | ||
32779 | :rset | ||
32780 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
32781 | t def | ||
32782 | d | ||
32783 | :def | ||
32784 | s/\\$// | ||
32785 | t bsnl | ||
32786 | s/["\\]/\\&/g | ||
32787 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
32788 | D["\1"]=" \3"/p | ||
32789 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
32790 | d | ||
32791 | :bsnl | ||
32792 | s/["\\]/\\&/g | ||
32793 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
32794 | D["\1"]=" \3\\\\\\n"\\/p | ||
32795 | t cont | ||
32796 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
32797 | t cont | ||
32798 | d | ||
32799 | :cont | ||
32800 | n | ||
32801 | s/.\{148\}/&'"$ac_delim"'/g | ||
32802 | t clear | ||
32803 | :clear | ||
32804 | s/\\$// | ||
32805 | t bsnlc | ||
32806 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
32807 | d | ||
32808 | :bsnlc | ||
32809 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
32810 | b cont | ||
32811 | ' <confdefs.h | sed ' | ||
32812 | s/'"$ac_delim"'/"\\\ | ||
32813 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
32814 | |||
32815 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32816 | for (key in D) D_is_set[key] = 1 | ||
32817 | FS = "" | ||
32818 | } | ||
32819 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
32820 | line = \$ 0 | ||
32821 | split(line, arg, " ") | ||
32822 | if (arg[1] == "#") { | ||
32823 | defundef = arg[2] | ||
32824 | mac1 = arg[3] | ||
32825 | } else { | ||
32826 | defundef = substr(arg[1], 2) | ||
32827 | mac1 = arg[2] | ||
32828 | } | ||
32829 | split(mac1, mac2, "(") #) | ||
32830 | macro = mac2[1] | ||
32831 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
32832 | if (D_is_set[macro]) { | ||
32833 | # Preserve the white space surrounding the "#". | ||
32834 | print prefix "define", macro P[macro] D[macro] | ||
32835 | next | ||
32836 | } else { | ||
32837 | # Replace #undef with comments. This is necessary, for example, | ||
32838 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
32839 | # on some systems where configure will not decide to define it. | ||
32840 | if (defundef == "undef") { | ||
32841 | print "/*", prefix defundef, macro, "*/" | ||
32842 | next | ||
32843 | } | ||
32844 | } | ||
32845 | } | ||
32846 | { print } | ||
32847 | _ACAWK | ||
32848 | _ACEOF | ||
32849 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32850 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
32851 | fi # test -n "$CONFIG_HEADERS" | ||
32852 | |||
32853 | |||
32854 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
32855 | shift | ||
32856 | for ac_tag | ||
32857 | do | ||
32858 | case $ac_tag in | ||
32859 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
32860 | esac | ||
32861 | case $ac_mode$ac_tag in | ||
32862 | :[FHL]*:*);; | ||
32863 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
32864 | :[FH]-) ac_tag=-:-;; | ||
32865 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
32866 | esac | ||
32867 | ac_save_IFS=$IFS | ||
32868 | IFS=: | ||
32869 | set x $ac_tag | ||
32870 | IFS=$ac_save_IFS | ||
32871 | shift | ||
32872 | ac_file=$1 | ||
32873 | shift | ||
32874 | |||
32875 | case $ac_mode in | ||
32876 | :L) ac_source=$1;; | ||
32877 | :[FH]) | ||
32878 | ac_file_inputs= | ||
32879 | for ac_f | ||
32880 | do | ||
32881 | case $ac_f in | ||
32882 | -) ac_f="$tmp/stdin";; | ||
32883 | *) # Look for the file first in the build tree, then in the source tree | ||
32884 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
32885 | # because $ac_f cannot contain `:'. | ||
32886 | test -f "$ac_f" || | ||
32887 | case $ac_f in | ||
32888 | [\\/$]*) false;; | ||
32889 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
32890 | esac || | ||
32891 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
32892 | esac | ||
32893 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
32894 | as_fn_append ac_file_inputs " '$ac_f'" | ||
32895 | done | ||
32896 | |||
32897 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
32898 | # use $as_me), people would be surprised to read: | ||
32899 | # /* config.h. Generated by config.status. */ | ||
32900 | configure_input='Generated from '` | ||
32901 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
32902 | `' by configure.' | ||
32903 | if test x"$ac_file" != x-; then | ||
32904 | configure_input="$ac_file. $configure_input" | ||
32905 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
32906 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
32907 | fi | ||
32908 | # Neutralize special characters interpreted by sed in replacement strings. | ||
32909 | case $configure_input in #( | ||
32910 | *\&* | *\|* | *\\* ) | ||
32911 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
32912 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
32913 | *) ac_sed_conf_input=$configure_input;; | ||
32914 | esac | ||
32915 | |||
32916 | case $ac_tag in | ||
32917 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
32918 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
32919 | esac | ||
32920 | ;; | ||
32921 | esac | ||
32922 | |||
32923 | ac_dir=`$as_dirname -- "$ac_file" || | ||
32924 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
32925 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
32926 | X"$ac_file" : 'X\(//\)$' \| \ | ||
32927 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
32928 | $as_echo X"$ac_file" | | ||
32929 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
32930 | s//\1/ | ||
32931 | q | ||
32932 | } | ||
32933 | /^X\(\/\/\)[^/].*/{ | ||
32934 | s//\1/ | ||
32935 | q | ||
32936 | } | ||
32937 | /^X\(\/\/\)$/{ | ||
32938 | s//\1/ | ||
32939 | q | ||
32940 | } | ||
32941 | /^X\(\/\).*/{ | ||
32942 | s//\1/ | ||
32943 | q | ||
32944 | } | ||
32945 | s/.*/./; q'` | ||
32946 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
32947 | ac_builddir=. | ||
32948 | |||
32949 | case "$ac_dir" in | ||
32950 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
32951 | *) | ||
32952 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
32953 | # A ".." for each directory in $ac_dir_suffix. | ||
32954 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
32955 | case $ac_top_builddir_sub in | ||
32956 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
32957 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
32958 | esac ;; | ||
32959 | esac | ||
32960 | ac_abs_top_builddir=$ac_pwd | ||
32961 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
32962 | # for backward compatibility: | ||
32963 | ac_top_builddir=$ac_top_build_prefix | ||
32964 | |||
32965 | case $srcdir in | ||
32966 | .) # We are building in place. | ||
32967 | ac_srcdir=. | ||
32968 | ac_top_srcdir=$ac_top_builddir_sub | ||
32969 | ac_abs_top_srcdir=$ac_pwd ;; | ||
32970 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
32971 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
32972 | ac_top_srcdir=$srcdir | ||
32973 | ac_abs_top_srcdir=$srcdir ;; | ||
32974 | *) # Relative name. | ||
32975 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
32976 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
32977 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
32978 | esac | ||
32979 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
32980 | |||
32981 | |||
32982 | case $ac_mode in | ||
32983 | :F) | ||
32984 | # | ||
32985 | # CONFIG_FILE | ||
32986 | # | ||
32987 | |||
32988 | case $INSTALL in | ||
32989 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
32990 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
32991 | esac | ||
32992 | ac_MKDIR_P=$MKDIR_P | ||
32993 | case $MKDIR_P in | ||
32994 | [\\/$]* | ?:[\\/]* ) ;; | ||
32995 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
32996 | esac | ||
32997 | _ACEOF | ||
32998 | |||
32999 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33000 | # If the template does not know about datarootdir, expand it. | ||
33001 | # FIXME: This hack should be removed a few years after 2.60. | ||
33002 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
33003 | ac_sed_dataroot=' | ||
33004 | /datarootdir/ { | ||
33005 | p | ||
33006 | q | ||
33007 | } | ||
33008 | /@datadir@/p | ||
33009 | /@docdir@/p | ||
33010 | /@infodir@/p | ||
33011 | /@localedir@/p | ||
33012 | /@mandir@/p' | ||
33013 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
33014 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
33015 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
33016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
33017 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
33018 | _ACEOF | ||
33019 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33020 | ac_datarootdir_hack=' | ||
33021 | s&@datadir@&$datadir&g | ||
33022 | s&@docdir@&$docdir&g | ||
33023 | s&@infodir@&$infodir&g | ||
33024 | s&@localedir@&$localedir&g | ||
33025 | s&@mandir@&$mandir&g | ||
33026 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
33027 | esac | ||
33028 | _ACEOF | ||
33029 | |||
33030 | # Neutralize VPATH when `$srcdir' = `.'. | ||
33031 | # Shell code in configure.ac might set extrasub. | ||
33032 | # FIXME: do we really want to maintain this feature? | ||
33033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33034 | ac_sed_extra="$ac_vpsub | ||
33035 | $extrasub | ||
33036 | _ACEOF | ||
33037 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33038 | :t | ||
33039 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
33040 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
33041 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
33042 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
33043 | s&@srcdir@&$ac_srcdir&;t t | ||
33044 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
33045 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
33046 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
33047 | s&@builddir@&$ac_builddir&;t t | ||
33048 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
33049 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
33050 | s&@INSTALL@&$ac_INSTALL&;t t | ||
33051 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
33052 | $ac_datarootdir_hack | ||
33053 | " | ||
33054 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
33055 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
33056 | |||
33057 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
33058 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
33059 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
33060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
33061 | which seems to be undefined. Please make sure it is defined" >&5 | ||
33062 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
33063 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
33064 | |||
33065 | rm -f "$tmp/stdin" | ||
33066 | case $ac_file in | ||
33067 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
33068 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
33069 | esac \ | ||
33070 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
33071 | ;; | ||
33072 | :H) | ||
33073 | # | ||
33074 | # CONFIG_HEADER | ||
33075 | # | ||
33076 | if test x"$ac_file" != x-; then | ||
33077 | { | ||
33078 | $as_echo "/* $configure_input */" \ | ||
33079 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
33080 | } >"$tmp/config.h" \ | ||
33081 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
33082 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
33083 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
33084 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
33085 | else | ||
33086 | rm -f "$ac_file" | ||
33087 | mv "$tmp/config.h" "$ac_file" \ | ||
33088 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
33089 | fi | ||
33090 | else | ||
33091 | $as_echo "/* $configure_input */" \ | ||
33092 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
33093 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
33094 | fi | ||
33095 | # Compute "$ac_file"'s index in $config_headers. | ||
33096 | _am_arg="$ac_file" | ||
33097 | _am_stamp_count=1 | ||
33098 | for _am_header in $config_headers :; do | ||
33099 | case $_am_header in | ||
33100 | $_am_arg | $_am_arg:* ) | ||
33101 | break ;; | ||
33102 | * ) | ||
33103 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
33104 | esac | ||
33105 | done | ||
33106 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
33107 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
33108 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
33109 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
33110 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
33111 | $as_echo X"$_am_arg" | | ||
33112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
33113 | s//\1/ | ||
33114 | q | ||
33115 | } | ||
33116 | /^X\(\/\/\)[^/].*/{ | ||
33117 | s//\1/ | ||
33118 | q | ||
33119 | } | ||
33120 | /^X\(\/\/\)$/{ | ||
33121 | s//\1/ | ||
33122 | q | ||
33123 | } | ||
33124 | /^X\(\/\).*/{ | ||
33125 | s//\1/ | ||
33126 | q | ||
33127 | } | ||
33128 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
33129 | ;; | ||
33130 | |||
33131 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
33132 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
33133 | ;; | ||
33134 | esac | ||
33135 | |||
33136 | |||
33137 | case $ac_file$ac_mode in | ||
33138 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
33139 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
33140 | # are listed without --file. Let's play safe and only enable the eval | ||
33141 | # if we detect the quoting. | ||
33142 | case $CONFIG_FILES in | ||
33143 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
33144 | *) set x $CONFIG_FILES ;; | ||
33145 | esac | ||
33146 | shift | ||
33147 | for mf | ||
33148 | do | ||
33149 | # Strip MF so we end up with the name of the file. | ||
33150 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
33151 | # Check whether this is an Automake generated Makefile or not. | ||
33152 | # We used to match only the files named `Makefile.in', but | ||
33153 | # some people rename them; so instead we look at the file content. | ||
33154 | # Grep'ing the first line is not enough: some people post-process | ||
33155 | # each Makefile.in and add a new line on top of each file to say so. | ||
33156 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
33157 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
33158 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
33159 | dirpart=`$as_dirname -- "$mf" || | ||
33160 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
33161 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
33162 | X"$mf" : 'X\(//\)$' \| \ | ||
33163 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
33164 | $as_echo X"$mf" | | ||
33165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
33166 | s//\1/ | ||
33167 | q | ||
33168 | } | ||
33169 | /^X\(\/\/\)[^/].*/{ | ||
33170 | s//\1/ | ||
33171 | q | ||
33172 | } | ||
33173 | /^X\(\/\/\)$/{ | ||
33174 | s//\1/ | ||
33175 | q | ||
33176 | } | ||
33177 | /^X\(\/\).*/{ | ||
33178 | s//\1/ | ||
33179 | q | ||
33180 | } | ||
33181 | s/.*/./; q'` | ||
33182 | else | ||
33183 | continue | ||
33184 | fi | ||
33185 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
33186 | # from the Makefile without running `make'. | ||
33187 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
33188 | test -z "$DEPDIR" && continue | ||
33189 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
33190 | test -z "am__include" && continue | ||
33191 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
33192 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
33193 | U=`sed -n 's/^U = //p' < "$mf"` | ||
33194 | # Find all dependency output files, they are included files with | ||
33195 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
33196 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
33197 | # expansion. | ||
33198 | for file in `sed -n " | ||
33199 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
33200 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
33201 | # Make sure the directory exists. | ||
33202 | test -f "$dirpart/$file" && continue | ||
33203 | fdir=`$as_dirname -- "$file" || | ||
33204 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
33205 | X"$file" : 'X\(//\)[^/]' \| \ | ||
33206 | X"$file" : 'X\(//\)$' \| \ | ||
33207 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
33208 | $as_echo X"$file" | | ||
33209 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
33210 | s//\1/ | ||
33211 | q | ||
33212 | } | ||
33213 | /^X\(\/\/\)[^/].*/{ | ||
33214 | s//\1/ | ||
33215 | q | ||
33216 | } | ||
33217 | /^X\(\/\/\)$/{ | ||
33218 | s//\1/ | ||
33219 | q | ||
33220 | } | ||
33221 | /^X\(\/\).*/{ | ||
33222 | s//\1/ | ||
33223 | q | ||
33224 | } | ||
33225 | s/.*/./; q'` | ||
33226 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
33227 | # echo "creating $dirpart/$file" | ||
33228 | echo '# dummy' > "$dirpart/$file" | ||
33229 | done | ||
33230 | done | ||
33231 | } | ||
33232 | ;; | ||
33233 | "libtool":C) | ||
33234 | |||
33235 | # See if we are running on zsh, and set the options which allow our | ||
33236 | # commands through without removal of \ escapes. | ||
33237 | if test -n "${ZSH_VERSION+set}" ; then | ||
33238 | setopt NO_GLOB_SUBST | ||
33239 | fi | ||
33240 | |||
33241 | cfgfile="${ofile}T" | ||
33242 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
33243 | $RM "$cfgfile" | ||
33244 | |||
33245 | cat <<_LT_EOF >> "$cfgfile" | ||
33246 | #! $SHELL | ||
33247 | |||
33248 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
33249 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
33250 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
33251 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
33252 | # | ||
33253 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
33254 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
33255 | # Written by Gordon Matzigkeit, 1996 | ||
33256 | # | ||
33257 | # This file is part of GNU Libtool. | ||
33258 | # | ||
33259 | # GNU Libtool is free software; you can redistribute it and/or | ||
33260 | # modify it under the terms of the GNU General Public License as | ||
33261 | # published by the Free Software Foundation; either version 2 of | ||
33262 | # the License, or (at your option) any later version. | ||
33263 | # | ||
33264 | # As a special exception to the GNU General Public License, | ||
33265 | # if you distribute this file as part of a program or library that | ||
33266 | # is built using GNU Libtool, you may include this file under the | ||
33267 | # same distribution terms that you use for the rest of that program. | ||
33268 | # | ||
33269 | # GNU Libtool is distributed in the hope that it will be useful, | ||
33270 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
33271 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
33272 | # GNU General Public License for more details. | ||
33273 | # | ||
33274 | # You should have received a copy of the GNU General Public License | ||
33275 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
33276 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
33277 | # obtained by writing to the Free Software Foundation, Inc., | ||
33278 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
33279 | |||
33280 | |||
33281 | # The names of the tagged configurations supported by this script. | ||
33282 | available_tags="CXX " | ||
33283 | |||
33284 | # ### BEGIN LIBTOOL CONFIG | ||
33285 | |||
33286 | # Assembler program. | ||
33287 | AS=$AS | ||
33288 | |||
33289 | # DLL creation program. | ||
33290 | DLLTOOL=$DLLTOOL | ||
33291 | |||
33292 | # Object dumper program. | ||
33293 | OBJDUMP=$OBJDUMP | ||
33294 | |||
33295 | # Which release of libtool.m4 was used? | ||
33296 | macro_version=$macro_version | ||
33297 | macro_revision=$macro_revision | ||
33298 | |||
33299 | # Whether or not to build shared libraries. | ||
33300 | build_libtool_libs=$enable_shared | ||
33301 | |||
33302 | # Whether or not to build static libraries. | ||
33303 | build_old_libs=$enable_static | ||
33304 | |||
33305 | # What type of objects to build. | ||
33306 | pic_mode=$pic_mode | ||
33307 | |||
33308 | # Whether or not to optimize for fast installation. | ||
33309 | fast_install=$enable_fast_install | ||
33310 | |||
33311 | # The host system. | ||
33312 | host_alias=$host_alias | ||
33313 | host=$host | ||
33314 | host_os=$host_os | ||
33315 | |||
33316 | # The build system. | ||
33317 | build_alias=$build_alias | ||
33318 | build=$build | ||
33319 | build_os=$build_os | ||
33320 | |||
33321 | # A sed program that does not truncate output. | ||
33322 | SED=$lt_SED | ||
33323 | |||
33324 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
33325 | Xsed="\$SED -e 1s/^X//" | ||
33326 | |||
33327 | # A grep program that handles long lines. | ||
33328 | GREP=$lt_GREP | ||
33329 | |||
33330 | # An ERE matcher. | ||
33331 | EGREP=$lt_EGREP | ||
33332 | |||
33333 | # A literal string matcher. | ||
33334 | FGREP=$lt_FGREP | ||
33335 | |||
33336 | # A BSD- or MS-compatible name lister. | ||
33337 | NM=$lt_NM | ||
33338 | |||
33339 | # Whether we need soft or hard links. | ||
33340 | LN_S=$lt_LN_S | ||
33341 | |||
33342 | # What is the maximum length of a command? | ||
33343 | max_cmd_len=$max_cmd_len | ||
33344 | |||
33345 | # Object file suffix (normally "o"). | ||
33346 | objext=$ac_objext | ||
33347 | |||
33348 | # Executable file suffix (normally ""). | ||
33349 | exeext=$exeext | ||
33350 | |||
33351 | # whether the shell understands "unset". | ||
33352 | lt_unset=$lt_unset | ||
33353 | |||
33354 | # turn spaces into newlines. | ||
33355 | SP2NL=$lt_lt_SP2NL | ||
33356 | |||
33357 | # turn newlines into spaces. | ||
33358 | NL2SP=$lt_lt_NL2SP | ||
33359 | |||
33360 | # How to create reloadable object files. | ||
33361 | reload_flag=$lt_reload_flag | ||
33362 | reload_cmds=$lt_reload_cmds | ||
33363 | |||
33364 | # Method to check whether dependent libraries are shared objects. | ||
33365 | deplibs_check_method=$lt_deplibs_check_method | ||
33366 | |||
33367 | # Command to use when deplibs_check_method == "file_magic". | ||
33368 | file_magic_cmd=$lt_file_magic_cmd | ||
33369 | |||
33370 | # The archiver. | ||
33371 | AR=$lt_AR | ||
33372 | AR_FLAGS=$lt_AR_FLAGS | ||
33373 | |||
33374 | # A symbol stripping program. | ||
33375 | STRIP=$lt_STRIP | ||
33376 | |||
33377 | # Commands used to install an old-style archive. | ||
33378 | RANLIB=$lt_RANLIB | ||
33379 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
33380 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
33381 | |||
33382 | # A C compiler. | ||
33383 | LTCC=$lt_CC | ||
33384 | |||
33385 | # LTCC compiler flags. | ||
33386 | LTCFLAGS=$lt_CFLAGS | ||
33387 | |||
33388 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
33389 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
33390 | |||
33391 | # Transform the output of nm in a proper C declaration. | ||
33392 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
33393 | |||
33394 | # Transform the output of nm in a C name address pair. | ||
33395 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
33396 | |||
33397 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
33398 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
33399 | |||
33400 | # The name of the directory that contains temporary libtool files. | ||
33401 | objdir=$objdir | ||
33402 | |||
33403 | # Shell to use when invoking shell scripts. | ||
33404 | SHELL=$lt_SHELL | ||
33405 | |||
33406 | # An echo program that does not interpret backslashes. | ||
33407 | ECHO=$lt_ECHO | ||
33408 | |||
33409 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
33410 | MAGIC_CMD=$MAGIC_CMD | ||
33411 | |||
33412 | # Must we lock files when doing compilation? | ||
33413 | need_locks=$lt_need_locks | ||
33414 | |||
33415 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
33416 | DSYMUTIL=$lt_DSYMUTIL | ||
33417 | |||
33418 | # Tool to change global to local symbols on Mac OS X. | ||
33419 | NMEDIT=$lt_NMEDIT | ||
33420 | |||
33421 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
33422 | LIPO=$lt_LIPO | ||
33423 | |||
33424 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
33425 | OTOOL=$lt_OTOOL | ||
33426 | |||
33427 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
33428 | OTOOL64=$lt_OTOOL64 | ||
33429 | |||
33430 | # Old archive suffix (normally "a"). | ||
33431 | libext=$libext | ||
33432 | |||
33433 | # Shared library suffix (normally ".so"). | ||
33434 | shrext_cmds=$lt_shrext_cmds | ||
33435 | |||
33436 | # The commands to extract the exported symbol list from a shared archive. | ||
33437 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
33438 | |||
33439 | # Variables whose values should be saved in libtool wrapper scripts and | ||
33440 | # restored at link time. | ||
33441 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
33442 | |||
33443 | # Do we need the "lib" prefix for modules? | ||
33444 | need_lib_prefix=$need_lib_prefix | ||
33445 | |||
33446 | # Do we need a version for libraries? | ||
33447 | need_version=$need_version | ||
33448 | |||
33449 | # Library versioning type. | ||
33450 | version_type=$version_type | ||
33451 | |||
33452 | # Shared library runtime path variable. | ||
33453 | runpath_var=$runpath_var | ||
33454 | |||
33455 | # Shared library path variable. | ||
33456 | shlibpath_var=$shlibpath_var | ||
33457 | |||
33458 | # Is shlibpath searched before the hard-coded library search path? | ||
33459 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
33460 | |||
33461 | # Format of library name prefix. | ||
33462 | libname_spec=$lt_libname_spec | ||
33463 | |||
33464 | # List of archive names. First name is the real one, the rest are links. | ||
33465 | # The last name is the one that the linker finds with -lNAME | ||
33466 | library_names_spec=$lt_library_names_spec | ||
33467 | |||
33468 | # The coded name of the library, if different from the real name. | ||
33469 | soname_spec=$lt_soname_spec | ||
33470 | |||
33471 | # Command to use after installation of a shared archive. | ||
33472 | postinstall_cmds=$lt_postinstall_cmds | ||
33473 | |||
33474 | # Command to use after uninstallation of a shared archive. | ||
33475 | postuninstall_cmds=$lt_postuninstall_cmds | ||
33476 | |||
33477 | # Commands used to finish a libtool library installation in a directory. | ||
33478 | finish_cmds=$lt_finish_cmds | ||
33479 | |||
33480 | # As "finish_cmds", except a single script fragment to be evaled but | ||
33481 | # not shown. | ||
33482 | finish_eval=$lt_finish_eval | ||
33483 | |||
33484 | # Whether we should hardcode library paths into libraries. | ||
33485 | hardcode_into_libs=$hardcode_into_libs | ||
33486 | |||
33487 | # Compile-time system search path for libraries. | ||
33488 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
33489 | |||
33490 | # Run-time system search path for libraries. | ||
33491 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
33492 | |||
33493 | # Whether dlopen is supported. | ||
33494 | dlopen_support=$enable_dlopen | ||
33495 | |||
33496 | # Whether dlopen of programs is supported. | ||
33497 | dlopen_self=$enable_dlopen_self | ||
33498 | |||
33499 | # Whether dlopen of statically linked programs is supported. | ||
33500 | dlopen_self_static=$enable_dlopen_self_static | ||
33501 | |||
33502 | # Commands to strip libraries. | ||
33503 | old_striplib=$lt_old_striplib | ||
33504 | striplib=$lt_striplib | ||
33505 | |||
33506 | |||
33507 | # The linker used to build libraries. | ||
33508 | LD=$lt_LD | ||
33509 | |||
33510 | # Commands used to build an old-style archive. | ||
33511 | old_archive_cmds=$lt_old_archive_cmds | ||
33512 | |||
33513 | # A language specific compiler. | ||
33514 | CC=$lt_compiler | ||
33515 | |||
33516 | # Is the compiler the GNU compiler? | ||
33517 | with_gcc=$GCC | ||
33518 | |||
33519 | # Compiler flag to turn off builtin functions. | ||
33520 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
33521 | |||
33522 | # How to pass a linker flag through the compiler. | ||
33523 | wl=$lt_lt_prog_compiler_wl | ||
33524 | |||
33525 | # Additional compiler flags for building library objects. | ||
33526 | pic_flag=$lt_lt_prog_compiler_pic | ||
33527 | |||
33528 | # Compiler flag to prevent dynamic linking. | ||
33529 | link_static_flag=$lt_lt_prog_compiler_static | ||
33530 | |||
33531 | # Does compiler simultaneously support -c and -o options? | ||
33532 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
33533 | |||
33534 | # Whether or not to add -lc for building shared libraries. | ||
33535 | build_libtool_need_lc=$archive_cmds_need_lc | ||
33536 | |||
33537 | # Whether or not to disallow shared libs when runtime libs are static. | ||
33538 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
33539 | |||
33540 | # Compiler flag to allow reflexive dlopens. | ||
33541 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
33542 | |||
33543 | # Compiler flag to generate shared objects directly from archives. | ||
33544 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
33545 | |||
33546 | # Whether the compiler copes with passing no objects directly. | ||
33547 | compiler_needs_object=$lt_compiler_needs_object | ||
33548 | |||
33549 | # Create an old-style archive from a shared archive. | ||
33550 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
33551 | |||
33552 | # Create a temporary old-style archive to link instead of a shared archive. | ||
33553 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
33554 | |||
33555 | # Commands used to build a shared archive. | ||
33556 | archive_cmds=$lt_archive_cmds | ||
33557 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
33558 | |||
33559 | # Commands used to build a loadable module if different from building | ||
33560 | # a shared archive. | ||
33561 | module_cmds=$lt_module_cmds | ||
33562 | module_expsym_cmds=$lt_module_expsym_cmds | ||
33563 | |||
33564 | # Whether we are building with GNU ld or not. | ||
33565 | with_gnu_ld=$lt_with_gnu_ld | ||
33566 | |||
33567 | # Flag that allows shared libraries with undefined symbols to be built. | ||
33568 | allow_undefined_flag=$lt_allow_undefined_flag | ||
33569 | |||
33570 | # Flag that enforces no undefined symbols. | ||
33571 | no_undefined_flag=$lt_no_undefined_flag | ||
33572 | |||
33573 | # Flag to hardcode \$libdir into a binary during linking. | ||
33574 | # This must work even if \$libdir does not exist | ||
33575 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
33576 | |||
33577 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
33578 | # during linking. This must work even if \$libdir does not exist. | ||
33579 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
33580 | |||
33581 | # Whether we need a single "-rpath" flag with a separated argument. | ||
33582 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
33583 | |||
33584 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
33585 | # DIR into the resulting binary. | ||
33586 | hardcode_direct=$hardcode_direct | ||
33587 | |||
33588 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
33589 | # DIR into the resulting binary and the resulting library dependency is | ||
33590 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
33591 | # library is relocated. | ||
33592 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
33593 | |||
33594 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
33595 | # into the resulting binary. | ||
33596 | hardcode_minus_L=$hardcode_minus_L | ||
33597 | |||
33598 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
33599 | # into the resulting binary. | ||
33600 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
33601 | |||
33602 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
33603 | # into the library and all subsequent libraries and executables linked | ||
33604 | # against it. | ||
33605 | hardcode_automatic=$hardcode_automatic | ||
33606 | |||
33607 | # Set to yes if linker adds runtime paths of dependent libraries | ||
33608 | # to runtime path list. | ||
33609 | inherit_rpath=$inherit_rpath | ||
33610 | |||
33611 | # Whether libtool must link a program against all its dependency libraries. | ||
33612 | link_all_deplibs=$link_all_deplibs | ||
33613 | |||
33614 | # Fix the shell variable \$srcfile for the compiler. | ||
33615 | fix_srcfile_path=$lt_fix_srcfile_path | ||
33616 | |||
33617 | # Set to "yes" if exported symbols are required. | ||
33618 | always_export_symbols=$always_export_symbols | ||
33619 | |||
33620 | # The commands to list exported symbols. | ||
33621 | export_symbols_cmds=$lt_export_symbols_cmds | ||
33622 | |||
33623 | # Symbols that should not be listed in the preloaded symbols. | ||
33624 | exclude_expsyms=$lt_exclude_expsyms | ||
33625 | |||
33626 | # Symbols that must always be exported. | ||
33627 | include_expsyms=$lt_include_expsyms | ||
33628 | |||
33629 | # Commands necessary for linking programs (against libraries) with templates. | ||
33630 | prelink_cmds=$lt_prelink_cmds | ||
33631 | |||
33632 | # Specify filename containing input files. | ||
33633 | file_list_spec=$lt_file_list_spec | ||
33634 | |||
33635 | # How to hardcode a shared library path into an executable. | ||
33636 | hardcode_action=$hardcode_action | ||
33637 | |||
33638 | # The directories searched by this compiler when creating a shared library. | ||
33639 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | ||
33640 | |||
33641 | # Dependencies to place before and after the objects being linked to | ||
33642 | # create a shared library. | ||
33643 | predep_objects=$lt_predep_objects | ||
33644 | postdep_objects=$lt_postdep_objects | ||
33645 | predeps=$lt_predeps | ||
33646 | postdeps=$lt_postdeps | ||
33647 | |||
33648 | # The library search path used internally by the compiler when linking | ||
33649 | # a shared library. | ||
33650 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
33651 | |||
33652 | # ### END LIBTOOL CONFIG | ||
33653 | |||
33654 | _LT_EOF | ||
33655 | |||
33656 | case $host_os in | ||
33657 | aix3*) | ||
33658 | cat <<\_LT_EOF >> "$cfgfile" | ||
33659 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
33660 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
33661 | # vanish in a puff of smoke. | ||
33662 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
33663 | COLLECT_NAMES= | ||
33664 | export COLLECT_NAMES | ||
33665 | fi | ||
33666 | _LT_EOF | ||
33667 | ;; | ||
33668 | esac | ||
33669 | |||
33670 | |||
33671 | ltmain="$ac_aux_dir/ltmain.sh" | ||
33672 | |||
33673 | |||
33674 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
33675 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
33676 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
33677 | # is reportedly fixed, but why not run on old versions too? | ||
33678 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
33679 | || (rm -f "$cfgfile"; exit 1) | ||
33680 | |||
33681 | case $xsi_shell in | ||
33682 | yes) | ||
33683 | cat << \_LT_EOF >> "$cfgfile" | ||
33684 | |||
33685 | # func_dirname file append nondir_replacement | ||
33686 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
33687 | # otherwise set result to NONDIR_REPLACEMENT. | ||
33688 | func_dirname () | ||
33689 | { | ||
33690 | case ${1} in | ||
33691 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
33692 | * ) func_dirname_result="${3}" ;; | ||
33693 | esac | ||
33694 | } | ||
33695 | |||
33696 | # func_basename file | ||
33697 | func_basename () | ||
33698 | { | ||
33699 | func_basename_result="${1##*/}" | ||
33700 | } | ||
33701 | |||
33702 | # func_dirname_and_basename file append nondir_replacement | ||
33703 | # perform func_basename and func_dirname in a single function | ||
33704 | # call: | ||
33705 | # dirname: Compute the dirname of FILE. If nonempty, | ||
33706 | # add APPEND to the result, otherwise set result | ||
33707 | # to NONDIR_REPLACEMENT. | ||
33708 | # value returned in "$func_dirname_result" | ||
33709 | # basename: Compute filename of FILE. | ||
33710 | # value retuned in "$func_basename_result" | ||
33711 | # Implementation must be kept synchronized with func_dirname | ||
33712 | # and func_basename. For efficiency, we do not delegate to | ||
33713 | # those functions but instead duplicate the functionality here. | ||
33714 | func_dirname_and_basename () | ||
33715 | { | ||
33716 | case ${1} in | ||
33717 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
33718 | * ) func_dirname_result="${3}" ;; | ||
33719 | esac | ||
33720 | func_basename_result="${1##*/}" | ||
33721 | } | ||
33722 | |||
33723 | # func_stripname prefix suffix name | ||
33724 | # strip PREFIX and SUFFIX off of NAME. | ||
33725 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
33726 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
33727 | # dot (in which case that matches only a dot). | ||
33728 | func_stripname () | ||
33729 | { | ||
33730 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
33731 | # positional parameters, so assign one to ordinary parameter first. | ||
33732 | func_stripname_result=${3} | ||
33733 | func_stripname_result=${func_stripname_result#"${1}"} | ||
33734 | func_stripname_result=${func_stripname_result%"${2}"} | ||
33735 | } | ||
33736 | |||
33737 | # func_opt_split | ||
33738 | func_opt_split () | ||
33739 | { | ||
33740 | func_opt_split_opt=${1%%=*} | ||
33741 | func_opt_split_arg=${1#*=} | ||
33742 | } | ||
33743 | |||
33744 | # func_lo2o object | ||
33745 | func_lo2o () | ||
33746 | { | ||
33747 | case ${1} in | ||
33748 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
33749 | *) func_lo2o_result=${1} ;; | ||
33750 | esac | ||
33751 | } | ||
33752 | |||
33753 | # func_xform libobj-or-source | ||
33754 | func_xform () | ||
33755 | { | ||
33756 | func_xform_result=${1%.*}.lo | ||
33757 | } | ||
33758 | |||
33759 | # func_arith arithmetic-term... | ||
33760 | func_arith () | ||
33761 | { | ||
33762 | func_arith_result=$(( $* )) | ||
33763 | } | ||
33764 | |||
33765 | # func_len string | ||
33766 | # STRING may not start with a hyphen. | ||
33767 | func_len () | ||
33768 | { | ||
33769 | func_len_result=${#1} | ||
33770 | } | ||
33771 | |||
33772 | _LT_EOF | ||
33773 | ;; | ||
33774 | *) # Bourne compatible functions. | ||
33775 | cat << \_LT_EOF >> "$cfgfile" | ||
33776 | |||
33777 | # func_dirname file append nondir_replacement | ||
33778 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
33779 | # otherwise set result to NONDIR_REPLACEMENT. | ||
33780 | func_dirname () | ||
33781 | { | ||
33782 | # Extract subdirectory from the argument. | ||
33783 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
33784 | if test "X$func_dirname_result" = "X${1}"; then | ||
33785 | func_dirname_result="${3}" | ||
33786 | else | ||
33787 | func_dirname_result="$func_dirname_result${2}" | ||
33788 | fi | ||
33789 | } | ||
33790 | |||
33791 | # func_basename file | ||
33792 | func_basename () | ||
33793 | { | ||
33794 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
33795 | } | ||
33796 | |||
33797 | |||
33798 | # func_stripname prefix suffix name | ||
33799 | # strip PREFIX and SUFFIX off of NAME. | ||
33800 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
33801 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
33802 | # dot (in which case that matches only a dot). | ||
33803 | # func_strip_suffix prefix name | ||
33804 | func_stripname () | ||
33805 | { | ||
33806 | case ${2} in | ||
33807 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
33808 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
33809 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
33810 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
33811 | esac | ||
33812 | } | ||
33813 | |||
33814 | # sed scripts: | ||
33815 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
33816 | my_sed_long_arg='1s/^-[^=]*=//' | ||
33817 | |||
33818 | # func_opt_split | ||
33819 | func_opt_split () | ||
33820 | { | ||
33821 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
33822 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
33823 | } | ||
33824 | |||
33825 | # func_lo2o object | ||
33826 | func_lo2o () | ||
33827 | { | ||
33828 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
33829 | } | ||
33830 | |||
33831 | # func_xform libobj-or-source | ||
33832 | func_xform () | ||
33833 | { | ||
33834 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
33835 | } | ||
33836 | |||
33837 | # func_arith arithmetic-term... | ||
33838 | func_arith () | ||
33839 | { | ||
33840 | func_arith_result=`expr "$@"` | ||
33841 | } | ||
33842 | |||
33843 | # func_len string | ||
33844 | # STRING may not start with a hyphen. | ||
33845 | func_len () | ||
33846 | { | ||
33847 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
33848 | } | ||
33849 | |||
33850 | _LT_EOF | ||
33851 | esac | ||
33852 | |||
33853 | case $lt_shell_append in | ||
33854 | yes) | ||
33855 | cat << \_LT_EOF >> "$cfgfile" | ||
33856 | |||
33857 | # func_append var value | ||
33858 | # Append VALUE to the end of shell variable VAR. | ||
33859 | func_append () | ||
33860 | { | ||
33861 | eval "$1+=\$2" | ||
33862 | } | ||
33863 | _LT_EOF | ||
33864 | ;; | ||
33865 | *) | ||
33866 | cat << \_LT_EOF >> "$cfgfile" | ||
33867 | |||
33868 | # func_append var value | ||
33869 | # Append VALUE to the end of shell variable VAR. | ||
33870 | func_append () | ||
33871 | { | ||
33872 | eval "$1=\$$1\$2" | ||
33873 | } | ||
33874 | |||
33875 | _LT_EOF | ||
33876 | ;; | ||
33877 | esac | ||
33878 | |||
33879 | |||
33880 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
33881 | || (rm -f "$cfgfile"; exit 1) | ||
33882 | |||
33883 | mv -f "$cfgfile" "$ofile" || | ||
33884 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
33885 | chmod +x "$ofile" | ||
33886 | |||
33887 | |||
33888 | cat <<_LT_EOF >> "$ofile" | ||
33889 | |||
33890 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | ||
33891 | |||
33892 | # The linker used to build libraries. | ||
33893 | LD=$lt_LD_CXX | ||
33894 | |||
33895 | # Commands used to build an old-style archive. | ||
33896 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
33897 | |||
33898 | # A language specific compiler. | ||
33899 | CC=$lt_compiler_CXX | ||
33900 | |||
33901 | # Is the compiler the GNU compiler? | ||
33902 | with_gcc=$GCC_CXX | ||
33903 | |||
33904 | # Compiler flag to turn off builtin functions. | ||
33905 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
33906 | |||
33907 | # How to pass a linker flag through the compiler. | ||
33908 | wl=$lt_lt_prog_compiler_wl_CXX | ||
33909 | |||
33910 | # Additional compiler flags for building library objects. | ||
33911 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
33912 | |||
33913 | # Compiler flag to prevent dynamic linking. | ||
33914 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
33915 | |||
33916 | # Does compiler simultaneously support -c and -o options? | ||
33917 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
33918 | |||
33919 | # Whether or not to add -lc for building shared libraries. | ||
33920 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
33921 | |||
33922 | # Whether or not to disallow shared libs when runtime libs are static. | ||
33923 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
33924 | |||
33925 | # Compiler flag to allow reflexive dlopens. | ||
33926 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
33927 | |||
33928 | # Compiler flag to generate shared objects directly from archives. | ||
33929 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
33930 | |||
33931 | # Whether the compiler copes with passing no objects directly. | ||
33932 | compiler_needs_object=$lt_compiler_needs_object_CXX | ||
33933 | |||
33934 | # Create an old-style archive from a shared archive. | ||
33935 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
33936 | |||
33937 | # Create a temporary old-style archive to link instead of a shared archive. | ||
33938 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
33939 | |||
33940 | # Commands used to build a shared archive. | ||
33941 | archive_cmds=$lt_archive_cmds_CXX | ||
33942 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
33943 | |||
33944 | # Commands used to build a loadable module if different from building | ||
33945 | # a shared archive. | ||
33946 | module_cmds=$lt_module_cmds_CXX | ||
33947 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
33948 | |||
33949 | # Whether we are building with GNU ld or not. | ||
33950 | with_gnu_ld=$lt_with_gnu_ld_CXX | ||
33951 | |||
33952 | # Flag that allows shared libraries with undefined symbols to be built. | ||
33953 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
33954 | |||
33955 | # Flag that enforces no undefined symbols. | ||
33956 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
33957 | |||
33958 | # Flag to hardcode \$libdir into a binary during linking. | ||
33959 | # This must work even if \$libdir does not exist | ||
33960 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
33961 | |||
33962 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
33963 | # during linking. This must work even if \$libdir does not exist. | ||
33964 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
33965 | |||
33966 | # Whether we need a single "-rpath" flag with a separated argument. | ||
33967 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
33968 | |||
33969 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
33970 | # DIR into the resulting binary. | ||
33971 | hardcode_direct=$hardcode_direct_CXX | ||
33972 | |||
33973 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
33974 | # DIR into the resulting binary and the resulting library dependency is | ||
33975 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
33976 | # library is relocated. | ||
33977 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | ||
33978 | |||
33979 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
33980 | # into the resulting binary. | ||
33981 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
33982 | |||
33983 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
33984 | # into the resulting binary. | ||
33985 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
33986 | |||
33987 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
33988 | # into the library and all subsequent libraries and executables linked | ||
33989 | # against it. | ||
33990 | hardcode_automatic=$hardcode_automatic_CXX | ||
33991 | |||
33992 | # Set to yes if linker adds runtime paths of dependent libraries | ||
33993 | # to runtime path list. | ||
33994 | inherit_rpath=$inherit_rpath_CXX | ||
33995 | |||
33996 | # Whether libtool must link a program against all its dependency libraries. | ||
33997 | link_all_deplibs=$link_all_deplibs_CXX | ||
33998 | |||
33999 | # Fix the shell variable \$srcfile for the compiler. | ||
34000 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | ||
34001 | |||
34002 | # Set to "yes" if exported symbols are required. | ||
34003 | always_export_symbols=$always_export_symbols_CXX | ||
34004 | |||
34005 | # The commands to list exported symbols. | ||
34006 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
34007 | |||
34008 | # Symbols that should not be listed in the preloaded symbols. | ||
34009 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
34010 | |||
34011 | # Symbols that must always be exported. | ||
34012 | include_expsyms=$lt_include_expsyms_CXX | ||
34013 | |||
34014 | # Commands necessary for linking programs (against libraries) with templates. | ||
34015 | prelink_cmds=$lt_prelink_cmds_CXX | ||
34016 | |||
34017 | # Specify filename containing input files. | ||
34018 | file_list_spec=$lt_file_list_spec_CXX | ||
34019 | |||
34020 | # How to hardcode a shared library path into an executable. | ||
34021 | hardcode_action=$hardcode_action_CXX | ||
34022 | |||
34023 | # The directories searched by this compiler when creating a shared library. | ||
34024 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | ||
34025 | |||
34026 | # Dependencies to place before and after the objects being linked to | ||
34027 | # create a shared library. | ||
34028 | predep_objects=$lt_predep_objects_CXX | ||
34029 | postdep_objects=$lt_postdep_objects_CXX | ||
34030 | predeps=$lt_predeps_CXX | ||
34031 | postdeps=$lt_postdeps_CXX | ||
34032 | |||
34033 | # The library search path used internally by the compiler when linking | ||
34034 | # a shared library. | ||
34035 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
34036 | |||
34037 | # ### END LIBTOOL TAG CONFIG: CXX | ||
34038 | _LT_EOF | ||
34039 | |||
34040 | ;; | ||
34041 | "po-directories":C) | ||
34042 | for ac_file in $CONFIG_FILES; do | ||
34043 | # Support "outfile[:infile[:infile...]]" | ||
34044 | case "$ac_file" in | ||
34045 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
34046 | esac | ||
34047 | # PO directories have a Makefile.in generated from Makefile.in.in. | ||
34048 | case "$ac_file" in */Makefile.in) | ||
34049 | # Adjust a relative srcdir. | ||
34050 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | ||
34051 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | ||
34052 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | ||
34053 | # In autoconf-2.13 it is called $ac_given_srcdir. | ||
34054 | # In autoconf-2.50 it is called $srcdir. | ||
34055 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | ||
34056 | case "$ac_given_srcdir" in | ||
34057 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | ||
34058 | /*) top_srcdir="$ac_given_srcdir" ;; | ||
34059 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
34060 | esac | ||
34061 | # Treat a directory as a PO directory if and only if it has a | ||
34062 | # POTFILES.in file. This allows packages to have multiple PO | ||
34063 | # directories under different names or in different locations. | ||
34064 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | ||
34065 | rm -f "$ac_dir/POTFILES" | ||
34066 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | ||
34067 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | ||
34068 | POMAKEFILEDEPS="POTFILES.in" | ||
34069 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | ||
34070 | # on $ac_dir but don't depend on user-specified configuration | ||
34071 | # parameters. | ||
34072 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | ||
34073 | # The LINGUAS file contains the set of available languages. | ||
34074 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | ||
34075 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | ||
34076 | fi | ||
34077 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | ||
34078 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | ||
34079 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | ||
34080 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | ||
34081 | else | ||
34082 | # The set of available languages was given in configure.in. | ||
34083 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | ||
34084 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | ||
34085 | fi | ||
34086 | # Compute POFILES | ||
34087 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | ||
34088 | # Compute UPDATEPOFILES | ||
34089 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | ||
34090 | # Compute DUMMYPOFILES | ||
34091 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | ||
34092 | # Compute GMOFILES | ||
34093 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | ||
34094 | case "$ac_given_srcdir" in | ||
34095 | .) srcdirpre= ;; | ||
34096 | *) srcdirpre='$(srcdir)/' ;; | ||
34097 | esac | ||
34098 | POFILES= | ||
34099 | UPDATEPOFILES= | ||
34100 | DUMMYPOFILES= | ||
34101 | GMOFILES= | ||
34102 | for lang in $ALL_LINGUAS; do | ||
34103 | POFILES="$POFILES $srcdirpre$lang.po" | ||
34104 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | ||
34105 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | ||
34106 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | ||
34107 | done | ||
34108 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | ||
34109 | # environment variable. | ||
34110 | INST_LINGUAS= | ||
34111 | if test -n "$ALL_LINGUAS"; then | ||
34112 | for presentlang in $ALL_LINGUAS; do | ||
34113 | useit=no | ||
34114 | if test "%UNSET%" != "$LINGUAS"; then | ||
34115 | desiredlanguages="$LINGUAS" | ||
34116 | else | ||
34117 | desiredlanguages="$ALL_LINGUAS" | ||
34118 | fi | ||
34119 | for desiredlang in $desiredlanguages; do | ||
34120 | # Use the presentlang catalog if desiredlang is | ||
34121 | # a. equal to presentlang, or | ||
34122 | # b. a variant of presentlang (because in this case, | ||
34123 | # presentlang can be used as a fallback for messages | ||
34124 | # which are not translated in the desiredlang catalog). | ||
34125 | case "$desiredlang" in | ||
34126 | "$presentlang"*) useit=yes;; | ||
34127 | esac | ||
34128 | done | ||
34129 | if test $useit = yes; then | ||
34130 | INST_LINGUAS="$INST_LINGUAS $presentlang" | ||
34131 | fi | ||
34132 | done | ||
34133 | fi | ||
34134 | CATALOGS= | ||
34135 | if test -n "$INST_LINGUAS"; then | ||
34136 | for lang in $INST_LINGUAS; do | ||
34137 | CATALOGS="$CATALOGS $lang.gmo" | ||
34138 | done | ||
34139 | fi | ||
34140 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | ||
34141 | 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" | ||
34142 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | ||
34143 | if test -f "$f"; then | ||
34144 | case "$f" in | ||
34145 | *.orig | *.bak | *~) ;; | ||
34146 | *) cat "$f" >> "$ac_dir/Makefile" ;; | ||
34147 | esac | ||
34148 | fi | ||
34149 | done | ||
34150 | fi | ||
34151 | ;; | ||
34152 | esac | ||
34153 | done ;; | ||
34154 | |||
34155 | esac | ||
34156 | done # for ac_tag | ||
34157 | |||
34158 | |||
34159 | as_fn_exit 0 | ||
34160 | _ACEOF | ||
34161 | ac_clean_files=$ac_clean_files_save | ||
34162 | |||
34163 | test $ac_write_fail = 0 || | ||
34164 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
34165 | |||
34166 | |||
34167 | # configure is writing to config.log, and then calls config.status. | ||
34168 | # config.status does its own redirection, appending to config.log. | ||
34169 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
34170 | # by configure, so config.status won't be able to write to it; its | ||
34171 | # output is simply discarded. So we exec the FD to /dev/null, | ||
34172 | # effectively closing config.log, so it can be properly (re)opened and | ||
34173 | # appended to by config.status. When coming back to configure, we | ||
34174 | # need to make the FD available again. | ||
34175 | if test "$no_create" != yes; then | ||
34176 | ac_cs_success=: | ||
34177 | ac_config_status_args= | ||
34178 | test "$silent" = yes && | ||
34179 | ac_config_status_args="$ac_config_status_args --quiet" | ||
34180 | exec 5>/dev/null | ||
34181 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
34182 | exec 5>>config.log | ||
34183 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
34184 | # would make configure fail if this is the last instruction. | ||
34185 | $ac_cs_success || as_fn_exit 1 | ||
34186 | fi | ||
34187 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
34188 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
34189 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
34190 | fi | ||
34191 | |||
34192 | |||
34193 | echo | ||
34194 | echo "$PACKAGE $VERSION" | ||
34195 | echo | ||
34196 | echo "Optional Modules:" | ||
34197 | echo | ||
34198 | echo " Core:" | ||
34199 | echo | ||
34200 | echo " Ecore........................: always" | ||
34201 | echo " Thread support.............: $have_threads" | ||
34202 | echo " Thread safety..............: $want_thread_safety" | ||
34203 | echo " GLib support...............: $have_glib" | ||
34204 | echo " Always integrate GLib......: $want_glib_integration_always" | ||
34205 | echo " Use g_main_loop............: $want_g_main_loop" | ||
34206 | echo " Gathering memory statistic.: $have_mallinfo" | ||
34207 | echo " Gathering timer allocation.: $want_ecore_timer_dump" | ||
34208 | echo " Ecore_Con....................: $have_ecore_con" | ||
34209 | if test "x$have_ecore_con" = "xyes" ; then | ||
34210 | echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C" | ||
34211 | if test "x$have_gnutls" = "xyes" ; then | ||
34212 | echo " (disabled)" | ||
34213 | else | ||
34214 | echo | ||
34215 | fi | ||
34216 | echo " IPv6.......................: $have_ipv6" | ||
34217 | echo " GnuTLS.....................: $have_gnutls" | ||
34218 | echo " CURL.......................: $have_curl" | ||
34219 | echo " Local Sockets..............: $want_ecore_con_local_sockets" | ||
34220 | if test "x$want_ecore_con_local_sockets" = "xyes" ; then | ||
34221 | echo " Abstract Sockets.........: $want_ecore_con_abstract_sockets" | ||
34222 | fi | ||
34223 | echo " c-ares.....................: $have_cares" | ||
34224 | fi | ||
34225 | echo " Ecore_Ipc....................: $have_ecore_ipc" | ||
34226 | if test "x$have_ecore_ipc" = "xyes" ; then | ||
34227 | echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C" | ||
34228 | if test "x$have_gnutls" = "xyes" ; then | ||
34229 | echo " (disabled)" | ||
34230 | else | ||
34231 | echo | ||
34232 | fi | ||
34233 | echo " GnuTLS.....................: $have_gnutls" | ||
34234 | fi | ||
34235 | echo " Ecore_File...................: $have_ecore_file" | ||
34236 | if test "x$have_ecore_file" = "xyes" ; then | ||
34237 | echo " Inotify....................: $have_inotify" | ||
34238 | echo " Windows notification.......: $have_notify_win32" | ||
34239 | echo " Poll.......................: $have_poll" | ||
34240 | echo " CURL.......................: $have_curl" | ||
34241 | fi | ||
34242 | #echo " Ecore_Config.................: $have_ecore_config (deprecated)" | ||
34243 | echo " Ecore_IMF....................: $have_ecore_imf" | ||
34244 | echo " XIM........................: $have_ecore_imf_xim" | ||
34245 | echo " SCIM.......................: $have_ecore_imf_scim" | ||
34246 | echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas" | ||
34247 | echo " Ecore_Input..................: $have_ecore_input" | ||
34248 | echo " Ecore_Input_Evas.............: $have_ecore_input_evas" | ||
34249 | |||
34250 | echo | ||
34251 | echo " Graphic systems:" | ||
34252 | echo | ||
34253 | |||
34254 | if test "x$have_ecore_x" = "xyes" ; then | ||
34255 | if test "x$have_ecore_x_xcb" = "xyes" ; then | ||
34256 | echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb" | ||
34257 | echo " Xprint.....................: $have_ecore_x_xcb_xprint" | ||
34258 | echo " Xinerama...................: $have_ecore_x_xcb_xinerama" | ||
34259 | echo " Xrandr.....................: $have_ecore_x_xcb_randr" | ||
34260 | echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver" | ||
34261 | echo " Xshape.....................: $have_ecore_x_xcb_shape" | ||
34262 | echo " Xgesture...................: $have_ecore_x_xcb_gesture" | ||
34263 | echo " Xsync......................: $have_ecore_x_xcb_sync" | ||
34264 | echo " Xrender....................: $have_ecore_x_xcb_render" | ||
34265 | echo " Xcomposite.................: $have_ecore_x_xcb_composite" | ||
34266 | echo " Xfixes.....................: $have_ecore_x_xcb_xfixes" | ||
34267 | echo " Xdamage....................: $have_ecore_x_xcb_damage" | ||
34268 | echo " Xdpms......................: $have_ecore_x_xcb_dpms" | ||
34269 | echo " Xtest......................: $have_ecore_x_xcb_xtest" | ||
34270 | else | ||
34271 | echo " Ecore_X (Xlib backend).......: $have_ecore_x" | ||
34272 | echo " Xcursor....................: $use_Xcursor" | ||
34273 | echo " Xkb........................: $use_xkb" | ||
34274 | echo " Xprint.....................: $use_xprint" | ||
34275 | echo " Xinerama...................: $use_xinerama" | ||
34276 | echo " Xrandr.....................: $use_xrandr" | ||
34277 | echo " Xgesture...................: $use_xgesture" | ||
34278 | echo " Xscreensaver...............: $use_xss" | ||
34279 | echo " Xrender....................: $use_xrender" | ||
34280 | echo " Xcomposite.................: $use_xcomposite" | ||
34281 | echo " Xfixes.....................: $use_xfixes" | ||
34282 | echo " Xdamage....................: $use_xdamage" | ||
34283 | echo " Xdpms......................: $use_xdpms" | ||
34284 | echo " Xtest......................: $use_xtest" | ||
34285 | echo " XIM........................: $want_xim" | ||
34286 | echo " Xi2........................: $use_xi2" | ||
34287 | fi | ||
34288 | else | ||
34289 | echo " Ecore_X......................: $have_ecore_x" | ||
34290 | fi | ||
34291 | echo " Ecore_Win32..................: $have_ecore_win32" | ||
34292 | echo " Ecore_Cocoa..................: $have_ecore_cocoa" | ||
34293 | echo " Ecore_SDL....................: $have_ecore_sdl" | ||
34294 | echo " Ecore_FB.....................: $have_ecore_fb" | ||
34295 | if test "x${have_ecore_fb}" = "xyes" ; then | ||
34296 | echo " Touchscreen................: $have_tslib" | ||
34297 | fi | ||
34298 | echo " Ecore_DirectFB...............: $have_ecore_directfb" | ||
34299 | echo " Ecore_WinCE..................: $have_ecore_wince" | ||
34300 | echo " Ecore_PSL1GHT................: $have_ecore_psl1ght" | ||
34301 | echo " Ecore_Wayland................: $have_ecore_wayland" | ||
34302 | |||
34303 | echo | ||
34304 | echo " Ecore Evas:" | ||
34305 | echo | ||
34306 | |||
34307 | echo " Ecore_Evas...................: $have_ecore_evas" | ||
34308 | if test "x${have_ecore_evas}" = "xyes" ; then | ||
34309 | echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer" | ||
34310 | if test "x${have_ecore_evas_software_x11}" = "xyes" ; then | ||
34311 | echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})" | ||
34312 | else | ||
34313 | echo " Software X11...............: $have_ecore_evas_software_x11" | ||
34314 | fi | ||
34315 | if test "x${have_ecore_evas_opengl_x11}" = "xyes" ; then | ||
34316 | echo " OpenGL X11.................: $have_ecore_evas_opengl_x11 (Xlib=${have_ecore_evas_opengl_xlib}) (XCB=${have_ecore_evas_opengl_xcb})" | ||
34317 | else | ||
34318 | echo " OpenGL X11.................: $have_ecore_evas_opengl_x11" | ||
34319 | fi | ||
34320 | echo " Software GDI...............: $have_ecore_evas_software_gdi" | ||
34321 | echo " Software DirectDraw........: $have_ecore_evas_software_ddraw" | ||
34322 | echo " Direct3D...................: $have_ecore_evas_direct3d" | ||
34323 | echo " OpenGL Glew................: $have_ecore_evas_opengl_glew" | ||
34324 | echo " Software SDL...............: $have_ecore_evas_software_sdl" | ||
34325 | echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl" | ||
34326 | echo " OpenGL Cocoa...............: $have_ecore_evas_opengl_cocoa" | ||
34327 | echo " DirectFB...................: $have_ecore_evas_directfb" | ||
34328 | echo " PSL1GHT....................: $have_ecore_evas_psl1ght" | ||
34329 | echo " Software Framebuffer.......: $have_ecore_evas_fb" | ||
34330 | echo " Software 8bit grayscale XCB: $have_ecore_evas_software_8_x11" | ||
34331 | echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11" | ||
34332 | echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw" | ||
34333 | echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince" | ||
34334 | echo " Sing.Proc. Windowing System: $have_ecore_evas_ews" | ||
34335 | echo " Wayland Shm................: $have_ecore_evas_wayland_shm" | ||
34336 | echo " Wayland Egl................: $have_ecore_evas_wayland_egl" | ||
34337 | echo " Extn (Plug/socket Extn)....: $have_ecore_evas_extn" | ||
34338 | fi | ||
34339 | echo | ||
34340 | echo " Tests................: ${enable_tests}" | ||
34341 | echo " Maximum log level....: ${with_max_log_level}" | ||
34342 | echo "Documentation..........: ${build_doc}" | ||
34343 | echo | ||
34344 | echo "Compilation............: make (or gmake)" | ||
34345 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
34346 | echo " CFLAGS...............: $CFLAGS" | ||
34347 | echo " CXXFLAGS.............: $CXXFLAGS" | ||
34348 | echo " LDFLAGS..............: $LDFLAGS" | ||
34349 | echo | ||
34350 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
34351 | echo " prefix...............: $prefix" | ||
34352 | echo | ||