diff options
Diffstat (limited to 'libraries/eet/configure')
-rwxr-xr-x | libraries/eet/configure | 16602 |
1 files changed, 16602 insertions, 0 deletions
diff --git a/libraries/eet/configure b/libraries/eet/configure new file mode 100755 index 0000000..a3dddde --- /dev/null +++ b/libraries/eet/configure | |||
@@ -0,0 +1,16602 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for eet 1.5.0. | ||
4 | # | ||
5 | # Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
6 | # | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
10 | # Foundation, Inc. | ||
11 | # | ||
12 | # | ||
13 | # This configure script is free software; the Free Software Foundation | ||
14 | # gives unlimited permission to copy, distribute and modify it. | ||
15 | ## -------------------- ## | ||
16 | ## M4sh Initialization. ## | ||
17 | ## -------------------- ## | ||
18 | |||
19 | # Be more Bourne compatible | ||
20 | DUALCASE=1; export DUALCASE # for MKS sh | ||
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
22 | emulate sh | ||
23 | NULLCMD=: | ||
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
25 | # is contrary to our usage. Disable this feature. | ||
26 | alias -g '${1+"$@"}'='"$@"' | ||
27 | setopt NO_GLOB_SUBST | ||
28 | else | ||
29 | case `(set -o) 2>/dev/null` in #( | ||
30 | *posix*) : | ||
31 | set -o posix ;; #( | ||
32 | *) : | ||
33 | ;; | ||
34 | esac | ||
35 | fi | ||
36 | |||
37 | |||
38 | as_nl=' | ||
39 | ' | ||
40 | export as_nl | ||
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
46 | # but without wasting forks for bash or zsh. | ||
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
49 | as_echo='print -r --' | ||
50 | as_echo_n='print -rn --' | ||
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
52 | as_echo='printf %s\n' | ||
53 | as_echo_n='printf %s' | ||
54 | else | ||
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
57 | as_echo_n='/usr/ucb/echo -n' | ||
58 | else | ||
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
60 | as_echo_n_body='eval | ||
61 | arg=$1; | ||
62 | case $arg in #( | ||
63 | *"$as_nl"*) | ||
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
66 | esac; | ||
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
68 | ' | ||
69 | export as_echo_n_body | ||
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
71 | fi | ||
72 | export as_echo_body | ||
73 | as_echo='sh -c $as_echo_body as_echo' | ||
74 | fi | ||
75 | |||
76 | # The user is always right. | ||
77 | if test "${PATH_SEPARATOR+set}" != set; then | ||
78 | PATH_SEPARATOR=: | ||
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
81 | PATH_SEPARATOR=';' | ||
82 | } | ||
83 | fi | ||
84 | |||
85 | |||
86 | # IFS | ||
87 | # We need space, tab and new line, in precisely that order. Quoting is | ||
88 | # there to prevent editors from complaining about space-tab. | ||
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
90 | # splitting by setting IFS to empty value.) | ||
91 | IFS=" "" $as_nl" | ||
92 | |||
93 | # Find who we are. Look in the path if we contain no directory separator. | ||
94 | case $0 in #(( | ||
95 | *[\\/]* ) as_myself=$0 ;; | ||
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
97 | for as_dir in $PATH | ||
98 | do | ||
99 | IFS=$as_save_IFS | ||
100 | test -z "$as_dir" && as_dir=. | ||
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
102 | done | ||
103 | IFS=$as_save_IFS | ||
104 | |||
105 | ;; | ||
106 | esac | ||
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
108 | # in which case we are not to be found in the path. | ||
109 | if test "x$as_myself" = x; then | ||
110 | as_myself=$0 | ||
111 | fi | ||
112 | if test ! -f "$as_myself"; then | ||
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
114 | exit 1 | ||
115 | fi | ||
116 | |||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
119 | # suppresses any "Segmentation fault" message there. '((' could | ||
120 | # trigger a bug in pdksh 5.2.14. | ||
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
122 | do eval test x\${$as_var+set} = xset \ | ||
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
124 | done | ||
125 | PS1='$ ' | ||
126 | PS2='> ' | ||
127 | PS4='+ ' | ||
128 | |||
129 | # NLS nuisances. | ||
130 | LC_ALL=C | ||
131 | export LC_ALL | ||
132 | LANGUAGE=C | ||
133 | export LANGUAGE | ||
134 | |||
135 | # CDPATH. | ||
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
137 | |||
138 | if test "x$CONFIG_SHELL" = x; then | ||
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
140 | emulate sh | ||
141 | NULLCMD=: | ||
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
143 | # is contrary to our usage. Disable this feature. | ||
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
145 | setopt NO_GLOB_SUBST | ||
146 | else | ||
147 | case \`(set -o) 2>/dev/null\` in #( | ||
148 | *posix*) : | ||
149 | set -o posix ;; #( | ||
150 | *) : | ||
151 | ;; | ||
152 | esac | ||
153 | fi | ||
154 | " | ||
155 | as_required="as_fn_return () { (exit \$1); } | ||
156 | as_fn_success () { as_fn_return 0; } | ||
157 | as_fn_failure () { as_fn_return 1; } | ||
158 | as_fn_ret_success () { return 0; } | ||
159 | as_fn_ret_failure () { return 1; } | ||
160 | |||
161 | exitcode=0 | ||
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
167 | |||
168 | else | ||
169 | exitcode=1; echo positional parameters were not saved. | ||
170 | fi | ||
171 | test x\$exitcode = x0 || exit 1" | ||
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
176 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
177 | if (eval "$as_required") 2>/dev/null; then : | ||
178 | as_have_required=yes | ||
179 | else | ||
180 | as_have_required=no | ||
181 | fi | ||
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
183 | |||
184 | else | ||
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
186 | as_found=false | ||
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
188 | do | ||
189 | IFS=$as_save_IFS | ||
190 | test -z "$as_dir" && as_dir=. | ||
191 | as_found=: | ||
192 | case $as_dir in #( | ||
193 | /*) | ||
194 | for as_base in sh bash ksh sh5; do | ||
195 | # Try only shells that exist, to save several forks. | ||
196 | as_shell=$as_dir/$as_base | ||
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
199 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | break 2 | ||
202 | fi | ||
203 | fi | ||
204 | done;; | ||
205 | esac | ||
206 | as_found=false | ||
207 | done | ||
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
210 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
211 | fi; } | ||
212 | IFS=$as_save_IFS | ||
213 | |||
214 | |||
215 | if test "x$CONFIG_SHELL" != x; then : | ||
216 | # We cannot yet assume a decent shell, so we have to provide a | ||
217 | # neutralization value for shells without unset; and this also | ||
218 | # works around shells that cannot unset nonexistent variables. | ||
219 | BASH_ENV=/dev/null | ||
220 | ENV=/dev/null | ||
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
222 | export CONFIG_SHELL | ||
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
224 | fi | ||
225 | |||
226 | if test x$as_have_required = xno; then : | ||
227 | $as_echo "$0: This script requires a shell more modern than all" | ||
228 | $as_echo "$0: the shells that I found on your system." | ||
229 | if test x${ZSH_VERSION+set} = xset ; then | ||
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
232 | else | ||
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
234 | $0: enlightenment-devel@lists.sourceforge.net about your | ||
235 | $0: system, including any error possibly output before this | ||
236 | $0: message. Then install a modern shell, or manually run | ||
237 | $0: the script under such a shell if you do have one." | ||
238 | fi | ||
239 | exit 1 | ||
240 | fi | ||
241 | fi | ||
242 | fi | ||
243 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
244 | export SHELL | ||
245 | # Unset more variables known to interfere with behavior of common tools. | ||
246 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
247 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
248 | |||
249 | ## --------------------- ## | ||
250 | ## M4sh Shell Functions. ## | ||
251 | ## --------------------- ## | ||
252 | # as_fn_unset VAR | ||
253 | # --------------- | ||
254 | # Portably unset VAR. | ||
255 | as_fn_unset () | ||
256 | { | ||
257 | { eval $1=; unset $1;} | ||
258 | } | ||
259 | as_unset=as_fn_unset | ||
260 | |||
261 | # as_fn_set_status STATUS | ||
262 | # ----------------------- | ||
263 | # Set $? to STATUS, without forking. | ||
264 | as_fn_set_status () | ||
265 | { | ||
266 | return $1 | ||
267 | } # as_fn_set_status | ||
268 | |||
269 | # as_fn_exit STATUS | ||
270 | # ----------------- | ||
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
272 | as_fn_exit () | ||
273 | { | ||
274 | set +e | ||
275 | as_fn_set_status $1 | ||
276 | exit $1 | ||
277 | } # as_fn_exit | ||
278 | |||
279 | # as_fn_mkdir_p | ||
280 | # ------------- | ||
281 | # Create "$as_dir" as a directory, including parents if necessary. | ||
282 | as_fn_mkdir_p () | ||
283 | { | ||
284 | |||
285 | case $as_dir in #( | ||
286 | -*) as_dir=./$as_dir;; | ||
287 | esac | ||
288 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
289 | as_dirs= | ||
290 | while :; do | ||
291 | case $as_dir in #( | ||
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
293 | *) as_qdir=$as_dir;; | ||
294 | esac | ||
295 | as_dirs="'$as_qdir' $as_dirs" | ||
296 | as_dir=`$as_dirname -- "$as_dir" || | ||
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
299 | X"$as_dir" : 'X\(//\)$' \| \ | ||
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
301 | $as_echo X"$as_dir" | | ||
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
303 | s//\1/ | ||
304 | q | ||
305 | } | ||
306 | /^X\(\/\/\)[^/].*/{ | ||
307 | s//\1/ | ||
308 | q | ||
309 | } | ||
310 | /^X\(\/\/\)$/{ | ||
311 | s//\1/ | ||
312 | q | ||
313 | } | ||
314 | /^X\(\/\).*/{ | ||
315 | s//\1/ | ||
316 | q | ||
317 | } | ||
318 | s/.*/./; q'` | ||
319 | test -d "$as_dir" && break | ||
320 | done | ||
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
323 | |||
324 | |||
325 | } # as_fn_mkdir_p | ||
326 | # as_fn_append VAR VALUE | ||
327 | # ---------------------- | ||
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
329 | # advantage of any shell optimizations that allow amortized linear growth over | ||
330 | # repeated appends, instead of the typical quadratic growth present in naive | ||
331 | # implementations. | ||
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
333 | eval 'as_fn_append () | ||
334 | { | ||
335 | eval $1+=\$2 | ||
336 | }' | ||
337 | else | ||
338 | as_fn_append () | ||
339 | { | ||
340 | eval $1=\$$1\$2 | ||
341 | } | ||
342 | fi # as_fn_append | ||
343 | |||
344 | # as_fn_arith ARG... | ||
345 | # ------------------ | ||
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
348 | # must be portable across $(()) and expr. | ||
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
350 | eval 'as_fn_arith () | ||
351 | { | ||
352 | as_val=$(( $* )) | ||
353 | }' | ||
354 | else | ||
355 | as_fn_arith () | ||
356 | { | ||
357 | as_val=`expr "$@" || test $? -eq 1` | ||
358 | } | ||
359 | fi # as_fn_arith | ||
360 | |||
361 | |||
362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
363 | # ---------------------------------------- | ||
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
366 | # script with STATUS, using 1 if that was 0. | ||
367 | as_fn_error () | ||
368 | { | ||
369 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
370 | if test "$4"; then | ||
371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
373 | fi | ||
374 | $as_echo "$as_me: error: $2" >&2 | ||
375 | as_fn_exit $as_status | ||
376 | } # as_fn_error | ||
377 | |||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
380 | as_expr=expr | ||
381 | else | ||
382 | as_expr=false | ||
383 | fi | ||
384 | |||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
386 | as_basename=basename | ||
387 | else | ||
388 | as_basename=false | ||
389 | fi | ||
390 | |||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
392 | as_dirname=dirname | ||
393 | else | ||
394 | as_dirname=false | ||
395 | fi | ||
396 | |||
397 | as_me=`$as_basename -- "$0" || | ||
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
399 | X"$0" : 'X\(//\)$' \| \ | ||
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
401 | $as_echo X/"$0" | | ||
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
403 | s//\1/ | ||
404 | q | ||
405 | } | ||
406 | /^X\/\(\/\/\)$/{ | ||
407 | s//\1/ | ||
408 | q | ||
409 | } | ||
410 | /^X\/\(\/\).*/{ | ||
411 | s//\1/ | ||
412 | q | ||
413 | } | ||
414 | s/.*/./; q'` | ||
415 | |||
416 | # Avoid depending upon Character Ranges. | ||
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
420 | as_cr_digits='0123456789' | ||
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
422 | |||
423 | |||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
429 | sed -n ' | ||
430 | p | ||
431 | /[$]LINENO/= | ||
432 | ' <$as_myself | | ||
433 | sed ' | ||
434 | s/[$]LINENO.*/&-/ | ||
435 | t lineno | ||
436 | b | ||
437 | :lineno | ||
438 | N | ||
439 | :loop | ||
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
441 | t loop | ||
442 | s/-\n.*// | ||
443 | ' >$as_me.lineno && | ||
444 | chmod +x "$as_me.lineno" || | ||
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
446 | |||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
448 | # (the dirname of $[0] is not the place where we might find the | ||
449 | # original and so on. Autoconf is especially sensitive to this). | ||
450 | . "./$as_me.lineno" | ||
451 | # Exit status is that of the last command. | ||
452 | exit | ||
453 | } | ||
454 | |||
455 | ECHO_C= ECHO_N= ECHO_T= | ||
456 | case `echo -n x` in #((((( | ||
457 | -n*) | ||
458 | case `echo 'xy\c'` in | ||
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
460 | xy) ECHO_C='\c';; | ||
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
462 | ECHO_T=' ';; | ||
463 | esac;; | ||
464 | *) | ||
465 | ECHO_N='-n';; | ||
466 | esac | ||
467 | |||
468 | rm -f conf$$ conf$$.exe conf$$.file | ||
469 | if test -d conf$$.dir; then | ||
470 | rm -f conf$$.dir/conf$$.file | ||
471 | else | ||
472 | rm -f conf$$.dir | ||
473 | mkdir conf$$.dir 2>/dev/null | ||
474 | fi | ||
475 | if (echo >conf$$.file) 2>/dev/null; then | ||
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
477 | as_ln_s='ln -s' | ||
478 | # ... but there are two gotchas: | ||
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
481 | # In both cases, we have to default to `cp -p'. | ||
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
483 | as_ln_s='cp -p' | ||
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
485 | as_ln_s=ln | ||
486 | else | ||
487 | as_ln_s='cp -p' | ||
488 | fi | ||
489 | else | ||
490 | as_ln_s='cp -p' | ||
491 | fi | ||
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
493 | rmdir conf$$.dir 2>/dev/null | ||
494 | |||
495 | if mkdir -p . 2>/dev/null; then | ||
496 | as_mkdir_p='mkdir -p "$as_dir"' | ||
497 | else | ||
498 | test -d ./-p && rmdir ./-p | ||
499 | as_mkdir_p=false | ||
500 | fi | ||
501 | |||
502 | if test -x / >/dev/null 2>&1; then | ||
503 | as_test_x='test -x' | ||
504 | else | ||
505 | if ls -dL / >/dev/null 2>&1; then | ||
506 | as_ls_L_option=L | ||
507 | else | ||
508 | as_ls_L_option= | ||
509 | fi | ||
510 | as_test_x=' | ||
511 | eval sh -c '\'' | ||
512 | if test -d "$1"; then | ||
513 | test -d "$1/."; | ||
514 | else | ||
515 | case $1 in #( | ||
516 | -*)set "./$1";; | ||
517 | esac; | ||
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
519 | ???[sx]*):;;*)false;;esac;fi | ||
520 | '\'' sh | ||
521 | ' | ||
522 | fi | ||
523 | as_executable_p=$as_test_x | ||
524 | |||
525 | # Sed expression to map a string onto a valid CPP name. | ||
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
527 | |||
528 | # Sed expression to map a string onto a valid variable name. | ||
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
530 | |||
531 | |||
532 | |||
533 | # Check that we are running under the correct shell. | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
535 | |||
536 | case X$lt_ECHO in | ||
537 | X*--fallback-echo) | ||
538 | # Remove one level of quotation (which was required for Make). | ||
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
540 | ;; | ||
541 | esac | ||
542 | |||
543 | ECHO=${lt_ECHO-echo} | ||
544 | if test "X$1" = X--no-reexec; then | ||
545 | # Discard the --no-reexec flag, and continue. | ||
546 | shift | ||
547 | elif test "X$1" = X--fallback-echo; then | ||
548 | # Avoid inline document here, it may be left over | ||
549 | : | ||
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
551 | # Yippee, $ECHO works! | ||
552 | : | ||
553 | else | ||
554 | # Restart under the correct shell. | ||
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
556 | fi | ||
557 | |||
558 | if test "X$1" = X--fallback-echo; then | ||
559 | # used as fallback echo | ||
560 | shift | ||
561 | cat <<_LT_EOF | ||
562 | $* | ||
563 | _LT_EOF | ||
564 | exit 0 | ||
565 | fi | ||
566 | |||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
568 | # if CDPATH is set. | ||
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
570 | |||
571 | if test -z "$lt_ECHO"; then | ||
572 | if test "X${echo_test_string+set}" != Xset; then | ||
573 | # find a string as large as possible, as long as the shell can cope with it | ||
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
578 | then | ||
579 | break | ||
580 | fi | ||
581 | done | ||
582 | fi | ||
583 | |||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
587 | : | ||
588 | else | ||
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
590 | # backslashes. This makes it impossible to quote backslashes using | ||
591 | # echo "$something" | sed 's/\\/\\\\/g' | ||
592 | # | ||
593 | # So, first we look for a working echo in the user's PATH. | ||
594 | |||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
596 | for dir in $PATH /usr/ucb; do | ||
597 | IFS="$lt_save_ifs" | ||
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
602 | ECHO="$dir/echo" | ||
603 | break | ||
604 | fi | ||
605 | done | ||
606 | IFS="$lt_save_ifs" | ||
607 | |||
608 | if test "X$ECHO" = Xecho; then | ||
609 | # We didn't find a better echo, so look for alternatives. | ||
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
613 | # This shell has a builtin print -r that does the trick. | ||
614 | ECHO='print -r' | ||
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
617 | # If we have ksh, try running configure again with it. | ||
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
619 | export ORIGINAL_CONFIG_SHELL | ||
620 | CONFIG_SHELL=/bin/ksh | ||
621 | export CONFIG_SHELL | ||
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
623 | else | ||
624 | # Try using printf. | ||
625 | ECHO='printf %s\n' | ||
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
629 | # Cool, printf works | ||
630 | : | ||
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
632 | test "X$echo_testing_string" = 'X\t' && | ||
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
636 | export CONFIG_SHELL | ||
637 | SHELL="$CONFIG_SHELL" | ||
638 | export SHELL | ||
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
641 | test "X$echo_testing_string" = 'X\t' && | ||
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
645 | else | ||
646 | # maybe with a smaller string... | ||
647 | prev=: | ||
648 | |||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
651 | then | ||
652 | break | ||
653 | fi | ||
654 | prev="$cmd" | ||
655 | done | ||
656 | |||
657 | if test "$prev" != 'sed 50q "$0"'; then | ||
658 | echo_test_string=`eval $prev` | ||
659 | export echo_test_string | ||
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
661 | else | ||
662 | # Oops. We lost completely, so just stick with echo. | ||
663 | ECHO=echo | ||
664 | fi | ||
665 | fi | ||
666 | fi | ||
667 | fi | ||
668 | fi | ||
669 | fi | ||
670 | |||
671 | # Copy echo and quote the copy suitably for passing to libtool from | ||
672 | # the Makefile, instead of quoting the original, which is used later. | ||
673 | lt_ECHO=$ECHO | ||
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
676 | fi | ||
677 | |||
678 | |||
679 | |||
680 | |||
681 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
682 | exec 6>&1 | ||
683 | |||
684 | # Name of the host. | ||
685 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
686 | # so uname gets run too. | ||
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
688 | |||
689 | # | ||
690 | # Initializations. | ||
691 | # | ||
692 | ac_default_prefix=/usr/local | ||
693 | ac_clean_files= | ||
694 | ac_config_libobj_dir=. | ||
695 | LIBOBJS= | ||
696 | cross_compiling=no | ||
697 | subdirs= | ||
698 | MFLAGS= | ||
699 | MAKEFLAGS= | ||
700 | |||
701 | # Identity of this package. | ||
702 | PACKAGE_NAME='eet' | ||
703 | PACKAGE_TARNAME='eet' | ||
704 | PACKAGE_VERSION='1.5.0' | ||
705 | PACKAGE_STRING='eet 1.5.0' | ||
706 | PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net' | ||
707 | PACKAGE_URL='' | ||
708 | |||
709 | ac_unique_file="configure.ac" | ||
710 | # Factoring default headers for most tests. | ||
711 | ac_includes_default="\ | ||
712 | #include <stdio.h> | ||
713 | #ifdef HAVE_SYS_TYPES_H | ||
714 | # include <sys/types.h> | ||
715 | #endif | ||
716 | #ifdef HAVE_SYS_STAT_H | ||
717 | # include <sys/stat.h> | ||
718 | #endif | ||
719 | #ifdef STDC_HEADERS | ||
720 | # include <stdlib.h> | ||
721 | # include <stddef.h> | ||
722 | #else | ||
723 | # ifdef HAVE_STDLIB_H | ||
724 | # include <stdlib.h> | ||
725 | # endif | ||
726 | #endif | ||
727 | #ifdef HAVE_STRING_H | ||
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
729 | # include <memory.h> | ||
730 | # endif | ||
731 | # include <string.h> | ||
732 | #endif | ||
733 | #ifdef HAVE_STRINGS_H | ||
734 | # include <strings.h> | ||
735 | #endif | ||
736 | #ifdef HAVE_INTTYPES_H | ||
737 | # include <inttypes.h> | ||
738 | #endif | ||
739 | #ifdef HAVE_STDINT_H | ||
740 | # include <stdint.h> | ||
741 | #endif | ||
742 | #ifdef HAVE_UNISTD_H | ||
743 | # include <unistd.h> | ||
744 | #endif" | ||
745 | |||
746 | ac_subst_vars='am__EXEEXT_FALSE | ||
747 | am__EXEEXT_TRUE | ||
748 | LTLIBOBJS | ||
749 | LIBOBJS | ||
750 | requirement_eet | ||
751 | EFL_FNMATCH_LIBS | ||
752 | ALLOCA | ||
753 | lt_enable_auto_import | ||
754 | EET_CFLAGS | ||
755 | EET_CPPFLAGS | ||
756 | OPENSSL_LIBS | ||
757 | OPENSSL_CFLAGS | ||
758 | LIBGCRYPT_LIBS | ||
759 | LIBGCRYPT_CFLAGS | ||
760 | LIBGCRYPT_CONFIG | ||
761 | GNUTLS_LIBS | ||
762 | GNUTLS_CFLAGS | ||
763 | EINA_LIBS | ||
764 | EINA_CFLAGS | ||
765 | EET_LIBS | ||
766 | EFL_EET_BUILD | ||
767 | EVIL_LIBS | ||
768 | EVIL_CFLAGS | ||
769 | EFL_BUILD_DOC_FALSE | ||
770 | EFL_BUILD_DOC_TRUE | ||
771 | efl_doxygen | ||
772 | efl_have_doxygen | ||
773 | pkgconfig_requires_private | ||
774 | DEBUG_CFLAGS | ||
775 | EFL_ENABLE_COVERAGE_FALSE | ||
776 | EFL_ENABLE_COVERAGE_TRUE | ||
777 | EFL_COVERAGE_LIBS | ||
778 | EFL_COVERAGE_CFLAGS | ||
779 | have_lcov | ||
780 | EFL_ENABLE_TESTS_FALSE | ||
781 | EFL_ENABLE_TESTS_TRUE | ||
782 | CHECK_LIBS | ||
783 | CHECK_CFLAGS | ||
784 | PKG_CONFIG_LIBDIR | ||
785 | PKG_CONFIG_PATH | ||
786 | PKG_CONFIG | ||
787 | BUILD_EXAMPLES_FALSE | ||
788 | BUILD_EXAMPLES_TRUE | ||
789 | INSTALL_EXAMPLES_FALSE | ||
790 | INSTALL_EXAMPLES_TRUE | ||
791 | BUILD_EET_FALSE | ||
792 | BUILD_EET_TRUE | ||
793 | EET_PRG | ||
794 | EET_AMALGAMATION_FALSE | ||
795 | EET_AMALGAMATION_TRUE | ||
796 | VMAJ | ||
797 | release_info | ||
798 | version_info | ||
799 | CPP | ||
800 | OTOOL64 | ||
801 | OTOOL | ||
802 | LIPO | ||
803 | NMEDIT | ||
804 | DSYMUTIL | ||
805 | lt_ECHO | ||
806 | RANLIB | ||
807 | AR | ||
808 | LN_S | ||
809 | NM | ||
810 | ac_ct_DUMPBIN | ||
811 | DUMPBIN | ||
812 | LD | ||
813 | FGREP | ||
814 | EGREP | ||
815 | GREP | ||
816 | SED | ||
817 | am__fastdepCC_FALSE | ||
818 | am__fastdepCC_TRUE | ||
819 | CCDEPMODE | ||
820 | AMDEPBACKSLASH | ||
821 | AMDEP_FALSE | ||
822 | AMDEP_TRUE | ||
823 | am__quote | ||
824 | am__include | ||
825 | DEPDIR | ||
826 | OBJEXT | ||
827 | EXEEXT | ||
828 | ac_ct_CC | ||
829 | CPPFLAGS | ||
830 | LDFLAGS | ||
831 | CFLAGS | ||
832 | CC | ||
833 | LIBTOOL | ||
834 | OBJDUMP | ||
835 | DLLTOOL | ||
836 | AS | ||
837 | host_os | ||
838 | host_vendor | ||
839 | host_cpu | ||
840 | host | ||
841 | build_os | ||
842 | build_vendor | ||
843 | build_cpu | ||
844 | build | ||
845 | AM_BACKSLASH | ||
846 | AM_DEFAULT_VERBOSITY | ||
847 | am__untar | ||
848 | am__tar | ||
849 | AMTAR | ||
850 | am__leading_dot | ||
851 | SET_MAKE | ||
852 | AWK | ||
853 | mkdir_p | ||
854 | MKDIR_P | ||
855 | INSTALL_STRIP_PROGRAM | ||
856 | STRIP | ||
857 | install_sh | ||
858 | MAKEINFO | ||
859 | AUTOHEADER | ||
860 | AUTOMAKE | ||
861 | AUTOCONF | ||
862 | ACLOCAL | ||
863 | VERSION | ||
864 | PACKAGE | ||
865 | CYGPATH_W | ||
866 | am__isrc | ||
867 | INSTALL_DATA | ||
868 | INSTALL_SCRIPT | ||
869 | INSTALL_PROGRAM | ||
870 | target_alias | ||
871 | host_alias | ||
872 | build_alias | ||
873 | LIBS | ||
874 | ECHO_T | ||
875 | ECHO_N | ||
876 | ECHO_C | ||
877 | DEFS | ||
878 | mandir | ||
879 | localedir | ||
880 | libdir | ||
881 | psdir | ||
882 | pdfdir | ||
883 | dvidir | ||
884 | htmldir | ||
885 | infodir | ||
886 | docdir | ||
887 | oldincludedir | ||
888 | includedir | ||
889 | localstatedir | ||
890 | sharedstatedir | ||
891 | sysconfdir | ||
892 | datadir | ||
893 | datarootdir | ||
894 | libexecdir | ||
895 | sbindir | ||
896 | bindir | ||
897 | program_transform_name | ||
898 | prefix | ||
899 | exec_prefix | ||
900 | PACKAGE_URL | ||
901 | PACKAGE_BUGREPORT | ||
902 | PACKAGE_STRING | ||
903 | PACKAGE_VERSION | ||
904 | PACKAGE_TARNAME | ||
905 | PACKAGE_NAME | ||
906 | PATH_SEPARATOR | ||
907 | SHELL' | ||
908 | ac_subst_files='' | ||
909 | ac_user_opts=' | ||
910 | enable_option_checking | ||
911 | enable_silent_rules | ||
912 | enable_shared | ||
913 | enable_static | ||
914 | with_pic | ||
915 | enable_fast_install | ||
916 | enable_dependency_tracking | ||
917 | with_gnu_ld | ||
918 | enable_libtool_lock | ||
919 | enable_amalgamation | ||
920 | enable_eet | ||
921 | enable_old_eet_file_format | ||
922 | enable_gnutls | ||
923 | enable_new_gnutls_api | ||
924 | enable_openssl | ||
925 | enable_cipher | ||
926 | enable_signature | ||
927 | enable_assert | ||
928 | enable_install_examples | ||
929 | enable_build_examples | ||
930 | enable_tests | ||
931 | enable_coverage | ||
932 | enable_doc | ||
933 | with_doxygen | ||
934 | with_libgcrypt_prefix | ||
935 | with_libgcrypt_exec_prefix | ||
936 | ' | ||
937 | ac_precious_vars='build_alias | ||
938 | host_alias | ||
939 | target_alias | ||
940 | CC | ||
941 | CFLAGS | ||
942 | LDFLAGS | ||
943 | LIBS | ||
944 | CPPFLAGS | ||
945 | CPP | ||
946 | PKG_CONFIG | ||
947 | PKG_CONFIG_PATH | ||
948 | PKG_CONFIG_LIBDIR | ||
949 | CHECK_CFLAGS | ||
950 | CHECK_LIBS | ||
951 | EVIL_CFLAGS | ||
952 | EVIL_LIBS | ||
953 | EINA_CFLAGS | ||
954 | EINA_LIBS | ||
955 | GNUTLS_CFLAGS | ||
956 | GNUTLS_LIBS | ||
957 | OPENSSL_CFLAGS | ||
958 | OPENSSL_LIBS' | ||
959 | |||
960 | |||
961 | # Initialize some variables set by options. | ||
962 | ac_init_help= | ||
963 | ac_init_version=false | ||
964 | ac_unrecognized_opts= | ||
965 | ac_unrecognized_sep= | ||
966 | # The variables have the same names as the options, with | ||
967 | # dashes changed to underlines. | ||
968 | cache_file=/dev/null | ||
969 | exec_prefix=NONE | ||
970 | no_create= | ||
971 | no_recursion= | ||
972 | prefix=NONE | ||
973 | program_prefix=NONE | ||
974 | program_suffix=NONE | ||
975 | program_transform_name=s,x,x, | ||
976 | silent= | ||
977 | site= | ||
978 | srcdir= | ||
979 | verbose= | ||
980 | x_includes=NONE | ||
981 | x_libraries=NONE | ||
982 | |||
983 | # Installation directory options. | ||
984 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
985 | # and all the variables that are supposed to be based on exec_prefix | ||
986 | # by default will actually change. | ||
987 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
988 | # (The list follows the same order as the GNU Coding Standards.) | ||
989 | bindir='${exec_prefix}/bin' | ||
990 | sbindir='${exec_prefix}/sbin' | ||
991 | libexecdir='${exec_prefix}/libexec' | ||
992 | datarootdir='${prefix}/share' | ||
993 | datadir='${datarootdir}' | ||
994 | sysconfdir='${prefix}/etc' | ||
995 | sharedstatedir='${prefix}/com' | ||
996 | localstatedir='${prefix}/var' | ||
997 | includedir='${prefix}/include' | ||
998 | oldincludedir='/usr/include' | ||
999 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1000 | infodir='${datarootdir}/info' | ||
1001 | htmldir='${docdir}' | ||
1002 | dvidir='${docdir}' | ||
1003 | pdfdir='${docdir}' | ||
1004 | psdir='${docdir}' | ||
1005 | libdir='${exec_prefix}/lib' | ||
1006 | localedir='${datarootdir}/locale' | ||
1007 | mandir='${datarootdir}/man' | ||
1008 | |||
1009 | ac_prev= | ||
1010 | ac_dashdash= | ||
1011 | for ac_option | ||
1012 | do | ||
1013 | # If the previous option needs an argument, assign it. | ||
1014 | if test -n "$ac_prev"; then | ||
1015 | eval $ac_prev=\$ac_option | ||
1016 | ac_prev= | ||
1017 | continue | ||
1018 | fi | ||
1019 | |||
1020 | case $ac_option in | ||
1021 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1022 | *=) ac_optarg= ;; | ||
1023 | *) ac_optarg=yes ;; | ||
1024 | esac | ||
1025 | |||
1026 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1027 | |||
1028 | case $ac_dashdash$ac_option in | ||
1029 | --) | ||
1030 | ac_dashdash=yes ;; | ||
1031 | |||
1032 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1033 | ac_prev=bindir ;; | ||
1034 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1035 | bindir=$ac_optarg ;; | ||
1036 | |||
1037 | -build | --build | --buil | --bui | --bu) | ||
1038 | ac_prev=build_alias ;; | ||
1039 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1040 | build_alias=$ac_optarg ;; | ||
1041 | |||
1042 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1043 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1044 | ac_prev=cache_file ;; | ||
1045 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1046 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1047 | cache_file=$ac_optarg ;; | ||
1048 | |||
1049 | --config-cache | -C) | ||
1050 | cache_file=config.cache ;; | ||
1051 | |||
1052 | -datadir | --datadir | --datadi | --datad) | ||
1053 | ac_prev=datadir ;; | ||
1054 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1055 | datadir=$ac_optarg ;; | ||
1056 | |||
1057 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1058 | | --dataroo | --dataro | --datar) | ||
1059 | ac_prev=datarootdir ;; | ||
1060 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1061 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1062 | datarootdir=$ac_optarg ;; | ||
1063 | |||
1064 | -disable-* | --disable-*) | ||
1065 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1066 | # Reject names that are not valid shell variable names. | ||
1067 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1068 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1069 | ac_useropt_orig=$ac_useropt | ||
1070 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1071 | case $ac_user_opts in | ||
1072 | *" | ||
1073 | "enable_$ac_useropt" | ||
1074 | "*) ;; | ||
1075 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1076 | ac_unrecognized_sep=', ';; | ||
1077 | esac | ||
1078 | eval enable_$ac_useropt=no ;; | ||
1079 | |||
1080 | -docdir | --docdir | --docdi | --doc | --do) | ||
1081 | ac_prev=docdir ;; | ||
1082 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1083 | docdir=$ac_optarg ;; | ||
1084 | |||
1085 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1086 | ac_prev=dvidir ;; | ||
1087 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1088 | dvidir=$ac_optarg ;; | ||
1089 | |||
1090 | -enable-* | --enable-*) | ||
1091 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1092 | # Reject names that are not valid shell variable names. | ||
1093 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1094 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1095 | ac_useropt_orig=$ac_useropt | ||
1096 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1097 | case $ac_user_opts in | ||
1098 | *" | ||
1099 | "enable_$ac_useropt" | ||
1100 | "*) ;; | ||
1101 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1102 | ac_unrecognized_sep=', ';; | ||
1103 | esac | ||
1104 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1105 | |||
1106 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1107 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1108 | | --exec | --exe | --ex) | ||
1109 | ac_prev=exec_prefix ;; | ||
1110 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1111 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1112 | | --exec=* | --exe=* | --ex=*) | ||
1113 | exec_prefix=$ac_optarg ;; | ||
1114 | |||
1115 | -gas | --gas | --ga | --g) | ||
1116 | # Obsolete; use --with-gas. | ||
1117 | with_gas=yes ;; | ||
1118 | |||
1119 | -help | --help | --hel | --he | -h) | ||
1120 | ac_init_help=long ;; | ||
1121 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1122 | ac_init_help=recursive ;; | ||
1123 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1124 | ac_init_help=short ;; | ||
1125 | |||
1126 | -host | --host | --hos | --ho) | ||
1127 | ac_prev=host_alias ;; | ||
1128 | -host=* | --host=* | --hos=* | --ho=*) | ||
1129 | host_alias=$ac_optarg ;; | ||
1130 | |||
1131 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1132 | ac_prev=htmldir ;; | ||
1133 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1134 | | --ht=*) | ||
1135 | htmldir=$ac_optarg ;; | ||
1136 | |||
1137 | -includedir | --includedir | --includedi | --included | --include \ | ||
1138 | | --includ | --inclu | --incl | --inc) | ||
1139 | ac_prev=includedir ;; | ||
1140 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1141 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1142 | includedir=$ac_optarg ;; | ||
1143 | |||
1144 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1145 | ac_prev=infodir ;; | ||
1146 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1147 | infodir=$ac_optarg ;; | ||
1148 | |||
1149 | -libdir | --libdir | --libdi | --libd) | ||
1150 | ac_prev=libdir ;; | ||
1151 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1152 | libdir=$ac_optarg ;; | ||
1153 | |||
1154 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1155 | | --libexe | --libex | --libe) | ||
1156 | ac_prev=libexecdir ;; | ||
1157 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1158 | | --libexe=* | --libex=* | --libe=*) | ||
1159 | libexecdir=$ac_optarg ;; | ||
1160 | |||
1161 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1162 | ac_prev=localedir ;; | ||
1163 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1164 | localedir=$ac_optarg ;; | ||
1165 | |||
1166 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1167 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1168 | ac_prev=localstatedir ;; | ||
1169 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1170 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1171 | localstatedir=$ac_optarg ;; | ||
1172 | |||
1173 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1174 | ac_prev=mandir ;; | ||
1175 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1176 | mandir=$ac_optarg ;; | ||
1177 | |||
1178 | -nfp | --nfp | --nf) | ||
1179 | # Obsolete; use --without-fp. | ||
1180 | with_fp=no ;; | ||
1181 | |||
1182 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1183 | | --no-cr | --no-c | -n) | ||
1184 | no_create=yes ;; | ||
1185 | |||
1186 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1187 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1188 | no_recursion=yes ;; | ||
1189 | |||
1190 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1191 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1192 | | --oldin | --oldi | --old | --ol | --o) | ||
1193 | ac_prev=oldincludedir ;; | ||
1194 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1195 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1196 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1197 | oldincludedir=$ac_optarg ;; | ||
1198 | |||
1199 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1200 | ac_prev=prefix ;; | ||
1201 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1202 | prefix=$ac_optarg ;; | ||
1203 | |||
1204 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1205 | | --program-pre | --program-pr | --program-p) | ||
1206 | ac_prev=program_prefix ;; | ||
1207 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1208 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1209 | program_prefix=$ac_optarg ;; | ||
1210 | |||
1211 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1212 | | --program-suf | --program-su | --program-s) | ||
1213 | ac_prev=program_suffix ;; | ||
1214 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1215 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1216 | program_suffix=$ac_optarg ;; | ||
1217 | |||
1218 | -program-transform-name | --program-transform-name \ | ||
1219 | | --program-transform-nam | --program-transform-na \ | ||
1220 | | --program-transform-n | --program-transform- \ | ||
1221 | | --program-transform | --program-transfor \ | ||
1222 | | --program-transfo | --program-transf \ | ||
1223 | | --program-trans | --program-tran \ | ||
1224 | | --progr-tra | --program-tr | --program-t) | ||
1225 | ac_prev=program_transform_name ;; | ||
1226 | -program-transform-name=* | --program-transform-name=* \ | ||
1227 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1228 | | --program-transform-n=* | --program-transform-=* \ | ||
1229 | | --program-transform=* | --program-transfor=* \ | ||
1230 | | --program-transfo=* | --program-transf=* \ | ||
1231 | | --program-trans=* | --program-tran=* \ | ||
1232 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1233 | program_transform_name=$ac_optarg ;; | ||
1234 | |||
1235 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1236 | ac_prev=pdfdir ;; | ||
1237 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1238 | pdfdir=$ac_optarg ;; | ||
1239 | |||
1240 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1241 | ac_prev=psdir ;; | ||
1242 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1243 | psdir=$ac_optarg ;; | ||
1244 | |||
1245 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1246 | | -silent | --silent | --silen | --sile | --sil) | ||
1247 | silent=yes ;; | ||
1248 | |||
1249 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1250 | ac_prev=sbindir ;; | ||
1251 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1252 | | --sbi=* | --sb=*) | ||
1253 | sbindir=$ac_optarg ;; | ||
1254 | |||
1255 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1256 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1257 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1258 | | --sha | --sh) | ||
1259 | ac_prev=sharedstatedir ;; | ||
1260 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1261 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1262 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1263 | | --sha=* | --sh=*) | ||
1264 | sharedstatedir=$ac_optarg ;; | ||
1265 | |||
1266 | -site | --site | --sit) | ||
1267 | ac_prev=site ;; | ||
1268 | -site=* | --site=* | --sit=*) | ||
1269 | site=$ac_optarg ;; | ||
1270 | |||
1271 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1272 | ac_prev=srcdir ;; | ||
1273 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1274 | srcdir=$ac_optarg ;; | ||
1275 | |||
1276 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1277 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1278 | ac_prev=sysconfdir ;; | ||
1279 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1280 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1281 | sysconfdir=$ac_optarg ;; | ||
1282 | |||
1283 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1284 | ac_prev=target_alias ;; | ||
1285 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1286 | target_alias=$ac_optarg ;; | ||
1287 | |||
1288 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1289 | verbose=yes ;; | ||
1290 | |||
1291 | -version | --version | --versio | --versi | --vers | -V) | ||
1292 | ac_init_version=: ;; | ||
1293 | |||
1294 | -with-* | --with-*) | ||
1295 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1296 | # Reject names that are not valid shell variable names. | ||
1297 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1298 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1299 | ac_useropt_orig=$ac_useropt | ||
1300 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1301 | case $ac_user_opts in | ||
1302 | *" | ||
1303 | "with_$ac_useropt" | ||
1304 | "*) ;; | ||
1305 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1306 | ac_unrecognized_sep=', ';; | ||
1307 | esac | ||
1308 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1309 | |||
1310 | -without-* | --without-*) | ||
1311 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1312 | # Reject names that are not valid shell variable names. | ||
1313 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1314 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1315 | ac_useropt_orig=$ac_useropt | ||
1316 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1317 | case $ac_user_opts in | ||
1318 | *" | ||
1319 | "with_$ac_useropt" | ||
1320 | "*) ;; | ||
1321 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1322 | ac_unrecognized_sep=', ';; | ||
1323 | esac | ||
1324 | eval with_$ac_useropt=no ;; | ||
1325 | |||
1326 | --x) | ||
1327 | # Obsolete; use --with-x. | ||
1328 | with_x=yes ;; | ||
1329 | |||
1330 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1331 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1332 | ac_prev=x_includes ;; | ||
1333 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1334 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1335 | x_includes=$ac_optarg ;; | ||
1336 | |||
1337 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1338 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1339 | ac_prev=x_libraries ;; | ||
1340 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1341 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1342 | x_libraries=$ac_optarg ;; | ||
1343 | |||
1344 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1345 | Try \`$0 --help' for more information" | ||
1346 | ;; | ||
1347 | |||
1348 | *=*) | ||
1349 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1350 | # Reject names that are not valid shell variable names. | ||
1351 | case $ac_envvar in #( | ||
1352 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1353 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1354 | esac | ||
1355 | eval $ac_envvar=\$ac_optarg | ||
1356 | export $ac_envvar ;; | ||
1357 | |||
1358 | *) | ||
1359 | # FIXME: should be removed in autoconf 3.0. | ||
1360 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1361 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1362 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1363 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1364 | ;; | ||
1365 | |||
1366 | esac | ||
1367 | done | ||
1368 | |||
1369 | if test -n "$ac_prev"; then | ||
1370 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1371 | as_fn_error $? "missing argument to $ac_option" | ||
1372 | fi | ||
1373 | |||
1374 | if test -n "$ac_unrecognized_opts"; then | ||
1375 | case $enable_option_checking in | ||
1376 | no) ;; | ||
1377 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1378 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1379 | esac | ||
1380 | fi | ||
1381 | |||
1382 | # Check all directory arguments for consistency. | ||
1383 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1384 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1385 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1386 | libdir localedir mandir | ||
1387 | do | ||
1388 | eval ac_val=\$$ac_var | ||
1389 | # Remove trailing slashes. | ||
1390 | case $ac_val in | ||
1391 | */ ) | ||
1392 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1393 | eval $ac_var=\$ac_val;; | ||
1394 | esac | ||
1395 | # Be sure to have absolute directory names. | ||
1396 | case $ac_val in | ||
1397 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1398 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1399 | esac | ||
1400 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1401 | done | ||
1402 | |||
1403 | # There might be people who depend on the old broken behavior: `$host' | ||
1404 | # used to hold the argument of --host etc. | ||
1405 | # FIXME: To remove some day. | ||
1406 | build=$build_alias | ||
1407 | host=$host_alias | ||
1408 | target=$target_alias | ||
1409 | |||
1410 | # FIXME: To remove some day. | ||
1411 | if test "x$host_alias" != x; then | ||
1412 | if test "x$build_alias" = x; then | ||
1413 | cross_compiling=maybe | ||
1414 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1415 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1416 | elif test "x$build_alias" != "x$host_alias"; then | ||
1417 | cross_compiling=yes | ||
1418 | fi | ||
1419 | fi | ||
1420 | |||
1421 | ac_tool_prefix= | ||
1422 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1423 | |||
1424 | test "$silent" = yes && exec 6>/dev/null | ||
1425 | |||
1426 | |||
1427 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1428 | ac_ls_di=`ls -di .` && | ||
1429 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1430 | as_fn_error $? "working directory cannot be determined" | ||
1431 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1432 | as_fn_error $? "pwd does not report name of working directory" | ||
1433 | |||
1434 | |||
1435 | # Find the source files, if location was not specified. | ||
1436 | if test -z "$srcdir"; then | ||
1437 | ac_srcdir_defaulted=yes | ||
1438 | # Try the directory containing this script, then the parent directory. | ||
1439 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1440 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1441 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1442 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1443 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1444 | $as_echo X"$as_myself" | | ||
1445 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1446 | s//\1/ | ||
1447 | q | ||
1448 | } | ||
1449 | /^X\(\/\/\)[^/].*/{ | ||
1450 | s//\1/ | ||
1451 | q | ||
1452 | } | ||
1453 | /^X\(\/\/\)$/{ | ||
1454 | s//\1/ | ||
1455 | q | ||
1456 | } | ||
1457 | /^X\(\/\).*/{ | ||
1458 | s//\1/ | ||
1459 | q | ||
1460 | } | ||
1461 | s/.*/./; q'` | ||
1462 | srcdir=$ac_confdir | ||
1463 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1464 | srcdir=.. | ||
1465 | fi | ||
1466 | else | ||
1467 | ac_srcdir_defaulted=no | ||
1468 | fi | ||
1469 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1470 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1471 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1472 | fi | ||
1473 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1474 | ac_abs_confdir=`( | ||
1475 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1476 | pwd)` | ||
1477 | # When building in place, set srcdir=. | ||
1478 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1479 | srcdir=. | ||
1480 | fi | ||
1481 | # Remove unnecessary trailing slashes from srcdir. | ||
1482 | # Double slashes in file names in object file debugging info | ||
1483 | # mess up M-x gdb in Emacs. | ||
1484 | case $srcdir in | ||
1485 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1486 | esac | ||
1487 | for ac_var in $ac_precious_vars; do | ||
1488 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1489 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1490 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1491 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1492 | done | ||
1493 | |||
1494 | # | ||
1495 | # Report the --help message. | ||
1496 | # | ||
1497 | if test "$ac_init_help" = "long"; then | ||
1498 | # Omit some internal or obsolete options to make the list less imposing. | ||
1499 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1500 | cat <<_ACEOF | ||
1501 | \`configure' configures eet 1.5.0 to adapt to many kinds of systems. | ||
1502 | |||
1503 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1504 | |||
1505 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1506 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1507 | |||
1508 | Defaults for the options are specified in brackets. | ||
1509 | |||
1510 | Configuration: | ||
1511 | -h, --help display this help and exit | ||
1512 | --help=short display options specific to this package | ||
1513 | --help=recursive display the short help of all the included packages | ||
1514 | -V, --version display version information and exit | ||
1515 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1516 | --cache-file=FILE cache test results in FILE [disabled] | ||
1517 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1518 | -n, --no-create do not create output files | ||
1519 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1520 | |||
1521 | Installation directories: | ||
1522 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1523 | [$ac_default_prefix] | ||
1524 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1525 | [PREFIX] | ||
1526 | |||
1527 | By default, \`make install' will install all the files in | ||
1528 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1529 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1530 | for instance \`--prefix=\$HOME'. | ||
1531 | |||
1532 | For better control, use the options below. | ||
1533 | |||
1534 | Fine tuning of the installation directories: | ||
1535 | --bindir=DIR user executables [EPREFIX/bin] | ||
1536 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1537 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1538 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1539 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1540 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1541 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1542 | --includedir=DIR C header files [PREFIX/include] | ||
1543 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1544 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1545 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1546 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1547 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1548 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1549 | --docdir=DIR documentation root [DATAROOTDIR/doc/eet] | ||
1550 | --htmldir=DIR html documentation [DOCDIR] | ||
1551 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1552 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1553 | --psdir=DIR ps documentation [DOCDIR] | ||
1554 | _ACEOF | ||
1555 | |||
1556 | cat <<\_ACEOF | ||
1557 | |||
1558 | Program names: | ||
1559 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1560 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1561 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1562 | |||
1563 | System types: | ||
1564 | --build=BUILD configure for building on BUILD [guessed] | ||
1565 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1566 | _ACEOF | ||
1567 | fi | ||
1568 | |||
1569 | if test -n "$ac_init_help"; then | ||
1570 | case $ac_init_help in | ||
1571 | short | recursive ) echo "Configuration of eet 1.5.0:";; | ||
1572 | esac | ||
1573 | cat <<\_ACEOF | ||
1574 | |||
1575 | Optional Features: | ||
1576 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1577 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1578 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1579 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
1580 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
1581 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1582 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1583 | --enable-fast-install[=PKGS] | ||
1584 | optimize for fast installation [default=yes] | ||
1585 | --disable-dependency-tracking speeds up one-time build | ||
1586 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1587 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1588 | --enable-amalgamation enable generation of one single file with all source | ||
1589 | code in it, helps compiler optimizations. | ||
1590 | --disable-eet disable building of eet | ||
1591 | --disable-old-eet-file-format | ||
1592 | disable old eet file format support. | ||
1593 | [[default=enabled]] | ||
1594 | --disable-gnutls disable gnutls eet support | ||
1595 | --disable-new-gnutls-api | ||
1596 | enable use of gnutls_x509_crt_verify_hash. | ||
1597 | [[default=enable]] | ||
1598 | --disable-openssl disable openssl eet support | ||
1599 | --disable-cipher disable cipher support for eet API | ||
1600 | --disable-signature disable signature file support for eet | ||
1601 | --enable-assert enable assert, [[default=disabled]] | ||
1602 | --disable-install-examples | ||
1603 | disable installing examples (compiled or just | ||
1604 | source). [default==enabled] | ||
1605 | --enable-build-examples enable building examples. [default==disabled] | ||
1606 | --enable-tests enable tests [default=disabled] | ||
1607 | --enable-coverage enable coverage profiling instrumentation | ||
1608 | [default=disabled] | ||
1609 | --disable-doc Disable documentation build [default=enabled] | ||
1610 | |||
1611 | Optional Packages: | ||
1612 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1613 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1614 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1615 | both] | ||
1616 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1617 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
1618 | --with-libgcrypt-prefix=PFX Prefix where libgcrypt is installed (optional) | ||
1619 | --with-libgcrypt-exec-prefix=PFX Exec prefix where libgcrypt is installed (optional) | ||
1620 | |||
1621 | Some influential environment variables: | ||
1622 | CC C compiler command | ||
1623 | CFLAGS C compiler flags | ||
1624 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1625 | nonstandard directory <lib dir> | ||
1626 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1627 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1628 | you have headers in a nonstandard directory <include dir> | ||
1629 | CPP C preprocessor | ||
1630 | PKG_CONFIG path to pkg-config utility | ||
1631 | PKG_CONFIG_PATH | ||
1632 | directories to add to pkg-config's search path | ||
1633 | PKG_CONFIG_LIBDIR | ||
1634 | path overriding pkg-config's built-in search path | ||
1635 | CHECK_CFLAGS | ||
1636 | C compiler flags for CHECK, overriding pkg-config | ||
1637 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
1638 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
1639 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
1640 | EINA_CFLAGS C compiler flags for EINA, overriding pkg-config | ||
1641 | EINA_LIBS linker flags for EINA, overriding pkg-config | ||
1642 | GNUTLS_CFLAGS | ||
1643 | C compiler flags for GNUTLS, overriding pkg-config | ||
1644 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config | ||
1645 | OPENSSL_CFLAGS | ||
1646 | C compiler flags for OPENSSL, overriding pkg-config | ||
1647 | OPENSSL_LIBS | ||
1648 | linker flags for OPENSSL, overriding pkg-config | ||
1649 | |||
1650 | Use these variables to override the choices made by `configure' or to help | ||
1651 | it to find libraries and programs with nonstandard names/locations. | ||
1652 | |||
1653 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
1654 | _ACEOF | ||
1655 | ac_status=$? | ||
1656 | fi | ||
1657 | |||
1658 | if test "$ac_init_help" = "recursive"; then | ||
1659 | # If there are subdirs, report their specific --help. | ||
1660 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1661 | test -d "$ac_dir" || | ||
1662 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1663 | continue | ||
1664 | ac_builddir=. | ||
1665 | |||
1666 | case "$ac_dir" in | ||
1667 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1668 | *) | ||
1669 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1670 | # A ".." for each directory in $ac_dir_suffix. | ||
1671 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1672 | case $ac_top_builddir_sub in | ||
1673 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1674 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1675 | esac ;; | ||
1676 | esac | ||
1677 | ac_abs_top_builddir=$ac_pwd | ||
1678 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1679 | # for backward compatibility: | ||
1680 | ac_top_builddir=$ac_top_build_prefix | ||
1681 | |||
1682 | case $srcdir in | ||
1683 | .) # We are building in place. | ||
1684 | ac_srcdir=. | ||
1685 | ac_top_srcdir=$ac_top_builddir_sub | ||
1686 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1687 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1688 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1689 | ac_top_srcdir=$srcdir | ||
1690 | ac_abs_top_srcdir=$srcdir ;; | ||
1691 | *) # Relative name. | ||
1692 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1693 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1694 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1695 | esac | ||
1696 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1697 | |||
1698 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1699 | # Check for guested configure. | ||
1700 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1701 | echo && | ||
1702 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1703 | elif test -f "$ac_srcdir/configure"; then | ||
1704 | echo && | ||
1705 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1706 | else | ||
1707 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1708 | fi || ac_status=$? | ||
1709 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1710 | done | ||
1711 | fi | ||
1712 | |||
1713 | test -n "$ac_init_help" && exit $ac_status | ||
1714 | if $ac_init_version; then | ||
1715 | cat <<\_ACEOF | ||
1716 | eet configure 1.5.0 | ||
1717 | generated by GNU Autoconf 2.67 | ||
1718 | |||
1719 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1720 | This configure script is free software; the Free Software Foundation | ||
1721 | gives unlimited permission to copy, distribute and modify it. | ||
1722 | _ACEOF | ||
1723 | exit | ||
1724 | fi | ||
1725 | |||
1726 | ## ------------------------ ## | ||
1727 | ## Autoconf initialization. ## | ||
1728 | ## ------------------------ ## | ||
1729 | |||
1730 | # ac_fn_c_try_compile LINENO | ||
1731 | # -------------------------- | ||
1732 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1733 | ac_fn_c_try_compile () | ||
1734 | { | ||
1735 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1736 | rm -f conftest.$ac_objext | ||
1737 | if { { ac_try="$ac_compile" | ||
1738 | case "(($ac_try" in | ||
1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1740 | *) ac_try_echo=$ac_try;; | ||
1741 | esac | ||
1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1743 | $as_echo "$ac_try_echo"; } >&5 | ||
1744 | (eval "$ac_compile") 2>conftest.err | ||
1745 | ac_status=$? | ||
1746 | if test -s conftest.err; then | ||
1747 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1748 | cat conftest.er1 >&5 | ||
1749 | mv -f conftest.er1 conftest.err | ||
1750 | fi | ||
1751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1752 | test $ac_status = 0; } && { | ||
1753 | test -z "$ac_c_werror_flag" || | ||
1754 | test ! -s conftest.err | ||
1755 | } && test -s conftest.$ac_objext; then : | ||
1756 | ac_retval=0 | ||
1757 | else | ||
1758 | $as_echo "$as_me: failed program was:" >&5 | ||
1759 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1760 | |||
1761 | ac_retval=1 | ||
1762 | fi | ||
1763 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1764 | as_fn_set_status $ac_retval | ||
1765 | |||
1766 | } # ac_fn_c_try_compile | ||
1767 | |||
1768 | # ac_fn_c_try_link LINENO | ||
1769 | # ----------------------- | ||
1770 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1771 | ac_fn_c_try_link () | ||
1772 | { | ||
1773 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1774 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1775 | if { { ac_try="$ac_link" | ||
1776 | case "(($ac_try" in | ||
1777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1778 | *) ac_try_echo=$ac_try;; | ||
1779 | esac | ||
1780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1781 | $as_echo "$ac_try_echo"; } >&5 | ||
1782 | (eval "$ac_link") 2>conftest.err | ||
1783 | ac_status=$? | ||
1784 | if test -s conftest.err; then | ||
1785 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1786 | cat conftest.er1 >&5 | ||
1787 | mv -f conftest.er1 conftest.err | ||
1788 | fi | ||
1789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1790 | test $ac_status = 0; } && { | ||
1791 | test -z "$ac_c_werror_flag" || | ||
1792 | test ! -s conftest.err | ||
1793 | } && test -s conftest$ac_exeext && { | ||
1794 | test "$cross_compiling" = yes || | ||
1795 | $as_test_x conftest$ac_exeext | ||
1796 | }; then : | ||
1797 | ac_retval=0 | ||
1798 | else | ||
1799 | $as_echo "$as_me: failed program was:" >&5 | ||
1800 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1801 | |||
1802 | ac_retval=1 | ||
1803 | fi | ||
1804 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1805 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1806 | # interfere with the next link command; also delete a directory that is | ||
1807 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1808 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1809 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1810 | as_fn_set_status $ac_retval | ||
1811 | |||
1812 | } # ac_fn_c_try_link | ||
1813 | |||
1814 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1815 | # ------------------------------------------------------- | ||
1816 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1817 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1818 | ac_fn_c_check_header_compile () | ||
1819 | { | ||
1820 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1822 | $as_echo_n "checking for $2... " >&6; } | ||
1823 | if eval "test \"\${$3+set}\"" = set; then : | ||
1824 | $as_echo_n "(cached) " >&6 | ||
1825 | else | ||
1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1827 | /* end confdefs.h. */ | ||
1828 | $4 | ||
1829 | #include <$2> | ||
1830 | _ACEOF | ||
1831 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1832 | eval "$3=yes" | ||
1833 | else | ||
1834 | eval "$3=no" | ||
1835 | fi | ||
1836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1837 | fi | ||
1838 | eval ac_res=\$$3 | ||
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1840 | $as_echo "$ac_res" >&6; } | ||
1841 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1842 | |||
1843 | } # ac_fn_c_check_header_compile | ||
1844 | |||
1845 | # ac_fn_c_try_cpp LINENO | ||
1846 | # ---------------------- | ||
1847 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1848 | ac_fn_c_try_cpp () | ||
1849 | { | ||
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1851 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1852 | case "(($ac_try" in | ||
1853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1854 | *) ac_try_echo=$ac_try;; | ||
1855 | esac | ||
1856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1857 | $as_echo "$ac_try_echo"; } >&5 | ||
1858 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1859 | ac_status=$? | ||
1860 | if test -s conftest.err; then | ||
1861 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1862 | cat conftest.er1 >&5 | ||
1863 | mv -f conftest.er1 conftest.err | ||
1864 | fi | ||
1865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1866 | test $ac_status = 0; } > conftest.i && { | ||
1867 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1868 | test ! -s conftest.err | ||
1869 | }; then : | ||
1870 | ac_retval=0 | ||
1871 | else | ||
1872 | $as_echo "$as_me: failed program was:" >&5 | ||
1873 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1874 | |||
1875 | ac_retval=1 | ||
1876 | fi | ||
1877 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1878 | as_fn_set_status $ac_retval | ||
1879 | |||
1880 | } # ac_fn_c_try_cpp | ||
1881 | |||
1882 | # ac_fn_c_try_run LINENO | ||
1883 | # ---------------------- | ||
1884 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1885 | # that executables *can* be run. | ||
1886 | ac_fn_c_try_run () | ||
1887 | { | ||
1888 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1889 | if { { ac_try="$ac_link" | ||
1890 | case "(($ac_try" in | ||
1891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1892 | *) ac_try_echo=$ac_try;; | ||
1893 | esac | ||
1894 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1895 | $as_echo "$ac_try_echo"; } >&5 | ||
1896 | (eval "$ac_link") 2>&5 | ||
1897 | ac_status=$? | ||
1898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1899 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1900 | { { case "(($ac_try" in | ||
1901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1902 | *) ac_try_echo=$ac_try;; | ||
1903 | esac | ||
1904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1905 | $as_echo "$ac_try_echo"; } >&5 | ||
1906 | (eval "$ac_try") 2>&5 | ||
1907 | ac_status=$? | ||
1908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1909 | test $ac_status = 0; }; }; then : | ||
1910 | ac_retval=0 | ||
1911 | else | ||
1912 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1913 | $as_echo "$as_me: failed program was:" >&5 | ||
1914 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1915 | |||
1916 | ac_retval=$ac_status | ||
1917 | fi | ||
1918 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1919 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1920 | as_fn_set_status $ac_retval | ||
1921 | |||
1922 | } # ac_fn_c_try_run | ||
1923 | |||
1924 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1925 | # ---------------------------------- | ||
1926 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1927 | ac_fn_c_check_func () | ||
1928 | { | ||
1929 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1931 | $as_echo_n "checking for $2... " >&6; } | ||
1932 | if eval "test \"\${$3+set}\"" = set; then : | ||
1933 | $as_echo_n "(cached) " >&6 | ||
1934 | else | ||
1935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1936 | /* end confdefs.h. */ | ||
1937 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1938 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1939 | #define $2 innocuous_$2 | ||
1940 | |||
1941 | /* System header to define __stub macros and hopefully few prototypes, | ||
1942 | which can conflict with char $2 (); below. | ||
1943 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1944 | <limits.h> exists even on freestanding compilers. */ | ||
1945 | |||
1946 | #ifdef __STDC__ | ||
1947 | # include <limits.h> | ||
1948 | #else | ||
1949 | # include <assert.h> | ||
1950 | #endif | ||
1951 | |||
1952 | #undef $2 | ||
1953 | |||
1954 | /* Override any GCC internal prototype to avoid an error. | ||
1955 | Use char because int might match the return type of a GCC | ||
1956 | builtin and then its argument prototype would still apply. */ | ||
1957 | #ifdef __cplusplus | ||
1958 | extern "C" | ||
1959 | #endif | ||
1960 | char $2 (); | ||
1961 | /* The GNU C library defines this for functions which it implements | ||
1962 | to always fail with ENOSYS. Some functions are actually named | ||
1963 | something starting with __ and the normal name is an alias. */ | ||
1964 | #if defined __stub_$2 || defined __stub___$2 | ||
1965 | choke me | ||
1966 | #endif | ||
1967 | |||
1968 | int | ||
1969 | main () | ||
1970 | { | ||
1971 | return $2 (); | ||
1972 | ; | ||
1973 | return 0; | ||
1974 | } | ||
1975 | _ACEOF | ||
1976 | if ac_fn_c_try_link "$LINENO"; then : | ||
1977 | eval "$3=yes" | ||
1978 | else | ||
1979 | eval "$3=no" | ||
1980 | fi | ||
1981 | rm -f core conftest.err conftest.$ac_objext \ | ||
1982 | conftest$ac_exeext conftest.$ac_ext | ||
1983 | fi | ||
1984 | eval ac_res=\$$3 | ||
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1986 | $as_echo "$ac_res" >&6; } | ||
1987 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1988 | |||
1989 | } # ac_fn_c_check_func | ||
1990 | |||
1991 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1992 | # ------------------------------------------------------- | ||
1993 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1994 | # the include files in INCLUDES and setting the cache variable VAR | ||
1995 | # accordingly. | ||
1996 | ac_fn_c_check_header_mongrel () | ||
1997 | { | ||
1998 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1999 | if eval "test \"\${$3+set}\"" = set; then : | ||
2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2001 | $as_echo_n "checking for $2... " >&6; } | ||
2002 | if eval "test \"\${$3+set}\"" = set; then : | ||
2003 | $as_echo_n "(cached) " >&6 | ||
2004 | fi | ||
2005 | eval ac_res=\$$3 | ||
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2007 | $as_echo "$ac_res" >&6; } | ||
2008 | else | ||
2009 | # Is the header compilable? | ||
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
2011 | $as_echo_n "checking $2 usability... " >&6; } | ||
2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2013 | /* end confdefs.h. */ | ||
2014 | $4 | ||
2015 | #include <$2> | ||
2016 | _ACEOF | ||
2017 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2018 | ac_header_compiler=yes | ||
2019 | else | ||
2020 | ac_header_compiler=no | ||
2021 | fi | ||
2022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2024 | $as_echo "$ac_header_compiler" >&6; } | ||
2025 | |||
2026 | # Is the header present? | ||
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2028 | $as_echo_n "checking $2 presence... " >&6; } | ||
2029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2030 | /* end confdefs.h. */ | ||
2031 | #include <$2> | ||
2032 | _ACEOF | ||
2033 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2034 | ac_header_preproc=yes | ||
2035 | else | ||
2036 | ac_header_preproc=no | ||
2037 | fi | ||
2038 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2040 | $as_echo "$ac_header_preproc" >&6; } | ||
2041 | |||
2042 | # So? What about this header? | ||
2043 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2044 | yes:no: ) | ||
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2046 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2048 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2049 | ;; | ||
2050 | no:yes:* ) | ||
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2052 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2054 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2056 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2058 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2060 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2061 | ( $as_echo "## -------------------------------------------------------- ## | ||
2062 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2063 | ## -------------------------------------------------------- ##" | ||
2064 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2065 | ;; | ||
2066 | esac | ||
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2068 | $as_echo_n "checking for $2... " >&6; } | ||
2069 | if eval "test \"\${$3+set}\"" = set; then : | ||
2070 | $as_echo_n "(cached) " >&6 | ||
2071 | else | ||
2072 | eval "$3=\$ac_header_compiler" | ||
2073 | fi | ||
2074 | eval ac_res=\$$3 | ||
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2076 | $as_echo "$ac_res" >&6; } | ||
2077 | fi | ||
2078 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2079 | |||
2080 | } # ac_fn_c_check_header_mongrel | ||
2081 | cat >config.log <<_ACEOF | ||
2082 | This file contains any messages produced by compilers while | ||
2083 | running configure, to aid debugging if configure makes a mistake. | ||
2084 | |||
2085 | It was created by eet $as_me 1.5.0, which was | ||
2086 | generated by GNU Autoconf 2.67. Invocation command line was | ||
2087 | |||
2088 | $ $0 $@ | ||
2089 | |||
2090 | _ACEOF | ||
2091 | exec 5>>config.log | ||
2092 | { | ||
2093 | cat <<_ASUNAME | ||
2094 | ## --------- ## | ||
2095 | ## Platform. ## | ||
2096 | ## --------- ## | ||
2097 | |||
2098 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2099 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2100 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2101 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2102 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2103 | |||
2104 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2105 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2106 | |||
2107 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2108 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2109 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2110 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2111 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2112 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2113 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2114 | |||
2115 | _ASUNAME | ||
2116 | |||
2117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2118 | for as_dir in $PATH | ||
2119 | do | ||
2120 | IFS=$as_save_IFS | ||
2121 | test -z "$as_dir" && as_dir=. | ||
2122 | $as_echo "PATH: $as_dir" | ||
2123 | done | ||
2124 | IFS=$as_save_IFS | ||
2125 | |||
2126 | } >&5 | ||
2127 | |||
2128 | cat >&5 <<_ACEOF | ||
2129 | |||
2130 | |||
2131 | ## ----------- ## | ||
2132 | ## Core tests. ## | ||
2133 | ## ----------- ## | ||
2134 | |||
2135 | _ACEOF | ||
2136 | |||
2137 | |||
2138 | # Keep a trace of the command line. | ||
2139 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2140 | # Strip out --silent because we don't want to record it for future runs. | ||
2141 | # Also quote any args containing shell meta-characters. | ||
2142 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2143 | ac_configure_args= | ||
2144 | ac_configure_args0= | ||
2145 | ac_configure_args1= | ||
2146 | ac_must_keep_next=false | ||
2147 | for ac_pass in 1 2 | ||
2148 | do | ||
2149 | for ac_arg | ||
2150 | do | ||
2151 | case $ac_arg in | ||
2152 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2153 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2154 | | -silent | --silent | --silen | --sile | --sil) | ||
2155 | continue ;; | ||
2156 | *\'*) | ||
2157 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2158 | esac | ||
2159 | case $ac_pass in | ||
2160 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2161 | 2) | ||
2162 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2163 | if test $ac_must_keep_next = true; then | ||
2164 | ac_must_keep_next=false # Got value, back to normal. | ||
2165 | else | ||
2166 | case $ac_arg in | ||
2167 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2168 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2169 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2170 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2171 | case "$ac_configure_args0 " in | ||
2172 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2173 | esac | ||
2174 | ;; | ||
2175 | -* ) ac_must_keep_next=true ;; | ||
2176 | esac | ||
2177 | fi | ||
2178 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2179 | ;; | ||
2180 | esac | ||
2181 | done | ||
2182 | done | ||
2183 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2184 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2185 | |||
2186 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2187 | # config.log. We remove comments because anyway the quotes in there | ||
2188 | # would cause problems or look ugly. | ||
2189 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2190 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2191 | trap 'exit_status=$? | ||
2192 | # Save into config.log some information that might help in debugging. | ||
2193 | { | ||
2194 | echo | ||
2195 | |||
2196 | $as_echo "## ---------------- ## | ||
2197 | ## Cache variables. ## | ||
2198 | ## ---------------- ##" | ||
2199 | echo | ||
2200 | # The following way of writing the cache mishandles newlines in values, | ||
2201 | ( | ||
2202 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2203 | eval ac_val=\$$ac_var | ||
2204 | case $ac_val in #( | ||
2205 | *${as_nl}*) | ||
2206 | case $ac_var in #( | ||
2207 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2208 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2209 | esac | ||
2210 | case $ac_var in #( | ||
2211 | _ | IFS | as_nl) ;; #( | ||
2212 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2213 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2214 | esac ;; | ||
2215 | esac | ||
2216 | done | ||
2217 | (set) 2>&1 | | ||
2218 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2219 | *${as_nl}ac_space=\ *) | ||
2220 | sed -n \ | ||
2221 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2222 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2223 | ;; #( | ||
2224 | *) | ||
2225 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2226 | ;; | ||
2227 | esac | | ||
2228 | sort | ||
2229 | ) | ||
2230 | echo | ||
2231 | |||
2232 | $as_echo "## ----------------- ## | ||
2233 | ## Output variables. ## | ||
2234 | ## ----------------- ##" | ||
2235 | echo | ||
2236 | for ac_var in $ac_subst_vars | ||
2237 | do | ||
2238 | eval ac_val=\$$ac_var | ||
2239 | case $ac_val in | ||
2240 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2241 | esac | ||
2242 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2243 | done | sort | ||
2244 | echo | ||
2245 | |||
2246 | if test -n "$ac_subst_files"; then | ||
2247 | $as_echo "## ------------------- ## | ||
2248 | ## File substitutions. ## | ||
2249 | ## ------------------- ##" | ||
2250 | echo | ||
2251 | for ac_var in $ac_subst_files | ||
2252 | do | ||
2253 | eval ac_val=\$$ac_var | ||
2254 | case $ac_val in | ||
2255 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2256 | esac | ||
2257 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2258 | done | sort | ||
2259 | echo | ||
2260 | fi | ||
2261 | |||
2262 | if test -s confdefs.h; then | ||
2263 | $as_echo "## ----------- ## | ||
2264 | ## confdefs.h. ## | ||
2265 | ## ----------- ##" | ||
2266 | echo | ||
2267 | cat confdefs.h | ||
2268 | echo | ||
2269 | fi | ||
2270 | test "$ac_signal" != 0 && | ||
2271 | $as_echo "$as_me: caught signal $ac_signal" | ||
2272 | $as_echo "$as_me: exit $exit_status" | ||
2273 | } >&5 | ||
2274 | rm -f core *.core core.conftest.* && | ||
2275 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2276 | exit $exit_status | ||
2277 | ' 0 | ||
2278 | for ac_signal in 1 2 13 15; do | ||
2279 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2280 | done | ||
2281 | ac_signal=0 | ||
2282 | |||
2283 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2284 | rm -f -r conftest* confdefs.h | ||
2285 | |||
2286 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2287 | |||
2288 | # Predefined preprocessor variables. | ||
2289 | |||
2290 | cat >>confdefs.h <<_ACEOF | ||
2291 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2292 | _ACEOF | ||
2293 | |||
2294 | cat >>confdefs.h <<_ACEOF | ||
2295 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2296 | _ACEOF | ||
2297 | |||
2298 | cat >>confdefs.h <<_ACEOF | ||
2299 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2300 | _ACEOF | ||
2301 | |||
2302 | cat >>confdefs.h <<_ACEOF | ||
2303 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2304 | _ACEOF | ||
2305 | |||
2306 | cat >>confdefs.h <<_ACEOF | ||
2307 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2308 | _ACEOF | ||
2309 | |||
2310 | cat >>confdefs.h <<_ACEOF | ||
2311 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2312 | _ACEOF | ||
2313 | |||
2314 | |||
2315 | # Let the site file select an alternate cache file if it wants to. | ||
2316 | # Prefer an explicitly selected file to automatically selected ones. | ||
2317 | ac_site_file1=NONE | ||
2318 | ac_site_file2=NONE | ||
2319 | if test -n "$CONFIG_SITE"; then | ||
2320 | # We do not want a PATH search for config.site. | ||
2321 | case $CONFIG_SITE in #(( | ||
2322 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2323 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2324 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2325 | esac | ||
2326 | elif test "x$prefix" != xNONE; then | ||
2327 | ac_site_file1=$prefix/share/config.site | ||
2328 | ac_site_file2=$prefix/etc/config.site | ||
2329 | else | ||
2330 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2331 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2332 | fi | ||
2333 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2334 | do | ||
2335 | test "x$ac_site_file" = xNONE && continue | ||
2336 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2338 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2339 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2340 | . "$ac_site_file" \ | ||
2341 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2342 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2343 | as_fn_error $? "failed to load site script $ac_site_file | ||
2344 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
2345 | fi | ||
2346 | done | ||
2347 | |||
2348 | if test -r "$cache_file"; then | ||
2349 | # Some versions of bash will fail to source /dev/null (special files | ||
2350 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2351 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2353 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2354 | case $cache_file in | ||
2355 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2356 | *) . "./$cache_file";; | ||
2357 | esac | ||
2358 | fi | ||
2359 | else | ||
2360 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2361 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2362 | >$cache_file | ||
2363 | fi | ||
2364 | |||
2365 | # Check that the precious variables saved in the cache have kept the same | ||
2366 | # value. | ||
2367 | ac_cache_corrupted=false | ||
2368 | for ac_var in $ac_precious_vars; do | ||
2369 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2370 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2371 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2372 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2373 | case $ac_old_set,$ac_new_set in | ||
2374 | set,) | ||
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2376 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2377 | ac_cache_corrupted=: ;; | ||
2378 | ,set) | ||
2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2380 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2381 | ac_cache_corrupted=: ;; | ||
2382 | ,);; | ||
2383 | *) | ||
2384 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2385 | # differences in whitespace do not lead to failure. | ||
2386 | ac_old_val_w=`echo x $ac_old_val` | ||
2387 | ac_new_val_w=`echo x $ac_new_val` | ||
2388 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2390 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2391 | ac_cache_corrupted=: | ||
2392 | else | ||
2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2394 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2395 | eval $ac_var=\$ac_old_val | ||
2396 | fi | ||
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2398 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2400 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2401 | fi;; | ||
2402 | esac | ||
2403 | # Pass precious variables to config.status. | ||
2404 | if test "$ac_new_set" = set; then | ||
2405 | case $ac_new_val in | ||
2406 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2407 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2408 | esac | ||
2409 | case " $ac_configure_args " in | ||
2410 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2411 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2412 | esac | ||
2413 | fi | ||
2414 | done | ||
2415 | if $ac_cache_corrupted; then | ||
2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2417 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2419 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2420 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2421 | fi | ||
2422 | ## -------------------- ## | ||
2423 | ## Main body of script. ## | ||
2424 | ## -------------------- ## | ||
2425 | |||
2426 | ac_ext=c | ||
2427 | ac_cpp='$CPP $CPPFLAGS' | ||
2428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2431 | |||
2432 | |||
2433 | |||
2434 | |||
2435 | |||
2436 | |||
2437 | ac_config_headers="$ac_config_headers config.h" | ||
2438 | |||
2439 | |||
2440 | |||
2441 | |||
2442 | am__api_version='1.11' | ||
2443 | |||
2444 | ac_aux_dir= | ||
2445 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2446 | if test -f "$ac_dir/install-sh"; then | ||
2447 | ac_aux_dir=$ac_dir | ||
2448 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2449 | break | ||
2450 | elif test -f "$ac_dir/install.sh"; then | ||
2451 | ac_aux_dir=$ac_dir | ||
2452 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2453 | break | ||
2454 | elif test -f "$ac_dir/shtool"; then | ||
2455 | ac_aux_dir=$ac_dir | ||
2456 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2457 | break | ||
2458 | fi | ||
2459 | done | ||
2460 | if test -z "$ac_aux_dir"; then | ||
2461 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
2462 | fi | ||
2463 | |||
2464 | # These three variables are undocumented and unsupported, | ||
2465 | # and are intended to be withdrawn in a future Autoconf release. | ||
2466 | # They can cause serious problems if a builder's source tree is in a directory | ||
2467 | # whose full name contains unusual characters. | ||
2468 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2469 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2470 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2471 | |||
2472 | |||
2473 | # Find a good install program. We prefer a C program (faster), | ||
2474 | # so one script is as good as another. But avoid the broken or | ||
2475 | # incompatible versions: | ||
2476 | # SysV /etc/install, /usr/sbin/install | ||
2477 | # SunOS /usr/etc/install | ||
2478 | # IRIX /sbin/install | ||
2479 | # AIX /bin/install | ||
2480 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2481 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2482 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2483 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2484 | # OS/2's system install, which has a completely different semantic | ||
2485 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2486 | # Reject install programs that cannot install multiple files. | ||
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
2488 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
2489 | if test -z "$INSTALL"; then | ||
2490 | if test "${ac_cv_path_install+set}" = set; then : | ||
2491 | $as_echo_n "(cached) " >&6 | ||
2492 | else | ||
2493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2494 | for as_dir in $PATH | ||
2495 | do | ||
2496 | IFS=$as_save_IFS | ||
2497 | test -z "$as_dir" && as_dir=. | ||
2498 | # Account for people who put trailing slashes in PATH elements. | ||
2499 | case $as_dir/ in #(( | ||
2500 | ./ | .// | /[cC]/* | \ | ||
2501 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2502 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
2503 | /usr/ucb/* ) ;; | ||
2504 | *) | ||
2505 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2506 | # Don't use installbsd from OSF since it installs stuff as root | ||
2507 | # by default. | ||
2508 | for ac_prog in ginstall scoinst install; do | ||
2509 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2510 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2511 | if test $ac_prog = install && | ||
2512 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2513 | # AIX install. It has an incompatible calling convention. | ||
2514 | : | ||
2515 | elif test $ac_prog = install && | ||
2516 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2517 | # program-specific install script used by HP pwplus--don't use. | ||
2518 | : | ||
2519 | else | ||
2520 | rm -rf conftest.one conftest.two conftest.dir | ||
2521 | echo one > conftest.one | ||
2522 | echo two > conftest.two | ||
2523 | mkdir conftest.dir | ||
2524 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
2525 | test -s conftest.one && test -s conftest.two && | ||
2526 | test -s conftest.dir/conftest.one && | ||
2527 | test -s conftest.dir/conftest.two | ||
2528 | then | ||
2529 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2530 | break 3 | ||
2531 | fi | ||
2532 | fi | ||
2533 | fi | ||
2534 | done | ||
2535 | done | ||
2536 | ;; | ||
2537 | esac | ||
2538 | |||
2539 | done | ||
2540 | IFS=$as_save_IFS | ||
2541 | |||
2542 | rm -rf conftest.one conftest.two conftest.dir | ||
2543 | |||
2544 | fi | ||
2545 | if test "${ac_cv_path_install+set}" = set; then | ||
2546 | INSTALL=$ac_cv_path_install | ||
2547 | else | ||
2548 | # As a last resort, use the slow shell script. Don't cache a | ||
2549 | # value for INSTALL within a source directory, because that will | ||
2550 | # break other packages using the cache if that directory is | ||
2551 | # removed, or if the value is a relative name. | ||
2552 | INSTALL=$ac_install_sh | ||
2553 | fi | ||
2554 | fi | ||
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
2556 | $as_echo "$INSTALL" >&6; } | ||
2557 | |||
2558 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2559 | # It thinks the first close brace ends the variable substitution. | ||
2560 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2561 | |||
2562 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2563 | |||
2564 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2565 | |||
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
2567 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
2568 | # Just in case | ||
2569 | sleep 1 | ||
2570 | echo timestamp > conftest.file | ||
2571 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
2572 | # name. Accept space and tab only in the latter. | ||
2573 | am_lf=' | ||
2574 | ' | ||
2575 | case `pwd` in | ||
2576 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
2577 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
2578 | esac | ||
2579 | case $srcdir in | ||
2580 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
2581 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
2582 | esac | ||
2583 | |||
2584 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2585 | # arguments. Must try -L first in case configure is actually a | ||
2586 | # symlink; some systems play weird games with the mod time of symlinks | ||
2587 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2588 | # directory). | ||
2589 | if ( | ||
2590 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
2591 | if test "$*" = "X"; then | ||
2592 | # -L didn't work. | ||
2593 | set X `ls -t "$srcdir/configure" conftest.file` | ||
2594 | fi | ||
2595 | rm -f conftest.file | ||
2596 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2597 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2598 | |||
2599 | # If neither matched, then we have a broken ls. This can happen | ||
2600 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2601 | # broken ls alias from the environment. This has actually | ||
2602 | # happened. Such a system could not be considered "sane". | ||
2603 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
2604 | alias in your environment" "$LINENO" 5 | ||
2605 | fi | ||
2606 | |||
2607 | test "$2" = conftest.file | ||
2608 | ) | ||
2609 | then | ||
2610 | # Ok. | ||
2611 | : | ||
2612 | else | ||
2613 | as_fn_error $? "newly created file is older than distributed files! | ||
2614 | Check your system clock" "$LINENO" 5 | ||
2615 | fi | ||
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2617 | $as_echo "yes" >&6; } | ||
2618 | test "$program_prefix" != NONE && | ||
2619 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2620 | # Use a double $ so make ignores it. | ||
2621 | test "$program_suffix" != NONE && | ||
2622 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2623 | # Double any \ or $. | ||
2624 | # By default was `s,x,x', remove it if useless. | ||
2625 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
2626 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
2627 | |||
2628 | # expand $ac_aux_dir to an absolute path | ||
2629 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2630 | |||
2631 | if test x"${MISSING+set}" != xset; then | ||
2632 | case $am_aux_dir in | ||
2633 | *\ * | *\ *) | ||
2634 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
2635 | *) | ||
2636 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
2637 | esac | ||
2638 | fi | ||
2639 | # Use eval to expand $SHELL | ||
2640 | if eval "$MISSING --run true"; then | ||
2641 | am_missing_run="$MISSING --run " | ||
2642 | else | ||
2643 | am_missing_run= | ||
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
2645 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2646 | fi | ||
2647 | |||
2648 | if test x"${install_sh}" != xset; then | ||
2649 | case $am_aux_dir in | ||
2650 | *\ * | *\ *) | ||
2651 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
2652 | *) | ||
2653 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
2654 | esac | ||
2655 | fi | ||
2656 | |||
2657 | # Installed binaries are usually stripped using `strip' when the user | ||
2658 | # run `make install-strip'. However `strip' might not be the right | ||
2659 | # tool to use in cross-compilation environments, therefore Automake | ||
2660 | # will honor the `STRIP' environment variable to overrule this program. | ||
2661 | if test "$cross_compiling" != no; then | ||
2662 | if test -n "$ac_tool_prefix"; then | ||
2663 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2664 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2666 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2667 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
2668 | $as_echo_n "(cached) " >&6 | ||
2669 | else | ||
2670 | if test -n "$STRIP"; then | ||
2671 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2672 | else | ||
2673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2674 | for as_dir in $PATH | ||
2675 | do | ||
2676 | IFS=$as_save_IFS | ||
2677 | test -z "$as_dir" && as_dir=. | ||
2678 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2680 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2682 | break 2 | ||
2683 | fi | ||
2684 | done | ||
2685 | done | ||
2686 | IFS=$as_save_IFS | ||
2687 | |||
2688 | fi | ||
2689 | fi | ||
2690 | STRIP=$ac_cv_prog_STRIP | ||
2691 | if test -n "$STRIP"; then | ||
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
2693 | $as_echo "$STRIP" >&6; } | ||
2694 | else | ||
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2696 | $as_echo "no" >&6; } | ||
2697 | fi | ||
2698 | |||
2699 | |||
2700 | fi | ||
2701 | if test -z "$ac_cv_prog_STRIP"; then | ||
2702 | ac_ct_STRIP=$STRIP | ||
2703 | # Extract the first word of "strip", so it can be a program name with args. | ||
2704 | set dummy strip; ac_word=$2 | ||
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2706 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2707 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
2708 | $as_echo_n "(cached) " >&6 | ||
2709 | else | ||
2710 | if test -n "$ac_ct_STRIP"; then | ||
2711 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2712 | else | ||
2713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2714 | for as_dir in $PATH | ||
2715 | do | ||
2716 | IFS=$as_save_IFS | ||
2717 | test -z "$as_dir" && as_dir=. | ||
2718 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2720 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2722 | break 2 | ||
2723 | fi | ||
2724 | done | ||
2725 | done | ||
2726 | IFS=$as_save_IFS | ||
2727 | |||
2728 | fi | ||
2729 | fi | ||
2730 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2731 | if test -n "$ac_ct_STRIP"; then | ||
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
2733 | $as_echo "$ac_ct_STRIP" >&6; } | ||
2734 | else | ||
2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2736 | $as_echo "no" >&6; } | ||
2737 | fi | ||
2738 | |||
2739 | if test "x$ac_ct_STRIP" = x; then | ||
2740 | STRIP=":" | ||
2741 | else | ||
2742 | case $cross_compiling:$ac_tool_warned in | ||
2743 | yes:) | ||
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2745 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2746 | ac_tool_warned=yes ;; | ||
2747 | esac | ||
2748 | STRIP=$ac_ct_STRIP | ||
2749 | fi | ||
2750 | else | ||
2751 | STRIP="$ac_cv_prog_STRIP" | ||
2752 | fi | ||
2753 | |||
2754 | fi | ||
2755 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
2756 | |||
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
2758 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
2759 | if test -z "$MKDIR_P"; then | ||
2760 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
2761 | $as_echo_n "(cached) " >&6 | ||
2762 | else | ||
2763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2764 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
2765 | do | ||
2766 | IFS=$as_save_IFS | ||
2767 | test -z "$as_dir" && as_dir=. | ||
2768 | for ac_prog in mkdir gmkdir; do | ||
2769 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2770 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
2771 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
2772 | 'mkdir (GNU coreutils) '* | \ | ||
2773 | 'mkdir (coreutils) '* | \ | ||
2774 | 'mkdir (fileutils) '4.1*) | ||
2775 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
2776 | break 3;; | ||
2777 | esac | ||
2778 | done | ||
2779 | done | ||
2780 | done | ||
2781 | IFS=$as_save_IFS | ||
2782 | |||
2783 | fi | ||
2784 | |||
2785 | test -d ./--version && rmdir ./--version | ||
2786 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2787 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
2788 | else | ||
2789 | # As a last resort, use the slow shell script. Don't cache a | ||
2790 | # value for MKDIR_P within a source directory, because that will | ||
2791 | # break other packages using the cache if that directory is | ||
2792 | # removed, or if the value is a relative name. | ||
2793 | MKDIR_P="$ac_install_sh -d" | ||
2794 | fi | ||
2795 | fi | ||
2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
2797 | $as_echo "$MKDIR_P" >&6; } | ||
2798 | |||
2799 | mkdir_p="$MKDIR_P" | ||
2800 | case $mkdir_p in | ||
2801 | [\\/$]* | ?:[\\/]*) ;; | ||
2802 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
2803 | esac | ||
2804 | |||
2805 | for ac_prog in gawk mawk nawk awk | ||
2806 | do | ||
2807 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2808 | set dummy $ac_prog; ac_word=$2 | ||
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2810 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2811 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
2812 | $as_echo_n "(cached) " >&6 | ||
2813 | else | ||
2814 | if test -n "$AWK"; then | ||
2815 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2816 | else | ||
2817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2818 | for as_dir in $PATH | ||
2819 | do | ||
2820 | IFS=$as_save_IFS | ||
2821 | test -z "$as_dir" && as_dir=. | ||
2822 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2824 | ac_cv_prog_AWK="$ac_prog" | ||
2825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2826 | break 2 | ||
2827 | fi | ||
2828 | done | ||
2829 | done | ||
2830 | IFS=$as_save_IFS | ||
2831 | |||
2832 | fi | ||
2833 | fi | ||
2834 | AWK=$ac_cv_prog_AWK | ||
2835 | if test -n "$AWK"; then | ||
2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
2837 | $as_echo "$AWK" >&6; } | ||
2838 | else | ||
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2840 | $as_echo "no" >&6; } | ||
2841 | fi | ||
2842 | |||
2843 | |||
2844 | test -n "$AWK" && break | ||
2845 | done | ||
2846 | |||
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2848 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
2849 | set x ${MAKE-make} | ||
2850 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2851 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
2852 | $as_echo_n "(cached) " >&6 | ||
2853 | else | ||
2854 | cat >conftest.make <<\_ACEOF | ||
2855 | SHELL = /bin/sh | ||
2856 | all: | ||
2857 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2858 | _ACEOF | ||
2859 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
2860 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2861 | *@@@%%%=?*=@@@%%%*) | ||
2862 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2863 | *) | ||
2864 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2865 | esac | ||
2866 | rm -f conftest.make | ||
2867 | fi | ||
2868 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2870 | $as_echo "yes" >&6; } | ||
2871 | SET_MAKE= | ||
2872 | else | ||
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2874 | $as_echo "no" >&6; } | ||
2875 | SET_MAKE="MAKE=${MAKE-make}" | ||
2876 | fi | ||
2877 | |||
2878 | rm -rf .tst 2>/dev/null | ||
2879 | mkdir .tst 2>/dev/null | ||
2880 | if test -d .tst; then | ||
2881 | am__leading_dot=. | ||
2882 | else | ||
2883 | am__leading_dot=_ | ||
2884 | fi | ||
2885 | rmdir .tst 2>/dev/null | ||
2886 | |||
2887 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
2888 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
2889 | # is not polluted with repeated "-I." | ||
2890 | am__isrc=' -I$(srcdir)' | ||
2891 | # test to see if srcdir already configured | ||
2892 | if test -f $srcdir/config.status; then | ||
2893 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
2894 | fi | ||
2895 | fi | ||
2896 | |||
2897 | # test whether we have cygpath | ||
2898 | if test -z "$CYGPATH_W"; then | ||
2899 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2900 | CYGPATH_W='cygpath -w' | ||
2901 | else | ||
2902 | CYGPATH_W=echo | ||
2903 | fi | ||
2904 | fi | ||
2905 | |||
2906 | |||
2907 | # Define the identity of the package. | ||
2908 | PACKAGE='eet' | ||
2909 | VERSION='1.5.0' | ||
2910 | |||
2911 | |||
2912 | cat >>confdefs.h <<_ACEOF | ||
2913 | #define PACKAGE "$PACKAGE" | ||
2914 | _ACEOF | ||
2915 | |||
2916 | |||
2917 | cat >>confdefs.h <<_ACEOF | ||
2918 | #define VERSION "$VERSION" | ||
2919 | _ACEOF | ||
2920 | |||
2921 | # Some tools Automake needs. | ||
2922 | |||
2923 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2924 | |||
2925 | |||
2926 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2927 | |||
2928 | |||
2929 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2930 | |||
2931 | |||
2932 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2933 | |||
2934 | |||
2935 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2936 | |||
2937 | # We need awk for the "check" target. The system "awk" is bad on | ||
2938 | # some platforms. | ||
2939 | # Always define AMTAR for backward compatibility. | ||
2940 | |||
2941 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2942 | |||
2943 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
2944 | |||
2945 | |||
2946 | |||
2947 | |||
2948 | |||
2949 | # Check whether --enable-silent-rules was given. | ||
2950 | if test "${enable_silent_rules+set}" = set; then : | ||
2951 | enableval=$enable_silent_rules; | ||
2952 | fi | ||
2953 | |||
2954 | case $enable_silent_rules in | ||
2955 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
2956 | no) AM_DEFAULT_VERBOSITY=1;; | ||
2957 | *) AM_DEFAULT_VERBOSITY=0;; | ||
2958 | esac | ||
2959 | AM_BACKSLASH='\' | ||
2960 | |||
2961 | |||
2962 | # Make sure we can run config.sub. | ||
2963 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2964 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
2965 | |||
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
2967 | $as_echo_n "checking build system type... " >&6; } | ||
2968 | if test "${ac_cv_build+set}" = set; then : | ||
2969 | $as_echo_n "(cached) " >&6 | ||
2970 | else | ||
2971 | ac_build_alias=$build_alias | ||
2972 | test "x$ac_build_alias" = x && | ||
2973 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2974 | test "x$ac_build_alias" = x && | ||
2975 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
2976 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2977 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
2978 | |||
2979 | fi | ||
2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
2981 | $as_echo "$ac_cv_build" >&6; } | ||
2982 | case $ac_cv_build in | ||
2983 | *-*-*) ;; | ||
2984 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
2985 | esac | ||
2986 | build=$ac_cv_build | ||
2987 | ac_save_IFS=$IFS; IFS='-' | ||
2988 | set x $ac_cv_build | ||
2989 | shift | ||
2990 | build_cpu=$1 | ||
2991 | build_vendor=$2 | ||
2992 | shift; shift | ||
2993 | # Remember, the first character of IFS is used to create $*, | ||
2994 | # except with old shells: | ||
2995 | build_os=$* | ||
2996 | IFS=$ac_save_IFS | ||
2997 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2998 | |||
2999 | |||
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3001 | $as_echo_n "checking host system type... " >&6; } | ||
3002 | if test "${ac_cv_host+set}" = set; then : | ||
3003 | $as_echo_n "(cached) " >&6 | ||
3004 | else | ||
3005 | if test "x$host_alias" = x; then | ||
3006 | ac_cv_host=$ac_cv_build | ||
3007 | else | ||
3008 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3009 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3010 | fi | ||
3011 | |||
3012 | fi | ||
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3014 | $as_echo "$ac_cv_host" >&6; } | ||
3015 | case $ac_cv_host in | ||
3016 | *-*-*) ;; | ||
3017 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
3018 | esac | ||
3019 | host=$ac_cv_host | ||
3020 | ac_save_IFS=$IFS; IFS='-' | ||
3021 | set x $ac_cv_host | ||
3022 | shift | ||
3023 | host_cpu=$1 | ||
3024 | host_vendor=$2 | ||
3025 | shift; shift | ||
3026 | # Remember, the first character of IFS is used to create $*, | ||
3027 | # except with old shells: | ||
3028 | host_os=$* | ||
3029 | IFS=$ac_save_IFS | ||
3030 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3031 | |||
3032 | |||
3033 | enable_win32_dll=yes | ||
3034 | |||
3035 | case $host in | ||
3036 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
3037 | if test -n "$ac_tool_prefix"; then | ||
3038 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
3039 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3041 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3042 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
3043 | $as_echo_n "(cached) " >&6 | ||
3044 | else | ||
3045 | if test -n "$AS"; then | ||
3046 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
3047 | else | ||
3048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3049 | for as_dir in $PATH | ||
3050 | do | ||
3051 | IFS=$as_save_IFS | ||
3052 | test -z "$as_dir" && as_dir=. | ||
3053 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3055 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
3056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3057 | break 2 | ||
3058 | fi | ||
3059 | done | ||
3060 | done | ||
3061 | IFS=$as_save_IFS | ||
3062 | |||
3063 | fi | ||
3064 | fi | ||
3065 | AS=$ac_cv_prog_AS | ||
3066 | if test -n "$AS"; then | ||
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
3068 | $as_echo "$AS" >&6; } | ||
3069 | else | ||
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3071 | $as_echo "no" >&6; } | ||
3072 | fi | ||
3073 | |||
3074 | |||
3075 | fi | ||
3076 | if test -z "$ac_cv_prog_AS"; then | ||
3077 | ac_ct_AS=$AS | ||
3078 | # Extract the first word of "as", so it can be a program name with args. | ||
3079 | set dummy as; ac_word=$2 | ||
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3081 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3082 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
3083 | $as_echo_n "(cached) " >&6 | ||
3084 | else | ||
3085 | if test -n "$ac_ct_AS"; then | ||
3086 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
3087 | else | ||
3088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3089 | for as_dir in $PATH | ||
3090 | do | ||
3091 | IFS=$as_save_IFS | ||
3092 | test -z "$as_dir" && as_dir=. | ||
3093 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3095 | ac_cv_prog_ac_ct_AS="as" | ||
3096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3097 | break 2 | ||
3098 | fi | ||
3099 | done | ||
3100 | done | ||
3101 | IFS=$as_save_IFS | ||
3102 | |||
3103 | fi | ||
3104 | fi | ||
3105 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
3106 | if test -n "$ac_ct_AS"; then | ||
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
3108 | $as_echo "$ac_ct_AS" >&6; } | ||
3109 | else | ||
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3111 | $as_echo "no" >&6; } | ||
3112 | fi | ||
3113 | |||
3114 | if test "x$ac_ct_AS" = x; then | ||
3115 | AS="false" | ||
3116 | else | ||
3117 | case $cross_compiling:$ac_tool_warned in | ||
3118 | yes:) | ||
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3121 | ac_tool_warned=yes ;; | ||
3122 | esac | ||
3123 | AS=$ac_ct_AS | ||
3124 | fi | ||
3125 | else | ||
3126 | AS="$ac_cv_prog_AS" | ||
3127 | fi | ||
3128 | |||
3129 | if test -n "$ac_tool_prefix"; then | ||
3130 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
3131 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3133 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3134 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
3135 | $as_echo_n "(cached) " >&6 | ||
3136 | else | ||
3137 | if test -n "$DLLTOOL"; then | ||
3138 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
3139 | else | ||
3140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3141 | for as_dir in $PATH | ||
3142 | do | ||
3143 | IFS=$as_save_IFS | ||
3144 | test -z "$as_dir" && as_dir=. | ||
3145 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3147 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
3148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3149 | break 2 | ||
3150 | fi | ||
3151 | done | ||
3152 | done | ||
3153 | IFS=$as_save_IFS | ||
3154 | |||
3155 | fi | ||
3156 | fi | ||
3157 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
3158 | if test -n "$DLLTOOL"; then | ||
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
3160 | $as_echo "$DLLTOOL" >&6; } | ||
3161 | else | ||
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3163 | $as_echo "no" >&6; } | ||
3164 | fi | ||
3165 | |||
3166 | |||
3167 | fi | ||
3168 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
3169 | ac_ct_DLLTOOL=$DLLTOOL | ||
3170 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
3171 | set dummy dlltool; ac_word=$2 | ||
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3173 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3174 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
3175 | $as_echo_n "(cached) " >&6 | ||
3176 | else | ||
3177 | if test -n "$ac_ct_DLLTOOL"; then | ||
3178 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
3179 | else | ||
3180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3181 | for as_dir in $PATH | ||
3182 | do | ||
3183 | IFS=$as_save_IFS | ||
3184 | test -z "$as_dir" && as_dir=. | ||
3185 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3187 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
3188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3189 | break 2 | ||
3190 | fi | ||
3191 | done | ||
3192 | done | ||
3193 | IFS=$as_save_IFS | ||
3194 | |||
3195 | fi | ||
3196 | fi | ||
3197 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
3198 | if test -n "$ac_ct_DLLTOOL"; then | ||
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
3200 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
3201 | else | ||
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3203 | $as_echo "no" >&6; } | ||
3204 | fi | ||
3205 | |||
3206 | if test "x$ac_ct_DLLTOOL" = x; then | ||
3207 | DLLTOOL="false" | ||
3208 | else | ||
3209 | case $cross_compiling:$ac_tool_warned in | ||
3210 | yes:) | ||
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3212 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3213 | ac_tool_warned=yes ;; | ||
3214 | esac | ||
3215 | DLLTOOL=$ac_ct_DLLTOOL | ||
3216 | fi | ||
3217 | else | ||
3218 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
3219 | fi | ||
3220 | |||
3221 | if test -n "$ac_tool_prefix"; then | ||
3222 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
3223 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3225 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3226 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
3227 | $as_echo_n "(cached) " >&6 | ||
3228 | else | ||
3229 | if test -n "$OBJDUMP"; then | ||
3230 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
3231 | else | ||
3232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3233 | for as_dir in $PATH | ||
3234 | do | ||
3235 | IFS=$as_save_IFS | ||
3236 | test -z "$as_dir" && as_dir=. | ||
3237 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3239 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
3240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3241 | break 2 | ||
3242 | fi | ||
3243 | done | ||
3244 | done | ||
3245 | IFS=$as_save_IFS | ||
3246 | |||
3247 | fi | ||
3248 | fi | ||
3249 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
3250 | if test -n "$OBJDUMP"; then | ||
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
3252 | $as_echo "$OBJDUMP" >&6; } | ||
3253 | else | ||
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3255 | $as_echo "no" >&6; } | ||
3256 | fi | ||
3257 | |||
3258 | |||
3259 | fi | ||
3260 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
3261 | ac_ct_OBJDUMP=$OBJDUMP | ||
3262 | # Extract the first word of "objdump", so it can be a program name with args. | ||
3263 | set dummy objdump; ac_word=$2 | ||
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3265 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3266 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
3267 | $as_echo_n "(cached) " >&6 | ||
3268 | else | ||
3269 | if test -n "$ac_ct_OBJDUMP"; then | ||
3270 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
3271 | else | ||
3272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3273 | for as_dir in $PATH | ||
3274 | do | ||
3275 | IFS=$as_save_IFS | ||
3276 | test -z "$as_dir" && as_dir=. | ||
3277 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3279 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
3280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3281 | break 2 | ||
3282 | fi | ||
3283 | done | ||
3284 | done | ||
3285 | IFS=$as_save_IFS | ||
3286 | |||
3287 | fi | ||
3288 | fi | ||
3289 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
3290 | if test -n "$ac_ct_OBJDUMP"; then | ||
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
3292 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
3293 | else | ||
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3295 | $as_echo "no" >&6; } | ||
3296 | fi | ||
3297 | |||
3298 | if test "x$ac_ct_OBJDUMP" = x; then | ||
3299 | OBJDUMP="false" | ||
3300 | else | ||
3301 | case $cross_compiling:$ac_tool_warned in | ||
3302 | yes:) | ||
3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3304 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3305 | ac_tool_warned=yes ;; | ||
3306 | esac | ||
3307 | OBJDUMP=$ac_ct_OBJDUMP | ||
3308 | fi | ||
3309 | else | ||
3310 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
3311 | fi | ||
3312 | |||
3313 | ;; | ||
3314 | esac | ||
3315 | |||
3316 | test -z "$AS" && AS=as | ||
3317 | |||
3318 | |||
3319 | |||
3320 | |||
3321 | |||
3322 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
3323 | |||
3324 | |||
3325 | |||
3326 | |||
3327 | |||
3328 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
3329 | |||
3330 | |||
3331 | |||
3332 | |||
3333 | |||
3334 | |||
3335 | |||
3336 | case `pwd` in | ||
3337 | *\ * | *\ *) | ||
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
3339 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
3340 | esac | ||
3341 | |||
3342 | |||
3343 | |||
3344 | macro_version='2.2.6b' | ||
3345 | macro_revision='1.3017' | ||
3346 | |||
3347 | |||
3348 | |||
3349 | |||
3350 | |||
3351 | |||
3352 | |||
3353 | |||
3354 | |||
3355 | |||
3356 | |||
3357 | |||
3358 | |||
3359 | ltmain="$ac_aux_dir/ltmain.sh" | ||
3360 | |||
3361 | DEPDIR="${am__leading_dot}deps" | ||
3362 | |||
3363 | ac_config_commands="$ac_config_commands depfiles" | ||
3364 | |||
3365 | |||
3366 | am_make=${MAKE-make} | ||
3367 | cat > confinc << 'END' | ||
3368 | am__doit: | ||
3369 | @echo this is the am__doit target | ||
3370 | .PHONY: am__doit | ||
3371 | END | ||
3372 | # If we don't find an include directive, just comment out the code. | ||
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
3374 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
3375 | am__include="#" | ||
3376 | am__quote= | ||
3377 | _am_result=none | ||
3378 | # First try GNU make style include. | ||
3379 | echo "include confinc" > confmf | ||
3380 | # Ignore all kinds of additional output from `make'. | ||
3381 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3382 | *the\ am__doit\ target*) | ||
3383 | am__include=include | ||
3384 | am__quote= | ||
3385 | _am_result=GNU | ||
3386 | ;; | ||
3387 | esac | ||
3388 | # Now try BSD make style include. | ||
3389 | if test "$am__include" = "#"; then | ||
3390 | echo '.include "confinc"' > confmf | ||
3391 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3392 | *the\ am__doit\ target*) | ||
3393 | am__include=.include | ||
3394 | am__quote="\"" | ||
3395 | _am_result=BSD | ||
3396 | ;; | ||
3397 | esac | ||
3398 | fi | ||
3399 | |||
3400 | |||
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
3402 | $as_echo "$_am_result" >&6; } | ||
3403 | rm -f confinc confmf | ||
3404 | |||
3405 | # Check whether --enable-dependency-tracking was given. | ||
3406 | if test "${enable_dependency_tracking+set}" = set; then : | ||
3407 | enableval=$enable_dependency_tracking; | ||
3408 | fi | ||
3409 | |||
3410 | if test "x$enable_dependency_tracking" != xno; then | ||
3411 | am_depcomp="$ac_aux_dir/depcomp" | ||
3412 | AMDEPBACKSLASH='\' | ||
3413 | fi | ||
3414 | if test "x$enable_dependency_tracking" != xno; then | ||
3415 | AMDEP_TRUE= | ||
3416 | AMDEP_FALSE='#' | ||
3417 | else | ||
3418 | AMDEP_TRUE='#' | ||
3419 | AMDEP_FALSE= | ||
3420 | fi | ||
3421 | |||
3422 | |||
3423 | ac_ext=c | ||
3424 | ac_cpp='$CPP $CPPFLAGS' | ||
3425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3428 | if test -n "$ac_tool_prefix"; then | ||
3429 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
3430 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3432 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3433 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3434 | $as_echo_n "(cached) " >&6 | ||
3435 | else | ||
3436 | if test -n "$CC"; then | ||
3437 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3438 | else | ||
3439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3440 | for as_dir in $PATH | ||
3441 | do | ||
3442 | IFS=$as_save_IFS | ||
3443 | test -z "$as_dir" && as_dir=. | ||
3444 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3446 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
3447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3448 | break 2 | ||
3449 | fi | ||
3450 | done | ||
3451 | done | ||
3452 | IFS=$as_save_IFS | ||
3453 | |||
3454 | fi | ||
3455 | fi | ||
3456 | CC=$ac_cv_prog_CC | ||
3457 | if test -n "$CC"; then | ||
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3459 | $as_echo "$CC" >&6; } | ||
3460 | else | ||
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3462 | $as_echo "no" >&6; } | ||
3463 | fi | ||
3464 | |||
3465 | |||
3466 | fi | ||
3467 | if test -z "$ac_cv_prog_CC"; then | ||
3468 | ac_ct_CC=$CC | ||
3469 | # Extract the first word of "gcc", so it can be a program name with args. | ||
3470 | set dummy gcc; ac_word=$2 | ||
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3472 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3473 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3474 | $as_echo_n "(cached) " >&6 | ||
3475 | else | ||
3476 | if test -n "$ac_ct_CC"; then | ||
3477 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3478 | else | ||
3479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3480 | for as_dir in $PATH | ||
3481 | do | ||
3482 | IFS=$as_save_IFS | ||
3483 | test -z "$as_dir" && as_dir=. | ||
3484 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3486 | ac_cv_prog_ac_ct_CC="gcc" | ||
3487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3488 | break 2 | ||
3489 | fi | ||
3490 | done | ||
3491 | done | ||
3492 | IFS=$as_save_IFS | ||
3493 | |||
3494 | fi | ||
3495 | fi | ||
3496 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3497 | if test -n "$ac_ct_CC"; then | ||
3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3499 | $as_echo "$ac_ct_CC" >&6; } | ||
3500 | else | ||
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3502 | $as_echo "no" >&6; } | ||
3503 | fi | ||
3504 | |||
3505 | if test "x$ac_ct_CC" = x; then | ||
3506 | CC="" | ||
3507 | else | ||
3508 | case $cross_compiling:$ac_tool_warned in | ||
3509 | yes:) | ||
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3512 | ac_tool_warned=yes ;; | ||
3513 | esac | ||
3514 | CC=$ac_ct_CC | ||
3515 | fi | ||
3516 | else | ||
3517 | CC="$ac_cv_prog_CC" | ||
3518 | fi | ||
3519 | |||
3520 | if test -z "$CC"; then | ||
3521 | if test -n "$ac_tool_prefix"; then | ||
3522 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
3523 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3525 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3526 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3527 | $as_echo_n "(cached) " >&6 | ||
3528 | else | ||
3529 | if test -n "$CC"; then | ||
3530 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3531 | else | ||
3532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3533 | for as_dir in $PATH | ||
3534 | do | ||
3535 | IFS=$as_save_IFS | ||
3536 | test -z "$as_dir" && as_dir=. | ||
3537 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3538 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3539 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
3540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3541 | break 2 | ||
3542 | fi | ||
3543 | done | ||
3544 | done | ||
3545 | IFS=$as_save_IFS | ||
3546 | |||
3547 | fi | ||
3548 | fi | ||
3549 | CC=$ac_cv_prog_CC | ||
3550 | if test -n "$CC"; then | ||
3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3552 | $as_echo "$CC" >&6; } | ||
3553 | else | ||
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3555 | $as_echo "no" >&6; } | ||
3556 | fi | ||
3557 | |||
3558 | |||
3559 | fi | ||
3560 | fi | ||
3561 | if test -z "$CC"; then | ||
3562 | # Extract the first word of "cc", so it can be a program name with args. | ||
3563 | set dummy cc; ac_word=$2 | ||
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3565 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3566 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3567 | $as_echo_n "(cached) " >&6 | ||
3568 | else | ||
3569 | if test -n "$CC"; then | ||
3570 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3571 | else | ||
3572 | ac_prog_rejected=no | ||
3573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3574 | for as_dir in $PATH | ||
3575 | do | ||
3576 | IFS=$as_save_IFS | ||
3577 | test -z "$as_dir" && as_dir=. | ||
3578 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3579 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3580 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
3581 | ac_prog_rejected=yes | ||
3582 | continue | ||
3583 | fi | ||
3584 | ac_cv_prog_CC="cc" | ||
3585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3586 | break 2 | ||
3587 | fi | ||
3588 | done | ||
3589 | done | ||
3590 | IFS=$as_save_IFS | ||
3591 | |||
3592 | if test $ac_prog_rejected = yes; then | ||
3593 | # We found a bogon in the path, so make sure we never use it. | ||
3594 | set dummy $ac_cv_prog_CC | ||
3595 | shift | ||
3596 | if test $# != 0; then | ||
3597 | # We chose a different compiler from the bogus one. | ||
3598 | # However, it has the same basename, so the bogon will be chosen | ||
3599 | # first if we set CC to just the basename; use the full file name. | ||
3600 | shift | ||
3601 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
3602 | fi | ||
3603 | fi | ||
3604 | fi | ||
3605 | fi | ||
3606 | CC=$ac_cv_prog_CC | ||
3607 | if test -n "$CC"; then | ||
3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3609 | $as_echo "$CC" >&6; } | ||
3610 | else | ||
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3612 | $as_echo "no" >&6; } | ||
3613 | fi | ||
3614 | |||
3615 | |||
3616 | fi | ||
3617 | if test -z "$CC"; then | ||
3618 | if test -n "$ac_tool_prefix"; then | ||
3619 | for ac_prog in cl.exe | ||
3620 | do | ||
3621 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
3622 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3624 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3625 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3626 | $as_echo_n "(cached) " >&6 | ||
3627 | else | ||
3628 | if test -n "$CC"; then | ||
3629 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3630 | else | ||
3631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3632 | for as_dir in $PATH | ||
3633 | do | ||
3634 | IFS=$as_save_IFS | ||
3635 | test -z "$as_dir" && as_dir=. | ||
3636 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3638 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
3639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3640 | break 2 | ||
3641 | fi | ||
3642 | done | ||
3643 | done | ||
3644 | IFS=$as_save_IFS | ||
3645 | |||
3646 | fi | ||
3647 | fi | ||
3648 | CC=$ac_cv_prog_CC | ||
3649 | if test -n "$CC"; then | ||
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3651 | $as_echo "$CC" >&6; } | ||
3652 | else | ||
3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3654 | $as_echo "no" >&6; } | ||
3655 | fi | ||
3656 | |||
3657 | |||
3658 | test -n "$CC" && break | ||
3659 | done | ||
3660 | fi | ||
3661 | if test -z "$CC"; then | ||
3662 | ac_ct_CC=$CC | ||
3663 | for ac_prog in cl.exe | ||
3664 | do | ||
3665 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3666 | set dummy $ac_prog; ac_word=$2 | ||
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3668 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3669 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3670 | $as_echo_n "(cached) " >&6 | ||
3671 | else | ||
3672 | if test -n "$ac_ct_CC"; then | ||
3673 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3674 | else | ||
3675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3676 | for as_dir in $PATH | ||
3677 | do | ||
3678 | IFS=$as_save_IFS | ||
3679 | test -z "$as_dir" && as_dir=. | ||
3680 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3682 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
3683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3684 | break 2 | ||
3685 | fi | ||
3686 | done | ||
3687 | done | ||
3688 | IFS=$as_save_IFS | ||
3689 | |||
3690 | fi | ||
3691 | fi | ||
3692 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3693 | if test -n "$ac_ct_CC"; then | ||
3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3695 | $as_echo "$ac_ct_CC" >&6; } | ||
3696 | else | ||
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3698 | $as_echo "no" >&6; } | ||
3699 | fi | ||
3700 | |||
3701 | |||
3702 | test -n "$ac_ct_CC" && break | ||
3703 | done | ||
3704 | |||
3705 | if test "x$ac_ct_CC" = x; then | ||
3706 | CC="" | ||
3707 | else | ||
3708 | case $cross_compiling:$ac_tool_warned in | ||
3709 | yes:) | ||
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3711 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3712 | ac_tool_warned=yes ;; | ||
3713 | esac | ||
3714 | CC=$ac_ct_CC | ||
3715 | fi | ||
3716 | fi | ||
3717 | |||
3718 | fi | ||
3719 | |||
3720 | |||
3721 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3722 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3723 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
3724 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3725 | |||
3726 | # Provide some information about the compiler. | ||
3727 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
3728 | set X $ac_compile | ||
3729 | ac_compiler=$2 | ||
3730 | for ac_option in --version -v -V -qversion; do | ||
3731 | { { ac_try="$ac_compiler $ac_option >&5" | ||
3732 | case "(($ac_try" in | ||
3733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3734 | *) ac_try_echo=$ac_try;; | ||
3735 | esac | ||
3736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3737 | $as_echo "$ac_try_echo"; } >&5 | ||
3738 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
3739 | ac_status=$? | ||
3740 | if test -s conftest.err; then | ||
3741 | sed '10a\ | ||
3742 | ... rest of stderr output deleted ... | ||
3743 | 10q' conftest.err >conftest.er1 | ||
3744 | cat conftest.er1 >&5 | ||
3745 | fi | ||
3746 | rm -f conftest.er1 conftest.err | ||
3747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3748 | test $ac_status = 0; } | ||
3749 | done | ||
3750 | |||
3751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3752 | /* end confdefs.h. */ | ||
3753 | |||
3754 | int | ||
3755 | main () | ||
3756 | { | ||
3757 | |||
3758 | ; | ||
3759 | return 0; | ||
3760 | } | ||
3761 | _ACEOF | ||
3762 | ac_clean_files_save=$ac_clean_files | ||
3763 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
3764 | # Try to create an executable without -o first, disregard a.out. | ||
3765 | # It will help us diagnose broken compilers, and finding out an intuition | ||
3766 | # of exeext. | ||
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
3768 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
3769 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
3770 | |||
3771 | # The possible output files: | ||
3772 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
3773 | |||
3774 | ac_rmfiles= | ||
3775 | for ac_file in $ac_files | ||
3776 | do | ||
3777 | case $ac_file in | ||
3778 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3779 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
3780 | esac | ||
3781 | done | ||
3782 | rm -f $ac_rmfiles | ||
3783 | |||
3784 | if { { ac_try="$ac_link_default" | ||
3785 | case "(($ac_try" in | ||
3786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3787 | *) ac_try_echo=$ac_try;; | ||
3788 | esac | ||
3789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3790 | $as_echo "$ac_try_echo"; } >&5 | ||
3791 | (eval "$ac_link_default") 2>&5 | ||
3792 | ac_status=$? | ||
3793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3794 | test $ac_status = 0; }; then : | ||
3795 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
3796 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
3797 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
3798 | # so that the user can short-circuit this test for compilers unknown to | ||
3799 | # Autoconf. | ||
3800 | for ac_file in $ac_files '' | ||
3801 | do | ||
3802 | test -f "$ac_file" || continue | ||
3803 | case $ac_file in | ||
3804 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3805 | ;; | ||
3806 | [ab].out ) | ||
3807 | # We found the default executable, but exeext='' is most | ||
3808 | # certainly right. | ||
3809 | break;; | ||
3810 | *.* ) | ||
3811 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3812 | then :; else | ||
3813 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3814 | fi | ||
3815 | # We set ac_cv_exeext here because the later test for it is not | ||
3816 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3817 | # argument, so we may need to know it at that point already. | ||
3818 | # Even if this section looks crufty: it has the advantage of | ||
3819 | # actually working. | ||
3820 | break;; | ||
3821 | * ) | ||
3822 | break;; | ||
3823 | esac | ||
3824 | done | ||
3825 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3826 | |||
3827 | else | ||
3828 | ac_file='' | ||
3829 | fi | ||
3830 | if test -z "$ac_file"; then : | ||
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3832 | $as_echo "no" >&6; } | ||
3833 | $as_echo "$as_me: failed program was:" >&5 | ||
3834 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3835 | |||
3836 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3838 | as_fn_error 77 "C compiler cannot create executables | ||
3839 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3840 | else | ||
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3842 | $as_echo "yes" >&6; } | ||
3843 | fi | ||
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3845 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3847 | $as_echo "$ac_file" >&6; } | ||
3848 | ac_exeext=$ac_cv_exeext | ||
3849 | |||
3850 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3851 | ac_clean_files=$ac_clean_files_save | ||
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3853 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3854 | if { { ac_try="$ac_link" | ||
3855 | case "(($ac_try" in | ||
3856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3857 | *) ac_try_echo=$ac_try;; | ||
3858 | esac | ||
3859 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3860 | $as_echo "$ac_try_echo"; } >&5 | ||
3861 | (eval "$ac_link") 2>&5 | ||
3862 | ac_status=$? | ||
3863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3864 | test $ac_status = 0; }; then : | ||
3865 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3866 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3867 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3868 | # `rm'. | ||
3869 | for ac_file in conftest.exe conftest conftest.*; do | ||
3870 | test -f "$ac_file" || continue | ||
3871 | case $ac_file in | ||
3872 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3873 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3874 | break;; | ||
3875 | * ) break;; | ||
3876 | esac | ||
3877 | done | ||
3878 | else | ||
3879 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3880 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3881 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3882 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3883 | fi | ||
3884 | rm -f conftest conftest$ac_cv_exeext | ||
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3886 | $as_echo "$ac_cv_exeext" >&6; } | ||
3887 | |||
3888 | rm -f conftest.$ac_ext | ||
3889 | EXEEXT=$ac_cv_exeext | ||
3890 | ac_exeext=$EXEEXT | ||
3891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3892 | /* end confdefs.h. */ | ||
3893 | #include <stdio.h> | ||
3894 | int | ||
3895 | main () | ||
3896 | { | ||
3897 | FILE *f = fopen ("conftest.out", "w"); | ||
3898 | return ferror (f) || fclose (f) != 0; | ||
3899 | |||
3900 | ; | ||
3901 | return 0; | ||
3902 | } | ||
3903 | _ACEOF | ||
3904 | ac_clean_files="$ac_clean_files conftest.out" | ||
3905 | # Check that the compiler produces executables we can run. If not, either | ||
3906 | # the compiler is broken, or we cross compile. | ||
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3908 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3909 | if test "$cross_compiling" != yes; then | ||
3910 | { { ac_try="$ac_link" | ||
3911 | case "(($ac_try" in | ||
3912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3913 | *) ac_try_echo=$ac_try;; | ||
3914 | esac | ||
3915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3916 | $as_echo "$ac_try_echo"; } >&5 | ||
3917 | (eval "$ac_link") 2>&5 | ||
3918 | ac_status=$? | ||
3919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3920 | test $ac_status = 0; } | ||
3921 | if { ac_try='./conftest$ac_cv_exeext' | ||
3922 | { { case "(($ac_try" in | ||
3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3924 | *) ac_try_echo=$ac_try;; | ||
3925 | esac | ||
3926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3927 | $as_echo "$ac_try_echo"; } >&5 | ||
3928 | (eval "$ac_try") 2>&5 | ||
3929 | ac_status=$? | ||
3930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3931 | test $ac_status = 0; }; }; then | ||
3932 | cross_compiling=no | ||
3933 | else | ||
3934 | if test "$cross_compiling" = maybe; then | ||
3935 | cross_compiling=yes | ||
3936 | else | ||
3937 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3939 | as_fn_error $? "cannot run C compiled programs. | ||
3940 | If you meant to cross compile, use \`--host'. | ||
3941 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3942 | fi | ||
3943 | fi | ||
3944 | fi | ||
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3946 | $as_echo "$cross_compiling" >&6; } | ||
3947 | |||
3948 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3949 | ac_clean_files=$ac_clean_files_save | ||
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3951 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3952 | if test "${ac_cv_objext+set}" = set; then : | ||
3953 | $as_echo_n "(cached) " >&6 | ||
3954 | else | ||
3955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3956 | /* end confdefs.h. */ | ||
3957 | |||
3958 | int | ||
3959 | main () | ||
3960 | { | ||
3961 | |||
3962 | ; | ||
3963 | return 0; | ||
3964 | } | ||
3965 | _ACEOF | ||
3966 | rm -f conftest.o conftest.obj | ||
3967 | if { { ac_try="$ac_compile" | ||
3968 | case "(($ac_try" in | ||
3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3970 | *) ac_try_echo=$ac_try;; | ||
3971 | esac | ||
3972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3973 | $as_echo "$ac_try_echo"; } >&5 | ||
3974 | (eval "$ac_compile") 2>&5 | ||
3975 | ac_status=$? | ||
3976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3977 | test $ac_status = 0; }; then : | ||
3978 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3979 | test -f "$ac_file" || continue; | ||
3980 | case $ac_file in | ||
3981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3982 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3983 | break;; | ||
3984 | esac | ||
3985 | done | ||
3986 | else | ||
3987 | $as_echo "$as_me: failed program was:" >&5 | ||
3988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3989 | |||
3990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3991 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3992 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3993 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3994 | fi | ||
3995 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3996 | fi | ||
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3998 | $as_echo "$ac_cv_objext" >&6; } | ||
3999 | OBJEXT=$ac_cv_objext | ||
4000 | ac_objext=$OBJEXT | ||
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4002 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4003 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4004 | $as_echo_n "(cached) " >&6 | ||
4005 | else | ||
4006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4007 | /* end confdefs.h. */ | ||
4008 | |||
4009 | int | ||
4010 | main () | ||
4011 | { | ||
4012 | #ifndef __GNUC__ | ||
4013 | choke me | ||
4014 | #endif | ||
4015 | |||
4016 | ; | ||
4017 | return 0; | ||
4018 | } | ||
4019 | _ACEOF | ||
4020 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4021 | ac_compiler_gnu=yes | ||
4022 | else | ||
4023 | ac_compiler_gnu=no | ||
4024 | fi | ||
4025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4026 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4027 | |||
4028 | fi | ||
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4030 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4031 | if test $ac_compiler_gnu = yes; then | ||
4032 | GCC=yes | ||
4033 | else | ||
4034 | GCC= | ||
4035 | fi | ||
4036 | ac_test_CFLAGS=${CFLAGS+set} | ||
4037 | ac_save_CFLAGS=$CFLAGS | ||
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4039 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4040 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4041 | $as_echo_n "(cached) " >&6 | ||
4042 | else | ||
4043 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4044 | ac_c_werror_flag=yes | ||
4045 | ac_cv_prog_cc_g=no | ||
4046 | CFLAGS="-g" | ||
4047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4048 | /* end confdefs.h. */ | ||
4049 | |||
4050 | int | ||
4051 | main () | ||
4052 | { | ||
4053 | |||
4054 | ; | ||
4055 | return 0; | ||
4056 | } | ||
4057 | _ACEOF | ||
4058 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4059 | ac_cv_prog_cc_g=yes | ||
4060 | else | ||
4061 | CFLAGS="" | ||
4062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4063 | /* end confdefs.h. */ | ||
4064 | |||
4065 | int | ||
4066 | main () | ||
4067 | { | ||
4068 | |||
4069 | ; | ||
4070 | return 0; | ||
4071 | } | ||
4072 | _ACEOF | ||
4073 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4074 | |||
4075 | else | ||
4076 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4077 | CFLAGS="-g" | ||
4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4079 | /* end confdefs.h. */ | ||
4080 | |||
4081 | int | ||
4082 | main () | ||
4083 | { | ||
4084 | |||
4085 | ; | ||
4086 | return 0; | ||
4087 | } | ||
4088 | _ACEOF | ||
4089 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4090 | ac_cv_prog_cc_g=yes | ||
4091 | fi | ||
4092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4093 | fi | ||
4094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4095 | fi | ||
4096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4097 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4098 | fi | ||
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4100 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4101 | if test "$ac_test_CFLAGS" = set; then | ||
4102 | CFLAGS=$ac_save_CFLAGS | ||
4103 | elif test $ac_cv_prog_cc_g = yes; then | ||
4104 | if test "$GCC" = yes; then | ||
4105 | CFLAGS="-g -O2" | ||
4106 | else | ||
4107 | CFLAGS="-g" | ||
4108 | fi | ||
4109 | else | ||
4110 | if test "$GCC" = yes; then | ||
4111 | CFLAGS="-O2" | ||
4112 | else | ||
4113 | CFLAGS= | ||
4114 | fi | ||
4115 | fi | ||
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4117 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4118 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4119 | $as_echo_n "(cached) " >&6 | ||
4120 | else | ||
4121 | ac_cv_prog_cc_c89=no | ||
4122 | ac_save_CC=$CC | ||
4123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4124 | /* end confdefs.h. */ | ||
4125 | #include <stdarg.h> | ||
4126 | #include <stdio.h> | ||
4127 | #include <sys/types.h> | ||
4128 | #include <sys/stat.h> | ||
4129 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4130 | struct buf { int x; }; | ||
4131 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4132 | static char *e (p, i) | ||
4133 | char **p; | ||
4134 | int i; | ||
4135 | { | ||
4136 | return p[i]; | ||
4137 | } | ||
4138 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4139 | { | ||
4140 | char *s; | ||
4141 | va_list v; | ||
4142 | va_start (v,p); | ||
4143 | s = g (p, va_arg (v,int)); | ||
4144 | va_end (v); | ||
4145 | return s; | ||
4146 | } | ||
4147 | |||
4148 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4149 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4150 | These don't provoke an error unfortunately, instead are silently treated | ||
4151 | as 'x'. The following induces an error, until -std is added to get | ||
4152 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4153 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4154 | that's true only with -std. */ | ||
4155 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4156 | |||
4157 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4158 | inside strings and character constants. */ | ||
4159 | #define FOO(x) 'x' | ||
4160 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4161 | |||
4162 | int test (int i, double x); | ||
4163 | struct s1 {int (*f) (int a);}; | ||
4164 | struct s2 {int (*f) (double a);}; | ||
4165 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4166 | int argc; | ||
4167 | char **argv; | ||
4168 | int | ||
4169 | main () | ||
4170 | { | ||
4171 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4172 | ; | ||
4173 | return 0; | ||
4174 | } | ||
4175 | _ACEOF | ||
4176 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4177 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4178 | do | ||
4179 | CC="$ac_save_CC $ac_arg" | ||
4180 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4181 | ac_cv_prog_cc_c89=$ac_arg | ||
4182 | fi | ||
4183 | rm -f core conftest.err conftest.$ac_objext | ||
4184 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4185 | done | ||
4186 | rm -f conftest.$ac_ext | ||
4187 | CC=$ac_save_CC | ||
4188 | |||
4189 | fi | ||
4190 | # AC_CACHE_VAL | ||
4191 | case "x$ac_cv_prog_cc_c89" in | ||
4192 | x) | ||
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4194 | $as_echo "none needed" >&6; } ;; | ||
4195 | xno) | ||
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4197 | $as_echo "unsupported" >&6; } ;; | ||
4198 | *) | ||
4199 | CC="$CC $ac_cv_prog_cc_c89" | ||
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4201 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4202 | esac | ||
4203 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4204 | |||
4205 | fi | ||
4206 | |||
4207 | ac_ext=c | ||
4208 | ac_cpp='$CPP $CPPFLAGS' | ||
4209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4212 | |||
4213 | depcc="$CC" am_compiler_list= | ||
4214 | |||
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4216 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4217 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4218 | $as_echo_n "(cached) " >&6 | ||
4219 | else | ||
4220 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4221 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4222 | # making bogus files that we don't know about and never remove. For | ||
4223 | # instance it was reported that on HP-UX the gcc test will end up | ||
4224 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4225 | # in D'. | ||
4226 | mkdir conftest.dir | ||
4227 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4228 | # using a relative directory. | ||
4229 | cp "$am_depcomp" conftest.dir | ||
4230 | cd conftest.dir | ||
4231 | # We will build objects and dependencies in a subdirectory because | ||
4232 | # it helps to detect inapplicable dependency modes. For instance | ||
4233 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4234 | # side effect of compilation, but ICC will put the dependencies in | ||
4235 | # the current directory while Tru64 will put them in the object | ||
4236 | # directory. | ||
4237 | mkdir sub | ||
4238 | |||
4239 | am_cv_CC_dependencies_compiler_type=none | ||
4240 | if test "$am_compiler_list" = ""; then | ||
4241 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4242 | fi | ||
4243 | am__universal=false | ||
4244 | case " $depcc " in #( | ||
4245 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4246 | esac | ||
4247 | |||
4248 | for depmode in $am_compiler_list; do | ||
4249 | # Setup a source with many dependencies, because some compilers | ||
4250 | # like to wrap large dependency lists on column 80 (with \), and | ||
4251 | # we should not choose a depcomp mode which is confused by this. | ||
4252 | # | ||
4253 | # We need to recreate these files for each test, as the compiler may | ||
4254 | # overwrite some of them when testing with obscure command lines. | ||
4255 | # This happens at least with the AIX C compiler. | ||
4256 | : > sub/conftest.c | ||
4257 | for i in 1 2 3 4 5 6; do | ||
4258 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4259 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4260 | # Solaris 8's {/usr,}/bin/sh. | ||
4261 | touch sub/conftst$i.h | ||
4262 | done | ||
4263 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4264 | |||
4265 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4266 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4267 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
4268 | # versions had trouble with output in subdirs | ||
4269 | am__obj=sub/conftest.${OBJEXT-o} | ||
4270 | am__minus_obj="-o $am__obj" | ||
4271 | case $depmode in | ||
4272 | gcc) | ||
4273 | # This depmode causes a compiler race in universal mode. | ||
4274 | test "$am__universal" = false || continue | ||
4275 | ;; | ||
4276 | nosideeffect) | ||
4277 | # after this tag, mechanisms are not by side-effect, so they'll | ||
4278 | # only be used when explicitly requested | ||
4279 | if test "x$enable_dependency_tracking" = xyes; then | ||
4280 | continue | ||
4281 | else | ||
4282 | break | ||
4283 | fi | ||
4284 | ;; | ||
4285 | msvisualcpp | msvcmsys) | ||
4286 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
4287 | # not run yet. These depmodes are late enough in the game, and | ||
4288 | # so weak that their functioning should not be impacted. | ||
4289 | am__obj=conftest.${OBJEXT-o} | ||
4290 | am__minus_obj= | ||
4291 | ;; | ||
4292 | none) break ;; | ||
4293 | esac | ||
4294 | if depmode=$depmode \ | ||
4295 | source=sub/conftest.c object=$am__obj \ | ||
4296 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
4297 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
4298 | >/dev/null 2>conftest.err && | ||
4299 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4300 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
4301 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
4302 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
4303 | # icc doesn't choke on unknown options, it will just issue warnings | ||
4304 | # or remarks (even with -Werror). So we grep stderr for any message | ||
4305 | # that says an option was ignored or not supported. | ||
4306 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
4307 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
4308 | # The diagnosis changed in icc 8.0: | ||
4309 | # icc: Command line remark: option '-MP' not supported | ||
4310 | if (grep 'ignoring option' conftest.err || | ||
4311 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
4312 | am_cv_CC_dependencies_compiler_type=$depmode | ||
4313 | break | ||
4314 | fi | ||
4315 | fi | ||
4316 | done | ||
4317 | |||
4318 | cd .. | ||
4319 | rm -rf conftest.dir | ||
4320 | else | ||
4321 | am_cv_CC_dependencies_compiler_type=none | ||
4322 | fi | ||
4323 | |||
4324 | fi | ||
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
4326 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
4327 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
4328 | |||
4329 | if | ||
4330 | test "x$enable_dependency_tracking" != xno \ | ||
4331 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
4332 | am__fastdepCC_TRUE= | ||
4333 | am__fastdepCC_FALSE='#' | ||
4334 | else | ||
4335 | am__fastdepCC_TRUE='#' | ||
4336 | am__fastdepCC_FALSE= | ||
4337 | fi | ||
4338 | |||
4339 | |||
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
4341 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
4342 | if test "${ac_cv_path_SED+set}" = set; then : | ||
4343 | $as_echo_n "(cached) " >&6 | ||
4344 | else | ||
4345 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
4346 | for ac_i in 1 2 3 4 5 6 7; do | ||
4347 | ac_script="$ac_script$as_nl$ac_script" | ||
4348 | done | ||
4349 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
4350 | { ac_script=; unset ac_script;} | ||
4351 | if test -z "$SED"; then | ||
4352 | ac_path_SED_found=false | ||
4353 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4355 | for as_dir in $PATH | ||
4356 | do | ||
4357 | IFS=$as_save_IFS | ||
4358 | test -z "$as_dir" && as_dir=. | ||
4359 | for ac_prog in sed gsed; do | ||
4360 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4361 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
4362 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
4363 | # Check for GNU ac_path_SED and select it if it is found. | ||
4364 | # Check for GNU $ac_path_SED | ||
4365 | case `"$ac_path_SED" --version 2>&1` in | ||
4366 | *GNU*) | ||
4367 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
4368 | *) | ||
4369 | ac_count=0 | ||
4370 | $as_echo_n 0123456789 >"conftest.in" | ||
4371 | while : | ||
4372 | do | ||
4373 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4374 | mv "conftest.tmp" "conftest.in" | ||
4375 | cp "conftest.in" "conftest.nl" | ||
4376 | $as_echo '' >> "conftest.nl" | ||
4377 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4378 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4379 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4380 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
4381 | # Best one so far, save it but keep looking for a better one | ||
4382 | ac_cv_path_SED="$ac_path_SED" | ||
4383 | ac_path_SED_max=$ac_count | ||
4384 | fi | ||
4385 | # 10*(2^10) chars as input seems more than enough | ||
4386 | test $ac_count -gt 10 && break | ||
4387 | done | ||
4388 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4389 | esac | ||
4390 | |||
4391 | $ac_path_SED_found && break 3 | ||
4392 | done | ||
4393 | done | ||
4394 | done | ||
4395 | IFS=$as_save_IFS | ||
4396 | if test -z "$ac_cv_path_SED"; then | ||
4397 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
4398 | fi | ||
4399 | else | ||
4400 | ac_cv_path_SED=$SED | ||
4401 | fi | ||
4402 | |||
4403 | fi | ||
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
4405 | $as_echo "$ac_cv_path_SED" >&6; } | ||
4406 | SED="$ac_cv_path_SED" | ||
4407 | rm -f conftest.sed | ||
4408 | |||
4409 | test -z "$SED" && SED=sed | ||
4410 | Xsed="$SED -e 1s/^X//" | ||
4411 | |||
4412 | |||
4413 | |||
4414 | |||
4415 | |||
4416 | |||
4417 | |||
4418 | |||
4419 | |||
4420 | |||
4421 | |||
4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
4423 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
4424 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
4425 | $as_echo_n "(cached) " >&6 | ||
4426 | else | ||
4427 | if test -z "$GREP"; then | ||
4428 | ac_path_GREP_found=false | ||
4429 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4431 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4432 | do | ||
4433 | IFS=$as_save_IFS | ||
4434 | test -z "$as_dir" && as_dir=. | ||
4435 | for ac_prog in grep ggrep; do | ||
4436 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4437 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4438 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4439 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4440 | # Check for GNU $ac_path_GREP | ||
4441 | case `"$ac_path_GREP" --version 2>&1` in | ||
4442 | *GNU*) | ||
4443 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4444 | *) | ||
4445 | ac_count=0 | ||
4446 | $as_echo_n 0123456789 >"conftest.in" | ||
4447 | while : | ||
4448 | do | ||
4449 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4450 | mv "conftest.tmp" "conftest.in" | ||
4451 | cp "conftest.in" "conftest.nl" | ||
4452 | $as_echo 'GREP' >> "conftest.nl" | ||
4453 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4454 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4455 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4456 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4457 | # Best one so far, save it but keep looking for a better one | ||
4458 | ac_cv_path_GREP="$ac_path_GREP" | ||
4459 | ac_path_GREP_max=$ac_count | ||
4460 | fi | ||
4461 | # 10*(2^10) chars as input seems more than enough | ||
4462 | test $ac_count -gt 10 && break | ||
4463 | done | ||
4464 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4465 | esac | ||
4466 | |||
4467 | $ac_path_GREP_found && break 3 | ||
4468 | done | ||
4469 | done | ||
4470 | done | ||
4471 | IFS=$as_save_IFS | ||
4472 | if test -z "$ac_cv_path_GREP"; then | ||
4473 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4474 | fi | ||
4475 | else | ||
4476 | ac_cv_path_GREP=$GREP | ||
4477 | fi | ||
4478 | |||
4479 | fi | ||
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
4481 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
4482 | GREP="$ac_cv_path_GREP" | ||
4483 | |||
4484 | |||
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4486 | $as_echo_n "checking for egrep... " >&6; } | ||
4487 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
4488 | $as_echo_n "(cached) " >&6 | ||
4489 | else | ||
4490 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4491 | then ac_cv_path_EGREP="$GREP -E" | ||
4492 | else | ||
4493 | if test -z "$EGREP"; then | ||
4494 | ac_path_EGREP_found=false | ||
4495 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4497 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4498 | do | ||
4499 | IFS=$as_save_IFS | ||
4500 | test -z "$as_dir" && as_dir=. | ||
4501 | for ac_prog in egrep; do | ||
4502 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4503 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4504 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4505 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4506 | # Check for GNU $ac_path_EGREP | ||
4507 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4508 | *GNU*) | ||
4509 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4510 | *) | ||
4511 | ac_count=0 | ||
4512 | $as_echo_n 0123456789 >"conftest.in" | ||
4513 | while : | ||
4514 | do | ||
4515 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4516 | mv "conftest.tmp" "conftest.in" | ||
4517 | cp "conftest.in" "conftest.nl" | ||
4518 | $as_echo 'EGREP' >> "conftest.nl" | ||
4519 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4520 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4521 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4522 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4523 | # Best one so far, save it but keep looking for a better one | ||
4524 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4525 | ac_path_EGREP_max=$ac_count | ||
4526 | fi | ||
4527 | # 10*(2^10) chars as input seems more than enough | ||
4528 | test $ac_count -gt 10 && break | ||
4529 | done | ||
4530 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4531 | esac | ||
4532 | |||
4533 | $ac_path_EGREP_found && break 3 | ||
4534 | done | ||
4535 | done | ||
4536 | done | ||
4537 | IFS=$as_save_IFS | ||
4538 | if test -z "$ac_cv_path_EGREP"; then | ||
4539 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4540 | fi | ||
4541 | else | ||
4542 | ac_cv_path_EGREP=$EGREP | ||
4543 | fi | ||
4544 | |||
4545 | fi | ||
4546 | fi | ||
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4548 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4549 | EGREP="$ac_cv_path_EGREP" | ||
4550 | |||
4551 | |||
4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
4553 | $as_echo_n "checking for fgrep... " >&6; } | ||
4554 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
4555 | $as_echo_n "(cached) " >&6 | ||
4556 | else | ||
4557 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
4558 | then ac_cv_path_FGREP="$GREP -F" | ||
4559 | else | ||
4560 | if test -z "$FGREP"; then | ||
4561 | ac_path_FGREP_found=false | ||
4562 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4564 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4565 | do | ||
4566 | IFS=$as_save_IFS | ||
4567 | test -z "$as_dir" && as_dir=. | ||
4568 | for ac_prog in fgrep; do | ||
4569 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4570 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4571 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
4572 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
4573 | # Check for GNU $ac_path_FGREP | ||
4574 | case `"$ac_path_FGREP" --version 2>&1` in | ||
4575 | *GNU*) | ||
4576 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
4577 | *) | ||
4578 | ac_count=0 | ||
4579 | $as_echo_n 0123456789 >"conftest.in" | ||
4580 | while : | ||
4581 | do | ||
4582 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4583 | mv "conftest.tmp" "conftest.in" | ||
4584 | cp "conftest.in" "conftest.nl" | ||
4585 | $as_echo 'FGREP' >> "conftest.nl" | ||
4586 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4587 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4588 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4589 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
4590 | # Best one so far, save it but keep looking for a better one | ||
4591 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
4592 | ac_path_FGREP_max=$ac_count | ||
4593 | fi | ||
4594 | # 10*(2^10) chars as input seems more than enough | ||
4595 | test $ac_count -gt 10 && break | ||
4596 | done | ||
4597 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4598 | esac | ||
4599 | |||
4600 | $ac_path_FGREP_found && break 3 | ||
4601 | done | ||
4602 | done | ||
4603 | done | ||
4604 | IFS=$as_save_IFS | ||
4605 | if test -z "$ac_cv_path_FGREP"; then | ||
4606 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4607 | fi | ||
4608 | else | ||
4609 | ac_cv_path_FGREP=$FGREP | ||
4610 | fi | ||
4611 | |||
4612 | fi | ||
4613 | fi | ||
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
4615 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
4616 | FGREP="$ac_cv_path_FGREP" | ||
4617 | |||
4618 | |||
4619 | test -z "$GREP" && GREP=grep | ||
4620 | |||
4621 | |||
4622 | |||
4623 | |||
4624 | |||
4625 | |||
4626 | |||
4627 | |||
4628 | |||
4629 | |||
4630 | |||
4631 | |||
4632 | |||
4633 | |||
4634 | |||
4635 | |||
4636 | |||
4637 | |||
4638 | |||
4639 | # Check whether --with-gnu-ld was given. | ||
4640 | if test "${with_gnu_ld+set}" = set; then : | ||
4641 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
4642 | else | ||
4643 | with_gnu_ld=no | ||
4644 | fi | ||
4645 | |||
4646 | ac_prog=ld | ||
4647 | if test "$GCC" = yes; then | ||
4648 | # Check if gcc -print-prog-name=ld gives a path. | ||
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
4650 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
4651 | case $host in | ||
4652 | *-*-mingw*) | ||
4653 | # gcc leaves a trailing carriage return which upsets mingw | ||
4654 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
4655 | *) | ||
4656 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
4657 | esac | ||
4658 | case $ac_prog in | ||
4659 | # Accept absolute paths. | ||
4660 | [\\/]* | ?:[\\/]*) | ||
4661 | re_direlt='/[^/][^/]*/\.\./' | ||
4662 | # Canonicalize the pathname of ld | ||
4663 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
4664 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
4665 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
4666 | done | ||
4667 | test -z "$LD" && LD="$ac_prog" | ||
4668 | ;; | ||
4669 | "") | ||
4670 | # If it fails, then pretend we aren't using GCC. | ||
4671 | ac_prog=ld | ||
4672 | ;; | ||
4673 | *) | ||
4674 | # If it is relative, then search for the first ld in PATH. | ||
4675 | with_gnu_ld=unknown | ||
4676 | ;; | ||
4677 | esac | ||
4678 | elif test "$with_gnu_ld" = yes; then | ||
4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
4680 | $as_echo_n "checking for GNU ld... " >&6; } | ||
4681 | else | ||
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
4683 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
4684 | fi | ||
4685 | if test "${lt_cv_path_LD+set}" = set; then : | ||
4686 | $as_echo_n "(cached) " >&6 | ||
4687 | else | ||
4688 | if test -z "$LD"; then | ||
4689 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4690 | for ac_dir in $PATH; do | ||
4691 | IFS="$lt_save_ifs" | ||
4692 | test -z "$ac_dir" && ac_dir=. | ||
4693 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
4694 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
4695 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
4696 | # but apparently some variants of GNU ld only accept -v. | ||
4697 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
4698 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
4699 | *GNU* | *'with BFD'*) | ||
4700 | test "$with_gnu_ld" != no && break | ||
4701 | ;; | ||
4702 | *) | ||
4703 | test "$with_gnu_ld" != yes && break | ||
4704 | ;; | ||
4705 | esac | ||
4706 | fi | ||
4707 | done | ||
4708 | IFS="$lt_save_ifs" | ||
4709 | else | ||
4710 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
4711 | fi | ||
4712 | fi | ||
4713 | |||
4714 | LD="$lt_cv_path_LD" | ||
4715 | if test -n "$LD"; then | ||
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
4717 | $as_echo "$LD" >&6; } | ||
4718 | else | ||
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4720 | $as_echo "no" >&6; } | ||
4721 | fi | ||
4722 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
4724 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
4725 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
4726 | $as_echo_n "(cached) " >&6 | ||
4727 | else | ||
4728 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
4729 | case `$LD -v 2>&1 </dev/null` in | ||
4730 | *GNU* | *'with BFD'*) | ||
4731 | lt_cv_prog_gnu_ld=yes | ||
4732 | ;; | ||
4733 | *) | ||
4734 | lt_cv_prog_gnu_ld=no | ||
4735 | ;; | ||
4736 | esac | ||
4737 | fi | ||
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
4739 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
4740 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
4741 | |||
4742 | |||
4743 | |||
4744 | |||
4745 | |||
4746 | |||
4747 | |||
4748 | |||
4749 | |||
4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
4751 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
4752 | if test "${lt_cv_path_NM+set}" = set; then : | ||
4753 | $as_echo_n "(cached) " >&6 | ||
4754 | else | ||
4755 | if test -n "$NM"; then | ||
4756 | # Let the user override the test. | ||
4757 | lt_cv_path_NM="$NM" | ||
4758 | else | ||
4759 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
4760 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
4761 | lt_nm_to_check="$lt_nm_to_check nm" | ||
4762 | fi | ||
4763 | for lt_tmp_nm in $lt_nm_to_check; do | ||
4764 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4765 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
4766 | IFS="$lt_save_ifs" | ||
4767 | test -z "$ac_dir" && ac_dir=. | ||
4768 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
4769 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
4770 | # Check to see if the nm accepts a BSD-compat flag. | ||
4771 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
4772 | # nm: unknown option "B" ignored | ||
4773 | # Tru64's nm complains that /dev/null is an invalid object file | ||
4774 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
4775 | */dev/null* | *'Invalid file or object type'*) | ||
4776 | lt_cv_path_NM="$tmp_nm -B" | ||
4777 | break | ||
4778 | ;; | ||
4779 | *) | ||
4780 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
4781 | */dev/null*) | ||
4782 | lt_cv_path_NM="$tmp_nm -p" | ||
4783 | break | ||
4784 | ;; | ||
4785 | *) | ||
4786 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
4787 | continue # so that we can try to find one that supports BSD flags | ||
4788 | ;; | ||
4789 | esac | ||
4790 | ;; | ||
4791 | esac | ||
4792 | fi | ||
4793 | done | ||
4794 | IFS="$lt_save_ifs" | ||
4795 | done | ||
4796 | : ${lt_cv_path_NM=no} | ||
4797 | fi | ||
4798 | fi | ||
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
4800 | $as_echo "$lt_cv_path_NM" >&6; } | ||
4801 | if test "$lt_cv_path_NM" != "no"; then | ||
4802 | NM="$lt_cv_path_NM" | ||
4803 | else | ||
4804 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
4805 | if test -n "$ac_tool_prefix"; then | ||
4806 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
4807 | do | ||
4808 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4809 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4811 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4812 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
4813 | $as_echo_n "(cached) " >&6 | ||
4814 | else | ||
4815 | if test -n "$DUMPBIN"; then | ||
4816 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
4817 | else | ||
4818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4819 | for as_dir in $PATH | ||
4820 | do | ||
4821 | IFS=$as_save_IFS | ||
4822 | test -z "$as_dir" && as_dir=. | ||
4823 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4825 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
4826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4827 | break 2 | ||
4828 | fi | ||
4829 | done | ||
4830 | done | ||
4831 | IFS=$as_save_IFS | ||
4832 | |||
4833 | fi | ||
4834 | fi | ||
4835 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
4836 | if test -n "$DUMPBIN"; then | ||
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
4838 | $as_echo "$DUMPBIN" >&6; } | ||
4839 | else | ||
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4841 | $as_echo "no" >&6; } | ||
4842 | fi | ||
4843 | |||
4844 | |||
4845 | test -n "$DUMPBIN" && break | ||
4846 | done | ||
4847 | fi | ||
4848 | if test -z "$DUMPBIN"; then | ||
4849 | ac_ct_DUMPBIN=$DUMPBIN | ||
4850 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
4851 | do | ||
4852 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4853 | set dummy $ac_prog; ac_word=$2 | ||
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4855 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4856 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
4857 | $as_echo_n "(cached) " >&6 | ||
4858 | else | ||
4859 | if test -n "$ac_ct_DUMPBIN"; then | ||
4860 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
4861 | else | ||
4862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4863 | for as_dir in $PATH | ||
4864 | do | ||
4865 | IFS=$as_save_IFS | ||
4866 | test -z "$as_dir" && as_dir=. | ||
4867 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4869 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
4870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4871 | break 2 | ||
4872 | fi | ||
4873 | done | ||
4874 | done | ||
4875 | IFS=$as_save_IFS | ||
4876 | |||
4877 | fi | ||
4878 | fi | ||
4879 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
4880 | if test -n "$ac_ct_DUMPBIN"; then | ||
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
4882 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
4883 | else | ||
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4885 | $as_echo "no" >&6; } | ||
4886 | fi | ||
4887 | |||
4888 | |||
4889 | test -n "$ac_ct_DUMPBIN" && break | ||
4890 | done | ||
4891 | |||
4892 | if test "x$ac_ct_DUMPBIN" = x; then | ||
4893 | DUMPBIN=":" | ||
4894 | else | ||
4895 | case $cross_compiling:$ac_tool_warned in | ||
4896 | yes:) | ||
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4898 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4899 | ac_tool_warned=yes ;; | ||
4900 | esac | ||
4901 | DUMPBIN=$ac_ct_DUMPBIN | ||
4902 | fi | ||
4903 | fi | ||
4904 | |||
4905 | |||
4906 | if test "$DUMPBIN" != ":"; then | ||
4907 | NM="$DUMPBIN" | ||
4908 | fi | ||
4909 | fi | ||
4910 | test -z "$NM" && NM=nm | ||
4911 | |||
4912 | |||
4913 | |||
4914 | |||
4915 | |||
4916 | |||
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
4918 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
4919 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
4920 | $as_echo_n "(cached) " >&6 | ||
4921 | else | ||
4922 | lt_cv_nm_interface="BSD nm" | ||
4923 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
4924 | (eval echo "\"\$as_me:4924: $ac_compile\"" >&5) | ||
4925 | (eval "$ac_compile" 2>conftest.err) | ||
4926 | cat conftest.err >&5 | ||
4927 | (eval echo "\"\$as_me:4927: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
4928 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
4929 | cat conftest.err >&5 | ||
4930 | (eval echo "\"\$as_me:4930: output\"" >&5) | ||
4931 | cat conftest.out >&5 | ||
4932 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
4933 | lt_cv_nm_interface="MS dumpbin" | ||
4934 | fi | ||
4935 | rm -f conftest* | ||
4936 | fi | ||
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
4938 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
4939 | |||
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
4941 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
4942 | LN_S=$as_ln_s | ||
4943 | if test "$LN_S" = "ln -s"; then | ||
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4945 | $as_echo "yes" >&6; } | ||
4946 | else | ||
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
4948 | $as_echo "no, using $LN_S" >&6; } | ||
4949 | fi | ||
4950 | |||
4951 | # find the maximum length of command line arguments | ||
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
4953 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
4954 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
4955 | $as_echo_n "(cached) " >&6 | ||
4956 | else | ||
4957 | i=0 | ||
4958 | teststring="ABCD" | ||
4959 | |||
4960 | case $build_os in | ||
4961 | msdosdjgpp*) | ||
4962 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
4963 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
4964 | # during glob expansion). Even if it were fixed, the result of this | ||
4965 | # check would be larger than it should be. | ||
4966 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
4967 | ;; | ||
4968 | |||
4969 | gnu*) | ||
4970 | # Under GNU Hurd, this test is not required because there is | ||
4971 | # no limit to the length of command line arguments. | ||
4972 | # Libtool will interpret -1 as no limit whatsoever | ||
4973 | lt_cv_sys_max_cmd_len=-1; | ||
4974 | ;; | ||
4975 | |||
4976 | cygwin* | mingw* | cegcc*) | ||
4977 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
4978 | # about 5 minutes as the teststring grows exponentially. | ||
4979 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
4980 | # you end up with a "frozen" computer, even though with patience | ||
4981 | # the test eventually succeeds (with a max line length of 256k). | ||
4982 | # Instead, let's just punt: use the minimum linelength reported by | ||
4983 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
4984 | lt_cv_sys_max_cmd_len=8192; | ||
4985 | ;; | ||
4986 | |||
4987 | amigaos*) | ||
4988 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
4989 | # So we just punt and use a minimum line length of 8192. | ||
4990 | lt_cv_sys_max_cmd_len=8192; | ||
4991 | ;; | ||
4992 | |||
4993 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
4994 | # This has been around since 386BSD, at least. Likely further. | ||
4995 | if test -x /sbin/sysctl; then | ||
4996 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
4997 | elif test -x /usr/sbin/sysctl; then | ||
4998 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
4999 | else | ||
5000 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
5001 | fi | ||
5002 | # And add a safety zone | ||
5003 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
5004 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
5005 | ;; | ||
5006 | |||
5007 | interix*) | ||
5008 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
5009 | lt_cv_sys_max_cmd_len=196608 | ||
5010 | ;; | ||
5011 | |||
5012 | osf*) | ||
5013 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
5014 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
5015 | # nice to cause kernel panics so lets avoid the loop below. | ||
5016 | # First set a reasonable default. | ||
5017 | lt_cv_sys_max_cmd_len=16384 | ||
5018 | # | ||
5019 | if test -x /sbin/sysconfig; then | ||
5020 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
5021 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
5022 | esac | ||
5023 | fi | ||
5024 | ;; | ||
5025 | sco3.2v5*) | ||
5026 | lt_cv_sys_max_cmd_len=102400 | ||
5027 | ;; | ||
5028 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
5029 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
5030 | if test -n "$kargmax"; then | ||
5031 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
5032 | else | ||
5033 | lt_cv_sys_max_cmd_len=32768 | ||
5034 | fi | ||
5035 | ;; | ||
5036 | *) | ||
5037 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
5038 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
5039 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
5040 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
5041 | else | ||
5042 | # Make teststring a little bigger before we do anything with it. | ||
5043 | # a 1K string should be a reasonable start. | ||
5044 | for i in 1 2 3 4 5 6 7 8 ; do | ||
5045 | teststring=$teststring$teststring | ||
5046 | done | ||
5047 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
5048 | # If test is not a shell built-in, we'll probably end up computing a | ||
5049 | # maximum length that is only half of the actual maximum length, but | ||
5050 | # we can't tell. | ||
5051 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
5052 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
5053 | test $i != 17 # 1/2 MB should be enough | ||
5054 | do | ||
5055 | i=`expr $i + 1` | ||
5056 | teststring=$teststring$teststring | ||
5057 | done | ||
5058 | # Only check the string length outside the loop. | ||
5059 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
5060 | teststring= | ||
5061 | # Add a significant safety factor because C++ compilers can tack on | ||
5062 | # massive amounts of additional arguments before passing them to the | ||
5063 | # linker. It appears as though 1/2 is a usable value. | ||
5064 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
5065 | fi | ||
5066 | ;; | ||
5067 | esac | ||
5068 | |||
5069 | fi | ||
5070 | |||
5071 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
5073 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
5074 | else | ||
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
5076 | $as_echo "none" >&6; } | ||
5077 | fi | ||
5078 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
5079 | |||
5080 | |||
5081 | |||
5082 | |||
5083 | |||
5084 | |||
5085 | : ${CP="cp -f"} | ||
5086 | : ${MV="mv -f"} | ||
5087 | : ${RM="rm -f"} | ||
5088 | |||
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
5090 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
5091 | # Try some XSI features | ||
5092 | xsi_shell=no | ||
5093 | ( _lt_dummy="a/b/c" | ||
5094 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
5095 | = c,a/b,, \ | ||
5096 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
5097 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
5098 | && xsi_shell=yes | ||
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
5100 | $as_echo "$xsi_shell" >&6; } | ||
5101 | |||
5102 | |||
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
5104 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
5105 | lt_shell_append=no | ||
5106 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
5107 | >/dev/null 2>&1 \ | ||
5108 | && lt_shell_append=yes | ||
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
5110 | $as_echo "$lt_shell_append" >&6; } | ||
5111 | |||
5112 | |||
5113 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
5114 | lt_unset=unset | ||
5115 | else | ||
5116 | lt_unset=false | ||
5117 | fi | ||
5118 | |||
5119 | |||
5120 | |||
5121 | |||
5122 | |||
5123 | # test EBCDIC or ASCII | ||
5124 | case `echo X|tr X '\101'` in | ||
5125 | A) # ASCII based system | ||
5126 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
5127 | lt_SP2NL='tr \040 \012' | ||
5128 | lt_NL2SP='tr \015\012 \040\040' | ||
5129 | ;; | ||
5130 | *) # EBCDIC based system | ||
5131 | lt_SP2NL='tr \100 \n' | ||
5132 | lt_NL2SP='tr \r\n \100\100' | ||
5133 | ;; | ||
5134 | esac | ||
5135 | |||
5136 | |||
5137 | |||
5138 | |||
5139 | |||
5140 | |||
5141 | |||
5142 | |||
5143 | |||
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
5145 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
5146 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
5147 | $as_echo_n "(cached) " >&6 | ||
5148 | else | ||
5149 | lt_cv_ld_reload_flag='-r' | ||
5150 | fi | ||
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
5152 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
5153 | reload_flag=$lt_cv_ld_reload_flag | ||
5154 | case $reload_flag in | ||
5155 | "" | " "*) ;; | ||
5156 | *) reload_flag=" $reload_flag" ;; | ||
5157 | esac | ||
5158 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5159 | case $host_os in | ||
5160 | darwin*) | ||
5161 | if test "$GCC" = yes; then | ||
5162 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
5163 | else | ||
5164 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
5165 | fi | ||
5166 | ;; | ||
5167 | esac | ||
5168 | |||
5169 | |||
5170 | |||
5171 | |||
5172 | |||
5173 | |||
5174 | |||
5175 | |||
5176 | |||
5177 | if test -n "$ac_tool_prefix"; then | ||
5178 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5179 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5181 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5182 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5183 | $as_echo_n "(cached) " >&6 | ||
5184 | else | ||
5185 | if test -n "$OBJDUMP"; then | ||
5186 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5187 | else | ||
5188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5189 | for as_dir in $PATH | ||
5190 | do | ||
5191 | IFS=$as_save_IFS | ||
5192 | test -z "$as_dir" && as_dir=. | ||
5193 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5195 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5197 | break 2 | ||
5198 | fi | ||
5199 | done | ||
5200 | done | ||
5201 | IFS=$as_save_IFS | ||
5202 | |||
5203 | fi | ||
5204 | fi | ||
5205 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5206 | if test -n "$OBJDUMP"; then | ||
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5208 | $as_echo "$OBJDUMP" >&6; } | ||
5209 | else | ||
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5211 | $as_echo "no" >&6; } | ||
5212 | fi | ||
5213 | |||
5214 | |||
5215 | fi | ||
5216 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5217 | ac_ct_OBJDUMP=$OBJDUMP | ||
5218 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5219 | set dummy objdump; ac_word=$2 | ||
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5221 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5222 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
5223 | $as_echo_n "(cached) " >&6 | ||
5224 | else | ||
5225 | if test -n "$ac_ct_OBJDUMP"; then | ||
5226 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5227 | else | ||
5228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5229 | for as_dir in $PATH | ||
5230 | do | ||
5231 | IFS=$as_save_IFS | ||
5232 | test -z "$as_dir" && as_dir=. | ||
5233 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5235 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5237 | break 2 | ||
5238 | fi | ||
5239 | done | ||
5240 | done | ||
5241 | IFS=$as_save_IFS | ||
5242 | |||
5243 | fi | ||
5244 | fi | ||
5245 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5246 | if test -n "$ac_ct_OBJDUMP"; then | ||
5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5248 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5249 | else | ||
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5251 | $as_echo "no" >&6; } | ||
5252 | fi | ||
5253 | |||
5254 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5255 | OBJDUMP="false" | ||
5256 | else | ||
5257 | case $cross_compiling:$ac_tool_warned in | ||
5258 | yes:) | ||
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5260 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5261 | ac_tool_warned=yes ;; | ||
5262 | esac | ||
5263 | OBJDUMP=$ac_ct_OBJDUMP | ||
5264 | fi | ||
5265 | else | ||
5266 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5267 | fi | ||
5268 | |||
5269 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5270 | |||
5271 | |||
5272 | |||
5273 | |||
5274 | |||
5275 | |||
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
5277 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
5278 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
5279 | $as_echo_n "(cached) " >&6 | ||
5280 | else | ||
5281 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
5282 | lt_cv_file_magic_test_file= | ||
5283 | lt_cv_deplibs_check_method='unknown' | ||
5284 | # Need to set the preceding variable on all platforms that support | ||
5285 | # interlibrary dependencies. | ||
5286 | # 'none' -- dependencies not supported. | ||
5287 | # `unknown' -- same as none, but documents that we really don't know. | ||
5288 | # 'pass_all' -- all dependencies passed with no checks. | ||
5289 | # 'test_compile' -- check by making test program. | ||
5290 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
5291 | # which responds to the $file_magic_cmd with a given extended regex. | ||
5292 | # If you have `file' or equivalent on your system and you're not sure | ||
5293 | # whether `pass_all' will *always* work, you probably want this one. | ||
5294 | |||
5295 | case $host_os in | ||
5296 | aix[4-9]*) | ||
5297 | lt_cv_deplibs_check_method=pass_all | ||
5298 | ;; | ||
5299 | |||
5300 | beos*) | ||
5301 | lt_cv_deplibs_check_method=pass_all | ||
5302 | ;; | ||
5303 | |||
5304 | bsdi[45]*) | ||
5305 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
5306 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
5307 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
5308 | ;; | ||
5309 | |||
5310 | cygwin*) | ||
5311 | # func_win32_libid is a shell function defined in ltmain.sh | ||
5312 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5313 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5314 | ;; | ||
5315 | |||
5316 | mingw* | pw32*) | ||
5317 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
5318 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
5319 | # unless we find 'file', for example because we are cross-compiling. | ||
5320 | if ( file / ) >/dev/null 2>&1; then | ||
5321 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
5322 | lt_cv_file_magic_cmd='func_win32_libid' | ||
5323 | else | ||
5324 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
5325 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
5326 | fi | ||
5327 | ;; | ||
5328 | |||
5329 | cegcc) | ||
5330 | # use the weaker test based on 'objdump'. See mingw*. | ||
5331 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
5332 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
5333 | ;; | ||
5334 | |||
5335 | darwin* | rhapsody*) | ||
5336 | lt_cv_deplibs_check_method=pass_all | ||
5337 | ;; | ||
5338 | |||
5339 | freebsd* | dragonfly*) | ||
5340 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
5341 | case $host_cpu in | ||
5342 | i*86 ) | ||
5343 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
5344 | # Let's accept both of them until this is cleared up. | ||
5345 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
5346 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5347 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
5348 | ;; | ||
5349 | esac | ||
5350 | else | ||
5351 | lt_cv_deplibs_check_method=pass_all | ||
5352 | fi | ||
5353 | ;; | ||
5354 | |||
5355 | gnu*) | ||
5356 | lt_cv_deplibs_check_method=pass_all | ||
5357 | ;; | ||
5358 | |||
5359 | hpux10.20* | hpux11*) | ||
5360 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5361 | case $host_cpu in | ||
5362 | ia64*) | ||
5363 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
5364 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
5365 | ;; | ||
5366 | hppa*64*) | ||
5367 | 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]' | ||
5368 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
5369 | ;; | ||
5370 | *) | ||
5371 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
5372 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
5373 | ;; | ||
5374 | esac | ||
5375 | ;; | ||
5376 | |||
5377 | interix[3-9]*) | ||
5378 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
5379 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
5380 | ;; | ||
5381 | |||
5382 | irix5* | irix6* | nonstopux*) | ||
5383 | case $LD in | ||
5384 | *-32|*"-32 ") libmagic=32-bit;; | ||
5385 | *-n32|*"-n32 ") libmagic=N32;; | ||
5386 | *-64|*"-64 ") libmagic=64-bit;; | ||
5387 | *) libmagic=never-match;; | ||
5388 | esac | ||
5389 | lt_cv_deplibs_check_method=pass_all | ||
5390 | ;; | ||
5391 | |||
5392 | # This must be Linux ELF. | ||
5393 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
5394 | lt_cv_deplibs_check_method=pass_all | ||
5395 | ;; | ||
5396 | |||
5397 | netbsd* | netbsdelf*-gnu) | ||
5398 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
5399 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
5400 | else | ||
5401 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
5402 | fi | ||
5403 | ;; | ||
5404 | |||
5405 | newos6*) | ||
5406 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
5407 | lt_cv_file_magic_cmd=/usr/bin/file | ||
5408 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
5409 | ;; | ||
5410 | |||
5411 | *nto* | *qnx*) | ||
5412 | lt_cv_deplibs_check_method=pass_all | ||
5413 | ;; | ||
5414 | |||
5415 | openbsd*) | ||
5416 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
5417 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
5418 | else | ||
5419 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
5420 | fi | ||
5421 | ;; | ||
5422 | |||
5423 | osf3* | osf4* | osf5*) | ||
5424 | lt_cv_deplibs_check_method=pass_all | ||
5425 | ;; | ||
5426 | |||
5427 | rdos*) | ||
5428 | lt_cv_deplibs_check_method=pass_all | ||
5429 | ;; | ||
5430 | |||
5431 | solaris*) | ||
5432 | lt_cv_deplibs_check_method=pass_all | ||
5433 | ;; | ||
5434 | |||
5435 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
5436 | lt_cv_deplibs_check_method=pass_all | ||
5437 | ;; | ||
5438 | |||
5439 | sysv4 | sysv4.3*) | ||
5440 | case $host_vendor in | ||
5441 | motorola) | ||
5442 | 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]' | ||
5443 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
5444 | ;; | ||
5445 | ncr) | ||
5446 | lt_cv_deplibs_check_method=pass_all | ||
5447 | ;; | ||
5448 | sequent) | ||
5449 | lt_cv_file_magic_cmd='/bin/file' | ||
5450 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
5451 | ;; | ||
5452 | sni) | ||
5453 | lt_cv_file_magic_cmd='/bin/file' | ||
5454 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
5455 | lt_cv_file_magic_test_file=/lib/libc.so | ||
5456 | ;; | ||
5457 | siemens) | ||
5458 | lt_cv_deplibs_check_method=pass_all | ||
5459 | ;; | ||
5460 | pc) | ||
5461 | lt_cv_deplibs_check_method=pass_all | ||
5462 | ;; | ||
5463 | esac | ||
5464 | ;; | ||
5465 | |||
5466 | tpf*) | ||
5467 | lt_cv_deplibs_check_method=pass_all | ||
5468 | ;; | ||
5469 | esac | ||
5470 | |||
5471 | fi | ||
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
5473 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
5474 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
5475 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
5476 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
5477 | |||
5478 | |||
5479 | |||
5480 | |||
5481 | |||
5482 | |||
5483 | |||
5484 | |||
5485 | |||
5486 | |||
5487 | |||
5488 | |||
5489 | if test -n "$ac_tool_prefix"; then | ||
5490 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
5491 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5493 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5494 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
5495 | $as_echo_n "(cached) " >&6 | ||
5496 | else | ||
5497 | if test -n "$AR"; then | ||
5498 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
5499 | else | ||
5500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5501 | for as_dir in $PATH | ||
5502 | do | ||
5503 | IFS=$as_save_IFS | ||
5504 | test -z "$as_dir" && as_dir=. | ||
5505 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5507 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
5508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5509 | break 2 | ||
5510 | fi | ||
5511 | done | ||
5512 | done | ||
5513 | IFS=$as_save_IFS | ||
5514 | |||
5515 | fi | ||
5516 | fi | ||
5517 | AR=$ac_cv_prog_AR | ||
5518 | if test -n "$AR"; then | ||
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
5520 | $as_echo "$AR" >&6; } | ||
5521 | else | ||
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5523 | $as_echo "no" >&6; } | ||
5524 | fi | ||
5525 | |||
5526 | |||
5527 | fi | ||
5528 | if test -z "$ac_cv_prog_AR"; then | ||
5529 | ac_ct_AR=$AR | ||
5530 | # Extract the first word of "ar", so it can be a program name with args. | ||
5531 | set dummy ar; ac_word=$2 | ||
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5533 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5534 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
5535 | $as_echo_n "(cached) " >&6 | ||
5536 | else | ||
5537 | if test -n "$ac_ct_AR"; then | ||
5538 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
5539 | else | ||
5540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5541 | for as_dir in $PATH | ||
5542 | do | ||
5543 | IFS=$as_save_IFS | ||
5544 | test -z "$as_dir" && as_dir=. | ||
5545 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5547 | ac_cv_prog_ac_ct_AR="ar" | ||
5548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5549 | break 2 | ||
5550 | fi | ||
5551 | done | ||
5552 | done | ||
5553 | IFS=$as_save_IFS | ||
5554 | |||
5555 | fi | ||
5556 | fi | ||
5557 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
5558 | if test -n "$ac_ct_AR"; then | ||
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
5560 | $as_echo "$ac_ct_AR" >&6; } | ||
5561 | else | ||
5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5563 | $as_echo "no" >&6; } | ||
5564 | fi | ||
5565 | |||
5566 | if test "x$ac_ct_AR" = x; then | ||
5567 | AR="false" | ||
5568 | else | ||
5569 | case $cross_compiling:$ac_tool_warned in | ||
5570 | yes:) | ||
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5572 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5573 | ac_tool_warned=yes ;; | ||
5574 | esac | ||
5575 | AR=$ac_ct_AR | ||
5576 | fi | ||
5577 | else | ||
5578 | AR="$ac_cv_prog_AR" | ||
5579 | fi | ||
5580 | |||
5581 | test -z "$AR" && AR=ar | ||
5582 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
5583 | |||
5584 | |||
5585 | |||
5586 | |||
5587 | |||
5588 | |||
5589 | |||
5590 | |||
5591 | |||
5592 | |||
5593 | |||
5594 | if test -n "$ac_tool_prefix"; then | ||
5595 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
5596 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5598 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5599 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
5600 | $as_echo_n "(cached) " >&6 | ||
5601 | else | ||
5602 | if test -n "$STRIP"; then | ||
5603 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
5604 | else | ||
5605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5606 | for as_dir in $PATH | ||
5607 | do | ||
5608 | IFS=$as_save_IFS | ||
5609 | test -z "$as_dir" && as_dir=. | ||
5610 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5612 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
5613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5614 | break 2 | ||
5615 | fi | ||
5616 | done | ||
5617 | done | ||
5618 | IFS=$as_save_IFS | ||
5619 | |||
5620 | fi | ||
5621 | fi | ||
5622 | STRIP=$ac_cv_prog_STRIP | ||
5623 | if test -n "$STRIP"; then | ||
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
5625 | $as_echo "$STRIP" >&6; } | ||
5626 | else | ||
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5628 | $as_echo "no" >&6; } | ||
5629 | fi | ||
5630 | |||
5631 | |||
5632 | fi | ||
5633 | if test -z "$ac_cv_prog_STRIP"; then | ||
5634 | ac_ct_STRIP=$STRIP | ||
5635 | # Extract the first word of "strip", so it can be a program name with args. | ||
5636 | set dummy strip; ac_word=$2 | ||
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5638 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5639 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
5640 | $as_echo_n "(cached) " >&6 | ||
5641 | else | ||
5642 | if test -n "$ac_ct_STRIP"; then | ||
5643 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
5644 | else | ||
5645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5646 | for as_dir in $PATH | ||
5647 | do | ||
5648 | IFS=$as_save_IFS | ||
5649 | test -z "$as_dir" && as_dir=. | ||
5650 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5652 | ac_cv_prog_ac_ct_STRIP="strip" | ||
5653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5654 | break 2 | ||
5655 | fi | ||
5656 | done | ||
5657 | done | ||
5658 | IFS=$as_save_IFS | ||
5659 | |||
5660 | fi | ||
5661 | fi | ||
5662 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
5663 | if test -n "$ac_ct_STRIP"; then | ||
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
5665 | $as_echo "$ac_ct_STRIP" >&6; } | ||
5666 | else | ||
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5668 | $as_echo "no" >&6; } | ||
5669 | fi | ||
5670 | |||
5671 | if test "x$ac_ct_STRIP" = x; then | ||
5672 | STRIP=":" | ||
5673 | else | ||
5674 | case $cross_compiling:$ac_tool_warned in | ||
5675 | yes:) | ||
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5677 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5678 | ac_tool_warned=yes ;; | ||
5679 | esac | ||
5680 | STRIP=$ac_ct_STRIP | ||
5681 | fi | ||
5682 | else | ||
5683 | STRIP="$ac_cv_prog_STRIP" | ||
5684 | fi | ||
5685 | |||
5686 | test -z "$STRIP" && STRIP=: | ||
5687 | |||
5688 | |||
5689 | |||
5690 | |||
5691 | |||
5692 | |||
5693 | if test -n "$ac_tool_prefix"; then | ||
5694 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
5695 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5697 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5698 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
5699 | $as_echo_n "(cached) " >&6 | ||
5700 | else | ||
5701 | if test -n "$RANLIB"; then | ||
5702 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
5703 | else | ||
5704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5705 | for as_dir in $PATH | ||
5706 | do | ||
5707 | IFS=$as_save_IFS | ||
5708 | test -z "$as_dir" && as_dir=. | ||
5709 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5711 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
5712 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5713 | break 2 | ||
5714 | fi | ||
5715 | done | ||
5716 | done | ||
5717 | IFS=$as_save_IFS | ||
5718 | |||
5719 | fi | ||
5720 | fi | ||
5721 | RANLIB=$ac_cv_prog_RANLIB | ||
5722 | if test -n "$RANLIB"; then | ||
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
5724 | $as_echo "$RANLIB" >&6; } | ||
5725 | else | ||
5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5727 | $as_echo "no" >&6; } | ||
5728 | fi | ||
5729 | |||
5730 | |||
5731 | fi | ||
5732 | if test -z "$ac_cv_prog_RANLIB"; then | ||
5733 | ac_ct_RANLIB=$RANLIB | ||
5734 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
5735 | set dummy ranlib; ac_word=$2 | ||
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5737 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5738 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
5739 | $as_echo_n "(cached) " >&6 | ||
5740 | else | ||
5741 | if test -n "$ac_ct_RANLIB"; then | ||
5742 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
5743 | else | ||
5744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5745 | for as_dir in $PATH | ||
5746 | do | ||
5747 | IFS=$as_save_IFS | ||
5748 | test -z "$as_dir" && as_dir=. | ||
5749 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5751 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
5752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5753 | break 2 | ||
5754 | fi | ||
5755 | done | ||
5756 | done | ||
5757 | IFS=$as_save_IFS | ||
5758 | |||
5759 | fi | ||
5760 | fi | ||
5761 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
5762 | if test -n "$ac_ct_RANLIB"; then | ||
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
5764 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
5765 | else | ||
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5767 | $as_echo "no" >&6; } | ||
5768 | fi | ||
5769 | |||
5770 | if test "x$ac_ct_RANLIB" = x; then | ||
5771 | RANLIB=":" | ||
5772 | else | ||
5773 | case $cross_compiling:$ac_tool_warned in | ||
5774 | yes:) | ||
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5776 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5777 | ac_tool_warned=yes ;; | ||
5778 | esac | ||
5779 | RANLIB=$ac_ct_RANLIB | ||
5780 | fi | ||
5781 | else | ||
5782 | RANLIB="$ac_cv_prog_RANLIB" | ||
5783 | fi | ||
5784 | |||
5785 | test -z "$RANLIB" && RANLIB=: | ||
5786 | |||
5787 | |||
5788 | |||
5789 | |||
5790 | |||
5791 | |||
5792 | # Determine commands to create old-style static archives. | ||
5793 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
5794 | old_postinstall_cmds='chmod 644 $oldlib' | ||
5795 | old_postuninstall_cmds= | ||
5796 | |||
5797 | if test -n "$RANLIB"; then | ||
5798 | case $host_os in | ||
5799 | openbsd*) | ||
5800 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
5801 | ;; | ||
5802 | *) | ||
5803 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
5804 | ;; | ||
5805 | esac | ||
5806 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
5807 | fi | ||
5808 | |||
5809 | |||
5810 | |||
5811 | |||
5812 | |||
5813 | |||
5814 | |||
5815 | |||
5816 | |||
5817 | |||
5818 | |||
5819 | |||
5820 | |||
5821 | |||
5822 | |||
5823 | |||
5824 | |||
5825 | |||
5826 | |||
5827 | |||
5828 | |||
5829 | |||
5830 | |||
5831 | |||
5832 | |||
5833 | |||
5834 | |||
5835 | |||
5836 | |||
5837 | |||
5838 | |||
5839 | |||
5840 | |||
5841 | |||
5842 | # If no C compiler was specified, use CC. | ||
5843 | LTCC=${LTCC-"$CC"} | ||
5844 | |||
5845 | # If no C compiler flags were specified, use CFLAGS. | ||
5846 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
5847 | |||
5848 | # Allow CC to be a program name with arguments. | ||
5849 | compiler=$CC | ||
5850 | |||
5851 | |||
5852 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
5854 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
5855 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
5856 | $as_echo_n "(cached) " >&6 | ||
5857 | else | ||
5858 | |||
5859 | # These are sane defaults that work on at least a few old systems. | ||
5860 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
5861 | |||
5862 | # Character class describing NM global symbol codes. | ||
5863 | symcode='[BCDEGRST]' | ||
5864 | |||
5865 | # Regexp to match symbols that can be accessed directly from C. | ||
5866 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
5867 | |||
5868 | # Define system-specific variables. | ||
5869 | case $host_os in | ||
5870 | aix*) | ||
5871 | symcode='[BCDT]' | ||
5872 | ;; | ||
5873 | cygwin* | mingw* | pw32* | cegcc*) | ||
5874 | symcode='[ABCDGISTW]' | ||
5875 | ;; | ||
5876 | hpux*) | ||
5877 | if test "$host_cpu" = ia64; then | ||
5878 | symcode='[ABCDEGRST]' | ||
5879 | fi | ||
5880 | ;; | ||
5881 | irix* | nonstopux*) | ||
5882 | symcode='[BCDEGRST]' | ||
5883 | ;; | ||
5884 | osf*) | ||
5885 | symcode='[BCDEGQRST]' | ||
5886 | ;; | ||
5887 | solaris*) | ||
5888 | symcode='[BDRT]' | ||
5889 | ;; | ||
5890 | sco3.2v5*) | ||
5891 | symcode='[DT]' | ||
5892 | ;; | ||
5893 | sysv4.2uw2*) | ||
5894 | symcode='[DT]' | ||
5895 | ;; | ||
5896 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
5897 | symcode='[ABDT]' | ||
5898 | ;; | ||
5899 | sysv4) | ||
5900 | symcode='[DFNSTU]' | ||
5901 | ;; | ||
5902 | esac | ||
5903 | |||
5904 | # If we're using GNU nm, then use its standard symbol codes. | ||
5905 | case `$NM -V 2>&1` in | ||
5906 | *GNU* | *'with BFD'*) | ||
5907 | symcode='[ABCDGIRSTW]' ;; | ||
5908 | esac | ||
5909 | |||
5910 | # Transform an extracted symbol line into a proper C declaration. | ||
5911 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
5912 | # so use this general approach. | ||
5913 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5914 | |||
5915 | # Transform an extracted symbol line into symbol name and symbol address | ||
5916 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
5917 | 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'" | ||
5918 | |||
5919 | # Handle CRLF in mingw tool chain | ||
5920 | opt_cr= | ||
5921 | case $build_os in | ||
5922 | mingw*) | ||
5923 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
5924 | ;; | ||
5925 | esac | ||
5926 | |||
5927 | # Try without a prefix underscore, then with it. | ||
5928 | for ac_symprfx in "" "_"; do | ||
5929 | |||
5930 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
5931 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
5932 | |||
5933 | # Write the raw and C identifiers. | ||
5934 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
5935 | # Fake it for dumpbin and say T for any non-static function | ||
5936 | # and D for any global variable. | ||
5937 | # Also find C++ and __fastcall symbols from MSVC++, | ||
5938 | # which start with @ or ?. | ||
5939 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
5940 | " {last_section=section; section=\$ 3};"\ | ||
5941 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
5942 | " \$ 0!~/External *\|/{next};"\ | ||
5943 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
5944 | " {if(hide[section]) next};"\ | ||
5945 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
5946 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
5947 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
5948 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
5949 | " ' prfx=^$ac_symprfx" | ||
5950 | else | ||
5951 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
5952 | fi | ||
5953 | |||
5954 | # Check to see that the pipe works correctly. | ||
5955 | pipe_works=no | ||
5956 | |||
5957 | rm -f conftest* | ||
5958 | cat > conftest.$ac_ext <<_LT_EOF | ||
5959 | #ifdef __cplusplus | ||
5960 | extern "C" { | ||
5961 | #endif | ||
5962 | char nm_test_var; | ||
5963 | void nm_test_func(void); | ||
5964 | void nm_test_func(void){} | ||
5965 | #ifdef __cplusplus | ||
5966 | } | ||
5967 | #endif | ||
5968 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
5969 | _LT_EOF | ||
5970 | |||
5971 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
5972 | (eval $ac_compile) 2>&5 | ||
5973 | ac_status=$? | ||
5974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
5975 | test $ac_status = 0; }; then | ||
5976 | # Now try to grab the symbols. | ||
5977 | nlist=conftest.nm | ||
5978 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
5979 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
5980 | ac_status=$? | ||
5981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
5982 | test $ac_status = 0; } && test -s "$nlist"; then | ||
5983 | # Try sorting and uniquifying the output. | ||
5984 | if sort "$nlist" | uniq > "$nlist"T; then | ||
5985 | mv -f "$nlist"T "$nlist" | ||
5986 | else | ||
5987 | rm -f "$nlist"T | ||
5988 | fi | ||
5989 | |||
5990 | # Make sure that we snagged all the symbols we need. | ||
5991 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
5992 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
5993 | cat <<_LT_EOF > conftest.$ac_ext | ||
5994 | #ifdef __cplusplus | ||
5995 | extern "C" { | ||
5996 | #endif | ||
5997 | |||
5998 | _LT_EOF | ||
5999 | # Now generate the symbol file. | ||
6000 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
6001 | |||
6002 | cat <<_LT_EOF >> conftest.$ac_ext | ||
6003 | |||
6004 | /* The mapping between symbol names and symbols. */ | ||
6005 | const struct { | ||
6006 | const char *name; | ||
6007 | void *address; | ||
6008 | } | ||
6009 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
6010 | { | ||
6011 | { "@PROGRAM@", (void *) 0 }, | ||
6012 | _LT_EOF | ||
6013 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
6014 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
6015 | {0, (void *) 0} | ||
6016 | }; | ||
6017 | |||
6018 | /* This works around a problem in FreeBSD linker */ | ||
6019 | #ifdef FREEBSD_WORKAROUND | ||
6020 | static const void *lt_preloaded_setup() { | ||
6021 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
6022 | } | ||
6023 | #endif | ||
6024 | |||
6025 | #ifdef __cplusplus | ||
6026 | } | ||
6027 | #endif | ||
6028 | _LT_EOF | ||
6029 | # Now try linking the two files. | ||
6030 | mv conftest.$ac_objext conftstm.$ac_objext | ||
6031 | lt_save_LIBS="$LIBS" | ||
6032 | lt_save_CFLAGS="$CFLAGS" | ||
6033 | LIBS="conftstm.$ac_objext" | ||
6034 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
6035 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
6036 | (eval $ac_link) 2>&5 | ||
6037 | ac_status=$? | ||
6038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6039 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
6040 | pipe_works=yes | ||
6041 | fi | ||
6042 | LIBS="$lt_save_LIBS" | ||
6043 | CFLAGS="$lt_save_CFLAGS" | ||
6044 | else | ||
6045 | echo "cannot find nm_test_func in $nlist" >&5 | ||
6046 | fi | ||
6047 | else | ||
6048 | echo "cannot find nm_test_var in $nlist" >&5 | ||
6049 | fi | ||
6050 | else | ||
6051 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
6052 | fi | ||
6053 | else | ||
6054 | echo "$progname: failed program was:" >&5 | ||
6055 | cat conftest.$ac_ext >&5 | ||
6056 | fi | ||
6057 | rm -rf conftest* conftst* | ||
6058 | |||
6059 | # Do not use the global_symbol_pipe unless it works. | ||
6060 | if test "$pipe_works" = yes; then | ||
6061 | break | ||
6062 | else | ||
6063 | lt_cv_sys_global_symbol_pipe= | ||
6064 | fi | ||
6065 | done | ||
6066 | |||
6067 | fi | ||
6068 | |||
6069 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
6070 | lt_cv_sys_global_symbol_to_cdecl= | ||
6071 | fi | ||
6072 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
6074 | $as_echo "failed" >&6; } | ||
6075 | else | ||
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
6077 | $as_echo "ok" >&6; } | ||
6078 | fi | ||
6079 | |||
6080 | |||
6081 | |||
6082 | |||
6083 | |||
6084 | |||
6085 | |||
6086 | |||
6087 | |||
6088 | |||
6089 | |||
6090 | |||
6091 | |||
6092 | |||
6093 | |||
6094 | |||
6095 | |||
6096 | |||
6097 | |||
6098 | |||
6099 | |||
6100 | |||
6101 | |||
6102 | # Check whether --enable-libtool-lock was given. | ||
6103 | if test "${enable_libtool_lock+set}" = set; then : | ||
6104 | enableval=$enable_libtool_lock; | ||
6105 | fi | ||
6106 | |||
6107 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
6108 | |||
6109 | # Some flags need to be propagated to the compiler or linker for good | ||
6110 | # libtool support. | ||
6111 | case $host in | ||
6112 | ia64-*-hpux*) | ||
6113 | # Find out which ABI we are using. | ||
6114 | echo 'int i;' > conftest.$ac_ext | ||
6115 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6116 | (eval $ac_compile) 2>&5 | ||
6117 | ac_status=$? | ||
6118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6119 | test $ac_status = 0; }; then | ||
6120 | case `/usr/bin/file conftest.$ac_objext` in | ||
6121 | *ELF-32*) | ||
6122 | HPUX_IA64_MODE="32" | ||
6123 | ;; | ||
6124 | *ELF-64*) | ||
6125 | HPUX_IA64_MODE="64" | ||
6126 | ;; | ||
6127 | esac | ||
6128 | fi | ||
6129 | rm -rf conftest* | ||
6130 | ;; | ||
6131 | *-*-irix6*) | ||
6132 | # Find out which ABI we are using. | ||
6133 | echo '#line 6133 "configure"' > conftest.$ac_ext | ||
6134 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6135 | (eval $ac_compile) 2>&5 | ||
6136 | ac_status=$? | ||
6137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6138 | test $ac_status = 0; }; then | ||
6139 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
6140 | case `/usr/bin/file conftest.$ac_objext` in | ||
6141 | *32-bit*) | ||
6142 | LD="${LD-ld} -melf32bsmip" | ||
6143 | ;; | ||
6144 | *N32*) | ||
6145 | LD="${LD-ld} -melf32bmipn32" | ||
6146 | ;; | ||
6147 | *64-bit*) | ||
6148 | LD="${LD-ld} -melf64bmip" | ||
6149 | ;; | ||
6150 | esac | ||
6151 | else | ||
6152 | case `/usr/bin/file conftest.$ac_objext` in | ||
6153 | *32-bit*) | ||
6154 | LD="${LD-ld} -32" | ||
6155 | ;; | ||
6156 | *N32*) | ||
6157 | LD="${LD-ld} -n32" | ||
6158 | ;; | ||
6159 | *64-bit*) | ||
6160 | LD="${LD-ld} -64" | ||
6161 | ;; | ||
6162 | esac | ||
6163 | fi | ||
6164 | fi | ||
6165 | rm -rf conftest* | ||
6166 | ;; | ||
6167 | |||
6168 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
6169 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
6170 | # Find out which ABI we are using. | ||
6171 | echo 'int i;' > conftest.$ac_ext | ||
6172 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6173 | (eval $ac_compile) 2>&5 | ||
6174 | ac_status=$? | ||
6175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6176 | test $ac_status = 0; }; then | ||
6177 | case `/usr/bin/file conftest.o` in | ||
6178 | *32-bit*) | ||
6179 | case $host in | ||
6180 | x86_64-*kfreebsd*-gnu) | ||
6181 | LD="${LD-ld} -m elf_i386_fbsd" | ||
6182 | ;; | ||
6183 | x86_64-*linux*) | ||
6184 | LD="${LD-ld} -m elf_i386" | ||
6185 | ;; | ||
6186 | ppc64-*linux*|powerpc64-*linux*) | ||
6187 | LD="${LD-ld} -m elf32ppclinux" | ||
6188 | ;; | ||
6189 | s390x-*linux*) | ||
6190 | LD="${LD-ld} -m elf_s390" | ||
6191 | ;; | ||
6192 | sparc64-*linux*) | ||
6193 | LD="${LD-ld} -m elf32_sparc" | ||
6194 | ;; | ||
6195 | esac | ||
6196 | ;; | ||
6197 | *64-bit*) | ||
6198 | case $host in | ||
6199 | x86_64-*kfreebsd*-gnu) | ||
6200 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
6201 | ;; | ||
6202 | x86_64-*linux*) | ||
6203 | LD="${LD-ld} -m elf_x86_64" | ||
6204 | ;; | ||
6205 | ppc*-*linux*|powerpc*-*linux*) | ||
6206 | LD="${LD-ld} -m elf64ppc" | ||
6207 | ;; | ||
6208 | s390*-*linux*|s390*-*tpf*) | ||
6209 | LD="${LD-ld} -m elf64_s390" | ||
6210 | ;; | ||
6211 | sparc*-*linux*) | ||
6212 | LD="${LD-ld} -m elf64_sparc" | ||
6213 | ;; | ||
6214 | esac | ||
6215 | ;; | ||
6216 | esac | ||
6217 | fi | ||
6218 | rm -rf conftest* | ||
6219 | ;; | ||
6220 | |||
6221 | *-*-sco3.2v5*) | ||
6222 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
6223 | SAVE_CFLAGS="$CFLAGS" | ||
6224 | CFLAGS="$CFLAGS -belf" | ||
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
6226 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
6227 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
6228 | $as_echo_n "(cached) " >&6 | ||
6229 | else | ||
6230 | ac_ext=c | ||
6231 | ac_cpp='$CPP $CPPFLAGS' | ||
6232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6235 | |||
6236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6237 | /* end confdefs.h. */ | ||
6238 | |||
6239 | int | ||
6240 | main () | ||
6241 | { | ||
6242 | |||
6243 | ; | ||
6244 | return 0; | ||
6245 | } | ||
6246 | _ACEOF | ||
6247 | if ac_fn_c_try_link "$LINENO"; then : | ||
6248 | lt_cv_cc_needs_belf=yes | ||
6249 | else | ||
6250 | lt_cv_cc_needs_belf=no | ||
6251 | fi | ||
6252 | rm -f core conftest.err conftest.$ac_objext \ | ||
6253 | conftest$ac_exeext conftest.$ac_ext | ||
6254 | ac_ext=c | ||
6255 | ac_cpp='$CPP $CPPFLAGS' | ||
6256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6259 | |||
6260 | fi | ||
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
6262 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
6263 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
6264 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
6265 | CFLAGS="$SAVE_CFLAGS" | ||
6266 | fi | ||
6267 | ;; | ||
6268 | sparc*-*solaris*) | ||
6269 | # Find out which ABI we are using. | ||
6270 | echo 'int i;' > conftest.$ac_ext | ||
6271 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6272 | (eval $ac_compile) 2>&5 | ||
6273 | ac_status=$? | ||
6274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6275 | test $ac_status = 0; }; then | ||
6276 | case `/usr/bin/file conftest.o` in | ||
6277 | *64-bit*) | ||
6278 | case $lt_cv_prog_gnu_ld in | ||
6279 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
6280 | *) | ||
6281 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
6282 | LD="${LD-ld} -64" | ||
6283 | fi | ||
6284 | ;; | ||
6285 | esac | ||
6286 | ;; | ||
6287 | esac | ||
6288 | fi | ||
6289 | rm -rf conftest* | ||
6290 | ;; | ||
6291 | esac | ||
6292 | |||
6293 | need_locks="$enable_libtool_lock" | ||
6294 | |||
6295 | |||
6296 | case $host_os in | ||
6297 | rhapsody* | darwin*) | ||
6298 | if test -n "$ac_tool_prefix"; then | ||
6299 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
6300 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6302 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6303 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
6304 | $as_echo_n "(cached) " >&6 | ||
6305 | else | ||
6306 | if test -n "$DSYMUTIL"; then | ||
6307 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
6308 | else | ||
6309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6310 | for as_dir in $PATH | ||
6311 | do | ||
6312 | IFS=$as_save_IFS | ||
6313 | test -z "$as_dir" && as_dir=. | ||
6314 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6316 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
6317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6318 | break 2 | ||
6319 | fi | ||
6320 | done | ||
6321 | done | ||
6322 | IFS=$as_save_IFS | ||
6323 | |||
6324 | fi | ||
6325 | fi | ||
6326 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
6327 | if test -n "$DSYMUTIL"; then | ||
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
6329 | $as_echo "$DSYMUTIL" >&6; } | ||
6330 | else | ||
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6332 | $as_echo "no" >&6; } | ||
6333 | fi | ||
6334 | |||
6335 | |||
6336 | fi | ||
6337 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
6338 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
6339 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
6340 | set dummy dsymutil; ac_word=$2 | ||
6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6342 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6343 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
6344 | $as_echo_n "(cached) " >&6 | ||
6345 | else | ||
6346 | if test -n "$ac_ct_DSYMUTIL"; then | ||
6347 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
6348 | else | ||
6349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6350 | for as_dir in $PATH | ||
6351 | do | ||
6352 | IFS=$as_save_IFS | ||
6353 | test -z "$as_dir" && as_dir=. | ||
6354 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6356 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
6357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6358 | break 2 | ||
6359 | fi | ||
6360 | done | ||
6361 | done | ||
6362 | IFS=$as_save_IFS | ||
6363 | |||
6364 | fi | ||
6365 | fi | ||
6366 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
6367 | if test -n "$ac_ct_DSYMUTIL"; then | ||
6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
6369 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
6370 | else | ||
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6372 | $as_echo "no" >&6; } | ||
6373 | fi | ||
6374 | |||
6375 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
6376 | DSYMUTIL=":" | ||
6377 | else | ||
6378 | case $cross_compiling:$ac_tool_warned in | ||
6379 | yes:) | ||
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6382 | ac_tool_warned=yes ;; | ||
6383 | esac | ||
6384 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
6385 | fi | ||
6386 | else | ||
6387 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
6388 | fi | ||
6389 | |||
6390 | if test -n "$ac_tool_prefix"; then | ||
6391 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
6392 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6394 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6395 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
6396 | $as_echo_n "(cached) " >&6 | ||
6397 | else | ||
6398 | if test -n "$NMEDIT"; then | ||
6399 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
6400 | else | ||
6401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6402 | for as_dir in $PATH | ||
6403 | do | ||
6404 | IFS=$as_save_IFS | ||
6405 | test -z "$as_dir" && as_dir=. | ||
6406 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6408 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
6409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6410 | break 2 | ||
6411 | fi | ||
6412 | done | ||
6413 | done | ||
6414 | IFS=$as_save_IFS | ||
6415 | |||
6416 | fi | ||
6417 | fi | ||
6418 | NMEDIT=$ac_cv_prog_NMEDIT | ||
6419 | if test -n "$NMEDIT"; then | ||
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
6421 | $as_echo "$NMEDIT" >&6; } | ||
6422 | else | ||
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6424 | $as_echo "no" >&6; } | ||
6425 | fi | ||
6426 | |||
6427 | |||
6428 | fi | ||
6429 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
6430 | ac_ct_NMEDIT=$NMEDIT | ||
6431 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
6432 | set dummy nmedit; ac_word=$2 | ||
6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6434 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6435 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
6436 | $as_echo_n "(cached) " >&6 | ||
6437 | else | ||
6438 | if test -n "$ac_ct_NMEDIT"; then | ||
6439 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
6440 | else | ||
6441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6442 | for as_dir in $PATH | ||
6443 | do | ||
6444 | IFS=$as_save_IFS | ||
6445 | test -z "$as_dir" && as_dir=. | ||
6446 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6448 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
6449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6450 | break 2 | ||
6451 | fi | ||
6452 | done | ||
6453 | done | ||
6454 | IFS=$as_save_IFS | ||
6455 | |||
6456 | fi | ||
6457 | fi | ||
6458 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
6459 | if test -n "$ac_ct_NMEDIT"; then | ||
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
6461 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
6462 | else | ||
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6464 | $as_echo "no" >&6; } | ||
6465 | fi | ||
6466 | |||
6467 | if test "x$ac_ct_NMEDIT" = x; then | ||
6468 | NMEDIT=":" | ||
6469 | else | ||
6470 | case $cross_compiling:$ac_tool_warned in | ||
6471 | yes:) | ||
6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6473 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6474 | ac_tool_warned=yes ;; | ||
6475 | esac | ||
6476 | NMEDIT=$ac_ct_NMEDIT | ||
6477 | fi | ||
6478 | else | ||
6479 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
6480 | fi | ||
6481 | |||
6482 | if test -n "$ac_tool_prefix"; then | ||
6483 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
6484 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6486 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6487 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
6488 | $as_echo_n "(cached) " >&6 | ||
6489 | else | ||
6490 | if test -n "$LIPO"; then | ||
6491 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
6492 | else | ||
6493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6494 | for as_dir in $PATH | ||
6495 | do | ||
6496 | IFS=$as_save_IFS | ||
6497 | test -z "$as_dir" && as_dir=. | ||
6498 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6500 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
6501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6502 | break 2 | ||
6503 | fi | ||
6504 | done | ||
6505 | done | ||
6506 | IFS=$as_save_IFS | ||
6507 | |||
6508 | fi | ||
6509 | fi | ||
6510 | LIPO=$ac_cv_prog_LIPO | ||
6511 | if test -n "$LIPO"; then | ||
6512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
6513 | $as_echo "$LIPO" >&6; } | ||
6514 | else | ||
6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6516 | $as_echo "no" >&6; } | ||
6517 | fi | ||
6518 | |||
6519 | |||
6520 | fi | ||
6521 | if test -z "$ac_cv_prog_LIPO"; then | ||
6522 | ac_ct_LIPO=$LIPO | ||
6523 | # Extract the first word of "lipo", so it can be a program name with args. | ||
6524 | set dummy lipo; ac_word=$2 | ||
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6526 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6527 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
6528 | $as_echo_n "(cached) " >&6 | ||
6529 | else | ||
6530 | if test -n "$ac_ct_LIPO"; then | ||
6531 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
6532 | else | ||
6533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6534 | for as_dir in $PATH | ||
6535 | do | ||
6536 | IFS=$as_save_IFS | ||
6537 | test -z "$as_dir" && as_dir=. | ||
6538 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6540 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
6541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6542 | break 2 | ||
6543 | fi | ||
6544 | done | ||
6545 | done | ||
6546 | IFS=$as_save_IFS | ||
6547 | |||
6548 | fi | ||
6549 | fi | ||
6550 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
6551 | if test -n "$ac_ct_LIPO"; then | ||
6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
6553 | $as_echo "$ac_ct_LIPO" >&6; } | ||
6554 | else | ||
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6556 | $as_echo "no" >&6; } | ||
6557 | fi | ||
6558 | |||
6559 | if test "x$ac_ct_LIPO" = x; then | ||
6560 | LIPO=":" | ||
6561 | else | ||
6562 | case $cross_compiling:$ac_tool_warned in | ||
6563 | yes:) | ||
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6565 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6566 | ac_tool_warned=yes ;; | ||
6567 | esac | ||
6568 | LIPO=$ac_ct_LIPO | ||
6569 | fi | ||
6570 | else | ||
6571 | LIPO="$ac_cv_prog_LIPO" | ||
6572 | fi | ||
6573 | |||
6574 | if test -n "$ac_tool_prefix"; then | ||
6575 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
6576 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6578 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6579 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
6580 | $as_echo_n "(cached) " >&6 | ||
6581 | else | ||
6582 | if test -n "$OTOOL"; then | ||
6583 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
6584 | else | ||
6585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6586 | for as_dir in $PATH | ||
6587 | do | ||
6588 | IFS=$as_save_IFS | ||
6589 | test -z "$as_dir" && as_dir=. | ||
6590 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6592 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
6593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6594 | break 2 | ||
6595 | fi | ||
6596 | done | ||
6597 | done | ||
6598 | IFS=$as_save_IFS | ||
6599 | |||
6600 | fi | ||
6601 | fi | ||
6602 | OTOOL=$ac_cv_prog_OTOOL | ||
6603 | if test -n "$OTOOL"; then | ||
6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
6605 | $as_echo "$OTOOL" >&6; } | ||
6606 | else | ||
6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6608 | $as_echo "no" >&6; } | ||
6609 | fi | ||
6610 | |||
6611 | |||
6612 | fi | ||
6613 | if test -z "$ac_cv_prog_OTOOL"; then | ||
6614 | ac_ct_OTOOL=$OTOOL | ||
6615 | # Extract the first word of "otool", so it can be a program name with args. | ||
6616 | set dummy otool; ac_word=$2 | ||
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6618 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6619 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
6620 | $as_echo_n "(cached) " >&6 | ||
6621 | else | ||
6622 | if test -n "$ac_ct_OTOOL"; then | ||
6623 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
6624 | else | ||
6625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6626 | for as_dir in $PATH | ||
6627 | do | ||
6628 | IFS=$as_save_IFS | ||
6629 | test -z "$as_dir" && as_dir=. | ||
6630 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6632 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
6633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6634 | break 2 | ||
6635 | fi | ||
6636 | done | ||
6637 | done | ||
6638 | IFS=$as_save_IFS | ||
6639 | |||
6640 | fi | ||
6641 | fi | ||
6642 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
6643 | if test -n "$ac_ct_OTOOL"; then | ||
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
6645 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
6646 | else | ||
6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6648 | $as_echo "no" >&6; } | ||
6649 | fi | ||
6650 | |||
6651 | if test "x$ac_ct_OTOOL" = x; then | ||
6652 | OTOOL=":" | ||
6653 | else | ||
6654 | case $cross_compiling:$ac_tool_warned in | ||
6655 | yes:) | ||
6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6657 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6658 | ac_tool_warned=yes ;; | ||
6659 | esac | ||
6660 | OTOOL=$ac_ct_OTOOL | ||
6661 | fi | ||
6662 | else | ||
6663 | OTOOL="$ac_cv_prog_OTOOL" | ||
6664 | fi | ||
6665 | |||
6666 | if test -n "$ac_tool_prefix"; then | ||
6667 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
6668 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6670 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6671 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
6672 | $as_echo_n "(cached) " >&6 | ||
6673 | else | ||
6674 | if test -n "$OTOOL64"; then | ||
6675 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
6676 | else | ||
6677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6678 | for as_dir in $PATH | ||
6679 | do | ||
6680 | IFS=$as_save_IFS | ||
6681 | test -z "$as_dir" && as_dir=. | ||
6682 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6684 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
6685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6686 | break 2 | ||
6687 | fi | ||
6688 | done | ||
6689 | done | ||
6690 | IFS=$as_save_IFS | ||
6691 | |||
6692 | fi | ||
6693 | fi | ||
6694 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
6695 | if test -n "$OTOOL64"; then | ||
6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
6697 | $as_echo "$OTOOL64" >&6; } | ||
6698 | else | ||
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6700 | $as_echo "no" >&6; } | ||
6701 | fi | ||
6702 | |||
6703 | |||
6704 | fi | ||
6705 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
6706 | ac_ct_OTOOL64=$OTOOL64 | ||
6707 | # Extract the first word of "otool64", so it can be a program name with args. | ||
6708 | set dummy otool64; ac_word=$2 | ||
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6710 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6711 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
6712 | $as_echo_n "(cached) " >&6 | ||
6713 | else | ||
6714 | if test -n "$ac_ct_OTOOL64"; then | ||
6715 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
6716 | else | ||
6717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6718 | for as_dir in $PATH | ||
6719 | do | ||
6720 | IFS=$as_save_IFS | ||
6721 | test -z "$as_dir" && as_dir=. | ||
6722 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6724 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
6725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6726 | break 2 | ||
6727 | fi | ||
6728 | done | ||
6729 | done | ||
6730 | IFS=$as_save_IFS | ||
6731 | |||
6732 | fi | ||
6733 | fi | ||
6734 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
6735 | if test -n "$ac_ct_OTOOL64"; then | ||
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
6737 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
6738 | else | ||
6739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6740 | $as_echo "no" >&6; } | ||
6741 | fi | ||
6742 | |||
6743 | if test "x$ac_ct_OTOOL64" = x; then | ||
6744 | OTOOL64=":" | ||
6745 | else | ||
6746 | case $cross_compiling:$ac_tool_warned in | ||
6747 | yes:) | ||
6748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6749 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6750 | ac_tool_warned=yes ;; | ||
6751 | esac | ||
6752 | OTOOL64=$ac_ct_OTOOL64 | ||
6753 | fi | ||
6754 | else | ||
6755 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
6756 | fi | ||
6757 | |||
6758 | |||
6759 | |||
6760 | |||
6761 | |||
6762 | |||
6763 | |||
6764 | |||
6765 | |||
6766 | |||
6767 | |||
6768 | |||
6769 | |||
6770 | |||
6771 | |||
6772 | |||
6773 | |||
6774 | |||
6775 | |||
6776 | |||
6777 | |||
6778 | |||
6779 | |||
6780 | |||
6781 | |||
6782 | |||
6783 | |||
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
6785 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
6786 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
6787 | $as_echo_n "(cached) " >&6 | ||
6788 | else | ||
6789 | lt_cv_apple_cc_single_mod=no | ||
6790 | if test -z "${LT_MULTI_MODULE}"; then | ||
6791 | # By default we will add the -single_module flag. You can override | ||
6792 | # by either setting the environment variable LT_MULTI_MODULE | ||
6793 | # non-empty at configure time, or by adding -multi_module to the | ||
6794 | # link flags. | ||
6795 | rm -rf libconftest.dylib* | ||
6796 | echo "int foo(void){return 1;}" > conftest.c | ||
6797 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
6798 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
6799 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
6800 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
6801 | _lt_result=$? | ||
6802 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
6803 | lt_cv_apple_cc_single_mod=yes | ||
6804 | else | ||
6805 | cat conftest.err >&5 | ||
6806 | fi | ||
6807 | rm -rf libconftest.dylib* | ||
6808 | rm -f conftest.* | ||
6809 | fi | ||
6810 | fi | ||
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
6812 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
6814 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
6815 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
6816 | $as_echo_n "(cached) " >&6 | ||
6817 | else | ||
6818 | lt_cv_ld_exported_symbols_list=no | ||
6819 | save_LDFLAGS=$LDFLAGS | ||
6820 | echo "_main" > conftest.sym | ||
6821 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
6822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6823 | /* end confdefs.h. */ | ||
6824 | |||
6825 | int | ||
6826 | main () | ||
6827 | { | ||
6828 | |||
6829 | ; | ||
6830 | return 0; | ||
6831 | } | ||
6832 | _ACEOF | ||
6833 | if ac_fn_c_try_link "$LINENO"; then : | ||
6834 | lt_cv_ld_exported_symbols_list=yes | ||
6835 | else | ||
6836 | lt_cv_ld_exported_symbols_list=no | ||
6837 | fi | ||
6838 | rm -f core conftest.err conftest.$ac_objext \ | ||
6839 | conftest$ac_exeext conftest.$ac_ext | ||
6840 | LDFLAGS="$save_LDFLAGS" | ||
6841 | |||
6842 | fi | ||
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
6844 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
6845 | case $host_os in | ||
6846 | rhapsody* | darwin1.[012]) | ||
6847 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
6848 | darwin1.*) | ||
6849 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
6850 | darwin*) # darwin 5.x on | ||
6851 | # if running on 10.5 or later, the deployment target defaults | ||
6852 | # to the OS version, if on x86, and 10.4, the deployment | ||
6853 | # target defaults to 10.4. Don't you love it? | ||
6854 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
6855 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
6856 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
6857 | 10.[012]*) | ||
6858 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
6859 | 10.*) | ||
6860 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
6861 | esac | ||
6862 | ;; | ||
6863 | esac | ||
6864 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
6865 | _lt_dar_single_mod='$single_module' | ||
6866 | fi | ||
6867 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
6868 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
6869 | else | ||
6870 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6871 | fi | ||
6872 | if test "$DSYMUTIL" != ":"; then | ||
6873 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
6874 | else | ||
6875 | _lt_dsymutil= | ||
6876 | fi | ||
6877 | ;; | ||
6878 | esac | ||
6879 | |||
6880 | ac_ext=c | ||
6881 | ac_cpp='$CPP $CPPFLAGS' | ||
6882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
6886 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
6887 | # On Suns, sometimes $CPP names a directory. | ||
6888 | if test -n "$CPP" && test -d "$CPP"; then | ||
6889 | CPP= | ||
6890 | fi | ||
6891 | if test -z "$CPP"; then | ||
6892 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
6893 | $as_echo_n "(cached) " >&6 | ||
6894 | else | ||
6895 | # Double quotes because CPP needs to be expanded | ||
6896 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
6897 | do | ||
6898 | ac_preproc_ok=false | ||
6899 | for ac_c_preproc_warn_flag in '' yes | ||
6900 | do | ||
6901 | # Use a header file that comes with gcc, so configuring glibc | ||
6902 | # with a fresh cross-compiler works. | ||
6903 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6904 | # <limits.h> exists even on freestanding compilers. | ||
6905 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6906 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6908 | /* end confdefs.h. */ | ||
6909 | #ifdef __STDC__ | ||
6910 | # include <limits.h> | ||
6911 | #else | ||
6912 | # include <assert.h> | ||
6913 | #endif | ||
6914 | Syntax error | ||
6915 | _ACEOF | ||
6916 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6917 | |||
6918 | else | ||
6919 | # Broken: fails on valid input. | ||
6920 | continue | ||
6921 | fi | ||
6922 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6923 | |||
6924 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6925 | # can be detected and how. | ||
6926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6927 | /* end confdefs.h. */ | ||
6928 | #include <ac_nonexistent.h> | ||
6929 | _ACEOF | ||
6930 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6931 | # Broken: success on invalid input. | ||
6932 | continue | ||
6933 | else | ||
6934 | # Passes both tests. | ||
6935 | ac_preproc_ok=: | ||
6936 | break | ||
6937 | fi | ||
6938 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6939 | |||
6940 | done | ||
6941 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6942 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
6943 | if $ac_preproc_ok; then : | ||
6944 | break | ||
6945 | fi | ||
6946 | |||
6947 | done | ||
6948 | ac_cv_prog_CPP=$CPP | ||
6949 | |||
6950 | fi | ||
6951 | CPP=$ac_cv_prog_CPP | ||
6952 | else | ||
6953 | ac_cv_prog_CPP=$CPP | ||
6954 | fi | ||
6955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
6956 | $as_echo "$CPP" >&6; } | ||
6957 | ac_preproc_ok=false | ||
6958 | for ac_c_preproc_warn_flag in '' yes | ||
6959 | do | ||
6960 | # Use a header file that comes with gcc, so configuring glibc | ||
6961 | # with a fresh cross-compiler works. | ||
6962 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6963 | # <limits.h> exists even on freestanding compilers. | ||
6964 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6965 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6967 | /* end confdefs.h. */ | ||
6968 | #ifdef __STDC__ | ||
6969 | # include <limits.h> | ||
6970 | #else | ||
6971 | # include <assert.h> | ||
6972 | #endif | ||
6973 | Syntax error | ||
6974 | _ACEOF | ||
6975 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6976 | |||
6977 | else | ||
6978 | # Broken: fails on valid input. | ||
6979 | continue | ||
6980 | fi | ||
6981 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6982 | |||
6983 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6984 | # can be detected and how. | ||
6985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6986 | /* end confdefs.h. */ | ||
6987 | #include <ac_nonexistent.h> | ||
6988 | _ACEOF | ||
6989 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
6990 | # Broken: success on invalid input. | ||
6991 | continue | ||
6992 | else | ||
6993 | # Passes both tests. | ||
6994 | ac_preproc_ok=: | ||
6995 | break | ||
6996 | fi | ||
6997 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
6998 | |||
6999 | done | ||
7000 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
7001 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
7002 | if $ac_preproc_ok; then : | ||
7003 | |||
7004 | else | ||
7005 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
7006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
7007 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
7008 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
7009 | fi | ||
7010 | |||
7011 | ac_ext=c | ||
7012 | ac_cpp='$CPP $CPPFLAGS' | ||
7013 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7014 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7016 | |||
7017 | |||
7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
7019 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
7020 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
7021 | $as_echo_n "(cached) " >&6 | ||
7022 | else | ||
7023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7024 | /* end confdefs.h. */ | ||
7025 | #include <stdlib.h> | ||
7026 | #include <stdarg.h> | ||
7027 | #include <string.h> | ||
7028 | #include <float.h> | ||
7029 | |||
7030 | int | ||
7031 | main () | ||
7032 | { | ||
7033 | |||
7034 | ; | ||
7035 | return 0; | ||
7036 | } | ||
7037 | _ACEOF | ||
7038 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7039 | ac_cv_header_stdc=yes | ||
7040 | else | ||
7041 | ac_cv_header_stdc=no | ||
7042 | fi | ||
7043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7044 | |||
7045 | if test $ac_cv_header_stdc = yes; then | ||
7046 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
7047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7048 | /* end confdefs.h. */ | ||
7049 | #include <string.h> | ||
7050 | |||
7051 | _ACEOF | ||
7052 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7053 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
7054 | |||
7055 | else | ||
7056 | ac_cv_header_stdc=no | ||
7057 | fi | ||
7058 | rm -f conftest* | ||
7059 | |||
7060 | fi | ||
7061 | |||
7062 | if test $ac_cv_header_stdc = yes; then | ||
7063 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
7064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7065 | /* end confdefs.h. */ | ||
7066 | #include <stdlib.h> | ||
7067 | |||
7068 | _ACEOF | ||
7069 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7070 | $EGREP "free" >/dev/null 2>&1; then : | ||
7071 | |||
7072 | else | ||
7073 | ac_cv_header_stdc=no | ||
7074 | fi | ||
7075 | rm -f conftest* | ||
7076 | |||
7077 | fi | ||
7078 | |||
7079 | if test $ac_cv_header_stdc = yes; then | ||
7080 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
7081 | if test "$cross_compiling" = yes; then : | ||
7082 | : | ||
7083 | else | ||
7084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7085 | /* end confdefs.h. */ | ||
7086 | #include <ctype.h> | ||
7087 | #include <stdlib.h> | ||
7088 | #if ((' ' & 0x0FF) == 0x020) | ||
7089 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
7090 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
7091 | #else | ||
7092 | # define ISLOWER(c) \ | ||
7093 | (('a' <= (c) && (c) <= 'i') \ | ||
7094 | || ('j' <= (c) && (c) <= 'r') \ | ||
7095 | || ('s' <= (c) && (c) <= 'z')) | ||
7096 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
7097 | #endif | ||
7098 | |||
7099 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
7100 | int | ||
7101 | main () | ||
7102 | { | ||
7103 | int i; | ||
7104 | for (i = 0; i < 256; i++) | ||
7105 | if (XOR (islower (i), ISLOWER (i)) | ||
7106 | || toupper (i) != TOUPPER (i)) | ||
7107 | return 2; | ||
7108 | return 0; | ||
7109 | } | ||
7110 | _ACEOF | ||
7111 | if ac_fn_c_try_run "$LINENO"; then : | ||
7112 | |||
7113 | else | ||
7114 | ac_cv_header_stdc=no | ||
7115 | fi | ||
7116 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7117 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7118 | fi | ||
7119 | |||
7120 | fi | ||
7121 | fi | ||
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
7123 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
7124 | if test $ac_cv_header_stdc = yes; then | ||
7125 | |||
7126 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
7127 | |||
7128 | fi | ||
7129 | |||
7130 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
7131 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
7132 | inttypes.h stdint.h unistd.h | ||
7133 | do : | ||
7134 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7135 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
7136 | " | ||
7137 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7138 | cat >>confdefs.h <<_ACEOF | ||
7139 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7140 | _ACEOF | ||
7141 | |||
7142 | fi | ||
7143 | |||
7144 | done | ||
7145 | |||
7146 | |||
7147 | for ac_header in dlfcn.h | ||
7148 | do : | ||
7149 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
7150 | " | ||
7151 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
7152 | cat >>confdefs.h <<_ACEOF | ||
7153 | #define HAVE_DLFCN_H 1 | ||
7154 | _ACEOF | ||
7155 | |||
7156 | fi | ||
7157 | |||
7158 | done | ||
7159 | |||
7160 | |||
7161 | |||
7162 | # Set options | ||
7163 | |||
7164 | |||
7165 | |||
7166 | enable_dlopen=no | ||
7167 | |||
7168 | |||
7169 | |||
7170 | # Check whether --enable-shared was given. | ||
7171 | if test "${enable_shared+set}" = set; then : | ||
7172 | enableval=$enable_shared; p=${PACKAGE-default} | ||
7173 | case $enableval in | ||
7174 | yes) enable_shared=yes ;; | ||
7175 | no) enable_shared=no ;; | ||
7176 | *) | ||
7177 | enable_shared=no | ||
7178 | # Look at the argument we got. We use all the common list separators. | ||
7179 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7180 | for pkg in $enableval; do | ||
7181 | IFS="$lt_save_ifs" | ||
7182 | if test "X$pkg" = "X$p"; then | ||
7183 | enable_shared=yes | ||
7184 | fi | ||
7185 | done | ||
7186 | IFS="$lt_save_ifs" | ||
7187 | ;; | ||
7188 | esac | ||
7189 | else | ||
7190 | enable_shared=yes | ||
7191 | fi | ||
7192 | |||
7193 | |||
7194 | |||
7195 | |||
7196 | |||
7197 | |||
7198 | |||
7199 | |||
7200 | |||
7201 | # Check whether --enable-static was given. | ||
7202 | if test "${enable_static+set}" = set; then : | ||
7203 | enableval=$enable_static; p=${PACKAGE-default} | ||
7204 | case $enableval in | ||
7205 | yes) enable_static=yes ;; | ||
7206 | no) enable_static=no ;; | ||
7207 | *) | ||
7208 | enable_static=no | ||
7209 | # Look at the argument we got. We use all the common list separators. | ||
7210 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7211 | for pkg in $enableval; do | ||
7212 | IFS="$lt_save_ifs" | ||
7213 | if test "X$pkg" = "X$p"; then | ||
7214 | enable_static=yes | ||
7215 | fi | ||
7216 | done | ||
7217 | IFS="$lt_save_ifs" | ||
7218 | ;; | ||
7219 | esac | ||
7220 | else | ||
7221 | enable_static=yes | ||
7222 | fi | ||
7223 | |||
7224 | |||
7225 | |||
7226 | |||
7227 | |||
7228 | |||
7229 | |||
7230 | |||
7231 | |||
7232 | |||
7233 | # Check whether --with-pic was given. | ||
7234 | if test "${with_pic+set}" = set; then : | ||
7235 | withval=$with_pic; pic_mode="$withval" | ||
7236 | else | ||
7237 | pic_mode=default | ||
7238 | fi | ||
7239 | |||
7240 | |||
7241 | test -z "$pic_mode" && pic_mode=default | ||
7242 | |||
7243 | |||
7244 | |||
7245 | |||
7246 | |||
7247 | |||
7248 | |||
7249 | # Check whether --enable-fast-install was given. | ||
7250 | if test "${enable_fast_install+set}" = set; then : | ||
7251 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
7252 | case $enableval in | ||
7253 | yes) enable_fast_install=yes ;; | ||
7254 | no) enable_fast_install=no ;; | ||
7255 | *) | ||
7256 | enable_fast_install=no | ||
7257 | # Look at the argument we got. We use all the common list separators. | ||
7258 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7259 | for pkg in $enableval; do | ||
7260 | IFS="$lt_save_ifs" | ||
7261 | if test "X$pkg" = "X$p"; then | ||
7262 | enable_fast_install=yes | ||
7263 | fi | ||
7264 | done | ||
7265 | IFS="$lt_save_ifs" | ||
7266 | ;; | ||
7267 | esac | ||
7268 | else | ||
7269 | enable_fast_install=yes | ||
7270 | fi | ||
7271 | |||
7272 | |||
7273 | |||
7274 | |||
7275 | |||
7276 | |||
7277 | |||
7278 | |||
7279 | |||
7280 | |||
7281 | |||
7282 | # This can be used to rebuild libtool when needed | ||
7283 | LIBTOOL_DEPS="$ltmain" | ||
7284 | |||
7285 | # Always use our own libtool. | ||
7286 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
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 | test -z "$LN_S" && LN_S="ln -s" | ||
7313 | |||
7314 | |||
7315 | |||
7316 | |||
7317 | |||
7318 | |||
7319 | |||
7320 | |||
7321 | |||
7322 | |||
7323 | |||
7324 | |||
7325 | |||
7326 | |||
7327 | if test -n "${ZSH_VERSION+set}" ; then | ||
7328 | setopt NO_GLOB_SUBST | ||
7329 | fi | ||
7330 | |||
7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
7332 | $as_echo_n "checking for objdir... " >&6; } | ||
7333 | if test "${lt_cv_objdir+set}" = set; then : | ||
7334 | $as_echo_n "(cached) " >&6 | ||
7335 | else | ||
7336 | rm -f .libs 2>/dev/null | ||
7337 | mkdir .libs 2>/dev/null | ||
7338 | if test -d .libs; then | ||
7339 | lt_cv_objdir=.libs | ||
7340 | else | ||
7341 | # MS-DOS does not allow filenames that begin with a dot. | ||
7342 | lt_cv_objdir=_libs | ||
7343 | fi | ||
7344 | rmdir .libs 2>/dev/null | ||
7345 | fi | ||
7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
7347 | $as_echo "$lt_cv_objdir" >&6; } | ||
7348 | objdir=$lt_cv_objdir | ||
7349 | |||
7350 | |||
7351 | |||
7352 | |||
7353 | |||
7354 | cat >>confdefs.h <<_ACEOF | ||
7355 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
7356 | _ACEOF | ||
7357 | |||
7358 | |||
7359 | |||
7360 | |||
7361 | |||
7362 | |||
7363 | |||
7364 | |||
7365 | |||
7366 | |||
7367 | |||
7368 | |||
7369 | |||
7370 | |||
7371 | |||
7372 | |||
7373 | |||
7374 | case $host_os in | ||
7375 | aix3*) | ||
7376 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
7377 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
7378 | # vanish in a puff of smoke. | ||
7379 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
7380 | COLLECT_NAMES= | ||
7381 | export COLLECT_NAMES | ||
7382 | fi | ||
7383 | ;; | ||
7384 | esac | ||
7385 | |||
7386 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
7387 | # metacharacters that are still active within double-quoted strings. | ||
7388 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
7389 | |||
7390 | # Same as above, but do not quote variable references. | ||
7391 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
7392 | |||
7393 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
7394 | # double_quote_subst'ed string. | ||
7395 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
7396 | |||
7397 | # Sed substitution to delay expansion of an escaped single quote. | ||
7398 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
7399 | |||
7400 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
7401 | no_glob_subst='s/\*/\\\*/g' | ||
7402 | |||
7403 | # Global variables: | ||
7404 | ofile=libtool | ||
7405 | can_build_shared=yes | ||
7406 | |||
7407 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
7408 | # which needs '.lib'). | ||
7409 | libext=a | ||
7410 | |||
7411 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
7412 | |||
7413 | old_CC="$CC" | ||
7414 | old_CFLAGS="$CFLAGS" | ||
7415 | |||
7416 | # Set sane defaults for various variables | ||
7417 | test -z "$CC" && CC=cc | ||
7418 | test -z "$LTCC" && LTCC=$CC | ||
7419 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
7420 | test -z "$LD" && LD=ld | ||
7421 | test -z "$ac_objext" && ac_objext=o | ||
7422 | |||
7423 | for cc_temp in $compiler""; do | ||
7424 | case $cc_temp in | ||
7425 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
7426 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
7427 | \-*) ;; | ||
7428 | *) break;; | ||
7429 | esac | ||
7430 | done | ||
7431 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
7432 | |||
7433 | |||
7434 | # Only perform the check for file, if the check method requires it | ||
7435 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
7436 | case $deplibs_check_method in | ||
7437 | file_magic*) | ||
7438 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
7439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
7440 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
7441 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
7442 | $as_echo_n "(cached) " >&6 | ||
7443 | else | ||
7444 | case $MAGIC_CMD in | ||
7445 | [\\/*] | ?:[\\/]*) | ||
7446 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7447 | ;; | ||
7448 | *) | ||
7449 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7450 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7451 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7452 | for ac_dir in $ac_dummy; do | ||
7453 | IFS="$lt_save_ifs" | ||
7454 | test -z "$ac_dir" && ac_dir=. | ||
7455 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
7456 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
7457 | if test -n "$file_magic_test_file"; then | ||
7458 | case $deplibs_check_method in | ||
7459 | "file_magic "*) | ||
7460 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7461 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7462 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7463 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7464 | : | ||
7465 | else | ||
7466 | cat <<_LT_EOF 1>&2 | ||
7467 | |||
7468 | *** Warning: the command libtool uses to detect shared libraries, | ||
7469 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7470 | *** The result is that libtool may fail to recognize shared libraries | ||
7471 | *** as such. This will affect the creation of libtool libraries that | ||
7472 | *** depend on shared libraries, but programs linked with such libtool | ||
7473 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7474 | *** may want to report the problem to your system manager and/or to | ||
7475 | *** bug-libtool@gnu.org | ||
7476 | |||
7477 | _LT_EOF | ||
7478 | fi ;; | ||
7479 | esac | ||
7480 | fi | ||
7481 | break | ||
7482 | fi | ||
7483 | done | ||
7484 | IFS="$lt_save_ifs" | ||
7485 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7486 | ;; | ||
7487 | esac | ||
7488 | fi | ||
7489 | |||
7490 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7491 | if test -n "$MAGIC_CMD"; then | ||
7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
7493 | $as_echo "$MAGIC_CMD" >&6; } | ||
7494 | else | ||
7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7496 | $as_echo "no" >&6; } | ||
7497 | fi | ||
7498 | |||
7499 | |||
7500 | |||
7501 | |||
7502 | |||
7503 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
7504 | if test -n "$ac_tool_prefix"; then | ||
7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
7506 | $as_echo_n "checking for file... " >&6; } | ||
7507 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
7508 | $as_echo_n "(cached) " >&6 | ||
7509 | else | ||
7510 | case $MAGIC_CMD in | ||
7511 | [\\/*] | ?:[\\/]*) | ||
7512 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7513 | ;; | ||
7514 | *) | ||
7515 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7516 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7517 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7518 | for ac_dir in $ac_dummy; do | ||
7519 | IFS="$lt_save_ifs" | ||
7520 | test -z "$ac_dir" && ac_dir=. | ||
7521 | if test -f $ac_dir/file; then | ||
7522 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
7523 | if test -n "$file_magic_test_file"; then | ||
7524 | case $deplibs_check_method in | ||
7525 | "file_magic "*) | ||
7526 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
7527 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7528 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7529 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7530 | : | ||
7531 | else | ||
7532 | cat <<_LT_EOF 1>&2 | ||
7533 | |||
7534 | *** Warning: the command libtool uses to detect shared libraries, | ||
7535 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7536 | *** The result is that libtool may fail to recognize shared libraries | ||
7537 | *** as such. This will affect the creation of libtool libraries that | ||
7538 | *** depend on shared libraries, but programs linked with such libtool | ||
7539 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7540 | *** may want to report the problem to your system manager and/or to | ||
7541 | *** bug-libtool@gnu.org | ||
7542 | |||
7543 | _LT_EOF | ||
7544 | fi ;; | ||
7545 | esac | ||
7546 | fi | ||
7547 | break | ||
7548 | fi | ||
7549 | done | ||
7550 | IFS="$lt_save_ifs" | ||
7551 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7552 | ;; | ||
7553 | esac | ||
7554 | fi | ||
7555 | |||
7556 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7557 | if test -n "$MAGIC_CMD"; then | ||
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
7559 | $as_echo "$MAGIC_CMD" >&6; } | ||
7560 | else | ||
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7562 | $as_echo "no" >&6; } | ||
7563 | fi | ||
7564 | |||
7565 | |||
7566 | else | ||
7567 | MAGIC_CMD=: | ||
7568 | fi | ||
7569 | fi | ||
7570 | |||
7571 | fi | ||
7572 | ;; | ||
7573 | esac | ||
7574 | |||
7575 | # Use C for the default configuration in the libtool script | ||
7576 | |||
7577 | lt_save_CC="$CC" | ||
7578 | ac_ext=c | ||
7579 | ac_cpp='$CPP $CPPFLAGS' | ||
7580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7583 | |||
7584 | |||
7585 | # Source file extension for C test sources. | ||
7586 | ac_ext=c | ||
7587 | |||
7588 | # Object file extension for compiled C test sources. | ||
7589 | objext=o | ||
7590 | objext=$objext | ||
7591 | |||
7592 | # Code to be used in simple compile tests | ||
7593 | lt_simple_compile_test_code="int some_variable = 0;" | ||
7594 | |||
7595 | # Code to be used in simple link tests | ||
7596 | lt_simple_link_test_code='int main(){return(0);}' | ||
7597 | |||
7598 | |||
7599 | |||
7600 | |||
7601 | |||
7602 | |||
7603 | |||
7604 | # If no C compiler was specified, use CC. | ||
7605 | LTCC=${LTCC-"$CC"} | ||
7606 | |||
7607 | # If no C compiler flags were specified, use CFLAGS. | ||
7608 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7609 | |||
7610 | # Allow CC to be a program name with arguments. | ||
7611 | compiler=$CC | ||
7612 | |||
7613 | # Save the default compiler, since it gets overwritten when the other | ||
7614 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
7615 | compiler_DEFAULT=$CC | ||
7616 | |||
7617 | # save warnings/boilerplate of simple test code | ||
7618 | ac_outfile=conftest.$ac_objext | ||
7619 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
7620 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7621 | _lt_compiler_boilerplate=`cat conftest.err` | ||
7622 | $RM conftest* | ||
7623 | |||
7624 | ac_outfile=conftest.$ac_objext | ||
7625 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
7626 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
7627 | _lt_linker_boilerplate=`cat conftest.err` | ||
7628 | $RM -r conftest* | ||
7629 | |||
7630 | |||
7631 | ## CAVEAT EMPTOR: | ||
7632 | ## There is no encapsulation within the following macros, do not change | ||
7633 | ## the running order or otherwise move them around unless you know exactly | ||
7634 | ## what you are doing... | ||
7635 | if test -n "$compiler"; then | ||
7636 | |||
7637 | lt_prog_compiler_no_builtin_flag= | ||
7638 | |||
7639 | if test "$GCC" = yes; then | ||
7640 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
7641 | |||
7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
7643 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
7644 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
7645 | $as_echo_n "(cached) " >&6 | ||
7646 | else | ||
7647 | lt_cv_prog_compiler_rtti_exceptions=no | ||
7648 | ac_outfile=conftest.$ac_objext | ||
7649 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7650 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
7651 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7652 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7653 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7654 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7655 | # The option is referenced via a variable to avoid confusing sed. | ||
7656 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7657 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7658 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7659 | -e 's:$: $lt_compiler_flag:'` | ||
7660 | (eval echo "\"\$as_me:7660: $lt_compile\"" >&5) | ||
7661 | (eval "$lt_compile" 2>conftest.err) | ||
7662 | ac_status=$? | ||
7663 | cat conftest.err >&5 | ||
7664 | echo "$as_me:7664: \$? = $ac_status" >&5 | ||
7665 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7666 | # The compiler can only warn and ignore the option if not recognized | ||
7667 | # So say no if there are warnings other than the usual output. | ||
7668 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
7669 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7670 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
7671 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
7672 | fi | ||
7673 | fi | ||
7674 | $RM conftest* | ||
7675 | |||
7676 | fi | ||
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
7678 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
7679 | |||
7680 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
7681 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
7682 | else | ||
7683 | : | ||
7684 | fi | ||
7685 | |||
7686 | fi | ||
7687 | |||
7688 | |||
7689 | |||
7690 | |||
7691 | |||
7692 | |||
7693 | lt_prog_compiler_wl= | ||
7694 | lt_prog_compiler_pic= | ||
7695 | lt_prog_compiler_static= | ||
7696 | |||
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
7698 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
7699 | |||
7700 | if test "$GCC" = yes; then | ||
7701 | lt_prog_compiler_wl='-Wl,' | ||
7702 | lt_prog_compiler_static='-static' | ||
7703 | |||
7704 | case $host_os in | ||
7705 | aix*) | ||
7706 | # All AIX code is PIC. | ||
7707 | if test "$host_cpu" = ia64; then | ||
7708 | # AIX 5 now supports IA64 processor | ||
7709 | lt_prog_compiler_static='-Bstatic' | ||
7710 | fi | ||
7711 | ;; | ||
7712 | |||
7713 | amigaos*) | ||
7714 | case $host_cpu in | ||
7715 | powerpc) | ||
7716 | # see comment about AmigaOS4 .so support | ||
7717 | lt_prog_compiler_pic='-fPIC' | ||
7718 | ;; | ||
7719 | m68k) | ||
7720 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
7721 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
7722 | # like `-m68040'. | ||
7723 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
7724 | ;; | ||
7725 | esac | ||
7726 | ;; | ||
7727 | |||
7728 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
7729 | # PIC is the default for these OSes. | ||
7730 | ;; | ||
7731 | |||
7732 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
7733 | # This hack is so that the source file can tell whether it is being | ||
7734 | # built for inclusion in a dll (and should export symbols for example). | ||
7735 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
7736 | # (--disable-auto-import) libraries | ||
7737 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7738 | ;; | ||
7739 | |||
7740 | darwin* | rhapsody*) | ||
7741 | # PIC is the default on this platform | ||
7742 | # Common symbols not allowed in MH_DYLIB files | ||
7743 | lt_prog_compiler_pic='-fno-common' | ||
7744 | ;; | ||
7745 | |||
7746 | hpux*) | ||
7747 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
7748 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
7749 | # sets the default TLS model and affects inlining. | ||
7750 | case $host_cpu in | ||
7751 | hppa*64*) | ||
7752 | # +Z the default | ||
7753 | ;; | ||
7754 | *) | ||
7755 | lt_prog_compiler_pic='-fPIC' | ||
7756 | ;; | ||
7757 | esac | ||
7758 | ;; | ||
7759 | |||
7760 | interix[3-9]*) | ||
7761 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
7762 | # Instead, we relocate shared libraries at runtime. | ||
7763 | ;; | ||
7764 | |||
7765 | msdosdjgpp*) | ||
7766 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
7767 | # on systems that don't support them. | ||
7768 | lt_prog_compiler_can_build_shared=no | ||
7769 | enable_shared=no | ||
7770 | ;; | ||
7771 | |||
7772 | *nto* | *qnx*) | ||
7773 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
7774 | # it will coredump. | ||
7775 | lt_prog_compiler_pic='-fPIC -shared' | ||
7776 | ;; | ||
7777 | |||
7778 | sysv4*MP*) | ||
7779 | if test -d /usr/nec; then | ||
7780 | lt_prog_compiler_pic=-Kconform_pic | ||
7781 | fi | ||
7782 | ;; | ||
7783 | |||
7784 | *) | ||
7785 | lt_prog_compiler_pic='-fPIC' | ||
7786 | ;; | ||
7787 | esac | ||
7788 | else | ||
7789 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
7790 | case $host_os in | ||
7791 | aix*) | ||
7792 | lt_prog_compiler_wl='-Wl,' | ||
7793 | if test "$host_cpu" = ia64; then | ||
7794 | # AIX 5 now supports IA64 processor | ||
7795 | lt_prog_compiler_static='-Bstatic' | ||
7796 | else | ||
7797 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
7798 | fi | ||
7799 | ;; | ||
7800 | |||
7801 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
7802 | # This hack is so that the source file can tell whether it is being | ||
7803 | # built for inclusion in a dll (and should export symbols for example). | ||
7804 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7805 | ;; | ||
7806 | |||
7807 | hpux9* | hpux10* | hpux11*) | ||
7808 | lt_prog_compiler_wl='-Wl,' | ||
7809 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
7810 | # not for PA HP-UX. | ||
7811 | case $host_cpu in | ||
7812 | hppa*64*|ia64*) | ||
7813 | # +Z the default | ||
7814 | ;; | ||
7815 | *) | ||
7816 | lt_prog_compiler_pic='+Z' | ||
7817 | ;; | ||
7818 | esac | ||
7819 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
7820 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
7821 | ;; | ||
7822 | |||
7823 | irix5* | irix6* | nonstopux*) | ||
7824 | lt_prog_compiler_wl='-Wl,' | ||
7825 | # PIC (with -KPIC) is the default. | ||
7826 | lt_prog_compiler_static='-non_shared' | ||
7827 | ;; | ||
7828 | |||
7829 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
7830 | case $cc_basename in | ||
7831 | # old Intel for x86_64 which still supported -KPIC. | ||
7832 | ecc*) | ||
7833 | lt_prog_compiler_wl='-Wl,' | ||
7834 | lt_prog_compiler_pic='-KPIC' | ||
7835 | lt_prog_compiler_static='-static' | ||
7836 | ;; | ||
7837 | # icc used to be incompatible with GCC. | ||
7838 | # ICC 10 doesn't accept -KPIC any more. | ||
7839 | icc* | ifort*) | ||
7840 | lt_prog_compiler_wl='-Wl,' | ||
7841 | lt_prog_compiler_pic='-fPIC' | ||
7842 | lt_prog_compiler_static='-static' | ||
7843 | ;; | ||
7844 | # Lahey Fortran 8.1. | ||
7845 | lf95*) | ||
7846 | lt_prog_compiler_wl='-Wl,' | ||
7847 | lt_prog_compiler_pic='--shared' | ||
7848 | lt_prog_compiler_static='--static' | ||
7849 | ;; | ||
7850 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
7851 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
7852 | # which looks to be a dead project) | ||
7853 | lt_prog_compiler_wl='-Wl,' | ||
7854 | lt_prog_compiler_pic='-fpic' | ||
7855 | lt_prog_compiler_static='-Bstatic' | ||
7856 | ;; | ||
7857 | ccc*) | ||
7858 | lt_prog_compiler_wl='-Wl,' | ||
7859 | # All Alpha code is PIC. | ||
7860 | lt_prog_compiler_static='-non_shared' | ||
7861 | ;; | ||
7862 | xl*) | ||
7863 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
7864 | lt_prog_compiler_wl='-Wl,' | ||
7865 | lt_prog_compiler_pic='-qpic' | ||
7866 | lt_prog_compiler_static='-qstaticlink' | ||
7867 | ;; | ||
7868 | *) | ||
7869 | case `$CC -V 2>&1 | sed 5q` in | ||
7870 | *Sun\ C*) | ||
7871 | # Sun C 5.9 | ||
7872 | lt_prog_compiler_pic='-KPIC' | ||
7873 | lt_prog_compiler_static='-Bstatic' | ||
7874 | lt_prog_compiler_wl='-Wl,' | ||
7875 | ;; | ||
7876 | *Sun\ F*) | ||
7877 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
7878 | lt_prog_compiler_pic='-KPIC' | ||
7879 | lt_prog_compiler_static='-Bstatic' | ||
7880 | lt_prog_compiler_wl='' | ||
7881 | ;; | ||
7882 | esac | ||
7883 | ;; | ||
7884 | esac | ||
7885 | ;; | ||
7886 | |||
7887 | newsos6) | ||
7888 | lt_prog_compiler_pic='-KPIC' | ||
7889 | lt_prog_compiler_static='-Bstatic' | ||
7890 | ;; | ||
7891 | |||
7892 | *nto* | *qnx*) | ||
7893 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
7894 | # it will coredump. | ||
7895 | lt_prog_compiler_pic='-fPIC -shared' | ||
7896 | ;; | ||
7897 | |||
7898 | osf3* | osf4* | osf5*) | ||
7899 | lt_prog_compiler_wl='-Wl,' | ||
7900 | # All OSF/1 code is PIC. | ||
7901 | lt_prog_compiler_static='-non_shared' | ||
7902 | ;; | ||
7903 | |||
7904 | rdos*) | ||
7905 | lt_prog_compiler_static='-non_shared' | ||
7906 | ;; | ||
7907 | |||
7908 | solaris*) | ||
7909 | lt_prog_compiler_pic='-KPIC' | ||
7910 | lt_prog_compiler_static='-Bstatic' | ||
7911 | case $cc_basename in | ||
7912 | f77* | f90* | f95*) | ||
7913 | lt_prog_compiler_wl='-Qoption ld ';; | ||
7914 | *) | ||
7915 | lt_prog_compiler_wl='-Wl,';; | ||
7916 | esac | ||
7917 | ;; | ||
7918 | |||
7919 | sunos4*) | ||
7920 | lt_prog_compiler_wl='-Qoption ld ' | ||
7921 | lt_prog_compiler_pic='-PIC' | ||
7922 | lt_prog_compiler_static='-Bstatic' | ||
7923 | ;; | ||
7924 | |||
7925 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
7926 | lt_prog_compiler_wl='-Wl,' | ||
7927 | lt_prog_compiler_pic='-KPIC' | ||
7928 | lt_prog_compiler_static='-Bstatic' | ||
7929 | ;; | ||
7930 | |||
7931 | sysv4*MP*) | ||
7932 | if test -d /usr/nec ;then | ||
7933 | lt_prog_compiler_pic='-Kconform_pic' | ||
7934 | lt_prog_compiler_static='-Bstatic' | ||
7935 | fi | ||
7936 | ;; | ||
7937 | |||
7938 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
7939 | lt_prog_compiler_wl='-Wl,' | ||
7940 | lt_prog_compiler_pic='-KPIC' | ||
7941 | lt_prog_compiler_static='-Bstatic' | ||
7942 | ;; | ||
7943 | |||
7944 | unicos*) | ||
7945 | lt_prog_compiler_wl='-Wl,' | ||
7946 | lt_prog_compiler_can_build_shared=no | ||
7947 | ;; | ||
7948 | |||
7949 | uts4*) | ||
7950 | lt_prog_compiler_pic='-pic' | ||
7951 | lt_prog_compiler_static='-Bstatic' | ||
7952 | ;; | ||
7953 | |||
7954 | *) | ||
7955 | lt_prog_compiler_can_build_shared=no | ||
7956 | ;; | ||
7957 | esac | ||
7958 | fi | ||
7959 | |||
7960 | case $host_os in | ||
7961 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
7962 | *djgpp*) | ||
7963 | lt_prog_compiler_pic= | ||
7964 | ;; | ||
7965 | *) | ||
7966 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
7967 | ;; | ||
7968 | esac | ||
7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
7970 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
7971 | |||
7972 | |||
7973 | |||
7974 | |||
7975 | |||
7976 | |||
7977 | # | ||
7978 | # Check to make sure the PIC flag actually works. | ||
7979 | # | ||
7980 | if test -n "$lt_prog_compiler_pic"; then | ||
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
7982 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
7983 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
7984 | $as_echo_n "(cached) " >&6 | ||
7985 | else | ||
7986 | lt_cv_prog_compiler_pic_works=no | ||
7987 | ac_outfile=conftest.$ac_objext | ||
7988 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7989 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
7990 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7991 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7992 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7993 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7994 | # The option is referenced via a variable to avoid confusing sed. | ||
7995 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7996 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
7997 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7998 | -e 's:$: $lt_compiler_flag:'` | ||
7999 | (eval echo "\"\$as_me:7999: $lt_compile\"" >&5) | ||
8000 | (eval "$lt_compile" 2>conftest.err) | ||
8001 | ac_status=$? | ||
8002 | cat conftest.err >&5 | ||
8003 | echo "$as_me:8003: \$? = $ac_status" >&5 | ||
8004 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8005 | # The compiler can only warn and ignore the option if not recognized | ||
8006 | # So say no if there are warnings other than the usual output. | ||
8007 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8008 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8009 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8010 | lt_cv_prog_compiler_pic_works=yes | ||
8011 | fi | ||
8012 | fi | ||
8013 | $RM conftest* | ||
8014 | |||
8015 | fi | ||
8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
8017 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
8018 | |||
8019 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
8020 | case $lt_prog_compiler_pic in | ||
8021 | "" | " "*) ;; | ||
8022 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
8023 | esac | ||
8024 | else | ||
8025 | lt_prog_compiler_pic= | ||
8026 | lt_prog_compiler_can_build_shared=no | ||
8027 | fi | ||
8028 | |||
8029 | fi | ||
8030 | |||
8031 | |||
8032 | |||
8033 | |||
8034 | |||
8035 | |||
8036 | # | ||
8037 | # Check to make sure the static flag actually works. | ||
8038 | # | ||
8039 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
8041 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
8042 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
8043 | $as_echo_n "(cached) " >&6 | ||
8044 | else | ||
8045 | lt_cv_prog_compiler_static_works=no | ||
8046 | save_LDFLAGS="$LDFLAGS" | ||
8047 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
8048 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
8049 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
8050 | # The linker can only warn and ignore the option if not recognized | ||
8051 | # So say no if there are warnings | ||
8052 | if test -s conftest.err; then | ||
8053 | # Append any errors to the config.log. | ||
8054 | cat conftest.err 1>&5 | ||
8055 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
8056 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8057 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
8058 | lt_cv_prog_compiler_static_works=yes | ||
8059 | fi | ||
8060 | else | ||
8061 | lt_cv_prog_compiler_static_works=yes | ||
8062 | fi | ||
8063 | fi | ||
8064 | $RM -r conftest* | ||
8065 | LDFLAGS="$save_LDFLAGS" | ||
8066 | |||
8067 | fi | ||
8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
8069 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
8070 | |||
8071 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
8072 | : | ||
8073 | else | ||
8074 | lt_prog_compiler_static= | ||
8075 | fi | ||
8076 | |||
8077 | |||
8078 | |||
8079 | |||
8080 | |||
8081 | |||
8082 | |||
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8084 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8085 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8086 | $as_echo_n "(cached) " >&6 | ||
8087 | else | ||
8088 | lt_cv_prog_compiler_c_o=no | ||
8089 | $RM -r conftest 2>/dev/null | ||
8090 | mkdir conftest | ||
8091 | cd conftest | ||
8092 | mkdir out | ||
8093 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8094 | |||
8095 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8096 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8097 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8098 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8099 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8100 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8101 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8102 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8103 | -e 's:$: $lt_compiler_flag:'` | ||
8104 | (eval echo "\"\$as_me:8104: $lt_compile\"" >&5) | ||
8105 | (eval "$lt_compile" 2>out/conftest.err) | ||
8106 | ac_status=$? | ||
8107 | cat out/conftest.err >&5 | ||
8108 | echo "$as_me:8108: \$? = $ac_status" >&5 | ||
8109 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8110 | then | ||
8111 | # The compiler can only warn and ignore the option if not recognized | ||
8112 | # So say no if there are warnings | ||
8113 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8114 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8115 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8116 | lt_cv_prog_compiler_c_o=yes | ||
8117 | fi | ||
8118 | fi | ||
8119 | chmod u+w . 2>&5 | ||
8120 | $RM conftest* | ||
8121 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8122 | # template instantiation | ||
8123 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8124 | $RM out/* && rmdir out | ||
8125 | cd .. | ||
8126 | $RM -r conftest | ||
8127 | $RM conftest* | ||
8128 | |||
8129 | fi | ||
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8131 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8132 | |||
8133 | |||
8134 | |||
8135 | |||
8136 | |||
8137 | |||
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8139 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8140 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8141 | $as_echo_n "(cached) " >&6 | ||
8142 | else | ||
8143 | lt_cv_prog_compiler_c_o=no | ||
8144 | $RM -r conftest 2>/dev/null | ||
8145 | mkdir conftest | ||
8146 | cd conftest | ||
8147 | mkdir out | ||
8148 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8149 | |||
8150 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8151 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8152 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8153 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8154 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8155 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8156 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8157 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8158 | -e 's:$: $lt_compiler_flag:'` | ||
8159 | (eval echo "\"\$as_me:8159: $lt_compile\"" >&5) | ||
8160 | (eval "$lt_compile" 2>out/conftest.err) | ||
8161 | ac_status=$? | ||
8162 | cat out/conftest.err >&5 | ||
8163 | echo "$as_me:8163: \$? = $ac_status" >&5 | ||
8164 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8165 | then | ||
8166 | # The compiler can only warn and ignore the option if not recognized | ||
8167 | # So say no if there are warnings | ||
8168 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8169 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8170 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8171 | lt_cv_prog_compiler_c_o=yes | ||
8172 | fi | ||
8173 | fi | ||
8174 | chmod u+w . 2>&5 | ||
8175 | $RM conftest* | ||
8176 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8177 | # template instantiation | ||
8178 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8179 | $RM out/* && rmdir out | ||
8180 | cd .. | ||
8181 | $RM -r conftest | ||
8182 | $RM conftest* | ||
8183 | |||
8184 | fi | ||
8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8186 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8187 | |||
8188 | |||
8189 | |||
8190 | |||
8191 | hard_links="nottested" | ||
8192 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
8193 | # do not overwrite the value of need_locks provided by the user | ||
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
8195 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
8196 | hard_links=yes | ||
8197 | $RM conftest* | ||
8198 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8199 | touch conftest.a | ||
8200 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
8201 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
8203 | $as_echo "$hard_links" >&6; } | ||
8204 | if test "$hard_links" = no; then | ||
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
8206 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
8207 | need_locks=warn | ||
8208 | fi | ||
8209 | else | ||
8210 | need_locks=no | ||
8211 | fi | ||
8212 | |||
8213 | |||
8214 | |||
8215 | |||
8216 | |||
8217 | |||
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
8219 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
8220 | |||
8221 | runpath_var= | ||
8222 | allow_undefined_flag= | ||
8223 | always_export_symbols=no | ||
8224 | archive_cmds= | ||
8225 | archive_expsym_cmds= | ||
8226 | compiler_needs_object=no | ||
8227 | enable_shared_with_static_runtimes=no | ||
8228 | export_dynamic_flag_spec= | ||
8229 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
8230 | hardcode_automatic=no | ||
8231 | hardcode_direct=no | ||
8232 | hardcode_direct_absolute=no | ||
8233 | hardcode_libdir_flag_spec= | ||
8234 | hardcode_libdir_flag_spec_ld= | ||
8235 | hardcode_libdir_separator= | ||
8236 | hardcode_minus_L=no | ||
8237 | hardcode_shlibpath_var=unsupported | ||
8238 | inherit_rpath=no | ||
8239 | link_all_deplibs=unknown | ||
8240 | module_cmds= | ||
8241 | module_expsym_cmds= | ||
8242 | old_archive_from_new_cmds= | ||
8243 | old_archive_from_expsyms_cmds= | ||
8244 | thread_safe_flag_spec= | ||
8245 | whole_archive_flag_spec= | ||
8246 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
8247 | # included in the symbol list | ||
8248 | include_expsyms= | ||
8249 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
8250 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
8251 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
8252 | # as well as any symbol that contains `d'. | ||
8253 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
8254 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
8255 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
8256 | # the symbol is explicitly referenced. Since portable code cannot | ||
8257 | # rely on this symbol name, it's probably fine to never include it in | ||
8258 | # preloaded symbol tables. | ||
8259 | # Exclude shared library initialization/finalization symbols. | ||
8260 | extract_expsyms_cmds= | ||
8261 | |||
8262 | case $host_os in | ||
8263 | cygwin* | mingw* | pw32* | cegcc*) | ||
8264 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
8265 | # When not using gcc, we currently assume that we are using | ||
8266 | # Microsoft Visual C++. | ||
8267 | if test "$GCC" != yes; then | ||
8268 | with_gnu_ld=no | ||
8269 | fi | ||
8270 | ;; | ||
8271 | interix*) | ||
8272 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
8273 | with_gnu_ld=yes | ||
8274 | ;; | ||
8275 | openbsd*) | ||
8276 | with_gnu_ld=no | ||
8277 | ;; | ||
8278 | linux* | k*bsd*-gnu) | ||
8279 | link_all_deplibs=no | ||
8280 | ;; | ||
8281 | esac | ||
8282 | |||
8283 | ld_shlibs=yes | ||
8284 | if test "$with_gnu_ld" = yes; then | ||
8285 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
8286 | wlarc='${wl}' | ||
8287 | |||
8288 | # Set some defaults for GNU ld with shared library support. These | ||
8289 | # are reset later if shared libraries are not supported. Putting them | ||
8290 | # here allows them to be overridden if necessary. | ||
8291 | runpath_var=LD_RUN_PATH | ||
8292 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8293 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
8294 | # ancient GNU ld didn't support --whole-archive et. al. | ||
8295 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
8296 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
8297 | else | ||
8298 | whole_archive_flag_spec= | ||
8299 | fi | ||
8300 | supports_anon_versioning=no | ||
8301 | case `$LD -v 2>&1` in | ||
8302 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
8303 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
8304 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
8305 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
8306 | *\ 2.11.*) ;; # other 2.11 versions | ||
8307 | *) supports_anon_versioning=yes ;; | ||
8308 | esac | ||
8309 | |||
8310 | # See if GNU ld supports shared libraries. | ||
8311 | case $host_os in | ||
8312 | aix[3-9]*) | ||
8313 | # On AIX/PPC, the GNU linker is very broken | ||
8314 | if test "$host_cpu" != ia64; then | ||
8315 | ld_shlibs=no | ||
8316 | cat <<_LT_EOF 1>&2 | ||
8317 | |||
8318 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
8319 | *** to be unable to reliably create shared libraries on AIX. | ||
8320 | *** Therefore, libtool is disabling shared libraries support. If you | ||
8321 | *** really care for shared libraries, you may want to modify your PATH | ||
8322 | *** so that a non-GNU linker is found, and then restart. | ||
8323 | |||
8324 | _LT_EOF | ||
8325 | fi | ||
8326 | ;; | ||
8327 | |||
8328 | amigaos*) | ||
8329 | case $host_cpu in | ||
8330 | powerpc) | ||
8331 | # see comment about AmigaOS4 .so support | ||
8332 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8333 | archive_expsym_cmds='' | ||
8334 | ;; | ||
8335 | m68k) | ||
8336 | 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)' | ||
8337 | hardcode_libdir_flag_spec='-L$libdir' | ||
8338 | hardcode_minus_L=yes | ||
8339 | ;; | ||
8340 | esac | ||
8341 | ;; | ||
8342 | |||
8343 | beos*) | ||
8344 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8345 | allow_undefined_flag=unsupported | ||
8346 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
8347 | # support --undefined. This deserves some investigation. FIXME | ||
8348 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8349 | else | ||
8350 | ld_shlibs=no | ||
8351 | fi | ||
8352 | ;; | ||
8353 | |||
8354 | cygwin* | mingw* | pw32* | cegcc*) | ||
8355 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
8356 | # as there is no search path for DLLs. | ||
8357 | hardcode_libdir_flag_spec='-L$libdir' | ||
8358 | allow_undefined_flag=unsupported | ||
8359 | always_export_symbols=no | ||
8360 | enable_shared_with_static_runtimes=yes | ||
8361 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
8362 | |||
8363 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
8364 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8365 | # If the export-symbols file already is a .def file (1st line | ||
8366 | # is EXPORTS), use it as is; otherwise, prepend... | ||
8367 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8368 | cp $export_symbols $output_objdir/$soname.def; | ||
8369 | else | ||
8370 | echo EXPORTS > $output_objdir/$soname.def; | ||
8371 | cat $export_symbols >> $output_objdir/$soname.def; | ||
8372 | fi~ | ||
8373 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
8374 | else | ||
8375 | ld_shlibs=no | ||
8376 | fi | ||
8377 | ;; | ||
8378 | |||
8379 | interix[3-9]*) | ||
8380 | hardcode_direct=no | ||
8381 | hardcode_shlibpath_var=no | ||
8382 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8383 | export_dynamic_flag_spec='${wl}-E' | ||
8384 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
8385 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
8386 | # default) and relocated if they conflict, which is a slow very memory | ||
8387 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
8388 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
8389 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
8390 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
8391 | 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' | ||
8392 | ;; | ||
8393 | |||
8394 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
8395 | tmp_diet=no | ||
8396 | if test "$host_os" = linux-dietlibc; then | ||
8397 | case $cc_basename in | ||
8398 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
8399 | esac | ||
8400 | fi | ||
8401 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
8402 | && test "$tmp_diet" = no | ||
8403 | then | ||
8404 | tmp_addflag= | ||
8405 | tmp_sharedflag='-shared' | ||
8406 | case $cc_basename,$host_cpu in | ||
8407 | pgcc*) # Portland Group C compiler | ||
8408 | 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' | ||
8409 | tmp_addflag=' $pic_flag' | ||
8410 | ;; | ||
8411 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
8412 | 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' | ||
8413 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
8414 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
8415 | tmp_addflag=' -i_dynamic' ;; | ||
8416 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
8417 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
8418 | ifc* | ifort*) # Intel Fortran compiler | ||
8419 | tmp_addflag=' -nofor_main' ;; | ||
8420 | lf95*) # Lahey Fortran 8.1 | ||
8421 | whole_archive_flag_spec= | ||
8422 | tmp_sharedflag='--shared' ;; | ||
8423 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
8424 | tmp_sharedflag='-qmkshrobj' | ||
8425 | tmp_addflag= ;; | ||
8426 | esac | ||
8427 | case `$CC -V 2>&1 | sed 5q` in | ||
8428 | *Sun\ C*) # Sun C 5.9 | ||
8429 | 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' | ||
8430 | compiler_needs_object=yes | ||
8431 | tmp_sharedflag='-G' ;; | ||
8432 | *Sun\ F*) # Sun Fortran 8.3 | ||
8433 | tmp_sharedflag='-G' ;; | ||
8434 | esac | ||
8435 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8436 | |||
8437 | if test "x$supports_anon_versioning" = xyes; then | ||
8438 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8439 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8440 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8441 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
8442 | fi | ||
8443 | |||
8444 | case $cc_basename in | ||
8445 | xlf*) | ||
8446 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
8447 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
8448 | hardcode_libdir_flag_spec= | ||
8449 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
8450 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
8451 | if test "x$supports_anon_versioning" = xyes; then | ||
8452 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
8453 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8454 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8455 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
8456 | fi | ||
8457 | ;; | ||
8458 | esac | ||
8459 | else | ||
8460 | ld_shlibs=no | ||
8461 | fi | ||
8462 | ;; | ||
8463 | |||
8464 | netbsd* | netbsdelf*-gnu) | ||
8465 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
8466 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
8467 | wlarc= | ||
8468 | else | ||
8469 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8470 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8471 | fi | ||
8472 | ;; | ||
8473 | |||
8474 | solaris*) | ||
8475 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
8476 | ld_shlibs=no | ||
8477 | cat <<_LT_EOF 1>&2 | ||
8478 | |||
8479 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
8480 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
8481 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8482 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
8483 | *** your PATH or compiler configuration so that the native linker is | ||
8484 | *** used, and then restart. | ||
8485 | |||
8486 | _LT_EOF | ||
8487 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8488 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8489 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8490 | else | ||
8491 | ld_shlibs=no | ||
8492 | fi | ||
8493 | ;; | ||
8494 | |||
8495 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
8496 | case `$LD -v 2>&1` in | ||
8497 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
8498 | ld_shlibs=no | ||
8499 | cat <<_LT_EOF 1>&2 | ||
8500 | |||
8501 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
8502 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
8503 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8504 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
8505 | *** your PATH or compiler configuration so that the native linker is | ||
8506 | *** used, and then restart. | ||
8507 | |||
8508 | _LT_EOF | ||
8509 | ;; | ||
8510 | *) | ||
8511 | # For security reasons, it is highly recommended that you always | ||
8512 | # use absolute paths for naming shared libraries, and exclude the | ||
8513 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
8514 | # requires that you compile everything twice, which is a pain. | ||
8515 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8516 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8517 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8518 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8519 | else | ||
8520 | ld_shlibs=no | ||
8521 | fi | ||
8522 | ;; | ||
8523 | esac | ||
8524 | ;; | ||
8525 | |||
8526 | sunos4*) | ||
8527 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8528 | wlarc= | ||
8529 | hardcode_direct=yes | ||
8530 | hardcode_shlibpath_var=no | ||
8531 | ;; | ||
8532 | |||
8533 | *) | ||
8534 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8535 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8536 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8537 | else | ||
8538 | ld_shlibs=no | ||
8539 | fi | ||
8540 | ;; | ||
8541 | esac | ||
8542 | |||
8543 | if test "$ld_shlibs" = no; then | ||
8544 | runpath_var= | ||
8545 | hardcode_libdir_flag_spec= | ||
8546 | export_dynamic_flag_spec= | ||
8547 | whole_archive_flag_spec= | ||
8548 | fi | ||
8549 | else | ||
8550 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
8551 | case $host_os in | ||
8552 | aix3*) | ||
8553 | allow_undefined_flag=unsupported | ||
8554 | always_export_symbols=yes | ||
8555 | 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' | ||
8556 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
8557 | # are no directories specified by -L. | ||
8558 | hardcode_minus_L=yes | ||
8559 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
8560 | # Neither direct hardcoding nor static linking is supported with a | ||
8561 | # broken collect2. | ||
8562 | hardcode_direct=unsupported | ||
8563 | fi | ||
8564 | ;; | ||
8565 | |||
8566 | aix[4-9]*) | ||
8567 | if test "$host_cpu" = ia64; then | ||
8568 | # On IA64, the linker does run time linking by default, so we don't | ||
8569 | # have to do anything special. | ||
8570 | aix_use_runtimelinking=no | ||
8571 | exp_sym_flag='-Bexport' | ||
8572 | no_entry_flag="" | ||
8573 | else | ||
8574 | # If we're using GNU nm, then we don't want the "-C" option. | ||
8575 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
8576 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
8577 | 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' | ||
8578 | else | ||
8579 | 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' | ||
8580 | fi | ||
8581 | aix_use_runtimelinking=no | ||
8582 | |||
8583 | # Test if we are trying to use run time linking or normal | ||
8584 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
8585 | # need to do runtime linking. | ||
8586 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
8587 | for ld_flag in $LDFLAGS; do | ||
8588 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
8589 | aix_use_runtimelinking=yes | ||
8590 | break | ||
8591 | fi | ||
8592 | done | ||
8593 | ;; | ||
8594 | esac | ||
8595 | |||
8596 | exp_sym_flag='-bexport' | ||
8597 | no_entry_flag='-bnoentry' | ||
8598 | fi | ||
8599 | |||
8600 | # When large executables or shared objects are built, AIX ld can | ||
8601 | # have problems creating the table of contents. If linking a library | ||
8602 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
8603 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
8604 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
8605 | |||
8606 | archive_cmds='' | ||
8607 | hardcode_direct=yes | ||
8608 | hardcode_direct_absolute=yes | ||
8609 | hardcode_libdir_separator=':' | ||
8610 | link_all_deplibs=yes | ||
8611 | file_list_spec='${wl}-f,' | ||
8612 | |||
8613 | if test "$GCC" = yes; then | ||
8614 | case $host_os in aix4.[012]|aix4.[012].*) | ||
8615 | # We only want to do this on AIX 4.2 and lower, the check | ||
8616 | # below for broken collect2 doesn't work under 4.3+ | ||
8617 | collect2name=`${CC} -print-prog-name=collect2` | ||
8618 | if test -f "$collect2name" && | ||
8619 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
8620 | then | ||
8621 | # We have reworked collect2 | ||
8622 | : | ||
8623 | else | ||
8624 | # We have old collect2 | ||
8625 | hardcode_direct=unsupported | ||
8626 | # It fails to find uninstalled libraries when the uninstalled | ||
8627 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
8628 | # to unsupported forces relinking | ||
8629 | hardcode_minus_L=yes | ||
8630 | hardcode_libdir_flag_spec='-L$libdir' | ||
8631 | hardcode_libdir_separator= | ||
8632 | fi | ||
8633 | ;; | ||
8634 | esac | ||
8635 | shared_flag='-shared' | ||
8636 | if test "$aix_use_runtimelinking" = yes; then | ||
8637 | shared_flag="$shared_flag "'${wl}-G' | ||
8638 | fi | ||
8639 | link_all_deplibs=no | ||
8640 | else | ||
8641 | # not using gcc | ||
8642 | if test "$host_cpu" = ia64; then | ||
8643 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
8644 | # chokes on -Wl,-G. The following line is correct: | ||
8645 | shared_flag='-G' | ||
8646 | else | ||
8647 | if test "$aix_use_runtimelinking" = yes; then | ||
8648 | shared_flag='${wl}-G' | ||
8649 | else | ||
8650 | shared_flag='${wl}-bM:SRE' | ||
8651 | fi | ||
8652 | fi | ||
8653 | fi | ||
8654 | |||
8655 | export_dynamic_flag_spec='${wl}-bexpall' | ||
8656 | # It seems that -bexpall does not export symbols beginning with | ||
8657 | # underscore (_), so it is better to generate a list of symbols to export. | ||
8658 | always_export_symbols=yes | ||
8659 | if test "$aix_use_runtimelinking" = yes; then | ||
8660 | # Warning - without using the other runtime loading flags (-brtl), | ||
8661 | # -berok will link without error, but may produce a broken library. | ||
8662 | allow_undefined_flag='-berok' | ||
8663 | # Determine the default libpath from the value encoded in an | ||
8664 | # empty executable. | ||
8665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8666 | /* end confdefs.h. */ | ||
8667 | |||
8668 | int | ||
8669 | main () | ||
8670 | { | ||
8671 | |||
8672 | ; | ||
8673 | return 0; | ||
8674 | } | ||
8675 | _ACEOF | ||
8676 | if ac_fn_c_try_link "$LINENO"; then : | ||
8677 | |||
8678 | lt_aix_libpath_sed=' | ||
8679 | /Import File Strings/,/^$/ { | ||
8680 | /^0/ { | ||
8681 | s/^0 *\(.*\)$/\1/ | ||
8682 | p | ||
8683 | } | ||
8684 | }' | ||
8685 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8686 | # Check for a 64-bit object if we didn't find anything. | ||
8687 | if test -z "$aix_libpath"; then | ||
8688 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8689 | fi | ||
8690 | fi | ||
8691 | rm -f core conftest.err conftest.$ac_objext \ | ||
8692 | conftest$ac_exeext conftest.$ac_ext | ||
8693 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8694 | |||
8695 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8696 | 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" | ||
8697 | else | ||
8698 | if test "$host_cpu" = ia64; then | ||
8699 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
8700 | allow_undefined_flag="-z nodefs" | ||
8701 | 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" | ||
8702 | else | ||
8703 | # Determine the default libpath from the value encoded in an | ||
8704 | # empty executable. | ||
8705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8706 | /* end confdefs.h. */ | ||
8707 | |||
8708 | int | ||
8709 | main () | ||
8710 | { | ||
8711 | |||
8712 | ; | ||
8713 | return 0; | ||
8714 | } | ||
8715 | _ACEOF | ||
8716 | if ac_fn_c_try_link "$LINENO"; then : | ||
8717 | |||
8718 | lt_aix_libpath_sed=' | ||
8719 | /Import File Strings/,/^$/ { | ||
8720 | /^0/ { | ||
8721 | s/^0 *\(.*\)$/\1/ | ||
8722 | p | ||
8723 | } | ||
8724 | }' | ||
8725 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8726 | # Check for a 64-bit object if we didn't find anything. | ||
8727 | if test -z "$aix_libpath"; then | ||
8728 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
8729 | fi | ||
8730 | fi | ||
8731 | rm -f core conftest.err conftest.$ac_objext \ | ||
8732 | conftest$ac_exeext conftest.$ac_ext | ||
8733 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8734 | |||
8735 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8736 | # Warning - without using the other run time loading flags, | ||
8737 | # -berok will link without error, but may produce a broken library. | ||
8738 | no_undefined_flag=' ${wl}-bernotok' | ||
8739 | allow_undefined_flag=' ${wl}-berok' | ||
8740 | # Exported symbols can be pulled into shared objects from archives | ||
8741 | whole_archive_flag_spec='$convenience' | ||
8742 | archive_cmds_need_lc=yes | ||
8743 | # This is similar to how AIX traditionally builds its shared libraries. | ||
8744 | 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' | ||
8745 | fi | ||
8746 | fi | ||
8747 | ;; | ||
8748 | |||
8749 | amigaos*) | ||
8750 | case $host_cpu in | ||
8751 | powerpc) | ||
8752 | # see comment about AmigaOS4 .so support | ||
8753 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8754 | archive_expsym_cmds='' | ||
8755 | ;; | ||
8756 | m68k) | ||
8757 | 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)' | ||
8758 | hardcode_libdir_flag_spec='-L$libdir' | ||
8759 | hardcode_minus_L=yes | ||
8760 | ;; | ||
8761 | esac | ||
8762 | ;; | ||
8763 | |||
8764 | bsdi[45]*) | ||
8765 | export_dynamic_flag_spec=-rdynamic | ||
8766 | ;; | ||
8767 | |||
8768 | cygwin* | mingw* | pw32* | cegcc*) | ||
8769 | # When not using gcc, we currently assume that we are using | ||
8770 | # Microsoft Visual C++. | ||
8771 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8772 | # no search path for DLLs. | ||
8773 | hardcode_libdir_flag_spec=' ' | ||
8774 | allow_undefined_flag=unsupported | ||
8775 | # Tell ltmain to make .lib files, not .a files. | ||
8776 | libext=lib | ||
8777 | # Tell ltmain to make .dll files, not .so files. | ||
8778 | shrext_cmds=".dll" | ||
8779 | # FIXME: Setting linknames here is a bad hack. | ||
8780 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8781 | # The linker will automatically build a .lib file if we build a DLL. | ||
8782 | old_archive_from_new_cmds='true' | ||
8783 | # FIXME: Should let the user specify the lib program. | ||
8784 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
8785 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
8786 | enable_shared_with_static_runtimes=yes | ||
8787 | ;; | ||
8788 | |||
8789 | darwin* | rhapsody*) | ||
8790 | |||
8791 | |||
8792 | archive_cmds_need_lc=no | ||
8793 | hardcode_direct=no | ||
8794 | hardcode_automatic=yes | ||
8795 | hardcode_shlibpath_var=unsupported | ||
8796 | whole_archive_flag_spec='' | ||
8797 | link_all_deplibs=yes | ||
8798 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
8799 | case $cc_basename in | ||
8800 | ifort*) _lt_dar_can_shared=yes ;; | ||
8801 | *) _lt_dar_can_shared=$GCC ;; | ||
8802 | esac | ||
8803 | if test "$_lt_dar_can_shared" = "yes"; then | ||
8804 | output_verbose_link_cmd=echo | ||
8805 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
8806 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
8807 | 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}" | ||
8808 | 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}" | ||
8809 | |||
8810 | else | ||
8811 | ld_shlibs=no | ||
8812 | fi | ||
8813 | |||
8814 | ;; | ||
8815 | |||
8816 | dgux*) | ||
8817 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8818 | hardcode_libdir_flag_spec='-L$libdir' | ||
8819 | hardcode_shlibpath_var=no | ||
8820 | ;; | ||
8821 | |||
8822 | freebsd1*) | ||
8823 | ld_shlibs=no | ||
8824 | ;; | ||
8825 | |||
8826 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
8827 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
8828 | # does not break anything, and helps significantly (at the cost of a little | ||
8829 | # extra space). | ||
8830 | freebsd2.2*) | ||
8831 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
8832 | hardcode_libdir_flag_spec='-R$libdir' | ||
8833 | hardcode_direct=yes | ||
8834 | hardcode_shlibpath_var=no | ||
8835 | ;; | ||
8836 | |||
8837 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
8838 | freebsd2*) | ||
8839 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8840 | hardcode_direct=yes | ||
8841 | hardcode_minus_L=yes | ||
8842 | hardcode_shlibpath_var=no | ||
8843 | ;; | ||
8844 | |||
8845 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
8846 | freebsd* | dragonfly*) | ||
8847 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
8848 | hardcode_libdir_flag_spec='-R$libdir' | ||
8849 | hardcode_direct=yes | ||
8850 | hardcode_shlibpath_var=no | ||
8851 | ;; | ||
8852 | |||
8853 | hpux9*) | ||
8854 | if test "$GCC" = yes; then | ||
8855 | 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' | ||
8856 | else | ||
8857 | 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' | ||
8858 | fi | ||
8859 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8860 | hardcode_libdir_separator=: | ||
8861 | hardcode_direct=yes | ||
8862 | |||
8863 | # hardcode_minus_L: Not really in the search PATH, | ||
8864 | # but as the default location of the library. | ||
8865 | hardcode_minus_L=yes | ||
8866 | export_dynamic_flag_spec='${wl}-E' | ||
8867 | ;; | ||
8868 | |||
8869 | hpux10*) | ||
8870 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8871 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8872 | else | ||
8873 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
8874 | fi | ||
8875 | if test "$with_gnu_ld" = no; then | ||
8876 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8877 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
8878 | hardcode_libdir_separator=: | ||
8879 | hardcode_direct=yes | ||
8880 | hardcode_direct_absolute=yes | ||
8881 | export_dynamic_flag_spec='${wl}-E' | ||
8882 | # hardcode_minus_L: Not really in the search PATH, | ||
8883 | # but as the default location of the library. | ||
8884 | hardcode_minus_L=yes | ||
8885 | fi | ||
8886 | ;; | ||
8887 | |||
8888 | hpux11*) | ||
8889 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8890 | case $host_cpu in | ||
8891 | hppa*64*) | ||
8892 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8893 | ;; | ||
8894 | ia64*) | ||
8895 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8896 | ;; | ||
8897 | *) | ||
8898 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8899 | ;; | ||
8900 | esac | ||
8901 | else | ||
8902 | case $host_cpu in | ||
8903 | hppa*64*) | ||
8904 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8905 | ;; | ||
8906 | ia64*) | ||
8907 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
8908 | ;; | ||
8909 | *) | ||
8910 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8911 | ;; | ||
8912 | esac | ||
8913 | fi | ||
8914 | if test "$with_gnu_ld" = no; then | ||
8915 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8916 | hardcode_libdir_separator=: | ||
8917 | |||
8918 | case $host_cpu in | ||
8919 | hppa*64*|ia64*) | ||
8920 | hardcode_direct=no | ||
8921 | hardcode_shlibpath_var=no | ||
8922 | ;; | ||
8923 | *) | ||
8924 | hardcode_direct=yes | ||
8925 | hardcode_direct_absolute=yes | ||
8926 | export_dynamic_flag_spec='${wl}-E' | ||
8927 | |||
8928 | # hardcode_minus_L: Not really in the search PATH, | ||
8929 | # but as the default location of the library. | ||
8930 | hardcode_minus_L=yes | ||
8931 | ;; | ||
8932 | esac | ||
8933 | fi | ||
8934 | ;; | ||
8935 | |||
8936 | irix5* | irix6* | nonstopux*) | ||
8937 | if test "$GCC" = yes; then | ||
8938 | 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' | ||
8939 | # Try to use the -exported_symbol ld option, if it does not | ||
8940 | # work, assume that -exports_file does not work either and | ||
8941 | # implicitly export all symbols. | ||
8942 | save_LDFLAGS="$LDFLAGS" | ||
8943 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
8944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8945 | /* end confdefs.h. */ | ||
8946 | int foo(void) {} | ||
8947 | _ACEOF | ||
8948 | if ac_fn_c_try_link "$LINENO"; then : | ||
8949 | 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' | ||
8950 | |||
8951 | fi | ||
8952 | rm -f core conftest.err conftest.$ac_objext \ | ||
8953 | conftest$ac_exeext conftest.$ac_ext | ||
8954 | LDFLAGS="$save_LDFLAGS" | ||
8955 | else | ||
8956 | 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' | ||
8957 | 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' | ||
8958 | fi | ||
8959 | archive_cmds_need_lc='no' | ||
8960 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8961 | hardcode_libdir_separator=: | ||
8962 | inherit_rpath=yes | ||
8963 | link_all_deplibs=yes | ||
8964 | ;; | ||
8965 | |||
8966 | netbsd* | netbsdelf*-gnu) | ||
8967 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
8968 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
8969 | else | ||
8970 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
8971 | fi | ||
8972 | hardcode_libdir_flag_spec='-R$libdir' | ||
8973 | hardcode_direct=yes | ||
8974 | hardcode_shlibpath_var=no | ||
8975 | ;; | ||
8976 | |||
8977 | newsos6) | ||
8978 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8979 | hardcode_direct=yes | ||
8980 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8981 | hardcode_libdir_separator=: | ||
8982 | hardcode_shlibpath_var=no | ||
8983 | ;; | ||
8984 | |||
8985 | *nto* | *qnx*) | ||
8986 | ;; | ||
8987 | |||
8988 | openbsd*) | ||
8989 | if test -f /usr/libexec/ld.so; then | ||
8990 | hardcode_direct=yes | ||
8991 | hardcode_shlibpath_var=no | ||
8992 | hardcode_direct_absolute=yes | ||
8993 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
8994 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
8995 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
8996 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8997 | export_dynamic_flag_spec='${wl}-E' | ||
8998 | else | ||
8999 | case $host_os in | ||
9000 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
9001 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9002 | hardcode_libdir_flag_spec='-R$libdir' | ||
9003 | ;; | ||
9004 | *) | ||
9005 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9006 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9007 | ;; | ||
9008 | esac | ||
9009 | fi | ||
9010 | else | ||
9011 | ld_shlibs=no | ||
9012 | fi | ||
9013 | ;; | ||
9014 | |||
9015 | os2*) | ||
9016 | hardcode_libdir_flag_spec='-L$libdir' | ||
9017 | hardcode_minus_L=yes | ||
9018 | allow_undefined_flag=unsupported | ||
9019 | 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' | ||
9020 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
9021 | ;; | ||
9022 | |||
9023 | osf3*) | ||
9024 | if test "$GCC" = yes; then | ||
9025 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9026 | 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' | ||
9027 | else | ||
9028 | allow_undefined_flag=' -expect_unresolved \*' | ||
9029 | 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' | ||
9030 | fi | ||
9031 | archive_cmds_need_lc='no' | ||
9032 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9033 | hardcode_libdir_separator=: | ||
9034 | ;; | ||
9035 | |||
9036 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
9037 | if test "$GCC" = yes; then | ||
9038 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9039 | 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' | ||
9040 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9041 | else | ||
9042 | allow_undefined_flag=' -expect_unresolved \*' | ||
9043 | 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' | ||
9044 | 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~ | ||
9045 | $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' | ||
9046 | |||
9047 | # Both c and cxx compiler support -rpath directly | ||
9048 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
9049 | fi | ||
9050 | archive_cmds_need_lc='no' | ||
9051 | hardcode_libdir_separator=: | ||
9052 | ;; | ||
9053 | |||
9054 | solaris*) | ||
9055 | no_undefined_flag=' -z defs' | ||
9056 | if test "$GCC" = yes; then | ||
9057 | wlarc='${wl}' | ||
9058 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9059 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9060 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9061 | else | ||
9062 | case `$CC -V 2>&1` in | ||
9063 | *"Compilers 5.0"*) | ||
9064 | wlarc='' | ||
9065 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9066 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9067 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
9068 | ;; | ||
9069 | *) | ||
9070 | wlarc='${wl}' | ||
9071 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9072 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9073 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9074 | ;; | ||
9075 | esac | ||
9076 | fi | ||
9077 | hardcode_libdir_flag_spec='-R$libdir' | ||
9078 | hardcode_shlibpath_var=no | ||
9079 | case $host_os in | ||
9080 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
9081 | *) | ||
9082 | # The compiler driver will combine and reorder linker options, | ||
9083 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
9084 | # but is careful enough not to reorder. | ||
9085 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
9086 | if test "$GCC" = yes; then | ||
9087 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
9088 | else | ||
9089 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
9090 | fi | ||
9091 | ;; | ||
9092 | esac | ||
9093 | link_all_deplibs=yes | ||
9094 | ;; | ||
9095 | |||
9096 | sunos4*) | ||
9097 | if test "x$host_vendor" = xsequent; then | ||
9098 | # Use $CC to link under sequent, because it throws in some extra .o | ||
9099 | # files that make .init and .fini sections work. | ||
9100 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9101 | else | ||
9102 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
9103 | fi | ||
9104 | hardcode_libdir_flag_spec='-L$libdir' | ||
9105 | hardcode_direct=yes | ||
9106 | hardcode_minus_L=yes | ||
9107 | hardcode_shlibpath_var=no | ||
9108 | ;; | ||
9109 | |||
9110 | sysv4) | ||
9111 | case $host_vendor in | ||
9112 | sni) | ||
9113 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9114 | hardcode_direct=yes # is this really true??? | ||
9115 | ;; | ||
9116 | siemens) | ||
9117 | ## LD is ld it makes a PLAMLIB | ||
9118 | ## CC just makes a GrossModule. | ||
9119 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
9120 | reload_cmds='$CC -r -o $output$reload_objs' | ||
9121 | hardcode_direct=no | ||
9122 | ;; | ||
9123 | motorola) | ||
9124 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9125 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
9126 | ;; | ||
9127 | esac | ||
9128 | runpath_var='LD_RUN_PATH' | ||
9129 | hardcode_shlibpath_var=no | ||
9130 | ;; | ||
9131 | |||
9132 | sysv4.3*) | ||
9133 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9134 | hardcode_shlibpath_var=no | ||
9135 | export_dynamic_flag_spec='-Bexport' | ||
9136 | ;; | ||
9137 | |||
9138 | sysv4*MP*) | ||
9139 | if test -d /usr/nec; then | ||
9140 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9141 | hardcode_shlibpath_var=no | ||
9142 | runpath_var=LD_RUN_PATH | ||
9143 | hardcode_runpath_var=yes | ||
9144 | ld_shlibs=yes | ||
9145 | fi | ||
9146 | ;; | ||
9147 | |||
9148 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
9149 | no_undefined_flag='${wl}-z,text' | ||
9150 | archive_cmds_need_lc=no | ||
9151 | hardcode_shlibpath_var=no | ||
9152 | runpath_var='LD_RUN_PATH' | ||
9153 | |||
9154 | if test "$GCC" = yes; then | ||
9155 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9156 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9157 | else | ||
9158 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9159 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9160 | fi | ||
9161 | ;; | ||
9162 | |||
9163 | sysv5* | sco3.2v5* | sco5v6*) | ||
9164 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
9165 | # link with -lc, and that would cause any symbols used from libc to | ||
9166 | # always be unresolved, which means just about no library would | ||
9167 | # ever link correctly. If we're not using GNU ld we use -z text | ||
9168 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
9169 | # as -z defs. | ||
9170 | no_undefined_flag='${wl}-z,text' | ||
9171 | allow_undefined_flag='${wl}-z,nodefs' | ||
9172 | archive_cmds_need_lc=no | ||
9173 | hardcode_shlibpath_var=no | ||
9174 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
9175 | hardcode_libdir_separator=':' | ||
9176 | link_all_deplibs=yes | ||
9177 | export_dynamic_flag_spec='${wl}-Bexport' | ||
9178 | runpath_var='LD_RUN_PATH' | ||
9179 | |||
9180 | if test "$GCC" = yes; then | ||
9181 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9182 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9183 | else | ||
9184 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9185 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9186 | fi | ||
9187 | ;; | ||
9188 | |||
9189 | uts4*) | ||
9190 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9191 | hardcode_libdir_flag_spec='-L$libdir' | ||
9192 | hardcode_shlibpath_var=no | ||
9193 | ;; | ||
9194 | |||
9195 | *) | ||
9196 | ld_shlibs=no | ||
9197 | ;; | ||
9198 | esac | ||
9199 | |||
9200 | if test x$host_vendor = xsni; then | ||
9201 | case $host in | ||
9202 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
9203 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
9204 | ;; | ||
9205 | esac | ||
9206 | fi | ||
9207 | fi | ||
9208 | |||
9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
9210 | $as_echo "$ld_shlibs" >&6; } | ||
9211 | test "$ld_shlibs" = no && can_build_shared=no | ||
9212 | |||
9213 | with_gnu_ld=$with_gnu_ld | ||
9214 | |||
9215 | |||
9216 | |||
9217 | |||
9218 | |||
9219 | |||
9220 | |||
9221 | |||
9222 | |||
9223 | |||
9224 | |||
9225 | |||
9226 | |||
9227 | |||
9228 | |||
9229 | # | ||
9230 | # Do we need to explicitly link libc? | ||
9231 | # | ||
9232 | case "x$archive_cmds_need_lc" in | ||
9233 | x|xyes) | ||
9234 | # Assume -lc should be added | ||
9235 | archive_cmds_need_lc=yes | ||
9236 | |||
9237 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
9238 | case $archive_cmds in | ||
9239 | *'~'*) | ||
9240 | # FIXME: we may have to deal with multi-command sequences. | ||
9241 | ;; | ||
9242 | '$CC '*) | ||
9243 | # Test whether the compiler implicitly links with -lc since on some | ||
9244 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
9245 | # to ld, don't add -lc before -lgcc. | ||
9246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
9247 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
9248 | $RM conftest* | ||
9249 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9250 | |||
9251 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9252 | (eval $ac_compile) 2>&5 | ||
9253 | ac_status=$? | ||
9254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9255 | test $ac_status = 0; } 2>conftest.err; then | ||
9256 | soname=conftest | ||
9257 | lib=conftest | ||
9258 | libobjs=conftest.$ac_objext | ||
9259 | deplibs= | ||
9260 | wl=$lt_prog_compiler_wl | ||
9261 | pic_flag=$lt_prog_compiler_pic | ||
9262 | compiler_flags=-v | ||
9263 | linker_flags=-v | ||
9264 | verstring= | ||
9265 | output_objdir=. | ||
9266 | libname=conftest | ||
9267 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
9268 | allow_undefined_flag= | ||
9269 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
9270 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
9271 | ac_status=$? | ||
9272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9273 | test $ac_status = 0; } | ||
9274 | then | ||
9275 | archive_cmds_need_lc=no | ||
9276 | else | ||
9277 | archive_cmds_need_lc=yes | ||
9278 | fi | ||
9279 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
9280 | else | ||
9281 | cat conftest.err 1>&5 | ||
9282 | fi | ||
9283 | $RM conftest* | ||
9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
9285 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
9286 | ;; | ||
9287 | esac | ||
9288 | fi | ||
9289 | ;; | ||
9290 | esac | ||
9291 | |||
9292 | |||
9293 | |||
9294 | |||
9295 | |||
9296 | |||
9297 | |||
9298 | |||
9299 | |||
9300 | |||
9301 | |||
9302 | |||
9303 | |||
9304 | |||
9305 | |||
9306 | |||
9307 | |||
9308 | |||
9309 | |||
9310 | |||
9311 | |||
9312 | |||
9313 | |||
9314 | |||
9315 | |||
9316 | |||
9317 | |||
9318 | |||
9319 | |||
9320 | |||
9321 | |||
9322 | |||
9323 | |||
9324 | |||
9325 | |||
9326 | |||
9327 | |||
9328 | |||
9329 | |||
9330 | |||
9331 | |||
9332 | |||
9333 | |||
9334 | |||
9335 | |||
9336 | |||
9337 | |||
9338 | |||
9339 | |||
9340 | |||
9341 | |||
9342 | |||
9343 | |||
9344 | |||
9345 | |||
9346 | |||
9347 | |||
9348 | |||
9349 | |||
9350 | |||
9351 | |||
9352 | |||
9353 | |||
9354 | |||
9355 | |||
9356 | |||
9357 | |||
9358 | |||
9359 | |||
9360 | |||
9361 | |||
9362 | |||
9363 | |||
9364 | |||
9365 | |||
9366 | |||
9367 | |||
9368 | |||
9369 | |||
9370 | |||
9371 | |||
9372 | |||
9373 | |||
9374 | |||
9375 | |||
9376 | |||
9377 | |||
9378 | |||
9379 | |||
9380 | |||
9381 | |||
9382 | |||
9383 | |||
9384 | |||
9385 | |||
9386 | |||
9387 | |||
9388 | |||
9389 | |||
9390 | |||
9391 | |||
9392 | |||
9393 | |||
9394 | |||
9395 | |||
9396 | |||
9397 | |||
9398 | |||
9399 | |||
9400 | |||
9401 | |||
9402 | |||
9403 | |||
9404 | |||
9405 | |||
9406 | |||
9407 | |||
9408 | |||
9409 | |||
9410 | |||
9411 | |||
9412 | |||
9413 | |||
9414 | |||
9415 | |||
9416 | |||
9417 | |||
9418 | |||
9419 | |||
9420 | |||
9421 | |||
9422 | |||
9423 | |||
9424 | |||
9425 | |||
9426 | |||
9427 | |||
9428 | |||
9429 | |||
9430 | |||
9431 | |||
9432 | |||
9433 | |||
9434 | |||
9435 | |||
9436 | |||
9437 | |||
9438 | |||
9439 | |||
9440 | |||
9441 | |||
9442 | |||
9443 | |||
9444 | |||
9445 | |||
9446 | |||
9447 | |||
9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
9449 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
9450 | |||
9451 | if test "$GCC" = yes; then | ||
9452 | case $host_os in | ||
9453 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
9454 | *) lt_awk_arg="/^libraries:/" ;; | ||
9455 | esac | ||
9456 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9457 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
9458 | # if the path contains ";" then we assume it to be the separator | ||
9459 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
9460 | # assumed that no part of a normal pathname contains ";" but that should | ||
9461 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
9462 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
9463 | else | ||
9464 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9465 | fi | ||
9466 | # Ok, now we have the path, separated by spaces, we can step through it | ||
9467 | # and add multilib dir if necessary. | ||
9468 | lt_tmp_lt_search_path_spec= | ||
9469 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
9470 | for lt_sys_path in $lt_search_path_spec; do | ||
9471 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
9472 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
9473 | else | ||
9474 | test -d "$lt_sys_path" && \ | ||
9475 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
9476 | fi | ||
9477 | done | ||
9478 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
9479 | BEGIN {RS=" "; FS="/|\n";} { | ||
9480 | lt_foo=""; | ||
9481 | lt_count=0; | ||
9482 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
9483 | if ($lt_i != "" && $lt_i != ".") { | ||
9484 | if ($lt_i == "..") { | ||
9485 | lt_count++; | ||
9486 | } else { | ||
9487 | if (lt_count == 0) { | ||
9488 | lt_foo="/" $lt_i lt_foo; | ||
9489 | } else { | ||
9490 | lt_count--; | ||
9491 | } | ||
9492 | } | ||
9493 | } | ||
9494 | } | ||
9495 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
9496 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
9497 | }'` | ||
9498 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
9499 | else | ||
9500 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
9501 | fi | ||
9502 | library_names_spec= | ||
9503 | libname_spec='lib$name' | ||
9504 | soname_spec= | ||
9505 | shrext_cmds=".so" | ||
9506 | postinstall_cmds= | ||
9507 | postuninstall_cmds= | ||
9508 | finish_cmds= | ||
9509 | finish_eval= | ||
9510 | shlibpath_var= | ||
9511 | shlibpath_overrides_runpath=unknown | ||
9512 | version_type=none | ||
9513 | dynamic_linker="$host_os ld.so" | ||
9514 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
9515 | need_lib_prefix=unknown | ||
9516 | hardcode_into_libs=no | ||
9517 | |||
9518 | # when you set need_version to no, make sure it does not cause -set_version | ||
9519 | # flags to be left without arguments | ||
9520 | need_version=unknown | ||
9521 | |||
9522 | case $host_os in | ||
9523 | aix3*) | ||
9524 | version_type=linux | ||
9525 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
9526 | shlibpath_var=LIBPATH | ||
9527 | |||
9528 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
9529 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9530 | ;; | ||
9531 | |||
9532 | aix[4-9]*) | ||
9533 | version_type=linux | ||
9534 | need_lib_prefix=no | ||
9535 | need_version=no | ||
9536 | hardcode_into_libs=yes | ||
9537 | if test "$host_cpu" = ia64; then | ||
9538 | # AIX 5 supports IA64 | ||
9539 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
9540 | shlibpath_var=LD_LIBRARY_PATH | ||
9541 | else | ||
9542 | # With GCC up to 2.95.x, collect2 would create an import file | ||
9543 | # for dependence libraries. The import file would start with | ||
9544 | # the line `#! .'. This would cause the generated library to | ||
9545 | # depend on `.', always an invalid library. This was fixed in | ||
9546 | # development snapshots of GCC prior to 3.0. | ||
9547 | case $host_os in | ||
9548 | aix4 | aix4.[01] | aix4.[01].*) | ||
9549 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
9550 | echo ' yes ' | ||
9551 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
9552 | : | ||
9553 | else | ||
9554 | can_build_shared=no | ||
9555 | fi | ||
9556 | ;; | ||
9557 | esac | ||
9558 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
9559 | # soname into executable. Probably we can add versioning support to | ||
9560 | # collect2, so additional links can be useful in future. | ||
9561 | if test "$aix_use_runtimelinking" = yes; then | ||
9562 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
9563 | # instead of lib<name>.a to let people know that these are not | ||
9564 | # typical AIX shared libraries. | ||
9565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9566 | else | ||
9567 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
9568 | # and later when we are not doing run time linking. | ||
9569 | library_names_spec='${libname}${release}.a $libname.a' | ||
9570 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9571 | fi | ||
9572 | shlibpath_var=LIBPATH | ||
9573 | fi | ||
9574 | ;; | ||
9575 | |||
9576 | amigaos*) | ||
9577 | case $host_cpu in | ||
9578 | powerpc) | ||
9579 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
9580 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
9581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9582 | ;; | ||
9583 | m68k) | ||
9584 | library_names_spec='$libname.ixlibrary $libname.a' | ||
9585 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
9586 | 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' | ||
9587 | ;; | ||
9588 | esac | ||
9589 | ;; | ||
9590 | |||
9591 | beos*) | ||
9592 | library_names_spec='${libname}${shared_ext}' | ||
9593 | dynamic_linker="$host_os ld.so" | ||
9594 | shlibpath_var=LIBRARY_PATH | ||
9595 | ;; | ||
9596 | |||
9597 | bsdi[45]*) | ||
9598 | version_type=linux | ||
9599 | need_version=no | ||
9600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9601 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9602 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
9603 | shlibpath_var=LD_LIBRARY_PATH | ||
9604 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
9605 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
9606 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
9607 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
9608 | # libtool to hard-code these into programs | ||
9609 | ;; | ||
9610 | |||
9611 | cygwin* | mingw* | pw32* | cegcc*) | ||
9612 | version_type=windows | ||
9613 | shrext_cmds=".dll" | ||
9614 | need_version=no | ||
9615 | need_lib_prefix=no | ||
9616 | |||
9617 | case $GCC,$host_os in | ||
9618 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
9619 | library_names_spec='$libname.dll.a' | ||
9620 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
9621 | postinstall_cmds='base_file=`basename \${file}`~ | ||
9622 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
9623 | dldir=$destdir/`dirname \$dlpath`~ | ||
9624 | test -d \$dldir || mkdir -p \$dldir~ | ||
9625 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
9626 | chmod a+x \$dldir/$dlname~ | ||
9627 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
9628 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
9629 | fi' | ||
9630 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
9631 | dlpath=$dir/\$dldll~ | ||
9632 | $RM \$dlpath' | ||
9633 | shlibpath_overrides_runpath=yes | ||
9634 | |||
9635 | case $host_os in | ||
9636 | cygwin*) | ||
9637 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
9638 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9639 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
9640 | ;; | ||
9641 | mingw* | cegcc*) | ||
9642 | # MinGW DLLs use traditional 'lib' prefix | ||
9643 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9644 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
9645 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
9646 | # It is most probably a Windows format PATH printed by | ||
9647 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
9648 | # path with ; separators, and with drive letters. We can handle the | ||
9649 | # drive letters (cygwin fileutils understands them), so leave them, | ||
9650 | # especially as we might pass files found there to a mingw objdump, | ||
9651 | # which wouldn't understand a cygwinified path. Ahh. | ||
9652 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
9653 | else | ||
9654 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
9655 | fi | ||
9656 | ;; | ||
9657 | pw32*) | ||
9658 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
9659 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
9660 | ;; | ||
9661 | esac | ||
9662 | ;; | ||
9663 | |||
9664 | *) | ||
9665 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
9666 | ;; | ||
9667 | esac | ||
9668 | dynamic_linker='Win32 ld.exe' | ||
9669 | # FIXME: first we should search . and the directory the executable is in | ||
9670 | shlibpath_var=PATH | ||
9671 | ;; | ||
9672 | |||
9673 | darwin* | rhapsody*) | ||
9674 | dynamic_linker="$host_os dyld" | ||
9675 | version_type=darwin | ||
9676 | need_lib_prefix=no | ||
9677 | need_version=no | ||
9678 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
9679 | soname_spec='${libname}${release}${major}$shared_ext' | ||
9680 | shlibpath_overrides_runpath=yes | ||
9681 | shlibpath_var=DYLD_LIBRARY_PATH | ||
9682 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
9683 | |||
9684 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
9685 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
9686 | ;; | ||
9687 | |||
9688 | dgux*) | ||
9689 | version_type=linux | ||
9690 | need_lib_prefix=no | ||
9691 | need_version=no | ||
9692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
9693 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9694 | shlibpath_var=LD_LIBRARY_PATH | ||
9695 | ;; | ||
9696 | |||
9697 | freebsd1*) | ||
9698 | dynamic_linker=no | ||
9699 | ;; | ||
9700 | |||
9701 | freebsd* | dragonfly*) | ||
9702 | # DragonFly does not have aout. When/if they implement a new | ||
9703 | # versioning mechanism, adjust this. | ||
9704 | if test -x /usr/bin/objformat; then | ||
9705 | objformat=`/usr/bin/objformat` | ||
9706 | else | ||
9707 | case $host_os in | ||
9708 | freebsd[123]*) objformat=aout ;; | ||
9709 | *) objformat=elf ;; | ||
9710 | esac | ||
9711 | fi | ||
9712 | version_type=freebsd-$objformat | ||
9713 | case $version_type in | ||
9714 | freebsd-elf*) | ||
9715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9716 | need_version=no | ||
9717 | need_lib_prefix=no | ||
9718 | ;; | ||
9719 | freebsd-*) | ||
9720 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
9721 | need_version=yes | ||
9722 | ;; | ||
9723 | esac | ||
9724 | shlibpath_var=LD_LIBRARY_PATH | ||
9725 | case $host_os in | ||
9726 | freebsd2*) | ||
9727 | shlibpath_overrides_runpath=yes | ||
9728 | ;; | ||
9729 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
9730 | shlibpath_overrides_runpath=yes | ||
9731 | hardcode_into_libs=yes | ||
9732 | ;; | ||
9733 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
9734 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
9735 | shlibpath_overrides_runpath=no | ||
9736 | hardcode_into_libs=yes | ||
9737 | ;; | ||
9738 | *) # from 4.6 on, and DragonFly | ||
9739 | shlibpath_overrides_runpath=yes | ||
9740 | hardcode_into_libs=yes | ||
9741 | ;; | ||
9742 | esac | ||
9743 | ;; | ||
9744 | |||
9745 | gnu*) | ||
9746 | version_type=linux | ||
9747 | need_lib_prefix=no | ||
9748 | need_version=no | ||
9749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
9750 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9751 | shlibpath_var=LD_LIBRARY_PATH | ||
9752 | hardcode_into_libs=yes | ||
9753 | ;; | ||
9754 | |||
9755 | hpux9* | hpux10* | hpux11*) | ||
9756 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
9757 | # link against other versions. | ||
9758 | version_type=sunos | ||
9759 | need_lib_prefix=no | ||
9760 | need_version=no | ||
9761 | case $host_cpu in | ||
9762 | ia64*) | ||
9763 | shrext_cmds='.so' | ||
9764 | hardcode_into_libs=yes | ||
9765 | dynamic_linker="$host_os dld.so" | ||
9766 | shlibpath_var=LD_LIBRARY_PATH | ||
9767 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9769 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9770 | if test "X$HPUX_IA64_MODE" = X32; then | ||
9771 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
9772 | else | ||
9773 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
9774 | fi | ||
9775 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9776 | ;; | ||
9777 | hppa*64*) | ||
9778 | shrext_cmds='.sl' | ||
9779 | hardcode_into_libs=yes | ||
9780 | dynamic_linker="$host_os dld.sl" | ||
9781 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
9782 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9784 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9785 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
9786 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9787 | ;; | ||
9788 | *) | ||
9789 | shrext_cmds='.sl' | ||
9790 | dynamic_linker="$host_os dld.sl" | ||
9791 | shlibpath_var=SHLIB_PATH | ||
9792 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
9793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9794 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9795 | ;; | ||
9796 | esac | ||
9797 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
9798 | postinstall_cmds='chmod 555 $lib' | ||
9799 | ;; | ||
9800 | |||
9801 | interix[3-9]*) | ||
9802 | version_type=linux | ||
9803 | need_lib_prefix=no | ||
9804 | need_version=no | ||
9805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9806 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9807 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
9808 | shlibpath_var=LD_LIBRARY_PATH | ||
9809 | shlibpath_overrides_runpath=no | ||
9810 | hardcode_into_libs=yes | ||
9811 | ;; | ||
9812 | |||
9813 | irix5* | irix6* | nonstopux*) | ||
9814 | case $host_os in | ||
9815 | nonstopux*) version_type=nonstopux ;; | ||
9816 | *) | ||
9817 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
9818 | version_type=linux | ||
9819 | else | ||
9820 | version_type=irix | ||
9821 | fi ;; | ||
9822 | esac | ||
9823 | need_lib_prefix=no | ||
9824 | need_version=no | ||
9825 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9826 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9827 | case $host_os in | ||
9828 | irix5* | nonstopux*) | ||
9829 | libsuff= shlibsuff= | ||
9830 | ;; | ||
9831 | *) | ||
9832 | case $LD in # libtool.m4 will add one of these switches to LD | ||
9833 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
9834 | libsuff= shlibsuff= libmagic=32-bit;; | ||
9835 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
9836 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
9837 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
9838 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
9839 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
9840 | esac | ||
9841 | ;; | ||
9842 | esac | ||
9843 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
9844 | shlibpath_overrides_runpath=no | ||
9845 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
9846 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
9847 | hardcode_into_libs=yes | ||
9848 | ;; | ||
9849 | |||
9850 | # No shared lib support for Linux oldld, aout, or coff. | ||
9851 | linux*oldld* | linux*aout* | linux*coff*) | ||
9852 | dynamic_linker=no | ||
9853 | ;; | ||
9854 | |||
9855 | # This must be Linux ELF. | ||
9856 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9857 | version_type=linux | ||
9858 | need_lib_prefix=no | ||
9859 | need_version=no | ||
9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9861 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9862 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
9863 | shlibpath_var=LD_LIBRARY_PATH | ||
9864 | shlibpath_overrides_runpath=no | ||
9865 | # Some binutils ld are patched to set DT_RUNPATH | ||
9866 | save_LDFLAGS=$LDFLAGS | ||
9867 | save_libdir=$libdir | ||
9868 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
9869 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
9870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9871 | /* end confdefs.h. */ | ||
9872 | |||
9873 | int | ||
9874 | main () | ||
9875 | { | ||
9876 | |||
9877 | ; | ||
9878 | return 0; | ||
9879 | } | ||
9880 | _ACEOF | ||
9881 | if ac_fn_c_try_link "$LINENO"; then : | ||
9882 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
9883 | shlibpath_overrides_runpath=yes | ||
9884 | fi | ||
9885 | fi | ||
9886 | rm -f core conftest.err conftest.$ac_objext \ | ||
9887 | conftest$ac_exeext conftest.$ac_ext | ||
9888 | LDFLAGS=$save_LDFLAGS | ||
9889 | libdir=$save_libdir | ||
9890 | |||
9891 | # This implies no fast_install, which is unacceptable. | ||
9892 | # Some rework will be needed to allow for fast_install | ||
9893 | # before this can be enabled. | ||
9894 | hardcode_into_libs=yes | ||
9895 | |||
9896 | # Append ld.so.conf contents to the search path | ||
9897 | if test -f /etc/ld.so.conf; then | ||
9898 | 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' ' '` | ||
9899 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
9900 | fi | ||
9901 | |||
9902 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
9903 | # powerpc, because MkLinux only supported shared libraries with the | ||
9904 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
9905 | # most powerpc-linux boxes support dynamic linking these days and | ||
9906 | # people can always --disable-shared, the test was removed, and we | ||
9907 | # assume the GNU/Linux dynamic linker is in use. | ||
9908 | dynamic_linker='GNU/Linux ld.so' | ||
9909 | ;; | ||
9910 | |||
9911 | netbsdelf*-gnu) | ||
9912 | version_type=linux | ||
9913 | need_lib_prefix=no | ||
9914 | need_version=no | ||
9915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9916 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9917 | shlibpath_var=LD_LIBRARY_PATH | ||
9918 | shlibpath_overrides_runpath=no | ||
9919 | hardcode_into_libs=yes | ||
9920 | dynamic_linker='NetBSD ld.elf_so' | ||
9921 | ;; | ||
9922 | |||
9923 | netbsd*) | ||
9924 | version_type=sunos | ||
9925 | need_lib_prefix=no | ||
9926 | need_version=no | ||
9927 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9929 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9930 | dynamic_linker='NetBSD (a.out) ld.so' | ||
9931 | else | ||
9932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9933 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9934 | dynamic_linker='NetBSD ld.elf_so' | ||
9935 | fi | ||
9936 | shlibpath_var=LD_LIBRARY_PATH | ||
9937 | shlibpath_overrides_runpath=yes | ||
9938 | hardcode_into_libs=yes | ||
9939 | ;; | ||
9940 | |||
9941 | newsos6) | ||
9942 | version_type=linux | ||
9943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9944 | shlibpath_var=LD_LIBRARY_PATH | ||
9945 | shlibpath_overrides_runpath=yes | ||
9946 | ;; | ||
9947 | |||
9948 | *nto* | *qnx*) | ||
9949 | version_type=qnx | ||
9950 | need_lib_prefix=no | ||
9951 | need_version=no | ||
9952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9953 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9954 | shlibpath_var=LD_LIBRARY_PATH | ||
9955 | shlibpath_overrides_runpath=no | ||
9956 | hardcode_into_libs=yes | ||
9957 | dynamic_linker='ldqnx.so' | ||
9958 | ;; | ||
9959 | |||
9960 | openbsd*) | ||
9961 | version_type=sunos | ||
9962 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
9963 | need_lib_prefix=no | ||
9964 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
9965 | case $host_os in | ||
9966 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
9967 | *) need_version=no ;; | ||
9968 | esac | ||
9969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9970 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9971 | shlibpath_var=LD_LIBRARY_PATH | ||
9972 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9973 | case $host_os in | ||
9974 | openbsd2.[89] | openbsd2.[89].*) | ||
9975 | shlibpath_overrides_runpath=no | ||
9976 | ;; | ||
9977 | *) | ||
9978 | shlibpath_overrides_runpath=yes | ||
9979 | ;; | ||
9980 | esac | ||
9981 | else | ||
9982 | shlibpath_overrides_runpath=yes | ||
9983 | fi | ||
9984 | ;; | ||
9985 | |||
9986 | os2*) | ||
9987 | libname_spec='$name' | ||
9988 | shrext_cmds=".dll" | ||
9989 | need_lib_prefix=no | ||
9990 | library_names_spec='$libname${shared_ext} $libname.a' | ||
9991 | dynamic_linker='OS/2 ld.exe' | ||
9992 | shlibpath_var=LIBPATH | ||
9993 | ;; | ||
9994 | |||
9995 | osf3* | osf4* | osf5*) | ||
9996 | version_type=osf | ||
9997 | need_lib_prefix=no | ||
9998 | need_version=no | ||
9999 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10001 | shlibpath_var=LD_LIBRARY_PATH | ||
10002 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
10003 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
10004 | ;; | ||
10005 | |||
10006 | rdos*) | ||
10007 | dynamic_linker=no | ||
10008 | ;; | ||
10009 | |||
10010 | solaris*) | ||
10011 | version_type=linux | ||
10012 | need_lib_prefix=no | ||
10013 | need_version=no | ||
10014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10015 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10016 | shlibpath_var=LD_LIBRARY_PATH | ||
10017 | shlibpath_overrides_runpath=yes | ||
10018 | hardcode_into_libs=yes | ||
10019 | # ldd complains unless libraries are executable | ||
10020 | postinstall_cmds='chmod +x $lib' | ||
10021 | ;; | ||
10022 | |||
10023 | sunos4*) | ||
10024 | version_type=sunos | ||
10025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10026 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
10027 | shlibpath_var=LD_LIBRARY_PATH | ||
10028 | shlibpath_overrides_runpath=yes | ||
10029 | if test "$with_gnu_ld" = yes; then | ||
10030 | need_lib_prefix=no | ||
10031 | fi | ||
10032 | need_version=yes | ||
10033 | ;; | ||
10034 | |||
10035 | sysv4 | sysv4.3*) | ||
10036 | version_type=linux | ||
10037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10038 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10039 | shlibpath_var=LD_LIBRARY_PATH | ||
10040 | case $host_vendor in | ||
10041 | sni) | ||
10042 | shlibpath_overrides_runpath=no | ||
10043 | need_lib_prefix=no | ||
10044 | runpath_var=LD_RUN_PATH | ||
10045 | ;; | ||
10046 | siemens) | ||
10047 | need_lib_prefix=no | ||
10048 | ;; | ||
10049 | motorola) | ||
10050 | need_lib_prefix=no | ||
10051 | need_version=no | ||
10052 | shlibpath_overrides_runpath=no | ||
10053 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
10054 | ;; | ||
10055 | esac | ||
10056 | ;; | ||
10057 | |||
10058 | sysv4*MP*) | ||
10059 | if test -d /usr/nec ;then | ||
10060 | version_type=linux | ||
10061 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
10062 | soname_spec='$libname${shared_ext}.$major' | ||
10063 | shlibpath_var=LD_LIBRARY_PATH | ||
10064 | fi | ||
10065 | ;; | ||
10066 | |||
10067 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
10068 | version_type=freebsd-elf | ||
10069 | need_lib_prefix=no | ||
10070 | need_version=no | ||
10071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10072 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10073 | shlibpath_var=LD_LIBRARY_PATH | ||
10074 | shlibpath_overrides_runpath=yes | ||
10075 | hardcode_into_libs=yes | ||
10076 | if test "$with_gnu_ld" = yes; then | ||
10077 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
10078 | else | ||
10079 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
10080 | case $host_os in | ||
10081 | sco3.2v5*) | ||
10082 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
10083 | ;; | ||
10084 | esac | ||
10085 | fi | ||
10086 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
10087 | ;; | ||
10088 | |||
10089 | tpf*) | ||
10090 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
10091 | version_type=linux | ||
10092 | need_lib_prefix=no | ||
10093 | need_version=no | ||
10094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10095 | shlibpath_var=LD_LIBRARY_PATH | ||
10096 | shlibpath_overrides_runpath=no | ||
10097 | hardcode_into_libs=yes | ||
10098 | ;; | ||
10099 | |||
10100 | uts4*) | ||
10101 | version_type=linux | ||
10102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10103 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10104 | shlibpath_var=LD_LIBRARY_PATH | ||
10105 | ;; | ||
10106 | |||
10107 | *) | ||
10108 | dynamic_linker=no | ||
10109 | ;; | ||
10110 | esac | ||
10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
10112 | $as_echo "$dynamic_linker" >&6; } | ||
10113 | test "$dynamic_linker" = no && can_build_shared=no | ||
10114 | |||
10115 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
10116 | if test "$GCC" = yes; then | ||
10117 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
10118 | fi | ||
10119 | |||
10120 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
10121 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
10122 | fi | ||
10123 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
10124 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
10125 | fi | ||
10126 | |||
10127 | |||
10128 | |||
10129 | |||
10130 | |||
10131 | |||
10132 | |||
10133 | |||
10134 | |||
10135 | |||
10136 | |||
10137 | |||
10138 | |||
10139 | |||
10140 | |||
10141 | |||
10142 | |||
10143 | |||
10144 | |||
10145 | |||
10146 | |||
10147 | |||
10148 | |||
10149 | |||
10150 | |||
10151 | |||
10152 | |||
10153 | |||
10154 | |||
10155 | |||
10156 | |||
10157 | |||
10158 | |||
10159 | |||
10160 | |||
10161 | |||
10162 | |||
10163 | |||
10164 | |||
10165 | |||
10166 | |||
10167 | |||
10168 | |||
10169 | |||
10170 | |||
10171 | |||
10172 | |||
10173 | |||
10174 | |||
10175 | |||
10176 | |||
10177 | |||
10178 | |||
10179 | |||
10180 | |||
10181 | |||
10182 | |||
10183 | |||
10184 | |||
10185 | |||
10186 | |||
10187 | |||
10188 | |||
10189 | |||
10190 | |||
10191 | |||
10192 | |||
10193 | |||
10194 | |||
10195 | |||
10196 | |||
10197 | |||
10198 | |||
10199 | |||
10200 | |||
10201 | |||
10202 | |||
10203 | |||
10204 | |||
10205 | |||
10206 | |||
10207 | |||
10208 | |||
10209 | |||
10210 | |||
10211 | |||
10212 | |||
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
10214 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
10215 | hardcode_action= | ||
10216 | if test -n "$hardcode_libdir_flag_spec" || | ||
10217 | test -n "$runpath_var" || | ||
10218 | test "X$hardcode_automatic" = "Xyes" ; then | ||
10219 | |||
10220 | # We can hardcode non-existent directories. | ||
10221 | if test "$hardcode_direct" != no && | ||
10222 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
10223 | # have to relink, otherwise we might link with an installed library | ||
10224 | # when we should be linking with a yet-to-be-installed one | ||
10225 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
10226 | test "$hardcode_minus_L" != no; then | ||
10227 | # Linking always hardcodes the temporary library directory. | ||
10228 | hardcode_action=relink | ||
10229 | else | ||
10230 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
10231 | hardcode_action=immediate | ||
10232 | fi | ||
10233 | else | ||
10234 | # We cannot hardcode anything, or else we can only hardcode existing | ||
10235 | # directories. | ||
10236 | hardcode_action=unsupported | ||
10237 | fi | ||
10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
10239 | $as_echo "$hardcode_action" >&6; } | ||
10240 | |||
10241 | if test "$hardcode_action" = relink || | ||
10242 | test "$inherit_rpath" = yes; then | ||
10243 | # Fast installation is not supported | ||
10244 | enable_fast_install=no | ||
10245 | elif test "$shlibpath_overrides_runpath" = yes || | ||
10246 | test "$enable_shared" = no; then | ||
10247 | # Fast installation is not necessary | ||
10248 | enable_fast_install=needless | ||
10249 | fi | ||
10250 | |||
10251 | |||
10252 | |||
10253 | |||
10254 | |||
10255 | |||
10256 | if test "x$enable_dlopen" != xyes; then | ||
10257 | enable_dlopen=unknown | ||
10258 | enable_dlopen_self=unknown | ||
10259 | enable_dlopen_self_static=unknown | ||
10260 | else | ||
10261 | lt_cv_dlopen=no | ||
10262 | lt_cv_dlopen_libs= | ||
10263 | |||
10264 | case $host_os in | ||
10265 | beos*) | ||
10266 | lt_cv_dlopen="load_add_on" | ||
10267 | lt_cv_dlopen_libs= | ||
10268 | lt_cv_dlopen_self=yes | ||
10269 | ;; | ||
10270 | |||
10271 | mingw* | pw32* | cegcc*) | ||
10272 | lt_cv_dlopen="LoadLibrary" | ||
10273 | lt_cv_dlopen_libs= | ||
10274 | ;; | ||
10275 | |||
10276 | cygwin*) | ||
10277 | lt_cv_dlopen="dlopen" | ||
10278 | lt_cv_dlopen_libs= | ||
10279 | ;; | ||
10280 | |||
10281 | darwin*) | ||
10282 | # if libdl is installed we need to link against it | ||
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10284 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10285 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10286 | $as_echo_n "(cached) " >&6 | ||
10287 | else | ||
10288 | ac_check_lib_save_LIBS=$LIBS | ||
10289 | LIBS="-ldl $LIBS" | ||
10290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10291 | /* end confdefs.h. */ | ||
10292 | |||
10293 | /* Override any GCC internal prototype to avoid an error. | ||
10294 | Use char because int might match the return type of a GCC | ||
10295 | builtin and then its argument prototype would still apply. */ | ||
10296 | #ifdef __cplusplus | ||
10297 | extern "C" | ||
10298 | #endif | ||
10299 | char dlopen (); | ||
10300 | int | ||
10301 | main () | ||
10302 | { | ||
10303 | return dlopen (); | ||
10304 | ; | ||
10305 | return 0; | ||
10306 | } | ||
10307 | _ACEOF | ||
10308 | if ac_fn_c_try_link "$LINENO"; then : | ||
10309 | ac_cv_lib_dl_dlopen=yes | ||
10310 | else | ||
10311 | ac_cv_lib_dl_dlopen=no | ||
10312 | fi | ||
10313 | rm -f core conftest.err conftest.$ac_objext \ | ||
10314 | conftest$ac_exeext conftest.$ac_ext | ||
10315 | LIBS=$ac_check_lib_save_LIBS | ||
10316 | fi | ||
10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10318 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10319 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10320 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10321 | else | ||
10322 | |||
10323 | lt_cv_dlopen="dyld" | ||
10324 | lt_cv_dlopen_libs= | ||
10325 | lt_cv_dlopen_self=yes | ||
10326 | |||
10327 | fi | ||
10328 | |||
10329 | ;; | ||
10330 | |||
10331 | *) | ||
10332 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
10333 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
10334 | lt_cv_dlopen="shl_load" | ||
10335 | else | ||
10336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
10337 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
10338 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
10339 | $as_echo_n "(cached) " >&6 | ||
10340 | else | ||
10341 | ac_check_lib_save_LIBS=$LIBS | ||
10342 | LIBS="-ldld $LIBS" | ||
10343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10344 | /* end confdefs.h. */ | ||
10345 | |||
10346 | /* Override any GCC internal prototype to avoid an error. | ||
10347 | Use char because int might match the return type of a GCC | ||
10348 | builtin and then its argument prototype would still apply. */ | ||
10349 | #ifdef __cplusplus | ||
10350 | extern "C" | ||
10351 | #endif | ||
10352 | char shl_load (); | ||
10353 | int | ||
10354 | main () | ||
10355 | { | ||
10356 | return shl_load (); | ||
10357 | ; | ||
10358 | return 0; | ||
10359 | } | ||
10360 | _ACEOF | ||
10361 | if ac_fn_c_try_link "$LINENO"; then : | ||
10362 | ac_cv_lib_dld_shl_load=yes | ||
10363 | else | ||
10364 | ac_cv_lib_dld_shl_load=no | ||
10365 | fi | ||
10366 | rm -f core conftest.err conftest.$ac_objext \ | ||
10367 | conftest$ac_exeext conftest.$ac_ext | ||
10368 | LIBS=$ac_check_lib_save_LIBS | ||
10369 | fi | ||
10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
10371 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
10372 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
10373 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
10374 | else | ||
10375 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
10376 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
10377 | lt_cv_dlopen="dlopen" | ||
10378 | else | ||
10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10380 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10381 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10382 | $as_echo_n "(cached) " >&6 | ||
10383 | else | ||
10384 | ac_check_lib_save_LIBS=$LIBS | ||
10385 | LIBS="-ldl $LIBS" | ||
10386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10387 | /* end confdefs.h. */ | ||
10388 | |||
10389 | /* Override any GCC internal prototype to avoid an error. | ||
10390 | Use char because int might match the return type of a GCC | ||
10391 | builtin and then its argument prototype would still apply. */ | ||
10392 | #ifdef __cplusplus | ||
10393 | extern "C" | ||
10394 | #endif | ||
10395 | char dlopen (); | ||
10396 | int | ||
10397 | main () | ||
10398 | { | ||
10399 | return dlopen (); | ||
10400 | ; | ||
10401 | return 0; | ||
10402 | } | ||
10403 | _ACEOF | ||
10404 | if ac_fn_c_try_link "$LINENO"; then : | ||
10405 | ac_cv_lib_dl_dlopen=yes | ||
10406 | else | ||
10407 | ac_cv_lib_dl_dlopen=no | ||
10408 | fi | ||
10409 | rm -f core conftest.err conftest.$ac_objext \ | ||
10410 | conftest$ac_exeext conftest.$ac_ext | ||
10411 | LIBS=$ac_check_lib_save_LIBS | ||
10412 | fi | ||
10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10414 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10415 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10416 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10417 | else | ||
10418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
10419 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
10420 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
10421 | $as_echo_n "(cached) " >&6 | ||
10422 | else | ||
10423 | ac_check_lib_save_LIBS=$LIBS | ||
10424 | LIBS="-lsvld $LIBS" | ||
10425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10426 | /* end confdefs.h. */ | ||
10427 | |||
10428 | /* Override any GCC internal prototype to avoid an error. | ||
10429 | Use char because int might match the return type of a GCC | ||
10430 | builtin and then its argument prototype would still apply. */ | ||
10431 | #ifdef __cplusplus | ||
10432 | extern "C" | ||
10433 | #endif | ||
10434 | char dlopen (); | ||
10435 | int | ||
10436 | main () | ||
10437 | { | ||
10438 | return dlopen (); | ||
10439 | ; | ||
10440 | return 0; | ||
10441 | } | ||
10442 | _ACEOF | ||
10443 | if ac_fn_c_try_link "$LINENO"; then : | ||
10444 | ac_cv_lib_svld_dlopen=yes | ||
10445 | else | ||
10446 | ac_cv_lib_svld_dlopen=no | ||
10447 | fi | ||
10448 | rm -f core conftest.err conftest.$ac_objext \ | ||
10449 | conftest$ac_exeext conftest.$ac_ext | ||
10450 | LIBS=$ac_check_lib_save_LIBS | ||
10451 | fi | ||
10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
10453 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
10454 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
10455 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
10456 | else | ||
10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
10458 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
10459 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
10460 | $as_echo_n "(cached) " >&6 | ||
10461 | else | ||
10462 | ac_check_lib_save_LIBS=$LIBS | ||
10463 | LIBS="-ldld $LIBS" | ||
10464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10465 | /* end confdefs.h. */ | ||
10466 | |||
10467 | /* Override any GCC internal prototype to avoid an error. | ||
10468 | Use char because int might match the return type of a GCC | ||
10469 | builtin and then its argument prototype would still apply. */ | ||
10470 | #ifdef __cplusplus | ||
10471 | extern "C" | ||
10472 | #endif | ||
10473 | char dld_link (); | ||
10474 | int | ||
10475 | main () | ||
10476 | { | ||
10477 | return dld_link (); | ||
10478 | ; | ||
10479 | return 0; | ||
10480 | } | ||
10481 | _ACEOF | ||
10482 | if ac_fn_c_try_link "$LINENO"; then : | ||
10483 | ac_cv_lib_dld_dld_link=yes | ||
10484 | else | ||
10485 | ac_cv_lib_dld_dld_link=no | ||
10486 | fi | ||
10487 | rm -f core conftest.err conftest.$ac_objext \ | ||
10488 | conftest$ac_exeext conftest.$ac_ext | ||
10489 | LIBS=$ac_check_lib_save_LIBS | ||
10490 | fi | ||
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
10492 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
10493 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
10494 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
10495 | fi | ||
10496 | |||
10497 | |||
10498 | fi | ||
10499 | |||
10500 | |||
10501 | fi | ||
10502 | |||
10503 | |||
10504 | fi | ||
10505 | |||
10506 | |||
10507 | fi | ||
10508 | |||
10509 | |||
10510 | fi | ||
10511 | |||
10512 | ;; | ||
10513 | esac | ||
10514 | |||
10515 | if test "x$lt_cv_dlopen" != xno; then | ||
10516 | enable_dlopen=yes | ||
10517 | else | ||
10518 | enable_dlopen=no | ||
10519 | fi | ||
10520 | |||
10521 | case $lt_cv_dlopen in | ||
10522 | dlopen) | ||
10523 | save_CPPFLAGS="$CPPFLAGS" | ||
10524 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
10525 | |||
10526 | save_LDFLAGS="$LDFLAGS" | ||
10527 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
10528 | |||
10529 | save_LIBS="$LIBS" | ||
10530 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
10531 | |||
10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
10533 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
10534 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
10535 | $as_echo_n "(cached) " >&6 | ||
10536 | else | ||
10537 | if test "$cross_compiling" = yes; then : | ||
10538 | lt_cv_dlopen_self=cross | ||
10539 | else | ||
10540 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10541 | lt_status=$lt_dlunknown | ||
10542 | cat > conftest.$ac_ext <<_LT_EOF | ||
10543 | #line 10543 "configure" | ||
10544 | #include "confdefs.h" | ||
10545 | |||
10546 | #if HAVE_DLFCN_H | ||
10547 | #include <dlfcn.h> | ||
10548 | #endif | ||
10549 | |||
10550 | #include <stdio.h> | ||
10551 | |||
10552 | #ifdef RTLD_GLOBAL | ||
10553 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10554 | #else | ||
10555 | # ifdef DL_GLOBAL | ||
10556 | # define LT_DLGLOBAL DL_GLOBAL | ||
10557 | # else | ||
10558 | # define LT_DLGLOBAL 0 | ||
10559 | # endif | ||
10560 | #endif | ||
10561 | |||
10562 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10563 | find out it does not work in some platform. */ | ||
10564 | #ifndef LT_DLLAZY_OR_NOW | ||
10565 | # ifdef RTLD_LAZY | ||
10566 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10567 | # else | ||
10568 | # ifdef DL_LAZY | ||
10569 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10570 | # else | ||
10571 | # ifdef RTLD_NOW | ||
10572 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10573 | # else | ||
10574 | # ifdef DL_NOW | ||
10575 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10576 | # else | ||
10577 | # define LT_DLLAZY_OR_NOW 0 | ||
10578 | # endif | ||
10579 | # endif | ||
10580 | # endif | ||
10581 | # endif | ||
10582 | #endif | ||
10583 | |||
10584 | void fnord() { int i=42;} | ||
10585 | int main () | ||
10586 | { | ||
10587 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10588 | int status = $lt_dlunknown; | ||
10589 | |||
10590 | if (self) | ||
10591 | { | ||
10592 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10593 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10594 | /* dlclose (self); */ | ||
10595 | } | ||
10596 | else | ||
10597 | puts (dlerror ()); | ||
10598 | |||
10599 | return status; | ||
10600 | } | ||
10601 | _LT_EOF | ||
10602 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10603 | (eval $ac_link) 2>&5 | ||
10604 | ac_status=$? | ||
10605 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10606 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10607 | (./conftest; exit; ) >&5 2>/dev/null | ||
10608 | lt_status=$? | ||
10609 | case x$lt_status in | ||
10610 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
10611 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
10612 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
10613 | esac | ||
10614 | else : | ||
10615 | # compilation failed | ||
10616 | lt_cv_dlopen_self=no | ||
10617 | fi | ||
10618 | fi | ||
10619 | rm -fr conftest* | ||
10620 | |||
10621 | |||
10622 | fi | ||
10623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
10624 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
10625 | |||
10626 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
10627 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
10628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
10629 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
10630 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
10631 | $as_echo_n "(cached) " >&6 | ||
10632 | else | ||
10633 | if test "$cross_compiling" = yes; then : | ||
10634 | lt_cv_dlopen_self_static=cross | ||
10635 | else | ||
10636 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10637 | lt_status=$lt_dlunknown | ||
10638 | cat > conftest.$ac_ext <<_LT_EOF | ||
10639 | #line 10639 "configure" | ||
10640 | #include "confdefs.h" | ||
10641 | |||
10642 | #if HAVE_DLFCN_H | ||
10643 | #include <dlfcn.h> | ||
10644 | #endif | ||
10645 | |||
10646 | #include <stdio.h> | ||
10647 | |||
10648 | #ifdef RTLD_GLOBAL | ||
10649 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10650 | #else | ||
10651 | # ifdef DL_GLOBAL | ||
10652 | # define LT_DLGLOBAL DL_GLOBAL | ||
10653 | # else | ||
10654 | # define LT_DLGLOBAL 0 | ||
10655 | # endif | ||
10656 | #endif | ||
10657 | |||
10658 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10659 | find out it does not work in some platform. */ | ||
10660 | #ifndef LT_DLLAZY_OR_NOW | ||
10661 | # ifdef RTLD_LAZY | ||
10662 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10663 | # else | ||
10664 | # ifdef DL_LAZY | ||
10665 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10666 | # else | ||
10667 | # ifdef RTLD_NOW | ||
10668 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10669 | # else | ||
10670 | # ifdef DL_NOW | ||
10671 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10672 | # else | ||
10673 | # define LT_DLLAZY_OR_NOW 0 | ||
10674 | # endif | ||
10675 | # endif | ||
10676 | # endif | ||
10677 | # endif | ||
10678 | #endif | ||
10679 | |||
10680 | void fnord() { int i=42;} | ||
10681 | int main () | ||
10682 | { | ||
10683 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10684 | int status = $lt_dlunknown; | ||
10685 | |||
10686 | if (self) | ||
10687 | { | ||
10688 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10689 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10690 | /* dlclose (self); */ | ||
10691 | } | ||
10692 | else | ||
10693 | puts (dlerror ()); | ||
10694 | |||
10695 | return status; | ||
10696 | } | ||
10697 | _LT_EOF | ||
10698 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
10699 | (eval $ac_link) 2>&5 | ||
10700 | ac_status=$? | ||
10701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10702 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10703 | (./conftest; exit; ) >&5 2>/dev/null | ||
10704 | lt_status=$? | ||
10705 | case x$lt_status in | ||
10706 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10707 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10708 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
10709 | esac | ||
10710 | else : | ||
10711 | # compilation failed | ||
10712 | lt_cv_dlopen_self_static=no | ||
10713 | fi | ||
10714 | fi | ||
10715 | rm -fr conftest* | ||
10716 | |||
10717 | |||
10718 | fi | ||
10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
10720 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
10721 | fi | ||
10722 | |||
10723 | CPPFLAGS="$save_CPPFLAGS" | ||
10724 | LDFLAGS="$save_LDFLAGS" | ||
10725 | LIBS="$save_LIBS" | ||
10726 | ;; | ||
10727 | esac | ||
10728 | |||
10729 | case $lt_cv_dlopen_self in | ||
10730 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
10731 | *) enable_dlopen_self=unknown ;; | ||
10732 | esac | ||
10733 | |||
10734 | case $lt_cv_dlopen_self_static in | ||
10735 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
10736 | *) enable_dlopen_self_static=unknown ;; | ||
10737 | esac | ||
10738 | fi | ||
10739 | |||
10740 | |||
10741 | |||
10742 | |||
10743 | |||
10744 | |||
10745 | |||
10746 | |||
10747 | |||
10748 | |||
10749 | |||
10750 | |||
10751 | |||
10752 | |||
10753 | |||
10754 | |||
10755 | |||
10756 | striplib= | ||
10757 | old_striplib= | ||
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
10759 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
10760 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
10761 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
10762 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10764 | $as_echo "yes" >&6; } | ||
10765 | else | ||
10766 | # FIXME - insert some real tests, host_os isn't really good enough | ||
10767 | case $host_os in | ||
10768 | darwin*) | ||
10769 | if test -n "$STRIP" ; then | ||
10770 | striplib="$STRIP -x" | ||
10771 | old_striplib="$STRIP -S" | ||
10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10773 | $as_echo "yes" >&6; } | ||
10774 | else | ||
10775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10776 | $as_echo "no" >&6; } | ||
10777 | fi | ||
10778 | ;; | ||
10779 | *) | ||
10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10781 | $as_echo "no" >&6; } | ||
10782 | ;; | ||
10783 | esac | ||
10784 | fi | ||
10785 | |||
10786 | |||
10787 | |||
10788 | |||
10789 | |||
10790 | |||
10791 | |||
10792 | |||
10793 | |||
10794 | |||
10795 | |||
10796 | |||
10797 | # Report which library types will actually be built | ||
10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
10799 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
10801 | $as_echo "$can_build_shared" >&6; } | ||
10802 | |||
10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
10804 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
10805 | test "$can_build_shared" = "no" && enable_shared=no | ||
10806 | |||
10807 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
10808 | # are all built from PIC. | ||
10809 | case $host_os in | ||
10810 | aix3*) | ||
10811 | test "$enable_shared" = yes && enable_static=no | ||
10812 | if test -n "$RANLIB"; then | ||
10813 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
10814 | postinstall_cmds='$RANLIB $lib' | ||
10815 | fi | ||
10816 | ;; | ||
10817 | |||
10818 | aix[4-9]*) | ||
10819 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
10820 | test "$enable_shared" = yes && enable_static=no | ||
10821 | fi | ||
10822 | ;; | ||
10823 | esac | ||
10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
10825 | $as_echo "$enable_shared" >&6; } | ||
10826 | |||
10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
10828 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
10829 | # Make sure either enable_shared or enable_static is yes. | ||
10830 | test "$enable_shared" = yes || enable_static=yes | ||
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
10832 | $as_echo "$enable_static" >&6; } | ||
10833 | |||
10834 | |||
10835 | |||
10836 | |||
10837 | fi | ||
10838 | ac_ext=c | ||
10839 | ac_cpp='$CPP $CPPFLAGS' | ||
10840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
10841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
10842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
10843 | |||
10844 | CC="$lt_save_CC" | ||
10845 | |||
10846 | |||
10847 | |||
10848 | |||
10849 | |||
10850 | |||
10851 | |||
10852 | |||
10853 | |||
10854 | |||
10855 | |||
10856 | |||
10857 | |||
10858 | ac_config_commands="$ac_config_commands libtool" | ||
10859 | |||
10860 | |||
10861 | |||
10862 | |||
10863 | # Only expand once: | ||
10864 | |||
10865 | |||
10866 | |||
10867 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10868 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10869 | |||
10870 | |||
10871 | |||
10872 | cat >>confdefs.h <<_ACEOF | ||
10873 | #define VMAJ 1 | ||
10874 | _ACEOF | ||
10875 | |||
10876 | |||
10877 | cat >>confdefs.h <<_ACEOF | ||
10878 | #define VMIN 5 | ||
10879 | _ACEOF | ||
10880 | |||
10881 | |||
10882 | cat >>confdefs.h <<_ACEOF | ||
10883 | #define VMIC 0 | ||
10884 | _ACEOF | ||
10885 | |||
10886 | |||
10887 | cat >>confdefs.h <<_ACEOF | ||
10888 | #define VREV 0 | ||
10889 | _ACEOF | ||
10890 | |||
10891 | version_info="6:0:5" | ||
10892 | release_info="" | ||
10893 | |||
10894 | |||
10895 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10896 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
10897 | VMAJ=1 | ||
10898 | |||
10899 | |||
10900 | |||
10901 | ### Needed information | ||
10902 | |||
10903 | |||
10904 | |||
10905 | |||
10906 | ### Default options with respect to host | ||
10907 | |||
10908 | want_gnutls="auto" | ||
10909 | want_openssl="auto" | ||
10910 | want_cipher="yes" | ||
10911 | want_signature="yes" | ||
10912 | |||
10913 | requirement_eet="" | ||
10914 | |||
10915 | |||
10916 | ### Additional options to configure | ||
10917 | |||
10918 | # Amalgamation | ||
10919 | |||
10920 | # Check whether --enable-amalgamation was given. | ||
10921 | if test "${enable_amalgamation+set}" = set; then : | ||
10922 | enableval=$enable_amalgamation; if test "x${enableval}" = "xyes"; then | ||
10923 | do_amalgamation="yes" | ||
10924 | else | ||
10925 | do_amalgamation="no" | ||
10926 | fi | ||
10927 | |||
10928 | else | ||
10929 | do_amalgamation="no" | ||
10930 | |||
10931 | fi | ||
10932 | |||
10933 | if test "x${do_amalgamation}" = "xyes"; then | ||
10934 | EET_AMALGAMATION_TRUE= | ||
10935 | EET_AMALGAMATION_FALSE='#' | ||
10936 | else | ||
10937 | EET_AMALGAMATION_TRUE='#' | ||
10938 | EET_AMALGAMATION_FALSE= | ||
10939 | fi | ||
10940 | |||
10941 | |||
10942 | |||
10943 | |||
10944 | |||
10945 | have_eet="yes" | ||
10946 | |||
10947 | |||
10948 | # Check whether --enable-eet was given. | ||
10949 | if test "${enable_eet+set}" = set; then : | ||
10950 | enableval=$enable_eet; | ||
10951 | if test "x${enableval}" = "xyes" ; then | ||
10952 | have_eet="yes" | ||
10953 | else | ||
10954 | have_eet="no" | ||
10955 | fi | ||
10956 | |||
10957 | fi | ||
10958 | |||
10959 | |||
10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build eet binary" >&5 | ||
10961 | $as_echo_n "checking whether to build eet binary... " >&6; } | ||
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eet" >&5 | ||
10963 | $as_echo "$have_eet" >&6; } | ||
10964 | |||
10965 | if test "x$have_eet" = "xyes"; then | ||
10966 | EET_PRG=eet${EXEEXT} | ||
10967 | fi | ||
10968 | |||
10969 | |||
10970 | |||
10971 | if test "x$have_eet" = "xyes"; then | ||
10972 | BUILD_EET_TRUE= | ||
10973 | BUILD_EET_FALSE='#' | ||
10974 | else | ||
10975 | BUILD_EET_TRUE='#' | ||
10976 | BUILD_EET_FALSE= | ||
10977 | fi | ||
10978 | |||
10979 | |||
10980 | if test "x$have_eet" = "xyes"; then : | ||
10981 | |||
10982 | fi | ||
10983 | |||
10984 | |||
10985 | |||
10986 | # Old eet file format support | ||
10987 | |||
10988 | old_eet_file_format="yes" | ||
10989 | # Check whether --enable-old-eet-file-format was given. | ||
10990 | if test "${enable_old_eet_file_format+set}" = set; then : | ||
10991 | enableval=$enable_old_eet_file_format; old_eet_file_format=$enableval | ||
10992 | |||
10993 | fi | ||
10994 | |||
10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support old eet file format" >&5 | ||
10996 | $as_echo_n "checking whether to support old eet file format... " >&6; } | ||
10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${old_eet_file_format}" >&5 | ||
10998 | $as_echo "${old_eet_file_format}" >&6; } | ||
10999 | |||
11000 | if test "x${old_eet_file_format}" = "xyes" ; then | ||
11001 | |||
11002 | $as_echo "#define EET_OLD_EET_FILE_FORMAT 1" >>confdefs.h | ||
11003 | |||
11004 | else | ||
11005 | |||
11006 | $as_echo "#define EET_OLD_EET_FILE_FORMAT 0" >>confdefs.h | ||
11007 | |||
11008 | fi | ||
11009 | |||
11010 | # Gnutls support | ||
11011 | |||
11012 | # Check whether --enable-gnutls was given. | ||
11013 | if test "${enable_gnutls+set}" = set; then : | ||
11014 | enableval=$enable_gnutls; want_gnutls=$enableval | ||
11015 | |||
11016 | fi | ||
11017 | |||
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Gnutls" >&5 | ||
11019 | $as_echo_n "checking whether to use Gnutls... " >&6; } | ||
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_gnutls}" >&5 | ||
11021 | $as_echo "${want_gnutls}" >&6; } | ||
11022 | |||
11023 | # Specific GNUTLS improvement | ||
11024 | |||
11025 | new_gnutls_api="yes" | ||
11026 | # Check whether --enable-new-gnutls-api was given. | ||
11027 | if test "${enable_new_gnutls_api+set}" = set; then : | ||
11028 | enableval=$enable_new_gnutls_api; new_gnutls_api=$enableval | ||
11029 | |||
11030 | fi | ||
11031 | |||
11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gnutls_x509_crt_verify_hash" >&5 | ||
11033 | $as_echo_n "checking whether to use gnutls_x509_crt_verify_hash... " >&6; } | ||
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${new_gnutls_api}" >&5 | ||
11035 | $as_echo "${new_gnutls_api}" >&6; } | ||
11036 | |||
11037 | if test "x${new_gnutls_api}" = "xyes" ; then | ||
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_verify_hash in -lgnutls" >&5 | ||
11039 | $as_echo_n "checking for gnutls_x509_crt_verify_hash in -lgnutls... " >&6; } | ||
11040 | if test "${ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash+set}" = set; then : | ||
11041 | $as_echo_n "(cached) " >&6 | ||
11042 | else | ||
11043 | ac_check_lib_save_LIBS=$LIBS | ||
11044 | LIBS="-lgnutls $LIBS" | ||
11045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11046 | /* end confdefs.h. */ | ||
11047 | |||
11048 | /* Override any GCC internal prototype to avoid an error. | ||
11049 | Use char because int might match the return type of a GCC | ||
11050 | builtin and then its argument prototype would still apply. */ | ||
11051 | #ifdef __cplusplus | ||
11052 | extern "C" | ||
11053 | #endif | ||
11054 | char gnutls_x509_crt_verify_hash (); | ||
11055 | int | ||
11056 | main () | ||
11057 | { | ||
11058 | return gnutls_x509_crt_verify_hash (); | ||
11059 | ; | ||
11060 | return 0; | ||
11061 | } | ||
11062 | _ACEOF | ||
11063 | if ac_fn_c_try_link "$LINENO"; then : | ||
11064 | ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash=yes | ||
11065 | else | ||
11066 | ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash=no | ||
11067 | fi | ||
11068 | rm -f core conftest.err conftest.$ac_objext \ | ||
11069 | conftest$ac_exeext conftest.$ac_ext | ||
11070 | LIBS=$ac_check_lib_save_LIBS | ||
11071 | fi | ||
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash" >&5 | ||
11073 | $as_echo "$ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash" >&6; } | ||
11074 | if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_verify_hash" = x""yes; then : | ||
11075 | new_gnutls_api="yes" | ||
11076 | else | ||
11077 | new_gnutls_api="no" | ||
11078 | |||
11079 | fi | ||
11080 | |||
11081 | |||
11082 | if test "x${new_gnutls_api}" = "xyes"; then | ||
11083 | |||
11084 | $as_echo "#define EET_USE_NEW_GNUTLS_API 1" >>confdefs.h | ||
11085 | |||
11086 | fi | ||
11087 | fi | ||
11088 | |||
11089 | # Openssl support | ||
11090 | |||
11091 | # Check whether --enable-openssl was given. | ||
11092 | if test "${enable_openssl+set}" = set; then : | ||
11093 | enableval=$enable_openssl; want_openssl=$enableval | ||
11094 | |||
11095 | fi | ||
11096 | |||
11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL" >&5 | ||
11098 | $as_echo_n "checking whether to use OpenSSL... " >&6; } | ||
11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_openssl}" >&5 | ||
11100 | $as_echo "${want_openssl}" >&6; } | ||
11101 | |||
11102 | # Cryptography support | ||
11103 | |||
11104 | # Check whether --enable-cipher was given. | ||
11105 | if test "${enable_cipher+set}" = set; then : | ||
11106 | enableval=$enable_cipher; want_cipher=$enableval | ||
11107 | |||
11108 | fi | ||
11109 | |||
11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use cipher" >&5 | ||
11111 | $as_echo_n "checking whether to use cipher... " >&6; } | ||
11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_cipher}" >&5 | ||
11113 | $as_echo "${want_cipher}" >&6; } | ||
11114 | |||
11115 | # Check whether --enable-signature was given. | ||
11116 | if test "${enable_signature+set}" = set; then : | ||
11117 | enableval=$enable_signature; want_signature=$enableval | ||
11118 | |||
11119 | fi | ||
11120 | |||
11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use signature" >&5 | ||
11122 | $as_echo_n "checking whether to use signature... " >&6; } | ||
11123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_signature}" >&5 | ||
11124 | $as_echo "${want_signature}" >&6; } | ||
11125 | |||
11126 | # Assert or fail. | ||
11127 | prefer_assert="no" | ||
11128 | # Check whether --enable-assert was given. | ||
11129 | if test "${enable_assert+set}" = set; then : | ||
11130 | enableval=$enable_assert; prefer_assert=$enableval | ||
11131 | |||
11132 | fi | ||
11133 | |||
11134 | |||
11135 | # Examples | ||
11136 | |||
11137 | # Check whether --enable-install-examples was given. | ||
11138 | if test "${enable_install_examples+set}" = set; then : | ||
11139 | enableval=$enable_install_examples; | ||
11140 | if test "x${enableval}" = "xyes" ; then | ||
11141 | install_examples="yes" | ||
11142 | else | ||
11143 | install_examples="no" | ||
11144 | fi | ||
11145 | |||
11146 | else | ||
11147 | install_examples="yes" | ||
11148 | fi | ||
11149 | |||
11150 | if test "x${install_examples}" = "xyes"; then | ||
11151 | INSTALL_EXAMPLES_TRUE= | ||
11152 | INSTALL_EXAMPLES_FALSE='#' | ||
11153 | else | ||
11154 | INSTALL_EXAMPLES_TRUE='#' | ||
11155 | INSTALL_EXAMPLES_FALSE= | ||
11156 | fi | ||
11157 | |||
11158 | |||
11159 | # Check whether --enable-build-examples was given. | ||
11160 | if test "${enable_build_examples+set}" = set; then : | ||
11161 | enableval=$enable_build_examples; | ||
11162 | if test "x${enableval}" = "xyes" ; then | ||
11163 | build_examples="yes" | ||
11164 | else | ||
11165 | build_examples="no" | ||
11166 | fi | ||
11167 | |||
11168 | else | ||
11169 | build_examples="no" | ||
11170 | fi | ||
11171 | |||
11172 | if test "x${build_examples}" = "xyes"; then | ||
11173 | BUILD_EXAMPLES_TRUE= | ||
11174 | BUILD_EXAMPLES_FALSE='#' | ||
11175 | else | ||
11176 | BUILD_EXAMPLES_TRUE='#' | ||
11177 | BUILD_EXAMPLES_FALSE= | ||
11178 | fi | ||
11179 | |||
11180 | |||
11181 | # Unit tests, coverage and benchmarking | ||
11182 | |||
11183 | |||
11184 | |||
11185 | |||
11186 | |||
11187 | |||
11188 | |||
11189 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
11190 | if test -n "$ac_tool_prefix"; then | ||
11191 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
11192 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11194 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11195 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
11196 | $as_echo_n "(cached) " >&6 | ||
11197 | else | ||
11198 | case $PKG_CONFIG in | ||
11199 | [\\/]* | ?:[\\/]*) | ||
11200 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
11201 | ;; | ||
11202 | *) | ||
11203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11204 | for as_dir in $PATH | ||
11205 | do | ||
11206 | IFS=$as_save_IFS | ||
11207 | test -z "$as_dir" && as_dir=. | ||
11208 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11210 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
11211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11212 | break 2 | ||
11213 | fi | ||
11214 | done | ||
11215 | done | ||
11216 | IFS=$as_save_IFS | ||
11217 | |||
11218 | ;; | ||
11219 | esac | ||
11220 | fi | ||
11221 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
11222 | if test -n "$PKG_CONFIG"; then | ||
11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
11224 | $as_echo "$PKG_CONFIG" >&6; } | ||
11225 | else | ||
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11227 | $as_echo "no" >&6; } | ||
11228 | fi | ||
11229 | |||
11230 | |||
11231 | fi | ||
11232 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
11233 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
11234 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
11235 | set dummy pkg-config; ac_word=$2 | ||
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11237 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11238 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
11239 | $as_echo_n "(cached) " >&6 | ||
11240 | else | ||
11241 | case $ac_pt_PKG_CONFIG in | ||
11242 | [\\/]* | ?:[\\/]*) | ||
11243 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
11244 | ;; | ||
11245 | *) | ||
11246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11247 | for as_dir in $PATH | ||
11248 | do | ||
11249 | IFS=$as_save_IFS | ||
11250 | test -z "$as_dir" && as_dir=. | ||
11251 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11253 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
11254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11255 | break 2 | ||
11256 | fi | ||
11257 | done | ||
11258 | done | ||
11259 | IFS=$as_save_IFS | ||
11260 | |||
11261 | ;; | ||
11262 | esac | ||
11263 | fi | ||
11264 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
11265 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
11266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
11267 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
11268 | else | ||
11269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11270 | $as_echo "no" >&6; } | ||
11271 | fi | ||
11272 | |||
11273 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
11274 | PKG_CONFIG="" | ||
11275 | else | ||
11276 | case $cross_compiling:$ac_tool_warned in | ||
11277 | yes:) | ||
11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11279 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11280 | ac_tool_warned=yes ;; | ||
11281 | esac | ||
11282 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
11283 | fi | ||
11284 | else | ||
11285 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
11286 | fi | ||
11287 | |||
11288 | fi | ||
11289 | if test -n "$PKG_CONFIG"; then | ||
11290 | _pkg_min_version=0.9.0 | ||
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
11292 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
11293 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11295 | $as_echo "yes" >&6; } | ||
11296 | else | ||
11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11298 | $as_echo "no" >&6; } | ||
11299 | PKG_CONFIG="" | ||
11300 | fi | ||
11301 | fi | ||
11302 | |||
11303 | |||
11304 | |||
11305 | # Check whether --enable-tests was given. | ||
11306 | if test "${enable_tests+set}" = set; then : | ||
11307 | enableval=$enable_tests; | ||
11308 | if test "x${enableval}" = "xyes" ; then | ||
11309 | _efl_enable_tests="yes" | ||
11310 | else | ||
11311 | _efl_enable_tests="no" | ||
11312 | fi | ||
11313 | |||
11314 | else | ||
11315 | _efl_enable_tests="no" | ||
11316 | fi | ||
11317 | |||
11318 | |||
11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
11320 | $as_echo_n "checking whether tests are built... " >&6; } | ||
11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
11322 | $as_echo "${_efl_enable_tests}" >&6; } | ||
11323 | |||
11324 | |||
11325 | |||
11326 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
11327 | |||
11328 | pkg_failed=no | ||
11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
11330 | $as_echo_n "checking for CHECK... " >&6; } | ||
11331 | |||
11332 | if test -n "$CHECK_CFLAGS"; then | ||
11333 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
11334 | elif test -n "$PKG_CONFIG"; then | ||
11335 | if test -n "$PKG_CONFIG" && \ | ||
11336 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
11337 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
11338 | ac_status=$? | ||
11339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11340 | test $ac_status = 0; }; then | ||
11341 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
11342 | else | ||
11343 | pkg_failed=yes | ||
11344 | fi | ||
11345 | else | ||
11346 | pkg_failed=untried | ||
11347 | fi | ||
11348 | if test -n "$CHECK_LIBS"; then | ||
11349 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
11350 | elif test -n "$PKG_CONFIG"; then | ||
11351 | if test -n "$PKG_CONFIG" && \ | ||
11352 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
11353 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
11354 | ac_status=$? | ||
11355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11356 | test $ac_status = 0; }; then | ||
11357 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
11358 | else | ||
11359 | pkg_failed=yes | ||
11360 | fi | ||
11361 | else | ||
11362 | pkg_failed=untried | ||
11363 | fi | ||
11364 | |||
11365 | |||
11366 | |||
11367 | if test $pkg_failed = yes; then | ||
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11369 | $as_echo "no" >&6; } | ||
11370 | |||
11371 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
11372 | _pkg_short_errors_supported=yes | ||
11373 | else | ||
11374 | _pkg_short_errors_supported=no | ||
11375 | fi | ||
11376 | if test $_pkg_short_errors_supported = yes; then | ||
11377 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
11378 | else | ||
11379 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
11380 | fi | ||
11381 | # Put the nasty error message in config.log where it belongs | ||
11382 | echo "$CHECK_PKG_ERRORS" >&5 | ||
11383 | |||
11384 | _efl_enable_tests="no" | ||
11385 | elif test $pkg_failed = untried; then | ||
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11387 | $as_echo "no" >&6; } | ||
11388 | _efl_enable_tests="no" | ||
11389 | else | ||
11390 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
11391 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11393 | $as_echo "yes" >&6; } | ||
11394 | dummy="yes" | ||
11395 | fi | ||
11396 | fi | ||
11397 | |||
11398 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
11399 | EFL_ENABLE_TESTS_TRUE= | ||
11400 | EFL_ENABLE_TESTS_FALSE='#' | ||
11401 | else | ||
11402 | EFL_ENABLE_TESTS_TRUE='#' | ||
11403 | EFL_ENABLE_TESTS_FALSE= | ||
11404 | fi | ||
11405 | |||
11406 | |||
11407 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
11408 | enable_tests="yes" | ||
11409 | else | ||
11410 | enable_tests="no" | ||
11411 | fi | ||
11412 | |||
11413 | |||
11414 | |||
11415 | |||
11416 | # Check whether --enable-coverage was given. | ||
11417 | if test "${enable_coverage+set}" = set; then : | ||
11418 | enableval=$enable_coverage; | ||
11419 | if test "x${enableval}" = "xyes" ; then | ||
11420 | _efl_enable_coverage="yes" | ||
11421 | else | ||
11422 | _efl_enable_coverage="no" | ||
11423 | fi | ||
11424 | |||
11425 | else | ||
11426 | _efl_enable_coverage="no" | ||
11427 | fi | ||
11428 | |||
11429 | |||
11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use profiling instrumentation" >&5 | ||
11431 | $as_echo_n "checking whether to use profiling instrumentation... " >&6; } | ||
11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_efl_enable_coverage" >&5 | ||
11433 | $as_echo "$_efl_enable_coverage" >&6; } | ||
11434 | |||
11435 | |||
11436 | if test "x$_efl_enable_coverage" = "xyes" && test ! "x${enable_tests}" = "xyes" ; then | ||
11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&5 | ||
11438 | $as_echo "$as_me: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&2;} | ||
11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run configure with --enable-tests" >&5 | ||
11440 | $as_echo "$as_me: WARNING: Run configure with --enable-tests" >&2;} | ||
11441 | _efl_enable_coverage="no" | ||
11442 | fi | ||
11443 | |||
11444 | if test "x$_efl_enable_coverage" = "xyes" ; then | ||
11445 | # Extract the first word of "lcov", so it can be a program name with args. | ||
11446 | set dummy lcov; ac_word=$2 | ||
11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11448 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11449 | if test "${ac_cv_prog_have_lcov+set}" = set; then : | ||
11450 | $as_echo_n "(cached) " >&6 | ||
11451 | else | ||
11452 | if test -n "$have_lcov"; then | ||
11453 | ac_cv_prog_have_lcov="$have_lcov" # Let the user override the test. | ||
11454 | else | ||
11455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11456 | for as_dir in $PATH | ||
11457 | do | ||
11458 | IFS=$as_save_IFS | ||
11459 | test -z "$as_dir" && as_dir=. | ||
11460 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11462 | ac_cv_prog_have_lcov="yes" | ||
11463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11464 | break 2 | ||
11465 | fi | ||
11466 | done | ||
11467 | done | ||
11468 | IFS=$as_save_IFS | ||
11469 | |||
11470 | test -z "$ac_cv_prog_have_lcov" && ac_cv_prog_have_lcov="no" | ||
11471 | fi | ||
11472 | fi | ||
11473 | have_lcov=$ac_cv_prog_have_lcov | ||
11474 | if test -n "$have_lcov"; then | ||
11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lcov" >&5 | ||
11476 | $as_echo "$have_lcov" >&6; } | ||
11477 | else | ||
11478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11479 | $as_echo "no" >&6; } | ||
11480 | fi | ||
11481 | |||
11482 | |||
11483 | if test "x$have_lcov" = "xyes" ; then | ||
11484 | EFL_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" | ||
11485 | EFL_COVERAGE_LIBS="-lgcov" | ||
11486 | # remove any optimisation flag and force debug symbols | ||
11487 | EFL_DEBUG_CFLAGS="-g -O0 -DDEBUG" | ||
11488 | else | ||
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov is not found, disable profiling instrumentation" >&5 | ||
11490 | $as_echo "$as_me: WARNING: lcov is not found, disable profiling instrumentation" >&2;} | ||
11491 | _efl_enable_coverage="no" | ||
11492 | fi | ||
11493 | fi | ||
11494 | |||
11495 | |||
11496 | |||
11497 | |||
11498 | if test "x${_efl_enable_coverage}" = "xyes"; then | ||
11499 | EFL_ENABLE_COVERAGE_TRUE= | ||
11500 | EFL_ENABLE_COVERAGE_FALSE='#' | ||
11501 | else | ||
11502 | EFL_ENABLE_COVERAGE_TRUE='#' | ||
11503 | EFL_ENABLE_COVERAGE_FALSE= | ||
11504 | fi | ||
11505 | |||
11506 | |||
11507 | if test "x$_efl_enable_coverage" = "xyes"; then : | ||
11508 | enable_coverage="yes" | ||
11509 | else | ||
11510 | enable_coverage="no" | ||
11511 | fi | ||
11512 | |||
11513 | |||
11514 | if test "x${prefer_assert}" = "xno"; then | ||
11515 | DEBUG_CFLAGS="-DNDEBUG" | ||
11516 | else | ||
11517 | # use debug symbols and set DEBUG if coverage support is enabled | ||
11518 | DEBUG_CFLAGS="${EFL_DEBUG_CFLAGS}" | ||
11519 | fi | ||
11520 | |||
11521 | |||
11522 | |||
11523 | ### Checks for programs | ||
11524 | ac_ext=c | ||
11525 | ac_cpp='$CPP $CPPFLAGS' | ||
11526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11529 | if test -n "$ac_tool_prefix"; then | ||
11530 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
11531 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11533 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11534 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11535 | $as_echo_n "(cached) " >&6 | ||
11536 | else | ||
11537 | if test -n "$CC"; then | ||
11538 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11539 | else | ||
11540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11541 | for as_dir in $PATH | ||
11542 | do | ||
11543 | IFS=$as_save_IFS | ||
11544 | test -z "$as_dir" && as_dir=. | ||
11545 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11547 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
11548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11549 | break 2 | ||
11550 | fi | ||
11551 | done | ||
11552 | done | ||
11553 | IFS=$as_save_IFS | ||
11554 | |||
11555 | fi | ||
11556 | fi | ||
11557 | CC=$ac_cv_prog_CC | ||
11558 | if test -n "$CC"; then | ||
11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11560 | $as_echo "$CC" >&6; } | ||
11561 | else | ||
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11563 | $as_echo "no" >&6; } | ||
11564 | fi | ||
11565 | |||
11566 | |||
11567 | fi | ||
11568 | if test -z "$ac_cv_prog_CC"; then | ||
11569 | ac_ct_CC=$CC | ||
11570 | # Extract the first word of "gcc", so it can be a program name with args. | ||
11571 | set dummy gcc; ac_word=$2 | ||
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11573 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11574 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
11575 | $as_echo_n "(cached) " >&6 | ||
11576 | else | ||
11577 | if test -n "$ac_ct_CC"; then | ||
11578 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
11579 | else | ||
11580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11581 | for as_dir in $PATH | ||
11582 | do | ||
11583 | IFS=$as_save_IFS | ||
11584 | test -z "$as_dir" && as_dir=. | ||
11585 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11587 | ac_cv_prog_ac_ct_CC="gcc" | ||
11588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11589 | break 2 | ||
11590 | fi | ||
11591 | done | ||
11592 | done | ||
11593 | IFS=$as_save_IFS | ||
11594 | |||
11595 | fi | ||
11596 | fi | ||
11597 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
11598 | if test -n "$ac_ct_CC"; then | ||
11599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
11600 | $as_echo "$ac_ct_CC" >&6; } | ||
11601 | else | ||
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11603 | $as_echo "no" >&6; } | ||
11604 | fi | ||
11605 | |||
11606 | if test "x$ac_ct_CC" = x; then | ||
11607 | CC="" | ||
11608 | else | ||
11609 | case $cross_compiling:$ac_tool_warned in | ||
11610 | yes:) | ||
11611 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11612 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11613 | ac_tool_warned=yes ;; | ||
11614 | esac | ||
11615 | CC=$ac_ct_CC | ||
11616 | fi | ||
11617 | else | ||
11618 | CC="$ac_cv_prog_CC" | ||
11619 | fi | ||
11620 | |||
11621 | if test -z "$CC"; then | ||
11622 | if test -n "$ac_tool_prefix"; then | ||
11623 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
11624 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11626 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11627 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11628 | $as_echo_n "(cached) " >&6 | ||
11629 | else | ||
11630 | if test -n "$CC"; then | ||
11631 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11632 | else | ||
11633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11634 | for as_dir in $PATH | ||
11635 | do | ||
11636 | IFS=$as_save_IFS | ||
11637 | test -z "$as_dir" && as_dir=. | ||
11638 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11640 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
11641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11642 | break 2 | ||
11643 | fi | ||
11644 | done | ||
11645 | done | ||
11646 | IFS=$as_save_IFS | ||
11647 | |||
11648 | fi | ||
11649 | fi | ||
11650 | CC=$ac_cv_prog_CC | ||
11651 | if test -n "$CC"; then | ||
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11653 | $as_echo "$CC" >&6; } | ||
11654 | else | ||
11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11656 | $as_echo "no" >&6; } | ||
11657 | fi | ||
11658 | |||
11659 | |||
11660 | fi | ||
11661 | fi | ||
11662 | if test -z "$CC"; then | ||
11663 | # Extract the first word of "cc", so it can be a program name with args. | ||
11664 | set dummy cc; ac_word=$2 | ||
11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11666 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11667 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11668 | $as_echo_n "(cached) " >&6 | ||
11669 | else | ||
11670 | if test -n "$CC"; then | ||
11671 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11672 | else | ||
11673 | ac_prog_rejected=no | ||
11674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11675 | for as_dir in $PATH | ||
11676 | do | ||
11677 | IFS=$as_save_IFS | ||
11678 | test -z "$as_dir" && as_dir=. | ||
11679 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11681 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
11682 | ac_prog_rejected=yes | ||
11683 | continue | ||
11684 | fi | ||
11685 | ac_cv_prog_CC="cc" | ||
11686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11687 | break 2 | ||
11688 | fi | ||
11689 | done | ||
11690 | done | ||
11691 | IFS=$as_save_IFS | ||
11692 | |||
11693 | if test $ac_prog_rejected = yes; then | ||
11694 | # We found a bogon in the path, so make sure we never use it. | ||
11695 | set dummy $ac_cv_prog_CC | ||
11696 | shift | ||
11697 | if test $# != 0; then | ||
11698 | # We chose a different compiler from the bogus one. | ||
11699 | # However, it has the same basename, so the bogon will be chosen | ||
11700 | # first if we set CC to just the basename; use the full file name. | ||
11701 | shift | ||
11702 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
11703 | fi | ||
11704 | fi | ||
11705 | fi | ||
11706 | fi | ||
11707 | CC=$ac_cv_prog_CC | ||
11708 | if test -n "$CC"; then | ||
11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11710 | $as_echo "$CC" >&6; } | ||
11711 | else | ||
11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11713 | $as_echo "no" >&6; } | ||
11714 | fi | ||
11715 | |||
11716 | |||
11717 | fi | ||
11718 | if test -z "$CC"; then | ||
11719 | if test -n "$ac_tool_prefix"; then | ||
11720 | for ac_prog in cl.exe | ||
11721 | do | ||
11722 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
11723 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11725 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11726 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
11727 | $as_echo_n "(cached) " >&6 | ||
11728 | else | ||
11729 | if test -n "$CC"; then | ||
11730 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
11731 | else | ||
11732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11733 | for as_dir in $PATH | ||
11734 | do | ||
11735 | IFS=$as_save_IFS | ||
11736 | test -z "$as_dir" && as_dir=. | ||
11737 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11739 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
11740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11741 | break 2 | ||
11742 | fi | ||
11743 | done | ||
11744 | done | ||
11745 | IFS=$as_save_IFS | ||
11746 | |||
11747 | fi | ||
11748 | fi | ||
11749 | CC=$ac_cv_prog_CC | ||
11750 | if test -n "$CC"; then | ||
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
11752 | $as_echo "$CC" >&6; } | ||
11753 | else | ||
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11755 | $as_echo "no" >&6; } | ||
11756 | fi | ||
11757 | |||
11758 | |||
11759 | test -n "$CC" && break | ||
11760 | done | ||
11761 | fi | ||
11762 | if test -z "$CC"; then | ||
11763 | ac_ct_CC=$CC | ||
11764 | for ac_prog in cl.exe | ||
11765 | do | ||
11766 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
11767 | set dummy $ac_prog; ac_word=$2 | ||
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
11769 | $as_echo_n "checking for $ac_word... " >&6; } | ||
11770 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
11771 | $as_echo_n "(cached) " >&6 | ||
11772 | else | ||
11773 | if test -n "$ac_ct_CC"; then | ||
11774 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
11775 | else | ||
11776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
11777 | for as_dir in $PATH | ||
11778 | do | ||
11779 | IFS=$as_save_IFS | ||
11780 | test -z "$as_dir" && as_dir=. | ||
11781 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
11782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
11783 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
11784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
11785 | break 2 | ||
11786 | fi | ||
11787 | done | ||
11788 | done | ||
11789 | IFS=$as_save_IFS | ||
11790 | |||
11791 | fi | ||
11792 | fi | ||
11793 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
11794 | if test -n "$ac_ct_CC"; then | ||
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
11796 | $as_echo "$ac_ct_CC" >&6; } | ||
11797 | else | ||
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11799 | $as_echo "no" >&6; } | ||
11800 | fi | ||
11801 | |||
11802 | |||
11803 | test -n "$ac_ct_CC" && break | ||
11804 | done | ||
11805 | |||
11806 | if test "x$ac_ct_CC" = x; then | ||
11807 | CC="" | ||
11808 | else | ||
11809 | case $cross_compiling:$ac_tool_warned in | ||
11810 | yes:) | ||
11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
11812 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
11813 | ac_tool_warned=yes ;; | ||
11814 | esac | ||
11815 | CC=$ac_ct_CC | ||
11816 | fi | ||
11817 | fi | ||
11818 | |||
11819 | fi | ||
11820 | |||
11821 | |||
11822 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
11823 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11824 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
11825 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
11826 | |||
11827 | # Provide some information about the compiler. | ||
11828 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
11829 | set X $ac_compile | ||
11830 | ac_compiler=$2 | ||
11831 | for ac_option in --version -v -V -qversion; do | ||
11832 | { { ac_try="$ac_compiler $ac_option >&5" | ||
11833 | case "(($ac_try" in | ||
11834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11835 | *) ac_try_echo=$ac_try;; | ||
11836 | esac | ||
11837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
11838 | $as_echo "$ac_try_echo"; } >&5 | ||
11839 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
11840 | ac_status=$? | ||
11841 | if test -s conftest.err; then | ||
11842 | sed '10a\ | ||
11843 | ... rest of stderr output deleted ... | ||
11844 | 10q' conftest.err >conftest.er1 | ||
11845 | cat conftest.er1 >&5 | ||
11846 | fi | ||
11847 | rm -f conftest.er1 conftest.err | ||
11848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11849 | test $ac_status = 0; } | ||
11850 | done | ||
11851 | |||
11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
11853 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
11854 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
11855 | $as_echo_n "(cached) " >&6 | ||
11856 | else | ||
11857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11858 | /* end confdefs.h. */ | ||
11859 | |||
11860 | int | ||
11861 | main () | ||
11862 | { | ||
11863 | #ifndef __GNUC__ | ||
11864 | choke me | ||
11865 | #endif | ||
11866 | |||
11867 | ; | ||
11868 | return 0; | ||
11869 | } | ||
11870 | _ACEOF | ||
11871 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11872 | ac_compiler_gnu=yes | ||
11873 | else | ||
11874 | ac_compiler_gnu=no | ||
11875 | fi | ||
11876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11877 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
11878 | |||
11879 | fi | ||
11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
11881 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
11882 | if test $ac_compiler_gnu = yes; then | ||
11883 | GCC=yes | ||
11884 | else | ||
11885 | GCC= | ||
11886 | fi | ||
11887 | ac_test_CFLAGS=${CFLAGS+set} | ||
11888 | ac_save_CFLAGS=$CFLAGS | ||
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
11890 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
11891 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
11892 | $as_echo_n "(cached) " >&6 | ||
11893 | else | ||
11894 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
11895 | ac_c_werror_flag=yes | ||
11896 | ac_cv_prog_cc_g=no | ||
11897 | CFLAGS="-g" | ||
11898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11899 | /* end confdefs.h. */ | ||
11900 | |||
11901 | int | ||
11902 | main () | ||
11903 | { | ||
11904 | |||
11905 | ; | ||
11906 | return 0; | ||
11907 | } | ||
11908 | _ACEOF | ||
11909 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11910 | ac_cv_prog_cc_g=yes | ||
11911 | else | ||
11912 | CFLAGS="" | ||
11913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11914 | /* end confdefs.h. */ | ||
11915 | |||
11916 | int | ||
11917 | main () | ||
11918 | { | ||
11919 | |||
11920 | ; | ||
11921 | return 0; | ||
11922 | } | ||
11923 | _ACEOF | ||
11924 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11925 | |||
11926 | else | ||
11927 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
11928 | CFLAGS="-g" | ||
11929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11930 | /* end confdefs.h. */ | ||
11931 | |||
11932 | int | ||
11933 | main () | ||
11934 | { | ||
11935 | |||
11936 | ; | ||
11937 | return 0; | ||
11938 | } | ||
11939 | _ACEOF | ||
11940 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11941 | ac_cv_prog_cc_g=yes | ||
11942 | fi | ||
11943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11944 | fi | ||
11945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11946 | fi | ||
11947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11948 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
11949 | fi | ||
11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
11951 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
11952 | if test "$ac_test_CFLAGS" = set; then | ||
11953 | CFLAGS=$ac_save_CFLAGS | ||
11954 | elif test $ac_cv_prog_cc_g = yes; then | ||
11955 | if test "$GCC" = yes; then | ||
11956 | CFLAGS="-g -O2" | ||
11957 | else | ||
11958 | CFLAGS="-g" | ||
11959 | fi | ||
11960 | else | ||
11961 | if test "$GCC" = yes; then | ||
11962 | CFLAGS="-O2" | ||
11963 | else | ||
11964 | CFLAGS= | ||
11965 | fi | ||
11966 | fi | ||
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
11968 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
11969 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
11970 | $as_echo_n "(cached) " >&6 | ||
11971 | else | ||
11972 | ac_cv_prog_cc_c89=no | ||
11973 | ac_save_CC=$CC | ||
11974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11975 | /* end confdefs.h. */ | ||
11976 | #include <stdarg.h> | ||
11977 | #include <stdio.h> | ||
11978 | #include <sys/types.h> | ||
11979 | #include <sys/stat.h> | ||
11980 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
11981 | struct buf { int x; }; | ||
11982 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
11983 | static char *e (p, i) | ||
11984 | char **p; | ||
11985 | int i; | ||
11986 | { | ||
11987 | return p[i]; | ||
11988 | } | ||
11989 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
11990 | { | ||
11991 | char *s; | ||
11992 | va_list v; | ||
11993 | va_start (v,p); | ||
11994 | s = g (p, va_arg (v,int)); | ||
11995 | va_end (v); | ||
11996 | return s; | ||
11997 | } | ||
11998 | |||
11999 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
12000 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
12001 | These don't provoke an error unfortunately, instead are silently treated | ||
12002 | as 'x'. The following induces an error, until -std is added to get | ||
12003 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
12004 | array size at least. It's necessary to write '\x00'==0 to get something | ||
12005 | that's true only with -std. */ | ||
12006 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
12007 | |||
12008 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
12009 | inside strings and character constants. */ | ||
12010 | #define FOO(x) 'x' | ||
12011 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
12012 | |||
12013 | int test (int i, double x); | ||
12014 | struct s1 {int (*f) (int a);}; | ||
12015 | struct s2 {int (*f) (double a);}; | ||
12016 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
12017 | int argc; | ||
12018 | char **argv; | ||
12019 | int | ||
12020 | main () | ||
12021 | { | ||
12022 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
12023 | ; | ||
12024 | return 0; | ||
12025 | } | ||
12026 | _ACEOF | ||
12027 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
12028 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
12029 | do | ||
12030 | CC="$ac_save_CC $ac_arg" | ||
12031 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12032 | ac_cv_prog_cc_c89=$ac_arg | ||
12033 | fi | ||
12034 | rm -f core conftest.err conftest.$ac_objext | ||
12035 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
12036 | done | ||
12037 | rm -f conftest.$ac_ext | ||
12038 | CC=$ac_save_CC | ||
12039 | |||
12040 | fi | ||
12041 | # AC_CACHE_VAL | ||
12042 | case "x$ac_cv_prog_cc_c89" in | ||
12043 | x) | ||
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
12045 | $as_echo "none needed" >&6; } ;; | ||
12046 | xno) | ||
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
12048 | $as_echo "unsupported" >&6; } ;; | ||
12049 | *) | ||
12050 | CC="$CC $ac_cv_prog_cc_c89" | ||
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
12052 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
12053 | esac | ||
12054 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
12055 | |||
12056 | fi | ||
12057 | |||
12058 | ac_ext=c | ||
12059 | ac_cpp='$CPP $CPPFLAGS' | ||
12060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12063 | |||
12064 | depcc="$CC" am_compiler_list= | ||
12065 | |||
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
12067 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
12068 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
12069 | $as_echo_n "(cached) " >&6 | ||
12070 | else | ||
12071 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
12072 | # We make a subdir and do the tests there. Otherwise we can end up | ||
12073 | # making bogus files that we don't know about and never remove. For | ||
12074 | # instance it was reported that on HP-UX the gcc test will end up | ||
12075 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
12076 | # in D'. | ||
12077 | mkdir conftest.dir | ||
12078 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
12079 | # using a relative directory. | ||
12080 | cp "$am_depcomp" conftest.dir | ||
12081 | cd conftest.dir | ||
12082 | # We will build objects and dependencies in a subdirectory because | ||
12083 | # it helps to detect inapplicable dependency modes. For instance | ||
12084 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
12085 | # side effect of compilation, but ICC will put the dependencies in | ||
12086 | # the current directory while Tru64 will put them in the object | ||
12087 | # directory. | ||
12088 | mkdir sub | ||
12089 | |||
12090 | am_cv_CC_dependencies_compiler_type=none | ||
12091 | if test "$am_compiler_list" = ""; then | ||
12092 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
12093 | fi | ||
12094 | am__universal=false | ||
12095 | case " $depcc " in #( | ||
12096 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
12097 | esac | ||
12098 | |||
12099 | for depmode in $am_compiler_list; do | ||
12100 | # Setup a source with many dependencies, because some compilers | ||
12101 | # like to wrap large dependency lists on column 80 (with \), and | ||
12102 | # we should not choose a depcomp mode which is confused by this. | ||
12103 | # | ||
12104 | # We need to recreate these files for each test, as the compiler may | ||
12105 | # overwrite some of them when testing with obscure command lines. | ||
12106 | # This happens at least with the AIX C compiler. | ||
12107 | : > sub/conftest.c | ||
12108 | for i in 1 2 3 4 5 6; do | ||
12109 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
12110 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
12111 | # Solaris 8's {/usr,}/bin/sh. | ||
12112 | touch sub/conftst$i.h | ||
12113 | done | ||
12114 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
12115 | |||
12116 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
12117 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
12118 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
12119 | # versions had trouble with output in subdirs | ||
12120 | am__obj=sub/conftest.${OBJEXT-o} | ||
12121 | am__minus_obj="-o $am__obj" | ||
12122 | case $depmode in | ||
12123 | gcc) | ||
12124 | # This depmode causes a compiler race in universal mode. | ||
12125 | test "$am__universal" = false || continue | ||
12126 | ;; | ||
12127 | nosideeffect) | ||
12128 | # after this tag, mechanisms are not by side-effect, so they'll | ||
12129 | # only be used when explicitly requested | ||
12130 | if test "x$enable_dependency_tracking" = xyes; then | ||
12131 | continue | ||
12132 | else | ||
12133 | break | ||
12134 | fi | ||
12135 | ;; | ||
12136 | msvisualcpp | msvcmsys) | ||
12137 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
12138 | # not run yet. These depmodes are late enough in the game, and | ||
12139 | # so weak that their functioning should not be impacted. | ||
12140 | am__obj=conftest.${OBJEXT-o} | ||
12141 | am__minus_obj= | ||
12142 | ;; | ||
12143 | none) break ;; | ||
12144 | esac | ||
12145 | if depmode=$depmode \ | ||
12146 | source=sub/conftest.c object=$am__obj \ | ||
12147 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
12148 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
12149 | >/dev/null 2>conftest.err && | ||
12150 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
12151 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
12152 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
12153 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
12154 | # icc doesn't choke on unknown options, it will just issue warnings | ||
12155 | # or remarks (even with -Werror). So we grep stderr for any message | ||
12156 | # that says an option was ignored or not supported. | ||
12157 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
12158 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
12159 | # The diagnosis changed in icc 8.0: | ||
12160 | # icc: Command line remark: option '-MP' not supported | ||
12161 | if (grep 'ignoring option' conftest.err || | ||
12162 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
12163 | am_cv_CC_dependencies_compiler_type=$depmode | ||
12164 | break | ||
12165 | fi | ||
12166 | fi | ||
12167 | done | ||
12168 | |||
12169 | cd .. | ||
12170 | rm -rf conftest.dir | ||
12171 | else | ||
12172 | am_cv_CC_dependencies_compiler_type=none | ||
12173 | fi | ||
12174 | |||
12175 | fi | ||
12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
12177 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
12178 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
12179 | |||
12180 | if | ||
12181 | test "x$enable_dependency_tracking" != xno \ | ||
12182 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
12183 | am__fastdepCC_TRUE= | ||
12184 | am__fastdepCC_FALSE='#' | ||
12185 | else | ||
12186 | am__fastdepCC_TRUE='#' | ||
12187 | am__fastdepCC_FALSE= | ||
12188 | fi | ||
12189 | |||
12190 | |||
12191 | |||
12192 | # pkg-config | ||
12193 | |||
12194 | |||
12195 | |||
12196 | |||
12197 | |||
12198 | |||
12199 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
12200 | if test -n "$ac_tool_prefix"; then | ||
12201 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
12202 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
12203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12204 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12205 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
12206 | $as_echo_n "(cached) " >&6 | ||
12207 | else | ||
12208 | case $PKG_CONFIG in | ||
12209 | [\\/]* | ?:[\\/]*) | ||
12210 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
12211 | ;; | ||
12212 | *) | ||
12213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12214 | for as_dir in $PATH | ||
12215 | do | ||
12216 | IFS=$as_save_IFS | ||
12217 | test -z "$as_dir" && as_dir=. | ||
12218 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12220 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12222 | break 2 | ||
12223 | fi | ||
12224 | done | ||
12225 | done | ||
12226 | IFS=$as_save_IFS | ||
12227 | |||
12228 | ;; | ||
12229 | esac | ||
12230 | fi | ||
12231 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
12232 | if test -n "$PKG_CONFIG"; then | ||
12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
12234 | $as_echo "$PKG_CONFIG" >&6; } | ||
12235 | else | ||
12236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12237 | $as_echo "no" >&6; } | ||
12238 | fi | ||
12239 | |||
12240 | |||
12241 | fi | ||
12242 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
12243 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
12244 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
12245 | set dummy pkg-config; ac_word=$2 | ||
12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12247 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12248 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
12249 | $as_echo_n "(cached) " >&6 | ||
12250 | else | ||
12251 | case $ac_pt_PKG_CONFIG in | ||
12252 | [\\/]* | ?:[\\/]*) | ||
12253 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
12254 | ;; | ||
12255 | *) | ||
12256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12257 | for as_dir in $PATH | ||
12258 | do | ||
12259 | IFS=$as_save_IFS | ||
12260 | test -z "$as_dir" && as_dir=. | ||
12261 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12263 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12265 | break 2 | ||
12266 | fi | ||
12267 | done | ||
12268 | done | ||
12269 | IFS=$as_save_IFS | ||
12270 | |||
12271 | ;; | ||
12272 | esac | ||
12273 | fi | ||
12274 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
12275 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
12277 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
12278 | else | ||
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12280 | $as_echo "no" >&6; } | ||
12281 | fi | ||
12282 | |||
12283 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
12284 | PKG_CONFIG="" | ||
12285 | else | ||
12286 | case $cross_compiling:$ac_tool_warned in | ||
12287 | yes:) | ||
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12289 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12290 | ac_tool_warned=yes ;; | ||
12291 | esac | ||
12292 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
12293 | fi | ||
12294 | else | ||
12295 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
12296 | fi | ||
12297 | |||
12298 | fi | ||
12299 | if test -n "$PKG_CONFIG"; then | ||
12300 | _pkg_min_version=0.9.0 | ||
12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
12302 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
12303 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12305 | $as_echo "yes" >&6; } | ||
12306 | else | ||
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12308 | $as_echo "no" >&6; } | ||
12309 | PKG_CONFIG="" | ||
12310 | fi | ||
12311 | fi | ||
12312 | |||
12313 | # Check whether pkg-config supports Requires.private | ||
12314 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
12315 | pkgconfig_requires_private="Requires.private" | ||
12316 | else | ||
12317 | pkgconfig_requires_private="Requires" | ||
12318 | fi | ||
12319 | |||
12320 | |||
12321 | |||
12322 | # doxygen program for documentation building | ||
12323 | |||
12324 | |||
12325 | |||
12326 | # Check whether --enable-doc was given. | ||
12327 | if test "${enable_doc+set}" = set; then : | ||
12328 | enableval=$enable_doc; | ||
12329 | if test "x${enableval}" = "xyes" ; then | ||
12330 | efl_enable_doc="yes" | ||
12331 | else | ||
12332 | efl_enable_doc="no" | ||
12333 | fi | ||
12334 | |||
12335 | else | ||
12336 | efl_enable_doc="yes" | ||
12337 | fi | ||
12338 | |||
12339 | |||
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
12341 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
12343 | $as_echo "${efl_enable_doc}" >&6; } | ||
12344 | |||
12345 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
12346 | |||
12347 | |||
12348 | efl_doxygen="doxygen" | ||
12349 | |||
12350 | |||
12351 | # Check whether --with-doxygen was given. | ||
12352 | if test "${with_doxygen+set}" = set; then : | ||
12353 | withval=$with_doxygen; | ||
12354 | efl_doxygen=${withval} | ||
12355 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
12356 | set dummy ${efl_doxygen}; ac_word=$2 | ||
12357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12358 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12359 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
12360 | $as_echo_n "(cached) " >&6 | ||
12361 | else | ||
12362 | if test -n "$efl_have_doxygen"; then | ||
12363 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
12364 | else | ||
12365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12366 | for as_dir in $PATH | ||
12367 | do | ||
12368 | IFS=$as_save_IFS | ||
12369 | test -z "$as_dir" && as_dir=. | ||
12370 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12372 | ac_cv_prog_efl_have_doxygen="yes" | ||
12373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12374 | break 2 | ||
12375 | fi | ||
12376 | done | ||
12377 | done | ||
12378 | IFS=$as_save_IFS | ||
12379 | |||
12380 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
12381 | fi | ||
12382 | fi | ||
12383 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
12384 | if test -n "$efl_have_doxygen"; then | ||
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
12386 | $as_echo "$efl_have_doxygen" >&6; } | ||
12387 | else | ||
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12389 | $as_echo "no" >&6; } | ||
12390 | fi | ||
12391 | |||
12392 | |||
12393 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
12394 | echo "WARNING:" | ||
12395 | echo "The doxygen program you specified:" | ||
12396 | echo "${efl_doxygen}" | ||
12397 | echo "was not found. Please check the path and make sure " | ||
12398 | echo "the program exists and is executable." | ||
12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
12400 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
12401 | fi | ||
12402 | |||
12403 | else | ||
12404 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
12405 | set dummy ${efl_doxygen}; ac_word=$2 | ||
12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12407 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12408 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
12409 | $as_echo_n "(cached) " >&6 | ||
12410 | else | ||
12411 | if test -n "$efl_have_doxygen"; then | ||
12412 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
12413 | else | ||
12414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12415 | for as_dir in $PATH | ||
12416 | do | ||
12417 | IFS=$as_save_IFS | ||
12418 | test -z "$as_dir" && as_dir=. | ||
12419 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12421 | ac_cv_prog_efl_have_doxygen="yes" | ||
12422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12423 | break 2 | ||
12424 | fi | ||
12425 | done | ||
12426 | done | ||
12427 | IFS=$as_save_IFS | ||
12428 | |||
12429 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
12430 | fi | ||
12431 | fi | ||
12432 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
12433 | if test -n "$efl_have_doxygen"; then | ||
12434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
12435 | $as_echo "$efl_have_doxygen" >&6; } | ||
12436 | else | ||
12437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12438 | $as_echo "no" >&6; } | ||
12439 | fi | ||
12440 | |||
12441 | |||
12442 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
12443 | echo "WARNING:" | ||
12444 | echo "The doxygen program was not found in your execute path." | ||
12445 | echo "You may have doxygen installed somewhere not covered by your path." | ||
12446 | echo "" | ||
12447 | echo "If this is the case make sure you have the packages installed, AND" | ||
12448 | echo "that the doxygen program is in your execute path (see your" | ||
12449 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
12450 | echo "alternatively, specify the program to use with --with-doxygen." | ||
12451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
12452 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
12453 | fi | ||
12454 | |||
12455 | fi | ||
12456 | |||
12457 | else | ||
12458 | efl_have_doxygen="no" | ||
12459 | fi | ||
12460 | |||
12461 | |||
12462 | |||
12463 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
12464 | efl_enable_doc="no" | ||
12465 | fi | ||
12466 | |||
12467 | if test "x${efl_have_doxygen}" = "xyes"; then | ||
12468 | EFL_BUILD_DOC_TRUE= | ||
12469 | EFL_BUILD_DOC_FALSE='#' | ||
12470 | else | ||
12471 | EFL_BUILD_DOC_TRUE='#' | ||
12472 | EFL_BUILD_DOC_FALSE= | ||
12473 | fi | ||
12474 | |||
12475 | |||
12476 | if test "x$efl_have_doxygen" = "xyes"; then : | ||
12477 | build_doc="yes" | ||
12478 | else | ||
12479 | build_doc="no" | ||
12480 | fi | ||
12481 | |||
12482 | |||
12483 | ### Checks for libraries | ||
12484 | |||
12485 | # Evil library for compilation on Windows | ||
12486 | |||
12487 | EFL_EET_BUILD="" | ||
12488 | case "$host_os" in | ||
12489 | mingw*) | ||
12490 | |||
12491 | pkg_failed=no | ||
12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
12493 | $as_echo_n "checking for EVIL... " >&6; } | ||
12494 | |||
12495 | if test -n "$EVIL_CFLAGS"; then | ||
12496 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
12497 | elif test -n "$PKG_CONFIG"; then | ||
12498 | if test -n "$PKG_CONFIG" && \ | ||
12499 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
12500 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
12501 | ac_status=$? | ||
12502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12503 | test $ac_status = 0; }; then | ||
12504 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
12505 | else | ||
12506 | pkg_failed=yes | ||
12507 | fi | ||
12508 | else | ||
12509 | pkg_failed=untried | ||
12510 | fi | ||
12511 | if test -n "$EVIL_LIBS"; then | ||
12512 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
12513 | elif test -n "$PKG_CONFIG"; then | ||
12514 | if test -n "$PKG_CONFIG" && \ | ||
12515 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
12516 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
12517 | ac_status=$? | ||
12518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12519 | test $ac_status = 0; }; then | ||
12520 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
12521 | else | ||
12522 | pkg_failed=yes | ||
12523 | fi | ||
12524 | else | ||
12525 | pkg_failed=untried | ||
12526 | fi | ||
12527 | |||
12528 | |||
12529 | |||
12530 | if test $pkg_failed = yes; then | ||
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12532 | $as_echo "no" >&6; } | ||
12533 | |||
12534 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12535 | _pkg_short_errors_supported=yes | ||
12536 | else | ||
12537 | _pkg_short_errors_supported=no | ||
12538 | fi | ||
12539 | if test $_pkg_short_errors_supported = yes; then | ||
12540 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
12541 | else | ||
12542 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
12543 | fi | ||
12544 | # Put the nasty error message in config.log where it belongs | ||
12545 | echo "$EVIL_PKG_ERRORS" >&5 | ||
12546 | |||
12547 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
12548 | |||
12549 | $EVIL_PKG_ERRORS | ||
12550 | |||
12551 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
12552 | installed software in a non-standard prefix. | ||
12553 | |||
12554 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
12555 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
12556 | See the pkg-config man page for more details." "$LINENO" 5 | ||
12557 | elif test $pkg_failed = untried; then | ||
12558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12559 | $as_echo "no" >&6; } | ||
12560 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12561 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12562 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
12563 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
12564 | path to pkg-config. | ||
12565 | |||
12566 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
12567 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
12568 | See the pkg-config man page for more details. | ||
12569 | |||
12570 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
12571 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
12572 | else | ||
12573 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
12574 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
12575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12576 | $as_echo "yes" >&6; } | ||
12577 | |||
12578 | fi | ||
12579 | |||
12580 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
12581 | |||
12582 | requirement_eet="evil ${requirement_eet}" | ||
12583 | EFL_EET_BUILD="-DEFL_EET_BUILD" | ||
12584 | ;; | ||
12585 | esac | ||
12586 | |||
12587 | |||
12588 | EET_LIBS="" | ||
12589 | case "$host_os" in | ||
12590 | mingw32ce*) | ||
12591 | EET_LIBS="-lws2" | ||
12592 | ;; | ||
12593 | mingw*) | ||
12594 | EET_LIBS="-lws2_32" | ||
12595 | ;; | ||
12596 | esac | ||
12597 | |||
12598 | |||
12599 | # Eina library | ||
12600 | |||
12601 | |||
12602 | pkg_failed=no | ||
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EINA" >&5 | ||
12604 | $as_echo_n "checking for EINA... " >&6; } | ||
12605 | |||
12606 | if test -n "$EINA_CFLAGS"; then | ||
12607 | pkg_cv_EINA_CFLAGS="$EINA_CFLAGS" | ||
12608 | elif test -n "$PKG_CONFIG"; then | ||
12609 | if test -n "$PKG_CONFIG" && \ | ||
12610 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.1.0\""; } >&5 | ||
12611 | ($PKG_CONFIG --exists --print-errors "eina >= 1.1.0") 2>&5 | ||
12612 | ac_status=$? | ||
12613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12614 | test $ac_status = 0; }; then | ||
12615 | pkg_cv_EINA_CFLAGS=`$PKG_CONFIG --cflags "eina >= 1.1.0" 2>/dev/null` | ||
12616 | else | ||
12617 | pkg_failed=yes | ||
12618 | fi | ||
12619 | else | ||
12620 | pkg_failed=untried | ||
12621 | fi | ||
12622 | if test -n "$EINA_LIBS"; then | ||
12623 | pkg_cv_EINA_LIBS="$EINA_LIBS" | ||
12624 | elif test -n "$PKG_CONFIG"; then | ||
12625 | if test -n "$PKG_CONFIG" && \ | ||
12626 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.1.0\""; } >&5 | ||
12627 | ($PKG_CONFIG --exists --print-errors "eina >= 1.1.0") 2>&5 | ||
12628 | ac_status=$? | ||
12629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12630 | test $ac_status = 0; }; then | ||
12631 | pkg_cv_EINA_LIBS=`$PKG_CONFIG --libs "eina >= 1.1.0" 2>/dev/null` | ||
12632 | else | ||
12633 | pkg_failed=yes | ||
12634 | fi | ||
12635 | else | ||
12636 | pkg_failed=untried | ||
12637 | fi | ||
12638 | |||
12639 | |||
12640 | |||
12641 | if test $pkg_failed = yes; then | ||
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12643 | $as_echo "no" >&6; } | ||
12644 | |||
12645 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12646 | _pkg_short_errors_supported=yes | ||
12647 | else | ||
12648 | _pkg_short_errors_supported=no | ||
12649 | fi | ||
12650 | if test $_pkg_short_errors_supported = yes; then | ||
12651 | EINA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eina >= 1.1.0" 2>&1` | ||
12652 | else | ||
12653 | EINA_PKG_ERRORS=`$PKG_CONFIG --print-errors "eina >= 1.1.0" 2>&1` | ||
12654 | fi | ||
12655 | # Put the nasty error message in config.log where it belongs | ||
12656 | echo "$EINA_PKG_ERRORS" >&5 | ||
12657 | |||
12658 | as_fn_error $? "Package requirements (eina >= 1.1.0) were not met: | ||
12659 | |||
12660 | $EINA_PKG_ERRORS | ||
12661 | |||
12662 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
12663 | installed software in a non-standard prefix. | ||
12664 | |||
12665 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
12666 | and EINA_LIBS to avoid the need to call pkg-config. | ||
12667 | See the pkg-config man page for more details." "$LINENO" 5 | ||
12668 | elif test $pkg_failed = untried; then | ||
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12670 | $as_echo "no" >&6; } | ||
12671 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12672 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12673 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
12674 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
12675 | path to pkg-config. | ||
12676 | |||
12677 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
12678 | and EINA_LIBS to avoid the need to call pkg-config. | ||
12679 | See the pkg-config man page for more details. | ||
12680 | |||
12681 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
12682 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
12683 | else | ||
12684 | EINA_CFLAGS=$pkg_cv_EINA_CFLAGS | ||
12685 | EINA_LIBS=$pkg_cv_EINA_LIBS | ||
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12687 | $as_echo "yes" >&6; } | ||
12688 | |||
12689 | fi | ||
12690 | requirement_eet="eina >= 1.1.0 ${requirement_eet}" | ||
12691 | |||
12692 | # Gnutls library | ||
12693 | have_gnutls="no" | ||
12694 | if test "x${want_gnutls}" = "xyes" || test "x${want_gnutls}" = "xauto" ; then | ||
12695 | |||
12696 | pkg_failed=no | ||
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 | ||
12698 | $as_echo_n "checking for GNUTLS... " >&6; } | ||
12699 | |||
12700 | if test -n "$GNUTLS_CFLAGS"; then | ||
12701 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" | ||
12702 | elif test -n "$PKG_CONFIG"; then | ||
12703 | if test -n "$PKG_CONFIG" && \ | ||
12704 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.7.6\""; } >&5 | ||
12705 | ($PKG_CONFIG --exists --print-errors "gnutls >= 1.7.6") 2>&5 | ||
12706 | ac_status=$? | ||
12707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12708 | test $ac_status = 0; }; then | ||
12709 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.7.6" 2>/dev/null` | ||
12710 | else | ||
12711 | pkg_failed=yes | ||
12712 | fi | ||
12713 | else | ||
12714 | pkg_failed=untried | ||
12715 | fi | ||
12716 | if test -n "$GNUTLS_LIBS"; then | ||
12717 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" | ||
12718 | elif test -n "$PKG_CONFIG"; then | ||
12719 | if test -n "$PKG_CONFIG" && \ | ||
12720 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.7.6\""; } >&5 | ||
12721 | ($PKG_CONFIG --exists --print-errors "gnutls >= 1.7.6") 2>&5 | ||
12722 | ac_status=$? | ||
12723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12724 | test $ac_status = 0; }; then | ||
12725 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.7.6" 2>/dev/null` | ||
12726 | else | ||
12727 | pkg_failed=yes | ||
12728 | fi | ||
12729 | else | ||
12730 | pkg_failed=untried | ||
12731 | fi | ||
12732 | |||
12733 | |||
12734 | |||
12735 | if test $pkg_failed = yes; then | ||
12736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12737 | $as_echo "no" >&6; } | ||
12738 | |||
12739 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12740 | _pkg_short_errors_supported=yes | ||
12741 | else | ||
12742 | _pkg_short_errors_supported=no | ||
12743 | fi | ||
12744 | if test $_pkg_short_errors_supported = yes; then | ||
12745 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.7.6" 2>&1` | ||
12746 | else | ||
12747 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.7.6" 2>&1` | ||
12748 | fi | ||
12749 | # Put the nasty error message in config.log where it belongs | ||
12750 | echo "$GNUTLS_PKG_ERRORS" >&5 | ||
12751 | |||
12752 | have_gnutls="no" | ||
12753 | elif test $pkg_failed = untried; then | ||
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12755 | $as_echo "no" >&6; } | ||
12756 | have_gnutls="no" | ||
12757 | else | ||
12758 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS | ||
12759 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS | ||
12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12761 | $as_echo "yes" >&6; } | ||
12762 | |||
12763 | have_gnutls="yes" | ||
12764 | want_openssl="no" | ||
12765 | |||
12766 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | ||
12767 | |||
12768 | requirement_eet="gnutls ${requirement_eet}" | ||
12769 | |||
12770 | fi | ||
12771 | if test "x${have_gnutls}" = "xyes" ; then | ||
12772 | |||
12773 | |||
12774 | # Check whether --with-libgcrypt-prefix was given. | ||
12775 | if test "${with_libgcrypt_prefix+set}" = set; then : | ||
12776 | withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" | ||
12777 | else | ||
12778 | libgcrypt_config_prefix="" | ||
12779 | fi | ||
12780 | |||
12781 | |||
12782 | # Check whether --with-libgcrypt-exec-prefix was given. | ||
12783 | if test "${with_libgcrypt_exec_prefix+set}" = set; then : | ||
12784 | withval=$with_libgcrypt_exec_prefix; libgcrypt_config_exec_prefix="$withval" | ||
12785 | else | ||
12786 | libgcrypt_config_exec_prefix="" | ||
12787 | fi | ||
12788 | |||
12789 | |||
12790 | if test x$libgcrypt_config_exec_prefix != x ; then | ||
12791 | libgcrypt_config_args="$libgcrypt_config_args --exec-prefix=$libgcrypt_config_exec_prefix" | ||
12792 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
12793 | LIBGCRYPT_CONFIG=$libgcrypt_config_exec_prefix/bin/libgcrypt-config | ||
12794 | fi | ||
12795 | fi | ||
12796 | if test x$libgcrypt_config_prefix != x ; then | ||
12797 | libgcrypt_config_args="$libgcrypt_config_args --prefix=$libgcrypt_config_prefix" | ||
12798 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then | ||
12799 | LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config | ||
12800 | fi | ||
12801 | fi | ||
12802 | |||
12803 | # Extract the first word of "libgcrypt-config", so it can be a program name with args. | ||
12804 | set dummy libgcrypt-config; ac_word=$2 | ||
12805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12806 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12807 | if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then : | ||
12808 | $as_echo_n "(cached) " >&6 | ||
12809 | else | ||
12810 | case $LIBGCRYPT_CONFIG in | ||
12811 | [\\/]* | ?:[\\/]*) | ||
12812 | ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. | ||
12813 | ;; | ||
12814 | *) | ||
12815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12816 | for as_dir in $PATH | ||
12817 | do | ||
12818 | IFS=$as_save_IFS | ||
12819 | test -z "$as_dir" && as_dir=. | ||
12820 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12822 | ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
12823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12824 | break 2 | ||
12825 | fi | ||
12826 | done | ||
12827 | done | ||
12828 | IFS=$as_save_IFS | ||
12829 | |||
12830 | test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" | ||
12831 | ;; | ||
12832 | esac | ||
12833 | fi | ||
12834 | LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG | ||
12835 | if test -n "$LIBGCRYPT_CONFIG"; then | ||
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 | ||
12837 | $as_echo "$LIBGCRYPT_CONFIG" >&6; } | ||
12838 | else | ||
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12840 | $as_echo "no" >&6; } | ||
12841 | fi | ||
12842 | |||
12843 | |||
12844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5 | ||
12845 | $as_echo_n "checking for libgcrypt... " >&6; } | ||
12846 | no_libgcrypt="" | ||
12847 | if test "$LIBGCRYPT_CONFIG" = "no" ; then | ||
12848 | no_libgcrypt=yes | ||
12849 | else | ||
12850 | LIBGCRYPT_CFLAGS="`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`" | ||
12851 | LIBGCRYPT_LIBS="`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`" | ||
12852 | |||
12853 | fi | ||
12854 | if test "x$no_libgcrypt" = x ; then | ||
12855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12856 | $as_echo "yes" >&6; } | ||
12857 | have_gnutls="yes" | ||
12858 | else | ||
12859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12860 | $as_echo "no" >&6; } | ||
12861 | if test "$LIBGCRYPT_CONFIG" = "no" ; then | ||
12862 | echo "*** The libgcrypt-config script installed by libgcrypt could not be found" | ||
12863 | echo "*** If libgcrypt was installed in PREFIX, make sure PREFIX/bin is in" | ||
12864 | echo "*** your path, or set the LIBGCRYPT_CONFIG environment variable to the" | ||
12865 | echo "*** full path to libgcrypt-config." | ||
12866 | fi | ||
12867 | LIBGCRYPT_CFLAGS="" | ||
12868 | LIBGCRYPT_LIBS="" | ||
12869 | have_gnutls="no" | ||
12870 | fi | ||
12871 | |||
12872 | |||
12873 | |||
12874 | |||
12875 | |||
12876 | |||
12877 | if test "x${have_gnutls}" = "xyes" ; then | ||
12878 | GNUTLS_CFLAGS="${GNUTLS_CFLAGS} ${LIBGCRYPT_CFLAGS}" | ||
12879 | GNUTLS_LIBS="${GNUTLS_LIBS} ${LIBGCRYPT_LIBS}" | ||
12880 | fi | ||
12881 | fi | ||
12882 | fi | ||
12883 | |||
12884 | # Openssl library | ||
12885 | have_openssl="no" | ||
12886 | if test "x${want_openssl}" = "xyes" || test "x${want_openssl}" = "xauto" ; then | ||
12887 | |||
12888 | pkg_failed=no | ||
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 | ||
12890 | $as_echo_n "checking for OPENSSL... " >&6; } | ||
12891 | |||
12892 | if test -n "$OPENSSL_CFLAGS"; then | ||
12893 | pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" | ||
12894 | elif test -n "$PKG_CONFIG"; then | ||
12895 | if test -n "$PKG_CONFIG" && \ | ||
12896 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | ||
12897 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | ||
12898 | ac_status=$? | ||
12899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12900 | test $ac_status = 0; }; then | ||
12901 | pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` | ||
12902 | else | ||
12903 | pkg_failed=yes | ||
12904 | fi | ||
12905 | else | ||
12906 | pkg_failed=untried | ||
12907 | fi | ||
12908 | if test -n "$OPENSSL_LIBS"; then | ||
12909 | pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" | ||
12910 | elif test -n "$PKG_CONFIG"; then | ||
12911 | if test -n "$PKG_CONFIG" && \ | ||
12912 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | ||
12913 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | ||
12914 | ac_status=$? | ||
12915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12916 | test $ac_status = 0; }; then | ||
12917 | pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` | ||
12918 | else | ||
12919 | pkg_failed=yes | ||
12920 | fi | ||
12921 | else | ||
12922 | pkg_failed=untried | ||
12923 | fi | ||
12924 | |||
12925 | |||
12926 | |||
12927 | if test $pkg_failed = yes; then | ||
12928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12929 | $as_echo "no" >&6; } | ||
12930 | |||
12931 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
12932 | _pkg_short_errors_supported=yes | ||
12933 | else | ||
12934 | _pkg_short_errors_supported=no | ||
12935 | fi | ||
12936 | if test $_pkg_short_errors_supported = yes; then | ||
12937 | OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1` | ||
12938 | else | ||
12939 | OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1` | ||
12940 | fi | ||
12941 | # Put the nasty error message in config.log where it belongs | ||
12942 | echo "$OPENSSL_PKG_ERRORS" >&5 | ||
12943 | |||
12944 | have_openssl="no" | ||
12945 | elif test $pkg_failed = untried; then | ||
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12947 | $as_echo "no" >&6; } | ||
12948 | have_openssl="no" | ||
12949 | else | ||
12950 | OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS | ||
12951 | OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS | ||
12952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12953 | $as_echo "yes" >&6; } | ||
12954 | |||
12955 | have_openssl="yes" | ||
12956 | |||
12957 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
12958 | |||
12959 | requirement_eet="openssl ${requirement_eet}" | ||
12960 | |||
12961 | fi | ||
12962 | fi | ||
12963 | |||
12964 | if test "x${have_gnutls}" = "xyes" ; then | ||
12965 | secure_layer="GnuTLS" | ||
12966 | elif test "x${have_openssl}" = "xyes" ; then | ||
12967 | secure_layer="OpenSSL" | ||
12968 | else | ||
12969 | secure_layer="no" | ||
12970 | fi | ||
12971 | |||
12972 | have_cipher="no" | ||
12973 | if test "x${have_gnutls}" = "xyes" && test "x${want_cipher}" = "xyes" ; then | ||
12974 | have_cipher="yes" | ||
12975 | |||
12976 | $as_echo "#define HAVE_CIPHER 1" >>confdefs.h | ||
12977 | |||
12978 | elif test "x${have_openssl}" = "xyes" && test "x${want_cipher}" = "xyes" ; then | ||
12979 | have_cipher="yes" | ||
12980 | |||
12981 | $as_echo "#define HAVE_CIPHER 1" >>confdefs.h | ||
12982 | |||
12983 | fi | ||
12984 | |||
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate cipher support in eet" >&5 | ||
12986 | $as_echo_n "checking whether to activate cipher support in eet... " >&6; } | ||
12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_cipher}" >&5 | ||
12988 | $as_echo "${have_cipher}" >&6; } | ||
12989 | |||
12990 | have_signature="no" | ||
12991 | if test "x${have_gnutls}" = "xyes" && test "x${want_signature}" = "xyes" ; then | ||
12992 | have_signature="yes" | ||
12993 | |||
12994 | $as_echo "#define HAVE_SIGNATURE 1" >>confdefs.h | ||
12995 | |||
12996 | elif test "x${have_openssl}" = "xyes" && test "x${want_signature}" = "xyes" ; then | ||
12997 | have_signature="yes" | ||
12998 | |||
12999 | $as_echo "#define HAVE_SIGNATURE 1" >>confdefs.h | ||
13000 | |||
13001 | fi | ||
13002 | |||
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate signature support in eet" >&5 | ||
13004 | $as_echo_n "checking whether to activate signature support in eet... " >&6; } | ||
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_signature}" >&5 | ||
13006 | $as_echo "${have_signature}" >&6; } | ||
13007 | |||
13008 | ### Checks for header files | ||
13009 | |||
13010 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
13011 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | ||
13012 | dummy="yes" | ||
13013 | else | ||
13014 | as_fn_error $? "\"Cannot find zlib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file\"" "$LINENO" 5 | ||
13015 | fi | ||
13016 | |||
13017 | |||
13018 | |||
13019 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" | ||
13020 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then : | ||
13021 | dummy="yes" | ||
13022 | else | ||
13023 | as_fn_error $? "\"Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file\"" "$LINENO" 5 | ||
13024 | fi | ||
13025 | |||
13026 | |||
13027 | |||
13028 | for ac_header in netinet/in.h unistd.h | ||
13029 | do : | ||
13030 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13031 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
13032 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
13033 | cat >>confdefs.h <<_ACEOF | ||
13034 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13035 | _ACEOF | ||
13036 | |||
13037 | fi | ||
13038 | |||
13039 | done | ||
13040 | |||
13041 | |||
13042 | |||
13043 | default_max="4096" | ||
13044 | ac_ext=c | ||
13045 | ac_cpp='$CPP $CPPFLAGS' | ||
13046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13049 | |||
13050 | |||
13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
13052 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
13053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13054 | /* end confdefs.h. */ | ||
13055 | |||
13056 | #include <limits.h> | ||
13057 | |||
13058 | int | ||
13059 | main () | ||
13060 | { | ||
13061 | |||
13062 | int i = PATH_MAX; | ||
13063 | |||
13064 | ; | ||
13065 | return 0; | ||
13066 | } | ||
13067 | _ACEOF | ||
13068 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13070 | $as_echo "yes" >&6; } | ||
13071 | else | ||
13072 | |||
13073 | |||
13074 | cat >>confdefs.h <<_ACEOF | ||
13075 | #define PATH_MAX ${default_max} | ||
13076 | _ACEOF | ||
13077 | |||
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
13079 | $as_echo "no: using ${default_max}" >&6; } | ||
13080 | |||
13081 | fi | ||
13082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13083 | |||
13084 | ac_ext=c | ||
13085 | ac_cpp='$CPP $CPPFLAGS' | ||
13086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13089 | |||
13090 | |||
13091 | |||
13092 | |||
13093 | ### Checks for types | ||
13094 | |||
13095 | |||
13096 | ### Checks for structures | ||
13097 | |||
13098 | |||
13099 | ### Checks for compiler characteristics | ||
13100 | if test "x$CC" != xcc; then | ||
13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | ||
13102 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | ||
13103 | else | ||
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | ||
13105 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | ||
13106 | fi | ||
13107 | set dummy $CC; ac_cc=`$as_echo "$2" | | ||
13108 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
13109 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : | ||
13110 | $as_echo_n "(cached) " >&6 | ||
13111 | else | ||
13112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13113 | /* end confdefs.h. */ | ||
13114 | |||
13115 | int | ||
13116 | main () | ||
13117 | { | ||
13118 | |||
13119 | ; | ||
13120 | return 0; | ||
13121 | } | ||
13122 | _ACEOF | ||
13123 | # Make sure it works both with $CC and with simple cc. | ||
13124 | # We do the test twice because some compilers refuse to overwrite an | ||
13125 | # existing .o file with -o, though they will create one. | ||
13126 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
13127 | rm -f conftest2.* | ||
13128 | if { { case "(($ac_try" in | ||
13129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13130 | *) ac_try_echo=$ac_try;; | ||
13131 | esac | ||
13132 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13133 | $as_echo "$ac_try_echo"; } >&5 | ||
13134 | (eval "$ac_try") 2>&5 | ||
13135 | ac_status=$? | ||
13136 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13137 | test $ac_status = 0; } && | ||
13138 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
13139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13140 | *) ac_try_echo=$ac_try;; | ||
13141 | esac | ||
13142 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13143 | $as_echo "$ac_try_echo"; } >&5 | ||
13144 | (eval "$ac_try") 2>&5 | ||
13145 | ac_status=$? | ||
13146 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13147 | test $ac_status = 0; }; | ||
13148 | then | ||
13149 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | ||
13150 | if test "x$CC" != xcc; then | ||
13151 | # Test first that cc exists at all. | ||
13152 | if { ac_try='cc -c conftest.$ac_ext >&5' | ||
13153 | { { case "(($ac_try" in | ||
13154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13155 | *) ac_try_echo=$ac_try;; | ||
13156 | esac | ||
13157 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13158 | $as_echo "$ac_try_echo"; } >&5 | ||
13159 | (eval "$ac_try") 2>&5 | ||
13160 | ac_status=$? | ||
13161 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13162 | test $ac_status = 0; }; }; then | ||
13163 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
13164 | rm -f conftest2.* | ||
13165 | if { { case "(($ac_try" in | ||
13166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13167 | *) ac_try_echo=$ac_try;; | ||
13168 | esac | ||
13169 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13170 | $as_echo "$ac_try_echo"; } >&5 | ||
13171 | (eval "$ac_try") 2>&5 | ||
13172 | ac_status=$? | ||
13173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13174 | test $ac_status = 0; } && | ||
13175 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
13176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13177 | *) ac_try_echo=$ac_try;; | ||
13178 | esac | ||
13179 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13180 | $as_echo "$ac_try_echo"; } >&5 | ||
13181 | (eval "$ac_try") 2>&5 | ||
13182 | ac_status=$? | ||
13183 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13184 | test $ac_status = 0; }; | ||
13185 | then | ||
13186 | # cc works too. | ||
13187 | : | ||
13188 | else | ||
13189 | # cc exists but doesn't like -o. | ||
13190 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
13191 | fi | ||
13192 | fi | ||
13193 | fi | ||
13194 | else | ||
13195 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
13196 | fi | ||
13197 | rm -f core conftest* | ||
13198 | |||
13199 | fi | ||
13200 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | ||
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13202 | $as_echo "yes" >&6; } | ||
13203 | else | ||
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13205 | $as_echo "no" >&6; } | ||
13206 | |||
13207 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | ||
13208 | |||
13209 | fi | ||
13210 | |||
13211 | # FIXME: we rely on the cache variable name because | ||
13212 | # there is no other way. | ||
13213 | set dummy $CC | ||
13214 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
13215 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
13216 | if test "$am_t" != yes; then | ||
13217 | # Losing compiler, so override with the script. | ||
13218 | # FIXME: It is wrong to rewrite CC. | ||
13219 | # But if we don't then we get into trouble of one sort or another. | ||
13220 | # A longer-term fix would be to have automake use am__CC in this case, | ||
13221 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
13222 | CC="$am_aux_dir/compile $CC" | ||
13223 | fi | ||
13224 | |||
13225 | |||
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
13227 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
13228 | if test "${ac_cv_c_const+set}" = set; then : | ||
13229 | $as_echo_n "(cached) " >&6 | ||
13230 | else | ||
13231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13232 | /* end confdefs.h. */ | ||
13233 | |||
13234 | int | ||
13235 | main () | ||
13236 | { | ||
13237 | /* FIXME: Include the comments suggested by Paul. */ | ||
13238 | #ifndef __cplusplus | ||
13239 | /* Ultrix mips cc rejects this. */ | ||
13240 | typedef int charset[2]; | ||
13241 | const charset cs; | ||
13242 | /* SunOS 4.1.1 cc rejects this. */ | ||
13243 | char const *const *pcpcc; | ||
13244 | char **ppc; | ||
13245 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
13246 | struct point {int x, y;}; | ||
13247 | static struct point const zero = {0,0}; | ||
13248 | /* AIX XL C 1.02.0.0 rejects this. | ||
13249 | It does not let you subtract one const X* pointer from another in | ||
13250 | an arm of an if-expression whose if-part is not a constant | ||
13251 | expression */ | ||
13252 | const char *g = "string"; | ||
13253 | pcpcc = &g + (g ? g-g : 0); | ||
13254 | /* HPUX 7.0 cc rejects these. */ | ||
13255 | ++pcpcc; | ||
13256 | ppc = (char**) pcpcc; | ||
13257 | pcpcc = (char const *const *) ppc; | ||
13258 | { /* SCO 3.2v4 cc rejects this. */ | ||
13259 | char *t; | ||
13260 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
13261 | |||
13262 | *t++ = 0; | ||
13263 | if (s) return 0; | ||
13264 | } | ||
13265 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
13266 | int x[] = {25, 17}; | ||
13267 | const int *foo = &x[0]; | ||
13268 | ++foo; | ||
13269 | } | ||
13270 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
13271 | typedef const int *iptr; | ||
13272 | iptr p = 0; | ||
13273 | ++p; | ||
13274 | } | ||
13275 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
13276 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
13277 | struct s { int j; const int *ap[3]; }; | ||
13278 | struct s *b; b->j = 5; | ||
13279 | } | ||
13280 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
13281 | const int foo = 10; | ||
13282 | if (!foo) return 0; | ||
13283 | } | ||
13284 | return !cs[0] && !zero.x; | ||
13285 | #endif | ||
13286 | |||
13287 | ; | ||
13288 | return 0; | ||
13289 | } | ||
13290 | _ACEOF | ||
13291 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13292 | ac_cv_c_const=yes | ||
13293 | else | ||
13294 | ac_cv_c_const=no | ||
13295 | fi | ||
13296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13297 | fi | ||
13298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
13299 | $as_echo "$ac_cv_c_const" >&6; } | ||
13300 | if test $ac_cv_c_const = no; then | ||
13301 | |||
13302 | $as_echo "#define const /**/" >>confdefs.h | ||
13303 | |||
13304 | fi | ||
13305 | |||
13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
13307 | $as_echo_n "checking for inline... " >&6; } | ||
13308 | if test "${ac_cv_c_inline+set}" = set; then : | ||
13309 | $as_echo_n "(cached) " >&6 | ||
13310 | else | ||
13311 | ac_cv_c_inline=no | ||
13312 | for ac_kw in inline __inline__ __inline; do | ||
13313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13314 | /* end confdefs.h. */ | ||
13315 | #ifndef __cplusplus | ||
13316 | typedef int foo_t; | ||
13317 | static $ac_kw foo_t static_foo () {return 0; } | ||
13318 | $ac_kw foo_t foo () {return 0; } | ||
13319 | #endif | ||
13320 | |||
13321 | _ACEOF | ||
13322 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13323 | ac_cv_c_inline=$ac_kw | ||
13324 | fi | ||
13325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13326 | test "$ac_cv_c_inline" != no && break | ||
13327 | done | ||
13328 | |||
13329 | fi | ||
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
13331 | $as_echo "$ac_cv_c_inline" >&6; } | ||
13332 | |||
13333 | case $ac_cv_c_inline in | ||
13334 | inline | yes) ;; | ||
13335 | *) | ||
13336 | case $ac_cv_c_inline in | ||
13337 | no) ac_val=;; | ||
13338 | *) ac_val=$ac_cv_c_inline;; | ||
13339 | esac | ||
13340 | cat >>confdefs.h <<_ACEOF | ||
13341 | #ifndef __cplusplus | ||
13342 | #define inline $ac_val | ||
13343 | #endif | ||
13344 | _ACEOF | ||
13345 | ;; | ||
13346 | esac | ||
13347 | |||
13348 | case $ac_cv_prog_cc_stdc in #( | ||
13349 | no) : | ||
13350 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
13351 | *) : | ||
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
13353 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
13354 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
13355 | $as_echo_n "(cached) " >&6 | ||
13356 | else | ||
13357 | ac_cv_prog_cc_c99=no | ||
13358 | ac_save_CC=$CC | ||
13359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13360 | /* end confdefs.h. */ | ||
13361 | #include <stdarg.h> | ||
13362 | #include <stdbool.h> | ||
13363 | #include <stdlib.h> | ||
13364 | #include <wchar.h> | ||
13365 | #include <stdio.h> | ||
13366 | |||
13367 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
13368 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
13369 | #define showlist(...) puts (#__VA_ARGS__) | ||
13370 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
13371 | static void | ||
13372 | test_varargs_macros (void) | ||
13373 | { | ||
13374 | int x = 1234; | ||
13375 | int y = 5678; | ||
13376 | debug ("Flag"); | ||
13377 | debug ("X = %d\n", x); | ||
13378 | showlist (The first, second, and third items.); | ||
13379 | report (x>y, "x is %d but y is %d", x, y); | ||
13380 | } | ||
13381 | |||
13382 | // Check long long types. | ||
13383 | #define BIG64 18446744073709551615ull | ||
13384 | #define BIG32 4294967295ul | ||
13385 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
13386 | #if !BIG_OK | ||
13387 | your preprocessor is broken; | ||
13388 | #endif | ||
13389 | #if BIG_OK | ||
13390 | #else | ||
13391 | your preprocessor is broken; | ||
13392 | #endif | ||
13393 | static long long int bignum = -9223372036854775807LL; | ||
13394 | static unsigned long long int ubignum = BIG64; | ||
13395 | |||
13396 | struct incomplete_array | ||
13397 | { | ||
13398 | int datasize; | ||
13399 | double data[]; | ||
13400 | }; | ||
13401 | |||
13402 | struct named_init { | ||
13403 | int number; | ||
13404 | const wchar_t *name; | ||
13405 | double average; | ||
13406 | }; | ||
13407 | |||
13408 | typedef const char *ccp; | ||
13409 | |||
13410 | static inline int | ||
13411 | test_restrict (ccp restrict text) | ||
13412 | { | ||
13413 | // See if C++-style comments work. | ||
13414 | // Iterate through items via the restricted pointer. | ||
13415 | // Also check for declarations in for loops. | ||
13416 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
13417 | continue; | ||
13418 | return 0; | ||
13419 | } | ||
13420 | |||
13421 | // Check varargs and va_copy. | ||
13422 | static void | ||
13423 | test_varargs (const char *format, ...) | ||
13424 | { | ||
13425 | va_list args; | ||
13426 | va_start (args, format); | ||
13427 | va_list args_copy; | ||
13428 | va_copy (args_copy, args); | ||
13429 | |||
13430 | const char *str; | ||
13431 | int number; | ||
13432 | float fnumber; | ||
13433 | |||
13434 | while (*format) | ||
13435 | { | ||
13436 | switch (*format++) | ||
13437 | { | ||
13438 | case 's': // string | ||
13439 | str = va_arg (args_copy, const char *); | ||
13440 | break; | ||
13441 | case 'd': // int | ||
13442 | number = va_arg (args_copy, int); | ||
13443 | break; | ||
13444 | case 'f': // float | ||
13445 | fnumber = va_arg (args_copy, double); | ||
13446 | break; | ||
13447 | default: | ||
13448 | break; | ||
13449 | } | ||
13450 | } | ||
13451 | va_end (args_copy); | ||
13452 | va_end (args); | ||
13453 | } | ||
13454 | |||
13455 | int | ||
13456 | main () | ||
13457 | { | ||
13458 | |||
13459 | // Check bool. | ||
13460 | _Bool success = false; | ||
13461 | |||
13462 | // Check restrict. | ||
13463 | if (test_restrict ("String literal") == 0) | ||
13464 | success = true; | ||
13465 | char *restrict newvar = "Another string"; | ||
13466 | |||
13467 | // Check varargs. | ||
13468 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
13469 | test_varargs_macros (); | ||
13470 | |||
13471 | // Check flexible array members. | ||
13472 | struct incomplete_array *ia = | ||
13473 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
13474 | ia->datasize = 10; | ||
13475 | for (int i = 0; i < ia->datasize; ++i) | ||
13476 | ia->data[i] = i * 1.234; | ||
13477 | |||
13478 | // Check named initializers. | ||
13479 | struct named_init ni = { | ||
13480 | .number = 34, | ||
13481 | .name = L"Test wide string", | ||
13482 | .average = 543.34343, | ||
13483 | }; | ||
13484 | |||
13485 | ni.number = 58; | ||
13486 | |||
13487 | int dynamic_array[ni.number]; | ||
13488 | dynamic_array[ni.number - 1] = 543; | ||
13489 | |||
13490 | // work around unused variable warnings | ||
13491 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
13492 | || dynamic_array[ni.number - 1] != 543); | ||
13493 | |||
13494 | ; | ||
13495 | return 0; | ||
13496 | } | ||
13497 | _ACEOF | ||
13498 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
13499 | do | ||
13500 | CC="$ac_save_CC $ac_arg" | ||
13501 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13502 | ac_cv_prog_cc_c99=$ac_arg | ||
13503 | fi | ||
13504 | rm -f core conftest.err conftest.$ac_objext | ||
13505 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
13506 | done | ||
13507 | rm -f conftest.$ac_ext | ||
13508 | CC=$ac_save_CC | ||
13509 | |||
13510 | fi | ||
13511 | # AC_CACHE_VAL | ||
13512 | case "x$ac_cv_prog_cc_c99" in | ||
13513 | x) | ||
13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
13515 | $as_echo "none needed" >&6; } ;; | ||
13516 | xno) | ||
13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
13518 | $as_echo "unsupported" >&6; } ;; | ||
13519 | *) | ||
13520 | CC="$CC $ac_cv_prog_cc_c99" | ||
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
13522 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
13523 | esac | ||
13524 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
13525 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
13526 | else | ||
13527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
13528 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
13529 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
13530 | $as_echo_n "(cached) " >&6 | ||
13531 | else | ||
13532 | ac_cv_prog_cc_c89=no | ||
13533 | ac_save_CC=$CC | ||
13534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13535 | /* end confdefs.h. */ | ||
13536 | #include <stdarg.h> | ||
13537 | #include <stdio.h> | ||
13538 | #include <sys/types.h> | ||
13539 | #include <sys/stat.h> | ||
13540 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
13541 | struct buf { int x; }; | ||
13542 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
13543 | static char *e (p, i) | ||
13544 | char **p; | ||
13545 | int i; | ||
13546 | { | ||
13547 | return p[i]; | ||
13548 | } | ||
13549 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
13550 | { | ||
13551 | char *s; | ||
13552 | va_list v; | ||
13553 | va_start (v,p); | ||
13554 | s = g (p, va_arg (v,int)); | ||
13555 | va_end (v); | ||
13556 | return s; | ||
13557 | } | ||
13558 | |||
13559 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
13560 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
13561 | These don't provoke an error unfortunately, instead are silently treated | ||
13562 | as 'x'. The following induces an error, until -std is added to get | ||
13563 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
13564 | array size at least. It's necessary to write '\x00'==0 to get something | ||
13565 | that's true only with -std. */ | ||
13566 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
13567 | |||
13568 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
13569 | inside strings and character constants. */ | ||
13570 | #define FOO(x) 'x' | ||
13571 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
13572 | |||
13573 | int test (int i, double x); | ||
13574 | struct s1 {int (*f) (int a);}; | ||
13575 | struct s2 {int (*f) (double a);}; | ||
13576 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
13577 | int argc; | ||
13578 | char **argv; | ||
13579 | int | ||
13580 | main () | ||
13581 | { | ||
13582 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
13583 | ; | ||
13584 | return 0; | ||
13585 | } | ||
13586 | _ACEOF | ||
13587 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
13588 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
13589 | do | ||
13590 | CC="$ac_save_CC $ac_arg" | ||
13591 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13592 | ac_cv_prog_cc_c89=$ac_arg | ||
13593 | fi | ||
13594 | rm -f core conftest.err conftest.$ac_objext | ||
13595 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
13596 | done | ||
13597 | rm -f conftest.$ac_ext | ||
13598 | CC=$ac_save_CC | ||
13599 | |||
13600 | fi | ||
13601 | # AC_CACHE_VAL | ||
13602 | case "x$ac_cv_prog_cc_c89" in | ||
13603 | x) | ||
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
13605 | $as_echo "none needed" >&6; } ;; | ||
13606 | xno) | ||
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
13608 | $as_echo "unsupported" >&6; } ;; | ||
13609 | *) | ||
13610 | CC="$CC $ac_cv_prog_cc_c89" | ||
13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
13612 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
13613 | esac | ||
13614 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
13615 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
13616 | else | ||
13617 | ac_cv_prog_cc_stdc=no | ||
13618 | fi | ||
13619 | |||
13620 | fi | ||
13621 | ;; | ||
13622 | esac | ||
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
13624 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
13625 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
13626 | $as_echo_n "(cached) " >&6 | ||
13627 | fi | ||
13628 | |||
13629 | case $ac_cv_prog_cc_stdc in #( | ||
13630 | no) : | ||
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
13632 | $as_echo "unsupported" >&6; } ;; #( | ||
13633 | '') : | ||
13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
13635 | $as_echo "none needed" >&6; } ;; #( | ||
13636 | *) : | ||
13637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
13638 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
13639 | esac | ||
13640 | |||
13641 | |||
13642 | |||
13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | ||
13644 | $as_echo_n "checking for __attribute__... " >&6; } | ||
13645 | |||
13646 | if test "${ac_cv___attribute__+set}" = set; then : | ||
13647 | $as_echo_n "(cached) " >&6 | ||
13648 | else | ||
13649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13650 | /* end confdefs.h. */ | ||
13651 | |||
13652 | #include <stdlib.h> | ||
13653 | |||
13654 | int func(int x); | ||
13655 | int foo(int x __attribute__ ((unused))) | ||
13656 | { | ||
13657 | exit(1); | ||
13658 | } | ||
13659 | |||
13660 | int | ||
13661 | main () | ||
13662 | { | ||
13663 | |||
13664 | ; | ||
13665 | return 0; | ||
13666 | } | ||
13667 | _ACEOF | ||
13668 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13669 | ac_cv___attribute__="yes" | ||
13670 | else | ||
13671 | ac_cv___attribute__="no" | ||
13672 | |||
13673 | fi | ||
13674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13675 | fi | ||
13676 | |||
13677 | |||
13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 | ||
13679 | $as_echo "$ac_cv___attribute__" >&6; } | ||
13680 | |||
13681 | if test "x${ac_cv___attribute__}" = "xyes" ; then | ||
13682 | |||
13683 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | ||
13684 | |||
13685 | |||
13686 | $as_echo "#define __UNUSED__ __attribute__((unused))" >>confdefs.h | ||
13687 | |||
13688 | else | ||
13689 | |||
13690 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
13691 | |||
13692 | fi | ||
13693 | |||
13694 | |||
13695 | |||
13696 | # Check whether the null pointer is zero on this arch | ||
13697 | if test "$cross_compiling" = yes; then : | ||
13698 | |||
13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot check when cross-compiling -- assuming null is okay" >&5 | ||
13700 | $as_echo "$as_me: WARNING: Cannot check when cross-compiling -- assuming null is okay" >&2;} | ||
13701 | have_null="yes" | ||
13702 | |||
13703 | else | ||
13704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13705 | /* end confdefs.h. */ | ||
13706 | |||
13707 | #include <stdlib.h> | ||
13708 | #include <inttypes.h> | ||
13709 | int main (int argc, char **argv) { | ||
13710 | void *foo = NULL; | ||
13711 | uintptr_t bar = (uintptr_t)foo; | ||
13712 | return (uintptr_t)foo; | ||
13713 | } | ||
13714 | |||
13715 | _ACEOF | ||
13716 | if ac_fn_c_try_run "$LINENO"; then : | ||
13717 | have_null="yes" | ||
13718 | else | ||
13719 | have_null="no" | ||
13720 | fi | ||
13721 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13722 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13723 | fi | ||
13724 | |||
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of the null pointer" >&5 | ||
13726 | $as_echo_n "checking value of the null pointer... " >&6; } | ||
13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_null}" >&5 | ||
13728 | $as_echo "${have_null}" >&6; } | ||
13729 | |||
13730 | if test ! "x${have_null}" = "xyes" ; then | ||
13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system is a bit too funny, eet might not work properly" >&5 | ||
13732 | $as_echo "$as_me: WARNING: Your system is a bit too funny, eet might not work properly" >&2;} | ||
13733 | fi | ||
13734 | |||
13735 | # These are needed for fmemopen/open_memstream | ||
13736 | |||
13737 | $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h | ||
13738 | |||
13739 | |||
13740 | EET_CPPFLAGS="" | ||
13741 | EET_CFLAGS="" | ||
13742 | case "$host_os" in | ||
13743 | mingw32ce*) | ||
13744 | EET_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
13745 | ;; | ||
13746 | mingw*) | ||
13747 | EET_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
13748 | ;; | ||
13749 | esac | ||
13750 | |||
13751 | |||
13752 | |||
13753 | |||
13754 | ### Checks for linker characteristics | ||
13755 | |||
13756 | # use --enable-auto-import on Windows | ||
13757 | |||
13758 | lt_enable_auto_import="" | ||
13759 | case "$host_os" in | ||
13760 | mingw*) | ||
13761 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
13762 | ;; | ||
13763 | esac | ||
13764 | |||
13765 | |||
13766 | case "${host_os}" in | ||
13767 | openbsd*) | ||
13768 | ;; | ||
13769 | *) | ||
13770 | |||
13771 | |||
13772 | CFLAGS_save="${CFLAGS}" | ||
13773 | CFLAGS="${CFLAGS} -Wl,--as-needed" | ||
13774 | |||
13775 | ac_ext=c | ||
13776 | ac_cpp='$CPP $CPPFLAGS' | ||
13777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13780 | |||
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--as-needed" >&5 | ||
13782 | $as_echo_n "checking whether the compiler supports -Wl,--as-needed... " >&6; } | ||
13783 | |||
13784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13785 | /* end confdefs.h. */ | ||
13786 | |||
13787 | int | ||
13788 | main () | ||
13789 | { | ||
13790 | |||
13791 | ; | ||
13792 | return 0; | ||
13793 | } | ||
13794 | _ACEOF | ||
13795 | if ac_fn_c_try_link "$LINENO"; then : | ||
13796 | have_flag="yes" | ||
13797 | else | ||
13798 | have_flag="no" | ||
13799 | fi | ||
13800 | rm -f core conftest.err conftest.$ac_objext \ | ||
13801 | conftest$ac_exeext conftest.$ac_ext | ||
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
13803 | $as_echo "${have_flag}" >&6; } | ||
13804 | |||
13805 | if test "x${have_flag}" = "xno" ; then | ||
13806 | CFLAGS="${CFLAGS_save}" | ||
13807 | fi | ||
13808 | ac_ext=c | ||
13809 | ac_cpp='$CPP $CPPFLAGS' | ||
13810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13813 | |||
13814 | |||
13815 | |||
13816 | ;; | ||
13817 | esac | ||
13818 | |||
13819 | |||
13820 | ### Checks for library functions | ||
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
13822 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
13823 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
13824 | $as_echo_n "(cached) " >&6 | ||
13825 | else | ||
13826 | ac_func_search_save_LIBS=$LIBS | ||
13827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13828 | /* end confdefs.h. */ | ||
13829 | |||
13830 | /* Override any GCC internal prototype to avoid an error. | ||
13831 | Use char because int might match the return type of a GCC | ||
13832 | builtin and then its argument prototype would still apply. */ | ||
13833 | #ifdef __cplusplus | ||
13834 | extern "C" | ||
13835 | #endif | ||
13836 | char strerror (); | ||
13837 | int | ||
13838 | main () | ||
13839 | { | ||
13840 | return strerror (); | ||
13841 | ; | ||
13842 | return 0; | ||
13843 | } | ||
13844 | _ACEOF | ||
13845 | for ac_lib in '' cposix; do | ||
13846 | if test -z "$ac_lib"; then | ||
13847 | ac_res="none required" | ||
13848 | else | ||
13849 | ac_res=-l$ac_lib | ||
13850 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13851 | fi | ||
13852 | if ac_fn_c_try_link "$LINENO"; then : | ||
13853 | ac_cv_search_strerror=$ac_res | ||
13854 | fi | ||
13855 | rm -f core conftest.err conftest.$ac_objext \ | ||
13856 | conftest$ac_exeext | ||
13857 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
13858 | break | ||
13859 | fi | ||
13860 | done | ||
13861 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
13862 | |||
13863 | else | ||
13864 | ac_cv_search_strerror=no | ||
13865 | fi | ||
13866 | rm conftest.$ac_ext | ||
13867 | LIBS=$ac_func_search_save_LIBS | ||
13868 | fi | ||
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
13870 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
13871 | ac_res=$ac_cv_search_strerror | ||
13872 | if test "$ac_res" != no; then : | ||
13873 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13874 | |||
13875 | fi | ||
13876 | |||
13877 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
13878 | # for constant arguments. Useless! | ||
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
13880 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
13881 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
13882 | $as_echo_n "(cached) " >&6 | ||
13883 | else | ||
13884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13885 | /* end confdefs.h. */ | ||
13886 | #include <alloca.h> | ||
13887 | int | ||
13888 | main () | ||
13889 | { | ||
13890 | char *p = (char *) alloca (2 * sizeof (int)); | ||
13891 | if (p) return 0; | ||
13892 | ; | ||
13893 | return 0; | ||
13894 | } | ||
13895 | _ACEOF | ||
13896 | if ac_fn_c_try_link "$LINENO"; then : | ||
13897 | ac_cv_working_alloca_h=yes | ||
13898 | else | ||
13899 | ac_cv_working_alloca_h=no | ||
13900 | fi | ||
13901 | rm -f core conftest.err conftest.$ac_objext \ | ||
13902 | conftest$ac_exeext conftest.$ac_ext | ||
13903 | fi | ||
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
13905 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
13906 | if test $ac_cv_working_alloca_h = yes; then | ||
13907 | |||
13908 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
13909 | |||
13910 | fi | ||
13911 | |||
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
13913 | $as_echo_n "checking for alloca... " >&6; } | ||
13914 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
13915 | $as_echo_n "(cached) " >&6 | ||
13916 | else | ||
13917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13918 | /* end confdefs.h. */ | ||
13919 | #ifdef __GNUC__ | ||
13920 | # define alloca __builtin_alloca | ||
13921 | #else | ||
13922 | # ifdef _MSC_VER | ||
13923 | # include <malloc.h> | ||
13924 | # define alloca _alloca | ||
13925 | # else | ||
13926 | # ifdef HAVE_ALLOCA_H | ||
13927 | # include <alloca.h> | ||
13928 | # else | ||
13929 | # ifdef _AIX | ||
13930 | #pragma alloca | ||
13931 | # else | ||
13932 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
13933 | char *alloca (); | ||
13934 | # endif | ||
13935 | # endif | ||
13936 | # endif | ||
13937 | # endif | ||
13938 | #endif | ||
13939 | |||
13940 | int | ||
13941 | main () | ||
13942 | { | ||
13943 | char *p = (char *) alloca (1); | ||
13944 | if (p) return 0; | ||
13945 | ; | ||
13946 | return 0; | ||
13947 | } | ||
13948 | _ACEOF | ||
13949 | if ac_fn_c_try_link "$LINENO"; then : | ||
13950 | ac_cv_func_alloca_works=yes | ||
13951 | else | ||
13952 | ac_cv_func_alloca_works=no | ||
13953 | fi | ||
13954 | rm -f core conftest.err conftest.$ac_objext \ | ||
13955 | conftest$ac_exeext conftest.$ac_ext | ||
13956 | fi | ||
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
13958 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
13959 | |||
13960 | if test $ac_cv_func_alloca_works = yes; then | ||
13961 | |||
13962 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
13963 | |||
13964 | else | ||
13965 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
13966 | # that cause trouble. Some versions do not even contain alloca or | ||
13967 | # contain a buggy version. If you still want to use their alloca, | ||
13968 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
13969 | |||
13970 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
13971 | |||
13972 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
13973 | |||
13974 | |||
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
13976 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
13977 | if test "${ac_cv_os_cray+set}" = set; then : | ||
13978 | $as_echo_n "(cached) " >&6 | ||
13979 | else | ||
13980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13981 | /* end confdefs.h. */ | ||
13982 | #if defined CRAY && ! defined CRAY2 | ||
13983 | webecray | ||
13984 | #else | ||
13985 | wenotbecray | ||
13986 | #endif | ||
13987 | |||
13988 | _ACEOF | ||
13989 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13990 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
13991 | ac_cv_os_cray=yes | ||
13992 | else | ||
13993 | ac_cv_os_cray=no | ||
13994 | fi | ||
13995 | rm -f conftest* | ||
13996 | |||
13997 | fi | ||
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
13999 | $as_echo "$ac_cv_os_cray" >&6; } | ||
14000 | if test $ac_cv_os_cray = yes; then | ||
14001 | for ac_func in _getb67 GETB67 getb67; do | ||
14002 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14003 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
14004 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
14005 | |||
14006 | cat >>confdefs.h <<_ACEOF | ||
14007 | #define CRAY_STACKSEG_END $ac_func | ||
14008 | _ACEOF | ||
14009 | |||
14010 | break | ||
14011 | fi | ||
14012 | |||
14013 | done | ||
14014 | fi | ||
14015 | |||
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
14017 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
14018 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
14019 | $as_echo_n "(cached) " >&6 | ||
14020 | else | ||
14021 | if test "$cross_compiling" = yes; then : | ||
14022 | ac_cv_c_stack_direction=0 | ||
14023 | else | ||
14024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14025 | /* end confdefs.h. */ | ||
14026 | $ac_includes_default | ||
14027 | int | ||
14028 | find_stack_direction () | ||
14029 | { | ||
14030 | static char *addr = 0; | ||
14031 | auto char dummy; | ||
14032 | if (addr == 0) | ||
14033 | { | ||
14034 | addr = &dummy; | ||
14035 | return find_stack_direction (); | ||
14036 | } | ||
14037 | else | ||
14038 | return (&dummy > addr) ? 1 : -1; | ||
14039 | } | ||
14040 | |||
14041 | int | ||
14042 | main () | ||
14043 | { | ||
14044 | return find_stack_direction () < 0; | ||
14045 | } | ||
14046 | _ACEOF | ||
14047 | if ac_fn_c_try_run "$LINENO"; then : | ||
14048 | ac_cv_c_stack_direction=1 | ||
14049 | else | ||
14050 | ac_cv_c_stack_direction=-1 | ||
14051 | fi | ||
14052 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14053 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14054 | fi | ||
14055 | |||
14056 | fi | ||
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
14058 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
14059 | cat >>confdefs.h <<_ACEOF | ||
14060 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
14061 | _ACEOF | ||
14062 | |||
14063 | |||
14064 | fi | ||
14065 | |||
14066 | |||
14067 | for ac_func in fmemopen open_memstream realpath | ||
14068 | do : | ||
14069 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14070 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
14071 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
14072 | cat >>confdefs.h <<_ACEOF | ||
14073 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14074 | _ACEOF | ||
14075 | |||
14076 | fi | ||
14077 | done | ||
14078 | |||
14079 | |||
14080 | |||
14081 | |||
14082 | ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" | ||
14083 | if test "x$ac_cv_header_fnmatch_h" = x""yes; then : | ||
14084 | _efl_have_fnmatch="yes" | ||
14085 | else | ||
14086 | _efl_have_fnmatch="no" | ||
14087 | fi | ||
14088 | |||
14089 | |||
14090 | |||
14091 | if test "x${_efl_have_fnmatch}" = "xyes" ; then | ||
14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5 | ||
14093 | $as_echo_n "checking for library containing fnmatch... " >&6; } | ||
14094 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
14095 | $as_echo_n "(cached) " >&6 | ||
14096 | else | ||
14097 | ac_func_search_save_LIBS=$LIBS | ||
14098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14099 | /* end confdefs.h. */ | ||
14100 | |||
14101 | /* Override any GCC internal prototype to avoid an error. | ||
14102 | Use char because int might match the return type of a GCC | ||
14103 | builtin and then its argument prototype would still apply. */ | ||
14104 | #ifdef __cplusplus | ||
14105 | extern "C" | ||
14106 | #endif | ||
14107 | char fnmatch (); | ||
14108 | int | ||
14109 | main () | ||
14110 | { | ||
14111 | return fnmatch (); | ||
14112 | ; | ||
14113 | return 0; | ||
14114 | } | ||
14115 | _ACEOF | ||
14116 | for ac_lib in '' fnmatch evil iberty; do | ||
14117 | if test -z "$ac_lib"; then | ||
14118 | ac_res="none required" | ||
14119 | else | ||
14120 | ac_res=-l$ac_lib | ||
14121 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14122 | fi | ||
14123 | if ac_fn_c_try_link "$LINENO"; then : | ||
14124 | ac_cv_search_fnmatch=$ac_res | ||
14125 | fi | ||
14126 | rm -f core conftest.err conftest.$ac_objext \ | ||
14127 | conftest$ac_exeext | ||
14128 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
14129 | break | ||
14130 | fi | ||
14131 | done | ||
14132 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
14133 | |||
14134 | else | ||
14135 | ac_cv_search_fnmatch=no | ||
14136 | fi | ||
14137 | rm conftest.$ac_ext | ||
14138 | LIBS=$ac_func_search_save_LIBS | ||
14139 | fi | ||
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5 | ||
14141 | $as_echo "$ac_cv_search_fnmatch" >&6; } | ||
14142 | ac_res=$ac_cv_search_fnmatch | ||
14143 | if test "$ac_res" != no; then : | ||
14144 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14145 | _efl_have_fnmatch="yes" | ||
14146 | else | ||
14147 | _efl_have_fnmatch="no" | ||
14148 | fi | ||
14149 | |||
14150 | fi | ||
14151 | |||
14152 | EFL_FNMATCH_LIBS="" | ||
14153 | |||
14154 | if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then | ||
14155 | EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} | ||
14156 | fi | ||
14157 | |||
14158 | |||
14159 | |||
14160 | if test "x$_efl_have_fnmatch" = "xyes"; then : | ||
14161 | |||
14162 | else | ||
14163 | as_fn_error $? "Cannot find fnmatch()" "$LINENO" 5 | ||
14164 | fi | ||
14165 | |||
14166 | |||
14167 | |||
14168 | |||
14169 | |||
14170 | |||
14171 | ac_config_files="$ac_config_files Makefile eet.pc doc/Makefile doc/Doxyfile doc/eet.dox src/Makefile src/lib/Makefile src/bin/Makefile src/tests/Makefile src/examples/Makefile eet.spec" | ||
14172 | |||
14173 | cat >confcache <<\_ACEOF | ||
14174 | # This file is a shell script that caches the results of configure | ||
14175 | # tests run on this system so they can be shared between configure | ||
14176 | # scripts and configure runs, see configure's option --config-cache. | ||
14177 | # It is not useful on other systems. If it contains results you don't | ||
14178 | # want to keep, you may remove or edit it. | ||
14179 | # | ||
14180 | # config.status only pays attention to the cache file if you give it | ||
14181 | # the --recheck option to rerun configure. | ||
14182 | # | ||
14183 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
14184 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
14185 | # following values. | ||
14186 | |||
14187 | _ACEOF | ||
14188 | |||
14189 | # The following way of writing the cache mishandles newlines in values, | ||
14190 | # but we know of no workaround that is simple, portable, and efficient. | ||
14191 | # So, we kill variables containing newlines. | ||
14192 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
14193 | # and sets the high bit in the cache file unless we assign to the vars. | ||
14194 | ( | ||
14195 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
14196 | eval ac_val=\$$ac_var | ||
14197 | case $ac_val in #( | ||
14198 | *${as_nl}*) | ||
14199 | case $ac_var in #( | ||
14200 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
14201 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
14202 | esac | ||
14203 | case $ac_var in #( | ||
14204 | _ | IFS | as_nl) ;; #( | ||
14205 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
14206 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
14207 | esac ;; | ||
14208 | esac | ||
14209 | done | ||
14210 | |||
14211 | (set) 2>&1 | | ||
14212 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
14213 | *${as_nl}ac_space=\ *) | ||
14214 | # `set' does not quote correctly, so add quotes: double-quote | ||
14215 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
14216 | sed -n \ | ||
14217 | "s/'/'\\\\''/g; | ||
14218 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
14219 | ;; #( | ||
14220 | *) | ||
14221 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
14222 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
14223 | ;; | ||
14224 | esac | | ||
14225 | sort | ||
14226 | ) | | ||
14227 | sed ' | ||
14228 | /^ac_cv_env_/b end | ||
14229 | t clear | ||
14230 | :clear | ||
14231 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
14232 | t end | ||
14233 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
14234 | :end' >>confcache | ||
14235 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
14236 | if test -w "$cache_file"; then | ||
14237 | test "x$cache_file" != "x/dev/null" && | ||
14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
14239 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
14240 | cat confcache >$cache_file | ||
14241 | else | ||
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
14243 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
14244 | fi | ||
14245 | fi | ||
14246 | rm -f confcache | ||
14247 | |||
14248 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
14249 | # Let make expand exec_prefix. | ||
14250 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
14251 | |||
14252 | DEFS=-DHAVE_CONFIG_H | ||
14253 | |||
14254 | ac_libobjs= | ||
14255 | ac_ltlibobjs= | ||
14256 | U= | ||
14257 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
14258 | # 1. Remove the extension, and $U if already installed. | ||
14259 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
14260 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
14261 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
14262 | # will be set to the directory where LIBOBJS objects are built. | ||
14263 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
14264 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
14265 | done | ||
14266 | LIBOBJS=$ac_libobjs | ||
14267 | |||
14268 | LTLIBOBJS=$ac_ltlibobjs | ||
14269 | |||
14270 | |||
14271 | if test -n "$EXEEXT"; then | ||
14272 | am__EXEEXT_TRUE= | ||
14273 | am__EXEEXT_FALSE='#' | ||
14274 | else | ||
14275 | am__EXEEXT_TRUE='#' | ||
14276 | am__EXEEXT_FALSE= | ||
14277 | fi | ||
14278 | |||
14279 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
14280 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
14281 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14282 | fi | ||
14283 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
14284 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
14285 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14286 | fi | ||
14287 | if test -z "${EET_AMALGAMATION_TRUE}" && test -z "${EET_AMALGAMATION_FALSE}"; then | ||
14288 | as_fn_error $? "conditional \"EET_AMALGAMATION\" was never defined. | ||
14289 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14290 | fi | ||
14291 | if test -z "${BUILD_EET_TRUE}" && test -z "${BUILD_EET_FALSE}"; then | ||
14292 | as_fn_error $? "conditional \"BUILD_EET\" was never defined. | ||
14293 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14294 | fi | ||
14295 | if test -z "${INSTALL_EXAMPLES_TRUE}" && test -z "${INSTALL_EXAMPLES_FALSE}"; then | ||
14296 | as_fn_error $? "conditional \"INSTALL_EXAMPLES\" was never defined. | ||
14297 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14298 | fi | ||
14299 | if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then | ||
14300 | as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. | ||
14301 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14302 | fi | ||
14303 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
14304 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
14305 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14306 | fi | ||
14307 | if test -z "${EFL_ENABLE_COVERAGE_TRUE}" && test -z "${EFL_ENABLE_COVERAGE_FALSE}"; then | ||
14308 | as_fn_error $? "conditional \"EFL_ENABLE_COVERAGE\" was never defined. | ||
14309 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14310 | fi | ||
14311 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
14312 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
14313 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14314 | fi | ||
14315 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
14316 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
14317 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
14318 | fi | ||
14319 | |||
14320 | : ${CONFIG_STATUS=./config.status} | ||
14321 | ac_write_fail=0 | ||
14322 | ac_clean_files_save=$ac_clean_files | ||
14323 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
14325 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
14326 | as_write_fail=0 | ||
14327 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
14328 | #! $SHELL | ||
14329 | # Generated by $as_me. | ||
14330 | # Run this file to recreate the current configuration. | ||
14331 | # Compiler output produced by configure, useful for debugging | ||
14332 | # configure, is in config.log if it exists. | ||
14333 | |||
14334 | debug=false | ||
14335 | ac_cs_recheck=false | ||
14336 | ac_cs_silent=false | ||
14337 | |||
14338 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
14339 | export SHELL | ||
14340 | _ASEOF | ||
14341 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
14342 | ## -------------------- ## | ||
14343 | ## M4sh Initialization. ## | ||
14344 | ## -------------------- ## | ||
14345 | |||
14346 | # Be more Bourne compatible | ||
14347 | DUALCASE=1; export DUALCASE # for MKS sh | ||
14348 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
14349 | emulate sh | ||
14350 | NULLCMD=: | ||
14351 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
14352 | # is contrary to our usage. Disable this feature. | ||
14353 | alias -g '${1+"$@"}'='"$@"' | ||
14354 | setopt NO_GLOB_SUBST | ||
14355 | else | ||
14356 | case `(set -o) 2>/dev/null` in #( | ||
14357 | *posix*) : | ||
14358 | set -o posix ;; #( | ||
14359 | *) : | ||
14360 | ;; | ||
14361 | esac | ||
14362 | fi | ||
14363 | |||
14364 | |||
14365 | as_nl=' | ||
14366 | ' | ||
14367 | export as_nl | ||
14368 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
14369 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
14370 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
14371 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
14372 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
14373 | # but without wasting forks for bash or zsh. | ||
14374 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
14375 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
14376 | as_echo='print -r --' | ||
14377 | as_echo_n='print -rn --' | ||
14378 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
14379 | as_echo='printf %s\n' | ||
14380 | as_echo_n='printf %s' | ||
14381 | else | ||
14382 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
14383 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
14384 | as_echo_n='/usr/ucb/echo -n' | ||
14385 | else | ||
14386 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
14387 | as_echo_n_body='eval | ||
14388 | arg=$1; | ||
14389 | case $arg in #( | ||
14390 | *"$as_nl"*) | ||
14391 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
14392 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
14393 | esac; | ||
14394 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
14395 | ' | ||
14396 | export as_echo_n_body | ||
14397 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
14398 | fi | ||
14399 | export as_echo_body | ||
14400 | as_echo='sh -c $as_echo_body as_echo' | ||
14401 | fi | ||
14402 | |||
14403 | # The user is always right. | ||
14404 | if test "${PATH_SEPARATOR+set}" != set; then | ||
14405 | PATH_SEPARATOR=: | ||
14406 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
14407 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
14408 | PATH_SEPARATOR=';' | ||
14409 | } | ||
14410 | fi | ||
14411 | |||
14412 | |||
14413 | # IFS | ||
14414 | # We need space, tab and new line, in precisely that order. Quoting is | ||
14415 | # there to prevent editors from complaining about space-tab. | ||
14416 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
14417 | # splitting by setting IFS to empty value.) | ||
14418 | IFS=" "" $as_nl" | ||
14419 | |||
14420 | # Find who we are. Look in the path if we contain no directory separator. | ||
14421 | case $0 in #(( | ||
14422 | *[\\/]* ) as_myself=$0 ;; | ||
14423 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14424 | for as_dir in $PATH | ||
14425 | do | ||
14426 | IFS=$as_save_IFS | ||
14427 | test -z "$as_dir" && as_dir=. | ||
14428 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
14429 | done | ||
14430 | IFS=$as_save_IFS | ||
14431 | |||
14432 | ;; | ||
14433 | esac | ||
14434 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
14435 | # in which case we are not to be found in the path. | ||
14436 | if test "x$as_myself" = x; then | ||
14437 | as_myself=$0 | ||
14438 | fi | ||
14439 | if test ! -f "$as_myself"; then | ||
14440 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
14441 | exit 1 | ||
14442 | fi | ||
14443 | |||
14444 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
14445 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
14446 | # suppresses any "Segmentation fault" message there. '((' could | ||
14447 | # trigger a bug in pdksh 5.2.14. | ||
14448 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
14449 | do eval test x\${$as_var+set} = xset \ | ||
14450 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
14451 | done | ||
14452 | PS1='$ ' | ||
14453 | PS2='> ' | ||
14454 | PS4='+ ' | ||
14455 | |||
14456 | # NLS nuisances. | ||
14457 | LC_ALL=C | ||
14458 | export LC_ALL | ||
14459 | LANGUAGE=C | ||
14460 | export LANGUAGE | ||
14461 | |||
14462 | # CDPATH. | ||
14463 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
14464 | |||
14465 | |||
14466 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
14467 | # ---------------------------------------- | ||
14468 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
14469 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
14470 | # script with STATUS, using 1 if that was 0. | ||
14471 | as_fn_error () | ||
14472 | { | ||
14473 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
14474 | if test "$4"; then | ||
14475 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
14476 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
14477 | fi | ||
14478 | $as_echo "$as_me: error: $2" >&2 | ||
14479 | as_fn_exit $as_status | ||
14480 | } # as_fn_error | ||
14481 | |||
14482 | |||
14483 | # as_fn_set_status STATUS | ||
14484 | # ----------------------- | ||
14485 | # Set $? to STATUS, without forking. | ||
14486 | as_fn_set_status () | ||
14487 | { | ||
14488 | return $1 | ||
14489 | } # as_fn_set_status | ||
14490 | |||
14491 | # as_fn_exit STATUS | ||
14492 | # ----------------- | ||
14493 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
14494 | as_fn_exit () | ||
14495 | { | ||
14496 | set +e | ||
14497 | as_fn_set_status $1 | ||
14498 | exit $1 | ||
14499 | } # as_fn_exit | ||
14500 | |||
14501 | # as_fn_unset VAR | ||
14502 | # --------------- | ||
14503 | # Portably unset VAR. | ||
14504 | as_fn_unset () | ||
14505 | { | ||
14506 | { eval $1=; unset $1;} | ||
14507 | } | ||
14508 | as_unset=as_fn_unset | ||
14509 | # as_fn_append VAR VALUE | ||
14510 | # ---------------------- | ||
14511 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
14512 | # advantage of any shell optimizations that allow amortized linear growth over | ||
14513 | # repeated appends, instead of the typical quadratic growth present in naive | ||
14514 | # implementations. | ||
14515 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
14516 | eval 'as_fn_append () | ||
14517 | { | ||
14518 | eval $1+=\$2 | ||
14519 | }' | ||
14520 | else | ||
14521 | as_fn_append () | ||
14522 | { | ||
14523 | eval $1=\$$1\$2 | ||
14524 | } | ||
14525 | fi # as_fn_append | ||
14526 | |||
14527 | # as_fn_arith ARG... | ||
14528 | # ------------------ | ||
14529 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
14530 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
14531 | # must be portable across $(()) and expr. | ||
14532 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
14533 | eval 'as_fn_arith () | ||
14534 | { | ||
14535 | as_val=$(( $* )) | ||
14536 | }' | ||
14537 | else | ||
14538 | as_fn_arith () | ||
14539 | { | ||
14540 | as_val=`expr "$@" || test $? -eq 1` | ||
14541 | } | ||
14542 | fi # as_fn_arith | ||
14543 | |||
14544 | |||
14545 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
14546 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
14547 | as_expr=expr | ||
14548 | else | ||
14549 | as_expr=false | ||
14550 | fi | ||
14551 | |||
14552 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
14553 | as_basename=basename | ||
14554 | else | ||
14555 | as_basename=false | ||
14556 | fi | ||
14557 | |||
14558 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
14559 | as_dirname=dirname | ||
14560 | else | ||
14561 | as_dirname=false | ||
14562 | fi | ||
14563 | |||
14564 | as_me=`$as_basename -- "$0" || | ||
14565 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
14566 | X"$0" : 'X\(//\)$' \| \ | ||
14567 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
14568 | $as_echo X/"$0" | | ||
14569 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
14570 | s//\1/ | ||
14571 | q | ||
14572 | } | ||
14573 | /^X\/\(\/\/\)$/{ | ||
14574 | s//\1/ | ||
14575 | q | ||
14576 | } | ||
14577 | /^X\/\(\/\).*/{ | ||
14578 | s//\1/ | ||
14579 | q | ||
14580 | } | ||
14581 | s/.*/./; q'` | ||
14582 | |||
14583 | # Avoid depending upon Character Ranges. | ||
14584 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
14585 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
14586 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
14587 | as_cr_digits='0123456789' | ||
14588 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
14589 | |||
14590 | ECHO_C= ECHO_N= ECHO_T= | ||
14591 | case `echo -n x` in #((((( | ||
14592 | -n*) | ||
14593 | case `echo 'xy\c'` in | ||
14594 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
14595 | xy) ECHO_C='\c';; | ||
14596 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
14597 | ECHO_T=' ';; | ||
14598 | esac;; | ||
14599 | *) | ||
14600 | ECHO_N='-n';; | ||
14601 | esac | ||
14602 | |||
14603 | rm -f conf$$ conf$$.exe conf$$.file | ||
14604 | if test -d conf$$.dir; then | ||
14605 | rm -f conf$$.dir/conf$$.file | ||
14606 | else | ||
14607 | rm -f conf$$.dir | ||
14608 | mkdir conf$$.dir 2>/dev/null | ||
14609 | fi | ||
14610 | if (echo >conf$$.file) 2>/dev/null; then | ||
14611 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
14612 | as_ln_s='ln -s' | ||
14613 | # ... but there are two gotchas: | ||
14614 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
14615 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
14616 | # In both cases, we have to default to `cp -p'. | ||
14617 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
14618 | as_ln_s='cp -p' | ||
14619 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
14620 | as_ln_s=ln | ||
14621 | else | ||
14622 | as_ln_s='cp -p' | ||
14623 | fi | ||
14624 | else | ||
14625 | as_ln_s='cp -p' | ||
14626 | fi | ||
14627 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
14628 | rmdir conf$$.dir 2>/dev/null | ||
14629 | |||
14630 | |||
14631 | # as_fn_mkdir_p | ||
14632 | # ------------- | ||
14633 | # Create "$as_dir" as a directory, including parents if necessary. | ||
14634 | as_fn_mkdir_p () | ||
14635 | { | ||
14636 | |||
14637 | case $as_dir in #( | ||
14638 | -*) as_dir=./$as_dir;; | ||
14639 | esac | ||
14640 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
14641 | as_dirs= | ||
14642 | while :; do | ||
14643 | case $as_dir in #( | ||
14644 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
14645 | *) as_qdir=$as_dir;; | ||
14646 | esac | ||
14647 | as_dirs="'$as_qdir' $as_dirs" | ||
14648 | as_dir=`$as_dirname -- "$as_dir" || | ||
14649 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
14650 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
14651 | X"$as_dir" : 'X\(//\)$' \| \ | ||
14652 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
14653 | $as_echo X"$as_dir" | | ||
14654 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
14655 | s//\1/ | ||
14656 | q | ||
14657 | } | ||
14658 | /^X\(\/\/\)[^/].*/{ | ||
14659 | s//\1/ | ||
14660 | q | ||
14661 | } | ||
14662 | /^X\(\/\/\)$/{ | ||
14663 | s//\1/ | ||
14664 | q | ||
14665 | } | ||
14666 | /^X\(\/\).*/{ | ||
14667 | s//\1/ | ||
14668 | q | ||
14669 | } | ||
14670 | s/.*/./; q'` | ||
14671 | test -d "$as_dir" && break | ||
14672 | done | ||
14673 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
14674 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
14675 | |||
14676 | |||
14677 | } # as_fn_mkdir_p | ||
14678 | if mkdir -p . 2>/dev/null; then | ||
14679 | as_mkdir_p='mkdir -p "$as_dir"' | ||
14680 | else | ||
14681 | test -d ./-p && rmdir ./-p | ||
14682 | as_mkdir_p=false | ||
14683 | fi | ||
14684 | |||
14685 | if test -x / >/dev/null 2>&1; then | ||
14686 | as_test_x='test -x' | ||
14687 | else | ||
14688 | if ls -dL / >/dev/null 2>&1; then | ||
14689 | as_ls_L_option=L | ||
14690 | else | ||
14691 | as_ls_L_option= | ||
14692 | fi | ||
14693 | as_test_x=' | ||
14694 | eval sh -c '\'' | ||
14695 | if test -d "$1"; then | ||
14696 | test -d "$1/."; | ||
14697 | else | ||
14698 | case $1 in #( | ||
14699 | -*)set "./$1";; | ||
14700 | esac; | ||
14701 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
14702 | ???[sx]*):;;*)false;;esac;fi | ||
14703 | '\'' sh | ||
14704 | ' | ||
14705 | fi | ||
14706 | as_executable_p=$as_test_x | ||
14707 | |||
14708 | # Sed expression to map a string onto a valid CPP name. | ||
14709 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
14710 | |||
14711 | # Sed expression to map a string onto a valid variable name. | ||
14712 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
14713 | |||
14714 | |||
14715 | exec 6>&1 | ||
14716 | ## ----------------------------------- ## | ||
14717 | ## Main body of $CONFIG_STATUS script. ## | ||
14718 | ## ----------------------------------- ## | ||
14719 | _ASEOF | ||
14720 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
14721 | |||
14722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14723 | # Save the log message, to keep $0 and so on meaningful, and to | ||
14724 | # report actual input values of CONFIG_FILES etc. instead of their | ||
14725 | # values after options handling. | ||
14726 | ac_log=" | ||
14727 | This file was extended by eet $as_me 1.5.0, which was | ||
14728 | generated by GNU Autoconf 2.67. Invocation command line was | ||
14729 | |||
14730 | CONFIG_FILES = $CONFIG_FILES | ||
14731 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
14732 | CONFIG_LINKS = $CONFIG_LINKS | ||
14733 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
14734 | $ $0 $@ | ||
14735 | |||
14736 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
14737 | " | ||
14738 | |||
14739 | _ACEOF | ||
14740 | |||
14741 | case $ac_config_files in *" | ||
14742 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
14743 | esac | ||
14744 | |||
14745 | case $ac_config_headers in *" | ||
14746 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
14747 | esac | ||
14748 | |||
14749 | |||
14750 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14751 | # Files that config.status was made for. | ||
14752 | config_files="$ac_config_files" | ||
14753 | config_headers="$ac_config_headers" | ||
14754 | config_commands="$ac_config_commands" | ||
14755 | |||
14756 | _ACEOF | ||
14757 | |||
14758 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14759 | ac_cs_usage="\ | ||
14760 | \`$as_me' instantiates files and other configuration actions | ||
14761 | from templates according to the current configuration. Unless the files | ||
14762 | and actions are specified as TAGs, all are instantiated by default. | ||
14763 | |||
14764 | Usage: $0 [OPTION]... [TAG]... | ||
14765 | |||
14766 | -h, --help print this help, then exit | ||
14767 | -V, --version print version number and configuration settings, then exit | ||
14768 | --config print configuration, then exit | ||
14769 | -q, --quiet, --silent | ||
14770 | do not print progress messages | ||
14771 | -d, --debug don't remove temporary files | ||
14772 | --recheck update $as_me by reconfiguring in the same conditions | ||
14773 | --file=FILE[:TEMPLATE] | ||
14774 | instantiate the configuration file FILE | ||
14775 | --header=FILE[:TEMPLATE] | ||
14776 | instantiate the configuration header FILE | ||
14777 | |||
14778 | Configuration files: | ||
14779 | $config_files | ||
14780 | |||
14781 | Configuration headers: | ||
14782 | $config_headers | ||
14783 | |||
14784 | Configuration commands: | ||
14785 | $config_commands | ||
14786 | |||
14787 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
14788 | |||
14789 | _ACEOF | ||
14790 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14791 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
14792 | ac_cs_version="\\ | ||
14793 | eet config.status 1.5.0 | ||
14794 | configured by $0, generated by GNU Autoconf 2.67, | ||
14795 | with options \\"\$ac_cs_config\\" | ||
14796 | |||
14797 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
14798 | This config.status script is free software; the Free Software Foundation | ||
14799 | gives unlimited permission to copy, distribute and modify it." | ||
14800 | |||
14801 | ac_pwd='$ac_pwd' | ||
14802 | srcdir='$srcdir' | ||
14803 | INSTALL='$INSTALL' | ||
14804 | MKDIR_P='$MKDIR_P' | ||
14805 | AWK='$AWK' | ||
14806 | test -n "\$AWK" || AWK=awk | ||
14807 | _ACEOF | ||
14808 | |||
14809 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14810 | # The default lists apply if the user does not specify any file. | ||
14811 | ac_need_defaults=: | ||
14812 | while test $# != 0 | ||
14813 | do | ||
14814 | case $1 in | ||
14815 | --*=?*) | ||
14816 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
14817 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
14818 | ac_shift=: | ||
14819 | ;; | ||
14820 | --*=) | ||
14821 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
14822 | ac_optarg= | ||
14823 | ac_shift=: | ||
14824 | ;; | ||
14825 | *) | ||
14826 | ac_option=$1 | ||
14827 | ac_optarg=$2 | ||
14828 | ac_shift=shift | ||
14829 | ;; | ||
14830 | esac | ||
14831 | |||
14832 | case $ac_option in | ||
14833 | # Handling of the options. | ||
14834 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
14835 | ac_cs_recheck=: ;; | ||
14836 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
14837 | $as_echo "$ac_cs_version"; exit ;; | ||
14838 | --config | --confi | --conf | --con | --co | --c ) | ||
14839 | $as_echo "$ac_cs_config"; exit ;; | ||
14840 | --debug | --debu | --deb | --de | --d | -d ) | ||
14841 | debug=: ;; | ||
14842 | --file | --fil | --fi | --f ) | ||
14843 | $ac_shift | ||
14844 | case $ac_optarg in | ||
14845 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
14846 | '') as_fn_error $? "missing file argument" ;; | ||
14847 | esac | ||
14848 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
14849 | ac_need_defaults=false;; | ||
14850 | --header | --heade | --head | --hea ) | ||
14851 | $ac_shift | ||
14852 | case $ac_optarg in | ||
14853 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
14854 | esac | ||
14855 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
14856 | ac_need_defaults=false;; | ||
14857 | --he | --h) | ||
14858 | # Conflict between --help and --header | ||
14859 | as_fn_error $? "ambiguous option: \`$1' | ||
14860 | Try \`$0 --help' for more information.";; | ||
14861 | --help | --hel | -h ) | ||
14862 | $as_echo "$ac_cs_usage"; exit ;; | ||
14863 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
14864 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
14865 | ac_cs_silent=: ;; | ||
14866 | |||
14867 | # This is an error. | ||
14868 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
14869 | Try \`$0 --help' for more information." ;; | ||
14870 | |||
14871 | *) as_fn_append ac_config_targets " $1" | ||
14872 | ac_need_defaults=false ;; | ||
14873 | |||
14874 | esac | ||
14875 | shift | ||
14876 | done | ||
14877 | |||
14878 | ac_configure_extra_args= | ||
14879 | |||
14880 | if $ac_cs_silent; then | ||
14881 | exec 6>/dev/null | ||
14882 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
14883 | fi | ||
14884 | |||
14885 | _ACEOF | ||
14886 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14887 | if \$ac_cs_recheck; then | ||
14888 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
14889 | shift | ||
14890 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
14891 | CONFIG_SHELL='$SHELL' | ||
14892 | export CONFIG_SHELL | ||
14893 | exec "\$@" | ||
14894 | fi | ||
14895 | |||
14896 | _ACEOF | ||
14897 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
14898 | exec 5>>config.log | ||
14899 | { | ||
14900 | echo | ||
14901 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
14902 | ## Running $as_me. ## | ||
14903 | _ASBOX | ||
14904 | $as_echo "$ac_log" | ||
14905 | } >&5 | ||
14906 | |||
14907 | _ACEOF | ||
14908 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
14909 | # | ||
14910 | # INIT-COMMANDS | ||
14911 | # | ||
14912 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
14913 | |||
14914 | |||
14915 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
14916 | # if CDPATH is set. | ||
14917 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
14918 | |||
14919 | sed_quote_subst='$sed_quote_subst' | ||
14920 | double_quote_subst='$double_quote_subst' | ||
14921 | delay_variable_subst='$delay_variable_subst' | ||
14922 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
14923 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14924 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14925 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
14926 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
14927 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
14928 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
14929 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
14930 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
14931 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
14932 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
14933 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
14934 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
14935 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
14936 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
14937 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
14938 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
14939 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14940 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14941 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14942 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
14943 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
14944 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
14945 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
14946 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
14947 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
14948 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
14949 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14950 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14951 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
14952 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14953 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
14954 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
14955 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
14956 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
14957 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
14958 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
14959 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14960 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14961 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14962 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
14963 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
14964 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
14965 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
14966 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
14967 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
14968 | 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"`' | ||
14969 | 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"`' | ||
14970 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
14971 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14972 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
14973 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
14974 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
14975 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
14976 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
14977 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
14978 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
14979 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
14980 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14981 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
14982 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
14983 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
14984 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
14985 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
14986 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14987 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14988 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
14989 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
14990 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14991 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
14992 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
14993 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14994 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14995 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14996 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14997 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14998 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
14999 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
15000 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
15001 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
15002 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15003 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
15004 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
15005 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
15006 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
15007 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
15008 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
15009 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
15010 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
15011 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
15012 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
15013 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
15014 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15015 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
15016 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
15017 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15018 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15019 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
15020 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
15021 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
15022 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
15023 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
15024 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
15025 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
15026 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15027 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15028 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15029 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15030 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15031 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
15032 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
15033 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
15034 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15035 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
15036 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
15037 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
15038 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
15039 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
15040 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
15041 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
15042 | |||
15043 | LTCC='$LTCC' | ||
15044 | LTCFLAGS='$LTCFLAGS' | ||
15045 | compiler='$compiler_DEFAULT' | ||
15046 | |||
15047 | # Quote evaled strings. | ||
15048 | for var in SED \ | ||
15049 | GREP \ | ||
15050 | EGREP \ | ||
15051 | FGREP \ | ||
15052 | LD \ | ||
15053 | NM \ | ||
15054 | LN_S \ | ||
15055 | lt_SP2NL \ | ||
15056 | lt_NL2SP \ | ||
15057 | reload_flag \ | ||
15058 | deplibs_check_method \ | ||
15059 | file_magic_cmd \ | ||
15060 | AR \ | ||
15061 | AR_FLAGS \ | ||
15062 | STRIP \ | ||
15063 | RANLIB \ | ||
15064 | CC \ | ||
15065 | CFLAGS \ | ||
15066 | compiler \ | ||
15067 | lt_cv_sys_global_symbol_pipe \ | ||
15068 | lt_cv_sys_global_symbol_to_cdecl \ | ||
15069 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
15070 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
15071 | SHELL \ | ||
15072 | ECHO \ | ||
15073 | lt_prog_compiler_no_builtin_flag \ | ||
15074 | lt_prog_compiler_wl \ | ||
15075 | lt_prog_compiler_pic \ | ||
15076 | lt_prog_compiler_static \ | ||
15077 | lt_cv_prog_compiler_c_o \ | ||
15078 | need_locks \ | ||
15079 | DSYMUTIL \ | ||
15080 | NMEDIT \ | ||
15081 | LIPO \ | ||
15082 | OTOOL \ | ||
15083 | OTOOL64 \ | ||
15084 | shrext_cmds \ | ||
15085 | export_dynamic_flag_spec \ | ||
15086 | whole_archive_flag_spec \ | ||
15087 | compiler_needs_object \ | ||
15088 | with_gnu_ld \ | ||
15089 | allow_undefined_flag \ | ||
15090 | no_undefined_flag \ | ||
15091 | hardcode_libdir_flag_spec \ | ||
15092 | hardcode_libdir_flag_spec_ld \ | ||
15093 | hardcode_libdir_separator \ | ||
15094 | fix_srcfile_path \ | ||
15095 | exclude_expsyms \ | ||
15096 | include_expsyms \ | ||
15097 | file_list_spec \ | ||
15098 | variables_saved_for_relink \ | ||
15099 | libname_spec \ | ||
15100 | library_names_spec \ | ||
15101 | soname_spec \ | ||
15102 | finish_eval \ | ||
15103 | old_striplib \ | ||
15104 | striplib; do | ||
15105 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
15106 | *[\\\\\\\`\\"\\\$]*) | ||
15107 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
15108 | ;; | ||
15109 | *) | ||
15110 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
15111 | ;; | ||
15112 | esac | ||
15113 | done | ||
15114 | |||
15115 | # Double-quote double-evaled strings. | ||
15116 | for var in reload_cmds \ | ||
15117 | old_postinstall_cmds \ | ||
15118 | old_postuninstall_cmds \ | ||
15119 | old_archive_cmds \ | ||
15120 | extract_expsyms_cmds \ | ||
15121 | old_archive_from_new_cmds \ | ||
15122 | old_archive_from_expsyms_cmds \ | ||
15123 | archive_cmds \ | ||
15124 | archive_expsym_cmds \ | ||
15125 | module_cmds \ | ||
15126 | module_expsym_cmds \ | ||
15127 | export_symbols_cmds \ | ||
15128 | prelink_cmds \ | ||
15129 | postinstall_cmds \ | ||
15130 | postuninstall_cmds \ | ||
15131 | finish_cmds \ | ||
15132 | sys_lib_search_path_spec \ | ||
15133 | sys_lib_dlsearch_path_spec; do | ||
15134 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
15135 | *[\\\\\\\`\\"\\\$]*) | ||
15136 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
15137 | ;; | ||
15138 | *) | ||
15139 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
15140 | ;; | ||
15141 | esac | ||
15142 | done | ||
15143 | |||
15144 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
15145 | case \$lt_ECHO in | ||
15146 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
15147 | ;; | ||
15148 | esac | ||
15149 | |||
15150 | ac_aux_dir='$ac_aux_dir' | ||
15151 | xsi_shell='$xsi_shell' | ||
15152 | lt_shell_append='$lt_shell_append' | ||
15153 | |||
15154 | # See if we are running on zsh, and set the options which allow our | ||
15155 | # commands through without removal of \ escapes INIT. | ||
15156 | if test -n "\${ZSH_VERSION+set}" ; then | ||
15157 | setopt NO_GLOB_SUBST | ||
15158 | fi | ||
15159 | |||
15160 | |||
15161 | PACKAGE='$PACKAGE' | ||
15162 | VERSION='$VERSION' | ||
15163 | TIMESTAMP='$TIMESTAMP' | ||
15164 | RM='$RM' | ||
15165 | ofile='$ofile' | ||
15166 | |||
15167 | |||
15168 | |||
15169 | |||
15170 | _ACEOF | ||
15171 | |||
15172 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15173 | |||
15174 | # Handling of arguments. | ||
15175 | for ac_config_target in $ac_config_targets | ||
15176 | do | ||
15177 | case $ac_config_target in | ||
15178 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
15179 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
15180 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
15181 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
15182 | "eet.pc") CONFIG_FILES="$CONFIG_FILES eet.pc" ;; | ||
15183 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
15184 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
15185 | "doc/eet.dox") CONFIG_FILES="$CONFIG_FILES doc/eet.dox" ;; | ||
15186 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
15187 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
15188 | "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; | ||
15189 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
15190 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
15191 | "eet.spec") CONFIG_FILES="$CONFIG_FILES eet.spec" ;; | ||
15192 | |||
15193 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
15194 | esac | ||
15195 | done | ||
15196 | |||
15197 | |||
15198 | # If the user did not use the arguments to specify the items to instantiate, | ||
15199 | # then the envvar interface is used. Set only those that are not. | ||
15200 | # We use the long form for the default assignment because of an extremely | ||
15201 | # bizarre bug on SunOS 4.1.3. | ||
15202 | if $ac_need_defaults; then | ||
15203 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
15204 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
15205 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
15206 | fi | ||
15207 | |||
15208 | # Have a temporary directory for convenience. Make it in the build tree | ||
15209 | # simply because there is no reason against having it here, and in addition, | ||
15210 | # creating and moving files from /tmp can sometimes cause problems. | ||
15211 | # Hook for its removal unless debugging. | ||
15212 | # Note that there is a small window in which the directory will not be cleaned: | ||
15213 | # after its creation but before its name has been assigned to `$tmp'. | ||
15214 | $debug || | ||
15215 | { | ||
15216 | tmp= | ||
15217 | trap 'exit_status=$? | ||
15218 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
15219 | ' 0 | ||
15220 | trap 'as_fn_exit 1' 1 2 13 15 | ||
15221 | } | ||
15222 | # Create a (secure) tmp directory for tmp files. | ||
15223 | |||
15224 | { | ||
15225 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
15226 | test -n "$tmp" && test -d "$tmp" | ||
15227 | } || | ||
15228 | { | ||
15229 | tmp=./conf$$-$RANDOM | ||
15230 | (umask 077 && mkdir "$tmp") | ||
15231 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
15232 | |||
15233 | # Set up the scripts for CONFIG_FILES section. | ||
15234 | # No need to generate them if there are no CONFIG_FILES. | ||
15235 | # This happens for instance with `./config.status config.h'. | ||
15236 | if test -n "$CONFIG_FILES"; then | ||
15237 | |||
15238 | |||
15239 | ac_cr=`echo X | tr X '\015'` | ||
15240 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
15241 | # But we know of no other shell where ac_cr would be empty at this | ||
15242 | # point, so we can use a bashism as a fallback. | ||
15243 | if test "x$ac_cr" = x; then | ||
15244 | eval ac_cr=\$\'\\r\' | ||
15245 | fi | ||
15246 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
15247 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
15248 | ac_cs_awk_cr='\\r' | ||
15249 | else | ||
15250 | ac_cs_awk_cr=$ac_cr | ||
15251 | fi | ||
15252 | |||
15253 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
15254 | _ACEOF | ||
15255 | |||
15256 | |||
15257 | { | ||
15258 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
15259 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
15260 | echo "_ACEOF" | ||
15261 | } >conf$$subs.sh || | ||
15262 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
15263 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
15264 | ac_delim='%!_!# ' | ||
15265 | for ac_last_try in false false false false false :; do | ||
15266 | . ./conf$$subs.sh || | ||
15267 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
15268 | |||
15269 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
15270 | if test $ac_delim_n = $ac_delim_num; then | ||
15271 | break | ||
15272 | elif $ac_last_try; then | ||
15273 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
15274 | else | ||
15275 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
15276 | fi | ||
15277 | done | ||
15278 | rm -f conf$$subs.sh | ||
15279 | |||
15280 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15281 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
15282 | _ACEOF | ||
15283 | sed -n ' | ||
15284 | h | ||
15285 | s/^/S["/; s/!.*/"]=/ | ||
15286 | p | ||
15287 | g | ||
15288 | s/^[^!]*!// | ||
15289 | :repl | ||
15290 | t repl | ||
15291 | s/'"$ac_delim"'$// | ||
15292 | t delim | ||
15293 | :nl | ||
15294 | h | ||
15295 | s/\(.\{148\}\)..*/\1/ | ||
15296 | t more1 | ||
15297 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
15298 | p | ||
15299 | n | ||
15300 | b repl | ||
15301 | :more1 | ||
15302 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
15303 | p | ||
15304 | g | ||
15305 | s/.\{148\}// | ||
15306 | t nl | ||
15307 | :delim | ||
15308 | h | ||
15309 | s/\(.\{148\}\)..*/\1/ | ||
15310 | t more2 | ||
15311 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
15312 | p | ||
15313 | b | ||
15314 | :more2 | ||
15315 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
15316 | p | ||
15317 | g | ||
15318 | s/.\{148\}// | ||
15319 | t delim | ||
15320 | ' <conf$$subs.awk | sed ' | ||
15321 | /^[^""]/{ | ||
15322 | N | ||
15323 | s/\n// | ||
15324 | } | ||
15325 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
15326 | rm -f conf$$subs.awk | ||
15327 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15328 | _ACAWK | ||
15329 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
15330 | for (key in S) S_is_set[key] = 1 | ||
15331 | FS = "" | ||
15332 | |||
15333 | } | ||
15334 | { | ||
15335 | line = $ 0 | ||
15336 | nfields = split(line, field, "@") | ||
15337 | substed = 0 | ||
15338 | len = length(field[1]) | ||
15339 | for (i = 2; i < nfields; i++) { | ||
15340 | key = field[i] | ||
15341 | keylen = length(key) | ||
15342 | if (S_is_set[key]) { | ||
15343 | value = S[key] | ||
15344 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
15345 | len += length(value) + length(field[++i]) | ||
15346 | substed = 1 | ||
15347 | } else | ||
15348 | len += 1 + keylen | ||
15349 | } | ||
15350 | |||
15351 | print line | ||
15352 | } | ||
15353 | |||
15354 | _ACAWK | ||
15355 | _ACEOF | ||
15356 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15357 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
15358 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
15359 | else | ||
15360 | cat | ||
15361 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
15362 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
15363 | _ACEOF | ||
15364 | |||
15365 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
15366 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
15367 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
15368 | # (actually we leave an empty line to preserve line numbers). | ||
15369 | if test "x$srcdir" = x.; then | ||
15370 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
15371 | h | ||
15372 | s/// | ||
15373 | s/^/:/ | ||
15374 | s/[ ]*$/:/ | ||
15375 | s/:\$(srcdir):/:/g | ||
15376 | s/:\${srcdir}:/:/g | ||
15377 | s/:@srcdir@:/:/g | ||
15378 | s/^:*// | ||
15379 | s/:*$// | ||
15380 | x | ||
15381 | s/\(=[ ]*\).*/\1/ | ||
15382 | G | ||
15383 | s/\n// | ||
15384 | s/^[^=]*=[ ]*$// | ||
15385 | }' | ||
15386 | fi | ||
15387 | |||
15388 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15389 | fi # test -n "$CONFIG_FILES" | ||
15390 | |||
15391 | # Set up the scripts for CONFIG_HEADERS section. | ||
15392 | # No need to generate them if there are no CONFIG_HEADERS. | ||
15393 | # This happens for instance with `./config.status Makefile'. | ||
15394 | if test -n "$CONFIG_HEADERS"; then | ||
15395 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
15396 | BEGIN { | ||
15397 | _ACEOF | ||
15398 | |||
15399 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
15400 | # here-document in config.status, that substitutes the proper values into | ||
15401 | # config.h.in to produce config.h. | ||
15402 | |||
15403 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
15404 | # handling of long lines. | ||
15405 | ac_delim='%!_!# ' | ||
15406 | for ac_last_try in false false :; do | ||
15407 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
15408 | if test -z "$ac_t"; then | ||
15409 | break | ||
15410 | elif $ac_last_try; then | ||
15411 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
15412 | else | ||
15413 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
15414 | fi | ||
15415 | done | ||
15416 | |||
15417 | # For the awk script, D is an array of macro values keyed by name, | ||
15418 | # likewise P contains macro parameters if any. Preserve backslash | ||
15419 | # newline sequences. | ||
15420 | |||
15421 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
15422 | sed -n ' | ||
15423 | s/.\{148\}/&'"$ac_delim"'/g | ||
15424 | t rset | ||
15425 | :rset | ||
15426 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
15427 | t def | ||
15428 | d | ||
15429 | :def | ||
15430 | s/\\$// | ||
15431 | t bsnl | ||
15432 | s/["\\]/\\&/g | ||
15433 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
15434 | D["\1"]=" \3"/p | ||
15435 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
15436 | d | ||
15437 | :bsnl | ||
15438 | s/["\\]/\\&/g | ||
15439 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
15440 | D["\1"]=" \3\\\\\\n"\\/p | ||
15441 | t cont | ||
15442 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
15443 | t cont | ||
15444 | d | ||
15445 | :cont | ||
15446 | n | ||
15447 | s/.\{148\}/&'"$ac_delim"'/g | ||
15448 | t clear | ||
15449 | :clear | ||
15450 | s/\\$// | ||
15451 | t bsnlc | ||
15452 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
15453 | d | ||
15454 | :bsnlc | ||
15455 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
15456 | b cont | ||
15457 | ' <confdefs.h | sed ' | ||
15458 | s/'"$ac_delim"'/"\\\ | ||
15459 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
15460 | |||
15461 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15462 | for (key in D) D_is_set[key] = 1 | ||
15463 | FS = "" | ||
15464 | } | ||
15465 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
15466 | line = \$ 0 | ||
15467 | split(line, arg, " ") | ||
15468 | if (arg[1] == "#") { | ||
15469 | defundef = arg[2] | ||
15470 | mac1 = arg[3] | ||
15471 | } else { | ||
15472 | defundef = substr(arg[1], 2) | ||
15473 | mac1 = arg[2] | ||
15474 | } | ||
15475 | split(mac1, mac2, "(") #) | ||
15476 | macro = mac2[1] | ||
15477 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
15478 | if (D_is_set[macro]) { | ||
15479 | # Preserve the white space surrounding the "#". | ||
15480 | print prefix "define", macro P[macro] D[macro] | ||
15481 | next | ||
15482 | } else { | ||
15483 | # Replace #undef with comments. This is necessary, for example, | ||
15484 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
15485 | # on some systems where configure will not decide to define it. | ||
15486 | if (defundef == "undef") { | ||
15487 | print "/*", prefix defundef, macro, "*/" | ||
15488 | next | ||
15489 | } | ||
15490 | } | ||
15491 | } | ||
15492 | { print } | ||
15493 | _ACAWK | ||
15494 | _ACEOF | ||
15495 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15496 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
15497 | fi # test -n "$CONFIG_HEADERS" | ||
15498 | |||
15499 | |||
15500 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
15501 | shift | ||
15502 | for ac_tag | ||
15503 | do | ||
15504 | case $ac_tag in | ||
15505 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
15506 | esac | ||
15507 | case $ac_mode$ac_tag in | ||
15508 | :[FHL]*:*);; | ||
15509 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
15510 | :[FH]-) ac_tag=-:-;; | ||
15511 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
15512 | esac | ||
15513 | ac_save_IFS=$IFS | ||
15514 | IFS=: | ||
15515 | set x $ac_tag | ||
15516 | IFS=$ac_save_IFS | ||
15517 | shift | ||
15518 | ac_file=$1 | ||
15519 | shift | ||
15520 | |||
15521 | case $ac_mode in | ||
15522 | :L) ac_source=$1;; | ||
15523 | :[FH]) | ||
15524 | ac_file_inputs= | ||
15525 | for ac_f | ||
15526 | do | ||
15527 | case $ac_f in | ||
15528 | -) ac_f="$tmp/stdin";; | ||
15529 | *) # Look for the file first in the build tree, then in the source tree | ||
15530 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
15531 | # because $ac_f cannot contain `:'. | ||
15532 | test -f "$ac_f" || | ||
15533 | case $ac_f in | ||
15534 | [\\/$]*) false;; | ||
15535 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
15536 | esac || | ||
15537 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
15538 | esac | ||
15539 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
15540 | as_fn_append ac_file_inputs " '$ac_f'" | ||
15541 | done | ||
15542 | |||
15543 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
15544 | # use $as_me), people would be surprised to read: | ||
15545 | # /* config.h. Generated by config.status. */ | ||
15546 | configure_input='Generated from '` | ||
15547 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
15548 | `' by configure.' | ||
15549 | if test x"$ac_file" != x-; then | ||
15550 | configure_input="$ac_file. $configure_input" | ||
15551 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
15552 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
15553 | fi | ||
15554 | # Neutralize special characters interpreted by sed in replacement strings. | ||
15555 | case $configure_input in #( | ||
15556 | *\&* | *\|* | *\\* ) | ||
15557 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
15558 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
15559 | *) ac_sed_conf_input=$configure_input;; | ||
15560 | esac | ||
15561 | |||
15562 | case $ac_tag in | ||
15563 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
15564 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
15565 | esac | ||
15566 | ;; | ||
15567 | esac | ||
15568 | |||
15569 | ac_dir=`$as_dirname -- "$ac_file" || | ||
15570 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
15571 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
15572 | X"$ac_file" : 'X\(//\)$' \| \ | ||
15573 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
15574 | $as_echo X"$ac_file" | | ||
15575 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
15576 | s//\1/ | ||
15577 | q | ||
15578 | } | ||
15579 | /^X\(\/\/\)[^/].*/{ | ||
15580 | s//\1/ | ||
15581 | q | ||
15582 | } | ||
15583 | /^X\(\/\/\)$/{ | ||
15584 | s//\1/ | ||
15585 | q | ||
15586 | } | ||
15587 | /^X\(\/\).*/{ | ||
15588 | s//\1/ | ||
15589 | q | ||
15590 | } | ||
15591 | s/.*/./; q'` | ||
15592 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
15593 | ac_builddir=. | ||
15594 | |||
15595 | case "$ac_dir" in | ||
15596 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
15597 | *) | ||
15598 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
15599 | # A ".." for each directory in $ac_dir_suffix. | ||
15600 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
15601 | case $ac_top_builddir_sub in | ||
15602 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
15603 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
15604 | esac ;; | ||
15605 | esac | ||
15606 | ac_abs_top_builddir=$ac_pwd | ||
15607 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
15608 | # for backward compatibility: | ||
15609 | ac_top_builddir=$ac_top_build_prefix | ||
15610 | |||
15611 | case $srcdir in | ||
15612 | .) # We are building in place. | ||
15613 | ac_srcdir=. | ||
15614 | ac_top_srcdir=$ac_top_builddir_sub | ||
15615 | ac_abs_top_srcdir=$ac_pwd ;; | ||
15616 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
15617 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
15618 | ac_top_srcdir=$srcdir | ||
15619 | ac_abs_top_srcdir=$srcdir ;; | ||
15620 | *) # Relative name. | ||
15621 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
15622 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
15623 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
15624 | esac | ||
15625 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
15626 | |||
15627 | |||
15628 | case $ac_mode in | ||
15629 | :F) | ||
15630 | # | ||
15631 | # CONFIG_FILE | ||
15632 | # | ||
15633 | |||
15634 | case $INSTALL in | ||
15635 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
15636 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
15637 | esac | ||
15638 | ac_MKDIR_P=$MKDIR_P | ||
15639 | case $MKDIR_P in | ||
15640 | [\\/$]* | ?:[\\/]* ) ;; | ||
15641 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
15642 | esac | ||
15643 | _ACEOF | ||
15644 | |||
15645 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15646 | # If the template does not know about datarootdir, expand it. | ||
15647 | # FIXME: This hack should be removed a few years after 2.60. | ||
15648 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
15649 | ac_sed_dataroot=' | ||
15650 | /datarootdir/ { | ||
15651 | p | ||
15652 | q | ||
15653 | } | ||
15654 | /@datadir@/p | ||
15655 | /@docdir@/p | ||
15656 | /@infodir@/p | ||
15657 | /@localedir@/p | ||
15658 | /@mandir@/p' | ||
15659 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
15660 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
15661 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
15662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
15663 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
15664 | _ACEOF | ||
15665 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15666 | ac_datarootdir_hack=' | ||
15667 | s&@datadir@&$datadir&g | ||
15668 | s&@docdir@&$docdir&g | ||
15669 | s&@infodir@&$infodir&g | ||
15670 | s&@localedir@&$localedir&g | ||
15671 | s&@mandir@&$mandir&g | ||
15672 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
15673 | esac | ||
15674 | _ACEOF | ||
15675 | |||
15676 | # Neutralize VPATH when `$srcdir' = `.'. | ||
15677 | # Shell code in configure.ac might set extrasub. | ||
15678 | # FIXME: do we really want to maintain this feature? | ||
15679 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
15680 | ac_sed_extra="$ac_vpsub | ||
15681 | $extrasub | ||
15682 | _ACEOF | ||
15683 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
15684 | :t | ||
15685 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
15686 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
15687 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
15688 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
15689 | s&@srcdir@&$ac_srcdir&;t t | ||
15690 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
15691 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
15692 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
15693 | s&@builddir@&$ac_builddir&;t t | ||
15694 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
15695 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
15696 | s&@INSTALL@&$ac_INSTALL&;t t | ||
15697 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
15698 | $ac_datarootdir_hack | ||
15699 | " | ||
15700 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
15701 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15702 | |||
15703 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
15704 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
15705 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
15706 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
15707 | which seems to be undefined. Please make sure it is defined" >&5 | ||
15708 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
15709 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
15710 | |||
15711 | rm -f "$tmp/stdin" | ||
15712 | case $ac_file in | ||
15713 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
15714 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
15715 | esac \ | ||
15716 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15717 | ;; | ||
15718 | :H) | ||
15719 | # | ||
15720 | # CONFIG_HEADER | ||
15721 | # | ||
15722 | if test x"$ac_file" != x-; then | ||
15723 | { | ||
15724 | $as_echo "/* $configure_input */" \ | ||
15725 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
15726 | } >"$tmp/config.h" \ | ||
15727 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15728 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
15729 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
15730 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
15731 | else | ||
15732 | rm -f "$ac_file" | ||
15733 | mv "$tmp/config.h" "$ac_file" \ | ||
15734 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
15735 | fi | ||
15736 | else | ||
15737 | $as_echo "/* $configure_input */" \ | ||
15738 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
15739 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
15740 | fi | ||
15741 | # Compute "$ac_file"'s index in $config_headers. | ||
15742 | _am_arg="$ac_file" | ||
15743 | _am_stamp_count=1 | ||
15744 | for _am_header in $config_headers :; do | ||
15745 | case $_am_header in | ||
15746 | $_am_arg | $_am_arg:* ) | ||
15747 | break ;; | ||
15748 | * ) | ||
15749 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
15750 | esac | ||
15751 | done | ||
15752 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
15753 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
15754 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
15755 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
15756 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
15757 | $as_echo X"$_am_arg" | | ||
15758 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
15759 | s//\1/ | ||
15760 | q | ||
15761 | } | ||
15762 | /^X\(\/\/\)[^/].*/{ | ||
15763 | s//\1/ | ||
15764 | q | ||
15765 | } | ||
15766 | /^X\(\/\/\)$/{ | ||
15767 | s//\1/ | ||
15768 | q | ||
15769 | } | ||
15770 | /^X\(\/\).*/{ | ||
15771 | s//\1/ | ||
15772 | q | ||
15773 | } | ||
15774 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
15775 | ;; | ||
15776 | |||
15777 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
15778 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
15779 | ;; | ||
15780 | esac | ||
15781 | |||
15782 | |||
15783 | case $ac_file$ac_mode in | ||
15784 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
15785 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
15786 | # are listed without --file. Let's play safe and only enable the eval | ||
15787 | # if we detect the quoting. | ||
15788 | case $CONFIG_FILES in | ||
15789 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
15790 | *) set x $CONFIG_FILES ;; | ||
15791 | esac | ||
15792 | shift | ||
15793 | for mf | ||
15794 | do | ||
15795 | # Strip MF so we end up with the name of the file. | ||
15796 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
15797 | # Check whether this is an Automake generated Makefile or not. | ||
15798 | # We used to match only the files named `Makefile.in', but | ||
15799 | # some people rename them; so instead we look at the file content. | ||
15800 | # Grep'ing the first line is not enough: some people post-process | ||
15801 | # each Makefile.in and add a new line on top of each file to say so. | ||
15802 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
15803 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
15804 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
15805 | dirpart=`$as_dirname -- "$mf" || | ||
15806 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
15807 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
15808 | X"$mf" : 'X\(//\)$' \| \ | ||
15809 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
15810 | $as_echo X"$mf" | | ||
15811 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
15812 | s//\1/ | ||
15813 | q | ||
15814 | } | ||
15815 | /^X\(\/\/\)[^/].*/{ | ||
15816 | s//\1/ | ||
15817 | q | ||
15818 | } | ||
15819 | /^X\(\/\/\)$/{ | ||
15820 | s//\1/ | ||
15821 | q | ||
15822 | } | ||
15823 | /^X\(\/\).*/{ | ||
15824 | s//\1/ | ||
15825 | q | ||
15826 | } | ||
15827 | s/.*/./; q'` | ||
15828 | else | ||
15829 | continue | ||
15830 | fi | ||
15831 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
15832 | # from the Makefile without running `make'. | ||
15833 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
15834 | test -z "$DEPDIR" && continue | ||
15835 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
15836 | test -z "am__include" && continue | ||
15837 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
15838 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
15839 | U=`sed -n 's/^U = //p' < "$mf"` | ||
15840 | # Find all dependency output files, they are included files with | ||
15841 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
15842 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
15843 | # expansion. | ||
15844 | for file in `sed -n " | ||
15845 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
15846 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
15847 | # Make sure the directory exists. | ||
15848 | test -f "$dirpart/$file" && continue | ||
15849 | fdir=`$as_dirname -- "$file" || | ||
15850 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
15851 | X"$file" : 'X\(//\)[^/]' \| \ | ||
15852 | X"$file" : 'X\(//\)$' \| \ | ||
15853 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
15854 | $as_echo X"$file" | | ||
15855 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
15856 | s//\1/ | ||
15857 | q | ||
15858 | } | ||
15859 | /^X\(\/\/\)[^/].*/{ | ||
15860 | s//\1/ | ||
15861 | q | ||
15862 | } | ||
15863 | /^X\(\/\/\)$/{ | ||
15864 | s//\1/ | ||
15865 | q | ||
15866 | } | ||
15867 | /^X\(\/\).*/{ | ||
15868 | s//\1/ | ||
15869 | q | ||
15870 | } | ||
15871 | s/.*/./; q'` | ||
15872 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
15873 | # echo "creating $dirpart/$file" | ||
15874 | echo '# dummy' > "$dirpart/$file" | ||
15875 | done | ||
15876 | done | ||
15877 | } | ||
15878 | ;; | ||
15879 | "libtool":C) | ||
15880 | |||
15881 | # See if we are running on zsh, and set the options which allow our | ||
15882 | # commands through without removal of \ escapes. | ||
15883 | if test -n "${ZSH_VERSION+set}" ; then | ||
15884 | setopt NO_GLOB_SUBST | ||
15885 | fi | ||
15886 | |||
15887 | cfgfile="${ofile}T" | ||
15888 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
15889 | $RM "$cfgfile" | ||
15890 | |||
15891 | cat <<_LT_EOF >> "$cfgfile" | ||
15892 | #! $SHELL | ||
15893 | |||
15894 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
15895 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
15896 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
15897 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
15898 | # | ||
15899 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
15900 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
15901 | # Written by Gordon Matzigkeit, 1996 | ||
15902 | # | ||
15903 | # This file is part of GNU Libtool. | ||
15904 | # | ||
15905 | # GNU Libtool is free software; you can redistribute it and/or | ||
15906 | # modify it under the terms of the GNU General Public License as | ||
15907 | # published by the Free Software Foundation; either version 2 of | ||
15908 | # the License, or (at your option) any later version. | ||
15909 | # | ||
15910 | # As a special exception to the GNU General Public License, | ||
15911 | # if you distribute this file as part of a program or library that | ||
15912 | # is built using GNU Libtool, you may include this file under the | ||
15913 | # same distribution terms that you use for the rest of that program. | ||
15914 | # | ||
15915 | # GNU Libtool is distributed in the hope that it will be useful, | ||
15916 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15917 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15918 | # GNU General Public License for more details. | ||
15919 | # | ||
15920 | # You should have received a copy of the GNU General Public License | ||
15921 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
15922 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
15923 | # obtained by writing to the Free Software Foundation, Inc., | ||
15924 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
15925 | |||
15926 | |||
15927 | # The names of the tagged configurations supported by this script. | ||
15928 | available_tags="" | ||
15929 | |||
15930 | # ### BEGIN LIBTOOL CONFIG | ||
15931 | |||
15932 | # Assembler program. | ||
15933 | AS=$AS | ||
15934 | |||
15935 | # DLL creation program. | ||
15936 | DLLTOOL=$DLLTOOL | ||
15937 | |||
15938 | # Object dumper program. | ||
15939 | OBJDUMP=$OBJDUMP | ||
15940 | |||
15941 | # Which release of libtool.m4 was used? | ||
15942 | macro_version=$macro_version | ||
15943 | macro_revision=$macro_revision | ||
15944 | |||
15945 | # Whether or not to build shared libraries. | ||
15946 | build_libtool_libs=$enable_shared | ||
15947 | |||
15948 | # Whether or not to build static libraries. | ||
15949 | build_old_libs=$enable_static | ||
15950 | |||
15951 | # What type of objects to build. | ||
15952 | pic_mode=$pic_mode | ||
15953 | |||
15954 | # Whether or not to optimize for fast installation. | ||
15955 | fast_install=$enable_fast_install | ||
15956 | |||
15957 | # The host system. | ||
15958 | host_alias=$host_alias | ||
15959 | host=$host | ||
15960 | host_os=$host_os | ||
15961 | |||
15962 | # The build system. | ||
15963 | build_alias=$build_alias | ||
15964 | build=$build | ||
15965 | build_os=$build_os | ||
15966 | |||
15967 | # A sed program that does not truncate output. | ||
15968 | SED=$lt_SED | ||
15969 | |||
15970 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
15971 | Xsed="\$SED -e 1s/^X//" | ||
15972 | |||
15973 | # A grep program that handles long lines. | ||
15974 | GREP=$lt_GREP | ||
15975 | |||
15976 | # An ERE matcher. | ||
15977 | EGREP=$lt_EGREP | ||
15978 | |||
15979 | # A literal string matcher. | ||
15980 | FGREP=$lt_FGREP | ||
15981 | |||
15982 | # A BSD- or MS-compatible name lister. | ||
15983 | NM=$lt_NM | ||
15984 | |||
15985 | # Whether we need soft or hard links. | ||
15986 | LN_S=$lt_LN_S | ||
15987 | |||
15988 | # What is the maximum length of a command? | ||
15989 | max_cmd_len=$max_cmd_len | ||
15990 | |||
15991 | # Object file suffix (normally "o"). | ||
15992 | objext=$ac_objext | ||
15993 | |||
15994 | # Executable file suffix (normally ""). | ||
15995 | exeext=$exeext | ||
15996 | |||
15997 | # whether the shell understands "unset". | ||
15998 | lt_unset=$lt_unset | ||
15999 | |||
16000 | # turn spaces into newlines. | ||
16001 | SP2NL=$lt_lt_SP2NL | ||
16002 | |||
16003 | # turn newlines into spaces. | ||
16004 | NL2SP=$lt_lt_NL2SP | ||
16005 | |||
16006 | # How to create reloadable object files. | ||
16007 | reload_flag=$lt_reload_flag | ||
16008 | reload_cmds=$lt_reload_cmds | ||
16009 | |||
16010 | # Method to check whether dependent libraries are shared objects. | ||
16011 | deplibs_check_method=$lt_deplibs_check_method | ||
16012 | |||
16013 | # Command to use when deplibs_check_method == "file_magic". | ||
16014 | file_magic_cmd=$lt_file_magic_cmd | ||
16015 | |||
16016 | # The archiver. | ||
16017 | AR=$lt_AR | ||
16018 | AR_FLAGS=$lt_AR_FLAGS | ||
16019 | |||
16020 | # A symbol stripping program. | ||
16021 | STRIP=$lt_STRIP | ||
16022 | |||
16023 | # Commands used to install an old-style archive. | ||
16024 | RANLIB=$lt_RANLIB | ||
16025 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
16026 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
16027 | |||
16028 | # A C compiler. | ||
16029 | LTCC=$lt_CC | ||
16030 | |||
16031 | # LTCC compiler flags. | ||
16032 | LTCFLAGS=$lt_CFLAGS | ||
16033 | |||
16034 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
16035 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
16036 | |||
16037 | # Transform the output of nm in a proper C declaration. | ||
16038 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
16039 | |||
16040 | # Transform the output of nm in a C name address pair. | ||
16041 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
16042 | |||
16043 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
16044 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
16045 | |||
16046 | # The name of the directory that contains temporary libtool files. | ||
16047 | objdir=$objdir | ||
16048 | |||
16049 | # Shell to use when invoking shell scripts. | ||
16050 | SHELL=$lt_SHELL | ||
16051 | |||
16052 | # An echo program that does not interpret backslashes. | ||
16053 | ECHO=$lt_ECHO | ||
16054 | |||
16055 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
16056 | MAGIC_CMD=$MAGIC_CMD | ||
16057 | |||
16058 | # Must we lock files when doing compilation? | ||
16059 | need_locks=$lt_need_locks | ||
16060 | |||
16061 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
16062 | DSYMUTIL=$lt_DSYMUTIL | ||
16063 | |||
16064 | # Tool to change global to local symbols on Mac OS X. | ||
16065 | NMEDIT=$lt_NMEDIT | ||
16066 | |||
16067 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
16068 | LIPO=$lt_LIPO | ||
16069 | |||
16070 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
16071 | OTOOL=$lt_OTOOL | ||
16072 | |||
16073 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
16074 | OTOOL64=$lt_OTOOL64 | ||
16075 | |||
16076 | # Old archive suffix (normally "a"). | ||
16077 | libext=$libext | ||
16078 | |||
16079 | # Shared library suffix (normally ".so"). | ||
16080 | shrext_cmds=$lt_shrext_cmds | ||
16081 | |||
16082 | # The commands to extract the exported symbol list from a shared archive. | ||
16083 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
16084 | |||
16085 | # Variables whose values should be saved in libtool wrapper scripts and | ||
16086 | # restored at link time. | ||
16087 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
16088 | |||
16089 | # Do we need the "lib" prefix for modules? | ||
16090 | need_lib_prefix=$need_lib_prefix | ||
16091 | |||
16092 | # Do we need a version for libraries? | ||
16093 | need_version=$need_version | ||
16094 | |||
16095 | # Library versioning type. | ||
16096 | version_type=$version_type | ||
16097 | |||
16098 | # Shared library runtime path variable. | ||
16099 | runpath_var=$runpath_var | ||
16100 | |||
16101 | # Shared library path variable. | ||
16102 | shlibpath_var=$shlibpath_var | ||
16103 | |||
16104 | # Is shlibpath searched before the hard-coded library search path? | ||
16105 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
16106 | |||
16107 | # Format of library name prefix. | ||
16108 | libname_spec=$lt_libname_spec | ||
16109 | |||
16110 | # List of archive names. First name is the real one, the rest are links. | ||
16111 | # The last name is the one that the linker finds with -lNAME | ||
16112 | library_names_spec=$lt_library_names_spec | ||
16113 | |||
16114 | # The coded name of the library, if different from the real name. | ||
16115 | soname_spec=$lt_soname_spec | ||
16116 | |||
16117 | # Command to use after installation of a shared archive. | ||
16118 | postinstall_cmds=$lt_postinstall_cmds | ||
16119 | |||
16120 | # Command to use after uninstallation of a shared archive. | ||
16121 | postuninstall_cmds=$lt_postuninstall_cmds | ||
16122 | |||
16123 | # Commands used to finish a libtool library installation in a directory. | ||
16124 | finish_cmds=$lt_finish_cmds | ||
16125 | |||
16126 | # As "finish_cmds", except a single script fragment to be evaled but | ||
16127 | # not shown. | ||
16128 | finish_eval=$lt_finish_eval | ||
16129 | |||
16130 | # Whether we should hardcode library paths into libraries. | ||
16131 | hardcode_into_libs=$hardcode_into_libs | ||
16132 | |||
16133 | # Compile-time system search path for libraries. | ||
16134 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
16135 | |||
16136 | # Run-time system search path for libraries. | ||
16137 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
16138 | |||
16139 | # Whether dlopen is supported. | ||
16140 | dlopen_support=$enable_dlopen | ||
16141 | |||
16142 | # Whether dlopen of programs is supported. | ||
16143 | dlopen_self=$enable_dlopen_self | ||
16144 | |||
16145 | # Whether dlopen of statically linked programs is supported. | ||
16146 | dlopen_self_static=$enable_dlopen_self_static | ||
16147 | |||
16148 | # Commands to strip libraries. | ||
16149 | old_striplib=$lt_old_striplib | ||
16150 | striplib=$lt_striplib | ||
16151 | |||
16152 | |||
16153 | # The linker used to build libraries. | ||
16154 | LD=$lt_LD | ||
16155 | |||
16156 | # Commands used to build an old-style archive. | ||
16157 | old_archive_cmds=$lt_old_archive_cmds | ||
16158 | |||
16159 | # A language specific compiler. | ||
16160 | CC=$lt_compiler | ||
16161 | |||
16162 | # Is the compiler the GNU compiler? | ||
16163 | with_gcc=$GCC | ||
16164 | |||
16165 | # Compiler flag to turn off builtin functions. | ||
16166 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
16167 | |||
16168 | # How to pass a linker flag through the compiler. | ||
16169 | wl=$lt_lt_prog_compiler_wl | ||
16170 | |||
16171 | # Additional compiler flags for building library objects. | ||
16172 | pic_flag=$lt_lt_prog_compiler_pic | ||
16173 | |||
16174 | # Compiler flag to prevent dynamic linking. | ||
16175 | link_static_flag=$lt_lt_prog_compiler_static | ||
16176 | |||
16177 | # Does compiler simultaneously support -c and -o options? | ||
16178 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
16179 | |||
16180 | # Whether or not to add -lc for building shared libraries. | ||
16181 | build_libtool_need_lc=$archive_cmds_need_lc | ||
16182 | |||
16183 | # Whether or not to disallow shared libs when runtime libs are static. | ||
16184 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
16185 | |||
16186 | # Compiler flag to allow reflexive dlopens. | ||
16187 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
16188 | |||
16189 | # Compiler flag to generate shared objects directly from archives. | ||
16190 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
16191 | |||
16192 | # Whether the compiler copes with passing no objects directly. | ||
16193 | compiler_needs_object=$lt_compiler_needs_object | ||
16194 | |||
16195 | # Create an old-style archive from a shared archive. | ||
16196 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
16197 | |||
16198 | # Create a temporary old-style archive to link instead of a shared archive. | ||
16199 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
16200 | |||
16201 | # Commands used to build a shared archive. | ||
16202 | archive_cmds=$lt_archive_cmds | ||
16203 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
16204 | |||
16205 | # Commands used to build a loadable module if different from building | ||
16206 | # a shared archive. | ||
16207 | module_cmds=$lt_module_cmds | ||
16208 | module_expsym_cmds=$lt_module_expsym_cmds | ||
16209 | |||
16210 | # Whether we are building with GNU ld or not. | ||
16211 | with_gnu_ld=$lt_with_gnu_ld | ||
16212 | |||
16213 | # Flag that allows shared libraries with undefined symbols to be built. | ||
16214 | allow_undefined_flag=$lt_allow_undefined_flag | ||
16215 | |||
16216 | # Flag that enforces no undefined symbols. | ||
16217 | no_undefined_flag=$lt_no_undefined_flag | ||
16218 | |||
16219 | # Flag to hardcode \$libdir into a binary during linking. | ||
16220 | # This must work even if \$libdir does not exist | ||
16221 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
16222 | |||
16223 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
16224 | # during linking. This must work even if \$libdir does not exist. | ||
16225 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
16226 | |||
16227 | # Whether we need a single "-rpath" flag with a separated argument. | ||
16228 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
16229 | |||
16230 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
16231 | # DIR into the resulting binary. | ||
16232 | hardcode_direct=$hardcode_direct | ||
16233 | |||
16234 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
16235 | # DIR into the resulting binary and the resulting library dependency is | ||
16236 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
16237 | # library is relocated. | ||
16238 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
16239 | |||
16240 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
16241 | # into the resulting binary. | ||
16242 | hardcode_minus_L=$hardcode_minus_L | ||
16243 | |||
16244 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
16245 | # into the resulting binary. | ||
16246 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
16247 | |||
16248 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
16249 | # into the library and all subsequent libraries and executables linked | ||
16250 | # against it. | ||
16251 | hardcode_automatic=$hardcode_automatic | ||
16252 | |||
16253 | # Set to yes if linker adds runtime paths of dependent libraries | ||
16254 | # to runtime path list. | ||
16255 | inherit_rpath=$inherit_rpath | ||
16256 | |||
16257 | # Whether libtool must link a program against all its dependency libraries. | ||
16258 | link_all_deplibs=$link_all_deplibs | ||
16259 | |||
16260 | # Fix the shell variable \$srcfile for the compiler. | ||
16261 | fix_srcfile_path=$lt_fix_srcfile_path | ||
16262 | |||
16263 | # Set to "yes" if exported symbols are required. | ||
16264 | always_export_symbols=$always_export_symbols | ||
16265 | |||
16266 | # The commands to list exported symbols. | ||
16267 | export_symbols_cmds=$lt_export_symbols_cmds | ||
16268 | |||
16269 | # Symbols that should not be listed in the preloaded symbols. | ||
16270 | exclude_expsyms=$lt_exclude_expsyms | ||
16271 | |||
16272 | # Symbols that must always be exported. | ||
16273 | include_expsyms=$lt_include_expsyms | ||
16274 | |||
16275 | # Commands necessary for linking programs (against libraries) with templates. | ||
16276 | prelink_cmds=$lt_prelink_cmds | ||
16277 | |||
16278 | # Specify filename containing input files. | ||
16279 | file_list_spec=$lt_file_list_spec | ||
16280 | |||
16281 | # How to hardcode a shared library path into an executable. | ||
16282 | hardcode_action=$hardcode_action | ||
16283 | |||
16284 | # ### END LIBTOOL CONFIG | ||
16285 | |||
16286 | _LT_EOF | ||
16287 | |||
16288 | case $host_os in | ||
16289 | aix3*) | ||
16290 | cat <<\_LT_EOF >> "$cfgfile" | ||
16291 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
16292 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
16293 | # vanish in a puff of smoke. | ||
16294 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
16295 | COLLECT_NAMES= | ||
16296 | export COLLECT_NAMES | ||
16297 | fi | ||
16298 | _LT_EOF | ||
16299 | ;; | ||
16300 | esac | ||
16301 | |||
16302 | |||
16303 | ltmain="$ac_aux_dir/ltmain.sh" | ||
16304 | |||
16305 | |||
16306 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
16307 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
16308 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
16309 | # is reportedly fixed, but why not run on old versions too? | ||
16310 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
16311 | || (rm -f "$cfgfile"; exit 1) | ||
16312 | |||
16313 | case $xsi_shell in | ||
16314 | yes) | ||
16315 | cat << \_LT_EOF >> "$cfgfile" | ||
16316 | |||
16317 | # func_dirname file append nondir_replacement | ||
16318 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
16319 | # otherwise set result to NONDIR_REPLACEMENT. | ||
16320 | func_dirname () | ||
16321 | { | ||
16322 | case ${1} in | ||
16323 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
16324 | * ) func_dirname_result="${3}" ;; | ||
16325 | esac | ||
16326 | } | ||
16327 | |||
16328 | # func_basename file | ||
16329 | func_basename () | ||
16330 | { | ||
16331 | func_basename_result="${1##*/}" | ||
16332 | } | ||
16333 | |||
16334 | # func_dirname_and_basename file append nondir_replacement | ||
16335 | # perform func_basename and func_dirname in a single function | ||
16336 | # call: | ||
16337 | # dirname: Compute the dirname of FILE. If nonempty, | ||
16338 | # add APPEND to the result, otherwise set result | ||
16339 | # to NONDIR_REPLACEMENT. | ||
16340 | # value returned in "$func_dirname_result" | ||
16341 | # basename: Compute filename of FILE. | ||
16342 | # value retuned in "$func_basename_result" | ||
16343 | # Implementation must be kept synchronized with func_dirname | ||
16344 | # and func_basename. For efficiency, we do not delegate to | ||
16345 | # those functions but instead duplicate the functionality here. | ||
16346 | func_dirname_and_basename () | ||
16347 | { | ||
16348 | case ${1} in | ||
16349 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
16350 | * ) func_dirname_result="${3}" ;; | ||
16351 | esac | ||
16352 | func_basename_result="${1##*/}" | ||
16353 | } | ||
16354 | |||
16355 | # func_stripname prefix suffix name | ||
16356 | # strip PREFIX and SUFFIX off of NAME. | ||
16357 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
16358 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
16359 | # dot (in which case that matches only a dot). | ||
16360 | func_stripname () | ||
16361 | { | ||
16362 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
16363 | # positional parameters, so assign one to ordinary parameter first. | ||
16364 | func_stripname_result=${3} | ||
16365 | func_stripname_result=${func_stripname_result#"${1}"} | ||
16366 | func_stripname_result=${func_stripname_result%"${2}"} | ||
16367 | } | ||
16368 | |||
16369 | # func_opt_split | ||
16370 | func_opt_split () | ||
16371 | { | ||
16372 | func_opt_split_opt=${1%%=*} | ||
16373 | func_opt_split_arg=${1#*=} | ||
16374 | } | ||
16375 | |||
16376 | # func_lo2o object | ||
16377 | func_lo2o () | ||
16378 | { | ||
16379 | case ${1} in | ||
16380 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
16381 | *) func_lo2o_result=${1} ;; | ||
16382 | esac | ||
16383 | } | ||
16384 | |||
16385 | # func_xform libobj-or-source | ||
16386 | func_xform () | ||
16387 | { | ||
16388 | func_xform_result=${1%.*}.lo | ||
16389 | } | ||
16390 | |||
16391 | # func_arith arithmetic-term... | ||
16392 | func_arith () | ||
16393 | { | ||
16394 | func_arith_result=$(( $* )) | ||
16395 | } | ||
16396 | |||
16397 | # func_len string | ||
16398 | # STRING may not start with a hyphen. | ||
16399 | func_len () | ||
16400 | { | ||
16401 | func_len_result=${#1} | ||
16402 | } | ||
16403 | |||
16404 | _LT_EOF | ||
16405 | ;; | ||
16406 | *) # Bourne compatible functions. | ||
16407 | cat << \_LT_EOF >> "$cfgfile" | ||
16408 | |||
16409 | # func_dirname file append nondir_replacement | ||
16410 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
16411 | # otherwise set result to NONDIR_REPLACEMENT. | ||
16412 | func_dirname () | ||
16413 | { | ||
16414 | # Extract subdirectory from the argument. | ||
16415 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
16416 | if test "X$func_dirname_result" = "X${1}"; then | ||
16417 | func_dirname_result="${3}" | ||
16418 | else | ||
16419 | func_dirname_result="$func_dirname_result${2}" | ||
16420 | fi | ||
16421 | } | ||
16422 | |||
16423 | # func_basename file | ||
16424 | func_basename () | ||
16425 | { | ||
16426 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
16427 | } | ||
16428 | |||
16429 | |||
16430 | # func_stripname prefix suffix name | ||
16431 | # strip PREFIX and SUFFIX off of NAME. | ||
16432 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
16433 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
16434 | # dot (in which case that matches only a dot). | ||
16435 | # func_strip_suffix prefix name | ||
16436 | func_stripname () | ||
16437 | { | ||
16438 | case ${2} in | ||
16439 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
16440 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
16441 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
16442 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
16443 | esac | ||
16444 | } | ||
16445 | |||
16446 | # sed scripts: | ||
16447 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
16448 | my_sed_long_arg='1s/^-[^=]*=//' | ||
16449 | |||
16450 | # func_opt_split | ||
16451 | func_opt_split () | ||
16452 | { | ||
16453 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
16454 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
16455 | } | ||
16456 | |||
16457 | # func_lo2o object | ||
16458 | func_lo2o () | ||
16459 | { | ||
16460 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
16461 | } | ||
16462 | |||
16463 | # func_xform libobj-or-source | ||
16464 | func_xform () | ||
16465 | { | ||
16466 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
16467 | } | ||
16468 | |||
16469 | # func_arith arithmetic-term... | ||
16470 | func_arith () | ||
16471 | { | ||
16472 | func_arith_result=`expr "$@"` | ||
16473 | } | ||
16474 | |||
16475 | # func_len string | ||
16476 | # STRING may not start with a hyphen. | ||
16477 | func_len () | ||
16478 | { | ||
16479 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
16480 | } | ||
16481 | |||
16482 | _LT_EOF | ||
16483 | esac | ||
16484 | |||
16485 | case $lt_shell_append in | ||
16486 | yes) | ||
16487 | cat << \_LT_EOF >> "$cfgfile" | ||
16488 | |||
16489 | # func_append var value | ||
16490 | # Append VALUE to the end of shell variable VAR. | ||
16491 | func_append () | ||
16492 | { | ||
16493 | eval "$1+=\$2" | ||
16494 | } | ||
16495 | _LT_EOF | ||
16496 | ;; | ||
16497 | *) | ||
16498 | cat << \_LT_EOF >> "$cfgfile" | ||
16499 | |||
16500 | # func_append var value | ||
16501 | # Append VALUE to the end of shell variable VAR. | ||
16502 | func_append () | ||
16503 | { | ||
16504 | eval "$1=\$$1\$2" | ||
16505 | } | ||
16506 | |||
16507 | _LT_EOF | ||
16508 | ;; | ||
16509 | esac | ||
16510 | |||
16511 | |||
16512 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
16513 | || (rm -f "$cfgfile"; exit 1) | ||
16514 | |||
16515 | mv -f "$cfgfile" "$ofile" || | ||
16516 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
16517 | chmod +x "$ofile" | ||
16518 | |||
16519 | ;; | ||
16520 | |||
16521 | esac | ||
16522 | done # for ac_tag | ||
16523 | |||
16524 | |||
16525 | as_fn_exit 0 | ||
16526 | _ACEOF | ||
16527 | ac_clean_files=$ac_clean_files_save | ||
16528 | |||
16529 | test $ac_write_fail = 0 || | ||
16530 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
16531 | |||
16532 | |||
16533 | # configure is writing to config.log, and then calls config.status. | ||
16534 | # config.status does its own redirection, appending to config.log. | ||
16535 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
16536 | # by configure, so config.status won't be able to write to it; its | ||
16537 | # output is simply discarded. So we exec the FD to /dev/null, | ||
16538 | # effectively closing config.log, so it can be properly (re)opened and | ||
16539 | # appended to by config.status. When coming back to configure, we | ||
16540 | # need to make the FD available again. | ||
16541 | if test "$no_create" != yes; then | ||
16542 | ac_cs_success=: | ||
16543 | ac_config_status_args= | ||
16544 | test "$silent" = yes && | ||
16545 | ac_config_status_args="$ac_config_status_args --quiet" | ||
16546 | exec 5>/dev/null | ||
16547 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
16548 | exec 5>>config.log | ||
16549 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
16550 | # would make configure fail if this is the last instruction. | ||
16551 | $ac_cs_success || as_fn_exit 1 | ||
16552 | fi | ||
16553 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
16554 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
16555 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
16556 | fi | ||
16557 | |||
16558 | |||
16559 | |||
16560 | ##################################################################### | ||
16561 | ## Info | ||
16562 | |||
16563 | echo | ||
16564 | echo | ||
16565 | echo | ||
16566 | echo "------------------------------------------------------------------------" | ||
16567 | echo "$PACKAGE_NAME $PACKAGE_VERSION" | ||
16568 | echo "------------------------------------------------------------------------" | ||
16569 | echo | ||
16570 | echo "Configuration Options Summary:" | ||
16571 | echo | ||
16572 | echo " Amalgamation.........: ${do_amalgamation}" | ||
16573 | echo " Secure layer.........: ${secure_layer}" | ||
16574 | if test "x${have_gnutls}" = "xyes" || test "x${have_openssl}" = "xyes" ; then | ||
16575 | echo " Cipher support.....: ${have_cipher}" | ||
16576 | echo " Signature..........: ${have_signature}" | ||
16577 | fi | ||
16578 | echo | ||
16579 | echo " Old eet file format..: ${old_eet_file_format}" | ||
16580 | echo | ||
16581 | echo " Tests................: ${enable_tests}" | ||
16582 | echo " Coverage.............: ${enable_coverage}" | ||
16583 | echo | ||
16584 | echo " Build eet............: $have_eet" | ||
16585 | echo | ||
16586 | echo " Documentation........: ${build_doc}" | ||
16587 | if test "x${build_doc}" = "xyes" ; then | ||
16588 | echo " Building...........: make doc" | ||
16589 | fi | ||
16590 | echo " Examples.............: ${build_examples}" | ||
16591 | if test "x${build_examples}" = "xyes" ; then | ||
16592 | echo " Install............: ${install_examples}" | ||
16593 | fi | ||
16594 | echo | ||
16595 | echo "Compilation............: make (or gmake)" | ||
16596 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
16597 | echo " CFLAGS...............: $CFLAGS" | ||
16598 | echo " LDFLAGS..............: $LDFLAGS" | ||
16599 | echo | ||
16600 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
16601 | echo " prefix...............: $prefix" | ||
16602 | echo | ||